-
Notifications
You must be signed in to change notification settings - Fork 45
/
.js
9 lines (8 loc) · 827 KB
/
.js
1
2
3
4
5
6
7
8
9
/*
All of the code within the ZingChart software is developed and copyrighted by ZingChart, Inc., and may not be copied,
replicated, or used in any other software or application without prior permission from ZingChart. All usage must coincide with the
ZingChart End User License Agreement which can be requested by email at [email protected].
Build 2.9.5_ES6
*/
if(typeof(ZC)==="undefined"){window.ZC={AV:function(e,t){if(e.indexOf)return e.indexOf(t);for(var i=0,a=e.length;i<a;i++)if(e[i]===t)return i;return-1},VERSION:"2.9.5",VERSIONID:"2.9.5.2021.06.11",LICENSEKEY:"",ACB:!1,CHARTS:["null","null3d","line","line3d","vline","area","area3d","varea","bar","bar3d","vbar","vbar3d","hbar","hbar3d","scatter","hscatter","bubble","hbubble","pie","pie3d","ring","ring3d","nestedpie","mixed","mixed3d","hmixed","radar","bullet","vbullet","hbullet","funnel","vfunnel","hfunnel","piano","heatmap","stock","range","vrange","gauge","venn"],EQUIV:{floatbar:["vfloatbar","hfloatbar"],boxplot:["vboxplot","hboxplot"],waterfall:["vwaterfall","hwaterfall"],populationpyramid:["population-pyramid","pop-pyramid"],bubblepie:["bubble-pie","bubblepie"],bar:["column","vbar"],radar:["polar","radar"],stream:["vstream"]},ALIAS:{ring:"pie"},execFn:function(e,t){var i=[].slice.call(arguments).splice(2);return ZC.evalFn(e,t).apply(t,i)},evalFn:function(e,t){for(var i=e.split("."),a=i.pop(),n=0;n<i.length;n++)t=t[i[n]];return t[a]},cache:{data:{},size:0,add:function(e,t){ZC.cache.data[e]=t,ZC.cache.size++,ZC.cache.size>2048&&(ZC.cache.data={},ZC.cache.size=0)}},DEBUG:0,TS:{},MAX:Number.MAX_VALUE,IMG404:[],BLANK:"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",TTLOCK:!1,REFRESH_TICK:{},ASYNC_TICK:[],COLORS:[],SEQ:0,LOGO_ABOUT:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJEAAAA1CAYAAABBVQnbAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABu1JREFUeNrsXLFy4zYQBW9UR7wfSHh1iqMn6S3NxLXlLp3lL5D1ARlLkw+Q/QWiu3TW1Sqk65M5ukh9vPzAUV+gLMilDUMgAYigZUm7MzAliiDBxcPu2+XS3nq9ZiQkdaTF/3iet/UJ/vjr5wKFyz9//7dLKj0u4UboHamBpK54HEm2lgisTwgbH78ucBtDG+LnFKxSTOo9DkvU2rLvBFpH2hcKgFpCI9d2JELujMQNsd5CRFdVWKRU2G/syv7+hQWw6ePX6Nd/WELTcgScyGV0BiDqCG6wCyBa0rRQdEZC7sxaxri1ckNggRYKcr6A/ZlVA4tExPxYQAQubERqJBDtSu6hfYb2k0isoX2ztWoke06s6woRayLWJCQ5kkhIyBKR7FQIRCQEIpJjCPFn/xWR15D1fqTyEALRVtLBrU/qJhDZWB8OmFDaG8J+vk3JIhGITEQsUCtkgtslo4K1wwMRxPoBbAIXJ/Q8b3mQmpqvevD3VGFhuVV95PaXnbXTkr6h5M7j0mP3UDxMNo6g3TgCkSe5tiKb2QU3ttxD8PRRN7pFxkFxB+AYKc4hVyx04biDWGx1aqwPX+Yrbjmm0HqGPfwMbPPVOYIkPRA9yAZmYwG8Boi6gtnfJ1koXBeXhD1XGagDCN53vuoeksvabYi/ny5sogAHv4/xhhvK+c5UOj7E1Ts8BhC5zljv/8qbrzh3uZb2RgAeNY85a8dobWVLe40u8TgsEXDhEZJrHYnq46rTuS4XhK0nrW7uQmYw1lTTL5R4jFE/QQYK91VtUbjbmq8u4NNX2Q6zvNCuind1hPtMMot31k4MwB5iv0CylvaRXz6O3tO5VMGBLjozKUrDyVmw8szzFZwnEo5X1VA/RW9rdQ3KGBUxLYmGuHKG4nWk8aleqiz6XSFA5N/HuIgKZX6X7wuUGhlOxoME4FvoO1RGZ88uT6XPKAOuCgxm0aK6/8txLDPrukmci/EtDO54vP7th1HL0CpYAaiGnGtSDVnEBONJ4Xozi/Hx/Q9MX3bb2wCfKYByGWZhvt69T0pIeyF9/P1EAsGUPZcSM03/Hhx/UmnVcu533TixhgnyNRM0dgQgplGsPAkzYXwPzOzZnC7X81FBps0ln7DE4j7FFz7lhGSYWZ0CxLkF6pdEiin27WykHHILXKaLTuPRmQGAoidX8LoScOsD145xJQUVRD+2UJYM4scG7+Gly8ldqZxWOBc41UBB9q8UPEmcr54GRIXwBXn/ZDnzAMIzyhNVVTYKAAorAHTVgHL5pHOS+gEVkGqUcFnmWmB876F18Vzb5KmaijbjDAAiZ8k/jxVuWAXwZANAz5HirKR/mfBxXECbZeDYIpPe0riMsGKim8qBXMDEFy4hQv6tighD+C0usUJLOMetQOYTOFYVPe0KRHcl7nAGK98k8k0dUIKCXNemIq0SK1RF4LK8iEXIbCMzAUCi37flOJ8UUWGCoLNRctAQiBLrHioLkbvAIswP0CoHtcFcF0Sg6FEFgNIGAeSSg8RbWhZ5ctuW+ZZAmsQUXYwbyUHTR67kghQvnYMIk4k3OwKQS/Edgdh2omT9RRXE1hZAfaQYvmbx+MbWyNGzvXcSgKYaAL21h6hpRb5JFSiEliszxIjHVE6l798cAShQAChBIt7N8klnbQ/aCdvBK+hFUVqR7S1l8G8QQJznxCUvX/Zg/5005onWQnHXM18l0kq+wWjRZKI7TbgLtHD+i5CcR1RvRAp3VpUL4qt9AJMyMDznvcPkoxEZZ5uZ5iw9AWPm41ihhTB1TWPJIvdeJP3KZbrBr9wVnn20IMTBrkDka/iFDTf4/Mr3cMfUhWN83PYpfQ6W+epSuudpRmrP2rclZFf1zG7cIMfzS6zh9SuAyLfJE+2F8JpusDi3zMEzINF9Q/siKWwCkzRAy/coWIi+QrFO8i/SwpRBHeB1YixfuVRG1TmnSxwWyN0IJS7c9S8PojwWgDREblQFpIiZPi/iz8B4ZeKmmw8MwBobcSg7iaSoz3/isOXJyUK+sHpv2CQbwcaz686qLg7mNWoOJJY/9b5FpaWogBlGlnahdp7f+WBJjiPWRH11/mDXZPwp3r/La0dM88io1YD/LpR+r+FHY4MQWwxllcdiZClai09I7uPapDMHQ1dwFx3FORIcy11FYlHWRWKol0Tiavz8A+SAvgCcGK8xwwI50SqLlQK6OSmTLrrKU+m6yyJ/stcWCMb/sFaLLx3XKTmuZ31RzkdyTnL0khU17vrf7Tm4iT5TJ0kTXHlc2iUEmBe3vSco1APRIVgiH9rX9XbSJxgQiIob4WUh3y0BNCEIEIhUFmlqACbOoTo0/cSJtJZJwX8O959NvAUQkZDUkf8FGADBt38P1SQKxwAAAABJRU5ErkJggg==",IMAGES:{"zc.logo":"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAI0AAAA8CAYAAABbyDl1AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAACGZJREFUeNrsXF9oFEccno2XRE1SI9ZQLcY0oIW21miQKoi5UPtiK7m+1GKhuWDrg7Z4+lILihGF6oueUH2w2pwFxT71gtonWy9SUJDEmKK0CvGikGtjg4mJ5p9xOt8mt5ndm93bTfaS3DkfLGxu525nZ779/b7vN6MKpZRISDhBlhwCCafwTLcO/XchRDsvhtTzeR/5yasb/YqcJkkaSwzGoqS3sUE9Lyj3yhmS6Uki4yNN7PFftH+oRz1/o2iVTBMSKhQr9/Tj7zU0+uiGel5TWZcS4vAaRk1P7VGWotrU85wFi0nOwhLtmtQ4UtMkaJjEa20agaTGkZpGIlPS0/2OGzTacUP7++b9MOl61q6el5VUkbl5r2vXKt/Z5lqa6GmMaJ3ovBAinRfPjKajajJvo5+PNDI1Tbf0BMJcuX1C2LA5Wq/7m5HGtU7wZOAJBD0jiSLTk0SmRZqSolWkkmyzlZ4kpKaZMsttpXFkapKWe1waR0JqGolMT09yGUHCMWkkJGR6kpCkkZCkkZCkkZCkkZCQpJGQpJGQpJF4yUnj/aOD4pDDnRmYlAXLhs4BOdIy0ki8zEjZ2hPSkVmEqZiXSyJri+QCaCakp9pTZyfMoNovPssYMjT3DNPI4+ck/Oh5wrVCj0J88z3EvzDH9HlrWwe08awtzc2YcdEiTaSphVZu/3bCP3jl+HfEu/Jd3QAp9Q/Vm9CqRWkzcP7bffRMbChpuznstfMvyCHBN2fqno2RjVY2Phsbl/LZxDvXM+2fH/3WsoVJfz1EIiG6+G49I2399oJuNwtCxx4OksJshWZCNDEQnYqIMymkgYZJFxgJs5gFkEBxDikrmKF91jVE1ZTFR6L9rQOkZKZCrdKVtNxOQl6aiF5GGMoTpnpBNgm9PUvYd19RNtMz2WpU6h6VPIG7/dA4L48Qhg5heiRpTG6+20p2HvtBeK16w/sJeiZdgFxezwleaBUzwvA5n6UkuvPugJaqoIWSfS+jIo2dCfd9c1BIrIoVy0ho7y7t+6FLlyk7dG3KlpaSYGCr2sa7bTe1e02977rVJPCpz7R/4YZrNHz1GonGOsYcTkEe8W9YT3wVaxSr+wHBB4N651NqL6UGinMV9l0tQsFtOXVkcGK4H0uBwucLPhigzT0vSLT/hdDFeefOUPthvBZqH6TR0X6hDUge7hiiIZZWu5jebXg8rAr0aB9+O3FaQ+1D7HmGKf99x+mp7POvaHfv04TPly95g0ROHNJ1Ohr7lzTc/NP0t0TXQLRA8CQR3QPta0+fo5HjhzDhip7IB2j91evC++DzfVs2U6u+qO24SRzRMfZFbXj5bHUSrAAdVHa9l97qfWF6/5vv5VEjcQJ/91MI7WR9j/ZRanRwIAeIoYKRkpGDIoV2G3ita8dB5x7Z9xlp1NMsJ4S5de++kDDNP30/4XAMkpkRRnMq7BojiP4tPB82JYwmUk+fs20zVRLOz3bUd0w03sL4IbTwd/qIGWF4EW6s8yQjTBxox9eFBBGO1NxJJEzKhLAZYebk57lCGKDtnw7b7ZCKkHLUgU1CCHt6ZtigVWa4rgMwWSJhzUcfpDikDyayldG0pLWrmu9BRFOs6klob5ZW45EUUZQX6yB5pHyMBsrlJzRZbSkpafwHjpgSBqnCTeA3Q3t2qlpEDfssghz7uT7xrbnXCp2CyJSQLhe/VkTCh/dqKYwJd+o/eISInsEMhdnu61hMlkggN6/OV/iJamYE8hWNRD8+KogIo6YW9puMNDROzGSFyOjaAiWlkQaEOfPrb6aEMWqLiSKwqYrEI8ioMAdpTENupKklsc8frtf1C+dM8LpS7Z4I7AprPgKguBYXu2aA2LX7m8GlM1Nbp8FbLCKMyvrDe1wnjDqwgnUruDIzESuKHqLfGHWFU7qfp2SW8w0FVssOiETQKUzH2IviWO5wqfAoJA1cjCgtAHUsfaRrLcZ0QvWmQ9U4cadgB7DRvHtyc40JGgf2PG63RS7HplhPTZ0mTpiag0dNCcPCf8YVrowDijfYCZgY1Tkjuv4VdyIvc0P7TSIJNBKIDTKNl0jjRZaxQGZGmH1bNk87wkD0iop8dj4zWuY5HnHNxg54wlS45LyQfnjCwD3BzTBCKjggaCGCnURE10kz4jLEhMHywHTcJ4OqbsLbefqsrc8SNFyxXqh6G5/a0kBGIVqW7w5p+Ap13G5Pl60VY2tP23ebFtYgiNlhaxARkSaLYL51a4ixsAdxXPjBJ7RsSalmz60Khpy7UVCuj9tWhHxUY41VVkEK0U92kvZ2oddI5kTsGqJTF2nsDOx0A9KlKEXhWeC4cDh5LqMtRpUVxDFLH4WRJ7pV8R2LUrPCjXUn00gXG0zZ+JoRMu03lkd/qVNQN7LC0R1f2qsTFecq+wTEATmQruIHqrjYrMQX05bnZ7kWZUYd2Fikjw2p6RJOCmTFgUow+mUs6KHNRO7LazssfcSfmU/DGfGvEVBorFq3Wnhtx6Yqy9VxUZqqe0tfBMPEIF3FD+MaEpYHUNl1tWbF+sFPIO77cUufurMOB4iEfoGsPNDGag0qacrn1t345+ZXwTNiuycKjVg6UAnU1DK2x3Wc9SQUwZijotArVk4Kk4qU5mRF3NHLUJ5HzPoAy417o6+IBG7ZbjiyQo9iuVCa1v99GggSadJXi70rlyWQBc5wRfXX4xbsoje3ZGThb9LcDL8Sj2UF4xYKOxvCXXdPaalnYh0J2x5Cl4qgc/RaJXhS6LycpIqpftZkRJhMO572/1Ej7LVT54f1LOOmMYlxWO50RTCw1Zk7YE7L6XckMizSxLVN7alzJNmWTuwyDO3ZlZIVekmadI4858O0S5CuoGEkWSRpJKSmkUgX/C/AAC1LYqunMJ6bAAAAAElFTkSuQmCC"},hosted:!1,adapter:"",flash:null,canvas:null,svg:null,vml:null,move:!1,objmove:!1,compat:function(){ZC.flash=ZC.canvas=ZC.svg=ZC.vml=!1;var e=!!document.createElement("canvas").getContext,t=!1;e&&(t="function"==typeof document.createElement("canvas").getContext("2d").fillText);ZC.canvas=e&&t,ZC.svg=document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1");var i=document.body.appendChild(document.createElement("div")),a=document.createElement("zcv:shape");a.className="zcvml",a.setAttribute("id","vml_flag1"),a.setAttribute("adj",new Object),i.appendChild(a),a.style.behavior="url(#default#VML)",ZC.vml=!a||"object"==typeof a.adj,i.parentNode.removeChild(i);var n=!1;navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"]?n=navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin:document.all&&-1===navigator.appVersion.indexOf("Mac")&&(n=new Function('try { var xObj = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if (xObj) { xObj = null; return true; } } catch (e) { return false; }')()),ZC.flash=n?1:0},quirks:!(document.compatMode&&"CSS1Compat"===document.compatMode),ie67:!!/MSIE (\d+\.\d+);/.test(navigator.userAgent)&&parseFloat(RegExp.$1)<8,ie678:!!/MSIE (\d+\.\d+);/.test(navigator.userAgent)&&parseFloat(RegExp.$1)<9,mobile:/Mobile|BlackBerry|Opera Mini|PPC|Windows CE|Android/.test(navigator.userAgent),ipad:/iPad/.test(navigator.userAgent),iphone:/iPhone/.test(navigator.userAgent),websockets:"WebSocket"in window,webstorage:"sessionStorage"in window,RT:[],X1:[],DX:[0,0],ACO:null,_cp_:function(e,t,i,a,n,l){null===ZC._n_(i)&&(i=!0),null===ZC._n_(a)&&(a=!0),null===ZC._n_(n)&&(n=!1);var r=(l=l||[]).length;for(var o in e)if(0===r||r>0&&-1===ZC.AV(l,o))if(e[o]instanceof Array){if(a){(null===ZC._n_(t[o])||"override"!==o&&!n)&&(t[o]=[]);for(var s=0,C=e[o].length;s<C;s++)t[o].push(e[o][s])}}else e[o]instanceof Object&&!(e[o]instanceof Function)?a&&(null===ZC._n_(t[o])&&(t[o]={}),t[o]instanceof Object&&!(t[o]instanceof Function)&&ZC._cp_(e[o],t[o],i)):(null===ZC._n_(t[o])||i)&&(t[o]=e[o])},_cpa_:function(e,t){t||(t=[]);for(var i=0,a=e.length;i<a;i++)t.push(e[i])},_inj_:function(e,t){var i={};ZC._cp_(e,i),ZC._cp_(t,e),ZC._cp_(i,e)},_todash_:function(e,t,i){if("dashed"!==zingchart.SYNTAX){typeof t===ZC._[31]&&(t=!0);var a,n,l=(i=i||[]).length;for(var r in e)if(e.hasOwnProperty(r)&&(0===l||l>0&&-1===ZC.AV(i,r))){var o=r.substring(0,1);if("."!==o&&"#"!==o)if(e[r]instanceof Array)if(ZC.V6(r)!==r){for(e[ZC.V6(r)]=[],a=0,n=e[r].length;a<n;a++)ZC._todash_(e[r][a]),e[ZC.V6(r)].push(e[r][a]);delete e[r]}else for(a=0,n=e[r].length;a<n;a++)ZC._todash_(e[r][a]);else e[r]instanceof Object&&!(e[r]instanceof Function)?(ZC.V6(r)!==r&&(e[ZC.V6(r)]={},ZC._cp_(e[r],e[ZC.V6(r)]),delete e[r]),t&&ZC._todash_(e[ZC.V6(r)],t,i)):ZC.V6(r)!==r&&(e[ZC.V6(r)]=e[r],delete e[r])}}},A06:function(e,t){for(var i in e){var a;if(e.hasOwnProperty(i))if((a=i.replace(t+"-",""))!==i)if(e[a]=e[i],e[i]instanceof Array)for(var n=0,l=e[i].length;n<l;n++)ZC.A06(e[i][n],t);else e[i]instanceof Object&&!(e[i]instanceof Function)&&ZC.A06(e[i],t)}},AAJ:function(e){for(var t="",i=0,a=e.length;i<a;i++){var n=i%2==0?i:e.length-i;t+=e.substring(n,n+1)}return t=t.replace(/\./g,"d")},AD8:function(e){var t=e;return t=(t=(t=t.replace("*","&")).replace("9","3")).replace("l","1")},AAK:function(e){return e.replace(/[a-zA-Z]/g,function(e){return String.fromCharCode((e<="Z"?90:122)>=(e=e.charCodeAt(0)+13)?e:e-26)})},ACH:function(e,t){var i=ZC.XL(ZC.ACD(e)),a=ZC.XL(ZC.A2W(t)),n=i.length;if(0===n)return"";for(var l,r,o=i[n-1],s=i[0],C=2654435769,A=Math.floor(6+52/n)*C;0!==A;){r=A>>>2&3;for(var Z=n-1;Z>0;Z--)l=((o=i[Z-1])>>>5^s<<2)+(s>>>3^o<<4)^(A^s)+(a[3&Z^r]^o),s=i[Z]-=l;l=((o=i[n-1])>>>5^s<<2)+(s>>>3^o<<4)^(A^s)+(a[3&Z^r]^o),s=i[0]-=l,A-=C}return decodeURIComponent(ZC.ACE(ZC.A6J(i)))},AG3:function(e,t){e=encodeURIComponent(e);var i=ZC.XL(ZC.A2W(e)),a=ZC.XL(ZC.A2W(t)),n=i.length;if(0===n)return"";1===n&&(i[n++]=0);for(var l,r,o=i[n-1],s=i[0],C=Math.floor(6+52/n),A=0;C-- >0;){r=(A+=2654435769)>>>2&3;for(var Z=0;Z<n-1;Z++)l=(o>>>5^(s=i[Z+1])<<2)+(s>>>3^o<<4)^(A^s)+(a[3&Z^r]^o),o=i[Z]+=l;l=(o>>>5^(s=i[0])<<2)+(s>>>3^o<<4)^(A^s)+(a[3&Z^r]^o),o=i[n-1]+=l}return ZC.ACC(ZC.A6J(i))},XL:function(e){for(var t=new Array(Math.ceil(e.length/4)),i=0;i<t.length;i++)t[i]=e[4*i]+(e[4*i+1]<<8)+(e[4*i+2]<<16)+(e[4*i+3]<<24);return t},A6J:function(e){for(var t=[],i=0;i<e.length;i++)t.push(255&e[i],e[i]>>>8&255,e[i]>>>16&255,e[i]>>>24&255);return t},ACC:function(e){for(var t="",i=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],a=0;a<e.length;a++)t+=i[e[a]>>4]+i[15&e[a]];return t},ACD:function(e){for(var t=[],i="0x"===e.substr(0,2)?2:0;i<e.length;i+=2)t.push(parseInt(e.substr(i,2),16));return t},ACE:function(e){for(var t="",i=0;i<e.length;i++)0!==e[i]&&(t+=String.fromCharCode(e[i]));return t},A2W:function(e){for(var t=[],i=0;i<e.length;i++)t.push(e.charCodeAt(i));return t},_i_:function(e){return-1!==String(e).indexOf("e-")?0:""===(e=String(e).replace(/[^0-9\.\-]/gi,""))?0:Math.round(e)},_f_:function(e){return e=parseFloat(e),isNaN(e)?0:e},_x_:function(e,t){return typeof t===ZC._[31]&&(t=2),parseFloat(Number(e).toFixed(t))},_a_:function(e){return Math.abs(e)},_b_:function(e){return"false"!==e&&"0"!==e&&("true"===e||"1"===e||!!e&&!0)},_p_:function(e){var t=(e=String(e).replace(/[^0-9\.\%\-]/gi,"")).indexOf("%");return-1!==t&&(e=e.substring(0,t),e=ZC._f_(e)/100),e},_h_:function(e){return window.toStaticHTML?window.toStaticHTML(e):e},_n_:function(e){return null===e||typeof e===ZC._[31]?null:e},_c_:function(e,t){return null===e||typeof e===ZC._[31]?t:e},_ang_:function(e){return(e%=360)<0&&(e+=360),e},IR:function(e,t){return ZC._f_(e)+""==e+""?t?ZC._f_(e):ZC._a_(e):-1!==(e+="").indexOf("%")?ZC._f_(e.replace("%",""))/100:-1!==e.indexOf("px")?ZC._f_(e.replace("px","")):ZC._f_(e)},RA:function(e){return parseInt(e,16)},P7:function(e){return ZC._i_(e).toString(16)},_r_:function(e,t){return parseInt(e+(t-e)*Math.random(),10)},_l_:function(e,t,i){return e=(e=e<t?t:e)>i?i:e},DR:function(e,t,i,a){return a?t<e&&e<i||i<e&&e<t:t<=e&&e<=i||i<=e&&e<=t},BQ:function(e,t){return Math.max(e,t)},CX:function(e,t){return Math.min(e,t)},A2C:function(e,t){null===ZC._n_(t)&&(t=!1);for(var i=0,a=e.length,n=-Number.MAX_VALUE;i<a;i++)t&&0==e[i]||(n=Math.max(n,e[i]));return n},YM:function(e,t){null===ZC._n_(t)&&(t=!1);for(var i=0,a=e.length,n=Number.MAX_VALUE;i<a;i++)t&&0==e[i]||(n=Math.min(n,e[i]));return n},_rcolor_:function(){for(var e=(16777215*Math.random()+1<<0).toString(16);e.length<6;)e="0"+e;return"#"+e},AAP:function(e,t){for(var i,a=ZC._f_(t),n=Number.MAX_VALUE,l=0,r=0,o=e.length;r<o;r++)(i=Math.abs(ZC._f_(e[r])-a))<n&&(l=r,n=i);return l},AGG:function(e){var t=e.split(".");return t[t.length-1]||""},GX:function(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},G6:function(e,t){return t=t||Math.E,isFinite(Math.log(e)/Math.log(t))?Math.log(e)/Math.log(t):0},UE:function(e){return 360*e/(2*Math.PI)},TI:function(e){return 2*e*Math.PI/360},EH:function(e){return Math.cos(ZC.TI(e))},EN:function(e){return Math.sin(ZC.TI(e))},PN:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},EE:function(e){return-1!==e.indexOf("-")?e.replace(/(\-[a-z0-9])/g,function(e){return e.toUpperCase().replace("-","")}):e},V6:function(e){return e.toUpperCase()!==e&&-1===e.indexOf("-")&&e.substring(0,1).toLowerCase()===e.substring(0,1)?e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()}).replace(/([0-9]+)/g,function(e){return"-"+e.toLowerCase()}).replace("-3d","3d"):e},AGH:function(e){return ZC.Y8.md5(e)},AK:function(e){return document.getElementById(e)},A27:function(e,t){return e[0].length<t[0].length?1:e[0].length>t[0].length?-1:0},A07:function(e){window.setTimeout(e,zingchart.TIMEOUT)},_fixed_:function(e,t){return t>=0&&t<=20?e.toFixed(t):""+e},_nfind_:function(e,t,i,a){var n=t.R[i].BU,l=t.R[a].BU;if(e==n)return i;if(e==l)return a;var r=ZC._i_((i+a)/2);if(!t.R[r]){for(;!t.R[r]&&r<a;)r++;if(r===a){for(r=ZC._i_((i+a)/2);!t.R[r]&&r>i;)r--;if(r===i)return null}}var o=t.R[r].BU;return r!==i&&r!==a?e==o?r:e>o?ZC._nfind_(e,t,r,a):ZC._nfind_(e,t,i,r):e==o?r:null},_tx_:function(e){var t,i,a,n,l=[1,1,0,0];if(zingchart.DEV.LOOKUPCSSTRANSFORM&&!ZC.vml&&ZC.AK(e)){var r=ZC.AK(e);for(t="";r&&(""===t||"none"===t);)t=ZC.A5(r).css("transform")||"",r=r.parentNode;-1!==(i=t.indexOf("matrix("))&&(a=t.indexOf(")",i),n=t.substring(i+7,a-i).split(","),l=[ZC._f_(n[0]),ZC._f_(n[3]),ZC._f_(n[4]),ZC._f_(n[5])])}return l},Utils_SetupFormat:function(e,t){return ZC.AP.OF(e,t)},Utils_Format:function(e,t,i,a){return ZC.AP.G3(e,t,i,a)},Loader_Api_Loader_Info:function(e){return e.F5()}},ZC.hasPassive=!1,ZC.SEC=1e3,ZC.MIN=60*ZC.SEC,ZC.HR=60*ZC.MIN,ZC.DAY=24*ZC.HR,ZC.MON=30*ZC.DAY,ZC.YR=365*ZC.DAY,ZC.MAPTX=0,window.JSON=window.JSON||{},JSON.stringify=JSON.stringify||function(e){var t=typeof e;if("object"!==t||null===e)return"string"===t&&(e='"'+e.replace("\\","\\\\").replace('"','"')+'"'),String(e);var i,a,n=[],l=e&&e.constructor===Array;for(i in e)"function"!=typeof e[i]&&("string"===(t=typeof(a=e[i]))?a='"'+a.replace("\\","\\\\").replace('"','\\"')+'"':"object"===t&&null!==a&&(a=JSON.stringify(a)),n.push((l?"":'"'+i+'":')+String(a)));return(l?"[":"{")+String(n)+(l?"]":"}")},JSON.parse=JSON.parse||function(L4){return""===L4&&(L4='""'),eval("("+L4+")")},ZC._=["background-color","angle-start","angle-end","graphid","line-width","values","-node-area zc-node-area","placement","slice","value","labels","series","decimals","thousands-separator","decimals-separator","-print-c","graphset","value-box","outer","width","height","size","-hover-c","enable-guide","zc-abs zc-layer","exponent-decimals","3d-aspect","x-angle","y-angle","z-angle",'" coords="',"undefined","~rgba(255,255,255,0)","~rgb(255,255,255)","-node-area ","-plotset-plot-","http://www.w3.org/2000/svg","http://www.w3.org/1999/xlink","skip_context_menu","skip_segment_tracking","skip_marker_tracking","skip_interactivity","use_fast_mode","use_fast_markers","use_single_canvas","If-Modified-Since","Thu, 1 Jan 1970 00:00:00 GMT","mousedown","mousemove","mouseup","scale-x","scale-y","scale-v","preservezoom","toggle-action","enable-animation","enable-preview","margin-top","margin-right","margin-bottom","margin-left","border-color","border-width","Network error","URL Data loader","loader.gui.context-menu","-menu-item-exitfullscreen","transform-date-format","transform-date","bg-image-width","bg-image-height","hover-state","background-state","selected-state"];class ZCClass{}if(ZC.ABD=function(e){this.G=e,this.AAI=function(e,t){var i,a=this,n=a.B8.palette;if(null!==ZC._n_(t)&&null!==ZC._n_(n[t])&&(n=n[t]),null!==ZC._n_(n[e])){var l=n[e];return null===ZC._n_(l[2])&&(l[2]=ZC.AP.RB(l[1],10)),null===ZC._n_(l[3])&&(l[3]=ZC.AP.RB(l[1],10)),l}var r=["#00BAF2","#E80C60","#E2D51A","#9B26AF","#FB301E","#00AE4D","#20398B"];i=null!==ZC._n_(r[e-a.B8.palette.length])?r[e-a.B8.palette.length]:"#"+ZC.Y8.md5(e).substr(e%20,6);var o=ZC.AP.RB(i,10),s=ZC.AP.RB(i,20),C="#FFF";return a.B8.palette&&a.B8.palette[0]&&a.B8.palette[0][0]&&(C=a.B8.palette[0][0]),[C,i,o,s]},this.A4U=function(e){e&&ZC._cp_(e,this.B8,!0)},this.ABF=function(e){var t=this;null!==ZC._n_(t.O1[e])&&(ZC._todash_(t.O1[e]),ZC._cp_(t.O1[e],t.B8))},this.O1={},ZC._cp_(zingchart.THEMES,this.O1),this.O1.classic={palette:[["#fff","#6a921f","#a7da47","#89b92e"],["#fff","#007fa3","#00b0e1","#0392bb"],["#fff","#a62b02","#ef4810","#cc3300"],["#fff","#b79007","#f9c332","#da9b04"],["#fff","#563d02","#84680a","#6e4503"],["#fff","#0b32a0","#4d62b1","#1540a0"]],graph:{refresh:{curtain:{alpha:.5,"background-color":"#999",color:"#000","font-size":15,bold:1,text:"Loading..."}},"background-color":"#e1eaec #edf3f5",title:{"font-size":14,bold:1,color:"#fff","background-color":"#00bbf1 #05a0cd",padding:6},subtitle:{"font-size":11,bold:1,color:"#333","margin-top":30,padding:6},source:{"font-size":10,color:"#333",width:"100%",bold:1,"text-align":"right",height:20,margin:"auto 0 0 auto",padding:5},nodata:{"font-size":12,color:"#333","text-align":"center","vertical-align":"middle",text:""},SCALE:{"font-size":11,"line-width":2,"line-color":"#3e6c7b",item:{flat:!0},"ref-line":{"line-width":1,"line-color":"#3e6c7b"},guide:{visible:1,"line-width":1,"line-style":"solid","line-color":"#2c4a59",alpha:.2},"minor-guide":{visible:1,"line-width":1,"line-style":"solid","line-color":"#aaa",alpha:.1},tick:{visible:1,size:6,placement:ZC._[18],"line-width":2,"line-color":"#3e6c7b"},"minor-tick":{visible:1,size:4,placement:ZC._[18],"line-width":1,"line-color":"#3e6c7b"},label:{color:"#2c4a59",flat:!0}},"scroll-x":{bar:{height:16},handle:{height:16}},"scroll-y":{bar:{width:16},handle:{width:16}},legend:{"background-color":"#fff","border-width":1,alpha:.75,"border-alpha":.75,"border-color":"#666","shadow-distance":3,header:{padding:"4 6",color:"#fff","border-width":1,"border-color":"#3e6c7b","background-color":"#3e6c7b"},footer:{padding:"2 6","background-color":"#ccc","border-width":1,"border-color":"#666"},marker:{"border-color":"#333","border-width":1}},plot:{"value-box":{flat:!0},marker:{shadow:1,"line-width":1,"border-width":1},"hover-marker":{"line-width":1,"border-width":1}},guide:{"line-width":1,"line-color":"#999",alpha:1,"scale-label":{text:"%l",padding:"3 6"},"plot-label":{padding:"3 6"}}},line:{plot:{"shadow-alpha":.5,marker:{size:4},"hover-marker":{size:5}}},area:{plot:{"shadow-alpha":.5,marker:{size:4},"hover-marker":{size:5}}},vbar:{plot:{"fill-angle":90,shadow:0}},hbar:{plot:{"fill-angle":180,shadow:0}},piano:{plotarea:{"mask-tolerance":[0,0]},plot:{shadow:0}},stock:{plot:{shadow:0}},vbullet:{plot:{shadow:0}},hbullet:{plot:{"fill-angle":0,shadow:0}},scatter:{plot:{marker:{size:4},"hover-marker":{size:5}}},hscatter:{plot:{marker:{size:4},"hover-marker":{size:5}}},bubble:{plot:{marker:{"border-width":0},"hover-marker":{"border-width":0}}},hbubble:{plot:{marker:{"border-width":0},"hover-marker":{"border-width":0}}},pie:{plot:{"border-width":1}},nestedpie:{plot:{"border-width":1}},radar:{plot:{marker:{size:3},"hover-marker":{size:4}},"scale-k":{guide:{alpha:.5,"background-color":"#eee #ddd"}}},gauge:{"scale-r":{"background-color":"-1",guide:{alpha:.5,"background-color":"#eee #ddd"},item:{"offset-r":0},ring:{size:1,items:[{"background-color":"#999",alpha:.8},{"background-color":"#666",alpha:.8}]}}},vfunnel:{plotarea:{margin:"50 100"},SCALE:{"line-width":0,tick:{"line-width":0},"minor-tick":{"line-width":0},guide:{"line-width":0},"minor-guide":{"line-width":0}},"scale-y":{guide:{alpha:.25,"background-color":"-1 #58595B"}},"scale-y-n":{guide:{alpha:.25,"background-color":"-1 #58595B"}},plot:{"border-width":1}},hfunnel:{plotarea:{margin:"50 100"},"scale-x":{label:{"font-angle":270}},"scale-x-n":{label:{"font-angle":90}},SCALE:{"line-width":0,tick:{"line-width":0},"minor-tick":{"line-width":0},guide:{"line-width":0},"minor-guide":{"line-width":0}},"scale-y":{label:{"font-angle":0},item:{"text-align":"center"},guide:{alpha:.25,"background-color":"#58595B -1"}},"scale-y-n":{label:{"font-angle":0},item:{"text-align":"center"},guide:{alpha:.25,"background-color":"#58595B -1"}},plot:{"border-width":1}},range:{plot:{marker:{type:"circle",size:4},"hover-marker":{size:5}}},line3d:{SCALE:{"line-color":"#ddd",tick:{visible:!1}},plot:{"border-width":0,"line-width":1}},area3d:{SCALE:{"line-color":"#ddd",tick:{visible:!1}},plot:{"border-width":0,"line-width":1}},mixed3d:{SCALE:{"line-color":"#ddd",tick:{visible:!1}},plot:{"border-width":1}},vbar3d:{SCALE:{"line-color":"#ddd",tick:{visible:!1}},plot:{"border-width":1}},hbar3d:{SCALE:{"line-color":"#ddd",tick:{visible:!1}},plot:{"border-width":1}},pie3d:{plot:{"border-width":1}},"-":""},this.O1.light={palette:[["#fff","#29A2CC","#29A2CC","#1089B3"],["#fff","#D31E1E","#D31E1E","#BA0505"],["#fff","#7CA82B","#7CA82B","#638F12"],["#fff","#EF8535","#EF8535","#D66C1C"],["#fff","#A14BC9","#A14BC9","#8832B0"],["#fff","#A05F18","#A05F18","#874600"],["#fff","#265E96","#265E96","#0D457D"],["#fff","#6B7075","#6B7075","#52575C"],["#fff","#96C245","#96C245","#7CA82B"]],graph:{refresh:{curtain:{alpha:.5,"background-color":"#999",color:"#000","font-size":15,bold:1,text:"Loading..."}},"background-color":"#ffffff",title:{"font-size":21,bold:1,color:"#414042","background-color":"none",padding:6},subtitle:{"font-size":11,bold:1,color:"#414042","margin-top":30,padding:6},source:{"font-size":10,color:"#414042",width:"100%",bold:1,"text-align":"right",height:20,margin:"auto 0 0 auto",padding:5},nodata:{"font-size":12,color:"#333","text-align":"center","vertical-align":"middle",text:"No Data","background-color":"#BBBBBB",alpha:.8},SCALE:{"font-size":11,"line-width":1,"line-color":"#8C8C8C",item:{"font-size":12,flat:!0,color:"#808285"},"ref-line":{"line-width":1,"line-color":"#D1D3D4"},guide:{visible:1,"line-width":1,"line-style":"solid","line-color":"#DCDCDC",alpha:1},"minor-guide":{visible:1,"line-width":1,"line-style":"solid","line-color":"#aaa",alpha:.1},tick:{visible:1,size:5,placement:ZC._[18],"line-width":1,"line-color":"#8C8C8C"},"minor-tick":{visible:1,size:3,placement:ZC._[18],"line-width":1,"line-color":"#A7A9AC"},label:{color:"#414042",flat:!0}},"scale-x":{normalize:!0,guide:{visible:!1}},scroll:{bar:{"background-color":"#F0F1F1",margin:1},handle:{"background-color":"#A7A9AC","border-radius":6}},"scroll-x":{bar:{height:16,"border-top":"none","border-right":"none","border-bottom":"none","border-left":"none"},handle:{height:10,"border-top":"none","border-right":"none","border-bottom":"none","border-left":"none"}},"scroll-y":{bar:{width:16,"border-top":"none","border-right":"none","border-bottom":"none","border-left":"none"},handle:{width:10,"border-top":"none","border-right":"none","border-bottom":"none","border-left":"none"}},"scroll-xi":{bar:{width:16,"border-top":"none","border-right":"none","border-bottom":"none","border-left":"none"},handle:{width:10,"border-top":"none","border-right":"none","border-bottom":"none","border-left":"none"}},"scroll-yi":{bar:{height:16,"border-top":"none","border-right":"none","border-bottom":"none","border-left":"none"},handle:{height:10,"border-top":"none","border-right":"none","border-bottom":"none","border-left":"none"}},preview:{"background-color":"#fff","border-width":1,"border-color":"#A7A9AC",live:!0,mask:{"background-color":"#999"},active:{alpha:0},handle:{width:11,"border-width":2,"border-radius":3,"line-color":"#C6C6C6","border-color":"#A7A9AC","background-color":"#F0F1F1"},"handle-top":{height:11},"handle-bottom":{height:11}},tooltip:{shadow:1,"shadow-angle":45,"shadow-distance":1,"shadow-alpha":.25,"border-width":1,"border-color":"#fff","border-alpha":1},zoom:{"preserve-zoom":1,"background-color":"#929497"},legend:{"background-color":"#fff","border-width":1,shadow:0,"shadow-alpha":.2,alpha:1,"border-alpha":1,"border-color":"#cccccc",header:{padding:"5 0 5 10",color:"#222222","background-color":"none","border-width":0,"border-top":"0px solid none","border-bottom":"1px solid #cccccc"},footer:{padding:"5 0 5 10","border-top":"1px solid #cccccc"},shader:{"background-color":"#F0F1F1","line-color":"#C6C6C6",margin:2,height:8,"line-width":2,"line-style":"dotted"},icon:{"line-color":"#C6C6C6","line-width":2,style:"small"},marker:{"border-color":"#fff","border-width":1},"page-on":{"background-color":"#929497"},"page-off":{"background-color":"#D1D2D3"},scroll:{bar:{"background-color":"none","margin-top":3,"margin-bottom":3},handle:{"background-color":"#D1D2D3","border-top":"none","border-right":"none","border-bottom":"none","border-left":"none","border-radius":6,width:12,height:12}}},plot:{"value-box":{flat:!0},marker:{shadow:0,"line-width":1,"border-width":1,"border-color":"#fff"},"hover-marker":{"line-width":1,"border-width":1},monotone:!0},guide:{"line-width":1,"line-color":"#8C8C8C",alpha:1,"scale-label":{text:"%l",padding:"3 6"},"plot-label":{padding:"3 6"}}},line:{plot:{"line-width":2,shadow:0,marker:{size:4},"hover-state":{},"hover-marker":{size:5,"border-width":1,"border-color":"#fff"}}},area:{plot:{"line-width":2,shadow:0,"alpha-area":.25,"background-color-style":"solid",marker:{size:4},"hover-state":{},"hover-marker":{size:5,"border-width":1,"border-color":"#fff"}}},vbar:{plot:{"fill-angle":90,shadow:0}},hbar:{plot:{"fill-angle":180,shadow:0}},piano:{plotarea:{"mask-tolerance":[0,0]},plot:{shadow:0},"scale-x":{guide:{visible:!0}}},stock:{plot:{shadow:0}},vbullet:{plot:{shadow:0,goal:{"border-width":1,"border-color":"#fff",height:8}}},hbullet:{plot:{"fill-angle":0,shadow:0,goal:{"border-width":1,"border-color":"#fff",width:8}}},scatter:{plot:{"line-color":"%palette-0","border-color":"%palette-0",marker:{size:5},"hover-marker":{size:6}},"scale-x":{guide:{visible:!0}}},hscatter:{plot:{"line-color":"%palette-0","border-color":"%palette-0",marker:{size:4},"hover-marker":{size:5}},"scale-x":{guide:{visible:!0}}},bubble:{plot:{marker:{"border-width":1,"border-color":"#fff"},"hover-marker":{"border-width":1,"border-color":"#fff"}},"scale-x":{guide:{visible:!0}}},hbubble:{plot:{marker:{"border-width":1,"border-color":"#fff"},"hover-marker":{"border-width":1,"border-color":"#fff"}},"scale-x":{guide:{visible:!0}}},pie:{plot:{shadow:0,"border-width":1,"value-box":{placement:"in","font-size":16,text:"%node-percent-value%"}}},nestedpie:{plot:{"border-width":1}},radar:{plot:{shadow:0,"line-width":2,"background-color":"%palette-1","active-area":!0,marker:{size:4},"hover-marker":{size:5,"border-color":"#fff"}},"scale-k":{guide:{"line-width":1,"line-style":"solid","line-color":"#8C8C8C","line-segment-size":6,"line-gap-size":6,alpha:1,"background-color":"#fff #F7F8F8"},tick:{"line-color":"#8C8C8C","line-width":1,size:10}},"scale-r":{},"scale-v":{"ref-line":{"line-color":"#8C8C8C","line-width":1},tick:{"line-color":"#8C8C8C","line-width":1},guide:{"line-color":"#CDCDCD","line-width":1}}},gauge:{plot:{shadow:0},scale:{"size-factor":1},"scale-r":{aperture:270,tick:{size:11,"line-width":2},"background-color":-1,guide:{"background-color":"#fff"},ring:{size:8,"background-color":"#CDCDCD"},center:{size:20,"background-color":"#fff","border-width":6,"border-color":"#1089B3"}}},vfunnel:{plotarea:{margin:"50 100"},SCALE:{"line-width":0,tick:{"line-width":0},"minor-tick":{"line-width":0},guide:{"line-width":1,"line-style":"solid","line-color":"#CDCDCD","line-segment-size":6,"line-gap-size":6,alpha:1},"minor-guide":{"line-width":0}},"scale-x":{visible:!1,guide:{visible:0}},"scale-y":{guide:{"background-color":"-1",alpha:1}},"scale-y-n":{guide:{"background-color":"-1"}},plot:{"border-width":1,"border-color":"#fff",shadow:0,"hover-state":{"line-color":"-1","border-color":"-1"}}},hfunnel:{plotarea:{margin:"50 100"},"scale-x":{visible:!1,guide:{visible:0},label:{"font-angle":270}},"scale-x-n":{label:{"font-angle":90}},SCALE:{"line-width":0,tick:{"line-width":0},"minor-tick":{"line-width":0},guide:{"line-width":1,"line-style":"solid","line-color":"#CDCDCD","line-segment-size":6,"line-gap-size":6,alpha:1},"minor-guide":{"line-width":0}},"scale-y":{guide:{"background-color":"-1",alpha:1},label:{"font-angle":0},item:{"text-align":"center"}},"scale-y-n":{label:{"font-angle":0},item:{"text-align":"center"},guide:{"background-color":"-1"}},plot:{"border-width":1,"border-color":"#fff",shadow:0,"hover-state":{"line-color":"-1","border-color":"-1"}}},range:{plot:{"background-color":"%palette-1",marker:{type:"circle",size:4},"hover-marker":{size:5}}},line3d:{SCALE:{"line-color":"#ddd",tick:{visible:!1}},plot:{"border-width":0,"line-width":1}},area3d:{SCALE:{"line-color":"#ddd",tick:{visible:!1}},plot:{"border-width":0,"line-width":1}},mixed3d:{SCALE:{"line-color":"#ddd",tick:{visible:!1}},plot:{"border-width":1}},vbar3d:{SCALE:{"line-color":"#ddd",tick:{visible:!1}},plot:{"border-width":1}},hbar3d:{SCALE:{"line-color":"#ddd",tick:{visible:!1}},plot:{"border-width":1}},pie3d:{plot:{"border-width":1}},venn:{plot:{"border-width":0,shadow:0,alpha:.75,"background-color":"%palette-1"}},root:{gui:{"context-menu":{visible:!0,width:"125px",padding:"5 0","background-color":"#595959","border-width":0,"border-color":"#595959",position:"left",button:{visible:ZC.mobile,alpha:0},gear:{"background-color":"#000",type:"hamburger",alpha:1},item:{"background-color":"#595959","text-align":"left",padding:"4 20 4 15","border-width":0,"border-color":"#595959","font-size":"12px",color:"#fff","hover-state":{"background-color":"#414141"}},separator:{"line-width":1,"line-color":"#969696"}},"context-menu[mobile]":{item:{padding:"6 10 6 6"}}}},"-":""},this.O1.light.graph["crosshair-x"]=this.O1.light.graph["crosshair-y"]=this.O1.light.graph.guide,this.O1.dark={},ZC._cp_(this.O1.light,this.O1.dark,!0,!0),ZC._cp_({graph:{"background-color":"#221F1F",title:{color:"#fff"},subtitle:{color:"#fff"},source:{color:"#fff"},SCALE:{"line-color":"#D1D3D4",item:{color:"#D1D3D4"},"ref-line":{"line-color":"#D1D3D4"},guide:{"line-color":"#58595B"},"minor-guide":{"line-color":"#58595B"},tick:{"line-color":"#D1D3D4"},"minor-tick":{"line-color":"#D1D3D4"},label:{color:"#D1D3D4"}},scroll:{bar:{"background-color":"#6C6D70"},handle:{"background-color":"#A7A9AC"}},"scroll-x":{bar:{"border-top":"0px solid none","border-right":"2px solid #D1D3D4","border-bottom":"2px solid #D1D3D4","border-left":"2px solid #D1D3D4"},handle:{"border-top":"none","border-right":"none","border-bottom":"none","border-left":"none"}},"scroll-y":{bar:{"border-top":"2px solid #D1D3D4","border-right":"0px solid none","border-bottom":"2px solid #D1D3D4","border-left":"2px solid #D1D3D4"}},preview:{"background-color":"#221F1F"},tooltip:{"border-color":"#000"},legend:{"background-color":"#221F1F",header:{color:"#fff",shader:{"background-color":"#414042","line-color":"#676667"}},footer:{color:"#D1D3D4","background-color":"#414042","border-top":"0px solid none","border-right":"2px solid #A7A9AC","border-bottom":"2px solid #A7A9AC","border-left":"2px solid #A7A9AC"},shader:{"background-color":"#414042","line-color":"#676667"},icon:{"line-color":"#676667"},"page-status":{color:"#D1D3D4"},"page-on":{"background-color":"#D1D2D3"},"page-off":{"background-color":"#929497"},marker:{"border-color":"#000"},item:{color:"#D1D3D4"}},plot:{marker:{"border-color":"#221F1F"}},guide:{"line-color":"#D1D3D4","scale-label":{"background-color":"#929497"},"plot-label":{"background-color":"#221F1F",color:"#FFF","border-color":"#5a5a5a"}}},line:{plot:{"hover-marker":{"border-color":"#221F1F"}}},area:{plot:{"hover-marker":{"border-color":"#221F1F"}}},vbullet:{plot:{goal:{"border-color":"#221F1F"}}},hbullet:{plot:{goal:{"border-color":"#221F1F"}}},bubble:{plot:{marker:{"border-color":"#221F1F"},"hover-marker":{"border-color":"#221F1F"}}},hbubble:{plot:{marker:{"border-color":"#221F1F"},"hover-marker":{"border-color":"#221F1F"}}},pie:{plot:{"border-color":"#221F1F"}},radar:{plot:{"hover-marker":{"border-color":"#221F1F"}},"scale-k":{guide:{"line-color":"#58595B","background-color":"#221F1F #312F30"},tick:{"line-color":"#D1D3D4"}},"scale-v":{"ref-line":{"line-color":"#58595B"},tick:{"line-color":"#58595B"},guide:{"line-color":"#58595B"}}},gauge:{"scale-r":{guide:{"background-color":"#221F1F"},ring:{"background-color":"#57585B"}}},vfunnel:{SCALE:{guide:{"line-color":"#58595B"}},plot:{"border-color":"#221F1F","hover-state":{"line-color":"#58595B","border-color":"#221F1F"}}},hfunnel:{SCALE:{guide:{"line-color":"#58595B"}},"scale-y":{guide:{alpha:.25,"background-color":"#b6c8cf -1"}},"scale-y-n":{guide:{alpha:.25,"background-color":"#b6c8cf -1"}},plot:{"border-color":"#221F1F","hover-state":{"line-color":"#58595B","border-color":"#221F1F"}}},root:{gui:{"context-menu":{gear:{"background-color":"#FFF"}}}},"-":""},this.O1.dark,!0,!0),this.O1.dark.graph["crosshair-x"]=this.O1.dark.graph["crosshair-y"]=this.O1.dark.graph.guide,this.O1.mini={graph:{title:{width:"100%",padding:"1 2 2","font-size":10},subtitle:{width:"100%",padding:"1 2 2","margin-top":14,"font-size":9},plotarea:{width:"100%",height:"100%",margin:"18 4 4 4"},SCALE:{visible:0},tooltip:{shadow:0,"border-radius":7},legend:{visible:0},preview:{visible:0},guide:{"line-width":1,"line-color":"#ccc",alpha:1,"scale-label":{text:"%l",padding:"3 6"},"plot-label":{"border-color":"#ccc","border-radius":5,padding:"3 6"}},plot:{shadow:0,"value-box":{visible:0},"hover-state":{visible:0},"hover-marker":{visible:0},"max-trackers":99999,"max-nodes":99999}},line:{plot:{"line-width":1,marker:{type:"none"}}},line3d:{"3d-aspect":{depth:20,angle:45,"x-angle":-20,"y-angle":0,"z-angle":0,zoom:.9}},area:{plot:{"line-width":1,marker:{type:"none"}}},area3d:{"3d-aspect":{depth:20,angle:45,"x-angle":-20,"y-angle":0,"z-angle":0,zoom:.9}},scatter:{SCALE:{offset:5},plot:{marker:{size:3,shadow:!1,alpha:.8}}},hscatter:{SCALE:{offset:5},plot:{marker:{size:3,shadow:!1,alpha:.8}}},bubble:{SCALE:{offset:15},plot:{marker:{"fill-type":"none",shadow:!1,alpha:.8},"min-size":3,"max-size":9}},hbubble:{SCALE:{offset:15},plot:{marker:{"fill-type":"none",shadow:!1,alpha:.8},"min-size":3,"max-size":9}},pie:{plotarea:{margin:"18 4 4 4"},plot:{"value-box":{visible:0}},scale:{"size-factor":.95}},pie3d:{plotarea:{margin:"32 4 4 4"},plot:{"value-box":{visible:0}},scale:{"size-factor":1}},nestedpie:{plotarea:{margin:"18 4 4 4"},plot:{"value-box":{visible:0}},scale:{"size-factor":.95}},radar:{plotarea:{margin:"18 4 4 4"},plot:{"line-width":1,marker:{shadow:0,size:2}},scale:{"size-factor":.95}},vbar3d:{"3d-aspect":{depth:20,angle:45,"x-angle":-20,"y-angle":0,"z-angle":0,zoom:.9}},hbar3d:{"3d-aspect":{depth:20,angle:45,"x-angle":0,"y-angle":-20,"z-angle":0,zoom:.9}},venn:{plotarea:{margin:"18 4 4 4"},plot:{"border-width":0}},gauge:{plotarea:{margin:"18 4 4 4"},plot:{indicator:[5]},SCALE:{visible:1},scale:{"size-factor":.9},"scale-r":{"background-color":"-1",aperture:270,tick:{visible:0},item:{visible:0},guide:{visible:0},ring:{size:6,"background-color":"#CDCDCD",items:[]},center:{"border-width":0,size:2,"background-color":"#fff"}}},vfunnel:{plotarea:{margin:"18 4 4 4"}},hfunnel:{plotarea:{margin:"18 4 4 4"}},vbullet:{plot:{"bar-space":.5,goal:{"border-width":0,height:4}}},hbullet:{plot:{"bar-space":.5,goal:{"border-width":0,width:4}}},range:{plot:{"line-width":1,marker:{visible:0},"hover-state":{visible:0}}},"-":""},this.O1.negative={palette:[["#000","#909090","#969696","#9c9c9c"],["#000","#a0a0a0","#a6a6a6","#acacac"],["#000","#b0b0b0","#b6b6b6","#bcbcbc"],["#000","#c0c0c0","#c6c6c6","#cccccc"],["#000","#d0d0d0","#d6d6d6","#dcdcdc"],["#000","#e0e0e0","#e6e6e6","#ececec"],["#000","#f0f0f0","#f6f6f6","#fcfcfc"]],graph:{"background-color":"#111",title:{color:"#fff"},subtitle:{color:"#333"},SCALE:{"font-size":11,"line-width":2,"line-color":"#ccc",guide:{visible:1,"line-width":1,"line-style":"solid","line-color":"#ccc",alpha:.2},"minor-guide":{visible:1,"line-width":1,"line-style":"solid","line-color":"#ccc",alpha:.2},tick:{visible:1,size:6,placement:ZC._[18],"line-width":2,"line-color":"#ccc"},"minor-tick":{visible:1,size:4,placement:ZC._[18],"line-width":1,"line-color":"#ccc"},label:{color:"#fff"},item:{color:"#fff"}}},radar:{"scale-k":{guide:{alpha:.5,"background-color":"#222 #333"}}},"-":""},this.O1.spark=this.O1.mini,this.B8={root:{gui:{behaviors:[{id:"PageScroll",enabled:"all"},{id:"ViewSource",enabled:"all"},{id:"BugReport",enabled:"none"},{id:"LogScale",enabled:"none"},{id:"LinScale",enabled:"none"},{id:"FullScreen",enabled:"none"},{id:"3D",enabled:"none"},{id:"ExportData",enabled:"none"},{id:"SaveAsImageJPG",enabled:"none"},{id:"DownloadCSV",enabled:ZC.ie678?"none":"all"},{id:"DownloadXLS",enabled:ZC.ie678?"none":"all"}],watermark:{type:1,position:"rb"},history:{margin:"10 auto auto 10",width:30,height:22,padding:4,item:{"background-color":"#369","border-width":1,"border-color":"#69c"},"item-off":{"background-color":"#eee","border-color":"#ddd"}},progress:{"background-color":"#fff",color:"#000"},"context-menu":{padding:0,"border-width":1,"border-color":"#000",button:{visible:ZC.mobile,margin:"5 auto auto 5",alpha:.8,"background-color":"#333 #999","border-radius":8,width:40,height:40},gear:{"background-color":"#fff #f6f6f6",type:"gear6",alpha:.8},item:{"background-color":"#36393D","text-align":"left",padding:"4 20 4 8","border-width":1,"border-color":"#000",color:"#fff","hover-state":{"background-color":"#0084AA"}},separator:{"line-width":1,"line-color":"#000000"}},"context-menu[mobile]":{item:{padding:"6 10 6 6"}}}},palette:[],graph:{title:{width:"100%",bold:1,"font-size":13},subtitle:{width:"100%",bold:1,"font-size":11},scroll:{bar:{"background-color":"#e1eaec","border-color":"#ddd"},handle:{"background-color":"#ddd","border-color":"#ccc","border-width":2,"border-top":"2px solid #eee","border-left":"2px solid #eee","border-right":"2px solid #999","border-bottom":"2px solid #999"}},"scroll-x":{bar:{height:16},handle:{height:16}},"scroll-y":{bar:{width:16},handle:{width:16}},"scroll-xi":{bar:{width:16},handle:{width:16}},"scroll-yi":{bar:{height:16},handle:{height:16}},preview:{width:"100%",height:50,margin:"auto 50 20 50","border-width":1,shadow:0,"background-color":"#f0f0f0","border-color":"#999",mask:{alpha:.5,"background-color":"#333"},active:{alpha:.1,"background-color":"#999"},handle:{width:9,height:16,"border-width":1,"line-width":1,"line-color":"#111","border-color":"#444","border-radius":2,"background-color":"#e6e6e6"},"handle-top":{width:16,height:9},"handle-bottom":{width:16,height:9}},"preview[yx]":{width:50,height:"100%",margin:"20 auto 50 20"},plotarea:{width:"100%",height:"100%",margin:"60 50 65 50"},"plotarea[preview]":{margin:"60 50 105 50"},SCALE:{"line-width":1,guide:{"line-width":1,"line-color":"#ddd"},tick:{size:6,"line-width":2},"minor-guide":{"line-width":1,"line-color":"#ddd"},"minor-tick":{size:4,"line-width":1},label:{bold:1,padding:6,flat:!0},item:{padding:2,"auto-align":!0,flat:!0},marker:{"line-width":1,"line-color":"#000","background-color":"#ccc"},"transform[date]":{item:{"font-size":10,padding:2,color:"#000","background-color":"#fff"}}},"SCALE[3d]":{"background-color":"#ccc"},"scale-y[default]":{label:{"font-angle":270},item:{"text-align":"right"}},"scale-y[opposite]":{label:{"font-angle":90},item:{"text-align":"left"}},plot:{error:{"line-width":1,"line-color":"#333",size:.5},"value-box":{flat:!0,text:"%v",bold:1,placement:"auto",shadow:1},"tooltip-text":"%v",shadow:1,"line-width":1,marker:{type:"square",shadow:1},"highlight-state":{shadow:!0,"shadow-blur":2,"shadow-distance":1,"shadow-alpha":.91}},tooltip:{shadow:1,padding:"4 8","shadow-distance":3,"offset-y":ZC.mobile?-40:-20},"tooltip[dynamic]":{padding:"4 8","offset-y":0},guide:{marker:{type:"circle"},"plot-label[single]":{text:'<b style="color:%color">%plot-text:</b> %node-value',padding:10,"background-color":"#fff #eee","border-width":1,"border-color":"#999",color:"#000","text-align":"left"},"plot-label[multiple]":{text:'<b style="color:%color">%plot-text:</b> %node-value',padding:5,"background-color":"#fff #eee","border-width":1,"border-color":"#999",color:"#000","text-align":"left"}},zoom:{"preserve-zoom":1,"border-width":0,"background-color":"#369",alpha:.25,label:{visible:!1,"background-color":"#fff","font-size":10,padding:2,"border-width":1,"border-color":"#999"}},arrow:{"border-width":1,"border-color":"#000","background-color":"#666",size:4},"legend[position]":{margin:10},legend:{"background-color":"#eee",alpha:1,shadow:1,margin:"10 10 auto auto",padding:"4 2 4 2",item:{"text-align":"left",margin:"2 6 2 4",padding:"2 4"},"item-off":{alpha:.25},marker:{shadow:0,size:6,"border-color":"#999","border-width":1},header:{"font-size":12,"text-align":"left",bold:1},footer:{"text-align":"left"},icon:{"line-color":"#000","line-width":1},"page-status":{color:"#000"},"page-on":{"background-color":"#f90"},"page-off":{"background-color":"#999"},scroll:{bar:{width:12,height:12,"background-color":"#e1eaec","border-color":"#ddd"},handle:{width:12,height:12,"background-color":"#ddd","border-color":"#ccc","border-width":2,"border-top":"2px solid #eee","border-left":"2px solid #eee","border-right":"2px solid #999","border-bottom":"2px solid #999"}}}},vbar:{plot:{"value-box":{placement:"top-out"}}},vbar3d:{plot:{"value-box":{placement:"top-out"}},"3d-aspect":{depth:40,angle:45,"x-angle":-20,"y-angle":0,"z-angle":0}},mixed3d:{"3d-aspect":{depth:40,angle:45,"x-angle":-20,"y-angle":0,"z-angle":0}},hbar:{"scale-y":{label:{"font-angle":0},item:{"text-align":"center"}},"scale-y-n":{label:{"font-angle":0},item:{"text-align":"center"}},"scale-x[default]":{label:{"font-angle":270}},"scale-x[opposite]":{label:{"font-angle":90}},plot:{"value-box":{placement:"top-out"}}},vline:{"scale-y":{label:{"font-angle":0},item:{"text-align":"center"}},"scale-y-n":{label:{"font-angle":0},item:{"text-align":"center"}},"scale-x[default]":{label:{"font-angle":270}},"scale-x[opposite]":{label:{"font-angle":90}}},varea:{plot:{"fill-angle":0},"scale-y":{label:{"font-angle":0},item:{"text-align":"center"}},"scale-y-n":{label:{"font-angle":0},item:{"text-align":"center"}},"scale-x[default]":{label:{"font-angle":270}},"scale-x[opposite]":{label:{"font-angle":90}}},hbar3d:{"scale-y":{label:{"font-angle":0}},"scale-x":{label:{"font-angle":270}},"scale-y-n":{label:{"font-angle":0}},"scale-x-n":{label:{"font-angle":90}},"3d-aspect":{depth:40,angle:45,"x-angle":0,"y-angle":-20,"z-angle":0},plot:{"value-box":{placement:"top-out"}}},hbullet:{"scale-y":{label:{"font-angle":0},item:{"text-align":"center"}},"scale-x":{label:{"font-angle":270}},"scale-y-n":{label:{"font-angle":0},item:{"text-align":"center"}},"scale-x-n":{label:{"font-angle":90}}},line:{plot:{"line-width":4,marker:{type:"circle",size:4}}},area:{plot:{"line-width":4,marker:{type:"circle",size:4},"value-box":{placement:"top"}}},line3d:{"3d-aspect":{depth:40,angle:45,"x-angle":-20,"y-angle":0,"z-angle":0},plot:{"border-width":1,"line-width":1,marker:{type:"circle",size:4,alpha:1,visible:0}}},area3d:{"3d-aspect":{depth:40,angle:45,"x-angle":-20,"y-angle":0,"z-angle":0},plot:{"border-width":1,"line-width":1,marker:{type:"circle",size:4,alpha:1,visible:0},"value-box":{placement:"top"}}},scatter:{SCALE:{offset:10},plot:{marker:{type:"circle",size:4},"value-box":{placement:"top"}}},poly:{SCALE:{offset:10},plot:{"alpha-area":.4,marker:{type:"none"},"value-box":{placement:"top"}}},hscatter:{SCALE:{offset:10},"scale-y":{label:{"font-angle":0},item:{"text-align":"center"}},"scale-x":{label:{"font-angle":270}},"scale-y-n":{label:{"font-angle":0},item:{"text-align":"center"}},"scale-x-n":{label:{"font-angle":90}},plot:{marker:{type:"circle",size:4},"value-box":{placement:"top"}}},bubble:{SCALE:{offset:40},plot:{marker:{type:"circle","fill-type":"radial","fill-offset-x":-.2,"fill-offset-y":-.2},"hover-marker":{"fill-type":"radial","fill-offset-x":-.2,"fill-offset-y":-.2},"value-box":{placement:"middle",text:"%node-size-value"},"tooltip-text":"%node-size-value"}},hbubble:{SCALE:{offset:40},"scale-y":{label:{"font-angle":0},item:{"text-align":"center"}},"scale-x":{label:{"font-angle":270}},"scale-y-n":{label:{"font-angle":0},item:{"text-align":"center"}},"scale-x-n":{label:{"font-angle":90}},plot:{marker:{type:"circle","fill-type":"radial","fill-offset-x":-.2,"fill-offset-y":-.2},"hover-marker":{"fill-type":"radial","fill-offset-x":-.2,"fill-offset-y":-.2},"value-box":{placement:"middle",text:"%node-size-value"},"tooltip-text":"%node-size-value"}},hmixed:{"scale-y":{label:{"font-angle":0},item:{"text-align":"center"}},"scale-x":{label:{"font-angle":270}},"scale-y-n":{label:{"font-angle":0},item:{"text-align":"center"}},"scale-x-n":{label:{"font-angle":90}}},pie:{plotarea:{margin:"35 5 5 5"},scale:{"size-factor":"auto","line-width":0,guide:{"line-width":0},"minor-guide":{"line-width":0}},plot:{"fill-type":"radial","value-box":{connector:{"line-width":1},placement:"out",text:"%t",visible:1}}},pie3d:{"3d-aspect":{"x-angle":38,"y-angle":0,"z-angle":0},plotarea:{margin:"25 5 5 5"},scale:{"size-factor":"auto","line-width":0,guide:{"line-width":0},"minor-guide":{"line-width":0}},plot:{"fill-type":"linear","value-box":{connector:{"line-width":1},placement:"out",text:"%t",visible:1}}},nestedpie:{plotarea:{margin:"40 5 15 5"},scale:{"size-factor":.8,"line-width":0,guide:{"line-width":0},"minor-guide":{"line-width":0}},plot:{"fill-type":"radial","value-box":{connector:{"line-width":1},text:"%t",visible:1}}},venn:{plotarea:{margin:"30 10 10 10"},plot:{alpha:.5,"border-width":4},scale:{"size-factor":.65,"line-width":0,guide:{"line-width":0},"minor-guide":{"line-width":0}}},radar:{SCALE:{guide:{"line-width":1,"line-color":"#999","background-color":"-1"},tick:{"line-width":1},item:{"auto-align":!1}},scale:{visible:0,"size-factor":.7},"scale-k":{"ref-angle":270},plotarea:{margin:"40 5 5 5"},plot:{"line-width":4,aspect:"line",marker:{type:"circle"}}},gauge:{SCALE:{guide:{"border-width":1,"border-color":"#999","background-color":"-1"}},scale:{"line-width":0,guide:{"line-width":0},"minor-guide":{"line-width":0},"size-factor":.7},"scale-r":{"ref-angle":270,"background-color":"#fff",guide:{"line-width":0},tick:{placement:"inner"},item:{"offset-r":"-45%"}},plot:{size:"85%"},plotarea:{margin:"40 5 5 5"}},stock:{plot:{"line-width":1,"border-width":1,"tooltip-text":"Open: $%open<br>High: $%high<br>Low: $%low<br>Close: $%close"}},range:{plot:{"line-width":2,"value-box":{text:"%node-min-value - %node-max-value"},"tooltip-text":"%node-min-value - %node-max-value"}},"-":""},this.PZ=function(e,t){var i,a=this,n=!1;return null!==ZC._n_(i=a.B8.graph[e])&&null!==ZC._n_(i.enabled)&&(n=n||ZC._b_(i.enabled)),null!==ZC._n_(a.B8[t])&&null!==ZC._n_(i=a.B8[t][e])&&null!==ZC._n_(i.enabled)&&(n=n||ZC._b_(i.enabled)),n},this.load=function(e,t,i,a){var n,l,r,o=this;i=null===ZC._n_(i)||ZC._b_(i),a=null!==ZC._n_(a)&&ZC._b_(a),t instanceof Array||(t=new Array(t));var s=[],C="";for(l=0,r=t.length;l<r;l++)if(/(\(\w+\))(.*)/.test(t[l])){var A=RegExp.$1;C=t[l].replace(A,"graph"),-1===ZC.AV(s,C)&&s.push(C),C=t[l].replace(A,A.substring(1,A.length-1)),-1===ZC.AV(s,C)&&s.push(C)}else-1===ZC.AV(s,t[l])&&s.push(t[l]),/root(.*)/.test(t[l])&&-1===ZC.AV(s,t[l].replace("root","loader"))&&s.push(t[l].replace("root","loader")),/loader(.*)/.test(t[l])&&-1===ZC.AV(s,t[l].replace("loader","root"))&&s.push(t[l].replace("loader","root"));var Z={};for(l=0,r=s.length;l<r;l++){for(var c=s[l].split("."),p=o.B8,u=0,h=c.length;u<h;u++)if(null!==ZC._n_(n=p[c[u]]))p=n;else if(null!==ZC._n_(n=p[ZC.V6(c[u])]))p=n;else{if(null===ZC._n_(n=p[ZC.EE(c[u])])){p=null;break}p=n}if(p)for(var _ in p)null!==ZC._n_(p[_])&&(a||"object"!=typeof p[_]||p[_].length)&&(i||null===ZC._n_(e[_])?o.G.QW&&null!==ZC._n_(o.G.QW[_])||(Z[_]=p[_]):i&&"object"==typeof p[_]&&(o.G.QW&&null!==ZC._n_(o.G.QW[_])||(Z[_]=p[_])))}ZC._cp_(Z,e)}},ZC.AP={AGU:function(e,t){for(var i=[],a=0,n=e.p.length;a<n;a++)if(e.p[a]){var l=(e.p[a][0]-e.x)/e.w,r=(e.p[a][1]-e.y)/e.h;i.push([t.x+t.w*l,t.y+t.h*r])}else i.push(null);return{l:t.w*e.l/e.w,r:t.w*e.r/e.w,p:i}},ACL:function(e,t,i){var a=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.src=t+"?v"+ZC.VERSION;var l=!1;n.onload=n.onreadystatechange=function(){if(!(l||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState)){l=!0,n.onload=n.onreadystatechange=null,a&&n.parentNode&&a.removeChild(n);var e=new RegExp("zingchart-(.+?).min.js","g").exec(t);e&&ZC.X1.push(e[1]),i&&i(t)}},n.onerror=function(){!e&&zingchart.I5[0]&&(e=zingchart.I5[0]),e?e.NL({name:ZC._[63],message:"Resource not found ("+n.src+")"},"Module loader"):alert("Resource not found ("+n.src+")")},a.insertBefore(n,a.firstChild)},_rcolor_:function(){return"#"+ZC.Y8.md5(ZC._r_(0,99999)).substr(ZC._r_(0,20),6)},XF:function(){},A8X:function(e,t){return zingchart[e]||t&&t.A1L&&t.A1L[e]||zingchart.hasEvent(null,e)||t&&zingchart.hasEvent(t.K,e)},C0:function(e,t,i,a,n){i instanceof Array||(i=[i]);var l=1;return null!==ZC._n_(a)&&i.push(a),n&&(l=2,i.push(n)),"touchstart"===e&&(e=ZC._[47]),"touchend"===e&&(e=ZC._[49]),"touchmove"===e&&(e=ZC._[48]),zingchart[e]&&"render"!==e&&(null!==ZC._n_(a)?i[i.length-l]=zingchart[e].apply(zingchart,i):zingchart[e].apply(zingchart,i)),t&&t.A1L[e]&&(null!==ZC._n_(a)?i[i.length-l]=t.A1L[e].apply(zingchart,i):t.A1L[e].apply(zingchart,i)),zingchart.hasEvent(null,e)&&(null!==ZC._n_(a)?i[i.length-l]=zingchart.callEvent(null,e,i,a):zingchart.callEvent(null,e,i)),t&&zingchart.hasEvent(t.K,e)&&(null!==ZC._n_(a)?i[i.length-l]=zingchart.callEvent(t.K,e,i,a):zingchart.callEvent(t.K,e,i)),i[i.length-l]},OG:function(e,t){if(t.A9%360!=0){for(var i=[[-t.I/2,-t.F/2],[t.I/2,-t.F/2],[t.I/2,t.F/2],[-t.I/2,t.F/2]],a="",n=0;n<4;n++)i[n]=[t.iX+t.I/2+t.BL+ZC.MAPTX+i[n][0]*ZC.EH(t.A9)-i[n][1]*ZC.EN(t.A9),t.iY+t.F/2+t.BH+ZC.MAPTX+i[n][0]*ZC.EN(t.A9)+i[n][1]*ZC.EH(t.A9)],a+=ZC._i_(i[n][0])+","+ZC._i_(i[n][1])+",";return t.E=i,ZC.Q.GJ("poly",t.E8,t.IZ)+'class="'+e+'-label-area zc-label-area" id="'+t.K+"-area"+ZC._[30]+a.substring(0,a.length-1)+'" />'}return ZC.Q.GJ("rect",t.E8,t.IZ)+'class="'+e+'-label-area zc-label-area" id="'+t.K+"-area"+ZC._[30]+ZC._i_(t.iX+t.BL+ZC.MAPTX)+","+ZC._i_(t.iY+t.BH+ZC.MAPTX)+","+ZC._i_(t.iX+t.BL+t.I+ZC.MAPTX)+","+ZC._i_(t.iY+t.BH+t.F+ZC.MAPTX)+'" />'},NC:function(e){var t,i="",a=e.indexOf('id="');if(-1!==a){var n=e.indexOf('"',a+4);-1!==n&&(i=e.substring(a+4,n))}if(ZC.cache.data["area-score-"+i])return ZC.cache.data["area-score-"+i];var l=0;if(-1!==e.indexOf('shape="rect"')?(l+=1e4,5===(t=/coords=\"(\-*\d+),(\-*\d+),(\-*\d+),(\-*\d+)\"/.exec(e)).length&&(l+=(ZC._i_(t[3])-ZC._i_(t[1]))*(ZC._i_(t[4])-ZC._i_(t[2])))):-1!==e.indexOf('shape="circle"')?(l+=100,t=/coords=\"(\-*\d+),(\-*\d+),(\-*\d+)\"/.exec(e),null!==ZC._n_(t[3])&&(l+=ZC._i_(t[3])/10)):-1!==e.indexOf('shape="poly"')?-1!==e.indexOf("data-map")?l+=1e6:l+=1e3:l+=1,-1!==e.indexOf("data-z-sort")){var r=/data-z-sort=\"(\-*\d+)\"/.exec(e);r&&2===r.length&&(l*=ZC._i_(Math.pow(10,ZC._i_(r[1]))))}return""!==i&&ZC.cache.add("area-score-"+i,l),l},A66:function(e,t,i){for(var a=[],n=0,l=e.length;n<l;n++)if(null!==ZC._n_(e[n])){var r=e[n].slice(0);null!==ZC._n_(r[0])&&"string"!=typeof r[0]&&(r[0]+=t),null!==ZC._n_(r[1])&&"string"!=typeof r[1]&&(r[1]+=i),null!==ZC._n_(r[2])&&"string"!=typeof r[2]&&r.length<=4&&(r[2]+=t),null!==ZC._n_(r[3])&&"string"!=typeof r[3]&&r.length<=4&&(r[3]+=i),a.push(r)}else a.push(null);return a},OF:function(e,t){var i;t=t||{},e=e||{};var a={};if(null!==ZC._n_(i=e.negation)&&(a.negation=i),null!==ZC._n_(i=e.short)&&(a.short=ZC._b_(i)),null!==ZC._n_(i=e["short-unit"])&&(a["short-unit"]=i),null!==ZC._n_(i=e.exponent)&&(a.exponent=ZC._b_(i)),null!==ZC._n_(i=e[ZC._[25]])&&(a[ZC._[25]]=ZC._i_(i)),null!==ZC._n_(i=e[ZC._[14]])?a[ZC._[14]]=i:null===ZC._n_(t[ZC._[14]])&&null!==ZC._n_(i=ZC.HN[ZC._[14]])&&(a[ZC._[14]]=i),null!==ZC._n_(i=e[ZC._[13]])?a[ZC._[13]]=i:null===ZC._n_(t[ZC._[13]])&&null!==ZC._n_(i=ZC.HN[ZC._[13]])&&(a[ZC._[13]]=i),null!==ZC._n_(i=e[ZC._[12]])&&(a[ZC._[12]]=ZC._i_(i)),null!==ZC._n_(i=e["decimals-dyn"])&&(a["decimals-dyn"]=i),null!==ZC._n_(i=e.transform)&&null!==ZC._n_(i.type))switch(i.type){case"date":a[ZC._[68]]=!0,null!==ZC._n_(i.text)&&(i.all=i.text),null!==ZC._n_(i.all)&&(a[ZC._[67]]=i.all)}return a},G3:function(e,t,i,a){var n,l=e,r=e+"",o=!1;if(a&&null!==ZC._n_(t[ZC._[68]])&&t[ZC._[68]]&&""+Number(r)===r&&(r=ZC.AP.YY(Number(r),t[ZC._[67]],t.utc,t.timezone),o=!0),null===ZC._n_(t[ZC._[14]])&&null!==ZC._n_(e=ZC.HN[ZC._[14]])&&(t[ZC._[14]]=e),null===ZC._n_(t[ZC._[13]])&&null!==ZC._n_(e=ZC.HN[ZC._[13]])&&(t[ZC._[13]]=e),null!==ZC._n_(t[ZC._[12]])&&-1!==t[ZC._[12]]&&typeof t["max-decimals"]!==ZC._[31]&&-1!==t["max-decimals"]&&(t[ZC._[12]]=ZC.BQ(t["max-decimals"],t[ZC._[12]])),!o)if(null!==ZC._n_(t.exponent)&&t.exponent)r=Number(r).toExponential(ZC.CX(20,t[ZC._[25]])),null!==ZC._n_(t[ZC._[14]])&&(r=r.replace(/\./g,t[ZC._[14]]));else{if(null!==ZC._n_(t.short)&&t.short){n="";var s=t["short-unit"]||"";if("string"!=typeof s&&s.length){""+ZC._f_(s[0])!==s[0]&&(s=[1e3].concat(s));for(var C=1,A=s[0]||1e3,Z=s.slice(1),c=null,p=0;p<Z.length;p++)0===Z[p].indexOf("#")&&(c=p,Z[p]=Z[p].substring(1));if(Z.length){if(null!==c)C=c;else if(null!==ZC._n_(t["max-power"]))C=t["max-power"];else{var u=ZC.G6(ZC._a_(Number(r)),A);C=Math.floor(u),C=ZC.CX(C,Z.length-1)}n=Z[C];var h=(r=""+Number(r)/Math.pow(A,C)).split(".");2===h.length&&h[1].length>=9&&(r=null!==ZC._n_(t[ZC._[12]])&&-1!==t[ZC._[12]]?""+ZC._x_(r,t[ZC._[12]]):""+ZC._x_(r))}}else{var _=ZC.G6(ZC._a_(Number(r)))/Math.LN10;switch(ZC._a_(Number(r))){case 1e3:_=3;break;case 1e6:_=6;break;case 1e9:_=9}if(null!==ZC._n_(t["max-power"])&&(_=3*t["max-power"]),"KB"===s.toUpperCase())r=""+Number(r)/1024,n="KB";else if("MB"===s.toUpperCase())r=""+Number(r)/1048576,n="MB";else if("GB"===s.toUpperCase())r=""+Number(r)/1073741824,n="GB";else if("TB"===s.toUpperCase())r=""+Number(r)/1099511627776,n="TB";else if("PB"===s.toUpperCase())r=""+Number(r)/0x4000000000000,n="PB";else if(_>=0&&_<3)switch(s){default:r=r,n="";break;case"K":r=""+Number(r)/1e3,n="K";break;case"M":r=""+Number(r)/1e6,n="M";break;case"B":r=""+Number(r)/1e9,n="B"}else _>=3&&_<6&&""===s||"K"===s.toUpperCase()?(r=""+Number(r)/1e3,n="K"):_>=6&&_<9&&""===s||"M"===s.toUpperCase()?(r=""+Number(r)/1e6,n="M"):(_>=9&&""===s||"B"===s.toUpperCase())&&(r=""+Number(r)/1e9,n="B")}if(ZC.PN(r))if(null!==ZC._n_(t[ZC._[12]])&&-1!==t[ZC._[12]])r=ZC._fixed_(Number(r),ZC.BQ(0,ZC._i_(t[ZC._[12]])));else{var d=r.split(".")[1]||"";-1!==t["max-decimals"]&&t["max-decimals"]<d.length&&(r=ZC._fixed_(Number(r),ZC.BQ(0,ZC._i_(t["max-decimals"]))))}null!==ZC._n_(t[ZC._[14]])&&(r=r.replace(/\./g,t[ZC._[14]]))}var f=i?i.K:"";if(!isNaN(r)&&("string"!=typeof l||-1===f.indexOf("-scale-"))){if(null!==ZC._n_(t[ZC._[12]])&&-1!==t[ZC._[12]]&&ZC.PN(r)&&(null!==ZC._n_(t.short)&&t.short||(r=ZC._fixed_(Number(r),ZC.BQ(0,ZC._i_(t[ZC._[12]]))))),null!==ZC._n_(t[ZC._[13]])||null!==ZC._n_(t[ZC._[14]])){for(var g=r.split("."),B="",v=0,m=g[0].length;v<m;v++){var b=g[0].substring(v,v+1);B+=b,-1===ZC.AV(["-","+"],b)&&(g[0].length-v-1)%3==0&&g[0].length-v-1!=0&&(B+=t[ZC._[13]])}r=B+(null!==ZC._n_(g[1])?t[ZC._[14]]+g[1]:"")}null!==ZC._n_(t.short)&&t.short&&(r+=n)}}return r},AAX:function(e){var t=e.indexOf("("),i="",a="";-1!==t?(i=ZC.GX(e.substring(0,t)),a=ZC.GX(e.substring(t+1,e.length-1))):i=ZC.GX(e);var n=[],l="";if(""!==a){var r=!1,o=!1,s=!1;l="";for(var C=0,A=a.length;C<A;C++){var Z=a.substring(C,C+1);switch(Z){case"\\":s?(l+="\\",s=!1):s=!0;break;case'"':s?(l+='"',s=!1):o?(n.push(l),l="",o=!1):r?l+=Z:o=!0;break;case"'":s?(l+="'",s=!1):r?(n.push(l),l="",r=!1):o?l+=Z:r=!0;break;case" ":(r||o)&&(l+=Z);break;case",":r||o?l+=Z:(""!==l&&n.push(l),l="");break;default:l+=Z}}}return""!==l&&n.push(l),[i,n]},A61:function(e){return e.toString().replace(/^([0-9])$/,"0$1")},YY:function(e,t,i,a){e=ZC._i_(e),t=t||ZC.HN["date-formats"].minute,typeof i===ZC._[31]&&(i=!1),typeof a===ZC._[31]&&(a=0),i&&(e+=36e5*a);var n,l,r,o,s,C,A,Z,c=new Date;c.setTime(e),i?(n=c.getUTCHours(),l=c.getUTCMinutes(),r=c.getUTCSeconds(),o=c.getUTCMilliseconds(),s=c.getUTCDay(),C=c.getUTCDate(),A=c.getUTCMonth(),Z=c.getUTCFullYear()):(n=c.getHours(),l=c.getMinutes(),r=c.getSeconds(),o=c.getMilliseconds(),s=c.getDay(),C=c.getDate(),A=c.getMonth(),Z=c.getFullYear());for(var p=[["mm",ZC.AP.A61(A+1)],["dd",ZC.AP.A61(C)],["Y",Z],["y",Z.toString().substr(2,2)],["F",ZC.HN["months-long"][A]],["m",A+1],["M",ZC.HN["months-short"][A]],["n",A],["d",C],["D",ZC.HN["days-short"][s]],["j",C],["l",ZC.HN["days-long"][s]],["N",s+1],["w",s],["S",function(){return C%10==1?"st":C%10==2?"nd":C%10==3?"rd":"th"}],["a",n<12?"am":"pm"],["A",n<12?"AM":"PM"],["g",n%12||12],["G",n],["h",ZC.AP.A61(n%12||12)],["H",ZC.AP.A61(n)],["i",ZC.AP.A61(l)],["s",ZC.AP.A61(r)],["q",o]],u=0;u<p.length;u++)t=t.replace("%"+p[u][0],p[u][1]);return t},A0V:{},ZP:function(e,t){var i=null;if(t&&t.BP?i=t.BP:t&&t.A&&t.A.BP&&(i=t.A.BP),"string"==typeof e&&-1!==e.indexOf("%color-")&&ZC.COLORS.length>0)for(var a=0;a<ZC.COLORS.length;a++)-1===e.indexOf("(+")&&-1===e.indexOf("(-")||(e=e.replace(/%color-(\d+?)\((\+|\-)(\d+?)\)/gi,function(){var e=ZC.AP.GD(ZC.COLORS[ZC._i_(arguments[1])]);return"+"===arguments[2]?e=ZC.AP.RB(e,ZC._i_(arguments[3])):"-"===arguments[2]&&(e=ZC.AP.JQ(e,ZC._i_(arguments[3]))),e})),e=e.replace("%color-"+a,ZC.COLORS[a]);else"string"==typeof e&&i&&-1!==e.indexOf("%palette-")&&(e=i[ZC._i_(e.replace("%palette-",""))]);return e},GD:function(e,t){var i,a,n,l;if(null!==ZC._n_(ZC.AP.A0V[e]))return ZC.AP.A0V[e];var r=ZC.GX(String(e)),o=1,s=!1;return 0===r.length?"":("rgba("===(r=r.replace("0x","#")).substring(0,5)?(i=new RegExp("rgba\\((\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3}),\\s*([0-9.]+)\\)","gi").exec(r))&&(1===(a=ZC.P7(i[1])).length&&(a="0"+a),1===(n=ZC.P7(i[2])).length&&(n="0"+n),1===(l=ZC.P7(i[3])).length&&(l="0"+l),r="#"+a+n+l,o=ZC.BQ(0,ZC.CX(1,parseFloat(i[4]))),s=!0):"rgb("===r.substring(0,4)?(i=new RegExp("rgb\\((\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3})\\)","gi").exec(r))&&(1===(a=ZC.P7(i[1])).length&&(a="0"+a),1===(n=ZC.P7(i[2])).length&&(n="0"+n),1===(l=ZC.P7(i[3])).length&&(l="0"+l),r="#"+a+n+l):"#"===r.substring(0,1)?4===r.length?r="#"+r.substring(1,2)+r.substring(1,2)+r.substring(2,3)+r.substring(2,3)+r.substring(3,4)+r.substring(3,4):7!==r.length&&(r=""):null!==ZC._n_(ZC.Q.AA1[r.toUpperCase()])&&(r="#"+ZC.Q.AA1[r.toUpperCase()]),"none"!==r&&"transparent"!==r||(r="-1"),t||(ZC.AP.A0V[e]=r),t&&s?[r,o]:r)},A1T:{},A3Q:function(e,t){if(-1===e&&(e="#ffffff",t=0),null!==ZC._n_(ZC.AP.A1T[e+","+t]))return ZC.AP.A1T[e+","+t];4===e.length&&(e=e.substring(0,1)+e.substring(1,2)+e.substring(1,2)+e.substring(2,3)+e.substring(2,3)+e.substring(3,4)+e.substring(3,4));var i="rgba("+[ZC.RA(e.substring(1,3)),ZC.RA(e.substring(3,5)),ZC.RA(e.substring(5,7)),t].join(",")+")";return ZC.AP.A1T[e+","+t]=i,i},AD6:function(e,t,i){e/=255,t/=255,i/=255;var a,n,l,r=Math.max(e,t,i),o=Math.min(e,t,i);l=r;var s=r-o;if(n=0===r?0:s/r,r===o)a=0;else{switch(r){case e:a=(t-i)/s+(t<i?6:0);break;case t:a=(i-e)/s+2;break;case i:a=(e-t)/s+4}a/=6}return[a,n,l]},AD7:function(e,t,i){var a,n,l,r=Math.floor(6*e),o=6*e-r,s=i*(1-t),C=i*(1-o*t),A=i*(1-(1-o)*t);switch(r%6){case 0:a=i,n=A,l=s;break;case 1:a=C,n=i,l=s;break;case 2:a=s,n=i,l=A;break;case 3:a=s,n=C,l=i;break;case 4:a=A,n=s,l=i;break;case 5:a=i,n=s,l=C}return[255*a,255*n,255*l]},JQ:function(e,t){if(-1===e)return-1;if(t>=100)return"#000000";e=ZC.AP.GD(e),typeof t===ZC._[31]&&(t=10);var i=ZC.RA(e.substring(1,3)),a=ZC.RA(e.substring(3,5)),n=ZC.RA(e.substring(5,7)),l=ZC.AP.AD6(i,a,n);l[2]=t>0?Math.max(0,l[2]-l[2]*t/100):Math.min(1,l[2]-l[2]*t/100);var r=ZC.AP.AD7(l[0],l[1],l[2]);return r[0]=ZC._i_(r[0])<16?"0"+ZC.P7(r[0]):ZC.P7(r[0]),r[1]=ZC._i_(r[1])<16?"0"+ZC.P7(r[1]):ZC.P7(r[1]),r[2]=ZC._i_(r[2])<16?"0"+ZC.P7(r[2]):ZC.P7(r[2]),e="#"+r[0]+r[1]+r[2]},RB:function(e,t){if(-1===e)return-1;if(t>=100)return"#ffffff";e=ZC.AP.GD(e),typeof t===ZC._[31]&&(t=10);var i=parseInt(e.substr(1,2),16),a=parseInt(e.substr(3,2),16),n=parseInt(e.substr(5,2),16);return"#"+(0|256+i+(256-i)*t/100).toString(16).substr(1)+(0|256+a+(256-a)*t/100).toString(16).substr(1)+(0|256+n+(256-n)*t/100).toString(16).substr(1)},_hex2rgb_:function(e,t){var i=parseInt(e.substr(1,2),16),a=parseInt(e.substr(3,2),16),n=parseInt(e.substr(5,2),16);return ZC._n_(t)?"rgb("+i+","+a+","+n+")":{r:i,g:a,b:n}},_rgb2hex_:function(e,t,i){return"#"+((1<<24)+(e<<16)+(t<<8)+i).toString(16).slice(1)},AAO:function(e,t,i){var a=ZC.AP._hex2rgb_(e);return(299*a.r+587*a.g+114*a.b)/1e3>=128?i:t},_colorAlpha_:function(e,t,i){e=ZC.AP.GD(e),t=ZC.AP.GD(t);var a=ZC.AP._hex2rgb_(e),n=ZC.AP._hex2rgb_(t),l={};for(var r in a)l[r]=Math.floor(i*a[r]+(1-i)*n[r]);return ZC.AP._rgb2hex_(l.r,l.g,l.b)},A4K:function(){},AC0:function(){},gc:function(e,t){var i;for(i=0;i<t.length;i++)e[t[i]]=null;for(i in e)0===i.indexOf("zc_")&&"function"==typeof e[i]&&(e[i]=null)}},ZC.Q={AA1:{BLACK:"000000",BLUE:"0000FF",BROWN:"A52A2A",CYAN:"00FFFF",FUCHSIA:"FF00FF",GOLD:"FFD700",GRAY:"808080",GREEN:"008000",INDIGO:"4B0082",LIME:"00FF00",MAGENTA:"FF00FF",MAROON:"800000",NAVY:"000080",ORANGE:"FFA500",PINK:"FFC0CB",PURPLE:"800080",RED:"FF0000",SILVER:"C0C0C0",TURQUOISE:"40E0D0",VIOLET:"EE82EE",WHITE:"FFFFFF",YELLOW:"FFFF00"},GJ:function(e,t,i){return"<area"+(i&&!t&&"hand"!==i?' style="cursor:'+i+'"':"")+(t&&"arrow"!==i||"hand"===i?' href="javascript:;"':"")+' shape="'+e+'" '},ABQ:function(e){var t;if(ZC.A5.browser.msie)try{t=document.createElement("<iframe />")}catch(o){t=document.createElement("iframe")}else t=document.createElement("iframe");t.id=e.id+"-iframe",t.style.visibility="hidden",e.appendChild(t);var i=null,a=t.contentWindow||t.contentDocument;if(!(i=a.document?a.document:a).body){var n=i.createElement("HTML");i.appendChild(n);var l=i.createElement("HEAD");n.appendChild(l);var r=i.createElement("BODY");n.appendChild(r)}return i},BX:function(e){var t;if(typeof ZC.TOUCHEVENTS===ZC._[31]){if(ZC.ie678)t=!1;else{t=!0;try{document.createEvent("TouchEvent")}catch(i){t=!1}}t&&!ZC.mobile&&(t=!1),t&&(t="ontouchstart"in document.documentElement),ZC.TOUCHEVENTS=t}else t=ZC.TOUCHEVENTS;if(t)switch(e){case"mouseover":case"mousedown":e="touchstart";break;case"mousemove":e="touchmove";break;case"mouseout":case"mouseup":e="touchend";break;case"click":e="touchstart"}return e},_sh_:function(e,t){var i,a,n,l=[],r=t.JX,o=t.OR,s=t.PF,C=r-s/2;if(e.length>0){var A=0,Z=0;for(0!==r&&(A=ZC._i_(C*ZC.EH(o)+s),Z=ZC._i_(C*ZC.EN(o)+s)),i=0,a=e.length;i<a;i++)if(null!==ZC._n_(e[i])){var c=[];for(n=0;n<e[i].length;n++)c[n]=e[i][n];var p=c.length;if(2===p||4===p)for(n=0;n<p;n++)c[n]=e[i][n]+(n%2?Z+ZC._c_(t.BH,0):A+ZC._c_(t.BL,0));l.push(c)}else l.push(null)}return l},_txp_:function(e,t,i,a,n){typeof n===ZC._[31]&&(n=!1);var l,r,o=[e[0],e[1]];switch(e.length>=4&&(o[2]=e[2],o[3]=e[3]),e.length>=6&&(o[4]=e[4],o[5]=e[5]),7===e.length&&(o[6]=e[6]),t){case"canvas":case"svg":var s,C;if(i.CY)s=C=i.AZ%2==1?.5:0,ZC.A5.browser.msie&&ZC.quirks&&"svg"===t&&(s=i.AZ%2==1?.5:0,C=i.AZ%2==1?0:.5),o[0]=Math.round(o[0])-s,o[1]=Math.round(o[1])-C,4===o.length&&(o[2]=Math.round(o[2])-s,o[3]=Math.round(o[3])-C);"svg"===t&&(o[0]=parseFloat(o[0].toFixed(4)),o[1]=parseFloat(o[1].toFixed(4)),4===o.length&&(o[2]=parseFloat(o[2].toFixed(4)),o[3]=parseFloat(o[3].toFixed(4)))),"canvas"!==t||a||typeof i.BL!==ZC._[31]&&typeof i.BH!==ZC._[31]&&(o[0]+=i.BL,o[1]+=i.BH,4===o.length&&(o[2]+=i.BL,o[3]+=i.BH));break;case"vml":i.A9%360==0?(l=10,r=i.AZ%2==1?0:l/2):(l=1,r=0),i.CY?(o[0]=l*ZC._i_(ZC._i_(l*o[0])/l)-r,o[1]=l*ZC._i_(ZC._i_(l*o[1])/l)-r,4!==o.length&&7!==o.length||(o[2]=l*ZC._i_(ZC._i_(l*o[2])/l)-r,o[3]=l*ZC._i_(ZC._i_(l*o[3])/l)-r),7===o.length&&(o[4]=l*ZC._i_(ZC._i_(l*o[4])/l)-r,o[5]=l*ZC._i_(ZC._i_(l*o[5])/l)-r)):(o[0]=ZC._i_(l*o[0]),o[1]=ZC._i_(l*o[1]),4!==o.length&&7!==o.length||(o[2]=ZC._i_(l*o[2]),o[3]=ZC._i_(l*o[3])),7===o.length&&(o[4]=ZC._i_(l*o[4]),o[5]=ZC._i_(l*o[5])))}return o},A3O:function(e,t,i,a,n){var l,r,o,s,C,A,Z;if(i.R3&&(i.D["fast-vector-path"]=!0),!i.D["fast-vector-path"]){for(l=0,r=e.length;l<r;l++)e[l]&&(e[l][0]=parseFloat(Number(e[l][0]).toFixed(2)),e[l][1]=parseFloat(Number(e[l][1]).toFixed(2)));if(i.OH&&(Z=i.K+":"+i.A9+":"+e.join("#"),ZC.cache.data["path-points-"+Z]))return ZC.cache.data["path-points-"+Z].split("#")}var c=[ZC.MAX,ZC.MAX,-ZC.MAX,-ZC.MAX],p=[],u=!1;for(l=0,r=e.length;l<r;l++)if(null!==ZC._n_(e[l])){if(i.D["fast-vector-path"]){if(o=e[l],"vml"===t){var h=i.A9%360==0?10:1;o[0]=ZC._i_(h*o[0]),o[1]=ZC._i_(h*o[1]),4===o.length&&(o[2]=ZC._i_(h*o[2]),o[3]=ZC._i_(h*o[3]))}}else o=ZC.Q._txp_(e[l],t,i,a,n);if(null!==ZC._n_(o)&&!isNaN(o[0])&&!isNaN(o[1])&&isFinite(o[0])&&isFinite(o[1]))if(r<=20&&a&&(c[0]=ZC.CX(c[0],o[0]/("vml"===t?10:1)),c[1]=ZC.CX(c[1],o[1]/("vml"===t?10:1)),c[2]=ZC.BQ(c[2],o[0]/("vml"===t?10:1)),c[3]=ZC.BQ(c[3],o[1]/("vml"===t?10:1))),0===l)p.push(("svg"===t?"M ":"m ")+o[0]+" "+o[1]);else if(u&&(p.push(("svg"===t?"M ":"m ")+o[0]+" "+o[1]),u=!1),2===o.length)p.push(("svg"===t?"L ":"l ")+o[0]+" "+o[1]);else if(4===o.length)p.push(("svg"===t?"Q ":"qb ")+o[0]+" "+o[1]+" "+o[2]+" "+o[3]),"vml"===t&&p.push("l "+o[2]+" "+o[3]);else if(6===o.length)if("svg"===t){var _=0;o[3]%360==o[4]%360&&(_=o[4]>=o[3]?.001:-.001),s=ZC.AQ.BM(o[0],o[1],o[2],o[3]+_),C=ZC.AQ.BM(o[0],o[1],o[2],o[4]-_),A="0 0",0===o[5]?o[4]-o[3]>360?(A="0 1",C[0]=s[0],C[1]=s[1]):A=o[4]-o[3]<=180?"0 1":"1 1":o[3]-o[4]>360?(A="0 0",C[0]=s[0],C[1]=s[1]):A=o[3]-o[4]<=180?"0 0":"1 0",p.push("a "+o[2]+","+o[2]+" 0 "+A+" "+(C[0]-s[0])+","+(C[1]-s[1]))}else"vml"===t&&(o[2]*=10,s=ZC.AQ.BM(o[0],o[1],o[2],o[3]),C=ZC.AQ.BM(o[0],o[1],o[2],o[4]),A=1===o[5]?"at":"wa",p.push(A+" "+ZC._i_(o[0]-o[2])+","+ZC._i_(o[1]-o[2])+","+ZC._i_(o[0]+o[2])+","+ZC._i_(o[1]+o[2])+" "+ZC._i_(s[0])+","+ZC._i_(s[1])+" "+ZC._i_(C[0])+","+ZC._i_(C[1])));else 7===o.length&&p.push(("svg"===t?"C ":"c ")+o[0]+" "+o[1]+" "+o[2]+" "+o[3]+" "+o[4]+" "+o[5])}else u=!0;return i.D["fast-vector-path"]||i.OH&&ZC.cache.add("path-points-"+Z,p.join("#")),i.G&&r<=20&&a&&(i.G.D[i.K+"-bounds"]=c),p},MM:function(e,t){var i,a,n=e.originalEvent||e.originalEventZC;return t=ZC._i_(t||"0"),n&&n.touches?n.touches.length>0?(i=n.touches[t].pageX,a=n.touches[t].pageY):n.changedTouches.length>0&&(i=n.changedTouches[t].pageX,a=n.changedTouches[t].pageY):(i=e.pageX,a=e.pageY),[ZC._i_(i||"0"),ZC._i_(a||"0")]},F7:function(e,t,i){var a;return i=i||document,null!==ZC._n_(t)?i.createElementNS?a=i.createElementNS(t,e):(a=i.createElement(e)).setAttribute("xmlns",t):a=i.createElement(e),"zcv:"===e.substring(0,4)&&(a.className="zcvml"),a},ET:function(e){var t;e instanceof Array||(e=[e]);for(var i=0,a=e.length;i<a;i++)"object"!=typeof(t=e[i])&&(t=ZC.AK(e[i])),t&&(typeof t.parentElement!==ZC._[31]?t.parentElement.removeChild(t):typeof t.parentNode!==ZC._[31]&&t.parentNode.removeChild(t))},G9:function(e,t){for(var i in t)if("string"==typeof i&&"object"!=typeof t[i]&&"function"!=typeof t[i])try{e.setAttribute(i,t[i])}catch(a){}},PV:function(e,t){for(var i in t)"string"==typeof i&&"object"!=typeof t[i]&&"function"!=typeof t[i]&&(e.style[i]=t[i])},ABE:function(e){var t;if(e===document)return!0;if(!e)return!1;if(!e.parentNode)return!1;if(e.style){if("none"===e.style.display)return!1;if("hidden"===e.style.visibility)return!1}if(window.getComputedStyle){if("none"===(t=window.getComputedStyle(e,"")).display)return!1;if("hidden"===t.visibility)return!1}if(t=e.currentStyle){if("none"===t.display)return!1;if("hidden"===t.visibility)return!1}return ZC.Q.ABE(e.parentNode)},TH:function(e){var t=e.className||ZC.A5(e).attr("class");return null!==ZC._n_(t)&&"object"==typeof t&&(t=typeof t.baseVal!==ZC._[31]?t.baseVal:""),t||""},IT:function(e,t,i,a,n,l,r,o){if(e)switch(r=r||"",t){case"canvas":o?e.getContext("2d").clearRect(i,a,n,l):e.width=e.width;break;case"vml":case"svg":var s=e.childNodes.length;if(s>1024&&typeof e.innerHTML!==ZC._[31])return void(e.innerHTML="");if(s>0)for(var C=s-1;C>=0;C--)""===r?e.removeChild(e.childNodes[C]):0===e.childNodes[C].id.indexOf(r+"-")&&e.removeChild(e.childNodes[C])}},E9:function(e,t){switch("string"==typeof e&&(e=ZC.AK(e)),t){case"canvas":return e.getContext("2d");case"svg":case"vml":return e}},K5:function(e,t){switch(t){case"svg":return ZC.Q.AC1(e);case"vml":case"canvas":return ZC.Q.I7(e)}},HK:function(e,t){switch(t){case"svg":return ZC.Q.AC1(e);case"vml":return ZC.Q.I7(e);case"canvas":return ZC.Q.ADC(e)}},AC1:function(e){var t;if(ZC.AK(e.id))return ZC.AK(e.id);var i=ZC.Q.F7("g",ZC._[36]);return null!==ZC._n_(t=e.id)&&i.setAttribute("id",t),null!==ZC._n_(t=e.cls)&&i.setAttribute("class",t),null!==ZC._n_(t=e.zidx)&&i.setAttribute("z-index",t),null!==ZC._n_(t=e["clip-path"])&&i.setAttribute("clip-path",t),e.after?e.p.insertBefore(i,e.after.nextSibling):e.p.appendChild(i),i},Y1:function(e){var t;ZC.Q.ET(e.id);var i=ZC.Q.F7("clipPath",ZC._[36]);return i.id=e.id,null!==ZC._n_(e.cx)?((t=ZC.Q.F7("circle",ZC._[36])).id=e.id+"-shape",ZC.Q.G9(t,{cx:e.cx,cy:e.cy,r:e.r})):((t=ZC.Q.F7("polygon",ZC._[36])).id=e.id+"-shape",ZC.Q.G9(t,{points:e.path})),i.appendChild(t),i},ADC:function(e){var t;if(ZC.AK(e.id))return ZC.AK(e.id);var i=document.createElement("canvas"),a=i.style;if(null!==ZC._n_(t=e.id)&&(i.id=t),null!==ZC._n_(t=e.cls)&&(i.className=t),null!==ZC._n_(t=e.wh)){var n=(""+t).split("/");e[ZC._[19]]=n[0],e[ZC._[20]]=n[1]}if(null!==ZC._n_(t=e.tl)){var l=(""+t).split("/");e.top=l[0],e.left=l[1]}return i.width=e[ZC._[19]],i.height=e[ZC._[20]],null!==ZC._n_(t=e.left)&&(a.left=t+"px"),null!==ZC._n_(t=e.top)&&(a.top=t+"px"),null!==ZC._n_(t=e.display)&&(a.display=t),null!==ZC._n_(t=e.position)&&(a.position=t),null!==ZC._n_(t=e.zidx)&&(a.zIndex=t),e.p.appendChild(i),i},I7:function(e){var t,i,a,n,l,r;if(ZC.AK(e.id))return a=ZC.AK(e.id),null!==ZC._n_(t=e.wh)&&(l=(""+t).split("/"),a.style.width=l[0]+"px",a.style.height=l[1]+"px"),null!==ZC._n_(t=e.tl)&&(r=(""+t).split("/"),a.style.top=r[0]+"px",a.style.left=r[1]+"px"),a;(n=(a=document.createElement("div")).style).whiteSpace="nowrap",null!==ZC._n_(t=e.wh)&&(l=(""+t).split("/"),e[ZC._[19]]=l[0],e[ZC._[20]]=l[1]),null!==ZC._n_(t=e.tl)&&(r=(""+t).split("/"),e.top=r[0],e.left=r[1]),null!==ZC._n_(t=e.id)&&(a.id=t),null!==ZC._n_(t=e.cls)&&""!==t&&(a.className=t);for(var o=[["top","","px"],["left","","px"],[ZC._[19],"","px"],[ZC._[20],"","px"],"position","overflow",["float","cssFloat|styleFloat"],["zidx","zIndex"],"clip","display",["fontSize","","px"],"fontFamily","fontWeight","fontStyle","textDecoration","textAlign","verticalAlign","color","border","borderTop","borderRight","borderBottom","borderLeft","background","cursor",["margin","marginTop|marginRight|marginBottom|marginLeft","px"],["marginTop","","px"],["marginRight","","px"],["marginBottom","","px"],["marginLeft","","px"],["padding","paddingTop|paddingRight|paddingBottom|paddingLeft","px"],["paddingTop","","px"],["paddingRight","","px"],["paddingBottom","","px"],["paddingLeft","","px"],"lineHeight","filter"],s=null,C=null,A=null,Z=0,c=o.length;Z<c;Z++)if("string"==typeof o[Z]&&(o[Z]=[o[Z]]),t=null,null!==ZC._n_(i=e[o[Z][0]])&&(t=i),null!==ZC._n_(t)){null!==ZC._n_(o[Z][1])&&""!==o[Z][1]||(o[Z][1]=o[Z][0]);for(var p=o[Z][1].split("|"),u=0,h=p.length;u<h;u++){var _=t+(null===ZC._n_(o[Z][2])?"":o[Z][2]);n[p[u]]=_,"fontFamily"===p[u]&&(s=_),"fontSize"===p[u]&&(C=ZC._i_(_)),"fontWeight"===p[u]&&(A=_)}}return null!==ZC._n_(t=e.opacity)&&(n.opacity=t,1!==ZC._f_(t)&&(n.filter="alpha(opacity = "+ZC._i_(100*ZC._f_(t))+")",n.opacity=t)),null!==ZC._n_(t=e.p)&&(e.after?t.insertBefore(a,e.after.nextSibling):t.appendChild(a)),null!==ZC._n_(t=e.html)&&(a.innerHTML=ZC._h_(t),-1!==t.indexOf("<")&&-1!==t.indexOf(">")&&ZC.A5(a).children().each(function(){null!==ZC._n_(s)&&(null!==ZC._n_(this.style.fontFamily)&&""!==this.style.fontFamily||(this.style.fontFamily=s)),null!==ZC._n_(C)&&(null!==ZC._n_(this.style.fontSize)&&""!==this.style.fontSize||(this.style.fontSize=C+"px")),null!==ZC._n_(A)&&(null!==ZC._n_(this.style.fontWeight)&&""!==this.style.fontWeight||(this.style.fontWeight=A))})),e.rtl&&(a.style.unicodeBidi="bidi-override",a.style.direction="rtl"),e.cursor&&"hand"===e.cursor&&(a.style.cursor="pointer"),a},WG:null,A4V:function(e,t,i,a,n,l,r){var o,s,C,A;null===ZC._n_(r)&&(r=!1);var Z=!1;"[HTMLMODE]"===t.substring(0,10)&&(Z=!0,t=t.substring(10)),A=e+"-text-ruler",-1!==e.indexOf("-fullscreen")&&(A="zc-text-ruler");var c="{{"+t+"}}"+i.replace(/[^a-z]/gi,"").toLowerCase()+a+l+n;if(ZC.cache.data["text-width-"+c]&&!r)return ZC.cache.data["text-width-"+c];if(ZC.cache.data["text-height-"+c]&&r)return ZC.cache.data["text-height-"+c];var p,u=t;return u=u.replace(/<hr>/g,'<hr style="margin:0;padding:0">'),(p=ZC.AK(A))?(ZC.Q.WG&&ZC.Q.WG===e+i+a+l+n||(p.style.fontFamily=i,p.style.fontSize=a+"px",p.style.fontWeight=n,p.style.lineHeight=Z?"130%":-1!==l?ZC._i_(l)+"px":"130%",ZC.Q.WG=e+i+a+l+n),p.innerHTML=u):(p=ZC.Q.I7({id:A,p:document.body,tl:"-9999/-9999",html:u,position:"absolute",fontFamily:i,fontSize:a,cls:"zc-text-ruler",fontWeight:n})).style.lineHeight=Z?"130%":-1!==l?ZC._i_(l)+"px":"130%",-1===t.indexOf("<")||-1===t.indexOf(">")||Z||ZC.A5(p).children().each(function(){"BR"!==this.tagName.toUpperCase()&&(null!==ZC._n_(this.style.fontFamily)&&""!==this.style.fontFamily||(this.style.fontFamily=i),null!==ZC._n_(this.style.fontSize)&&""!==this.style.fontSize||(this.style.fontSize=a+"px"),this.style.lineHeight=-1!==l?ZC._i_(l)+"px":"130%","B"!==this.tagName.toUpperCase()&&"STRONG"!==this.tagName.toUpperCase()&&(null!==ZC._n_(this.style.fontWeight)&&""!==this.style.fontWeight||(this.style.fontWeight=n)))}),(o=p.getBoundingClientRect())&&o.width>0?(s=o.width,r&&(C=o.height)):(s=ZC.mobile&&ZC.A5.browser.webkit?p.offsetWidth:ZC.A5(p).width(),r&&(C=ZC.mobile&&ZC.A5.browser.webkit?p.offsetHeight:ZC.A5(p).height())),r?(ZC.cache.add("text-height-"+c,C),C):(ZC.cache.add("text-width-"+c,s),s)}},!document.getElementsByClassName&&document.querySelectorAll&&(document.getElementsByClassName=function(e){return document.querySelectorAll("."+e)}),ZC.A5=function(e,t,i){var a,n,l,r,o=this;if(typeof i===ZC._[31]&&(i=!0),i)return new ZC.A5(e,t,!1);if(o.PA=[],o.QI=e,o.MP=t,o.length=0,o.MP=o.MP||document.getElementsByTagName("body")[0],"object"==typeof o.QI)o.PA=[o.QI];else if("string"==typeof o.QI)for(var s=o.QI.split(","),C=0;C<s.length;C++){var A=ZC.GX(s[C]),Z=!1;if(2===(a=A.split(">")).length&&(Z=!0,ZC.A5(a[0]).each(function(){var e=this;ZC.A5(a[1],this).each(function(){this.parentNode===e&&o.PA.push(this)})})),2===(a=A.split(" ")).length&&(Z=!0,ZC.A5(a[0]).each(function(){ZC.A5(a[1],this).each(function(){o.PA.push(this)})})),!Z)if("#"===A.substring(0,1))ZC.AK(A.substring(1))&&(o.PA=[ZC.AK(A.substring(1))]);else if("."===A.substring(0,1))if(document.getElementsByClassName){if(o.MP.getElementsByClassName)n=o.MP.getElementsByClassName(A.substring(1));else if(n=document.getElementsByClassName(A.substring(1)),o.MP!==document){var c=[];for(l=0,r=n.length;l<r;l++)ZC.A5.childof(n[l],o.MP)&&c.push(n[l]);n=c}for(l=0,r=n.length;l<r;l++)o.PA.push(n[l])}else{var p=new RegExp("(^|\\s)"+A.substring(1)+"(\\s|$)","i"),u=o.MP.getElementsByTagName("*"),h="";for(l=0,r=u.length;l<r;l++)"object"==typeof(h=u[l].className)&&(h=typeof h.baseVal!==ZC._[31]?h.baseVal:""),""!==h&&p.test(h)&&o.PA.push(u[l])}else for(l=0,r=(n=o.MP.getElementsByTagName(A)).length;l<r;l++)o.PA.push(n[l])}return o.length=o.PA.length,this},ZC.A5.prototype={eachfn:function(){for(var e,t=[],i=0,a=this.PA.length;i<a;i++){var n=[this.PA[i]];if((e=arguments.length)>1)for(var l=1;l<e;l++)n.push(arguments[l]);t.push(arguments[0].apply(this,n))}return t},each:function(){for(var e,t=0,i=this.PA.length;t<i;t++){var a=[this.PA[t]];if((e=arguments.length)>1)for(var n=1;n<e;n++)a.push(arguments[n]);arguments[0].apply(this.PA[t],a)}return this},children:function(){var e=[];return this.each(function(){for(var t=0,i=this.childNodes.length;t<i;t++)1===this.childNodes[t].nodeType&&e.push(this.childNodes[t])}),this.PA=e,this},remove:function(){this.eachfn.call(this,function(e){e&&e.parentNode&&e.parentNode.removeChild(e)})},empty:function(){this.eachfn.call(this,function(e){if(e)for(;e.childNodes.length;)e.removeChild(e.childNodes[e.childNodes.length-1])})},A3S:function(e){var t,i;typeof e===ZC._[31]&&(e=!0);var a=this.eachfn.call(this,function(a){if(!a)return null;if(a===window){var n=document.body;return a.innerWidth?(t=a.innerWidth,i=a.innerHeight):n&&n.parentElement&&n.parentElement.clientWidth?(t=n.parentElement.clientWidth,i=n.parentElement.clientHeight):n&&n.clientWidth&&(t=n.clientWidth,i=n.clientHeight),{width:t,height:i}}var l,r,o=e?"block":ZC.A5(a).getstyle("display");if(window.getComputedStyle){var s=window.getComputedStyle(a,null);l=s.getPropertyValue(ZC._[19]).slice(0,-2),r=s.getPropertyValue(ZC._[20]).slice(0,-2)}else if(a.getBoundingClientRect){var C=a.getBoundingClientRect();l=C.width?C.width:a.offsetWidth,r=C.height?C.height:a.offsetHeight}else l=a.offsetWidth,r=a.offsetHeight;if("none"===o||""===o||typeof o===ZC._[31]){var A=a.style,Z=A.visibility,c=A.position,p=A.display;A.visibility="hidden",A.position="absolute",A.display="block",t=l,i=r,A.display=p,A.position=c,A.visibility=Z}else t=l||0,i=r||0;return{width:t,height:i}});return 1===a.length?a[0]:a},getstyle:function(e){var t=this.eachfn.call(this,function(e,t){if("display"===t)return e.style.display;var i,a=document;if(t=ZC.EE(t),!e||e===a)return undefined;if("opacity"===t&&typeof e.filters!==ZC._[31]){var n=(ZC.A5(e).getstyle("filter")||"").match(/alpha\(opacity=(.*)\)/);return n&&n[1]?parseFloat(n[1])/100:1}if(-1!==ZC.AV(["float","cssFloat","styleFloat"],t))return(i=e.style.float)?i:(i=e.style.cssFloat)?i:(i=e.style.styleFloat)?i:"none";var l=e.style?e.style[t]:null;if(!l)if(a.defaultView&&a.defaultView.getComputedStyle){var r=a.defaultView.getComputedStyle(e,null);t=t.replace(/([A-Z])/g,"-$1").toLowerCase(),l=r?r.getPropertyValue(t):null}else if(e.currentStyle&&(l=e.currentStyle[t],/^\d/.test(l)&&!/px$/.test(l)&&"fontWeight"!==t)){var o=e.style.left,s=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left,e.style.left=l||0,l=e.style.pixelLeft+"px",e.style.left=o,e.runtimeStyle.left=s}return"opacity"===t&&(l=parseFloat(l)),/Opera/.test(navigator.userAgent)&&-1!==ZC.AV(["left","top","right","bottom"],t)&&"static"===ZC.A5(e).getstyle("position")&&(l="auto"),"auto"===l?null:l},e);return 1===t.length?t[0]:t},wh:function(){var e;return this.PA[0]?null!==ZC._n_(e=ZC.A5(this.PA[0]).A3S())?[ZC._i_(e[ZC._[19]]),ZC._i_(e[ZC._[20]])]:[0,0]:null},width:function(e){var t;if(typeof e===ZC._[31]){var i=this.eachfn.call(this,function(e){return null!==ZC._n_(t=ZC.A5(e).A3S())?ZC._i_(t[ZC._[19]]):0});return 1===i.length?i[0]:i}return this.eachfn.call(this,function(e,t){e.style.width=t+"px"},e),this},height:function(e){var t;if(typeof e===ZC._[31]){var i=this.eachfn.call(this,function(e){return null!==ZC._n_(t=ZC.A5(e).A3S())?ZC._i_(t[ZC._[20]]):0});return 1===i.length?i[0]:i}return this.eachfn.call(this,function(e,t){e.style.height=t+"px"},e),this},scrollLeft:function(){return ZC.A5.scroll().left},scrollTop:function(){return ZC.A5.scroll().top},css:function(e,t){if(typeof t===ZC._[31]){var i=this.eachfn.call(this,function(t){var i=ZC.A5(t).getstyle(e);return-1!==(""+i).indexOf("px")?ZC._i_(i):i});return 1===i.length?i[0]:i}return this.eachfn.call(this,function(e,t,i){e.style[t]=i},e,t),this},attr:function(e,t){if(typeof t===ZC._[31]){var i=this.eachfn.call(this,function(t){return t.getAttribute(e)});return 1===i.length?i[0]:i}return this.eachfn.call(this,function(e,t,i){e.setAttribute(t,i)},e,t),this},val:function(e){if(typeof e===ZC._[31]){var t=this.eachfn.call(this,function(e){return e.value});return 1===t.length?t[0]:t}return this.eachfn.call(this,function(e,t){e.value=t},e),this},show:function(){return this.eachfn.call(this,function(e){e.style.display="block"}),this},hide:function(){return this.eachfn.call(this,function(e){e.style.display="none"}),this},offset:function(){var e=this.eachfn.call(this,function(e){if(!(e&&(e.x&&e.y||null!==!e.parentNode&&"none"!==ZC.A5(e).getstyle("display"))))return undefined;var t,i,a,n,l,r,o,s={top:0,left:0},C={top:0,left:0},A=e&&e.ownerDocument;return A&&((i=A.body)===e&&(s={top:i.offsetTop,left:i.offsetLeft}),t=A.documentElement,typeof e.getBoundingClientRect!==ZC._[31]&&(C=e.getBoundingClientRect()),a=A.defaultView||A.parentWindow,n=t.clientTop||i.clientTop||0,l=t.clientLeft||i.clientLeft||0,r=a.pageYOffset||t.scrollTop,o=a.pageXOffset||t.scrollLeft,s={top:C.top+r-n,left:C.left+o-l}),s});return 1===e.length?e[0]:e},bind:function(e,t,i){if(""!==(e=ZC.A5.cleanTouchEvents(e))){if(i||(i=!ZC.hasPassive||{passive:!0}),-1!==e.indexOf(" ")){for(var a=e.split(/\s+/),n=0;n<a.length;n++)this.bind(a[n],t,i);return this}return this.eachfn.call(this,function(e,t,a){function n(e){var t=(e=e||window.event).target||e.srcElement,i=ZC.A5.BX(e);null!==i&&a.call(t,i)}ZC.A5.J3||(ZC.A5.J3=[]),ZC.A5.J3.push([e,t,a,n]),e.addEventListener?e.addEventListener(t,n,i):e.attachEvent("on"+t,n)},e,t),this}},unbind:function(e,t){if(""!==(e=ZC.A5.cleanTouchEvents(e))){if(-1!==e.indexOf(" ")){for(var i=e.split(/\s+/),a=0;a<i.length;a++)this.unbind(i[a],t);return this}return this.eachfn.call(this,function(e,t,i){if(typeof ZC.A5.J3!==ZC._[31])for(var a=0,n=ZC.A5.J3.length;a<n;a++)if((ZC.A5.J3[a][0]===e||e.tagName&&"MAP"===e.tagName.toUpperCase()&&e.id===ZC.A5.J3[a][0].id)&&ZC.A5.J3[a][1]===t&&ZC.A5.J3[a][2]===i){e.removeEventListener?e.removeEventListener(t,ZC.A5.J3[a][3],!0):e.detachEvent("on"+t,ZC.A5.J3[a][3]),ZC.A5.J3.splice(a,1);break}},e,t),this}},live:function(e,t,i){if(""!==(e=ZC.A5.cleanTouchEvents(e))){if(i||(i=!ZC.hasPassive||{passive:!0}),-1===e.indexOf("touch")&&-1===e.indexOf("wheel")||(i={passive:!1}),-1!==e.indexOf(" ")){for(var a=e.split(/\s+/),n=0;n<a.length;n++)this.live(a[n],t,i);return this}var l=this.QI;return ZC.A5.EVENTS||(ZC.A5.EVENTS={}),ZC.A5.EVENTS[e]||(ZC.A5.EVENTS[e]=[],document.addEventListener?document.addEventListener(e,r,i):document.attachEvent("on"+e,r)),ZC.A5.EVENTS[e].push([l,t]),this}function r(t){var i=(t=t||window.event).target||t.srcElement,a=i.className||"";"object"==typeof a&&(a=typeof a.baseVal!==ZC._[31]&&null!==ZC._n_(a.baseVal)?a.baseVal:"");var l,r,o=ZC.A5.EVENTS[e],s=null,C=null,A=[];for(l=0,r=o.length;l<r;l++)("object"==typeof o[l][0]&&i===o[n][0]||"string"==typeof o[l][0]&&("."===o[l][0].substring(0,1)&&-1!==ZC.AV(a.split(" "),o[l][0].replace(".",""))||"#"===o[l][0].substring(0,1)&&i.id===o[l][0].substring(1)))&&(s=o[l][1],C=ZC.A5.BX(t),null!==ZC._n_(s)&&null!==ZC._n_(C)&&A.push([s,i,C]));for(l=0,r=A.length;l<r;l++)A[l][0].call(A[l][1],A[l][2])}},die:function(e,t){if(""!==(e=ZC.A5.cleanTouchEvents(e))){var i,a,n;if(-1!==e.indexOf(" ")){for(a=0,n=(i=e.split(/\s+/)).length;a<n;a++)this.die(i[a],t);return this}var l=this.QI;if(ZC.A5.EVENTS||(ZC.A5.EVENTS={}),i=ZC.A5.EVENTS[e])for(a=i.length-1;a>=0;a--)i[a][0]!==l||t&&i[a][1]!==t||ZC.A5.EVENTS[e].splice(a,1);return this}}},ZC.A5._list_=function(e){for(var t=[],i=0;i<ZC.A5.EVENTS[e].length;i++)t.push(ZC.A5.EVENTS[e][i][0]);return t.join(",")},ZC.A5.cleanTouchEvents=function(e){return ZC.ie678&&(e=ZC.GX(e.replace(/touchstart|touchend|touchmove/,""))),e},ZC.A5.cache={},ZC.A5.browser={},function(){var e=/(webkit)[ \/]([\w.]+)/,t=/(opera)(?:.*version)?[ \/]([\w.]+)/,i=/(msie) ([\w.]+)/,a=/(mozilla)(?:.*? rv:([\w.]+))?/,n=/(trident)(?:.*? rv:([\w.]+))?/,l=function(l){l=l.toLowerCase();var r=e.exec(l)||t.exec(l)||i.exec(l)||n.exec(l)||l.indexOf("compatible")<0&&a.exec(l)||[];return[r[1]||"",r[2]||"0"]}(navigator.userAgent);l[0]&&("trident"===l[0]&&(l[0]="msie"),ZC.A5.browser[l[0]]=!0,ZC.A5.browser.version=l[1])}(),ZC.A5.scroll=function(){var e={top:0,left:0},t=document,i=t.documentElement,a=t.body;return i&&(i.scrollTop||i.scrollLeft)?(e.left=i.scrollLeft,e.top=i.scrollTop):a&&(e.left=a.scrollLeft,e.top=a.scrollTop),e},ZC.A5.BX=function(e){if(e.originalEventZC=e,e.target||(e.target=e.srcElement||document),3!==e.target.nodeType&&8!==e.target.nodeType||(e.target=e.target.parentNode),null===ZC._n_(e.pageX)&&null!==ZC._n_(e.clientX)){var t=e.target.ownerDocument||document,i=t.documentElement,a=t.body;e.pageX=e.clientX+(i&&i.scrollLeft||a&&a.scrollLeft||0)-(i&&i.clientLeft||a&&a.clientLeft||0),e.pageY=e.clientY+(i&&i.scrollTop||a&&a.scrollTop||0)-(i&&i.clientTop||a&&a.clientTop||0)}return!e.which&&(e.button,undefined),e.preventDefault||(e.preventDefault=function(){this.returnValue=!1}),e.stopPropagation||(e.stopPropagation=function(){this.cancelBubble=!0}),e},ZC.A5.childof=function(e,t){if(e===t)return!0;for(;e!==t&&e.parentNode;)if((e=e.parentNode)===t)return!0;return!1},ZC.A5.ajax=function(e){var t=e.url||"",i=e.type||"GET",a=e.data||"",n=!0;typeof e.async!==ZC._[31]&&(n=ZC._b_(e.async)),""===a.replace(/\&/g,"")&&(a="");var l=e.beforeSend||null,r=e.error||null,o=e.success||null,s=null;try{window.ActiveXObject?s=new ActiveXObject("Microsoft.XMLHTTP"):window.XMLHttpRequest&&(s=new XMLHttpRequest)}catch(A){}var C="file:"===window.location.protocol;if(s){n&&(s.onreadystatechange=function(){4===s.readyState&&((C||s.status>=200&&s.status<300)&&o&&o(s.responseText,s.status,s,t),s.status>=400&&r&&r(s,s.status,s.statusText,t),s.onreadystatechange=new window.Function,s=null)}),window.ActiveXObject||(s.onerror=function(){r&&r(s,0,"",t)}),"POST"===i.toUpperCase()?(s.open("POST",t,n),s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.setRequestHeader("Content-type","application/x-www-form-urlencoded")):(""!==a&&(-1===t.indexOf("?")&&(t+="?"),t+="&"+a),s.open("GET",t,n)),l&&l(s);try{s.send(a),n||((C||s.status>=200&&s.status<300)&&o&&o(s.responseText,s.status,s,t),s.status>=400&&r&&r(s,s.status,s.statusText,t),s=null)}catch(Z){C&&r&&(r(s,s.status,s.statusText,t),s.onreadystatechange=new window.Function,s=null)}}},ZC.AQ={ACN:function(e,t){var i,a,n=zingchart.DEV.SPREADFACTOR,l=[],r=0;function o(e,t){-1===ZC.AV(e,t)&&e.push(t)}for(i=0;i<e.length;i++)e[i]+=t;var s=-1;for(i=1;i<e.length;i++)ZC._a_(e[i]-e[i-1])<n?(l[r]=l[r]||{min:-1,max:-1,items:[]},-1===l[r].min&&(l[r].min=i>1?e[i-2]:t,-1===s&&(s=l[r].min),l[r].min),o(l[r].items,i-1),o(l[r].items,i)):l[r]&&(l[r].max=e[i],l[r].max,r++);l[r]&&-1===l[r].max&&(l[r].max=360+t);var C=l.length;if(C>1&&l[C-1].max-l[0].min==360){for(a=0;a<l[0].items.length;a++)e[l[0].items[a]]+=360;l[C-1].items=l[C-1].items.concat(l[0].items),l[C-1].max+=l[0].min,l=l.splice(1)}for(l.length>1&&(l[l.length-1].max=l[0].min+360),i=0;i<l.length;i++){var A=l[i],Z=A.items.length,c=(A.max-A.min)/(Z+4);c=ZC.CX(c,n);var p=0;for(a=0;a<A.items.length;a++)p+=e[A.items[a]];p/=A.items.length;for(var u=!0;u;)for(u=!1,a=1;a<A.items.length;a++)if(e[A.items[a]]-e[A.items[a-1]]<c){e[A.items[a-1]]<p?(e[A.items[a-1]]-=.45,e[A.items[a]]+=.05):e[A.items[a]]+=.25,u=!0;break}}return e},_int_:function(e){return Math.abs(e-ZC._i_(e))<Math.pow(10,-10)},YD:function(e,t,i){return i=i||1,!(e.x>t.x+t.width+i)&&(!(t.x>e.x+e.width+i)&&(!(e.y>t.y+t.height+i)&&!(t.y>e.y+e.height+i)))},_boxoverlap2_:function(e,t,i){return i=i||1,!(e.iX>t.iX+t.I+i)&&(!(t.iX>e.iX+e.I+i)&&(!(e.iY>t.iY+t.F+i)&&!(t.iY>e.iY+e.F+i)))},AGJ:function(e,t){return e.iX>=t.iX&&e.iX<=t.iX+t.I&&e.iY>=t.iY&&e.iY<=t.iY+t.F&&e.iX+e.I>=t.iX&&e.iX+e.I<=t.iX+t.I&&e.iY+e.F>=t.iY&&e.iY+e.F<=t.iY+t.F},A6Y:function(e,t,i){for(var a=Math.sqrt(e/Math.PI),n=Math.sqrt(t/Math.PI),l=Math.min(a,n),r=Math.max(a,n),o=ZC.MAX,s=0,C=l+r;C>r-l;C-=l/50){var A=l*l*Math.acos((C*C+l*l-r*r)/(2*C*l))+r*r*Math.acos((C*C+r*r-l*l)/(2*C*r))-.5*Math.sqrt((-C+l+r)*(C+l-r)*(C-l+r)*(C+l+r));Math.abs(A-i)<o&&(o=Math.abs(A-i),s=C)}return s},BM:function(e,t,i,a){return[e+i*Math.cos(2*a*Math.PI/360),t+i*Math.sin(2*a*Math.PI/360)]},A65:function(e,t,i,a,n){var l=ZC.UE(Math.atan((a-t)/(i-e)));return[e+ZC._i_(ZC.EH(l)*n),t+ZC._i_(ZC.EN(l)*n)]},K0:function(e,t,i,a,n,l){if(n=null===ZC._n_(n)?0:n,l=null===ZC._n_(l)||l,i-e!=0){var r=0,o=0,s=Math.atan((a-t)/(i-e));return(n<1||l)&&(r=n/2.5*Math.cos(s),o=n/2.5*Math.sin(s)),[(e+i)/2+(e<i?r:-r),(t+a)/2+o]}return[e,(t+a)/2]},ABG:function(e,t){var i=(e[1]-t[1])/(e[0]-t[0]);return[i,e[1]-i*e[0]]},A64:function(e,t,i,a){if(t[0]===a[0]&&t[1]===a[1])return t;if(e[0]===i[0]&&e[1]===i[1])return e;var n=ZC.AQ.ABG(e,t),l=n[0],r=n[1],o=ZC.AQ.ABG(i,a),s=o[0],C=(o[1]-r)/(l-s);return[C,l*C+r]},Q8:function(e,t,i){null===ZC._n_(t)&&(t=5);var a=0,n=0;null!==ZC._n_(i)&&(a=i[0],n=i[1]);for(var l,r,o,s="",C=ZC.ie67?ZC.MAPTX:0,A=0,Z=e.length;A<Z;A++)e[A]&&(0===A?(r=e[A][0]+C+a,o=e[A][1]+C+n,l=A,s+=Math.round(r,10)+","+Math.round(o,10)+","):Math.sqrt((e[A][0]+C-r)*(e[A][0]+C-r)+(e[A][1]+C-o)*(e[A][1]+C-o))>t&&e[A-1]&&(Math.sqrt((e[A][0]-e[A-1][0])*(e[A][0]-e[A-1][0])+(e[A][1]-e[A-1][1])*(e[A][1]-e[A-1][1]))>t&&A-l>1&&(s+=Math.round(e[A-1][0]+C+a,10)+","+Math.round(e[A-1][1]+C+n,10)+","),r=e[A][0]+C+a,o=e[A][1]+C+n,l=A,s+=Math.round(r,10)+","+Math.round(o,10)+","));return s=s.substring(0,s.length-1)},ZK:function(e,t){if(null===ZC._n_(e)||e.length<2)return"";null===ZC._n_(t)&&(t=6,ZC.mobile&&(t+=10));var i,a,n,l,r,o=[];for(i=0,a=e.length;i<a;i++)(0===i||i>0&&null!==ZC._n_(e[i])&&null!==ZC._n_(e[i-1])&&e[i].join("/")!==e[i-1].join("/")||null===ZC._n_(e[i]))&&o.push(e[i]);var s=[],C=[],A=!1;for(i=0,a=o.length;i<a;i++)if(o[i]){var Z,c,p,u,h=o[i][0],_=o[i][1];if(o[i-1]&&(p=o[i-1][0],u=o[i-1][1],p===h&&(p-=.1)),o[i+1]&&(Z=o[i+1][0],c=o[i+1][1],Z===h&&(Z+=.1)),0===i)n=Math.atan((c-_)/(Z-h)),r=l=ZC.UE(n),Z>=h&&(r+=180),s.push(ZC.AQ.BM(h,_,t,l+90),ZC.AQ.BM(h,_,t,r),ZC.AQ.BM(h,_,t,l+270));else if(i===o.length-1)n=Math.atan((u-_)/(p-h)),r=l=ZC.UE(n),p>=h&&(r+=180),A?(C.push(ZC.AQ.BM(h,_,t,l+270),ZC.AQ.BM(h,_,t,r),ZC.AQ.BM(h,_,t,l+90)),A=!1):s.push(ZC.AQ.BM(h,_,t,l+270),ZC.AQ.BM(h,_,t,r),ZC.AQ.BM(h,_,t,l+90));else{var d=Math.atan((c-_)/(Z-h)),f=Math.atan((_-u)/(h-p));r=ZC.UE((d+f)/2),s.push(ZC.AQ.BM(h,_,t,r+270)),Z>=h&&p>=h?(s.push(ZC.AQ.BM(h,_,t,r+180)),s.push(ZC.AQ.BM(h,_,t,r+90)),C.push(ZC.AQ.BM(h,_,t,r)),A=!0):Z<=h&&p<=h?(s.push(ZC.AQ.BM(h,_,t,r)),s.push(ZC.AQ.BM(h,_,t,r+90)),C.push(ZC.AQ.BM(h,_,t,r+180)),A=!0):C.push(ZC.AQ.BM(h,_,t,r+90))}}for(i=C.length-1;i>=0;i--)s.push(C[i]);return s},A2X:function(e,t){var i=0,a=0,n=[];switch(e+=""){case"horizontal":case"h":i=1,a=t;break;case"vertical":case"v":i=t,a=1;break;default:n=e.split("x"),null!==ZC._n_(n[0])&&ZC._i_(n[0])+""===n[0]&&(i=ZC._i_(n[0])),null!==ZC._n_(n[1])&&ZC._i_(n[1])+""===n[1]&&(a=ZC._i_(n[1])),0===a&&0===i?(i=Math.ceil(Math.sqrt(t)),a=Math.ceil(t/i)):(0===a&&(a=Math.ceil(t/i)),0===i&&(i=Math.ceil(t/a)))}return[i,a]},ABI:function(e,t){return.5*(2*t[1]+(-t[0]+t[2])*e+(2*t[0]-5*t[1]+4*t[2]-t[3])*e*e+(-t[0]+3*t[1]-3*t[2]+t[3])*e*e*e)},ABT:function(e,t){var i,a,n,l,r,o=e.length,s=[],C=[],A=[];for(i=0;i<o-1;i++)a=e[i+1]-e[i],n=t[i+1]-t[i],C.push(a),s.push(n),A.push(n/a);var Z=[A[0]];for(i=0;i<C.length-1;i++){l=A[i];var c=A[i+1];if(l*c<=0)Z.push(0);else{a=C[i];var p=C[i+1];r=a+p,Z.push(3*r/((r+p)/l+(r+a)/c))}}Z.push(A[A.length-1]);var u=[],h=[];for(i=0;i<Z.length-1;i++){l=A[i];var _=Z[i],d=1/C[i];r=_+Z[i+1]-l-l,u.push((l-_-r)*d),h.push(r*d*d)}return function(i){var a=e.length-1;if(i===e[a])return t[a];for(var n,l=0,r=h.length-1;l<=r;){n=Math.floor(.5*(l+r));var o=e[n];if(o<i)l=n+1;else{if(!(o>i))return t[n];r=n-1}}a=Math.max(0,r);var s=i-e[a],C=s*s;return t[a]+Z[a]*s+u[a]*C+h[a]*s*C}},YW:function(e,t,i,a){null===ZC._n_(a)&&(a=1/(i/t.length*4));var n,l,r=[];if(e)if((n=[].concat(t))[1]&&n[2]){n[0]=n[0]||n[1]||n[2]||n[3],n[1]=n[1]||n[2]||n[0]||n[3],n[2]=n[2]||n[3]||n[1]||n[0],n[3]=n[3]||n[2]||n[1]||n[0];var o=ZC.AQ.ABT([0,1,2,3],n);for(l=1;l<=2;l+=a)r.push([l-1,o(l)])}else r.push([]);else for(var s=1;s<t.length-2;s++)if(1!==a)if((n=[t[s-1],t[s],t[s+1],t[s+2]])[1]&&n[2])for(n[0]=n[0]||n[1]||n[2]||n[3],n[1]=n[1]||n[2]||n[0]||n[3],n[2]=n[2]||n[3]||n[1]||n[0],n[3]=n[3]||n[2]||n[1]||n[0],l=0;l<=1;l+=a){var C=s+l,A=ZC.AQ.ABI(l,n);r.push([C-1,A])}else r.push([]);else r.push([s-1,t[s]]);return r},A15:function(e){for(var t=Math.round(ZC.G6(ZC._a_(e))/Math.LN10),i=[1,2,4,5,6,8,10],a=ZC.MAX,n=1,l=0;l<i.length;l++){var r=i[l]*Math.pow(10,t)-e;ZC._a_(r)<a&&(n=i[l],a=ZC._a_(r))}return n*Math.pow(10,t)},_nice_number_:function(e,t){var i,a;return i=Math.floor(Math.log(e)/Math.log(10)),a=e/Math.pow(10,i),(t?a<1.5?1:a<3?2:a<7?5:10:a<=1?1:a<=2?2:a<=5?5:10)*Math.pow(10,i)},X0:function(e,t,i,a,n,l){var r,o,s,C,A,Z;null===ZC._n_(n)&&(n=!0),l=null===ZC._n_(l)?10:Math.min(Math.max(2,l),100),null!==ZC._n_(a)&&0!==a||(a=1);var c=Math.floor(ZC.G6(ZC._a_(t))/Math.LN10);e===t&&(t+=Math.pow(10,c)),r=e,o=t,C=ZC.AQ._nice_number_(o-r,!1),null===ZC._n_(i)?(s=C/(l-1),s=ZC.AQ._nice_number_(s,!0),s*=a):s=i,n?(A=Math.floor(r/s)*s,Z=Math.ceil(o/s)*s):(A=r,Z=o,s=null===ZC._n_(i)?C/(l-1):i);var p=Math.floor(ZC.G6(ZC._a_(s))/Math.LN10),u=p<0?ZC._a_(p):0;if(0===u){var h=(""+s).split(".");2===h.length&&(u=h[1].length)}return[A,Z,s,u,s]}},ZC.Y8={md5:function(e){return ZC.Y8.ACX(ZC.Y8.ACY(ZC.Y8.ACU(e)))},ACY:function(e){return ZC.Y8.ACJ(ZC.Y8.ACZ(ZC.Y8.ACK(e),8*e.length))},ACX:function(e){for(var t,i="",a=0,n=e.length;a<n;a++)t=e.charCodeAt(a),i+="0123456789abcdef".charAt(t>>>4&15)+"0123456789abcdef".charAt(15&t);return i},ACU:function(e){for(var t,i,a="",n=-1,l=e.length;++n<l;)t=e.charCodeAt(n),i=n+1<l?e.charCodeAt(n+1):0,55296<=t&&t<=56319&&56320<=i&&i<=57343&&(t=65536+((1023&t)<<10)+(1023&i),n++),t<=127?a+=String.fromCharCode(t):t<=2047?a+=String.fromCharCode(192|t>>>6&31,128|63&t):t<=65535?a+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|63&t):t<=2097151&&(a+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|63&t));return a},ACK:function(e){var t,i=Array(e.length>>2);for(t=0;t<i.length;t++)i[t]=0;for(t=0;t<8*e.length;t+=8)i[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return i},ACJ:function(e){for(var t="",i=0;i<32*e.length;i+=8)t+=String.fromCharCode(e[i>>5]>>>i%32&255);return t},ACZ:function(e,t){function i(e,t,i,a,n,l){return o((r=o(o(t,e),o(a,l)))<<(s=n)|r>>>32-s,i);var r,s}function a(e,t,a,n,l,r,o){return i(t&a|~t&n,e,t,l,r,o)}function n(e,t,a,n,l,r,o){return i(t&n|a&~n,e,t,l,r,o)}function l(e,t,a,n,l,r,o){return i(t^a^n,e,t,l,r,o)}function r(e,t,a,n,l,r,o){return i(a^(t|~n),e,t,l,r,o)}function o(e,t){var i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var s=1732584193,C=-271733879,A=-1732584194,Z=271733878,c=0,p=e.length;c<p;c+=16){var u=s,h=C,_=A,d=Z;C=r(C=r(C=r(C=r(C=l(C=l(C=l(C=l(C=n(C=n(C=n(C=n(C=a(C=a(C=a(C=a(C,A=a(A,Z=a(Z,s=a(s,C,A,Z,e[c],7,-680876936),C,A,e[c+1],12,-389564586),s,C,e[c+2],17,606105819),Z,s,e[c+3],22,-1044525330),A=a(A,Z=a(Z,s=a(s,C,A,Z,e[c+4],7,-176418897),C,A,e[c+5],12,1200080426),s,C,e[c+6],17,-1473231341),Z,s,e[c+7],22,-45705983),A=a(A,Z=a(Z,s=a(s,C,A,Z,e[c+8],7,1770035416),C,A,e[c+9],12,-1958414417),s,C,e[c+10],17,-42063),Z,s,e[c+11],22,-1990404162),A=a(A,Z=a(Z,s=a(s,C,A,Z,e[c+12],7,1804603682),C,A,e[c+13],12,-40341101),s,C,e[c+14],17,-1502002290),Z,s,e[c+15],22,1236535329),A=n(A,Z=n(Z,s=n(s,C,A,Z,e[c+1],5,-165796510),C,A,e[c+6],9,-1069501632),s,C,e[c+11],14,643717713),Z,s,e[c],20,-373897302),A=n(A,Z=n(Z,s=n(s,C,A,Z,e[c+5],5,-701558691),C,A,e[c+10],9,38016083),s,C,e[c+15],14,-660478335),Z,s,e[c+4],20,-405537848),A=n(A,Z=n(Z,s=n(s,C,A,Z,e[c+9],5,568446438),C,A,e[c+14],9,-1019803690),s,C,e[c+3],14,-187363961),Z,s,e[c+8],20,1163531501),A=n(A,Z=n(Z,s=n(s,C,A,Z,e[c+13],5,-1444681467),C,A,e[c+2],9,-51403784),s,C,e[c+7],14,1735328473),Z,s,e[c+12],20,-1926607734),A=l(A,Z=l(Z,s=l(s,C,A,Z,e[c+5],4,-378558),C,A,e[c+8],11,-2022574463),s,C,e[c+11],16,1839030562),Z,s,e[c+14],23,-35309556),A=l(A,Z=l(Z,s=l(s,C,A,Z,e[c+1],4,-1530992060),C,A,e[c+4],11,1272893353),s,C,e[c+7],16,-155497632),Z,s,e[c+10],23,-1094730640),A=l(A,Z=l(Z,s=l(s,C,A,Z,e[c+13],4,681279174),C,A,e[c],11,-358537222),s,C,e[c+3],16,-722521979),Z,s,e[c+6],23,76029189),A=l(A,Z=l(Z,s=l(s,C,A,Z,e[c+9],4,-640364487),C,A,e[c+12],11,-421815835),s,C,e[c+15],16,530742520),Z,s,e[c+2],23,-995338651),A=r(A,Z=r(Z,s=r(s,C,A,Z,e[c],6,-198630844),C,A,e[c+7],10,1126891415),s,C,e[c+14],15,-1416354905),Z,s,e[c+5],21,-57434055),A=r(A,Z=r(Z,s=r(s,C,A,Z,e[c+12],6,1700485571),C,A,e[c+3],10,-1894986606),s,C,e[c+10],15,-1051523),Z,s,e[c+1],21,-2054922799),A=r(A,Z=r(Z,s=r(s,C,A,Z,e[c+8],6,1873313359),C,A,e[c+15],10,-30611744),s,C,e[c+6],15,-1560198380),Z,s,e[c+13],21,1309151649),A=r(A,Z=r(Z,s=r(s,C,A,Z,e[c+4],6,-145523070),C,A,e[c+11],10,-1120210379),s,C,e[c+2],15,718787259),Z,s,e[c+9],21,-343485551),s=o(s,u),C=o(C,h),A=o(A,_),Z=o(Z,d)}return Array(s,C,A,Z)}},typeof zingchart===ZC._[31]&&(window.zingchart={ADD:!0}),zingchart.clipart={},zingchart.widgets={},zingchart.plugins={},zingchart.pool={},zingchart.pool.size=0,zingchart.pool.data={},zingchart.pool.getInstance=function(e,t,i,a){var n;if(null!==ZC._n_(zingchart.pool.data[i]))(n=zingchart.pool.data[i])._POOL_=!0,ZC.SKIPOBJCOUNT=!0,a||(n.init(t),n.K=i),ZC.SKIPOBJCOUNT=!1;else{switch(e){case"DT":n=new DT(t);break;case"I2":n=new I2(t);break;case"DW":n=new DW(t);break;case"R9":n=new R9(t);break;case"D0":n=new D0(t)}n.K=i,zingchart.pool.size++,zingchart.pool.size>zingchart.DEV.MAXPOOLSIZE?(zingchart.pool.data={},zingchart.pool.size=0):zingchart.pool.data[i]=n}return n},zingchart.i18n={},zingchart.THEMES={},zingchart.V3D=2,zingchart.QUOTEDVALUES=!1,zingchart.EDITSOURCE=1,zingchart.MODULESDEP={line:"xy",line3d:"3d,line",area:"xy",area3d:"3d,area",vline:"yx",varea:"yx",vbar:"xy",vbar3d:"3d,vbar",hbar:"yx",hbar3d:"3d,hbar",scatter:"xy",bubble:"xy",hscatter:"yx",hbubble:"yx",pie:"r",pie3d:"3d,pie",nestedpie:"r",gauge:"r",vbullet:"vbar",hbullet:"hbar",vfunnel:"xy",hfunnel:"yx",piano:"xy",radar:"r",range:"xy",vrange:"yx",stock:"xy,vbar",venn:"r"},zingchart.SKIP={EVENT:!1,ANIMATION:!1,LEGEND:!1,CSV:!1,PARSE3D:!1},zingchart.MODULESDIR=function(e){for(var t=0;t<e.length;t++){if(e[t].src)if(e[t].src.indexOf("zingchart.min.js")>-1)return e[t].src.split("zingchart.min.js")[0]+"modules/"}return"./modules/"}(document.getElementsByTagName("head")[0].childNodes),zingchart.DEV={DOMFRAGMENTS:1,SORTTOKENS:1,PLOTSTATS:1,RESOURCES:1,KEEPSOURCE:1,SPREADTYPE:0,SPREADFACTOR:10,IGNORESUBUNIT:0,DELAYEDTRACKERS:0,STACKINGLOGIC:-1,SMARTDATELABELS:0,GC:1,CACHECANVASTEXT:0,CHECKDECIMALS:0,CACHESELECTION:0,MEDIARULES:1,SKIPTRACKERS:0,PLOTSHLAYER:0,RESIZESPEED:250,DEBOUNCESPEED:250,LOCALSVGEXPORT:1,SKIPPROGRESS:0,SKIPCONTEXTMENU:0,COPYDATA:1,GUIDETIMEOUT:0,LOOKUPCSSTRANSFORM:0,MAPSONBOTTOM:0,MAXPOOLSIZE:1024,MINTRACKERDIFF:1.5},zingchart.CANVASTEXT=0,zingchart.ZINDEX=1,zingchart.CMZINDEX=9999,zingchart.FSZINDEX=9998,zingchart.FSID=null,zingchart.ZCOUTPUT=0,zingchart.ASYNC=0,zingchart.SORTTRACKERS=0,zingchart.TIMEOUT=0,zingchart.USERCSS={},zingchart.OBJECTMODE="normal",zingchart.SYNTAX="mixed",zingchart.THEME=null,zingchart.EXPORTURL=("file:"===document.location.protocol?"http:":document.location.protocol)+"//export.zingchart.com/",zingchart.AJAXEXPORT=!1,zingchart.TOUCHZOOM="normal",zingchart.DEFAULT={height:480,width:640},zingchart.FASTWIDTH=0,zingchart.FONTSIZE=11,zingchart.FONTFAMILY="Lucida Sans Unicode,Lucida Grande,Lucida Sans,Helvetica,Arial,sans-serif",ZC.mobile&&(zingchart.FONTFAMILY="Lucida Sans,Helvetica,Arial,sans-serif"),zingchart.loadModules=function(e,t){for(var i=(""+e).split(","),a=0,n=i.length;a<n;a++){var l=ZC.GX(i[a]);l=ZC.ALIAS[l]||l,-1!==ZC.AV(["bar","bar3d","funnel","bullet"],l)&&(l="v"+l);var r=zingchart.MODULESDEP[l];null!==ZC._n_(r)&&zingchart.loadModules(r),-1===ZC.AV(ZC.RT,l)&&ZC.RT.push(l)}t&&zingchart.A2A(null,ZC.RT,t)},zingchart.A2A=function(e,t,i){var a=0;if(0===t.length)i();else{if(!document.getElementsByTagName("head")[0])return void i();!function n(){var l,r=!0;function o(){++a===t.length?i():n()}zingchart.ACT(t[a])?l=zingchart.MODULESDIR+"zingchart-"+t[a]+".min.js":r=!1,r?ZC.AP.ACL(e,l,o):o()}()}},zingchart.ACT=function(e){return-1!==ZC.AV(ZC.RT,e)&&-1===ZC.AV(ZC.X1,e)},zingchart.LS=[],ZC.ie67||function(){for(var e in ZC.IMAGES)ZC.IMAGES.hasOwnProperty(e)&&(zingchart.LS[e]=new Image,zingchart.LS[e].src=ZC.IMAGES[e])}(),typeof Ext!==ZC._[31]&&(zingchart.LS["zc.blank"]=new Image,zingchart.LS["zc.blank"].src=ZC.BLANK),zingchart.exec=function(e,t,i){return zingchart.exec_flash?zingchart.exec_flash(e,t,i):null},zingchart.AD9=function(N){var QT=N.dataurl||"",EV="",H,MG=null;null!==ZC._n_(H=N.data)&&("string"==typeof H?EV=H:MG=JSON.parse(JSON.stringify(H)));var DJ=null;if(""!==QT)ZC.A5.ajax({type:"GET",url:QT,async:!1,data:zingchart.ZCOUTPUT?"zcoutput=userdef":"",error:function(){return!1},success:function(KN){function _f_(e){ZC.cache.data["data-"+QT]=KN,N.output="auto",ZC._cp_(e.render,N)}try{DJ=JSON.parse(KN),_f_(DJ)}catch(JC){try{DJ=eval("("+KN+")"),_f_(DJ)}catch(JC){return!1}}}});else{if(""!==EV)try{DJ=JSON.parse(EV)}catch(JC){return!1}else null!==MG&&(DJ=MG);null===ZC._n_(N.output)&&(N.output="auto"),ZC._cp_(DJ.render,N)}return zingchart.render(N)},zingchart.A0C=null,zingchart.params={},zingchart.render=function(e,t){if(null===ZC._n_(t)&&(t=!1),t)return zingchart.AD9(e);null===ZC._n_(ZC.canvas)&&ZC.compat();var i=e.output||"auto";"html5"===i&&(i="auto"),ZC.mobile&&"auto"===i&&(i="svg");var a=!1;if("!"===i.substring(0,1)&&(a=!0,i=i.substring(1)),a||("auto"===i||"canvas"===i&&!ZC.canvas||"svg"===i&&!ZC.svg||"vml"===i&&!ZC.vml||"flash"===i&&!ZC.flash)&&(ZC.svg?i="svg":ZC.canvas?i="canvas":ZC.vml?i="vml":ZC.flash&&(i="flash")),"vml"===i&&null===ZC._n_(zingchart.A0C)&&(zingchart.A0C=!1),"flash"!==i)return zingchart.A9L(e,i);zingchart.render_flash(e)},document.attachEvent&&("complete"===document.readyState?zingchart.A0C=!0:document.attachEvent("onreadystatechange",function(){"complete"===document.readyState&&(zingchart.A0C=!0)})),zingchart.setlabel=zingchart.setLabel=function(e,t){ZC.HN[e]=t},zingchart.I5=[],zingchart.YJ={},zingchart.ADE=0,zingchart.AD2=0,zingchart.ADF=!1,zingchart.A9R=!1,zingchart.A9S=!1,zingchart.ACV=!1,zingchart.css=null,zingchart.XH=function(e){if(e.target.id){for(var t=null,i=0,a=zingchart.I5.length;i<a;i++)e.target.id.substr(0,zingchart.I5[i].K.length+1)===zingchart.I5[i].K+"-"&&(t=zingchart.I5[i]);return t}},ZC.GESTURE={id:null,on:!1,ts:null,type:null,dist:-1,mp:[-1,-1]},typeof zingchart.MS===ZC._[31]&&(zingchart.MS=function(e){if(e.target&&e.target.tagName&&"INPUT"!==e.target.tagName.toUpperCase()&&"TEXTAREA"!==e.target.tagName.toUpperCase()){var t;if("pinch"===zingchart.TOUCHZOOM)switch(ZC.TOUCHEVENTS=!1,e.type){case"touchstart":for(var i=!1,a=0;a<zingchart.I5.length;a++)t=ZC.A5("#"+zingchart.I5[a].K+"-top"),ZC.DR(e.touches[0].pageX,t.offset().left,t.offset().left+t.width())&&ZC.DR(e.touches[0].pageY,t.offset().top,t.offset().top+t.height())&&(i=!0,ZC.GESTURE.id=zingchart.I5[a].K);i&&(ZC.GESTURE.on=!0);break;case"touchmove":if(ZC.GESTURE.on&&2===e.touches.length){e.preventDefault();var n=(e.touches[0].clientX-e.touches[1].clientX)*(e.touches[0].clientX-e.touches[1].clientX)+(e.touches[0].clientY-e.touches[1].clientY)*(e.touches[0].clientY-e.touches[1].clientY);n=Math.round(Math.sqrt(n));var l=[Math.round((e.touches[0].clientX+e.touches[1].clientX)/2),Math.round((e.touches[0].clientY+e.touches[1].clientY)/2)];if(-1===ZC.GESTURE.dist)ZC.GESTURE.dist=n,ZC.GESTURE.mp=l,ZC.GESTURE.ts=(new Date).getTime();else if((new Date).getTime()-ZC.GESTURE.ts>100){if(n>ZC.GESTURE.dist+50)ZC.GESTURE.type="pinch-in",zingchart.exec(ZC.GESTURE.id,"zoomin");else if(n<ZC.GESTURE.dist-50)ZC.GESTURE.type="pinch-out",zingchart.exec(ZC.GESTURE.id,"zoomout");else{ZC.GESTURE.type="panning";var r={};l[0]>ZC.GESTURE.mp[0]+10?(r["x-"]=!0,r.xdist=ZC._a_(ZC.GESTURE.mp[0]-l[0])):l[0]<ZC.GESTURE.mp[0]-10&&(r["x+"]=!0,r.xdist=ZC._a_(ZC.GESTURE.mp[0]-l[0])),l[1]>ZC.GESTURE.mp[1]+10?(r["y+"]=!0,r.ydist=ZC._a_(ZC.GESTURE.mp[1]-l[1])):l[1]<ZC.GESTURE.mp[1]-10&&(r["y-"]=!0,r.ydist=ZC._a_(ZC.GESTURE.mp[1]-l[1])),ZC.GESTURE.mp=l,zingchart.exec(ZC.GESTURE.id,"pan",r)}ZC.GESTURE.ts=(new Date).getTime()}}break;case"touchend":ZC.GESTURE.id=null,ZC.GESTURE.on=!1,ZC.GESTURE.type=null,ZC.GESTURE.ts=null,ZC.GESTURE.dist=-1,ZC.GESTURE.mp=[-1,-1]}if(window.ZC){window.ZC.DX=[e.pageX,e.pageY];var o=zingchart.XH(e);if(o){if(!zingchart.SKIP.EVENT){if(e.type===ZC._[47]&&(window.ZC.aMDXY=[e.pageX,e.pageY]),"touchstart"===e.type&&o.AG)for(var s=0;s<o.AG.length;s++)o.AG[s].L2();if(-1!==ZC.AV(["mouseover","mouseout","mouseover"],e.type)&&"IMG"!==e.target.tagName.toUpperCase())return;if("mouseout"===e.type&&(t=ZC.A5("#"+o.K+"-top"),ZC.DR(e.pageX,t.offset().left,t.offset().left+t.width(),!0)&&ZC.DR(e.pageY,t.offset().top,t.offset().top+t.height(),!0)))return;ZC.AP.C0(e.type,o,zingchart.A14(e,o))}zingchart.SKIP.EVENT=!1}}}},ZC.A5(document).bind(ZC.Q.BX("mouseover"),zingchart.MS).bind(ZC.Q.BX("mouseout"),zingchart.MS).bind(ZC.Q.BX(ZC._[48]),zingchart.MS).bind(ZC.Q.BX(ZC._[47]),zingchart.MS).bind(ZC.Q.BX(ZC._[49]),zingchart.MS)),zingchart.A14=function(e,t){var i=ZC.Q.MM(e),a=t.A29(i[0],i[1]),n=ZC.A5("#"+t.K+"-top"),l=Math.round(i[0]-n.offset().left),r=Math.round(i[1]-n.offset().top),o="none";return/(.*)\-scale\_(.*)\-item\_title\-area(.*)/.test(e.target.id)&&(o="scale-title"),/(.*)\-scale\_(.*)\-item\_(\d+)\-area(.*)/.test(e.target.id)&&(o="scale-item"),/(.*)\-plotset\-plot\-(\d+)\-node\-(\d+)(.*)/.test(e.target.id)&&(o="node"),/(.*)\-legend\-item\_(\d+)\-area/.test(e.target.id)&&(o="legend-item"),/(.*)\-legend\-marker\_(\d+)\-area/.test(e.target.id)&&(o="legend-marker"),/(.*)\-legend\-(.+)\-area/.test(e.target.id)&&(o="legend-element"),/(.*)\-menu\-item\-(.*)/.test(e.target.id)&&(o="menu-item"),/(.*)\-preview\-handler\-x(.*)/.test(e.target.id)&&(o="preview"),/(.*)\-shape\-(.*?)\-area/.test(e.target.id)&&(o="shape"),/(.*)\-label\-(.*?)\-area/.test(e.target.id)&&(o="label"),{id:t.K,ev:ZC.A5.BX(e),targetid:e.target.id,graphid:a?a.K:null,target:o,x:l,y:r,plotarea:!!a&&(l>=a.P.iX&&l<=a.P.iX+a.P.I&&r>=a.P.iY&&r<=a.P.iY+a.P.F),touch:ZC.mobile}},typeof zingchart.SP===ZC._[31]&&(zingchart.SP=function(e){for(var t=0,i=zingchart.I5.length;t<i;t++)zingchart.I5[t].hideCM();if(ZC.mobile&&ZC.move)ZC.move=!1;else if(ZC.mobile||!(e.which>1)){var a=zingchart.XH(e);if(a){if("click"===e.type&&ZC.aMDXY&&(ZC._a_(ZC.aMDXY[0]-e.pageX)>2||ZC._a_(ZC.aMDXY[1]-e.pageY)>2))return;if(!zingchart.SKIP.EVENT){var n=zingchart.A14(e,a);n.target=zingchart.plugins.CLICK_TARGET||n.target,zingchart.plugins.CLICK_TARGET=null,ZC.mobile&&"touchend"===e.type&&(a.D["click-ts"]&&(new Date).getTime()-a.D["click-ts"]<500&&ZC.AP.C0("dblclick",a,n),a.D["click-ts"]=(new Date).getTime()),ZC.AP.C0("dblclick"===e.type?"dblclick":"click",a,n)}zingchart.SKIP.EVENT=!1,e.target.id!==a.K+"-menu-area"?a.hideCM():zingchart.ZM(e)}}},ZC.mobile?(ZC.A5(document).bind("touchmove",function(){ZC.move=!0}),ZC.A5(document).bind("touchend",function(){ZC.move=!1})):(ZC.A5(document).bind("click",zingchart.SP),ZC.A5(document).bind("dblclick",zingchart.SP))),typeof zingchart.A3G===ZC._[31]&&(zingchart.A3G=function(e){e.touches.length>0&&(ZC.TOUCHEVENTS=!0)},ZC.A5(document).bind("touchstart",zingchart.A3G)),typeof zingchart.ZM===ZC._[31]&&(zingchart.ZM=function(e,t,i){if(!(e&&e.target&&e.target.tagName&&"IMG"!==e.target.tagName.toUpperCase()&&"AREA"!==e.target.tagName.toUpperCase()&&-1===ZC.Q.TH(e.target).indexOf("zc-scroll")&&-1===e.target.id.indexOf("-legend-")&&-1===e.target.id.indexOf("-preview-"))||zingchart.DEV.SKIPTRACKERS){var a,n,l,r,o,s;i=i||{};var C=null===ZC._n_(t)?zingchart.XH(e):zingchart.getLoader(t);if(C){if(-1!==ZC.AV(C.KV,ZC._[38]))return!1;if(null===ZC._n_(t)?(n=ZC.Q.MM(e),a=C.A29(n[0],n[1])):a=null!==ZC._n_(i[ZC._[3]])?C.OQ(i[ZC._[3]]):C.AG[0],!a)return!1;var A=ZC.A5("#"+C.K+"-top");null===ZC._n_(t)?(l=n[0]-A.offset().left,r=n[1]-A.offset().top):(l=C.I/2,r=C.F/2);var Z={};e&&(Z=zingchart.A14(e,C));var c=ZC.AP.C0("contextmenu",C,Z,!0);if(!c&&typeof c!==ZC._[31]&&(!e&&!i["from-api"]||e&&e.target.id!==C.K+"-menu-area"))return e.preventDefault(),!1;var p=ZC._tx_(C.K);C.A1D(a?a.L:-1,e);var u=-1;if(0!==zingchart.CMZINDEX)u=zingchart.CMZINDEX;else for(var h=ZC.AK(C.K);-1===u&&null!==h.parentNode;)"auto"!==(u=ZC._i_(ZC.A5(h).css("zIndex")))&&""!==u&&null!==ZC._n_(u)||(u=-1),h=h.parentNode;u&&-1!==u&&null!==ZC._n_(u)||(u=1);var _=ZC.A5("#"+C.K+"-menu");if(_.css("zIndex",zingchart.ZINDEX+u+1),null===ZC._n_(t)){if(e.target.id===C.K+"-print-png"||e.target.id===C.K+"-print-jpeg")return!0;e.preventDefault()}if(!ZC.AK(C.K+"-menu"))return!1;l=A.offset().left,r=A.offset().top;var d=A.width(),f=A.height();null===ZC._n_(t)?(o=(n=ZC.Q.MM(e))[0]||ZC.DX[0],s=n[1]||ZC.DX[1]):(o=l+C.I/2,s=r+5);var g=!1;if(C.UF("goback",!1),C.O5>0&&(C.UF("goback",!0),g=!0),C.UF("goforward",!1),C.O5<C.R2.length-1&&(C.UF("goforward",!0),g=!0),C.UF("history",g,!0),o>=l&&o<=l+d*p[0]&&s>=r&&s<=r+f*p[1]){ZC.A5(".zc-menu").each(function(){this.id!==C.K+"-menu"&&C.hideCM()}),C.T0=[o,s,null===ZC._n_(t)?e.target.id:t],_.css("opacity",0).show();var B,v,m=ZC._i_(_.css(ZC._[19]))+ZC._i_(_.css("paddingLeft"))+ZC._i_(_.css("paddingRight")),b=ZC._i_(_.css(ZC._[20]))+ZC._i_(_.css("paddingTop"))+ZC._i_(_.css("paddingBottom")),D=1,K=!1;if(C.o.gui&&C.o.gui["context-menu"]&&C.o.gui["context-menu"]&&(D=C.o.gui["context-menu"].alpha?C.o.gui["context-menu"].alpha:1,K=C.o.gui["context-menu"].docked),_.css("opacity",D).hide(),"classic"!==C.LT&&K){if(K){var E=C.B8.O1[C.LT].root.gui["context-menu"];ZC._cp_(C.o.gui["context-menu"],E),B="left"!==C.o.gui["context-menu"].position&&ZC._n_(C.o.gui["context-menu"].position)?A.offset().left+A.width()-m:A.offset().left}v=A.offset().top,_.css("left",ZC.BQ(1,B)+"px").css("top",ZC.BQ(1,v)+"px").css(ZC._[20],A.height()+"px").css("box-sizing","border-box").show(),_=ZC.A5("#"+C.K+"-menu"),K&&_.PA[0].scrollHeight>A.height()&&_.css("overflow-y","scroll")}else{if(null===ZC._n_(t)&&e.target.id===C.K+"-menu-area"){ZC.AK(C.K+"-menu").style.paddingTop=0;var F=ZC.A5("#"+C.K+"-menu-area").attr("coords").split(","),I=ZC._i_(F[3])-ZC._i_(F[1]);ZC.AK(C.K+"-menu").style.backgroundPosition=ZC._i_(F[0])>C.I/2?"100% 0% !important":"0% 0% !important",B=l+(ZC._i_(F[0])>C.I/2?ZC._i_(F[2])-m:ZC._i_(F[0])),v=r+(ZC._i_(F[1])>C.F/1.25?ZC._i_(F[3])-b-I:ZC._i_(F[3]))}else ZC.AK(C.K+"-menu").style.backgroundPosition="50% 0% !important",B=C.T0[0]-m/2,v=C.T0[1],b>C.F*p[1]?v=r:v-r+b>C.F*p[1]&&(v=ZC.BQ(v-b,C.F*p[1]-b)),B<l&&(B=ZC.BQ(B,l)),B+m>l+C.I*p[0]&&(B=ZC.CX(l+C.I*p[0]-m/2,B-m/2));if(i.position)switch(i.position){case"top":break;case"top-left":B=B-(C.I*p[0]-m)/2+5;break;case"top-right":B=B+(C.I*p[0]-m)/2-5;break;case"bottom":v=v+(C.F*p[1]-b)-10;break;case"bottom-left":v=v+(C.F*p[1]-b)-10,B=B-(C.I*p[0]-m)/2+5;break;case"bottom-right":v=v+(C.F*p[1]-b)-10,B=B+(C.I*p[0]-m)/2-5;break;case"left":v=v+(C.F*p[1]-b)/2-5,B=B-(C.I*p[0]-m)/2+5;break;case"right":v=v+(C.F*p[1]-b)/2-5,B=B+(C.I*p[1]-m)/2-5}else null!==ZC._n_(i.x)&&null!==ZC._n_(i.y)&&(B=l+ZC._i_(i.x),v=r+ZC._i_(i.y));if(_.css("left",ZC.BQ(1,B)+"px").css("top",ZC.BQ(1,v)+"px").show(),ZC.ie67){var x=ZC.A5("#"+C.K+"-menu div").width()[0]||120;_.css(ZC._[19],x+"px")}}return C.A9T=!0,!1}}}},ZC.A5(document).bind("contextmenu",zingchart.ZM)),zingchart.AAZ=function(e,t){if(zingchart.css)return zingchart.css.addRule?zingchart.css.addRule(e,t):zingchart.css.insertRule(e+"{"+t+"}",0)},zingchart.wh=function(e,t,i){"auto"===t&&(t="100%"),"auto"===i&&(i="100%");var a=[0,0];return-1===(""+t).indexOf("%")&&-1===(""+i).indexOf("%")||(a=e.wh()),[-1!==(""+t).indexOf("%")?a[0]*parseInt(t,10)/100:parseInt(t,10),-1!==(""+i).indexOf("%")?a[1]*parseInt(i,10)/100:parseInt(i,10)]},zingchart.J3={},zingchart.bind=function(e,t,i){e=e||"zingchart-global",zingchart.J3[e]||(zingchart.J3[e]={}),zingchart.J3[e][t]?zingchart.J3[e][t].push({fn:i}):zingchart.J3[e][t]=[{fn:i}]},zingchart.unbind=function(e,t,i){if(e=e||"zingchart-global",zingchart.J3[e]&&zingchart.J3[e][t])if(i){for(var a=0,n=zingchart.J3[e][t].length;a<n;a++)if(zingchart.J3[e][t][a].fn===i){zingchart.J3[e][t].splice(a,1);break}}else zingchart.J3[e][t]=null},zingchart.callEvent=function(e,t,i,a){if(e=e||"zingchart-global",zingchart.J3[e]&&zingchart.J3[e][t]){for(var n=0,l=zingchart.J3[e][t].length;n<l;n++)null!==ZC._n_(a)?i[i.length-1]=zingchart.J3[e][t][n].fn.apply(zingchart,i):zingchart.J3[e][t][n].fn.apply(zingchart,i);if(null!==ZC._n_(a))return i[i.length-1]}},zingchart.hasEvent=function(e,t){return e=e||"zingchart-global",zingchart.J3[e]&&zingchart.J3[e][t]},zingchart.A9L=function(e,t){ZC._todash_(e,!1);var i,a,n,l,r,o,s,C,A=[];if(null!==ZC._n_(i=e.flags)&&(A=i.split(",")),null!==ZC._n_(i=e.mode))switch(i){case"static":A=[ZC._[38],ZC._[39],ZC._[40],ZC._[41],ZC._[44]]}var Z="";if(null!==ZC._n_(i=e.container)&&(Z=i),null!==ZC._n_(i=e.id)&&(Z=i),ZC.AK(Z)){var c=null;for(n=0;n<zingchart.I5.length;n++)zingchart.I5[n].K===Z&&(c=zingchart.I5[n].MI);if(null!==ZC._n_(c)){if(""!==c)return;zingchart.exec(Z,"destroy")}zingchart.params[Z]={},ZC._cp_(e,zingchart.params[Z]);var p=!1,u=null;for(n=0;n<zingchart.I5.length;n++)zingchart.I5[n].K===Z&&(zingchart.I5[n]=new S0,u=zingchart.I5[n],p=!0);if(p||((u=new S0).MI="init",zingchart.I5.push(u)),u.K=Z,zingchart.YJ[Z]=!0,"vml"!==t||zingchart.A0C||zingchart.A9L(e,t),!zingchart.A9S){zingchart.A9S=!0;var h={".zc-style":"font-family:"+zingchart.FONTFAMILY+";font-size:"+zingchart.FONTSIZE+"px;font-weight:normal;font-style:normal;text-decoration:none;text-shadow:none;",".zc-style *":"font-family:"+zingchart.FONTFAMILY+";font-size:"+zingchart.FONTSIZE+"px;font-weight:normal;font-style:normal;text-decoration:none;text-shadow:none;",".zc-top *":"text-align:left;margin:auto;text-shadow:none;",".zc-menu *":"text-align:left;margin:auto;",".zc-main text":"-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;",".zc-img":"-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;",".zc-map":"-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;",".zc-pixmap":"-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;",".zc-preview-mask":"cursor:default;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;",".zc-about":"position:absolute;overflow:hidden;border:5px solid #fff;background:#003C4F url("+(ZC.ie67?"//":ZC.LOGO_ABOUT)+") no-repeat center 10px",".zc-about-1":"padding:80px 5px 5px 5px;text-align:center !important;",".zc-about-1 a":"color:#1AB6E3;font-size:17px;line-height:125%;",".zc-about-2":"padding:5px;color:#fff;text-align:center !important;",".zc-about-3":"padding:5px;text-align:center;line-height:125%;",".zc-about-3 div":"background-color:#1AB6E3;line-height:125%;color:#fff;border:1px solid #fff;padding:5px 10px;font-weight:bold;width:60px;margin:0 auto;cursor:pointer;text-align:center",".zc-about-4":"color:#fff;line-height:125%;",".zc-about-4 div":"float:right;color:#fff;line-height:125%;",".zc-viewsource":"border:5px solid #fff;background:#999",".zc-error":"border:5px solid #fff;background:#900",".zc-bugreport":"border:5px solid #fff;background:#999",".zc-form-row-label":"padding:4px 10px 2px;text-align:left;color:#fff",".zc-form-row-element":"padding:2px 8px",".zc-form-row-last":"padding:8px 8px 2px !important",".zc-form-row-element textarea":"text-align:left;background:#fff;color:#000;border:1px solid #333;",".zc-form-row-label input":"color:#000;padding:2px;margin:0 5px 0 0;background-color:#999;",".zc-form-row-element input":"color:#000;padding:2px;margin:0;background-color:#fff",".zc-form-row-last input":"padding:4px 10px !important;margin:0 20px 0 0 !important;background-color:#eee !important;border:2px outset #ccc !important",".zc-form-s0":"font-size:27px !important;letter-spacing:-1px;line-height:125%",".zc-form-s1":"font-size:17px !important;line-height:125%",".zc-form-s1 a":"color:#fff;padding:3px 10px;position:relative;top:4px;border:1px solid #333;border-bottom:0px solid #333",".zc-tab-active":"background-color:#fff;color:#333 !important",".zc-tab-inactive":"background-color:#999;color:#ddd !important",".zc-bugreport label":"display:inline-block;position:relative;top:-2px",".zc-viewimage div":"position:absolute;text-align:center;padding:5px;background:#999;color:#fff",".zc-license-ie67":"padding:0;position:absolute;font-size:12px;font-weight:bold;font-family:"+zingchart.FONTFAMILY+";color:#369;text-align:left",".zc-license":"padding:0;position:absolute;","#zc-fullscreen":"display:block;position:absolute;top:0;left:0;width:100%;height:100%;margin:0;padding:0;background:#fff;",".zc-menu":"position:absolute;display:none;background-repeat:no-repeat !important;background-position:50% 0% !important;",".zc-menu-sep":"font-size:1px;padding:0;line-height:1px;border-bottom:1px solid #000",".zc-menu-item":"cursor:pointer;white-space:nowrap",".zc-blocker":"background:#eee",".zc-blocker div.zc-blocker-msg":"position:absolute;border:2px solid #ccc;padding:10px 30px;background-color:#333;color:#fff",".zc-modal":"background-color:#fff;color:#000;border:2px solid #999",".zc-guide-label-table":"border-collapse:collapse",".zc-guide-label-table td":"padding:4px 10px 2px 2px",".zc-data-table":"border-collapse:collapse",".zc-data-table caption":"font-family:"+zingchart.FONTFAMILY+";text-align:left;font-size:17px;font-weight:600;padding:6px 14px 6px 4px;background-color:#ccc;border-bottom:2px solid #666",".zc-data-table th":"font-family:"+zingchart.FONTFAMILY+";text-align:left;font-size:13px;font-weight:600;padding:2px 14px 2px 4px;background-color:#ddd;border-bottom:1px solid #666",".zc-data-table td":"font-family:"+zingchart.FONTFAMILY+";text-align:left;font-size:11px;padding:1px 14px 1px 4px;background-color:#ffffff;border-bottom:1px solid #eee;white-space:nowrap",".zc-rel":"top:0;left:0;position:relative",".zc-abs":"top:0;left:0;position:absolute"};ZC.ie678||(h[".zc-data-table th:not(:last-child)"]="border-right:1px dotted #666",h[".zc-data-table td:not(:last-child)"]="border-right:1px solid #eee");var _=document.getElementsByTagName("head")[0],d=document.createElement("style");if(d.type="text/css",d.setAttribute("data-author","zingchart"),_.appendChild(d),!zingchart.css)for(n=0,l=document.styleSheets.length;n<l;n++)document.styleSheets[n].ownerNode&&"zingchart"===document.styleSheets[n].ownerNode.getAttribute("data-author")&&(zingchart.css=document.styleSheets[n]);for(var f in zingchart.css||(zingchart.css=document.styleSheets[document.styleSheets.length-1]),h)null!==ZC._n_(zingchart.USERCSS[f])?zingchart.AAZ(f,zingchart.USERCSS[f]):zingchart.AAZ(f,h[f])}if("vml"===t&&!zingchart.A9R)document.namespaces.add("zcv","urn:schemas-microsoft-com:vml"),document.createStyleSheet().cssText=".zcvml { behavior:url(#default#VML); }",zingchart.A9R=!0;var g="";zingchart.THEME&&(g=zingchart.THEME),e.data&&null!==ZC._n_(i=e.data.theme)&&(g=i),null!==ZC._n_(i=e.theme)&&(g=i);var B={data:!1,defaults:!1,css:!1,csv:!1};if(null!==ZC._n_(i=e.cache))for(var v in B)null!==ZC._n_(a=i[v])&&(B[v]=ZC._b_(a));var m=!1;null!==ZC._n_(i=e.fullscreen)&&(m=ZC._b_(i));var b=!0;null!==ZC._n_(i=e["auto-resize"])&&(b=ZC._b_(i));var D=ZC.A5("#"+Z);r=(e[ZC._[19]]||"100%")+"",o=(e[ZC._[20]]||""+zingchart.DEFAULT.height)+"","auto"===r&&(r="100%"),"auto"===o&&(o="100%");var K=zingchart.wh(D,r,o);s=K[0],C=K[1],m&&(s=ZC.A5(window).width(),C=ZC.A5(window).height(),document.body.style.overflow="hidden"),s<10&&(s=zingchart.DEFAULT.width),C<10&&(C=zingchart.DEFAULT.height),s=0===s?zingchart.DEFAULT.width:s,C=0===C?zingchart.DEFAULT.height:C;var E=e.dataurl||"",F=e.defaultsurl||"",I=null,x="",y=null;null!==ZC._n_(i=e.data)&&("string"==typeof i?x=i:y=zingchart.DEV.COPYDATA?JSON.parse(JSON.stringify(i)):i),null!==ZC._n_(i=e.defaults)&&("string"==typeof i&&(i=JSON.parse(i)),I=i),null!==ZC._n_(i=e.imggen)&&(u.A1M=ZC._b_(i)),u.A1M&&(u.G2=null),u.JO=r+"/"+o,u.AB=t,u.A=u,u.iX=0,u.iY=0,u.I=s,u.F=C,u.G0=r,u.N2=o,u.QT=E,u.EV=x,u.MG=y,u.QU=F,u.MV=I,u.US=!1,null!==ZC._n_(e.fullscreenmode)&&ZC._b_(e.fullscreenmode)&&(u.QV=!0),u.M2=m,u.S5=B,u.KV=A,u.LT=g,u.G=u,u.D.hideprogresslogo=!1,null!==ZC._n_(i=e.hideprogresslogo)&&(u.D.hideprogresslogo=ZC._b_(i)),null!==ZC._n_(i=e.customprogresslogo)&&(u.D.customprogresslogo=i),null!==ZC._n_(i=e.customprogresstext)&&(u.D.customprogresstext=i),null!==ZC._n_(i=e.exportdataurl)&&(u.D.exportdataurl=i),null!==ZC._n_(i=e.exportimageurl)&&(u.D.exportimageurl=i);var X={};for(var G in null!==ZC._n_(i=e.bgcolor)&&(X[ZC._[0]]=i),null!==ZC._n_(i=e[ZC._[0]])&&(X[ZC._[0]]=i),null!==ZC._n_(i=e[ZC._[61]])&&(X[ZC._[61]]=i),null!==ZC._n_(i=e[ZC._[62]])&&(X[ZC._[62]]=i),null!==ZC._n_(i=e.color)&&(X.color=i),u.D.progress=X,null!==ZC._n_(i=e["auto-load-modules"])&&(u.A6Z=ZC._b_(i)),null!==ZC._n_(i=e.events)&&(u.A1L=i),null!==ZC._n_(i=e.modules)&&(u.A1U=i),null!==ZC._n_(i=e.format)&&(u.CH=i),null!==ZC._n_(i=e.csvdata)&&(u.O2=i),null!==ZC._n_(i=e.locale)&&null!==ZC._n_(zingchart.i18n[i])&&(u.A1N=i,ZC.HN=zingchart.i18n[i]),null!==ZC._n_(i=e["cache-control"])&&(u.N9=i),zingchart.params)if(!zingchart.YJ[G])for(var Y in delete zingchart.params[G],delete ZC.TS[G],zingchart.pool.data)0===Y.indexOf(G+"-")&&(delete zingchart.pool.data[Y],zingchart.pool.size--);if(u.render(),D.css("overflow","hidden"),u.M2&&D.css("position","absolute").css("top",0).css("left",0),(-1!==u.G0.indexOf("%")||-1!==u.N2.indexOf("%")||u.M2||u.QV)&&b){var w=u.QV||u.M2?ZC.A5(window):D,M=w.width(),L=w.height(),P=0;u.A0Y=!1,u.YZ=window.setInterval(function(){var e;if(ZC.AK(Z)&&!u.A33){var t=ZC.A5("#"+Z+"-top"),i=!1;if(-1!==(""+u.G0).indexOf("%")&&t.length&&w.length&&t.width()!==w.width()&&(i=!0),0!==P||w.width()===M&&w.height()===L&&!i){if(w.width()+w.height()>0&&(w.width()!==M||w.height()!==L)&&(e=u.M2||u.QV?zingchart.wh(w,""+w.width(),""+w.height()):zingchart.wh(w,u.G0,u.N2))[0]>10&&e[1]>10){for(u.I=ZC._i_(e[0]),u.F=ZC._i_(e[1]),M=w.width(),L=w.height(),n=0,l=u.AG.length;n<l;n++)u.AG[n].MK[0]=0;R()}}else if(M=w.width(),L=w.height(),M>10&&L>10){for(-1!==(""+u.G0).indexOf("%")?u.I=ZC._i_(M*ZC.IR(u.G0)):u.I=ZC._i_(M),-1!==(""+u.N2).indexOf("%")?u.F=ZC._i_(L*ZC.IR(u.N2)):u.F=ZC._i_(L),n=0,l=u.AG.length;n<l;n++)u.AG[n].MK[0]=0;R()}P++}else window.clearInterval(u.YZ)},zingchart.DEV.RESIZESPEED)}return u}function O(){if(!u.D.wh||u.D.wh!==u.I+"/"+u.F){for(var e=!1,t=0;t<zingchart.I5.length;t++)zingchart.I5[t].K===u.K&&(e=!0);e&&u.resize()}u.A0Y=!1}function R(){u.A0Y?u.VZ.width!==u.I&&(clearTimeout(u.A6S),u.VZ.width=u.I,u.VZ.height=u.F,u.A6S=setTimeout(O,zingchart.DEV.DEBOUNCESPEED)):(u.A0Y=!0,u.VZ={width:u.I,height:u.F},u.A6S=setTimeout(O,zingchart.DEV.DEBOUNCESPEED))}},window.zingchart=zingchart,ZC.A5.browser.msie&&parseFloat(ZC.A5.browser.version)<9){var _window_onunload_=window.onunload;window.onunload=function(){for(;zingchart.I5.length;)zingchart.exec(zingchart.I5[0].K,"destroy");ZC.A5(document).unbind(ZC.Q.BX("mouseover"),zingchart.MS).unbind(ZC.Q.BX("mouseout"),zingchart.MS).unbind(ZC.Q.BX(ZC._[48]),zingchart.MS).unbind(ZC.Q.BX(ZC._[47]),zingchart.MS).unbind(ZC.Q.BX(ZC._[49]),zingchart.MS).unbind("click",zingchart.SP).unbind("contextmenu",zingchart.ZM),zingchart.I5=[],_window_onunload_&&_window_onunload_()}}zingchart.i18n.en_us={rtl:!1,"decimals-separator":".","thousands-separator":"","menu-enablepagescroll":"Enable Page Scroll","menu-disablepagescroll":"Disable Page Scroll","menu-reload":"Reload","menu-print":"Print Chart","menu-viewaspng":"View As PNG","menu-viewasjpg":"View As JPG","menu-downloadpdf":"Download PDF","menu-downloadsvg":"Download SVG","menu-downloadcsv":"Download CSV","menu-downloadxls":"Download XLS","menu-viewdatatable":"View Data Table","menu-hidedatatable":"Hide Data Table","menu-exportdata":"Export Data","menu-zoomin":"Zoom In","menu-zoomout":"Zoom Out","menu-viewall":"View All","menu-viewsource":"View Source","menu-bugreport":"Submit Bug","menu-switchto2d":"Switch To 2D","menu-switchto3d":"Switch To 3D","menu-showguide":"Show Guide","menu-hideguide":"Hide Guide","menu-switchtolin":"Show Linear Scale","menu-switchtolog":"Show Log Scale","menu-fullscreen":"Full Screen","menu-exitfullscreen":"Exit Full Screen","menu-goback":"Go Back","menu-goforward":"Go Forward","date-formats":{msecond:"%d %M %Y<br>%g:%i:%s %A<br>%q ms",second:"%d %M %Y<br>%g:%i:%s %A",minute:"%d %M %Y<br>%g:%i %A",hour:"%d %M %Y<br>%g %A",day:"%d %M %Y",month:"%M %Y",year:"%Y"},"days-short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"days-long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"months-short":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"months-long":["January","February","March","April","May","June","July","August","September","October","November","December"],"sync-wait":"Wait...","export-wait":"Exporting...","progress-wait-long":"Wait. Loading...","progress-wait-short":"Wait...","progress-wait-mini":"...","error-header":"An Error Has Occured","error-message":"Error Message:","error-close":"Close","bugreport-header":"Submit Bug Report","bugreport-senddata":"Send JSON Data","bugreport-sendcapture":"Send Graph Capture","bugreport-yourcomment":"Your Comment:","bugreport-jsondata":"JSON Data:","bugreport-youremail":"Your Email Address","bugreport-infoemail":"if you want to receive via email our reply to your problem","bugreport-emailmandatory":"Email address is mandatory...","bugreport-submit":"Submit","bugreport-cancel":"Cancel","bugreport-confirm":"Your bug report was sent.\n\nThank you!","about-close":"Close","viewsource-jsonsource":"Parsed JSON","viewsource-originalsource":"Original JSON","viewsource-close":"Close","viewsource-apply":"Apply","viewimage-close":"Close","legend-pagination":"Page %page% of %pages%"},ZC.HN=zingchart.i18n.en_us,zingchart.getLoader=function(e){for(var t=0;t<zingchart.I5.length;t++)if(zingchart.I5[t].K===e)return zingchart.I5[t];return null},zingchart.getGraph=function(e,t){return e.OQ(t)},zingchart.clearLayer=function(e){e.A7&&e.A7.onmouseout();for(var t=0;t<e.AG.length;t++)e.AG[t].L2()},zingchart.getGraphInfo=function(e,t,i){return e.A0P(t,i)},zingchart.initThemes=function(e){e&&e.A63(!0)},zingchart.setModule=function(e){ZC.X1.push(e)},zingchart.getModules=function(e){return e.A1U.split(",")},zingchart.defineModule=function(e,t,i){switch(zingchart.setModule(e),t){case"chart":zingchart.bind(null,"dataparse",function(t,a){for(var n=a[ZC._[16]].length,l=0;l<n;l++)if(a[ZC._[16]][l].type===e){var r=a[ZC._[16]][l];r.id?r.id=r.id:r.id=e.replace(/-/g,"")+l,a[ZC._[16]][l]=i(r)}return a});break;case"plugin":zingchart.bind(null,"dataparse",function(t,a){var n=zingchart.getLoader(t.id);if(-1!==zingchart.getModules(n).indexOf(e))for(var l=a[ZC._[16]].length,r=null,o=0;o<l;o++)(r=a[ZC._[16]][o]).hasOwnProperty(e)&&(a[ZC._[16]][o]=i(r,t.id));return a})}},zingchart.getPalette=function(e,t,i){return i=i||"bar",e.B8.AAI(t,i)},zingchart.getObject=function(e,t,i){var a,n;switch(i=i||"label"){case"shape":for(a=0,n=e.FJ.length;a<n;a++)if(e.FJ[a].H6===t||a===t)return e.FJ[a].BF;break;case"label":for(a=0,n=e.BY.length;a<n;a++)if(e.BY[a].H6===t||a===t)return e.BY[a]}return null},zingchart.getInstance=function(e,t){switch(t){case"style":return new D0(e);case"shape":return new DW(e);case"box":return new I2(e);case"textbox":return new DT(e)}return null},zingchart.normalize=function(e){ZC._todash_(e)},zingchart.copy=function(e,t){ZC._cp_(e,t)},zingchart.formatDate=function(e,t,i,a){return ZC.AP.YY(e,t,i,a)},zingchart.formatNumber=function(e,t){return ZC.AP.G3(e,t)},zingchart.fireEvent=function(e,t,i){ZC.AP.C0(e,t,i)},zingchart.A9O=[],zingchart.extendAPI=function(e,t){zingchart.A9O.push({call:e,api:t})},zingchart.exec=function(e,t,i){return zingchart.getLoader(e)?zingchart.AD0(e,t,i):zingchart.exec_flash?zingchart.exec_flash(e,t,i):void 0},zingchart.AD0=function(e,t,i){var a,n,l;i=i||{},document.getElementById("zc-fullscreen")&&!i.skipfs&&(e="zc-fullscreen"),"string"==typeof i&&(i=JSON.parse(i));var r,o,s,C,A,Z=zingchart.getLoader(e);if(null!==ZC._n_(i[ZC._[53]])&&(Z.D[ZC._[53]]=ZC._b_(i[ZC._[53]])),Z)switch(t){case"goback":Z.ID&&Z.O5>0&&(ZC.AP.C0("history_back",Z,Z.F5()),Z.O5--,zingchart.exec(Z.K,"setdata",{data:Z.R2[Z.O5]}));break;case"goforward":Z.ID&&Z.O5<Z.R2.length-1&&(ZC.AP.C0("history_forward",Z,Z.F5()),Z.O5++,zingchart.exec(Z.K,"setdata",{data:Z.R2[Z.O5]}));break;case"setmode":if(typeof Z.D["mode-flags"]===ZC._[31]&&(Z.D["mode-flags"]=Z.KV.join(",")),""===i.mode&&typeof Z.D["mode-flags"]!==ZC._[31])Z.KV=Z.D["mode-flags"].split(",");else{Z.KV=[];var c=(""+i.mode).split(",");-1!==ZC.AV(c,"static")&&Z.KV.push(ZC._[38],"skip_objects_tracking",ZC._[39],ZC._[40],ZC._[41])}break;case"showmenu":ZC.DX[0]=ZC._n_(i.x)?i.x:ZC.DX[0],ZC.DX[1]=ZC._n_(i.y)?i.y:ZC.DX[1],i["from-api"]=!0,zingchart.ZM(null,Z.K,i);break;case"hidemenu":Z.hideCM();break;case"destroy":case"zcdestroy":for(ZC.AP.C0("beforedestroy",Z,{id:e,loader:Z}),delete zingchart.YJ[e],n=0,l=Z.AG.length;n<l;n++)Z.AG[n].MK[0]=0,Z.AG[n].BA&&(Z.AG[n].BA.JI=!1,Z.AG[n].unbind(!1,!0)),Z.HE&&(Z.HE.JI=!1);for(var p in ZC.move=!1,Z.Y9(),Z.A62(i,!0),zingchart.DEV.GC&&Z.gc(),Z.YZ&&window.clearInterval(Z.YZ),Z.ZE&&window.clearInterval(Z.ZE),zingchart.J3[e]&&delete zingchart.J3[e],ZC.Q.ET([e+"-wrapper",e+"-top",e+"-text-ruler",e+"-dummy",e+"-progress"]),Z.A1Z||delete zingchart.params[e],delete ZC.TS[e],delete ZC.cache.data["svg-rect"],zingchart.pool.data)0===p.indexOf(e+"-")&&(delete zingchart.pool.data[p],zingchart.pool.size--);var u=ZC.AV(zingchart.I5,Z);-1!==u&&zingchart.I5.splice(u,1),zingchart.I5.length||(zingchart.GUIDE_EV=null,delete zingchart.LS["zc.logo"]),Z=null,ZC.AP.C0("destroy",null,{id:e});break;case"getrender":return Z.AB;case"clear":Z.A62(i);break;case"reload":Z.A4R(i);break;case"load":Z.AAY(i);break;case"enable":Z.A13();break;case"disable":Z.A3R(i.text);break;case"closemodal":ZC.Q.ET([Z.K+"-modal",Z.K+"-blocker"]);break;case"openmodal":if(!ZC.AK(Z.K+"-modal"))return ZC.Q.I7({cls:"zc-abs zc-style zc-blocker",id:Z.K+"-blocker",p:ZC.AK(Z.K+"-top"),wh:Z.I+"/"+Z.F,opacity:.75}),ZC.Q.I7({cls:"zc-abs zc-style zc-modal",id:Z.K+"-modal",p:ZC.AK(Z.K+"-top"),tl:(Z.F-i[ZC._[20]])/2+"/"+(Z.I-i[ZC._[19]])/2,wh:i[ZC._[19]]+"/"+i[ZC._[20]],opacity:1}),ZC.AK(Z.K+"-modal");break;case"mapdata":Z.A83(i);break;case"print":Z.A5Y();break;case"fullscreen":Z.A1C();break;case"exitfullscreen":zingchart.exec("zc-fullscreen","destroy"),ZC.Q.ET("zc-fullscreen");break;case"resize":Z.A33=!0;var h=Z.I,_=Z.F,d=Z.JO.split("/"),f=!1,g=d[0],B=d[1];null!==ZC._n_(a=i[ZC._[19]])&&(g=a),null!==ZC._n_(a=i[ZC._[20]])&&(B=a),null!==ZC._n_(a=i.scale)&&(f=ZC._b_(a)),Z.A1Z&&(zingchart.params[Z.K][ZC._[19]]=g,zingchart.params[Z.K][ZC._[20]]=B);var v=zingchart.wh(ZC.A5("#"+Z.K),g,B);(i.layout||(h!==v[0]||_!==v[1])&&v[0]>10&&v[1]>10)&&(Z.I=v[0],Z.F=v[1],null!==ZC._n_(a=i.layout)&&(Z.o.layout=a),""===Z.MI&&(Z.D["from-api"]=!0,Z.D[ZC._[53]]=!0,Z.resize(f),Z.G0=g,Z.N2=B,Z.A33=!1));break;case"plothide":case"hideplot":(r=Z.C8(i[ZC._[3]]))&&r.ZL(i,"hide");break;case"showguide":case"hideguide":ZC.DX[0]=ZC._n_(i.x)?i.x:ZC.DX[0],ZC.DX[1]=ZC._n_(i.y)?i.y:ZC.DX[1],(r=Z.C8(i[ZC._[3]]))&&Z.W3(r.K,"showguide"===t);break;case"showtooltip":case"hidetooltip":case"clicknode":if(r=Z.C8(i[ZC._[3]])){var m=i.ev||{};(o=r.HT(i.plotindex,i.plotid))&&o.R.length&&!i.xy?(s=o.L,C=ZC._i_(i.nodeindex||"0"),m.targetid=r.K+ZC._[35]+s+"-node-"+C,m.update=!0):m.targetid=r.K+"-xy-"+ZC._i_(i.y||"0")+"-"+ZC._i_(i.x||"0"),"clicknode"===t?(m.which=0,r.TS(m)):r.A.A7&&("showtooltip"===t?r.A.A7.onmouseover(m,i.data):r.A.A7.hide())}break;case"locktooltip":ZC.TTLOCK=!0;break;case"unlocktooltip":ZC.TTLOCK=!1;break;case"showhoverstate":if(r=Z.C8(i[ZC._[3]])){o=r.HT(i.plotindex,i.plotid),s=ZC._i_(o?o.L:0),C=ZC._i_(i.nodeindex||"0");var b=r.AY.A4[s].FM(C);r.L2(),b.HU()}break;case"plotshow":case"showplot":(r=Z.C8(i[ZC._[3]]))&&r.ZL(i,"show");break;case"togglesource":ZC.AK(Z.K+"-viewsource")?ZC.Q.ET(Z.K+"-viewsource"):Z.A1B();break;case"togglebugreport":ZC.AK(Z.K+"-bugreport")?ZC.Q.ET(Z.K+"-bugreport"):Z.A2G();break;case"toggleabout":ZC.AK(Z.K+"-about")?ZC.Q.ET([Z.K+"-about",Z.K+"-about-mask"]):Z.A5Z();break;case"toggleplot":(r=Z.C8(i[ZC._[3]]))&&r.PE(i);break;case"getcharttype":return(r=Z.C8(i[ZC._[3]]))?r.AF:null;case"showversion":case"getversion":return ZC.VERSION;case"get3dview":return(r=Z.C8(i[ZC._[3]]))?r.EY:null;case"set3dview":(r=Z.C8(i[ZC._[3]]))&&(null===ZC._n_(Z.o[ZC._[16]][r.L][ZC._[26]])&&(Z.o[ZC._[16]][r.L][ZC._[26]]={}),ZC._cp_(i,Z.o[ZC._[16]][r.L][ZC._[26]]),null===ZC._n_(r.o[ZC._[26]])&&(r.o[ZC._[26]]={}),ZC._cp_(i,r.o[ZC._[26]]),zingchart.SKIP.PARSE3D=!0,r.autoFit(),r.JW(!0,!0),zingchart.SKIP.PARSE3D=!1);break;case"getpage":return Z.LD;case"setpage":var D=0;null!==ZC._n_(a=i.page)&&(D=ZC._i_(a)),Z.LD=D,ZC.A07(function(){Z.clear(),Z.parse(),Z.paint()},!0);break;case"unbinddocument":ZC.A5(document).unbind(ZC.Q.BX(ZC._[48]),zingchart.MS).unbind(ZC.Q.BX(ZC._[47]),zingchart.MS).unbind(ZC.Q.BX(ZC._[49]),zingchart.MS).unbind("click",zingchart.SP).unbind("contextmenu",zingchart.ZM),Z.D4&&Z.D4.unbind()}var K=[];for(zingchart.AC4&&null!==(A=zingchart.AC4(e,t,i))&&(a=A),K=["addobject","removeobject","updateobject","repaintobjects","getobjectsbyclass","getallobjects","getlabelinfo","getshapeinfo","setobjectsmode","settweenmode"],zingchart.ABH&&-1!==ZC.AV(K,t)&&null!==(A=zingchart.ABH(e,t,i))&&(a=A),K=["getimagedata","exportimage","saveasimage","exportdata","downloadCSV","downloadXLS","downloadRAW","viewDataTable"],zingchart.ABS&&-1!==ZC.AV(K,t)&&null!==(A=zingchart.ABS(e,t,i))&&(a=A),K=["getzoom","pan","zoomin","zoomout","zoomto","zoomtovalues","viewall"],zingchart.AC3&&-1!==ZC.AV(K,t)&&null!==(A=zingchart.AC3(e,t,i))&&(a=A),K=["clearselection","getselection","setselection","select","deselect"],zingchart.AB6&&-1!==ZC.AV(K,t)&&null!==(A=zingchart.AB6(e,t,i))&&(a=A),K=["clearfeed","getinterval","setinterval","stopfeed","startfeed"],zingchart.AC2&&-1!==ZC.AV(K,t)&&null!==(A=zingchart.AC2(e,t,i))&&(a=A),n=0,l=zingchart.A9O.length;n<l;n++)t===zingchart.A9O[n].call&&null!==(A=zingchart.A9O[n].api.call(zingchart,e,i))&&(a=A);return a},zingchart.extendAPI("addmenuitem",function(e,t){var i=zingchart.getLoader(e);i.DE["context-menu"]=i.DE["context-menu"]||{},i.DE["context-menu"]["custom-items"]=i.DE["context-menu"]["custom-items"]||[];for(var a=t.id||"",n=i.DE["context-menu"]["custom-items"],l=!1,r=0;r<n.length;r++)if(n[r].id===a){l=!0;break}l||i.DE["context-menu"]["custom-items"].push(t)}),zingchart.AC4=function(e,t,i){var a;document.getElementById("zc-fullscreen")&&(e="zc-fullscreen"),"string"==typeof(i=i||{})&&(i=JSON.parse(i));var n,l,r,o,s,C,A,Z,c,p,u,h,_,d,f,g,B,v,m,b,D,K,E,F=zingchart.getLoader(e),I=!(null!==ZC._n_(i.update)&&!ZC._b_(i.update)),x=null!==ZC._n_(i.history)&&ZC._b_(i.history),y=typeof i.smart!==ZC._[31]&&ZC._b_(i.smart);if(F){switch(-1===ZC.AV(["addplot","removeplot","modify","modifyplot","setnodevalue","addnode","removenode","setdata"],t)&&((l=F.F5()).params=i,ZC.AP.C0(t,F,l)),t){case"clearscroll":if(!(n=F.C8(i[ZC._[3]])))return null;n.IG&&n.IG.NY&&(n.IG.NY(),n.IG.unbind()),n.IH&&n.IH.NY&&(n.IH.NY(),n.IH.unbind());break;case"getbubblesize":return(n=F.C8(i[ZC._[3]]))&&(r=n.HT(i.plotindex,i.plotid))?r.getSize(i[ZC._[9]]||1):null;case"fastlinexycoords":var X=(n=F.AG[0]).BI(ZC._[50]),G=n.BI(ZC._[51]);return X&&G?[X.AN(i.key),G.AN(i.val)]:[0,0];case"getscaleinfo":return(n=F.C8(i[ZC._[3]]))&&(o=n.BI(i.name||""))?null!==ZC._n_(i[ZC._[9]])?o.AN?o.AN(i[ZC._[9]]):null:null!==ZC._n_(i.coord)&&o.L1?o.L1(i.coord):null:null;case"getobjectinfo":if(!(n=F.C8(i[ZC._[3]])))return null;var Y={id:"K",x:"iX",y:"iY",width:"I",height:"F",color:"C1",lineColor:"B7",lineWidth:"AZ",borderColor:"BW",borderWidth:"AU",backgroundColor1:"A0",backgroundColor2:"AE"};switch(i.object){case"graph":for(p in l={},Y)l[p]=n[Y[p]];return ZC._cp_({type:n.AF},l),l;case"plotarea":for(p in l={},Y)l[p]=n.P[Y[p]];return l;case"legend":if(l={},n.BC)for(p in Y)l[p]=n.BC[Y[p]];return l;case"scale":if(!(o=n.BI(i.name||"")))return null;for(p in l={},Y)l[p]=o[Y[p]];return ZC._cp_({type:o.AF,text:o.M&&o.M.AT||"",datetime:null!==o.FI&&"date"===o.FI.o.type,step:o.E3,step_:o.SR,stepSize:o.AC,values:o.V,placement:o.B9,aperture:o.EI,zooming:o.GQ,offsetStart:o.AA,offsetEnd:o.BV},l),o.M&&""!==o.M.AT&&(l.label={x:o.M.iX,y:o.M.iY,width:o.M.I,height:o.M.F,angle:o.M.A9}),"v"===o.AF?ZC._cp_({progression:o.C6,logBase:o.E4,minValue:o.B3,maxValue:o.BK,minValue_:o.FX,maxValue_:o.H2},l):"scale-r"===i.name?ZC._cp_({refAngle:o.DG},l):ZC._cp_({minValue:o.V[o.W],maxValue:o.V[o.A1],minValue_:o.V[o.DA],maxValue_:o.V[o.DU],minIndex:o.W,maxIndex:o.A1,minIndex_:o.DA,maxIndex_:o.DU},l),l;case"plot":if(!(r=n.HT(i.plotindex,i.plotid)))return null;for(p in l={},Y)l[p]=r[Y[p]];var w=r.AM&&n.D["plot"+r.L+".visible"];return ZC._cp_({visible:w,id:r.H6,index:r.L,type:r.AF,text:r.AT,values:r.V,scales:r.BN,stacked:r.CA,stackType:r.KX,stack:r.DY,xdata:r.KJ},l),r.U4&&ZC._cp_({marker:{visible:r.U4.AM,size:r.U4.AI,type:r.U4.DP,backgroundColor1:r.U4.A0,backgroundColor2:r.U4.AE,borderColor:r.U4.BW,borderWidth:r.U4.AU}},l),l;case"node":if(r=n.HT(i.plotindex,i.plotid)){if(m=null!==ZC._n_(i.nodeindex)?ZC._i_(i.nodeindex):0,!r.R[m])return null;for(p in s=r.FM(m),(l={}).bounds=s.G.D[s.K+"-bounds"],Y)-1!==ZC.AV(["x","y",ZC._[19],ZC._[20]],p)?l[p]=s[Y[p]]:l[p]=s.O[Y[p]];if(ZC._cp_({plotindex:r.L,index:s.L,size:s.AI,value:s.AD,keyvalue:s.BU,onviewport:s.JJ},l),-1!==r.AF.indexOf("pie")&&ZC._cp_({angleStart:s.B4,angleEnd:s.BJ,slice:s.A.Q6,npv:100*s.AD/s.A.A.KT[s.L]},l),r.KJ){var M={};for(p in r.KJ)r.KJ[p]instanceof Array?M[p]=r.KJ[p][m]:M[p]=r.KJ[p];l.xdata=M}return l}return null}break;case"getxyinfo":var L=[],P=i.x,O=i.y,R=ZC._tx_(F.K);P/=R[0],O/=R[1];for(var Q=0;Q<F.AG.length;Q++){n=F.AG[Q];for(var T=0;T<n.AY.A4.length;T++){r=n.AY.A4[T];var k=n.BI(r.BT("k")[0]),N=n.BI(r.BT("v")[0]);if(k&&N){if(k.MZ&&k.MZ){var H=k.MZ(k.CP?O:P),z=k.MZ(k.CP?O:P,null,!0);L.push({infotype:"key-scale",xydistance:ZC._a_(P-k.H4(H)),graphid:n.K,plotidx:r.L,scalename:k.BG,scaleidx:H,scalepos:z,scaletext:k.BY[H]||"",scalevalue:k.V[H],scalenumvalue:k.L1(k.CP?O:P)})}if(N.L1){var V=N.L1(N.CP?P:O,!0);L.push({infotype:"value-scale",xydistance:ZC._a_(N.CP?P:O-N.AN(V)),graphid:n.K,plotidx:r.L,scalename:N.BG,scalevalue:V})}for(var J,S=ZC.MAX,W=null,U=0,j=r.R.length;U<j;U++)if(null!==(s=r.FM(U)))switch(n.AJ.layout){case"xy":case"yx":var q=!1;"vbar"===s.A.AF?(J=s.getNodeData("h")||s.F,ZC.DR(P,s.iX-s.I/2,s.iX+s.I/2)&&ZC.DR(O,s.iY,s.iY+J)&&(q=!0,S=1)):"hbar"===s.A.AF&&(J=s.getNodeData("w")||s.I,ZC.DR(P,s.iX,s.iX+J)&&ZC.DR(O,s.iY-s.F/2,s.iY+s.F/2)&&(q=!0,S=1)),((a=Math.sqrt((s.iX-P)*(s.iX-P)+(s.iY-O)*(s.iY-O)))<S||q)&&(W={infotype:"node",xydistance:S,graphid:n.K,plotidx:r.L,plotid:r.H6,nodeidx:s.L,nodevalue:s.AD,nodekeyvalue:null===s.BU?k.V[s.L]:s.BU},q||(S=a));break;case"":var $=s.A8W();(a=Math.sqrt(($[0]-P)*($[0]-P)+($[1]-O)*($[1]-O)))<S&&(W={infotype:"node",xydistance:S,graphid:n.K,plotidx:r.L,plotid:r.H6,nodeidx:s.L,nodevalue:s.AD,nodekeyvalue:null===s.BU?k.V[s.L]:s.BU},S=a)}W&&L.push(W)}}}return L;case"update":i.objects?(n=F.C8(i[ZC._[3]]))&&(n.OB(),n.Q0()):null!==ZC._n_(i[ZC._[3]])&&(n=F.C8(i[ZC._[3]]))?F.PS(function(){n.JW(y,y)}):F.JW();break;case"setcharttype":(n=F.C8(i[ZC._[3]]))&&(null!==ZC._n_(i["preserve-state"])&&ZC._b_(i["preserve-state"])?F.D["graph-state-"+n.L]=JSON.stringify(n.D):F.D["graph-state-"+n.L]=null,F.o[ZC._[16]][n.L].type=n.o.type=n.AF=i.type,I&&F.JW());break;case"addgraph":F.o[ZC._[16]].push(i.data||{}),I&&F.JW();break;case"addplot":if(zingchart.SKIP.CSV=!0,h={},_=i.plotdata?"plotdata":"data",null!==ZC._n_(i[_])&&("object"==typeof i[_]?ZC._cp_(i[_],h):h=JSON.parse(i[_])),ZC._todash_(h),n=F.C8(i[ZC._[3]])){var ee=[];if(null===ZC._n_(n.o[ZC._[11]])&&(n.o[ZC._[11]]=[]),u=(null!==ZC._n_(i.plotindex)||null!==ZC._n_(i.plotid))&&(r=n.HT(i.plotindex,i.plotid))?r.L:n.o[ZC._[11]].length,null!==ZC._n_(n.J0)&&n.J0.splice(u,0,!1),null!==ZC._n_(n.CG)){for(D in E={},n.CG)(K=ZC._i_(D.replace("p","")))<u?E[D]=n.CG[D]:E["p"+(K+1)]=n.CG[D];E["p"+u]={},n.CG=E}for(C=0,A=n.o[ZC._[11]].length;C<=A;C++)C===u&&ee.push(h),n.o[ZC._[11]][C]&&ee.push(n.o[ZC._[11]][C]);ZC.AP.C0("plot_add",F,{id:F.K,graphid:n.K,plotindex:u,data:h}),F.o[ZC._[16]][n.L][ZC._[11]]=n.o[ZC._[11]]=ee,F.D.json=ZC.GX(JSON.stringify(F.o)),n.LM("on-change"),I&&(n.D["from-api"]=!0,F.PS(function(){n.JW(y,y)}))}break;case"removeplot":if(zingchart.SKIP.CSV=!0,(n=F.C8(i[ZC._[3]]))&&(r=n.HT(i.plotindex,i.plotid))){if(null!==ZC._n_(n.J0)&&n.J0.splice(r.L,1),null!==ZC._n_(n.CG)){for(D in E={},n.CG)(K=ZC._i_(D.replace("p","")))<r.L?E[D]=n.CG[D]:E["p"+(K-1)]=n.CG[D];n.CG=E}n.o[ZC._[11]].splice(r.L,1),F.o[ZC._[16]][n.L][ZC._[11]]=n.o[ZC._[11]],F.D.json=ZC.GX(JSON.stringify(F.o)),ZC.AP.C0("plot_remove",F,{id:F.K,graphid:n.K,plotindex:r.L}),n.LM("on-change"),n.JW(y,y)}break;case"modify":if(zingchart.SKIP.CSV=!0,h={},null!==ZC._n_(i.data)&&("object"==typeof i.data?ZC._cp_(i.data,h):h=JSON.parse(i.data)),ZC._todash_(h),n=F.C8(i[ZC._[3]])){if(n.BA&&(n.BA.IO=!1,n.D["force-preview-parse"]=!0),null!==ZC._n_(i.object))switch(i.object){case"title":ZC._cp_(h,n.o.title);break;case"plotset":case"series":ZC._cp_(h,n.o[ZC._[11]]);break;case"plotarea":ZC._cp_(h,n.o.plotarea);break;case"legend":ZC._cp_(h,n.o.legend);break;case"plot":ZC._cp_(h,n.o.plot);break;case"map":ZC._cp_(h,n.o.shapes[0])}else ZC._cp_(h,n.o);switch(i.object){case"title":F.o[ZC._[16]][n.L].title=n.o.title;break;case"plotset":case"series":F.o[ZC._[16]][n.L][ZC._[11]]=n.o[ZC._[11]];break;case"plotarea":F.o[ZC._[16]][n.L].plotarea=n.o.plotarea;break;case"legend":F.o[ZC._[16]][n.L].legend=n.o.legend;break;case"plot":F.o[ZC._[16]][n.L].plot=n.o.plot;break;case"map":F.o[ZC._[16]][n.L].shapes[0]=n.o.shapes[0],F.VT(F.o),n.o.shapes=F.o[ZC._[16]][n.L].shapes;break;default:F.o[ZC._[16]][n.L]=n.o}F.D.json=ZC.GX(JSON.stringify(F.o)),ZC.AP.C0("modify",F,{id:F.K,graphid:n.K,data:h,object:i.object}),n.LM("on-change"),I&&(n.D["from-api"]=!0,F.PS(function(){n.JW(y,y)}))}break;case"modifyplot":zingchart.SKIP.CSV=!0,h={},_=i.plotdata?"plotdata":"data",null!==ZC._n_(i[_])&&("object"==typeof i[_]?ZC._cp_(i[_],h):h=JSON.parse(i[_])),ZC._todash_(h),(n=F.C8(i[ZC._[3]]))&&(r=n.HT(i.plotindex,i.plotid))&&(null===ZC._n_(F.o[ZC._[16]][n.L][ZC._[11]])&&(F.o[ZC._[16]][n.L][ZC._[11]]=[]),ZC._cp_(h,n.o[ZC._[11]][r.L]),F.o[ZC._[16]][n.L][ZC._[11]][r.L]=n.o[ZC._[11]][r.L],F.D.json=ZC.GX(JSON.stringify(F.o)),ZC.AP.C0("plot_modify",F,{id:F.K,graphid:n.K,plotindex:r.L,data:h}),n.LM("on-change"),I&&(n.D["from-api"]=!0,F.PS(function(){n.JW(y,y)})));break;case"setnodevalue":zingchart.SKIP.CSV=!0,(n=F.C8(i[ZC._[3]]))&&(r=n.HT(i.plotindex,i.plotid))&&(m=0,null!==ZC._n_(i.nodeindex)&&(m=ZC._i_(i.nodeindex)),a=0,null!==ZC._n_(i[ZC._[9]])&&(a=i[ZC._[9]]),ZC.AP.C0("node_set",F,{id:F.K,graphid:n.K,plotindex:r.L,nodeindex:m,key:m,value:a,text:a}),F.o[ZC._[16]][n.L][ZC._[11]][r.L][ZC._[5]][m]=n.o[ZC._[11]][r.L][ZC._[5]][m]=a,F.D.json=ZC.GX(JSON.stringify(F.o)),n.LM("on-change"),I&&(n.D["from-api"]=!0,n.JW(y,y)));break;case"setscalevalues":if(zingchart.SKIP.CSV=!0,n=F.C8(i[ZC._[3]])){for(d=i.scale||ZC._[50],f=0,g=n.BN.length;f<g;f++)d===n.BN[f].BG&&null!==ZC._n_(n.o[d])&&(n.o[d][ZC._[5]]=i[ZC._[5]],F.o[ZC._[16]][n.L][d]=F.o[ZC._[16]][n.L][d]||{},F.o[ZC._[16]][n.L][d][ZC._[5]]=i[ZC._[5]]);F.D.json=ZC.GX(JSON.stringify(F.o)),n.LM("on-change"),I&&(n.D["from-api"]=!0,n.JW(y,y))}break;case"addscalevalue":if(zingchart.SKIP.CSV=!0,n=F.C8(i[ZC._[3]])){for(d=i.scale||ZC._[50],f=0,g=n.BN.length;f<g;f++)if(d===n.BN[f].BG&&null!==ZC._n_(n.o[d])&&null!==ZC._n_(n.o[d][ZC._[5]])){for(m=null===ZC._n_(i.nodeindex)?n.o[d][ZC._[5]].length:ZC._i_(i.nodeindex),(v=n.o[d][ZC._[5]]).push(null),C=v.length-1;C>m;C--)v[C]=v[C-1];v[m]=i[ZC._[9]]||"",F.o[ZC._[16]][n.L][d][ZC._[5]]=v}F.D.json=ZC.GX(JSON.stringify(F.o)),n.LM("on-change"),I&&(n.D["from-api"]=!0,n.JW(y,y))}break;case"removescalevalue":if(zingchart.SKIP.CSV=!0,n=F.C8(i[ZC._[3]])){for(d=i.scale||ZC._[50],f=0,g=n.BN.length;f<g;f++)d===n.BN[f].BG&&null!==ZC._n_(n.o[d])&&null!==ZC._n_(n.o[d][ZC._[5]])&&(m=null===ZC._n_(i.nodeindex)?n.o[d][ZC._[5]].length-1:ZC._i_(i.nodeindex),(v=n.o[d][ZC._[5]]).splice(m,1),F.o[ZC._[16]][n.L][d][ZC._[5]]=v);F.D.json=ZC.GX(JSON.stringify(F.o)),n.LM("on-change"),I&&(n.D["from-api"]=!0,n.JW(y,y))}break;case"addnode":zingchart.SKIP.CSV=!0,n=F.C8(i[ZC._[3]]);var te=i[ZC._[9]]instanceof Array;if(n&&(r=n.HT(i.plotindex,i.plotid))){B=n.o[ZC._[11]][r.L][ZC._[5]],m=null===ZC._n_(i.nodeindex)?B.length:i.nodeindex,B.push(null);var ie=B.length;for(m=ZC.BQ(0,ZC.CX(m,ie)),C=ie-1;C>m;C--)B[C]=B[C-1];if(B[m]=i[ZC._[9]],!te)for(f=0,g=n.BN.length;f<g;f++)if(d=n.BN[f].BG,"k"===n.BN[f].AF&&null!==ZC._n_(i[d+"-value"])&&null!==ZC._n_(n.o[d])&&null!==ZC._n_(n.o[d][ZC._[5]])){for((v=n.o[d][ZC._[5]]).push(null),C=v.length-1;C>m;C--)v[C]=v[C-1];v[m]=i[d+"-value"],F.o[ZC._[16]][n.L][d][ZC._[5]]=v}ZC.AP.C0("node_add",F,{id:F.K,graphid:n.K,plotindex:r.L,nodeindex:m,key:m,value:i[ZC._[9]],text:i[ZC._[9]]}),F.o[ZC._[16]][n.L][ZC._[11]][r.L][ZC._[5]]=n.o[ZC._[11]][r.L][ZC._[5]],F.D.json=ZC.GX(JSON.stringify(F.o)),n.LM("on-change"),I&&(n.D["from-api"]=!0,n.JW(y,y))}break;case"removenode":if(zingchart.SKIP.CSV=!0,(n=F.C8(i[ZC._[3]]))&&(r=n.HT(i.plotindex,i.plotid))){B=n.o[ZC._[11]][r.L][ZC._[5]],m=null===ZC._n_(i.nodeindex)?r.R.length-1:ZC._i_(i.nodeindex);var ae=!0;if(null!==ZC._n_(i.nodekeyvalue))for(ae=!1,f=0,g=r.R.length;f<g;f++){if(null===r.R[f]&&f===i.nodekeyvalue){ae=!0,m=f;break}if(r.R[f]&&null!==ZC._n_(r.R[f].BU)&&r.R[f].BU===i.nodekeyvalue){ae=!0,m=f;break}}if(ae&&ZC.DR(m,0,r.R.length-1)){for(B.splice(m,1),f=0,g=n.BN.length;f<g;f++)d=n.BN[f].BG,"k"===n.BN[f].AF&&null!==ZC._n_(i[d])&&ZC._b_(i[d])&&null!==ZC._n_(n.o[d])&&null!==ZC._n_(n.o[d][ZC._[5]])&&((v=n.o[d][ZC._[5]]).splice(m,1),F.o[ZC._[16]][n.L][d][ZC._[5]]=v);(ae||r.R[m])&&(ZC.AP.C0("node_remove",F,{id:F.K,graphid:n.K,plotindex:r.L,nodeindex:m,key:m,value:r.R[m]?r.R[m].AD:null,text:r.R[m]?r.R[m].AD:null}),F.o[ZC._[16]][n.L][ZC._[11]][r.L][ZC._[5]]=n.o[ZC._[11]][r.L][ZC._[5]],F.D.json=ZC.GX(JSON.stringify(F.o)),n.LM("on-change"),I&&(n.D["from-api"]=!0,n.JW(y,y)))}}break;case"setdata":if(h={},null!==ZC._n_(i.data))if("object"==typeof i.data)zingchart.DEV.COPYDATA?h=JSON.parse(JSON.stringify(i.data)):ZC._cp_(i.data,h);else try{h=JSON.parse(i.data)}catch(de){return F.NL(de,"JSON parser"),!1}ZC._todash_(h),null===ZC._n_(i[ZC._[53]])&&(F.D[ZC._[53]]=!1),n=null,null!==ZC._n_(i[ZC._[3]])&&(n=F.C8(i[ZC._[3]])),ZC.AP.C0("setdata",F,{id:F.K,graphid:n?n.K:null,data:h});var ne,le,re=["x","y",ZC._[19],ZC._[20]];if(n){for(ne=0;ne<re.length;ne++)delete F.D["graph-"+n.L+"-"+re[ne]];F.o[ZC._[16]][n.L]=n.o=h;var oe=!1;if(h.widgets)oe=!0;else if(h.shapes)for(C=0;C<h.shapes.length;C++)"zingchart.maps"===h.shapes[C].type&&(oe=!0);oe&&F.VT(F.o),F.D.json=ZC.GX(JSON.stringify(F.o)),I&&(n.D["from-api"]=!0,x&&F.O5++,F.PS(function(){F.parse(n.K),F.AG[n.L].paint()}))}else{for(ne=0;ne<re.length;ne++)for(le=0;le<F.AG.length;le++)delete F.D["graph-"+le+"-"+re[ne]];F.o=h,F.D.json=ZC.GX(JSON.stringify(F.o)),F.VT(F.o),I&&(x&&F.O5++,F.JW())}break;case"getseriesdata":return(n=F.C8(i[ZC._[3]]))?null!==ZC._n_(i.plotindex)||null!==ZC._n_(i.plotid)?(r=n.HT(i.plotindex,i.plotid,0))?n.o[ZC._[11]][r.L]:null:n.o[ZC._[11]]:null;case"setseriesdata":case"appendseriesdata":if(zingchart.SKIP.CSV=!0,n=F.C8(i[ZC._[3]])){if(null!==ZC._n_(i.plotindex)||null!==ZC._n_(i.plotid)?(r=n.HT(i.plotindex,i.plotid,0),h="setseriesdata"===t?{}:n.o[ZC._[11]]&&n.o[ZC._[11]][r.L]?n.o[ZC._[11]][r.L]:{}):h="setseriesdata"===t?[]:n.o[ZC._[11]]||[],null!==ZC._n_(i.data)&&("object"==typeof i.data?ZC._cp_(i.data,h):ZC._cp_(JSON.parse(i.data),h)),ZC._todash_(h),null!==ZC._n_(i.plotindex)||null!==ZC._n_(i.plotid))r=n.HT(i.plotindex,i.plotid,0),F.o[ZC._[16]][n.L][ZC._[11]][r.L]=n.o[ZC._[11]][r.L]=h,h.hasOwnProperty("visible")&&(n.D["plot"+r.L+".visible"]=h.visible);else for(F.o[ZC._[16]][n.L][ZC._[11]]=n.o[ZC._[11]]=h,C=0;C<h.length;C++)h[C].hasOwnProperty("visible")&&(n.D["plot"+C+".visible"]=h[C].visible);F.D.json=ZC.GX(JSON.stringify(F.o)),n.LM("on-change"),I&&F.PS(function(){n.JW(y,y)})}break;case"getseriesvalues":if(n=F.C8(i[ZC._[3]])){if(null!==ZC._n_(i.plotindex)||null!==ZC._n_(i.plotid))return(r=n.HT(i.plotindex,i.plotid,0))&&n.o[ZC._[11]][r.L][ZC._[5]]||[];for(b=[],C=0,A=n.AY.A4.length;C<A;C++)b.push(n.o[ZC._[11]][C][ZC._[5]]||[]);return b}return null;case"setseriesvalues":case"appendseriesvalues":zingchart.SKIP.CSV=!0,b=[],null!==ZC._n_(i[ZC._[5]])&&(b="object"==typeof i[ZC._[5]]?i[ZC._[5]]:JSON.parse(i[ZC._[5]]));var se=!1;if(n=F.C8(i[ZC._[3]])){if(null===ZC._n_(i.plotindex)&&null===ZC._n_(i.plotid)||(b=[b],se=!0),se||"setseriesvalues"!==t){for(r=n.HT(i.plotindex,i.plotid,0),C=0,A=b.length;C<A;C++)if(n.AY.A4[r.L+C])if("setseriesvalues"===t)se&&(F.o[ZC._[16]][n.L][ZC._[11]][r.L+C][ZC._[5]]=n.o[ZC._[11]][r.L+C][ZC._[5]]=b[C]);else{var Ce=F.o[ZC._[16]][n.L][ZC._[11]][r.L+C][ZC._[5]],Ae=b[C].length>0&&null!==ZC._n_(b[C][0])&&b[C][0].length>1,Ze=!0;if(null!==ZC._n_(a=i.ignoreduplicates)&&(Ze=ZC._b_(a)),Ae){var ce=Ce.length;for(Z=0,c=b[C].length;Z<c;Z++){for(var pe=!1,ue=ce-1;ue>=0;ue--){if(b[C][Z][0]>Ce[ue][0]){Ce.push(b[C][Z]),pe=!0;break}if(b[C][Z][0]===Ce[ue][0]){pe=!0;break}}pe&&Ze||Ce.push(b[C][Z])}}else for(Z=0,c=b[C].length;Z<c;Z++)Ce.push(b[C][Z]);i["max-values"]&&ZC._i_(i["max-values"])<Ce.length&&(Ce=Ce.slice(-i["max-values"])),F.o[ZC._[16]][n.L][ZC._[11]][r.L+C][ZC._[5]]=n.o[ZC._[11]][r.L+C][ZC._[5]]=Ce}}else{for(f=0;f<b.length;f++)F.o[ZC._[16]][n.L][ZC._[11]][f]=F.o[ZC._[16]][n.L][ZC._[11]][f]||{},n.o[ZC._[11]][f]=n.o[ZC._[11]][f]||{},F.o[ZC._[16]][n.L][ZC._[11]][f][ZC._[5]]=n.o[ZC._[11]][f][ZC._[5]]=b[f];if(n.o[ZC._[11]].length>b.length)for(f=b.length;f<n.o[ZC._[11]].length;f++)delete F.o[ZC._[16]][n.L][ZC._[11]][f],delete n.o[ZC._[11]][f]}n.LM("on-change"),F.D.json=ZC.GX(JSON.stringify(F.o)),I&&n.JW(y,y)}break;case"togglelegend":if((n=F.C8(i[ZC._[3]]))&&n.BC){var he=!0;typeof n.BC.o.visible===ZC._[31]||n.BC.o.visible||(he=!1),n.BC.o.visible=!he,n.BC.clear(!1),n.BC.parse(),n.BC.paint()}break;case"legendminimize":case"legendmaximize":(n=F.C8(i[ZC._[3]]))&&n.BC&&("legendminimize"===t?(ZC.AP.C0("legend_minimize",F,n.I3()),ZC.AP.C0("legend_hide",F,n.I3())):(ZC.AP.C0("legend_maximize",F,n.I3()),ZC.AP.C0("legend_show",F,n.I3())),n.BC.NF="legendminimize"===t,n.BC.VG(),n.BC.clear(!1),n.BC.parse(),n.BC.paint());break;case"legendscroll":(n=F.C8(i[ZC._[3]]))&&n.BC&&(r=n.HT(i.plotindex,i.plotid))&&(n.BC.scrollTo(ZC._i_(r.L)),n.BC.VG(),n.BC.clear(!0),n.BC.Z4=!0,n.BC.parse(),n.BC.paint());break;case"toggledimension":(n=F.C8(i[ZC._[3]]))&&F.A0O(n.K);break;case"getdata":return h=JSON.parse(F.D.json),ZC._todash_(h,!0),h;case"getoriginaljson":return h=JSON.parse(F.D.source),ZC._todash_(h,!0),h;case"getgraphlength":return F.AG.length;case"getplotlength":return(n=F.C8(i[ZC._[3]]))?n.AY.A4.length:0;case"getscales":if(n=F.C8(i[ZC._[3]])){var _e=[];for(C=0;C<n.BN.length;C++)_e.push(n.BN[C].BG);return _e}return[];case"getnodelength":return(n=F.C8(i[ZC._[3]]))&&(r=n.HT(i.plotindex,i.plotid))?r.R.length:null;case"getnodevalue":return(n=F.C8(i[ZC._[3]]))&&(r=n.HT(i.plotindex,i.plotid))&&null!==ZC._n_(i.nodeindex)&&(s=r.R[ZC._i_(i.nodeindex)])?r.EF?[s.BU,s.AD]:s.AD:null;case"getplotvalues":if((n=F.C8(i[ZC._[3]]))&&(r=n.HT(i.plotindex,i.plotid))){for(b=[],C=0,A=r.R.length;C<A;C++)r.R[C]?r.EF?b.push([r.R[C].BU,r.R[C].AD]):b.push(r.R[C].AD):b.push(null);return b}return null}}return null};class ACS extends ZCClass{constructor(e){super(e),this.init(e)}init(){var e=this;e.ON=null,e.o={},e.I9=null,e.JF=null,e.D={},e.E5=[],e.HX=null,e.MR=""}GN(e,t,i,a,n){var l=this;if(e.HX){n=n||l.MR;var r=e.HX.call(l,a,n);i&&r&&(r[i+"-state"]?r=r[i+"-state"]:r[i+"State"]&&(r=r[i+"State"]));var o,s,C=l.getPMap(),A={},Z={};for(var c in r)o=ZC.EE(c),s=ZC.V6(c),"backgroundColor"===o?A.A0=A.AE=ZC.AP.GD(r[c]):"borderRadius"===o?A.F6=A.FS=A.FH=A.F2=r[c]:"padding"===c?A.FO=A.FP=A.FT=A.EO=r[c]:C[o]?A[C[o]]=r[c]:A[o]=r[c],Z[s]=r[c];t.o||ZC._cp_(r,A),ZC._cp_(A,t),t.o&&(ZC._cp_(Z,t.o),t.KQ())}}parse(){var s=this,H,i,oRule,KZ;"dashed"!==zingchart.SYNTAX&&ZC._todash_(s.o);var AB="";if(typeof s.G!==ZC._[31]&&(AB=s.G.AB),ZC.A06(s.o,"html5"),""!==AB&&ZC.A06(s.o,AB),zingchart.DEV.MEDIARULES&&s.o["media-rules"]&&typeof s.G!==ZC._[31])for(i=0;i<s.o["media-rules"].length;i++)oRule=s.o["media-rules"][i],KZ=!0,null!==ZC._n_(oRule["min-width"])&&ZC._i_(oRule["min-width"])>s.G.I&&(KZ=!1),null!==ZC._n_(oRule["max-width"])&&ZC._i_(oRule["max-width"])<s.G.I&&(KZ=!1),null!==ZC._n_(oRule["min-height"])&&ZC._i_(oRule["min-height"])>s.G.F&&(KZ=!1),null!==ZC._n_(oRule["max-height"])&&ZC._i_(oRule["max-height"])<s.G.F&&(KZ=!1),KZ&&ZC._cp_(oRule,s.o);for(s.o.rules&&(s.E5=s.o.rules),i=0;i<s.E5.length;i++)if("*"===s.E5[i].rule&&s.E5[i].js){s.o["js-rule"]=s.E5[i].js,s.E5.splice(i,1);break}if(H=s.o["js-rule"])if("function"==typeof H)s.MR="",s.HX=eval(H);else if("javascript:"===H.substring(0,11)||H.indexOf("(")<H.indexOf(")"))try{s.MR="";var ED=H.replace("javascript:",""),iOpen=H.indexOf("("),iClose=H.indexOf(")");-1!==iOpen&&-1!==iClose&&(s.MR=ED.substr(iOpen+1,iClose-iOpen-1),ED=ED.substr(0,iOpen)),s.HX=ZC.evalFn(ED,window)}catch(e){}if(typeof s.G!==ZC._[31]&&null!==s.G.QW)for(var g in s.G.QW)s.G.QW.hasOwnProperty(g)&&null===ZC._n_(s.o[g])&&(s.o[g]=s.G.QW[g])}getPMap(){return{}}addPMap(e,t,i){for(var a=t.split(","),n=i.split(","),l=0,r=n.length;l<r;l++)e[a[l]]=n[l]}getData(){return this.o}setData(e){this.o=e}getAttributes(){return this.D}getAttribute(e){return this.D[e]}setAttribute(e,t){this.D[e]=t}get(e){var t=this.getPMap();return t[e]?this[t[e]]:null}set(e,t){var i=this.getPMap();i[e]&&(this[i[e]]=t)}append(e,t,i){null===t&&(t=!0);var a=this;e&&(a.I9||(a.I9={},ZC._cp_(a.o,a.I9,!0,i)),a.JF||(a.JF={}),ZC._cp_(e,a.JF,!0,i),ZC._cp_(e,a.o,!0,i)),typeof a.A81!==ZC._[31]&&a.A81()&&e&&ZC._cp_(e,a.o)}A81(){}assign_a(e){for(var t=0,i=e.length;t<i;t++)this.o.hasOwnProperty(e[t][0])&&this.YX(e[t][0],e[t][1],e[t][2],e[t][3],e[t][4])}YX(e,t,i,a,n){var l,r=this;if(null!==(l=r.o[e])&&typeof l!==ZC._[31]){if(i)switch(-1!==i.indexOf("p")&&(l=ZC._p_(l),i=i.replace("p","")),-1!==i.indexOf("a")&&(l=ZC._a_(l),i=i.replace("a","")),i){case"i":l=ZC._i_(l);break;case"f":l=ZC._f_(l);break;case"b":l=ZC._b_(l);break;case"c":l=ZC.AP.ZP(l,r),(l=ZC.AP.GD(l,r))instanceof Array&&("color"===e||"font-color"===e?(r.o["text-alpha"]=l[1],r.VK=l[1],r.D["text-alpha"]=l[1]):e===ZC._[61]?(r.o["border-alpha"]=l[1],r.O9=l[1],r.D["b-alpha"]=l[1]):("line-color"===e&&(r.D["l-alpha"]=l[1]),null===ZC._n_(r.o.alpha)&&(r.C5=l[1])),l=l[0])}null!==ZC._n_(a)&&null!==ZC._n_(n)&&(l=ZC._l_(l,a,n)),r[t]=l}}DC(){for(var e=this,t=!1,i=0,a=e.E5.length;i<a;i++){var n=!1;try{n=new Function("return ("+e.J2(e.E5[i].rule)+")")()}catch(l){n=!1}n&&(t=!0,e.append(e.E5[i]))}return t}A9K(e){for(var t="",i=0,a=e.length;i<a;i++){var n=!1;try{n=new Function("return ("+this.J2(e[i].rule)+")")()}catch(l){n=!1}n&&(t+="<"+e[i].rule+">")}return""!==t?[t,ZC.Y8.md5(t)]:null}J2(){return!0}copy(e){var t=this;ZC._cp_(e.o,t.o),e.I9&&(t.I9=t.I9||{},ZC._cp_(e.I9,t.I9)),e.JF&&(t.JF=t.JF||{},ZC._cp_(e.JF,t.JF)),ZC._cp_(e.D,t.D),ZC._cp_(e.E5,t.E5)}}class D0 extends ACS{constructor(e){super(e),this.init(e)}init(e){super.init(e);var t=this;e&&e.G&&(t.G=e.G),t.K="",t.DI=null,t.AM=!0,t.A0="-1",t.AE="-1",t.GU="",t.HQ="",t.W5=!0,t.D8="",t.MC="repeat",t.TK="50% 50%",t.X2="",t.L0=1,t.NR="linear",t.NE=90,t.WC=0,t.WB=0,t.AZ=0,t.B7="#000",t.GE="",t.EW=0,t.GA=0,t.AU=0,t.BW="#000",t.C5=1,t.O9=1,t.T9="butt",t.A0D="round",t.MF=!1,t.OR=45,t.JX=2,t.TA=.75,t.S6="#999",t.PF=0,t.CY=!0,t.N7=!1,t.LE=!1,t.A2I=!1,t.OV=null,t.BD=""}getPMap(){var e=super.getPMap();return this.addPMap(e,"visible,backgroundColor1,backgroundColor2,gradientColors,gradientStops,backgroundImage,backgroundRepeat,backgroundPosition,backgroundFit,backgroundScale,fillType,fillAngle,fillOffsetX,fillOffsetY,lineWidth,lineColor,lineStyle,lineSegmentSize,lineGapSize,borderWidth,borderColor,borderAlpha,alpha,lineCap,shadow,shadowAngle,shadowDistance,shadowAlpha,shadowColor,shadowBlur,class,border","AM,A0,AE,GU,HQ,D8,MC,TK,X2,L0,NR,NE,WC,WB,AZ,B7,GE,EW,GA,AU,BW,O9,C5,T9,MF,OR,JX,TA,S6,PF,DI,BD"),e}copy(e){super.copy(e);for(var t="AM,A0,AE,GU,HQ,D8,W5,MC,TK,X2,L0,NR,NE,WC,WB,AZ,B7,GE,EW,GA,AU,BW,O9,C5,T9,MF,OR,JX,TA,S6,PF,CY,LE,DI,G,BD".split(","),i=0,a=t.length;i<a;i++)typeof e[t[i]]!==ZC._[31]&&(this[t[i]]=e[t[i]])}A81(){var e,t,i=this,a=!1;if((i.o["class"]||i.o.cls||i.o.id)&&null!==i.G&&null!==i.G.O){if(e=i.o["class"]||i.o.cls)for(var n=e.split(/(\s+)/),l=0,r=n.length;l<r;l++)(t=i.G.O["."+n[l]])&&(a=!0,ZC._cp_(t,i.o));(e=i.o.id)&&(t=i.G.O["#"+e])&&(a=!0,ZC._cp_(t,i.o))}return null!==i.ON&&(t=i.G.O[i.ON])&&(a=!0,ZC._cp_(t,i.o)),a}KQ(e){var t,i=this;switch(null===ZC._n_(e)&&(e=i.AZ),i.GE){case"dotted":i.EW=ZC.BQ(1,.75*e),i.GA=1.75*e;break;case"dashed":i.EW=4*e,i.GA=3*e;break;case"dashdot":i.EW=4*e,i.GA=2*e;break;default:i.EW=0,i.GA=0}null!==(t=ZC._n_(i.o["line-segment-size"]))&&(i.EW=parseInt(t,10)),null!==(t=ZC._n_(i.o["line-gap-size"]))&&(i.GA=parseInt(t,10))}parse(){var e,t,i,a,n,l,r,o,s;super.parse();var C=this;if(null!==(e=ZC._n_(C.o.override))&&!C.A2I){var A,Z,c,p=-1,u=-1;for(typeof C.D.plotidx!==ZC._[31]&&(p=ZC._i_(C.D.plotidx)),typeof C.D.nodeidx!==ZC._[31]&&(u=ZC._i_(C.D.nodeidx)),r=0,o=e.length;r<o;r++){if(A=-1,Z=-1,e[r].hook){if(null!==(t=ZC._n_(e[r].hook["node-index"]))){if(Z=0,c=[],"object"==typeof t)c=t;else if("string"==typeof t){if(-1!==t.indexOf(","))c=t.split(",");else if(-1!==t.indexOf("-"))for(i=t.split("-"),a=ZC._i_(i[0]);a<=ZC._i_(i[1]);a++)c.push(a)}else c=[t];-1!==ZC.AV(c,u)&&(Z=1)}if(null!==(t=e[r].hook["plot-index"])&&typeof t!==ZC._[31]){if(A=0,c=[],"object"==typeof t)c=t;else if("string"==typeof t){if(-1!==t.indexOf(","))c=t.split(",");else if(-1!==t.indexOf("-"))for(i=t.split("-"),a=ZC._i_(i[0]);a<ZC._i_(i[1]);a++)c.push(a)}else c=[t];-1!==ZC.AV(c,p)&&(A=1)}}0!==A&&0!==Z&&C.append(e[r])}}if(null!==(e=C.OV)&&C.append(e),e=C.o[ZC._[0]]){if(e=ZC.AP.ZP(e,this),"rgb("===String(e).substring(0,4))for(n=new RegExp("rgb\\((\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3})\\)");l=n.exec(e);)e=e.replace(l[0],ZC.AP.GD(l[0]));if("rgba("===String(e).substring(0,5))for(n=new RegExp("rgba\\((\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3})\\,\\s*([0-9.]+)\\)");l=n.exec(e);){var h=ZC.AP.GD(l[0],C);e=e.replace(l[0],h[0]),C.o.alpha=h[1],C.C5=h[1],C.D["bg-alpha"]=h[1],null===ZC._n_(C.D["b-alpha"])&&(C.D["b-alpha"]=1),null===ZC._n_(C.D["l-alpha"])&&(C.D["l-alpha"]=1)}var _=ZC.GX(String(e)).split(/\s+|;|,/);C.A0=ZC.AP.GD(_[0]),C.AE=1===_.length?C.A0:ZC.AP.GD(_[1])}if(!(null===ZC._n_(C.o[ZC._[62]])&&null===ZC._n_(C.o[ZC._[61]])&&null===ZC._n_(C.o["line-style"])||null===ZC._n_(C.o["border-top"])&&null===ZC._n_(C.o["border-right"])&&null===ZC._n_(C.o["border-bottom"])&&null===ZC._n_(C.o["border-left"])&&null===ZC._n_(C.o.border))){var d=["top","right","bottom","left"],f={top:[0,"solid","#000"],right:[0,"solid","#000"],bottom:[0,"solid","#000"],left:[0,"solid","#000"]};if(C.I9=C.I9||{},e=C.I9.border)for(s=e.split(/\s/),r=0;r<4;r++)f[d[r]]=[ZC._i_(s[0]||"0"),ZC.GX(s[1]||"solid"),ZC.AP.GD(s[2]||"#000000")];if(null!==ZC._n_(C.I9[ZC._[62]]))for(r=0;r<4;r++)f[d[r]][0]=C.I9[ZC._[62]];if(null!==ZC._n_(C.I9["line-style"]))for(r=0;r<4;r++)f[d[r]][1]=C.I9["line-style"];if(null!==ZC._n_(C.I9[ZC._[61]]))for(r=0;r<4;r++)f[d[r]][2]=C.I9[ZC._[61]];for(r=0;r<4;r++)(e=C.I9["border-"+d[r]])&&(s=e.split(/\s/),f[d[r]]=[ZC._i_(s[0]||"0"),ZC.GX(s[1]||"solid"),ZC.AP.GD(s[2]||"#000000")]);if(C.JF=C.JF||{},e=C.JF.border)for(s=e.split(/\s/),r=0;r<4;r++)f[d[r]]=[ZC._i_(s[0]||"0"),ZC.GX(s[1]||"solid"),ZC.AP.GD(s[2]||"#000000")];if(null!==ZC._n_(C.JF[ZC._[62]]))for(r=0;r<4;r++)f[d[r]][0]=C.JF[ZC._[62]];if(null!==ZC._n_(C.JF["line-style"]))for(r=0;r<4;r++)f[d[r]][1]=C.JF["line-style"];if(null!==ZC._n_(C.JF[ZC._[61]]))for(r=0;r<4;r++)f[d[r]][2]=C.JF[ZC._[61]];for(r=0;r<4;r++)(e=C.JF["border-"+d[r]])&&(s=e.split(/\s/),f[d[r]]=[ZC._i_(s[0]||"0"),ZC.GX(s[1]||"solid"),ZC.AP.GD(s[2]||"#000000")]);for(r=0;r<4;r++)null===ZC._n_(C.o["border-"+d[r]])&&(C.o["border-"+d[r]]=f[d[r]].join(" "))}C.assign_a([["visible","AM","b"],["background-color-1","A0","c"],["background-color-2","AE","c"],["gradient-colors","GU"],["gradient-stops","HQ"],["pixel-correction","CY","b"],["background-clip","W5","b"],["background-image","D8"],["background-repeat","MC"],["background-position","TK"],["background-fit","X2"],["background-scale","L0","f"],["fill-type","NR"],["fill-angle","NE","i"],["fill-offset-x","WC","f"],["fill-offset-y","WB","f"],[ZC._[4],"AZ","i"],["line-color","B7","c"],["line-style","GE",""],["class","DI"],["cls","DI"],["border","BD"]]),"none"===C.NR&&(C.AE=C.A0,C.NR="linear"),""!==C.BD&&(s=C.BD.split(/\s/),C.AU=ZC._i_(s[0]||"0"),C.GE=ZC.GX(s[1]||"solid"),C.BW=ZC.AP.GD(s[2]||"#000000")),C.GU=ZC.AP.ZP(C.GU,this),C.KQ(),C.assign_a([["line-segment-size","EW","i"],["line-gap-size","GA","i"],[ZC._[62],"AU","i"],[ZC._[61],"BW","c"],["alpha","C5","f",0,1],["shadow","MF","b"],["shadow-angle","OR","i",0,360],["shadow-distance","JX","i"],["shadow-alpha","TA","f",0,1],["shadow-color","S6","c"],["shadow-blur","PF","i"]]),C.O9=C.C5,C.assign_a([["border-alpha","O9","f",0,1]])}}ZC.CR={contour:function(e,t,i){var a,n,l;if(e&&i&&0!==i.length){if(!t.D["fast-vector-path"])for(a=0,n=i.length;a<n;a++)i[a]&&(i[a][0]=parseFloat(Number(i[a][0]).toFixed(2)),i[a][1]=parseFloat(Number(i[a][1]).toFixed(2)));var r=!1,o=i.length;for(a=0;a<o;a++)null!==ZC._n_(i[a])&&(l=[i[a][0],i[a][1]],null!==ZC._n_(i[a][2])&&l.push(i[a][2],i[a][3]),null!==ZC._n_(i[a][4])&&l.push(i[a][4],i[a][5]),t.N7&&(l[0]=Math.round(l[0]),l[1]=Math.round(l[1]),4===l.length&&(l[2]=Math.round(l[2]),l[3]=Math.round(l[3]))),t.CY&&t.AZ%2==1&&(l[0]-=.5,l[1]-=.5,4===l.length&&(l[2]-=.5,l[3]-=.5))),0===a?e.moveTo(l[0],l[1]):i[a]?(r&&(e.moveTo(l[0],l[1]),r=!1),2===l.length?e.lineTo(l[0],l[1]):4===l.length?e.quadraticCurveTo(l[0],l[1],l[2],l[3]):6===l.length&&e.arc(l[0],l[1],l[2],ZC.TI(l[3]),ZC.TI(l[4]),l[5])):r=!0}},setup:function(e,t){var i=t.G.AB;if(1!==t.C5&&t.LE&&(null===ZC._n_(t.o[ZC._[61]])&&(t.BW=t.A0),null===ZC._n_(t.o[ZC._[62]])))switch(i){case"canvas":t.AU=.2;break;case"svg":t.AU=.1;break;case"vml":t.AU=.2,t.D.A8Y=t.C5/10}},paint:function(e,t,i,a,n,l){if(null===ZC._n_(n)&&(n=2),null===ZC._n_(a)&&(a=!1),null===ZC._n_(l)&&(l=!1),e&&i&&0!==i.length&&t){var r,o,s,C,A,Z;!l&&i.length>2&&null!==i[0]&&null!==i[i.length-1]&&i[0].join(",")===i[i.length-1].join(",")&&(t.T9="round");var c=t.G.AB;if("canvas"!==c||0!==t.AZ&&"-1"!==t.B7){if(t.MF&&!a){t.C7=t.C7||t.Z;var p,u=ZC.Q._sh_(i,t);typeof t.A5C!==ZC._[31]?p=t.A5C:((p=new DW(t)).copy(t),p.K=t.K+"-sh",p.MF=!1,p.AZ+=p.PF,p.B7=p.S6),p.C5=t.C5*p.TA,typeof t.ADG===ZC._[31]&&(t.A5C=p),p.CY=!1,r=t.C7?ZC.Q.E9(t.C7,c):e,ZC.CR.setup(r,p),ZC.CR.paint(r,p,u,!1,1,l)}var h=ZC._i_(t.EW||"0"),_=ZC._i_(t.GA||"0");"solid"===t.GE&&(h=_=0);var d=i.length;typeof t.A9===ZC._[31]&&(t.A9=0),"canvas"===c&&(e.lineJoin=t.A0D,e.lineCap=t.T9,e.strokeStyle=ZC.AP.A3Q(ZC.AP.GD(t.B7),a?t.O9:t.C5),e.lineWidth=t.AZ,e.beginPath());var f=!1;if(-1!==ZC.AV(["svg","vml"],c))o=l?[]:ZC.Q.A3O(i,c,t,a);else{var g=!1;"dashdot"!==t.GE&&(g=e.setLineDash)&&e.setLineDash(0===h||0===_?[]:[h,_]);var B=0,v=[ZC.MAX,ZC.MAX,-ZC.MAX,-ZC.MAX];for(Z=0;Z<d;Z++)if(null!==i[Z]){if(null!==(s=ZC.objmove?i[Z]:ZC.Q._txp_(i[Z],c,t,a))&&!isNaN(s[0])&&!isNaN(s[1])&&isFinite(s[0])&&isFinite(s[1]))if(d<=6&&a&&(v[0]=ZC.CX(v[0],s[0]),v[1]=ZC.CX(v[1],s[1]),v[2]=ZC.BQ(v[2],s[0]),v[3]=ZC.BQ(v[3],s[1])),0===Z)2===s.length?e.moveTo(s[0],s[1]):6===s.length&&e.arc(s[0],s[1],s[2],ZC.TI(s[3]),ZC.TI(s[4]),s[5]);else if(f&&(e.moveTo(s[0],s[1]),f=!1),g||0===h||0===_||4===s.length||6===s.length||7===s.length)2===s.length?e.lineTo(s[0],s[1]):4===s.length?e.quadraticCurveTo(s[0],s[1],s[2],s[3]):6===s.length?e.arc(s[0],s[1],s[2],ZC.TI(s[3]),ZC.TI(s[4]),s[5]):7===s.length&&e.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);else if(null!==i[Z-1]){var m=ZC.Q._txp_(i[Z-1],c,t,a),b=m[4===m.length?2:0],D=m[4===m.length?3:1],K=s[0],E=s[1],F=h+_,I=K-b,x=E-D,y=Math.sqrt(I*I+x*x)+B;if(y>h){var X;B=0,X="dashdot"===t.GE?Math.floor(ZC._a_(y/((F+t.AZ+_)/2))):Math.floor(ZC._a_(y/F));var G=Math.atan2(x,I),Y=Math.cos(G),w=Math.sin(G),M=b,L=D,P=h;for(C=0;C<X;C++)"dashdot"===t.GE&&(F=C%2?t.AZ+_:h+_,P=C%2?t.AZ:h),I=Y*F,x=w*F,e.moveTo(M,L),e.lineTo(M+Y*P,L+w*P),M+=I,L+=x;e.moveTo(M,L),(y=Math.sqrt((K-M)*(K-M)+(E-L)*(E-L)))>h?e.lineTo(M+Y*h,L+w*h):y>0&&e.lineTo(M+Y*y,L+w*y),e.moveTo(K,E)}else B=y}}else f=!0;t.G&&d<=6&&a&&(t.G.D[t.K+"-bounds"]=v)}switch(c){case"canvas":e.globalCompositeOperation=t.A1F,e.stroke();break;case"svg":case"vml":if(null===ZC._n_(t.o["top-state"])&&t.G.OH&&(!a||t.D.areanode)){if(A=t.D.areanode?t.A0+"-"+t.AE+"-"+t.D8+"-"+t.AZ+"-"+t.GE+"-"+t.C5+"-"+t.BL+"-"+t.BH:t.B7+"-"+t.AZ+"-"+t.GE+"-"+t.C5+"-"+t.BL+"-"+t.BH,null===ZC._n_(t.G.O3[n])){t.G.O3[n]={uid:A,ctx:e,path:o,style:t,filled:a};break}if(t.G.O3[n].uid===A&&t.G.O3[n].path.length<2e3){C=t.G.O3[n].path,o&&o[0]&&(C.length>0&&C[C.length-1].replace(/[A-Z]+/,"")===o[0].replace(/[A-Z]+/,"")&&(o[0]=""),t.G.O3[n].path=t.G.O3[n].path.concat(o));break}"svg"===c?ZC.CR.UB(t.G.O3[n].ctx,t.G.O3[n].style,t.G.O3[n].path.join(" "),t.G.O3[n].filled):ZC.CR.UA(t.G.O3[n].ctx,t.G.O3[n].style,t.G.O3[n].path.join(" "),t.G.O3[n].filled),t.G.O3[n]={uid:A,ctx:e,path:o,style:t,filled:a};break}"svg"===c?ZC.CR.UB(e,t,o.join(" "),a,l):ZC.CR.UA(e,t,o.join(" "),a)}if(null!==ZC._n_(t.o["top-state"])&&!t.YT&&!t.D["skip-top"]&&!t.WM){var O=new I2(t.A);O.copy(t),O.WM=!0,O.MF=!1,O.Z=t.Z,O.append(t.o["top-state"]),O.K=t.K+"-top",O.parse(),"svg"===c?ZC.CR.UB(e,O,o.join(" "),a,l):"vml"===c?ZC.CR.UA(e,O,o.join(" "),a):ZC.CR.paint(e,O,i,a,n,l)}}}},smooth:function(e,t,i){var a,n,l,r;ZC._n_(t)&&(t=!1),i=i||"h";var o=[],s=[];for(a=0,n=e.length;a<n;a++)e[a]&&("h"===i?(s.push(e[a][0]),o.push(e[a][1])):(s.push(e[a][1]),o.push(e[a][0])),0===a&&(s.push(s[0]),o.push(o[0])));for(s.push(s[s.length-1]),o.push(o[o.length-1]),e=[],l=1,r=o.length;l<r-1;l++){var C=[o[l-1],o[l],o[l+1],o[l+2]],A=ZC._a_(s[l+1]-s[l]),Z=1/(A/C.length),c=ZC.AQ.YW(t,C,A,Z);for(a=0,n=c.length;a<n;a++)null!==ZC._n_(c[a][0])&&null!==ZC._n_(c[a][1])?"h"===i?e.push([s[l]+c[a][0]*A,c[a][1]]):e.push([c[a][1],s[l]+c[a][0]*A]):e.push(null)}return e},_append_:function(e,t,i){t.G&&t.G.G2?(null===ZC._n_(t.G.G2[e.id])&&(t.G.G2[e.id]=document.createDocumentFragment()),t.G.G2[e.id].appendChild(i)):e.appendChild(i)},UB:function(e,t,i,a,n){if(""!==i||n){var l,r,o,s,C,A,Z;ZC.cache.data["svg-rect"]||(ZC.cache.data["svg-rect"]=ZC.Q.F7("rect",ZC._[36])),l=n?ZC.cache.data["svg-rect"].cloneNode(!0):ZC.Q.F7("path",ZC._[36]);var c={};if(t.DI&&""!==t.DI&&(c["class"]=t.DI),n||(c.d=i),n){t.I<0&&(t.iX-=t.I,t.I=-t.I),t.F<0&&(t.iY+=t.F,t.F=-t.F);var p=0,u=0,h=1;t.CY&&(h=0,p=u=t.AZ/2,0===t.iX&&(p=0),0===t.iY&&(u=0)),0===h||t.I<=3||t.F<=3?(r=Math.floor(t.iX)+p,o=Math.floor(t.iY)+u,s=Math.ceil(t.I)-2*p,C=Math.ceil(t.F)-2*p,A=t.F6,Z=t.F6):(r=parseFloat(t.iX.toFixed(h))+p,o=parseFloat(t.iY.toFixed(h))+u,s=parseFloat(t.I.toFixed(h))-2*p,C=parseFloat(t.F.toFixed(h))-2*u,A=t.F6,Z=t.F6),c.x=r,c.y=o,c[ZC._[19]]=ZC.BQ(0,s),c[ZC._[20]]=ZC.BQ(0,C),c.rx=A,c.ry=Z,t.G&&(t.G.D[t.K+"-bounds"]=[c.x,c.y,c.x+c[ZC._[19]],c.y+c[ZC._[20]]])}var _="";typeof t.K===ZC._[31]||""===t.K?typeof t.G!==ZC._[31]&&(_=t.G.GRAPHID+"-path-"+ZC.SEQ,ZC.SEQ++):_=t.K+"-path";var d,f="";if(typeof t.BL!==ZC._[31]&&typeof t.BH!==ZC._[31]&&(0===t.BL&&0===t.BH||(f+="translate("+t.BL+" "+t.BH+")")),typeof t.A9!==ZC._[31]&&0!==t.A9){var g=t.A9;typeof t.D.cx!==ZC._[31]&&(g+=","+(ZC._x_(t.D.cx)-.5)),typeof t.D.cy!==ZC._[31]&&(g+=","+(ZC._x_(t.D.cy)-.5)),f+=" rotate("+g+")"}if(a&&-1!==t.D.fill?(c.fill=t.D.fill,c["fill-opacity"]=t.C5):c.fill="none",c["stroke-linecap"]=t.T9,c["stroke-linejoin"]=t.A0D,t.AZ>0&&(c.stroke=t.B7,c["stroke-width"]=t.AZ,c["stroke-opacity"]=a?t.O9:t.C5,"solid"===t.GE||0===t.EW&&0===t.GA||("dashdot"===t.GE?c["stroke-dasharray"]=[t.EW,t.GA,t.AZ,t.GA].join(" "):c["stroke-dasharray"]=t.EW+","+t.GA)),l.id=_,""!==f&&(c.transform=f),t.o["fast-line"]&&t.AZ>0?(l.setAttribute("stroke",c.stroke),l.setAttribute("stroke-width",c["stroke-width"]),l.setAttribute("stroke-opacity",c["stroke-opacity"]),l.setAttribute("d",i)):ZC.Q.G9(l,c),ZC.CR._append_(e,t,l),(!t.D.border||"all"===t.D.border)&&typeof t.D.imgfill!==ZC._[31])if("string"==typeof t.D.imgfill)ZC.AK(_+"-imgfill")||(d=n?ZC.Q.F7("rect",ZC._[36]):ZC.Q.F7("path",ZC._[36]),ZC.Q.G9(d,{id:_+"-imgfill",transform:f,fill:t.D.imgfill,"fill-opacity":t.C5}),n?ZC.Q.G9(d,{x:r,y:o,width:ZC.BQ(0,s),height:ZC.BQ(0,C),rx:A,ry:Z}):ZC.Q.G9(d,{d:i}),ZC.CR._append_(e,t,d));else if(!ZC.AK(_+"-imgfill")){var B=t.D.imgfill,v=ZC.Q.F7("image",ZC._[36]);v.setAttributeNS?"zc."===t.D8.substring(0,3)?v.setAttributeNS(ZC._[37],"href",ZC.IMAGES[t.D8]):v.setAttributeNS(ZC._[37],"href",t.D8):"zc."===t.D8.substring(0,3)?v.setAttribute("src",ZC.IMAGES[t.D8]):v.setAttribute("src",t.D8),null!==ZC._n_(t.D["clip-path"])&&ZC.Q.G9(v,{"clip-path":"url(#"+t.D["clip-path"]+")"}),ZC.Q.G9(v,{id:_+"-imgfill",x:B[1],y:B[2],"fill-opacity":t.C5,width:t.D[ZC._[69]],height:t.D[ZC._[70]],preserveAspectRatio:"none"}),ZC.CR._append_(e,t,v)}}},UA:function(e,t,i,a){var n,l,r,o,s,C;a&&(i+=" x e");var A="";typeof t.K===ZC._[31]||""===t.K?typeof t.G!==ZC._[31]&&(A=t.G.GRAPHID+"-path-"+ZC.SEQ,ZC.SEQ++):A=t.K+"-path";var Z=ZC.Q.F7("zcv:shape");Z.style.position="absolute",Z.style.rotation=t.A9,Z.id=A;var c=ZC.Q.F7("zcv:path");if(c.v=i,c.setAttribute("VMLv",i),Z.appendChild(c),0===t.AZ)Z.stroked=!1;else{var p=ZC.Q.F7("zcv:stroke");if(o=t.C5,typeof t.D.A8Y!==ZC._[31]&&(o=t.D.A8Y),typeof t.D.stroke!==ZC._[31])l=t.D.stroke.weight,r=t.D.stroke.color,o=t.D.stroke.opacity,s=t.D.stroke.dashstyle;else{switch(s="solid",t.GE){case"solid":s="solid";break;case"dotted":s="dot";break;case"dashed":s="dash";break;default:s=t.GE}"solid"!==s&&"0 0"!=(n=ZC.CX(6,t.EW*t.AZ)+" "+ZC.CX(8,t.GA*t.AZ))&&(s=n),l=t.AZ,r=t.B7}ZC.Q.G9(p,{weight:l+"px",color:r,opacity:o,miterlimit:10,endcap:"flat",joinstyle:"round",dashstyle:s}),Z.appendChild(p)}a&&typeof t.D.fill!==ZC._[31]&&-1!==t.D.fill?(Z.filled=!0,Z.appendChild(t.D.fill)):Z.filled=!1,ZC.Q.G9(Z,{coordorigin:"0 0",coordsize:t.A9%360==0?"100 100":t.G.I+" "+t.G.F});var u=0,h=0;if(t.A9%360!=0&&typeof t.D.cx!==ZC._[31]&&typeof t.D.cy!==ZC._[31]){var _=t.G.I/2-t.D.cx,d=t.G.F/2-t.D.cy,f=0===d?0:ZC.UE(Math.atan(_/d));t.D.cy>t.G.F/2&&(f+=180);var g=Math.sqrt(_*_+d*d);u=_-g*ZC.EN(f-t.A9),h=d-g*ZC.EH(f-t.A9)}var B=0-u;null!==ZC._n_(t.BL)&&(B+=t.BL);var v=0-h;if(null!==ZC._n_(t.BH)&&(v+=t.BH),Z.style.left=B+"px",Z.style.top=v+"px",e.appendChild(Z),t.A9%360==0?(Z.style.width="10px",Z.style.height="10px"):(Z.style.width=t.G.I+"px",Z.style.height=t.G.F+"px"),("all"===t.D.border||typeof t.D.imgfill!==ZC._[31])&&typeof t.D.imgfill!==ZC._[31]){var m=t.D.imgfill;1===m.length?((Z=ZC.Q.F7("zcv:shape")).style.position="absolute",Z.style.rotation=t.A9,(c=ZC.Q.F7("zcv:path")).v=i,Z.appendChild(c),Z.appendChild(m[0]),Z.stroked=!1,ZC.Q.G9(Z,{id:A+"-imgfill",filled:!0,coordorigin:"0 0",coordsize:t.A9%360==0?"100 100":t.G.I+" "+t.G.F}),Z.style.left=B+"px",Z.style.top=v+"px",e.appendChild(Z),t.A9%360==0?(Z.style.width="10px",Z.style.height="10px"):(Z.style.width=t.G.I+"px",Z.style.height=t.G.F+"px")):3===m.length&&((C=ZC.Q.F7("img")).id=A+"-img","zc."===t.D8.substring(0,3)?C.src=ZC.IMAGES[t.D8]:C.src=t.D8,C.style.position="absolute",C.style.left=m[1]+"px",C.style.top=m[2]+"px",C.style.width=t.D[ZC._[69]]+"px",C.style.height=t.D[ZC._[70]]+"px",e.appendChild(C))}}};class DW extends D0{constructor(e){super(e),this.init(e)}init(e){super.init(e);var t=this;t.A=e,t.Z=null,t.C7=null,t.H6="",t.iX=-1,t.iY=-1,t.DP="poly",t.E=[],t.CZ=[0,0,0,0],t.A9=0,t.AI=0,t.L5=0,t.BL=0,t.BH=0,t.A9Q=0,t.DS=0,t.B4=0,t.BJ=360,t.CM=0,t.TV=!1,t.ADB=!1,t.A4Z=0,t.AB2="",t.OH=!1,t.AA2=1,t.JU=1,t.E8=null,t.FF=null,t.IZ="auto",t.KD=!1,t.A1F="source-over",t.R3=!1}getPMap(){var e=super.getPMap();return this.addPMap(e,"objectId,x,y,points,bounds,pieAngleStart,pieAngleEnd,pieSlice,url,target,offsetX,offsetY,offsetR,size,size2,angle,shape,flat,cursor","H6,iX,iY,E,CZ,B4,BJ,CM,E8,FF,BL,BH,DS,AI,L5,A9,DP,KD,IZ"),e}build(){}copy(e){super.copy(e);var t,i,a=this,n="BL,BH,DS,AI,L5,A9,DP,KD,IZ".split(",");for(t=0,i=n.length;t<i;t++)typeof e[n[t]]!==ZC._[31]&&(a[n[t]]=e[n[t]]);if(e.E&&e.E.length>0)for(a.E=[],t=0,i=e.E.length;t<i;t++)a.E.push(e.E[t])}ll_(e,t){var i=this;-1!==(""+e).indexOf("lat")&&(t="y"),-1!==(""+e).indexOf("lon")&&(t="x"),e=ZC._f_((""+e).replace("lat","").replace("lon",""));var a=zingchart.maps.maps[i.A4Z];return a&&(e=zingchart.maps.lonlat2xy(a._INFO_.x,a._INFO_.y,a._INFO_.width,a._INFO_.height,"x"===t?[e,0]:[0,e],a._INFO_.bbox,{map:i.A4Z,item:i.AB2,zoom:a._INFO_.zoom,offsetX:a._INFO_.offsetX,offsetY:a._INFO_.offsetY},!0)),e=ZC._i_("x"===t?e[0]:e[1])}kv_(e,t){var i;-1!==(""+e).indexOf("val")&&(t="y"),-1!==(""+e).indexOf("key")&&(t="x"),e=ZC._f_((""+e).replace("key","").replace("val",""));var a=this.G||zingchart.I5[0];if(a){var n=this.A||a.AG[0];n&&("x"===t?null!==(i=n.BT("k")[0])&&(e=ZC._i_(i.AN(e))):null!==(i=n.BT("v")[0])&&(e=ZC._i_(i.AN(e))))}return ZC._i_(e)}xy_(e,t,i){var a=this;t=t||"x";var n=""+e;if(-1!==n.indexOf("lat")||-1!==n.indexOf("lon"))return a.ll_(e,t);if(-1!==n.indexOf("val")||-1!==n.indexOf("key"))return a.kv_(e,t);if(""+ZC._f_(e)!==n)return-1!==(e+="").indexOf("%")?a.xy_(parseFloat(e.replace("%",""))/100,t,!0):-1!==e.indexOf("px")?a.xy_(parseFloat(e.replace("px","")),t):a.xy_(parseFloat(e),t);var l=typeof a.D["p-x"]!==ZC._[31]?a.D["p-x"]:a.A.iX,r=typeof a.D["p-y"]!==ZC._[31]?a.D["p-y"]:a.A.iY,o=typeof a.D["p-width"]!==ZC._[31]?a.D["p-width"]:a.A.I,s=typeof a.D["p-height"]!==ZC._[31]?a.D["p-height"]:a.A.F;return(e>=1||e<0||zingchart.DEV.IGNORESUBUNIT)&&!i?"x"===t?l+parseFloat(e):r+parseFloat(e):e>=0&&e<1||i?"x"===t?(o=o||1,Math.round(l+o*e)):(s=s||1,Math.round(r+s*e)):void 0}locate(e){var t,i=this;if(i.TV)return-1!==(""+i.o.x).indexOf("lon")?i.iX=i.ll_(i.o.x,"x"):i.YX("x","iX"),-1!==(""+i.o.y).indexOf("lat")?i.iY=i.ll_(i.o.y,"y"):i.YX("y","iY"),void i.ZN();1===e?(null!==(t=ZC._n_(i.o.x))&&(i.iX=i.xy_(t,"x")),null!==(t=ZC._n_(i.o.y))&&(i.iY=i.xy_(t,"y")),-1===i.iX&&(i.iX=i.A.iX),-1===i.iY&&(i.iY=i.A.iY)):2===e&&(i.ZN(),i.I=i.CZ[2]-i.CZ[0],i.F=i.CZ[3]-i.CZ[1])}ZN(){var e,t=this,i=ZC.MAX,a=ZC.MAX,n=-ZC.MAX,l=-ZC.MAX;switch(t.DP){case"custom":i=0,a=0,n=0,l=0;break;case"circle":case"arc":case"pie":i=t.iX-t.AI,a=t.iY-t.AI,n=t.iX+t.AI,l=t.iY+t.AI;break;default:for(var r=0,o=t.E.length;r<o;r++)null!==(e=t.E[r])&&(i=Math.min(i,e[0]),a=Math.min(a,e[1]),n=Math.max(n,e[0]),l=Math.max(l,e[1]))}t.CZ=[i,a,n,l]}F1(){var e,t=this;if("pie"===t.DP){var i=1,a=[],n=t.B4+t.A9,l=t.BJ+t.A9,r=t.AI+Math.floor(t.AU/2),o=t.CM-Math.floor(t.AU/2);for(r>50&&(i=2),r>100&&(i=4),0===o?n%360!=l%360&&a.push([t.iX,t.iY]):a.push(ZC.AQ.BM(t.iX,t.iY,o,n),ZC.AQ.BM(t.iX,t.iY,(r+o)/2,n-.25*t.AU),ZC.AQ.BM(t.iX,t.iY,r,n)),e=n;e<=l;e+=i)a.push(ZC.AQ.BM(t.iX,t.iY,r,e));if(a.push(ZC.AQ.BM(t.iX,t.iY,r,l)),a.push(ZC.AQ.BM(t.iX,t.iY,(r+o)/2,l+.25*t.AU)),0===o)n%360!=l%360&&a.push([t.iX,t.iY]);else{for(a.push(ZC.AQ.BM(t.iX,t.iY,o,l)),e=l;e>=n;e-=i)a.push(ZC.AQ.BM(t.iX,t.iY,o,e));a.push(ZC.AQ.BM(t.iX,t.iY,o,n))}return a.push([a[0][0],a[0][1]]),ZC.AQ.Q8(a,Math.min(5,r/5),[t.BL,t.BH])}if(0===t.A9||"rectangle"!==t.DP&&"rect"!==t.DP)return ZC.AQ.Q8(t.E,Math.min(5,t.AI/5),[t.BL,t.BH]);var s,C,A,Z,c,p,u,h,_=[];for(A=ZC._i_((t.CZ[0]+t.CZ[2])/2),Z=ZC._i_((t.CZ[1]+t.CZ[3])/2),s=0,C=t.E.length;s<C;s++)null!==t.E[s]&&(c=t.E[s][0]-A,p=t.E[s][1]-Z,u=c*ZC.EH(t.A9)-p*ZC.EN(t.A9),h=c*ZC.EN(t.A9)+p*ZC.EH(t.A9),_[s]=[u+A,h+Z]);return ZC.AQ.Q8(_,Math.min(5,t.AI/5),[t.BL,t.BH])}A2E(){var e,t,i,a,n,l,r,o,s,C=this,A=ZC.ie67?ZC.MAPTX:0;switch(C.DP){case"line":if(i=[].concat(C.E),0!==C.A9)for(a=(C.CZ[0]+C.CZ[2])/2,n=(C.CZ[1]+C.CZ[3])/2,e=0,t=i.length;e<t;e++)null!==i[e]&&(l=i[e][0]-a,r=i[e][1]-n,o=l*ZC.EH(C.A9)-r*ZC.EN(C.A9),s=l*ZC.EN(C.A9)+r*ZC.EH(C.A9),i[e]=[o+a,s+n]);var Z=["poly"];for(e=0,t=i.length;e<t-1;e++)null!==i[e]&&null!==i[e+1]&&Z.push(ZC.AQ.Q8(ZC.AQ.ZK([i[e],i[e+1]]),4,[C.BL,C.BH]));return Z;case"cross":case"plus":return["circle",ZC._i_(C.iX+A+C.BL)+","+ZC._i_(C.iY+A+C.BH)+","+ZC._i_(C.AI)];case"circle":case"arc":return["circle",ZC._i_(C.iX+A+C.BL)+","+ZC._i_(C.iY+A+C.BH)+","+ZC._i_(C.AI+2)];case"pie":return["poly",C.F1()];default:var c,p=["poly"];for(i=[],e=0,t=C.E.length;e<t;e++)if(null!==C.E[e])if(6===C.E[e].length)for(var u=C.E[e][3];u<C.E[e][4];u+=1)i.push(ZC.AQ.BM(C.E[e][0],C.E[e][1],C.E[e][2],u));else if(4===C.E[e].length&&i[e-1]){var h={x:i[i.length-1][0],y:i[i.length-1][1]},_={x:C.E[e][2],y:C.E[e][3]},d={x:C.E[e][0],y:C.E[e][1]};for(c=0;c<=1;c+=.1)i.push([(1-c)*(1-c)*h.x+2*c*(1-c)*d.x+c*c*_.x,(1-c)*(1-c)*h.y+2*c*(1-c)*d.y+c*c*_.y])}else if(7===C.E[e].length&&i[e-1]){var f={x:i[i.length-1][0],y:i[i.length-1][1]},g={x:C.E[e][0],y:C.E[e][1]},B={x:C.E[e][2],y:C.E[e][3]},v={x:C.E[e][4],y:C.E[e][5]};for(c=0;c<=1;c+=.1){var m=(1-c)*(1-c)*(1-c),b=3*c*(1-c)*(1-c),D=3*c*c*(1-c),K=c*c*c;i.push([m*f.x+b*g.x+D*B.x+K*v.x,m*f.y+b*g.y+D*B.y+K*v.y])}}else i.push(C.E[e]);else i.length>-1&&p.push(ZC.AQ.Q8(i,Math.min(5,C.AI/5),[C.BL,C.BH])),i=[];if(0!==C.A9)for(a=ZC._i_((C.CZ[0]+C.CZ[2])/2),n=ZC._i_((C.CZ[1]+C.CZ[3])/2),e=0,t=i.length;e<t;e++)null!==i[e]&&(l=i[e][0]-a,r=i[e][1]-n,o=l*ZC.EH(C.A9)-r*ZC.EN(C.A9),s=l*ZC.EN(C.A9)+r*ZC.EH(C.A9),i[e]=[o+a,s+n]);return i.length>-1&&p.push(ZC.AQ.Q8(i,Math.min(5,C.AI/5),[C.BL,C.BH])),p}}parse(e){var t,i,a,n,l,r,o;null===ZC._n_(e)&&(e=!1),this.o.tween||e||super.parse();var s=this;if(!s.o.tween&&!e){s.assign_a([["map","A4Z"]]),"string"==typeof s.o.item&&s.assign_a([["item","AB2"]]),0!==s.A4Z&&(null===ZC._n_(s.o["map-item"])||s.o["map-item"])&&(s.o["map-item"]=!0,s.o["map-skip-z-sort"]=!0);var C=["offset-x","offset-y"];for(i=0;i<2;i++){var A=C[i],Z="offset-x"===A?"lon":"lat";if(null!==(t=s.o[A])&&typeof t!==ZC._[31]&&-1!==(t=""+t).indexOf(Z)){t=ZC._f_(t.replace(Z,""));var c=zingchart.maps.maps[s.A4Z];c&&(t=zingchart.maps.translate(A.replace("offset-"),t,s.A.I,s.A.F,c._INFO_.bbox),s.o[A]=t)}}for(s.assign_a([["url","E8"],["target","FF"],["cursor","IZ"],["id","H6"],["angle","A9","i"],["static","KD","b"],["flat","KD","b"],[ZC._[1],"B4","f"],[ZC._[2],"BJ","f"],[ZC._[8],"CM","i"],[ZC._[21],"AI","f"],["size-2","L5","f"],["fast-vector-path","R3","b"],["type","DP"],["points","E"],["offset-x","BL"],["offset-y","BH"],["offset-z","A9Q","i"],["offset-r","DS","i"],["z-sort","AA2","i"],["z-index","JU","f"],["composite","A1F"]]),s.BL=ZC.IR(s.BL,!0),s.BH=ZC.IR(s.BH,!0),s.BL>-1&&s.BL<1&&typeof s.D["p-width"]!==ZC._[31]&&(s.BL*=s.D["p-width"]),s.BH>-1&&s.BH<1&&typeof s.D["p-height"]!==ZC._[31]&&(s.BH*=s.D["p-height"]),s.AI=ZC.BQ(1,s.AI),s.L5=ZC.BQ(1,s.L5),null!==s.o["z-sort"]&&typeof s.o["z-sort"]!==ZC._[31]||(s.AA2=s.JU),"rectangle"!==s.DP&&"rect"!==s.DP||s.assign_a([[ZC._[19],"AI","f"],[ZC._[20],"L5","f"]]),s.A5M?(s.E=JSON.parse(JSON.stringify(s.FE)),s.A5M=!1):s.FE=JSON.parse(JSON.stringify(s.E)),i=0,a=s.E.length;i<a;i++)if(null!==s.E[i])for(var p=0;p<s.E[i].length;p++)-1===(""+s.E[i][p]).indexOf("lat")&&-1===(""+s.E[i][p]).indexOf("lon")||(s.A5M=!0,s.E[i][p]=s.ll_(s.E[i][p],p%2==0?"x":"y")),-1===(""+s.E[i][p]).indexOf("key")&&-1===(""+s.E[i][p]).indexOf("val")||(s.A5M=!0,s.E[i][p]=s.kv_(s.E[i][p],p%2==0?"x":"y"))}if(s.o.tween=null,s.A9=s.A9%360,s.locate(1),"bar"!==s.DP){var u=s.AI;switch(s.DP){case"custom":break;case"triangle":u=s.AI;var h=.1*s.AI;s.E=[[s.iX-u,s.iY+u-h],[s.iX,s.iY-u-h],[s.iX+u,s.iY+u-h],[s.iX-u,s.iY+u-h]];break;case"square":u=ZC._i_(.9*s.AI),s.E=[[s.iX-u,s.iY-u],[s.iX-u,s.iY+u],[s.iX+u,s.iY+u],[s.iX+u,s.iY-u],[s.iX-u,s.iY-u]];break;case"diamond":u=ZC._i_(1.2*s.AI),s.E=[[s.iX-u,s.iY],[s.iX,s.iY+u],[s.iX+u,s.iY],[s.iX,s.iY-u],[s.iX-u,s.iY]];break;case"trapezoid":s.E=[[s.iX-u/2,s.iY+s.L5],[s.iX+u/2,s.iY+s.L5],[s.iX+u,s.iY-s.L5],[s.iX-u,s.iY-s.L5],[s.iX-u/2,s.iY+s.L5]];break;case"rectangle":case"rect":s.E=[[s.iX-u/2,s.iY-s.L5/2],[s.iX+u/2,s.iY-s.L5/2],[s.iX+u/2,s.iY+s.L5/2],[s.iX-u/2,s.iY+s.L5/2],[s.iX-u/2,s.iY-s.L5/2]];break;case"parallelogram":s.E=[[s.iX-u/2,s.iY-s.L5/2],[s.iX+3*u/2,s.iY-s.L5/2],[s.iX+u,s.iY+s.L5/2],[s.iX-u,s.iY+s.L5/2],[s.iX-u/2,s.iY-s.L5/2]];break;case"plus":u=s.AI,s.E=[[s.iX,s.iY-u],[s.iX,s.iY+u],null,[s.iX-u,s.iY],[s.iX+u,s.iY]];break;case"cross":u=s.AI,s.E=[[s.iX-u,s.iY-u],[s.iX+u,s.iY+u],null,[s.iX-u,s.iY+u],[s.iX+u,s.iY-u]];break;case"ic_line":u=s.AI/4,s.E=[[s.iX-2*u,s.iY+u],[s.iX-u,s.iY],[s.iX,s.iY+u],[s.iX+u,s.iY-u],[s.iX+2*u,s.iY]];break;case"ic_area":u=s.AI/4,s.E=[[s.iX-2*u,s.iY+2*u],[s.iX-2*u,s.iY+u],[s.iX-u,s.iY],[s.iX,s.iY+u],[s.iX+u,s.iY-u],[s.iX+2*u,s.iY],[s.iX+2*u,s.iY+2*u],[s.iX-2*u,s.iY+2*u]];break;case"ic_bars":s.CY=!1,u=s.AI/4,s.E=[[s.iX-2*u,s.iY+2*u],[s.iX-2*u,s.iY-u],[s.iX-u,s.iY-u],[s.iX-u,s.iY+2*u],[s.iX-2*u,s.iY+2*u],[s.iX-2*u,s.iY+2*u-u],null,[s.iX-u/2,s.iY+2*u],[s.iX-u/2,s.iY],[s.iX+u/2,s.iY],[s.iX+u/2,s.iY+2*u],[s.iX-u/2,s.iY+2*u],[s.iX-u/2,s.iY+2*u-u],null,[s.iX+2*u,s.iY+2*u],[s.iX+2*u,s.iY-2*u],[s.iX+u,s.iY-2*u],[s.iX+u,s.iY+2*u],[s.iX+2*u,s.iY+2*u],[s.iX+2*u,s.iY+2*u-u]];break;case"arrow":u=2*s.AI;var _=s.A9;s.A9=0;var d=ZC.AQ.BM(s.iX,s.iY,u,_-35),f=ZC.AQ.BM(s.iX,s.iY,u,_+35);s.E=[[s.iX,s.iY],d,null,[s.iX,s.iY],f];break;case"star3":case"star4":case"star5":case"star6":case"star7":case"star8":case"star9":for(s.E=[],u=2*s.AI,l=360/(n=ZC._i_(s.DP.replace("star",""))),r=n%2==0?0:-90,o=u/(n>4?2:7-n),i=0+r;i<360+r;i+=l)s.E.push(ZC.AQ.BM(s.iX,s.iY,.75*u,i),ZC.AQ.BM(s.iX,s.iY,.75*o,i+l/2));s.E.push([s.E[0][0],s.E[0][1]]);break;case"rpoly3":case"rpoly4":case"rpoly5":case"rpoly6":case"rpoly7":case"rpoly8":case"rpoly9":for(s.E=[],u=s.AI,l=360/(n=ZC._i_(s.DP.replace("rpoly",""))),r=n%2==0?0:-90,null!==ZC._n_(s.o["angle-offset"])&&(r=ZC._i_(s.o["angle-offset"])),i=0+r;i<360+r;i+=l)s.E.push(ZC.AQ.BM(s.iX,s.iY,u,i));s.E.push([s.E[0][0],s.E[0][1]]);break;case"gear3":case"gear4":case"gear5":case"gear6":case"gear7":case"gear8":case"gear9":for(s.E=[],u=2*s.AI,l=360/(2*(n=ZC._i_(s.DP.replace("gear","")))),o=.75*u,i=0+(r=n%2==0?0:-90);i<360+r;i+=2*l){var g=i+l/2;s.E.push(ZC.AQ.BM(s.iX,s.iY,.75*u,g),ZC.AQ.BM(s.iX,s.iY,.75*u,g+l),ZC.AQ.BM(s.iX,s.iY,.75*o,g+l+0*l),ZC.AQ.BM(s.iX,s.iY,.75*o,g+2*l-0*l))}s.E.push([s.E[0][0],s.E[0][1]]);break;case"hamburger":u*=2;var B=s.iX,v=s.iY-10;s.E=s.E.concat([[B-u/2,v-s.L5/2],[B+u/2,v-s.L5/2],[B+u/2,v+s.L5/2],[B-u/2,v+s.L5/2],[B-u/2,v-s.L5/2],null]),v+=5,s.E=s.E.concat([[B-u/2,v-s.L5/2],[B+u/2,v-s.L5/2],[B+u/2,v+s.L5/2],[B-u/2,v+s.L5/2],[B-u/2,v-s.L5/2],null]),v+=5,s.E=s.E.concat([[B-u/2,v-s.L5/2],[B+u/2,v-s.L5/2],[B+u/2,v+s.L5/2],[B-u/2,v+s.L5/2],[B-u/2,v-s.L5/2],null]);break;case"ellipse":for(s.CY=!1,s.E=[],i=0;i<=360;i+=5)s.E.push([s.iX+s.AI*ZC.EH(i),s.iY+s.L5*ZC.EN(i)]);s.E.push([s.E[0][0],s.E[0][1]]);break;case"arc":s.CY=!1,s.E=[ZC.AQ.BM(s.iX,s.iY,s.AI,s.B4),[s.iX,s.iY,s.AI,s.B4,s.BJ,0]];break;case"pie":for(var m=(s.o["pie-transform"]||"").split(/=|,/);s.B4<0||s.BJ<0;)s.B4+=360,s.BJ+=360;s.CY=!1;var b=!1;-1!==ZC.AV(["svg","vml"],s.G.AB)&&s.B4%360==s.BJ%360&&(s.B4+=.05,s.BJ-=.05,b=!0);var D,K,E,F,I,x=s.iX,y=s.iY,X=ZC._x_(s.B4,2),G=ZC._x_(s.BJ,2),Y=ZC._x_((X+G)/2,2),w=u,M=s.CM,L=0===M&&X%360!=G%360&&!b;switch(s.E=[],"circle"!==m[0]&&(0===M?X%360==G%360||b||s.E.push([x,y]):s.E.push(ZC.AQ.BM(x,y,M,X))),m[0]){case"flat":case"fold":s.E.push(ZC.AQ.BM(x,y,w,X),ZC.AQ.BM(x,y,w-("fold"===m[0]?ZC._i_(m[1]):0),G)),L||s.E.push(ZC.AQ.BM(x,y,M,G));break;case"callout":s.E.push(ZC.AQ.BM(x,y,w,X),[x,y,w,X,G,0]),L||(D=1.5*ZC._i_(m[1])*360/(2*Math.PI*w),s.E.push(ZC.AQ.BM(x,y,w,G),ZC.AQ.BM(x,y,M,G),[x,y,M,G,Y+D,1],ZC.AQ.BM(x,y,M-ZC._i_(m[1]),Y),ZC.AQ.BM(x,y,M,Y-D),[x,y,M,Y-D,X,1]));break;case"flow":D=ZC._i_(m[1]),F=ZC.AQ.BM(x,y,(M+w)/2,X),99===D||-99===D?s.E.push([F[0],F[1],(w-M)/2,X+180,X,99===D?1:0]):s.E.push(ZC.AQ.BM(x,y,(M+w)/2,X+D)),s.E.push(ZC.AQ.BM(x,y,w,X),[x,y,w,X,G,0]),I=ZC.AQ.BM(x,y,(M+w)/2,G),L?99===D||-99===D?s.E.push(ZC.AQ.BM(x,y,w,G),[I[0],I[1],(w-M)/2,G,G+180,99===D?0:1]):s.E.push(ZC.AQ.BM(x,y,(M+w)/2,G+D)):(99===D||-99===D?s.E.push([I[0],I[1],(w-M)/2,G,G+180,99===D?0:1]):s.E.push(ZC.AQ.BM(x,y,(M+w)/2,G+D)),s.E.push(ZC.AQ.BM(x,y,M,G),[x,y,M,G,X,1]));break;case"circle":var P=ZC._f_(m[1]||"1"),O=(5+ZC._a_(G-X)%360*50/360)*P;E=G%360==X%360||b?[x,y]:ZC.AQ.BM(x,y,(w+M)/2,(X+G)/2),s.E.push(ZC.AQ.BM(E[0],E[1],O,0),[E[0],E[1],O,0,360,0]);break;case"bite":D=ZC._i_(m[1]),K=ZC._i_(2*w*ZC.EN(D/2)),E=ZC.AQ.BM(x,y,w,X),s.E.push(ZC.AQ.BM(x,y,w-K,X),[E[0],E[1],K,X+180,X+90+(90-(180-D)/2),1],[x,y,w,X+D,G,0]),L||s.E.push(ZC.AQ.BM(x,y,M,G),[x,y,M,G,X,1]);break;case"droplet":for(var R=w,Q=1,T=0;w*Q+T>=R;)Q=ZC._x_(Q-.02,2),K=ZC._i_(w*Q/ZC.EH((G-X)/2)),T=ZC._i_(w*Q*Math.tan(ZC.TI((G-X)/2)));E=ZC.AQ.BM(x,y,K,Y),s.E.push(ZC.AQ.BM(x,y,w*Q,X),[E[0],E[1],T,Y-(360-(180-(G-X)))/2,Y+(360-(180-(G-X)))/2,0]),L||s.E.push(ZC.AQ.BM(x,y,M,G),[x,y,M,G,X,1]);break;default:s.E.push(ZC.AQ.BM(x,y,w,X),[x,y,w,X,G,0]),0===M?X%360==G%360||b||s.E.push([x,y]):s.E.push(ZC.AQ.BM(x,y,w,G),ZC.AQ.BM(x,y,M,G),[x,y,M,G,X,1])}s.E.push([s.E[0][0],s.E[0][1]])}}s.locate(2)}paint(){var e=this;if("none"!==e.DP&&("custom"===e.DP||"circle"===e.DP||"arc"===e.DP||0!==e.E.length)){var t,i,a={x:"iX",y:"iY",width:"I",height:"F",size:"AI"};if(e.o["bottom-state"]&&!e.YT&&!e.WM&&!e.bIsBottom){var n=new DW(e.A);for(t in n.copy(e),n.bIsBottom=!0,n.MF=!1,n.Z=e.Z,n.append({x:e.iX-e.A.iX,y:e.iY-e.A.iY}),n.append(e.o["bottom-state"]),n.K=e.K+"-bottom",n.parse(),i=!1,a)null===ZC._n_(n.o[t])||-1===(""+n.o[t]).indexOf("+")&&-1===(""+n.o[t]).indexOf("-")||(n.o[t]=n[a[t]]=e[a[t]]+ZC._i_(n.o[t]),i=!0);i&&n.parse(),n.paint()}var l=e.G.AB;switch(e.MF&&e.C7&&e.A2B(),l){case"canvas":e.WY();break;case"svg":e.UB();break;case"vml":e.UA()}if(e.o["top-state"]&&!e.YT&&!e.WM&&!e.bIsBottom){var r=new DW(e.A);for(t in r.copy(e),r.WM=!0,r.MF=!1,r.Z=e.Z,r.append({x:e.iX-e.A.iX,y:e.iY-e.A.iY}),r.append(e.o["top-state"]),r.K=e.K+"-top",r.parse(),i=!1,a)null===ZC._n_(r.o[t])||-1===(""+r.o[t]).indexOf("+")&&-1===(""+r.o[t]).indexOf("-")||(r.o[t]=r[a[t]]=e[a[t]]+ZC._i_(r.o[t]),i=!0);i&&r.parse(),r.paint()}}}A2B(){var e,t=this,i=new DW(t.A);i.K=t.K+"-sh",i.copy(t),i.OH=t.OH,i.Z=t.C7,i.MF=!1,i.YT=!0,i.A0=i.AE=i.S6,i.GU=i.HQ="",i.D8="",i.GE="solid",i.BW=i.S6,i.AZ=0,i.C5=i.TA*t.C5,i.K=t.K+"-sh";var a=(t.JX-t.PF)*ZC.EH(t.OR)+t.PF,n=(t.JX-t.PF)*ZC.EN(t.OR)+t.PF;if(i.iX=t.iX+parseInt(a,10),i.iY=t.iY+parseInt(n,10),i.AI=t.AI+t.PF,t.E.length>0){e=[];for(var l=0,r=t.E.length;l<r;l++)if(null!==t.E[l]){for(var o=[],s=0;s<t.E[l].length;s++)o[s]=t.E[l][s];o[0]=t.E[l][0]+parseInt(a,10),o[1]=t.E[l][1]+parseInt(n,10),e.push(o)}else e.push(null)}i.CZ=[t.CZ[0]+a,t.CZ[1]+n,t.CZ[2]+a,t.CZ[3]+n],i.E=e,i.paint()}WZ(){var e=this;return{lc:"-1"===e.B7?"rgba(255,255,255,0)":1===e.C5?e.B7:ZC.AP.A3Q(ZC.AP.GD(e.B7),e.C5),bc:"-1"===e.BW?"rgba(255,255,255,0)":1===e.O9?e.BW:ZC.AP.A3Q(ZC.AP.GD(e.BW),e.O9),bgc1:"-1"===e.A0?"rgba(255,255,255,0)":1===e.C5?e.A0:ZC.AP.A3Q(ZC.AP.GD(e.A0),e.C5),bgc2:"-1"===e.AE?"rgba(255,255,255,0)":1===e.C5?e.AE:ZC.AP.A3Q(ZC.AP.GD(e.AE),e.C5)}}SJ(e){var t,i,a,n=this;switch(n.DP){case"circle":case"arc":case"pie":t=n.iX,i=n.iY,a=n.AI;break;default:t=n.CZ[0]+(n.CZ[2]-n.CZ[0])/2,i=n.CZ[1]+(n.CZ[3]-n.CZ[1])/2,a=ZC._a_(ZC.EH(n.NE)*(n.CZ[2]-n.CZ[0])/2+ZC.EN(n.NE)*(n.CZ[3]-n.CZ[1])/2)}ZC.PN(t)||(t=0),ZC.PN(i)||(i=0),ZC.PN(a)||(a=0);var l=n.WC,r=n.WB;if(ZC._a_(l)<=1&&(l=l*(n.CZ[2]-n.CZ[0])/2),ZC._a_(r)<=1&&(r=r*(n.CZ[3]-n.CZ[1])/2),t+=l,i+=r,"radial"===e)return{cx:t,cy:i,r:ZC._a_(a)};if("linear"===e){var o=a*ZC.EH(n.NE),s=a*ZC.EN(n.NE),C=t-o,A=i-s,Z=t+o,c=i+s;return ZC._i_(A)===ZC._i_(c)&&ZC._a_(Z-C)<5&&(c+=1),ZC._i_(C)===ZC._i_(Z)&&ZC._a_(c-A)<5&&(Z+=1),{x1:C,y1:A,x2:Z,y2:c}}}Q4(){var e,t,i,a,n,l,r,o=this;switch(ZC.cache.data[o.D8]?e=ZC.cache.data[o.D8]:((e=new Image).src=o.D8,ZC.cache.data[o.D8]=e),1!==o.L0&&(e._width_?(e.width=e._width_,e.height=e._height_):(e._width_=e.width,e._height_=e.height)),t=e.width*o.L0,i=e.height*o.L0,o.X2){case"x":t=o.I;break;case"y":i=o.F;break;case"xy":case"both":t=o.I,i=o.F}var s=o.TK.split(" "),C=s[0]||"",A=0,Z=0;switch(C){case"":case"left":a=0,A=0;break;case"center":a=(o.I-t)/2,A=.5;break;case"right":a=o.I-t,A=1;break;default:-1!==C.indexOf("%")?(A=ZC._i_(C.replace(/[^0-9\-]/g,""))/100,a=(o.I-t)*A):(A=ZC._i_(C.replace(/[^0-9\-]/g,""))/o.I,a=ZC._i_(C.replace(/[^0-9\-]/g,"")))}l=a/o.I,typeof o.KW!==ZC._[31]?a+=o.iX+o.BL:a+=o.CZ[0]+o.BL;var c=s[1]||"";switch(c){case"":case"top":n=0,Z=0;break;case"middle":n=(o.F-i)/2,Z=.5;break;case"bottom":n=o.F-i,Z=1;break;default:-1!==c.indexOf("%")?(Z=ZC._i_(c.replace(/[^0-9\-]/g,""))/100,n=(o.F-i)*Z):(Z=ZC._i_(c.replace(/[^0-9\-]/g,""))/o.F,n=ZC._i_(c.replace(/[^0-9\-]/g,"")))}if(r=n/o.F,typeof o.KW!==ZC._[31]?n+=o.iY+o.BH:n+=o.CZ[1]+o.BH,"pie"===o.DP){var p=o.A9+o.B4+(o.BJ-o.B4)*A,u=ZC.AQ.BM(o.iX,o.iY,o.CM+(o.AI-o.CM)*Z,p);a=u[0]-e.width/2,n=u[1]-e.height/2}return o.D[ZC._[69]]=t,o.D[ZC._[70]]=i,{image:e,x:ZC._i_(a)+.5,y:ZC._i_(n)+.5,cx:ZC._f_(l),cy:ZC._f_(r),hPos:A,vPos:Z}}V7(e){for(var t=this,i=t.GU.split(/\s+|;/),a=t.HQ.split(/\s+|;/),n=0,l=i.length;n<l;n++){var r=ZC.AP.GD(i[n],t);"object"!=typeof r&&(r=[r,t.C5]);var o=ZC.AP.A3Q(r[0],r[1]),s=ZC._f_(a[n]||"1");ZC.DR(s,0,1)||(s=1),e.addColorStop(s,o)}}WY(){var e,t,i,a,n,l,r,o,s=this,C=s.Z.getContext("2d");C.save(),"poly"===s.DP||"line"===s.DP?(t=s.CZ[0]+(s.CZ[2]-s.CZ[0])/2,i=s.CZ[1]+(s.CZ[3]-s.CZ[1])/2):(t=s.iX,i=s.iY);var A=s.WZ(),Z=A.lc,c=A.bc,p=A.bgc1,u=A.bgc2;if(p!==u||""!==s.GU&&""!==s.HQ){var h=s.SJ(s.NR);"radial"===s.NR?a=C.createRadialGradient(h.cx,h.cy,1,h.cx,h.cy,h.r):"linear"===s.NR&&(a=C.createLinearGradient(h.x1,h.y1,h.x2,h.y2)),""!==s.GU&&""!==s.HQ?s.V7(a):(a.addColorStop(0,p),a.addColorStop(1,u)),C.fillStyle=a}else""!==s.D8&&-1!==ZC.AV(["repeat","true",!0],s.MC)&&"-1"===s.A0&&"-1"===s.AE&&(p="rgba(255,255,255,0)"),C.fillStyle=p;switch(s.DP){case"custom":if((e=s.o.url)&&(ZC.cache.data[e]?n=ZC.cache.data[e]:((n=new Image).src=e,ZC.cache.data[e]=n),n.width=s.o[ZC._[19]]?s.o[ZC._[19]]:n.width,n.height=s.o[ZC._[20]]?s.o[ZC._[20]]:n.height,C.drawImage(n,s.iX-n.width/2+s.BL,s.iY-n.height/2+s.BH,n.width,n.height),0===p.indexOf("#")&&7===p.length)){for(var _=parseInt(p.substring(1,3),16),d=parseInt(p.substring(3,5),16),f=parseInt(p.substring(5,7),16),g=C.getImageData(s.iX-n.width/2+s.BL,s.iY-n.height/2+s.BH,n.width,n.height),B=0;B<g.data.length;B+=4)g.data[B]=_|g.data[B],g.data[B+1]=d|g.data[B+1],g.data[B+2]=f|g.data[B+2];C.putImageData(g,s.iX-n.width/2+s.BL,s.iY-n.height/2+s.BH)}break;case"plus":case"cross":case"line":case"ic_line":case"arc":C.strokeStyle=Z,C.lineWidth=s.AZ;break;default:C.strokeStyle=c,C.lineWidth=s.AU}0!==s.A9&&(C.translate(t,i),isNaN(s.A9)||C.rotate(ZC.TI(s.A9)),C.translate(-t,-i));var v=-1===ZC.AV(["cross","plus","arc","line","ic_line"],s.DP);switch(isNaN(s.BL)||isNaN(s.BH)||0===s.BL&&0===s.BH||!v&&"arc"!==s.DP||C.translate(s.BL,s.BH),C.beginPath(),s.DP){case"circle":case"arc":C.setLineDash&&"circle"===s.DP&&(s.KQ(s.AU),C.setLineDash(0===s.EW||0===s.GA?[]:[s.EW,s.GA])),C.arc(s.iX,s.iY,s.AI,ZC.TI(s.B4),ZC.TI(s.BJ),!1);break;case"line":break;default:-1!==ZC.AV(["square","plus"],s.DP)&&(s.N7=!0),ZC.CR.contour(C,s,s.E),-1!==ZC.AV(["square","plus"],s.DP)&&(s.N7=!1)}if(C.globalCompositeOperation=s.A1F,v)if(""!==s.D8&&-1===ZC.AV(ZC.IMG404,s.D8)){var m;C.fill(),C.save(),C.clip(),m=C.globalAlpha,C.globalAlpha=s.C5;var b=s.Q4();switch(n=b.image,s.MC){case"repeat":case!0:case"true":l=s.CZ[0]-(n.width-(s.CZ[2]-s.CZ[0]))/2,r=s.CZ[1]-(n.height-(s.CZ[3]-s.CZ[1]))/2,C.translate(l,r),o=C.createPattern(n,"repeat"),C.fillStyle=o,C.fill(),C.translate(-l,-r);break;case"no-repeat":case!1:case"false":C.drawImage(n,b.x-s.BL,b.y-s.BH,s.D[ZC._[69]],s.D[ZC._[70]])}C.globalAlpha=m,C.restore()}else C.fill();switch(C.closePath(),C.beginPath(),s.DP){case"circle":case"arc":C.arc(s.iX,s.iY,s.AI,ZC.TI(s.B4),ZC.TI(s.BJ),!1),("circle"===s.DP&&s.AU>0||"arc"===s.DP&&s.AZ>0)&&C.stroke(),C.closePath();break;case"plus":case"cross":case"line":case"ic_line":s.AZ>0&&(ZC.CR.setup(C,s),s.o.spline?(s.CY=!1,s.R3=!0,ZC.CR.paint(C,s,ZC.CR.smooth(s.E,!1,s.o.direction||"h"))):ZC.CR.paint(C,s,s.E));break;default:if(s.AU>0){var D=s.B7,K=s.AZ;s.B7=s.BW,s.AZ=s.AU,s.KQ(),ZC.CR.setup(C,s),ZC.CR.paint(C,s,s.E,!0),s.B7=D,s.AZ=K,s.KQ()}C.closePath()}C.restore()}XZ(e){var t=this,i=e.info,a=i.image,n=!0;switch(t.MC){default:n=!0;break;case"no-repeat":case"false":case!1:n=!1}var l=t.D8;0===a.src.indexOf("data:")&&(l=a.src),a.width*=t.L0,a.height*=t.L0;var r=""===t.K?"pattern-"+ZC.SEQ++:t.K+"-pattern";ZC.Q.ET(r);var o=ZC.Q.F7("image",ZC._[36]);o.setAttributeNS?o.setAttributeNS(ZC._[37],"href",l):o.setAttribute("src",l),ZC.Q.G9(o,{id:r+"-image",preserveAspectRatio:"none",width:t.D[ZC._[69]],height:t.D[ZC._[70]]});var s=a.width,C=a.height;if(!n){var A,Z;s=C=1,t.I>0&&t.F>0?(A=t.I,Z=t.F):(A=t.CZ[2]-t.CZ[0],Z=t.CZ[3]-t.CZ[1]);var c=ZC._i_(A*i.cx),p=ZC._i_(Z*i.cy);if("pie"===t.DP){s=t.G?t.G.I:t.A.I,C=t.G?t.G.F:t.A.F;var u=t.A9+t.B4+(t.BJ-t.B4)*i.hPos,h=ZC.AQ.BM(t.iX,t.iY,t.CM+(t.AI-t.CM)*i.vPos,u);c=h[0]-a.width/2,p=h[1]-a.height/2}t.D["pattern-image-id"]=r+"-image",t.D["pattern-tx"]=c,t.D["pattern-ty"]=p,ZC.Q.G9(o,{transform:"translate("+c+","+p+")"})}var _=ZC.Q.F7("pattern",ZC._[36]);ZC.Q.G9(_,{x:n?e.x:0,y:n?e.y:0,width:s,height:C,id:r,patternUnits:n||"pie"===t.DP?"userSpaceOnUse":"objectBoundingBox"}),t.G.KI.childNodes[0].appendChild(_),_.appendChild(o),t.D.imgfill="url(#"+r+")"}TN(e){null!==e&&typeof e!==ZC._[31]||(e=!1);var t,i,a=this;if(a.A0!==a.AE||""!==a.GU&&""!==a.HQ){var n=""===a.K?"gradient-"+ZC.SEQ++:a.K+"-gradient";(a.TV||e&&!ZC.AK(n))&&(e=!1),ZC.A5.browser.msie&&9===ZC._i_(ZC.A5.browser.version)&&(e=!1),ZC.AK(n)&&!e&&ZC.Q.ET(n);var l=a.SJ(a.NR);if("radial"===a.NR?(t=e?ZC.AK(n):ZC.Q.F7("radialGradient",ZC._[36]),ZC.Q.G9(t,{cx:ZC._i_(l.cx),cy:ZC._i_(l.cy),r:ZC._i_(l.r),fx:ZC._i_(l.cx),fy:ZC._i_(l.cy)})):"linear"===a.NR&&(t=e?ZC.AK(n):ZC.Q.F7("linearGradient",ZC._[36]),ZC.Q.G9(t,{x1:ZC._i_(l.x1),x2:ZC._i_(l.x2),y1:ZC._i_(l.y1),y2:ZC._i_(l.y2)})),!e){if(ZC.Q.G9(t,{id:n,gradientUnits:"userSpaceOnUse"}),a.G.KI.childNodes[0].appendChild(t),""!==a.GU&&""!==a.HQ)for(var r=a.GU.split(/\s+|;/),o=a.HQ.split(/\s+|;/),s=0,C=r.length;s<C;s++){var A=ZC.AP.GD(r[s],a);"object"!=typeof A&&(A=[A,a.C5]),r[s]=A[0];var Z=o[s]||1;ZC.DR(Z,0,1)||(Z=1);var c=A[1];i=r[s],"-1"===r[s]&&(c=0,i="rgb(255,255,255)");var p=ZC.Q.F7("stop",ZC._[36]);ZC.Q.G9(p,{offset:Z,"stop-color":i,"stop-opacity":c}),t.appendChild(p)}else{var u=1,h=a.A0;"-1"===a.A0&&(u=0,h="rgb(255,255,255)");var _=ZC.Q.F7("stop",ZC._[36]);ZC.Q.G9(_,{offset:0,"stop-color":h,"stop-opacity":u});var d=1,f=a.AE;"-1"===a.AE&&(d=0,f="rgb(255,255,255)");var g=ZC.Q.F7("stop",ZC._[36]);ZC.Q.G9(g,{offset:1,"stop-color":f,"stop-opacity":d}),t.appendChild(_),t.appendChild(g)}a.D.fill="url(#"+n+")"}}else"-1"!==a.A0&&(a.D.fill=a.A0)}ZO(){var e=this;if("object"==typeof e.D.imgfill&&typeof e.G!==ZC._[31]&&e.G){var t=e.A2E()[1].split(",");if("circle"===e.DP)e.G.KI.appendChild(ZC.Q.Y1({id:e.K+"_image-clip",cx:t[0],cy:t[1],r:t[2]})),e.D["clip-path"]=e.K+"_image-clip";else if(t.length>6){for(var i="",a=0,n=t.length;a<n;a+=2)i+=ZC._i_(t[a])+ZC._i_(e.BL)+","+(ZC._i_(t[a+1])+ZC._i_(e.BH))+" ";e.G.KI.appendChild(ZC.Q.Y1({id:e.K+"_image-clip",path:i})),e.D["clip-path"]=e.K+"_image-clip"}}}UB(){var e,t,i,a,n,l,r=this,o=r.Z;if("poly"===r.DP||"line"===r.DP?(t=r.CZ[0]+(r.CZ[2]-r.CZ[0])/2,i=r.CZ[1]+(r.CZ[3]-r.CZ[1])/2):(t=r.iX,i=r.iY),r.D.cx=t,r.D.cy=i,r.D.fill=-1,""!==r.D8){var s=r.Q4();r.XZ({info:s,x:t-s.image.width/2,y:i-s.image.height/2})}switch(r.W5&&r.ZO(),r.TN(),r.DP){case"custom":if(e=r.o.url){var C,A;ZC.cache.data[e]?a=ZC.cache.data[e]:((a=new Image).src=e,ZC.cache.data[e]=a),(C=e.indexOf(".svg")>0&&e.indexOf("#")>=0)?(A=ZC.Q.F7("svg",ZC._[36]),ZC.Q.G9(A,{viewBox:"0 0 8 8",fill:r.D.fill}),l=ZC.Q.F7("use",ZC._[36])):l=ZC.Q.F7("image",ZC._[36]),l.setAttributeNS?l.setAttributeNS(ZC._[37],"href",e):l.setAttribute("src",e);var Z=r.o[ZC._[19]]?r.o[ZC._[19]]:a.width,c=r.o[ZC._[20]]?r.o[ZC._[20]]:a.height;a.width=Z,a.height=c,C?ZC.Q.G9(A,{id:r.K+"-image",x:r.iX-a.width/2+r.BL,y:r.iY-a.height/2+r.BH,width:a.width,height:a.height}):ZC.Q.G9(l,{id:r.K+"-image",x:r.iX-a.width/2+r.BL,y:r.iY-a.height/2+r.BH,width:a.width,height:a.height}),C?(A.appendChild(l),o.appendChild(A)):o.appendChild(l)}break;case"circle":if(!ZC.AK(r.K+"-circle")&&(n=ZC.Q.F7("circle",ZC._[36]),-1!==r.D.fill?ZC.Q.G9(n,{fill:r.D.fill,"fill-opacity":r.C5}):ZC.Q.G9(n,{fill:"none"}),r.DI&&""!==r.DI&&ZC.Q.G9(n,{"class":r.DI}),ZC.Q.G9(n,{id:r.K+"-circle",cx:r.iX+r.BL,cy:r.iY+r.BH,r:r.AI}),r.AU>0&&(ZC.Q.G9(n,{stroke:r.BW,"stroke-width":r.AU,"stroke-opacity":r.O9}),r.KQ(r.AU),"solid"===r.GE||0===r.EW&&0===r.GA||ZC.Q.G9(n,{"stroke-dasharray":"dashdot"===r.GE?[r.EW,r.GA,r.AZ,r.GA].join(" "):[r.EW,r.GA].join(",")})),r.G&&r.G.G2?(r.G.G2[o.id]||(r.G.G2[o.id]=document.createDocumentFragment()),r.G.G2[o.id].appendChild(n)):o.appendChild(n),typeof r.D.imgfill!==ZC._[31]))if("string"==typeof r.D.imgfill)n=ZC.Q.F7("circle",ZC._[36]),ZC.Q.G9(n,{id:r.K+"-imgfill",fill:r.D.imgfill,"fill-opacity":r.C5,cx:r.iX+r.BL,cy:r.iY+r.BH,r:r.AI,"stroke-width":0}),r.G&&r.G.G2?r.G.G2[o.id].appendChild(n):o.appendChild(n);else{var p=r.D.imgfill;(l=ZC.Q.F7("image",ZC._[36])).setAttributeNS&&l.setAttributeNS(ZC._[37],"href",r.D8),r.D["clip-path"]&&ZC.Q.G9(l,{"clip-path":"url(#"+r.D["clip-path"]+(ZC.A5.browser.webkit?"-shape":"")+")"}),ZC.Q.G9(l,{id:r.K+"-imgfill",x:p[1],y:p[2],width:p[0].width,height:p[0].height}),o.appendChild(l)}break;case"plus":case"cross":case"line":case"ic_line":case"arc":r.AZ>0&&(ZC.CR.setup(o,r),r.o.spline?(r.CY=!1,r.R3=!0,ZC.CR.paint(o,r,ZC.CR.smooth(r.E,!1,r.o.direction||"h"))):ZC.CR.paint(o,r,r.E));break;default:var u=r.B7,h=r.AZ;r.B7=r.BW,r.AZ=r.AU,r.KQ(),ZC.CR.setup(o,r),ZC.CR.paint(o,r,r.E,!0,0),r.B7=u,r.AZ=h,r.KQ()}}TO(e,t){null!==t&&typeof t!==ZC._[31]||(t=!1);var i,a=this;if(a.A0!==a.AE||""!==a.GU&&""!==a.HQ){var n=""===a.K?"gradient-"+ZC.SEQ++:a.K+"-gradient";if(t&&!ZC.AK(n)&&(t=!1),ZC.AK(n)&&!t&&ZC.A5(n).remove(),i=t?ZC.AK(n):ZC.Q.F7("zcv:fill"),t&&(e=ZC.A5("#"+n).attr("focusposition")),""!==a.GU&&""!==a.HQ){for(var l=a.GU.split(/\s+|;/),r=a.HQ.split(/\s+|;/),o="",s="",C="",A=0,Z=l.length;A<Z;A++){l[A]=ZC.AP.GD(l[A]);var c="-1"===l[A]?"rgb(255,255,255)":l[A],p=r[A]||1;ZC.DR(p,0,1)||(p=1);var u=ZC._i_(100*p);0===A?o=c:A===Z-1?s=c:C+=u+"% "+ZC.AP.GD(c)+","}""!==C&&(C=C.substring(0,C.length-1)),"radial"===a.NR?ZC.Q.G9(i,{id:n,type:"gradientradial",focusposition:e,color:o,color2:s,colors:C}):"linear"===a.NR&&ZC.Q.G9(i,{id:n,type:"gradient",method:"sigma",angle:270-a.NE-a.A9,color:o,color2:s,colors:C})}else{var h=a.A0;"-1"===a.A0&&(h="rgb(255,255,255)");var _=a.AE;"-1"===a.AE&&(_="rgb(255,255,255)"),"radial"===a.NR?ZC.Q.G9(i,{id:n,type:"gradientradial",focusposition:e,color:_,color2:h}):"linear"===a.NR&&ZC.Q.G9(i,{id:n,type:"gradient",method:"sigma",angle:270-a.NE-a.A9,color:h,color2:_})}var d=typeof a.D.opacity2!==ZC._[31]?a.D.opacity2:a.C5;ZC.Q.G9(i,{opacity:a.C5,"o:opacity2":d}),a.D.fill=i}else i=ZC.Q.F7("zcv:fill"),"-1"!==a.A0&&(ZC.Q.G9(i,{type:"solid",color:a.A0,opacity:a.C5}),a.D.fill=i)}UA(){var e,t,i,a,n,l,r=this,o=r.Z;"poly"===r.DP||"line"===r.DP?(t=r.CZ[0]+(r.CZ[2]-r.CZ[0])/2,i=r.CZ[1]+(r.CZ[3]-r.CZ[1])/2):(t=r.iX,i=r.iY),r.D.cx=t,r.D.cy=i,r.D.fill=-1;var s=-1===ZC.AV(["cross","plus","arc","line","ic_line"],r.DP),C=ZC.Q.F7("zcv:fill");if(""!==r.D8){var A=r.Q4();switch(a=A.image,r.MC){default:C.type="tile",C.src=r.D8,ZC.Q.G9(C,{position:A.cx+","+A.cy,opacity:r.C5,"o:opacity2":r.C5}),r.D.imgfill=[C];break;case"no-repeat":case"false":case!1:r.D.imgfill=[a,A.x,A.y]}}r.TO("0,0");var Z=ZC.Q.F7("zcv:stroke");switch(r.DP){case"custom":(e=r.o.url)&&(ZC.cache.data[e]?a=ZC.cache.data[e]:((a=new Image).src=e,ZC.cache.data[e]=a),(l=ZC.Q.F7("img")).id=r.K+"-img",l.src=e,l.style.position="absolute",1!==r.L0&&(l.width*=r.L0,l.height*=r.L0,l.style.width=l.width+"px",l.style.height=l.height+"px"),l.style.left=r.iX-a.width/2+r.BL+"px",l.style.top=r.iY-a.height/2+r.BH+"px",o.appendChild(l));break;case"plus":case"cross":case"line":case"ic_line":case"arc":Z.weight=r.AZ+"px",Z.color=r.B7;break;default:Z.weight=r.AU+"px",Z.color=r.BW}switch(Z.opacity=r.O9,r.GE){case"solid":Z.dashstyle="solid";break;case"dotted":Z.dashstyle="dot";break;case"dashed":Z.dashstyle="dash"}switch(-1===ZC.AV(["plus","cross","line","ic_line"],r.DP)&&(r.D.stroke=Z),r.DP){case"circle":case"arc":if(!ZC.AK(r.K+"-circle")&&((n=ZC.Q.F7("circle"===r.DP?"zcv:oval":"zcv:arc")).id=r.K+"-circle",n.style.position="absolute",-1!==r.D.fill&&s?n.appendChild(r.D.fill):n.filled=!1,r.AU>0||r.AZ>0?n.appendChild(Z):n.stroked=!1,n.style.left=r.iX+r.BL-r.AI+"px",n.style.top=r.iY+r.BH-r.AI+"px",n.style.width=2*r.AI+"px",n.style.height=2*r.AI+"px","arc"===r.DP&&ZC.Q.G9(n,{startangle:r.BJ+90,endangle:r.B4+90}),o.appendChild(n),s&&typeof r.D.imgfill!==ZC._[31])){var c=r.D.imgfill;1===c.length?((n=ZC.Q.F7("zcv:oval")).id=r.K+"-imgfill",n.style.position="absolute",o.appendChild(n),n.appendChild(c[0]),n.style.left=r.iX+r.BL-r.AI+"px",n.style.top=r.iY+r.BH-r.AI+"px",n.style.width=2*r.AI+"px",n.style.height=2*r.AI+"px",n.stroked=!1,"arc"===r.DP&&ZC.Q.G9(n,{startangle:r.BJ+90,endangle:r.B4+90})):3===c.length&&((l=ZC.Q.F7("img")).id=r.K+"-img",l.src=r.D8,l.style.position="absolute",l.style.left=c[1]+"px",l.style.top=c[2]+"px",1!==r.L0&&(l.width*=r.L0,l.height*=r.L0,l.style.width=l.width+"px",l.style.height=l.height+"px"),o.appendChild(l))}break;case"plus":case"cross":case"line":case"ic_line":r.AZ>0&&(ZC.CR.setup(o,r),r.o.spline?(r.CY=!1,r.R3=!0,ZC.CR.paint(o,r,ZC.CR.smooth(r.E,!1,r.o.direction||"h"))):ZC.CR.paint(o,r,r.E));break;default:var p=r.B7,u=r.AZ;r.B7=r.BW,r.AZ=r.AU,r.KQ(),ZC.CR.setup(o,r),ZC.CR.paint(o,r,r.E,!0,0),r.B7=p,r.AZ=u,r.KQ()}}}class I2 extends DW{constructor(e){super(e),this.init(e)}init(e){super.init(e);var t=this;t.DP="box",t.I=0,t.F=0,t.A8Z="",t.E7=-1,t.E6=-1,t.DN=-1,t.DV=-1,t.F6=0,t.FS=0,t.F2=0,t.FH=0,t.A7H=!1,t.KW=!1,t.ER="bottom",t.EU=0,t.MD=0,t.HA=8,t.G8=8,t.Y5=[1,1],t.DK=null,t.OX=null,t.QA=!1,t.N7=!0,t.QC="",t.OS="",t.O0="",t.PJ="",t.X9="tl",t.FG=!1}getPMap(){var e=super.getPMap();return this.addPMap(e,"width,height,borderRadiusTopLeft,borderRadiusTopRight,borderRadiusBottomRight,borderRadiusBottomLeft,callout,calloutType,calloutPosition,calloutHook,calloutWidth,calloutHeight,calloutOffset,calloutExtension,position,borderTop,borderRight,borderBottom,borderLeft,rectShortcut","I,F,F6,FS,F2,FH,KW,ER,DK,HA,G8,EU,MD,A8Z,QC,OS,O0,PJ,FG"),e}build(){}wh_(e,t,i){var a=this;if(t=t||"w",ZC._f_(e)+""!=e+"")return-1!==(e+="").indexOf("%")?a.wh_(ZC._f_(e.replace("%",""))/100,t,!0):-1!==e.indexOf("px")?a.wh_(ZC._f_(e.replace("px","")),t):a.wh_(ZC._f_(e),t);var n=typeof a.D["p-width"]!==ZC._[31]?a.D["p-width"]:a.A.I,l=typeof a.D["p-height"]!==ZC._[31]?a.D["p-height"]:a.A.F;return(e=ZC._a_(e))>1&&!i?ZC._i_(e):e<=1||i?"w"===t?ZC._i_(n*e):ZC._i_(l*e):void 0}m_(e,t,i,a,n){var l,r,o=this;if(i=i||0,a=a||0,t=t||"all",n=n||"n","all"===t){var s=String(e).split(/\s+|;|,/);return 1===s.length?[o.m_(s[0],"tb",i,a,n),o.m_(s[0],"lr",i,a,n),o.m_(s[0],"tb",i,a,n),o.m_(s[0],"lr",i,a,n)]:2===s.length?[o.m_(s[0],"tb",i,a,n),o.m_(s[1],"lr",i,a,n),o.m_(s[0],"tb",i,a,n),o.m_(s[1],"lr",i,a,n)]:3===s.length?[o.m_(s[0],"tb",i,a,n),o.m_(s[1],"lr",i,a,n),o.m_(s[2],"tb",i,a,n),o.m_(s[1],"lr",i,a,n)]:[o.m_(s[0],"tb",i,a,n),o.m_(s[1],"lr",i,a,n),o.m_(s[2],"tb",i,a,n),o.m_(s[3],"lr",i,a,n)]}return e+""=="auto"?-2:e+""=="dynamic"&&"y"===n?"dynamic":ZC._f_(e)+""!=e+""?-1!==(e+="").indexOf("%")?o.m_(ZC._f_(e.replace("%",""))/100,t):-1!==e.indexOf("px")?o.m_(ZC._f_(e.replace("px","")),t):o.m_(ZC._f_(e),t):((o.A||typeof o.D["p-width"]!==ZC._[31])&&(l=typeof o.D["p-width"]!==ZC._[31]?o.D["p-width"]:o.A.I),(o.A||typeof o.D["p-height"]!==ZC._[31])&&(r=typeof o.D["p-height"]!==ZC._[31]?o.D["p-height"]:o.A.F),(e=ZC._a_(e))>=1?ZC._i_(e):e<1?"lr"===t?ZC._i_((o.A?l:i)*e):ZC._i_((o.A?r:a)*e):void 0)}copy(e){super.copy(e);for(var t="I,F,E7,DN,DV,E6,F6,FS,F2,FH,KW,ER,DK,Y5,HA,G8,EU,MD,A8Z,QC,OS,O0,PJ,FG".split(","),i=0,a=t.length;i<a;i++)typeof e[t[i]]!==ZC._[31]&&(this[t[i]]=e[t[i]])}locate(e){var t,i,a,n,l,r=this;if(2!==(e=e||1))if(r.TV)r.assign_a([["x","iX"],["y","iY"],[ZC._[19],"I"],[ZC._[20],"F"]]);else{var o=typeof r.D["p-x"]!==ZC._[31]?r.D["p-x"]:r.A.iX,s=typeof r.D["p-y"]!==ZC._[31]?r.D["p-y"]:r.A.iY,C=typeof r.D["p-width"]!==ZC._[31]?r.D["p-width"]:r.A.I,A=typeof r.D["p-height"]!==ZC._[31]?r.D["p-height"]:r.A.F;if(!r.QA){var Z=0,c=0,p=0,u=0;if(null!==ZC._n_(r.o.margin)){var h=""+r.o.margin;if(-1!==h.indexOf("dynamic")){var _=r.m_(h,"all",0,0,"y");"dynamic"===_[0]&&(r.D["d-margin-top"]=r.D["d-margin"]=!0),"dynamic"===_[1]&&(r.D["d-margin-right"]=r.D["d-margin"]=!0),"dynamic"===_[2]&&(r.D["d-margin-bottom"]=r.D["d-margin"]=!0),"dynamic"===_[3]&&(r.D["d-margin-left"]=r.D["d-margin"]=!0),r.o.margin=h.replace(/dynamic/g,"20")}}"dynamic"===r.o.margin&&(r.D["d-margin"]=r.D["d-margin-top"]=r.D["d-margin-right"]=r.D["d-margin-bottom"]=r.D["d-margin-left"]=!0,r.o.margin=null),typeof r.D["force-margins"]===ZC._[31]||null!==ZC._n_(r.o["adjust-layout"])&&ZC._b_(r.o["adjust-layout"])||(null!==ZC._n_(r.o[ZC._[57]])&&null===ZC._n_(r.o[ZC._[59]])&&(r.o[ZC._[59]]="auto"),null!==ZC._n_(r.o[ZC._[59]])&&null===ZC._n_(r.o[ZC._[57]])&&(r.o[ZC._[57]]="auto"),null!==ZC._n_(r.o[ZC._[60]])&&null===ZC._n_(r.o[ZC._[58]])&&(r.o[ZC._[58]]="auto"),null!==ZC._n_(r.o[ZC._[58]])&&null===ZC._n_(r.o[ZC._[60]])&&(r.o[ZC._[60]]="auto"));for(var d=[ZC._[57],ZC._[58],ZC._[59],ZC._[60]],f=0,g=d.length;f<g;f++)"dynamic"===r.o[d[f]]&&(r.D["d-"+d[f]]=r.D["d-margin"]=!0,r.o[d[f]]=null);null!==(t=ZC._n_(r.o.margin))&&(i=r.m_(t,"all"),null===ZC._n_(r.o[ZC._[57]])&&(Z=i[0]),null===ZC._n_(r.o[ZC._[58]])&&(c=i[1]),null===ZC._n_(r.o[ZC._[59]])&&(p=i[2]),null===ZC._n_(r.o[ZC._[60]])&&(u=i[3])),null!==(t=ZC._n_(r.o[ZC._[57]]))&&(Z=i=r.m_(t,"tb")),null!==(t=ZC._n_(r.o[ZC._[58]]))&&(c=i=r.m_(t,"lr")),null!==(t=ZC._n_(r.o[ZC._[59]]))&&(p=i=r.m_(t,"tb")),null!==(t=ZC._n_(r.o[ZC._[60]]))&&(u=i=r.m_(t,"lr"));var B,v=[Z,c,p,u];if(null!==ZC._n_(r.o.x)&&(r.iX=r.xy_(r.o.x,"x")),null!==ZC._n_(r.o.y)&&(r.iY=r.xy_(r.o.y,"y")),null!==(t=ZC._n_(r.o[ZC._[19]]))){var m=ZC._p_(t);B=-1!==(""+t).indexOf("%"),r.I=m>1&&!B?ZC._i_(m):-2===u&&-2===c?ZC._i_(C*m):-2===u&&-2!==c?ZC._i_((C-c)*m):-2!==u&&-2===c?ZC._i_((C-u)*m):ZC._i_((C-u-c)*m),-1!==r.iX?(r.DV=r.iX-o,r.E6=o+C-r.DV-r.I):-2===u&&-2===c?(r.DV=r.E6=(C-r.I)/2,r.iX=o+r.DV):-2===u&&-2!==c?(r.E6=c,r.DV=C-r.E6-r.I,r.iX=o+r.DV):(r.DV=u,r.iX=o+r.DV,r.E6=r instanceof DT?c:C-r.DV-r.I)}else-1!==r.iX?(r.DV=r.iX-o,r.E6=-2===c?0:c,r.I=C-r.DV-r.E6):-2===u&&-2===c?(r.DV=r.E6=0,r.iX=o+r.DV,r.I=C-r.DV-r.E6):-2===u&&-2!==c?(r.E6=c,r.DV=0,r.iX=o+r.DV,r.I=C-r.DV-r.E6):-2!==u&&-2===c?(r.DV=u,r.E6=r instanceof DT?c:0,r.iX=o+r.DV,r.I=C-r.DV-r.E6):(r.DV=u,r.E6=c,r.iX=o+r.DV,r.I=C-r.DV-r.E6);if(null!==(t=ZC._n_(r.o[ZC._[20]]))){var b=ZC._p_(t);B=-1!==(""+t).indexOf("%"),r.F=b>1&&!B?ZC._i_(b):-2===Z&&-2===p?ZC._i_(A*b):-2===Z&&-2!==p?ZC._i_((A-p)*b):-2!==Z&&-2===p?ZC._i_((A-Z)*b):ZC._i_((A-Z-p)*b),-1!==r.iY?(r.E7=r.iY-s,r.DN=s+A-r.E7-r.F):-2===Z&&-2===p?(r.E7=r.DN=(A-r.F)/2,r.iY=s+r.E7):-2===Z&&-2!==p?(r.DN=p,r.E7=A-r.DN-r.F,r.iY=s+r.E7):(r.E7=Z,r.iY=s+r.E7,r.DN=r instanceof DT?p:A-r.E7-r.F)}else-1!==r.iY?(r.E7=r.iY-s,r.DN=-2===p?0:p,r.F=A-r.E7-r.DN):-2===Z&&-2===Z?(r.E7=r.E7=0,r.iY=s+r.E7,r.F=A-r.E7-r.DN):-2===Z&&-2!==p?(r.DN=p,r.E7=0,r.iY=s+r.E7,r.F=A-r.E7-r.DN):-2===Z&&-2!==p?(r.E7=Z,r.DN=r instanceof DT?p:0,r.iY=s+r.E7,r.F=A-r.E7-r.DN):(r.E7=Z,r.DN=p,r.iY=s+r.E7,r.F=A-r.E7-r.DN);if(null!==(t=ZC._n_(r.o.position))){if(r.A&&typeof r.A.iX!==ZC._[31]&&typeof r.A.iY!==ZC._[31]&&typeof r.A.I!==ZC._[31]&&typeof r.A.F!==ZC._[31]){switch(a=0,n=0,(l=String(t).split(/\s+/))[0]){case"left":a=0;break;case"right":a=1;break;case"center":a=.5;break;default:(a=ZC.IR(l[0]))>1&&(a/=r.A.I)}switch(l[1]){case"top":n=0;break;case"bottom":n=1;break;case"middle":n=.5;break;default:(n=ZC.IR(l[1]))>1&&(n/=r.A.F)}}r.D["position-info"]=[a,n],r.iX=r.A.iX+ZC._i_(a*(r.A.I-r.I-v[1]-v[3]))+v[3],r.iY=r.A.iY+ZC._i_(n*(r.A.F-r.F-v[0]-v[2]))+v[0]}r.CZ=[r.iX,r.iY,r.iX+r.I,r.iY+r.F]}}}parse(){super.parse();var e,t=this;if(!t.o.tween){if(t.assign_a([["anchor","X9"],["rect-shortcut","FG","b"],["center-ref","A7H","b"],["callout","KW","b"],["callout-type","ACR"],["callout-position","ER"],["callout-hook","DK"],["callout-ratio","Y5"],["callout-width","HA","i"],["callout-height","G8","i"],["callout-offset","EU","i"],["callout-extension","MD","i"],["border-top","QC"],["border-right","OS"],["border-bottom","O0"],["border-left","PJ"]]),null!==(e=ZC._n_(t.o["border-radius"]))){var i=String(e).split(/\s+|;|,/);2===i.length?(t.F6=t.FS=ZC._i_(i[0]),t.F2=t.FH=ZC._i_(i[1])):4===i.length?(t.F6=ZC._i_(i[0]),t.FS=ZC._i_(i[1]),t.F2=ZC._i_(i[2]),t.FH=ZC._i_(i[3])):t.F6=t.FS=t.F2=t.FH=ZC._i_(i[0])}null!==ZC._n_(t.o["callout-tip"])&&(t.OX=new DW(t.A)),t.assign_a([["border-radius-top-left","F6","i"],["border-radius-top-right","FS","i"],["border-radius-bottom-right","F2","i"],["border-radius-bottom-left","FH","i"]])}}V9(e){var t=e.split(/\s/);return t[0]=ZC._i_(t[0]),t[2]=ZC.AP.GD(t[2]),t}paint(){var e=this;if(null!==e.DK&&!(e.DK instanceof Array)&&"zcgraph"===e.A.OM){var t=e.A.OP(e.DK);e.DK=[t[0],t[1]],e.DK[0]-=e.BL,e.DK[1]-=e.BH}if(e.A7H&&(e.iX-=e.I/2,e.iY-=e.F/2),"-1"!==e.BW&&0!==e.AU||e.QC+e.OS+e.O0+e.PJ!==""||"-1"!==e.A0||"-1"!==e.AE||""!==e.D8||""!==e.GU||""!==e.HQ){var i,a=e.G.AB;e.MF&&e.C7&&e.A2B();var n={x:"iX",y:"iY",width:"I",height:"F"};if(e.o["bottom-state"]&&!e.YT&&!e.bIsBottom&&!e.WM){var l=new I2(e.A);for(i in l.copy(e),l.bIsBottom=!0,l.MF=!1,l.Z=e.Z,l.X9=e.X9,l.append({x:e.iX-e.A.iX,y:e.iY-e.A.iY,width:e.I,height:e.F}),l.append(e.o["bottom-state"]),l.K=e.K+"-bottom",l.parse(),l.setAnchor(),!1,n)null===ZC._n_(l.o[i])||-1===(""+l.o[i]).indexOf("+")&&-1===(""+l.o[i]).indexOf("-")||(l[n[i]]=e[n[i]]+ZC._i_(l.o[i]),!0);l.paint()}if(e.QC+e.OS+e.O0+e.PJ===""){switch(a){case"canvas":e.WY();break;case"svg":e.UB();break;case"vml":e.UA()}if(e.KW&&e.OX){var r,o;if(e.DK&&2===e.DK.length?(r=e.DK[0],o=e.DK[1]):e.D.cp&&(r=e.D.cp[0],o=e.D.cp[1]),e.OX.Z=e.OX.C7=e.Z,e.OX.copy(e),e.OX.append(e.o["callout-tip"]),e.OX.K=e.K+"-callout-tip",e.OX.o.x=r,e.OX.o.y=o,e.D.cm){var s=e.D.cm[0],C=e.D.cm[1],A=Math.atan2(ZC._i_(C)-ZC._i_(o),ZC._i_(s)-ZC._i_(r));isNaN(A)&&(A=0),null===ZC._n_(e.OX.o.angle)&&(e.OX.o.angle=ZC.UE(A))}e.OX.parse(),e.OX.paint()}}else{var Z=e.AU,c=e.BW,p=e.GE;switch(e.AU=0,a){case"canvas":e.WY();break;case"svg":e.UB();break;case"vml":e.UA()}e.AU=Z;var u=e.A0,h=e.AE;e.A0=e.AE="-1";for(var _,d=["top","right","bottom","left"],f=["QC","OS","O0","PJ"],g=0;g<d.length;g++)if(""!==(_=e[f[g]])&&"none"!==_){var B=e.V9(_);switch(e.AU=B[0],e.GE=B[1],e.BW=B[2],a){case"canvas":e.WY(d[g]);break;case"svg":e.UB(d[g]);break;case"vml":e.UA(d[g])}e.AU=Z,e.BW=c,e.GE=p}e.A0=u,e.AE=h}if(e.o["top-state"]&&!e.YT&&!e.WM&&!e.bIsBottom){var v=new I2(e.A);for(i in v.copy(e),v.WM=!0,v.MF=!1,v.Z=e.Z,v.X9=e.X9,v.append({x:e.iX-e.A.iX,y:e.iY-e.A.iY,width:e.I,height:e.F}),v.append(e.o["top-state"]),v.K=e.K+"-top",v.parse(),v.setAnchor(),!1,n)null===ZC._n_(v.o[i])||-1===(""+v.o[i]).indexOf("+")&&-1===(""+v.o[i]).indexOf("-")||(v[n[i]]=e[n[i]]+ZC._i_(v.o[i]),!0);v.paint()}}}setAnchor(){var e=this;switch(e.X9){case"tl":break;case"tr":e.iX-=e.I;break;case"bl":e.iY-=e.F;break;case"br":e.iX-=e.I,e.iY-=e.F;break;case"c":e.iX-=e.I/2,e.iY-=e.F/2;break;case"t":e.iX-=e.I/2;break;case"r":e.iX-=e.I,e.iY-=e.F/2;break;case"b":e.iX-=e.I/2,e.iY-=e.F;break;case"l":e.iY-=e.F/2}}A2B(){var e=this,t=new I2(e.A);t.K=e.K+"-sh",t.copy(e),t.Z=e.C7,t.MF=!1,t.YT=!0,t.QC=t.OS=t.O0=t.PJ="",t.A0=t.AE=t.S6,t.GU=t.HQ="",t.D8="",t.GE="solid",t.BW=t.S6,t.AZ=0;var i=e.JX*ZC.EH(e.OR),a=e.JX*ZC.EN(e.OR);t.I=e.I+("vml"===e.G.AB?0:.5)-ZC.EH(e.OR)*e.PF/2,t.F=e.F+("vml"===e.G.AB?0:.5)-ZC.EN(e.OR)*e.PF/2,t.O9=t.C5=t.TA*e.C5,t.K=e.K+"-sh",t.iX=e.iX+ZC._i_(i),t.iY=e.iY+ZC._i_(a),t.paint()}SJ(e){var t,i=this,a=i.iX,n=i.iY,l=a+i.I/2,r=n+i.F/2,o=i.WC,s=i.WB;if(ZC._a_(o)<=1&&(o=o*i.I/2),ZC._a_(s)<=1&&(s=s*i.F/2),l+=o,r+=s,"radial"===e){var C=ZC._i_((i.I+i.F)/2),A=ZC.CX(i.I,i.F);return t=A<C/4?(A+C)/2:A,{cx:l,cy:r,r:ZC._a_(t)}}if("linear"===e){var Z=(t=i.I>=i.F?ZC._a_(ZC.EN(i.NE))>.5?i.F/2:i.I/2:ZC._a_(ZC.EH(i.NE))>.5?i.I/2:i.F/2)*ZC.EH(i.NE),c=t*ZC.EN(i.NE);return{x1:l-Z,y1:r-c,x2:l+Z,y2:r+c}}}UD(e){var t,i=this;typeof e===ZC._[31]&&(e="all");var a,n,l=i.iX,r=i.iY;i.E=[],a=n=i.AU/2;var o=1;switch(i.G.AB){case"vml":o=2,i.AU%2==1&&(a=ZC._i_((i.AU-1)/2),n=ZC._i_((i.AU+1)/2))}var s=null,C=ZC._x_(l+a,2),A=ZC._x_(l-n,2),Z=ZC._x_(r+a,2),c=ZC._x_(r-n,2),p=i.DK&&2===i.DK.length,u=ZC._i_(i.EU*(i.I-i.HA)/100),h=ZC._i_(i.EU*(i.F-i.G8)/100),_=0!==i.F6||0!==i.FS||0!==i.F2||0!==i.FH,d=i.Y5[0],f=i.Y5[1];switch(i.ER){case"top":i.D.cm=[i.iX+i.I/2+u,i.iY];break;case"bottom":i.D.cm=[i.iX+i.I/2+u,i.iY+i.F];break;case"left":i.D.cm=[i.iX,i.iY+i.F/2+h];break;case"right":i.D.cm=[i.iX+i.I,i.iY+i.F/2+h]}if(_){var g,B=ZC.CX(i.I/2,i.F/2);"top"!==e&&"all"!==e||(0!==i.F6?(g=i.I/2>=i.F6&&i.F/2>=i.F6?ZC._a_(i.F6):B,i.E.push([C,Z+g]),i.F6>0&&i.E.push([C,Z,C+o*g,Z]),i.E.push([C+g,Z])):i.E.push([C,Z]),i.KW&&"top"===i.ER&&(i.E.push([C+i.I/2-d*i.HA/2-i.AU/2+u,Z]),p?i.E.push([i.DK[0],i.DK[1]]):(s=[C+i.I/2-i.AU/2+u,Z-i.G8],i.E.push(s)),i.MD>0&&(t=i.E[i.E.length-1],i.E.push([t[0],t[1]-i.MD*(i.G8>0?1:-1)]),i.E.push([t[0],t[1]])),i.E.push([C+i.I/2-i.AU/2+f*i.HA/2+u,Z])),"top"===e&&(0!==i.FS?(g=i.I/2>=i.FS&&i.F/2>=i.FS?ZC._a_(i.FS):B,i.E.push([A+i.I-g,Z])):i.E.push([A+i.I,Z]))),"right"!==e&&"all"!==e||(0!==i.FS?(g=i.I/2>=i.FS&&i.F/2>=i.FS?ZC._a_(i.FS):B,i.E.push([A+i.I-g,Z]),i.FS>0?i.E.push([A+i.I,Z,A+i.I,Z+o*g]):i.E.push([A+i.I,Z+g])):i.E.push([A+i.I,Z]),i.KW&&"right"===i.ER&&(i.E.push([A+i.I,Z+i.F/2-d*i.G8/2-i.AU/2+h]),p?i.E.push([i.DK[0],i.DK[1]]):(s=[A+i.I+i.HA,Z+i.F/2-i.AU/2+h],i.E.push(s)),i.E.push([A+i.I,Z+i.F/2+f*i.G8/2-i.AU/2+h])),"right"===e&&(0!==i.F2?(g=i.I/2>=i.F2&&i.F/2>=i.F2?ZC._a_(i.F2):B,i.E.push([A+i.I,c+i.F-g])):i.E.push([A+i.I,c+i.F]))),"bottom"!==e&&"all"!==e||(0!==i.F2?(g=i.I/2>=i.F2&&i.F/2>=i.F2?ZC._a_(i.F2):B,i.E.push([A+i.I,c+i.F-g]),i.F2>0?i.E.push([A+i.I,c+i.F,A+i.I-o*g,c+i.F]):i.E.push([A+i.I-g,c+i.F])):i.E.push([A+i.I,c+i.F]),i.KW&&"bottom"===i.ER&&(i.E.push([A+i.I/2+d*i.HA/2+i.AU/2+u,c+i.F]),p?i.E.push([i.DK[0],i.DK[1]]):(s=[A+i.I/2+i.AU/2+u,c+i.F+i.G8],i.E.push(s)),i.MD>0&&(t=i.E[i.E.length-1],i.E.push([t[0],t[1]+i.MD*(i.G8>0?1:-1)]),i.E.push([t[0],t[1]])),i.E.push([A+i.I/2-f*i.HA/2+i.AU/2+u,c+i.F])),"bottom"===e&&(0!==i.FH?(g=i.I/2>=i.FH&&i.F/2>=i.FH?ZC._a_(i.FH):B,i.E.push([C+g,c+i.F])):i.E.push([C,c+i.F]))),"left"!==e&&"all"!==e||(0!==i.FH?(g=i.I/2>=i.FH&&i.F/2>=i.FH?ZC._a_(i.FH):B,i.E.push([C+g,c+i.F]),i.FH>0?i.E.push([C,c+i.F,C,c+i.F-o*g]):i.E.push([C,c+i.F-g])):i.E.push([C,c+i.F]),i.KW&&"left"===i.ER&&(i.E.push([C,c+i.F/2+d*i.G8/2+i.AU/2+h]),p?i.E.push([i.DK[0],i.DK[1]]):(s=[C-i.HA,c+i.F/2+i.AU/2+h],i.E.push(s)),i.E.push([C,c+i.F/2-f*i.G8/2+i.AU/2+h])),0!==i.F6?(g=i.I/2>=i.F6&&i.F/2>=i.F6?ZC._a_(i.F6):B,i.E.push([C,Z+g])):(i.E.push([C,Z]),i.E.push([C+.1,Z])))}else"top"!==e&&"all"!==e||("top"===e?i.E.push([C+.5,Z+.5]):i.E.push([C,Z]),i.KW&&"top"===i.ER&&(i.E.push([C+i.I/2-d*i.HA/2-i.AU/2+u,Z]),p?i.E.push([i.DK[0],i.DK[1]]):(s=[C+i.I/2-i.AU/2+u,Z-i.G8],i.E.push(s)),i.MD>0&&(t=i.E[i.E.length-1],i.E.push([t[0],t[1]-i.MD*(i.G8>0?1:-1)]),i.E.push([t[0],t[1]])),i.E.push([C+i.I/2+f*i.HA/2-i.AU/2+u,Z])),"top"===e&&i.E.push([A+i.I+.5,Z+.5])),"right"!==e&&"all"!==e||("right"===e?i.E.push([A+i.I+.5,Z+.5]):i.E.push([A+i.I,Z]),i.KW&&"right"===i.ER&&(i.E.push([A+i.I,Z+i.F/2-i.AU/2-d*i.G8/2+h]),p?i.E.push([i.DK[0],i.DK[1]]):(s=[A+i.I+i.HA,Z+i.F/2-i.AU/2+h],i.E.push(s)),i.E.push([A+i.I,Z+i.F/2-i.AU/2+f*i.G8/2+h])),"right"===e&&i.E.push([A+i.I+.5,c+i.F+.5])),"bottom"!==e&&"all"!==e||("bottom"===e?i.E.push([A+i.I+.5,c+i.F+.5]):i.E.push([A+i.I,c+i.F]),i.KW&&"bottom"===i.ER&&(i.E.push([A+i.I/2+d*i.HA/2+i.AU/2+u,c+i.F]),p?i.E.push([i.DK[0],i.DK[1]]):(s=[A+i.I/2+i.AU/2+u,c+i.F+i.G8],i.E.push(s)),i.MD>0&&(t=i.E[i.E.length-1],i.E.push([t[0],t[1]+i.MD*(i.G8>0?1:-1)]),i.E.push([t[0],t[1]])),i.E.push([A+i.I/2-f*i.HA/2+i.AU/2+u,c+i.F])),"bottom"===e&&i.E.push([C+.5,c+i.F+.5])),"left"!==e&&"all"!==e||("left"===e?i.E.push([C+.5,c+i.F+.5]):i.E.push([C,c+i.F]),i.KW&&"left"===i.ER&&(i.E.push([C,c+i.F/2+i.AU/2+d*i.G8/2+h]),p?i.E.push([i.DK[0],i.DK[1]]):(s=[C-i.HA,c+i.F/2+i.AU/2+h],i.E.push(s)),i.E.push([C,c+i.F/2+i.AU/2-f*i.G8/2+h])),"left"===e?i.E.push([C+.5,Z+.5]):(i.E.push([C,Z]),i.E.push([C+.1,Z])));s&&(i.D.cp=s)}WY(e){e=e||"all";var t,i,a,n=this,l=n.Z.getContext("2d");l.save(),l.globalCompositeOperation=n.A1F;var r=n.iX,o=n.iY,s=n.WZ(),C=s.bc,A=s.bgc1,Z=s.bgc2;if("all"===e)if(A!==Z||""!==n.GU&&""!==n.HQ){var c=n.SJ(n.NR);"radial"===n.NR?t=l.createRadialGradient(c.cx,c.cy,1,c.cx,c.cy,c.r):"linear"===n.NR&&(c.x1=isNaN(c.x1)?0:c.x1,c.x2=isNaN(c.x2)?0:c.x2,c.y1=isNaN(c.y1)?0:c.y1,c.y2=isNaN(c.y2)?0:c.y2,t=l.createLinearGradient(c.x1,c.y1,c.x2,c.y2)),""!==n.GU&&""!==n.HQ?n.V7(t):(t.addColorStop(0,A),t.addColorStop(1,Z)),l.fillStyle=t}else""!==n.D8&&-1!==ZC.AV(["repeat","true",!0],n.MC)&&"-1"===n.A0&&"-1"===n.AE&&(A="rgba(255,255,255,0)"),l.fillStyle=A;l.strokeStyle=C,l.lineWidth=n.AU,l.translate(n.BL,n.BH),0!==n.A9&&(l.translate(r+n.I/2,o+n.F/2),l.rotate(ZC.TI(n.A9)),l.translate(-(r+n.I/2),-(o+n.F/2))),l.beginPath(),n.UD(e);var p=n.F6+n.FS+n.F2+n.FH!==0;a=n.AZ,n.AZ=n.AU;var u=n.GE;if(n.GE="",n.KQ(),ZC.CR.contour(l,n,n.E),n.AZ=a,n.GE=u,n.KQ(),"all"===e)if(""!==n.D8&&-1===ZC.AV(ZC.IMG404,n.D8)){l.fill(),l.save(),l.clip();var h=l.globalAlpha;l.globalAlpha=n.C5;var _=n.Q4(),d=_.image;switch(n.MC){default:l.translate(n.iX,n.iY),i=l.createPattern(d,"repeat"),l.fillStyle=i,l.fill(),l.translate(-_.x,-_.y);break;case"no-repeat":case"false":case!1:l.drawImage(d,_.x-n.BL,_.y-n.BH,n.D[ZC._[69]],n.D[ZC._[70]])}l.globalAlpha=h,l.restore()}else l.fill();if(n.AU>0){var f=n.B7;a=n.AZ,n.B7=n.BW,n.AZ=n.AU,n.KQ(),ZC.CR.setup(l,n),n.T9=p?"round":"square",n.EW+n.GA>0&&(n.T9="butt"),n.A0D=p?"round":"miter",n.D["skip-top"]=!0,n.D.border=e,ZC.CR.paint(l,n,n.E,!0),n.B7=f,n.AZ=a,n.KQ()}l.closePath(),l.restore()}UB(e){e=e||"all";var t=this,i=t.Z;t.D.fill=-1;var a=!1;if("all"===e){if(""!==t.D8&&-1===ZC.AV(ZC.IMG404,t.D8)){var n=t.Q4();t.XZ({info:n,x:t.iX,y:t.iY}),a=!0}t.TN()}if(t.UD(e),a&&"repeat"!==t.MC&&(t.ZN(),t.KW)){var l=0,r=0;t.CZ[1]<t.iY&&(r=t.CZ[3]-t.CZ[1]-t.F),t.CZ[0]<t.iX&&(l=t.CZ[2]-t.CZ[0]-t.I),null===ZC._n_(t.D["pattern-tx"])?t.D["pattern-tx"]=l:t.D["pattern-tx"]+=l,null===ZC._n_(t.D["pattern-ty"])?t.D["pattern-ty"]=r:t.D["pattern-ty"]+=r,ZC.Q.G9(ZC.AK(t.D["pattern-image-id"]),{transform:"translate("+t.D["pattern-tx"]+","+t.D["pattern-ty"]+")"})}var o=t.F6+t.FS+t.F2+t.FH!==0;t.D.cx=t.iX+t.I/2,t.D.cy=t.iY+t.F/2,t.W5&&t.ZO();var s=t.B7,C=t.AZ;t.B7=t.BW,t.AZ=t.AU,t.KQ(),ZC.CR.setup(i,t),t.T9=o?"round":"square",t.EW+t.GA>0&&(t.T9="butt"),t.A0D=o?"round":"miter";var A=!1;ZC.A5.browser.msie||!t.FG||t.KW||""!==t.QC||""!==t.OS||""!==t.O0||""!==t.PJ||0!==t.F6||0!==t.FS||0!==t.F2||0!==t.FH||(A=!0),t.D["skip-top"]=!0,t.D.border=e,ZC.CR.paint(i,t,t.E,!0,null,A),t.B7=s,t.AZ=C,t.KQ()}UA(e){e=e||"all";var t=this,i=t.Z;if("all"===e){var a=ZC.Q.F7("zcv:fill");if(""!==t.D8&&-1===ZC.AV(ZC.IMG404,t.D8)){var n=t.Q4(),l=n.image;switch(t.MC){default:a.type="tile",a.src=t.D8,ZC.Q.G9(a,{position:n.cx+","+n.cy,opacity:t.C5,"o:opacity2":t.C5}),t.D.imgfill=[a];break;case"no-repeat":case"false":case!1:t.D.imgfill=[l,n.x,n.y]}}t.TO("0.5,0.5")}var r=ZC.Q.F7("zcv:stroke");switch(r.weight=t.AU+"px",r.color=t.BW,r.opacity=t.C5,t.GE){case"solid":r.dashstyle="solid";break;case"dotted":r.dashstyle="dot";break;case"dashed":r.dashstyle="dash"}t.D.stroke=r,t.UD(e);var o=t.F6+t.FS+t.F2+t.FH!==0;t.D.cx=t.iX+t.I/2,t.D.cy=t.iY+t.F/2;var s=t.B7,C=t.AZ;t.B7=t.BW,t.AZ=t.AU,t.KQ(),ZC.CR.setup(i,t),t.T9=o?"round":"square",t.EW+t.GA>0&&(t.T9="butt"),t.A0D=o?"round":"miter",t.D.border=e,ZC.CR.paint(i,t,t.E,"all"===e),t.B7=s,t.AZ=C,t.KQ()}}class R9 extends DW{constructor(e){super(e);var t=this;t.XA=null,t.BF=null,t.M=null,t.SU=null,t.A7=null,t.KD=!1,t.OH=!1,t.L7=!1,t.A6P=!1}parse(){var e,t=this;t.BF=zingchart.pool.getInstance("box"===t.XA.type?"I2":"DW",t.A,t.K+"-shape",t.XA.tween),t.BF.append(t.XA),t.BF.iX=t.iX,t.BF.iY=t.iY,t.BF.K=t.K+"-gshape",t.BF.OH=t.OH,t.A6P||null===ZC._n_(e=t.BF.o.points)||(t.BF.o.points=ZC.AP.A66(e,t.A.iX,t.A.iY),t.A6P=!0),t.BF.parse(),null!==ZC._n_(e=t.BF.o.label)&&null!==ZC._n_(e.text)&&""!==e.text&&(typeof e.visible===ZC._[31]||ZC._b_(e.visible))&&(t.M=zingchart.pool.getInstance("DT",t,t.A.K+"-shape-label-"+t.H6,ZC.objmove),ZC.objmove||t.M.append(e)),null!==ZC._n_(e=t.BF.o["static"])&&(t.KD=ZC._b_(e)),null!==ZC._n_(e=t.BF.o.flat)&&(t.KD=ZC._b_(e)),null!==ZC._n_(e=t.BF.o.dynamic)&&(t.L7=ZC._b_(e)),null!==ZC._n_(e=t.BF.o.connector)&&(t.SU=new DW(t),t.SU.append(e),t.SU.parse())}paint(){var e,t=this;if(t.BF.Z=t.Z,t.BF.C7=t.C7,t.BF.locate(2),t.BF.WM=!1,"box"===t.BF.o.type&&(t.iX-=t.BF.I/2,t.iY-=t.BF.F/2,t.BF.iX-=t.BF.I/2,t.BF.iY-=t.BF.F/2),t.BF.paint(),t.M){if(t.M.Z=t.M.C7=t.Z,t.M.IU=ZC.AK(t.A.A.K+"-text"),t.M.K=t.A.K+"-shape-label-"+t.H6,t.M.GO=t.A.K+"-shape-label zc-shape-label",t.M.o.anchor=t.M.o.anchor||"c",!t.XA["map-item"])switch(t.DP){default:t.M.x=t.iX,t.M.y=t.iY;break;case"line":case"poly":case"rect":case"rectangle":t.M.o.x=ZC._i_((t.BF.CZ[0]+t.BF.CZ[2])/2),t.M.o.y=ZC._i_((t.BF.CZ[1]+t.BF.CZ[3])/2)}if(ZC.objmove||t.M.parse(),t.M.iX=t.M.iX+t.BF.BL,t.M.iY=t.M.iY+t.BF.BH,t.M.AM){if(t.SU&&t.SU.E.length>0){if(!ZC.AK(t.A.K+"-objects-front")){var i=t.A.A.I+"/"+t.A.A.F;ZC.Q.K5({cls:"zc-abs",wh:i,id:t.A.K+"-objects-front",p:ZC.AK(t.A.A.K+"-objects-front")},t.A.A.AB),ZC.Q.HK({cls:ZC._[24],id:t.A.K+"-objects-front-c",p:ZC.AK(t.A.K+"-objects-front"),wh:i},t.A.A.AB)}var a=t.SU.E,n=t.SU.o.anchor||"",l=a[a.length-1];switch(n){case"l":t.M.iX=l[0]+t.BF.BL,t.M.iY=l[1]-t.M.F/2+t.BF.BH;break;case"r":t.M.iX=l[0]-t.M.I+t.BF.BL,t.M.iY=l[1]-t.M.F/2+t.BF.BH;break;case"t":t.M.iX=l[0]-t.M.I/2+t.BF.BL,t.M.iY=l[1]+t.BF.BH;break;case"b":t.M.iX=l[0]-t.M.I/2+t.BF.BL,t.M.iY=l[1]-t.M.F+t.BF.BH;break;default:t.M.iX=l[0]-t.M.I/2+t.BF.BL,t.M.iY=l[1]-t.M.F/2+t.BF.BH}e=ZC.Q.E9(ZC.AK(t.A.K+"-objects-front-c"),t.A.G.AB),ZC.CR.setup(e,t.SU),ZC.CR.paint(e,t.SU,a)}if(t.M.WM=!1,t.XA["map-item"]&&(t.M.GO=t.A.K+"-mapshape-label zc-mapshape-label",t.M.iX<t.A.iX||t.M.iX+t.M.I>t.A.iX+t.A.I||t.M.iY<t.A.iY||t.M.iY+t.M.F>t.A.iY+t.A.F))return;t.M.paint(),t.D["print-canvas"]?t.M.EC(ZC.AK(t.D["print-canvas"])):t.M.EC()}}}}class DT extends I2{constructor(e){super(e),this.init(e)}init(e){super.init(e);var t=this;t.IU=null,t.GO="",t.AT=null,t.OI="center",t.K1="middle",t.DF=zingchart.FONTSIZE,t.GI=zingchart.FONTFAMILY,t.C1="#000",t.A9M=!1,t.N8=!1,t.QX=!1,t.KE="none",t.sFontWeight="normal",t.YS=0,t.FO=2,t.FP=2,t.FT=2,t.EO=2,t.A91=!1,t.A2N=!1,t.FL=-1,t.KG=0,t.NU=0,t.OY=ZC.MAX,t.bRTL=!1,t.A20=!0,t.VH=zingchart.FASTWIDTH,t.A6Q=1.65,t.VK=1,t.WD=!1,t.A7=null,t.VQ=!1,t.A5G=!1}getPMap(){var e=super.getPMap();return this.addPMap(e,"textAlign,verticalAlign,fontSize,fontFamily,color,bold,fontWeight,italic,underline,textDecoration,paddingTop,paddingRight,paddingBottom,paddingLeft,text","OI,K1,DF,GI,C1,A9M,sFontWeight,N8,QX,KE,FO,FP,FT,EO,AT"),e}copy(e){super.copy(e);for(var t="OI,K1,DF,GI,C1,A9M,sFontWeight,N8,KE,QX,FO,FP,FT,EO,AT".split(","),i=0,a=t.length;i<a;i++)typeof e[t[i]]!==ZC._[31]&&(this[t[i]]=e[t[i]])}F0(e){return e}isBold(e){return"bold"===e||"bolder"===e||"500"===e||"600"===e||"700"===e||"800"===e||"900"===e}cwidth(e){var t=this;if(t.VH)return e.replace(/(<([^>]+)>)/gi,"").length*t.DF/(t.A6Q*(t.isBold(t.sFontWeight)?.87:1)*(t.N8?.95:1));var i="";return typeof t.o["html-mode"]!==ZC._[31]&&ZC._b_(t.o["html-mode"])&&(i="[HTMLMODE]"),ZC.Q.A4V(this.G.K,i+e,this.GI,this.DF,this.sFontWeight,this.FL)}parse(){this.I=this.F=this.NU=this.KG=0,super.parse();var e,t,i,a,n,l=this;if(!l.o.tween){if(l.YX("text","AT"),null!==ZC._n_(l.AT)&&(l.AT=""+l.AT,l.AT=l.F0(l.AT),l.AT=l.AT.replace(/\n/g,"<br>").replace(/\\n/g,"<br>"),"svg"===l.G.AB&&(l.AT=l.AT.replace(/ /g," ")),l.AT=l.AT.replace(/<img|<audio|<video|<embed|<object/gi,"")),l.assign_a([["overlap","A20","b"],["fast-width","VH","b"],["max-width","OY","i"],["line-height","FL","i"],["width-ratio","A6Q","f"],["wrap-text","A2N","b"],["clip-text","A91","b"],["bold","A9M","b"],["italic","N8","b"],["underline","QX","b"],["text-decoration","KE"],["rtl","bRTL","b"],["text-align","OI"],["align","OI"],["vertical-align","K1"],["font-size","DF","f"],["max-chars","YS","i"],["font-family","GI"],["font-angle","A9","i"],["color","C1","c"],["font-color","C1","c"],["text-alpha","VK","f",0,1],["lock-rotation","VQ","b"]]),l.DF=ZC.BQ(1,l.DF),null===ZC._n_(l.o["text-alpha"])&&(l.VK=l.C5),l.A9M&&(l.sFontWeight="bold"),null!==(e=ZC._n_(l.o["font-weight"]))&&(l.sFontWeight=e),null===ZC._n_(l.o["text-decoration"])&&(l.KE=l.QX?"underline":"none"),null!==(e=ZC._n_(l.o["font-style"]))&&(l.N8="italic"===e||"oblique"===e),null!==(e=ZC._n_(l.o.padding))){var r=String(e).split(/\s+|;|,/);t=1===r.length?[ZC._i_(r[0]),ZC._i_(r[0]),ZC._i_(r[0]),ZC._i_(r[0])]:2===r.length?[ZC._i_(r[0]),ZC._i_(r[1]),ZC._i_(r[0]),ZC._i_(r[1])]:3===r.length?[ZC._i_(r[0]),ZC._i_(r[1]),ZC._i_(r[2]),ZC._i_(r[0])]:[ZC._i_(r[0]),ZC._i_(r[1]),ZC._i_(r[2]),ZC._i_(r[3])],l.FO=t[0],l.FP=t[1],l.FT=t[2],l.EO=t[3]}if(l.assign_a([["padding-top","FO","i"],["padding-right","FP","i"],["padding-bottom","FT","i"],["padding-left","EO","i"]]),l.AT){l.YS>0&&l.AT.length>l.YS&&(l.AT=l.AT.substring(0,l.YS)+"...");var o=l.AT.split(/<br>|<br\/>|<br \/>|\n/),s="";typeof l.o["html-mode"]!==ZC._[31]&&ZC._b_(l.o["html-mode"])&&(o=[l.AT],s="[HTMLMODE]");o.length;for(l.VH?l.KG=1.65*this.DF:l.KG=ZC.Q.A4V(this.G.K,s+l.AT,this.GI,this.DF,this.sFontWeight,this.FL,!0)+l.FO+l.FT,i=0,a=o.length;i<a;i++)l.NU=ZC.BQ(l.NU,l.cwidth(o[i])+l.EO+l.FP)}else l.AT="",l.NU=ZC._i_(1.25*l.DF),l.KG=-1===l.FL?ZC._i_(1.25*l.DF):l.FL;if((null===ZC._n_(l.o[ZC._[19]])||isNaN(l.I)||0===l.I)&&(l.I=l.NU),(null===ZC._n_(l.o[ZC._[20]])||isNaN(l.F)||0===l.F)&&(l.F=l.KG),l.I=ZC.CX(l.I,l.OY),l.A2N&&l.NU>l.I&&!l.D.wrapped&&l.I>2*l.DF){var C,A="",Z=0,c=l.AT.replace(/<br>/gi," [##] ").split(/\s|<br>/),p=[];for(i=0,a=c.length;i<a;i++)if((C=l.cwidth(c[i]))>.9*l.I){var u=Math.ceil(C/l.I*.9),h=Math.ceil(c[i].length/u);for(n=0;n<u;n++)p.push(c[i].substr(n*h,h))}else p.push(c[i]);for(i=0,a=p.length;i<a;i++)""!==p[i]&&("[##]"===p[i]?(A+="<br>",Z=0):(Z+=C=1+l.cwidth(p[i]+" "))>.9*l.I?(i>0&&(A+="<br>"),A+=p[i]+" ",Z=C):A+=p[i]+" ");A=(A=A.replace(/<br><br>/g,"<br>").replace(/ <br> <br>/g," <br>")).replace(/(.+?)<br> $/g,"$1");var _=l.o.text;l.o.text=A,l.D.wrapped=!0,l.parse(),l.o.text=_,l.D.wrapped=!1}if("canvas"!==l.G.AB&&(l.AT=l.AT.replace(/</g,"<").replace(/>/g,">")),!(null!==ZC._n_(l.o[ZC._[19]])&&null!==ZC._n_(l.o[ZC._[20]])||null===ZC._n_(l.o.position)&&null===ZC._n_(l.o.margin)&&null===ZC._n_(l.o[ZC._[57]])&&null===ZC._n_(l.o[ZC._[58]])&&null===ZC._n_(l.o[ZC._[59]])&&null===ZC._n_(l.o[ZC._[60]]))){l.iX=-1,l.iY=-1;var d=l.o[ZC._[19]],f=l.o[ZC._[20]];null===ZC._n_(d)&&(l.o[ZC._[19]]=l.I),null===ZC._n_(f)&&(l.o[ZC._[20]]=l.F),l.locate(),l.o[ZC._[19]]=d,l.o[ZC._[20]]=f}if(typeof l.o["html-mode"]===ZC._[31]||!l.o["html-mode"]){var g=Math.ceil((l.NU-l.EO-l.FP)/l.DF);g>0&&(l.AT=l.AT.replace(/<hr>/g,new Array(g).join("\u2014")))}}l.setAnchor()}paint(){var e,t,i,a,n,l,r,o,s,C,A,Z=this;if(!Z.WD&&!Z.A20){var c=!0;null!==ZC._n_(Z.o.flexible)&&(c=ZC._b_(Z.o.flexible));var p,u,h={x:Z.iX+Z.EO-1,y:Z.iY+Z.FO-1,width:Z.I-Z.EO-Z.FP+2,height:Z.F-Z.FO-Z.FT+2,type:Z.D.lbltype||""},_=[[0,0]];for(c&&(_=[[0,0],[0,2],[0,-4],[0,4],[0,-8],[3,0],[-6,0],[5,0],[-10,0]]),u=0;u<_.length;u++){for(p=!0,h.x+=_[u][0],h.y+=_[u][0],n=0,l=Z.G.T3.length;n<l;n++)ZC.AQ.YD(h,Z.G.T3[n],-2)&&(p=!1);if(p){Z.iX=h.x,Z.iY=h.y;break}}if(!p)return;Z.G.T3.push(h)}var d=Z.G.AB;if(e=ZC.Q.E9(Z.Z,d),Z.WD||super.paint(),!Z.A5G&&(Z.o[ZC._[19]]||!(Z.I-Z.EO-Z.FP<2))&&(Z.o[ZC._[20]]||!(Z.KG-Z.FO-Z.FT<2))){var f=Z.A9%360==0?"0":"";if((Z.WD||zingchart.CANVASTEXT&&"canvas"===d)&&(f=""),ZC.vml&&"svg"===d&&""===Z.GO&&(Z.GO=Z.K+"-class"),!Z.WD&&ZC.AK(Z.K)&&(d="_",ZC.objmove))return ZC.AK(Z.K).style.top=Z.iY+Z.BH+"px",void(ZC.AK(Z.K).style.left=Z.iX+Z.BL+"px");var g=typeof Z.D["html-mode"]!==ZC._[31]&&Z.D["html-mode"],B=g;typeof Z.o["html-mode"]!==ZC._[31]&&(g=ZC._b_(Z.o["html-mode"]));var v,m,b,D,K,E,F,I,x,y,X,G,Y,w,M,L,P,O,R,Q,T,k,N=[Z.AT];g||(N=Z.AT.split(/<br>|<br\/>|<br \/>|\n/)),g&&!B&&"svg"===d&&"0"===f&&(f="0html");var H=Z.IU?Z.IU:Z.Z.parentNode;switch(d+f){case"canvas0":case"vml0":case"svg0html":if(a=1,!g)switch(Z.K1){case"middle":a+=(Z.F-Z.KG)/2;break;case"bottom":a+=Z.F-Z.KG}if(r=ZC.Q.I7({id:Z.K,cls:Z.GO,tl:ZC._x_(Z.iY+Z.BH)+"/"+ZC._x_(Z.iX+Z.BL),wh:Z.I+"/"+Z.F,position:"absolute",padding:0,margin:0,overflow:g?"visible":"hidden",textAlign:Z.OI}),g&&(B||d+f!=="svg0html"||(H=ZC.AK(Z.G.K+"-top")),H.appendChild(r)),ZC.Q.I7({id:Z.K+"-t",cls:""!==Z.GO?Z.GO+"-t":"",p:r,width:Z.I-Z.EO-Z.FP,height:g?null:Z.KG-Z.FO-Z.FT,tl:a+"/0",html:Z.AT+"",position:"absolute",whiteSpace:"nowrap",opacity:Z.VK,color:Z.C1,fontWeight:Z.sFontWeight,fontStyle:Z.N8?"oblique":"normal",textDecoration:Z.KE,fontSize:Z.DF,fontFamily:Z.GI,marginTop:Z.FO,marginRight:Z.FP,marginBottom:Z.FT,marginLeft:Z.EO,verticalAlign:Z.K1,textAlign:Z.OI,lineHeight:-1===Z.FL?"125%":Z.FL+"px",rtl:Z.bRTL,padding:0}),Z.D["css-display"]&&(r.style.display=Z.D["css-display"],Z.D["css-display"]=null),B&&Z.G&&Z.G.A7&&!Z.o[ZC._[19]]&&!Z.o[ZC._[20]]){var z=ZC.A5("#"+Z.K+"-t");"canvas"===d&&(ZC.AK(Z.G.K+"-tooltip-c").width=z.width()+Z.EO+Z.FP,ZC.AK(Z.G.K+"-tooltip-c").height=z.height()+Z.FO+Z.FT),Z.G.A7.clear(),Z.I=z.width()+Z.EO+Z.FP,Z.F=z.height()+Z.FO+Z.FT,Z.paint()}break;case"canvas":var V=!1;if(ZC.A5.browser.opera&&Z.A9%90==0&&0!==Z.A9&&(Z.A9+=.5,V=!0),e=Z.Z.getContext("2d"),zingchart.DEV.CACHECANVASTEXT&&(ZC.CanvasCache||(ZC.CanvasCache={})),!zingchart.DEV.CACHECANVASTEXT||zingchart.DEV.CACHECANVASTEXT&&!ZC.CanvasCache[Z.K]){for(zingchart.DEV.CACHECANVASTEXT&&(ZC.CanvasCache[Z.K]=document.createElement("canvas"),ZC.CanvasCache[Z.K].width=Z.NU,ZC.CanvasCache[Z.K].height=Z.KG),v=-1===Z.FL?0:ZC._x_(Z.FL-1.25*Z.DF)/2,n=0,l=N.length;n<l;n++)if(""!==ZC.GX(N[n])){switch(t=1===l?Z.NU:Z.cwidth(N[n])+Z.FP+Z.EO,b=-1===(m=N[n]).indexOf("<")?m:m.replace(/<.+?>/gi,"").replace(/<\/.+?>/gi,""),i=0,a=0,Z.OI){case"center":i+=(Z.I-t)/2;break;case"right":i+=Z.I-t}switch(Z.K1){case"middle":a+=(Z.F-Z.KG)/2;break;case"bottom":a+=Z.F-Z.KG}if(D=0,m!==b){for(;E=/<(.+?)>(.*?)<\/(.+?)>/.exec(m);){switch(F="",I="",(C=/(.+?)style=(.+?)(\'|")(.*?)/.exec(E[1]))&&(I=C[2].replace(/\'|"/g,"")),E[3]){case"b":case"strong":F="font-weight:bold";break;case"i":case"em":F="font-style:italic";break;case"u":F="text-decoration:underline"}y='[[span style="'+(""===F?"":F+";")+I+'"]]'+E[2]+"[[/span]]",m=m.replace(E[0],y)}for(X=!1,R=0,Q=(E=(m=m.replace(/\[\[/g,"<").replace(/\]\]/g,">").replace(/<span/g,"[[*]]<span").replace(/<\/span>/g,"</span>[[*]]")).split("[[*]]")).length;R<Q;R++)if(""!==E[R]){if(o=Z.C1,G=Z.sFontWeight,Y=Z.N8,w=Z.QX,M=Z.DF,L=Z.GI,O=Z.FL,P=Z.KE,K=E[R],A=/<span style=(.+?)>(.+?)<\/(.+?)>/.exec(E[R]))for(K=A[2],T=0,k=(x=A[1].replace(/\'|"/g,"").split(/;|:/)).length;T<k-1;T+=2)switch(ZC.GX(x[T])){case"font-size":M=ZC._i_(ZC.GX(x[T+1]));break;case"font-family":L=ZC.GX(x[T+1]);break;case"font-weight":G=ZC.GX(x[T+1]);break;case"font-style":-1!==ZC.AV(["italic","oblique"],ZC.GX(x[T+1]))&&(Y=!0);break;case"text-decoration":P=ZC.GX(x[T+1]);break;case"line-height":O=ZC._i_(ZC.GX(x[T+1]));break;case"color":o=ZC.AP.GD(ZC.GX(x[T+1]))}0===n&&(v=-1===O?0:ZC._x_(O-1.25*M)/2);var J={idx:n,ctx:e,i:Y,fw:G,fs:M,lh:O,ff:L,c:o,t:K,dx:i,dy:a};J.dy+=ZC._x_(v),J.dy+=X||Z.isBold(G)||w?2:0,Z.paintCANVASText(J),X=Y,D++,i+=ZC.Q.A4V(this.G.K,K,L,M,G,O)}null!==ZC._n_(O)&&null!==ZC._n_(M)&&(v+=-1===O?1.25*M:O)}else Z.paintCANVASText({idx:n,ctx:e,i:Z.N8,fw:Z.sFontWeight,fs:Z.DF,lh:Z.FL,ff:Z.GI,c:Z.C1,t:N[n],dx:i,dy:a+v}),v+=-1===Z.FL?1.25*Z.DF:Z.FL}}else e.drawImage(ZC.CanvasCache[Z.K],Z.iX+Z.BL,Z.iY+Z.BH);V&&(Z.A9-=.5);break;case"vml":switch(a=0,Z.K1){case"top":a-=(Z.F-Z.KG)/2;break;case"bottom":a+=(Z.F-Z.KG)/2}var S=ZC.Q.F7("zcv:line"),W=Z.iX+Z.BL+Z.I/2,U=Z.iY+Z.BH+Z.F/2,j=ZC.EH(Z.A9)*(Z.I-Z.EO-Z.FP)/2,q=ZC.EN(Z.A9)*(Z.I-Z.EO-Z.FP)/2,$=ZC._i_(W-j-ZC.EH(90-Z.A9)*a),ee=ZC._i_(U-q+ZC.EN(90-Z.A9)*a),te=ZC._i_(W+j-ZC.EH(90-Z.A9)*a),ie=ZC._i_(U+q+ZC.EN(90-Z.A9)*a);$===te&&($-=.01,te+=.01),ee===ie&&(ee-=.01,ie+=.01),o=Z.C1,0!==Z.A9&&Z.C5<1&&(o=ZC.AP.RB(o,99*(1-Z.C5))),ZC.Q.G9(S,{id:Z.K+"-line",from:$+"px,"+ee+"px",to:te+"px,"+ie+"px",fillcolor:o}),S.filled=!0,S.stroked=!1;var ae=ZC.Q.F7("zcv:path");ae.setAttribute("textpathok",!0),S.appendChild(ae);var ne=ZC.Q.F7("zcv:textpath"),le=Z.AT.replace(/<br>|<br\/>|<br \/>/gi,"\n").replace(/<.+?>/gi,"").replace(/<\/.+?>/gi,"");ZC.Q.G9(ne,{on:!0,string:le}),ZC.Q.PV(ne,{color:o,fontWeight:Z.sFontWeight,fontStyle:Z.N8?"oblique":"normal",textDecoration:Z.KE,fontSize:Z.DF+"px",fontFamily:Z.GI,"v-text-align":Z.OI}),S.appendChild(ne),e.appendChild(S);break;case"svg":case"svg0":var re=Z.iX+Z.EO+Z.BL,oe=Z.iY+Z.FO+Z.BH;if(r=ZC.Q.F7("text",ZC._[36]),ZC.Q.G9(r,{x:ZC._x_(re),y:ZC._x_(oe),id:Z.K,"class":Z.GO,opacity:Z.VK}),Z.D["css-display"]&&(r.style.display=Z.D["css-display"],Z.D["css-display"]=null),Z.bRTL&&ZC.Q.G9(r,{"text-anchor":ZC.A5.browser.msie?"":"end","writing-mode":"rl",direction:"rtl","unicode-bidi":"bidi-override"}),Z.A91&&(Z.G.KI.appendChild(ZC.Q.Y1({id:Z.K+"-clip",path:[[Z.iX+Z.EO+Z.AU+Z.BL,Z.iY+Z.FO+Z.AU+Z.BH].join(","),[Z.iX+Z.I-Z.FP-Z.AU+Z.BL,Z.iY+Z.FO+Z.AU+Z.BH].join(","),[Z.iX+Z.I-Z.FP-Z.AU+Z.BL,Z.iY+Z.F-Z.FT-Z.AU+Z.BH].join(","),[Z.iX+Z.EO+Z.AU+Z.BL,Z.iY+Z.F-Z.FT-Z.AU+Z.BH].join(","),[Z.iX+Z.EO+Z.AU+Z.BL,Z.iY+Z.FO+Z.AU+Z.BH].join(",")].join(" ")})),ZC.Q.G9(r,{"clip-path":"url(#"+Z.K+"-clip)"})),Z.A9%360!=0&&r.setAttribute("transform","rotate("+Z.A9+" "+(re+(Z.I-Z.EO-Z.FP)/2)+" "+(oe+(Z.F-Z.FO-Z.FT)/2)+")"),g&&H.appendChild(r),g){ZC.Q.ET(Z.K+"-float");var se=ZC.Q.F7("div");ZC.Q.PV(se,{position:"absolute",left:0,top:0,width:Z.I-Z.EO-Z.FP+"px",height:Z.F-Z.FO-Z.FT+"px",color:Z.C1,fontSize:Z.DF+"px",fontFamily:Z.GI,fontWeight:Z.sFontWeight,textDecoration:Z.KE,textAlign:Z.OI,fontStyle:Z.N8?"italic":"normal"}),se.id=Z.K+"-float",se.className="zc-style zc-html-mode",se.innerHTML=N[0],1===Z.o["z-index"]?ZC.AK(Z.G.K+"-top").append(se):ZC.AK(Z.G.K+"-top").insertBefore(se,ZC.AK(Z.G.K+"-img")),B&&Z.G&&Z.G.A7&&(Z.o[ZC._[19]]||Z.o[ZC._[20]]||(Z.G.A7.clear(),se.style.width="",se.style.height="",Z.I=ZC.A5(se).width()+Z.EO+Z.FP,Z.F=ZC.A5(se).height()+Z.FO+Z.FT,Z.paint()))}else for(v=-1===Z.FL?0:ZC._x_(Z.FL-1.25*Z.DF)/2,n=0,l=N.length;n<l;n++){switch(t=1===l?Z.NU:Z.cwidth(N[n])+Z.FP+Z.EO,b=-1===(m=N[n]).indexOf("<")?m:m.replace(/<.+?>/gi,"").replace(/<\/.+?>/gi,""),i=0,a=Z.DF,Z.OI){case"center":i=(Z.I-t)/2;break;case"right":i=Z.I-t}switch(Z.K1){case"middle":a+=(Z.F-Z.KG)/2;break;case"bottom":a+=Z.F-Z.KG}if(D=0,m!==b){for(;E=/<(.+?)>(.*?)<\/(.+?)>/.exec(m);){switch(F="",I="",(C=/(.+?)style=(.+?)(\'|")(.*?)/.exec(E[1]))&&(I=C[2].replace(/\'|"/g,"")),E[3]){case"b":case"strong":F="font-weight:bold";break;case"i":case"em":F="font-style:italic";break;case"u":F="text-decoration:underline"}y='[[span style="'+(""===F?"":F+";")+I+'"]]'+E[2]+"[[/span]]",m=m.replace(E[0],y)}for(X=!1,R=0,Q=(E=(m=m.replace(/\[\[/g,"<").replace(/\]\]/g,">").replace(/<span/g,"[[*]]<span").replace(/<\/span>/g,"</span>[[*]]")).split("[[*]]")).length;R<Q;R++)if(""!==E[R]){if(o=Z.C1,G=Z.sFontWeight,Y=Z.N8,w=Z.QX,M=Z.DF,L=Z.GI,P=Z.KE,O=Z.FL,K=E[R],A=/<span style=(.+?)>(.+?)<\/(.+?)>/.exec(E[R]))for(K=A[2],T=0,k=(x=A[1].replace(/\'|"/g,"").split(/;|:/)).length;T<k-1;T+=2)switch(ZC.GX(x[T])){case"font-size":M=ZC._i_(ZC.GX(x[T+1]));break;case"font-family":L=ZC.GX(x[T+1]);break;case"font-weight":G=ZC.GX(x[T+1]);break;case"font-style":-1!==ZC.AV(["italic","oblique"],ZC.GX(x[T+1]))&&(Y=!0);break;case"text-decoration":P=ZC.GX(x[T+1]);break;case"line-height":O=ZC._i_(ZC.GX(x[T+1]));break;case"color":o=ZC.AP.GD(ZC.GX(x[T+1]))}a=M,s=ZC.Q.F7("tspan",ZC._[36]),0===D?(ZC.Q.G9(s,{x:ZC._x_(re+i),y:ZC._x_(oe+a),dy:ZC._x_(v)}),v+=-1===O?1.25*M:ZC.BQ(1.5*M,O)):ZC.Q.G9(s,{dx:X||Z.isBold(G)||w?2:0}),ZC.Q.G9(s,{color:o,fill:o}),ZC.Q.PV(s,{fontWeight:G,fontStyle:Y?"oblique":"normal",textDecoration:P,fontSize:M+"px",fontFamily:L,dominantBaseline:"auto"});var Ce=document.createElement("span");-1!==K.indexOf("<")||-1!==K.indexOf(">")?Ce.innerText=K:Ce.innerHTML=K,K=Ce.innerText||Ce.textContent,Ce=null,s.textContent=K,r.appendChild(s),X=Y,D++}}else Z.bRTL&&ZC.A5.browser.msie&&(i+=t-Z.EO-Z.FP),s=ZC.Q.F7("tspan",ZC._[36]),ZC.Q.G9(s,{x:ZC._x_(re+i),y:ZC._x_(oe+a),color:Z.C1,fill:Z.C1,dy:ZC._x_(v)}),ZC.Q.PV(s,{fontWeight:Z.sFontWeight,fontStyle:Z.N8?"oblique":"normal",textDecoration:Z.KE,fontSize:Z.DF+"px",fontFamily:Z.GI,dominantBaseline:"auto"}),s.textContent=b,r.appendChild(s),v+=-1===Z.FL?1.25*Z.DF:Z.FL}}if(!g)if(!Z.WD&&r&&H)if(Z.G.G2)-1!==ZC.Q.TH(H).indexOf("zc-text")&&null===ZC._n_(Z.G.G2[H.id])&&(Z.G.G2[H.id]=document.createDocumentFragment()),Z.G.G2[H.id]?Z.G.G2[H.id].appendChild(r):H.appendChild(r);else H.appendChild(r)}}paintCANVASText(e){var t=this,i=e.idx,a=e.ctx,n=e.i,l=e.fw,r=e.fs,o=e.ff,s=e.c,C=e.dx,A=e.dy,Z=e.t;a.save(),a.globalAlpha=t.VK;var c;if(c=(n?"italic":"normal")+" normal "+l+" "+r+"px "+o,a.font=c,a.fillStyle=s,a.textAlign="left",a.textBaseline="alphabetic",a.translate(t.iX+t.BL,t.iY+t.BH),0!==t.A9&&(a.translate(t.I/2,t.F/2),a.rotate(ZC.TI(t.A9)),a.translate(-t.I/2,-t.F/2)),a.translate(t.EO,t.FO+r),a.translate(C,A),a.fillText(Z,0,0),zingchart.DEV.CACHECANVASTEXT){var p=ZC.CanvasCache[t.K].getContext("2d");p.font=c,p.fillStyle=s,p.textAlign="left",p.textBaseline="alphabetic",p.fillText(Z,t.EO,t.FO+r+1.25*i*r)}a.restore()}EC(e){var t=this;if(ZC.canvas&&"canvas"===t.G.AB&&(e||(e=ZC.AK(t.G.K+"-textprint-c")),!zingchart.CANVASTEXT&&t.A9%360==0)){var i=t.Z;t.Z=e,t.WD=!0;var a=t.G.AB;t.G.AB="canvas",t.paint(),t.WD=!1,t.G.AB=a,t.Z=i}}}class S0 extends I2{constructor(e){super(e);var t=this;t.CH="json",t.O7={graphset:!0,graph:!0,"objects-bottom":!0,"objects-top":!0,maps:!0,plotarea:!0,plots:!0,guide:!0,"static":!0,"value-box":!0},t.A1M=!1,t.A1N="en_us",t.QW=null,t.JO="",t.US=!1,t.S5={},t.N9="",t.ADI={},t.QT="",t.EV="",t.MG={},t.HW=null,t.AG=[],t.LT="",t.A7=null,t.HE=null,t.D4=null,t.B8=new ZC.ABD(t),t.QU="",t.MV=null,t.O3=[null,null,null,null],t.OH=!1,t.NQ="x",t.KD=!1,t.TW=!1,t.ABU=!1,t.A3X=!1,t.GQ=!1,t.A9U={},t.O2=null,t.QY={},t.M2=!1,t.QV=!1,t.AD3=null,t.T0=[],t.O={},t.N6=null,t.DE=null,t.UU=0,t.A2J=0,t.A50=1,t.MN=null,t.SK="",t.AB7="F*nStrlng4Cu$tOmLlc9nc9!",t.MI="",t.A1L={},t.A0Q=!1,t.AB="",t.KI=null,t.A08=!1,t.QZ=["",""],t.LD=0,t.KV=[],t.A86=0,t.A85=0,t.A9T=!1,t.A1U="",t.A6Z=!0,t.ID=null,t.R2=[],t.O5=0,t.AB1=!1,t.SM={},t.A1Z=!1,t.G2=zingchart.DEV.DOMFRAGMENTS?{}:null,t.A33=!1,t.T3=[]}clearLabelBoxes(e){var t=this;if(e)for(var i=t.T3.length-1;i>=0;i--)t.T3[i].type===e&&t.T3.splice(i,1);else t.T3=[]}usc(){return-1!==ZC.AV(this.KV,ZC._[44])}mc(e){return e=e||"",ZC.AK(this.K+"-main-c"+(""===e?e:"-"+e))}hideCM(){var e;(e=ZC.AK(this.K+"-menu"))&&(e.style.display="none"),this.A9T=!1}Y0(){for(var e=this,t=e.O3.length,i=0;i<t;i++)if(null!==ZC._n_(e.O3[i])){switch(e.AB){case"svg":ZC.CR.UB(e.O3[i].ctx,e.O3[i].style,e.O3[i].path.join(" "),e.O3[i].filled);break;case"vml":ZC.CR.UA(e.O3[i].ctx,e.O3[i].style,e.O3[i].path.join(" "),e.O3[i].filled)}e.O3[i]=null}}A4T(){var s=this,i,A6,EX,A6B;ZC.LICENSE=ZC.LICENSE||zingchart.LICENSE||"",ZC.BUILDCODE=ZC.BUILDCODE||zingchart.BUILDCODE||"",ZC.LICENSEKEY=ZC.LICENSEKEY||zingchart.LICENSEKEY||"",A6B="file:"===document.location.protocol?ZC.HOSTNAME||"":document.location.hostname;var A22=[A6B],CU=A6B.split(".");for("www"===CU[0]?A22.push(A6B.replace("www.","")):A22.push("www."+A6B),i=0;i<=CU.length-2;i++){for(var ABN="*",j=i;j<CU.length;j++)ABN+="."+CU[j];A22.push(ABN)}function XM(e){if(ZC.NOABOUT&&ZC.NOABOUT instanceof Array){var t=ZC.Y8.md5(ZC.AAJ(ZC.AAK(e)));-1!==ZC.AV(ZC.NOABOUT,t)&&(s.ABU=!0)}}if(-1!==ZC.AV(A22,"localhost")||-1!==ZC.AV(A22,"127.0.0.1"))s.TW=!0,s.A3X=!0,XM("localhost");else{var A32=[["window.AC.Core.zflags","Q^fhx]XKoJJLnmLPUYiWUuQKAOGnuAIWrSN_ZIj_LYvS`jRkihLOSfysvRQTBtQOUUO^`SdgZUHWKDVQ[xST_SWRLyFKogwOclSB"],["window.jsNorthNine.AppIdentity","09Vczmfsf/Q5G8dRWLio+7PVG0KjUnLRqnRSPOeqf6gu/hpxK6BeHRUtuasojuRTPFQYdzNGN57nxLviTf1hV4lwaFjtbv/tA1g0W0k7AKV1g1ouow1nG/+EJLl0khmPDSKBJa8fkP70KLNtrxt5pE2yjx+IvQ40ajd/03rqqtR="]];for(i=0,A6=A32.length;i<A6;i++)try{if(eval(A32[i][0])===ZC.AAK(A32[i][1])){s.TW=!0;break}}catch(e){}for(i=0,A6=A22.length;i<A6;i++){var A5R=ZC.Y8.md5(ZC.AAJ(ZC.AAK(A22[i])));ZC.LICENSE instanceof Array&&-1!==ZC.AV(ZC.LICENSE,A5R)&&(s.TW=!0,XM(A5R))}ZC.BUILDCODE instanceof Array&&2===ZC.BUILDCODE.length&&(EX=ZC.AD8(s.AB7),EX=EX.replace("O","0"),s.SK=ZC.ACH(ZC.BUILDCODE[0],EX),s.SK===ZC.BUILDCODE[1]&&(s.TW=!0,s.A3X=!0,XM(ZC.BUILDCODE[0])))}}A4U(){var e=this;if(null!==e.MV)ZC._todash_(e.MV),e.load();else if(null===ZC._n_(ZC.cache.data["defaults-"+e.QU])){var t=["query-string"===e.N9?"zcrandom="+Math.random():"",zingchart.ZCOUTPUT?"zcoutput="+e.AB:""].join("&");ZC.A5.ajax({type:"GET",url:e.QU,dataType:"text",beforeSend:function(t){e.S5.defaults||"http-headers"!==e.N9||t.setRequestHeader(ZC._[45],"Thu, 01 Jan 1970 00:00:00 GMT")},data:t,error:function(t,i,a,n){return e.NL({name:ZC._[63],message:"Resource not found ("+n+")"},ZC._[64]),!1},success:function(t){var i;try{i=JSON.parse(t),ZC.cache.data["defaults-"+e.QU]=t}catch(a){return e.NL(a,"JSON parser"),!1}e.MV=i,ZC._todash_(e.MV),e.load()}})}else{var i;try{i=JSON.parse(ZC.cache.data["defaults-"+e.QU])}catch(a){return e.NL(a,"JSON parser"),!1}e.MV=i,ZC._todash_(e.MV),e.load()}}load(e,t){var i=this;if(i.MI="load",""!==(t=t||i.QT)&&0!==t.indexOf("javascript:"))if(null===ZC._n_(ZC.cache.data["data-"+t])){var a=["query-string"===i.N9?"zcrandom="+Math.random():"",zingchart.ZCOUTPUT?"zcoutput="+i.AB:""].join("&");ZC.A5.ajax({type:"GET",url:t,dataType:"text",beforeSend:function(e){i.S5.data||"http-headers"!==i.N9||e.setRequestHeader(ZC._[45],"Thu, 01 Jan 1970 00:00:00 GMT")},data:a,error:function(e,t,a,n){return i.NL({name:ZC._[63],message:"Resource not found ("+n+")"},ZC._[64]),!1},success:function(t){i.data_(e,t)}})}else i.data_(e,ZC.cache.data["data-"+t]),ZC.cache.data["data-"+t]=null;else""!==i.EV?i.data_(e,i.EV):null!==i.MG&&(i.A7N?i.MG=JSON.parse(JSON.stringify(i.A7N)):i.A7N=JSON.parse(JSON.stringify(i.MG)),i.data_(e,i.MG))}data_(e,t){var i=this;ZC.TS[i.K]=(new Date).getTime(),ZC.AP.A8X("dataload",i)?ZC.AP.C0("dataload",i,i.F5(),t,function(t){i.load_(e,t)}):i.load_(e,t)}A2H(e){var t,i;if(!zingchart.DEV.RESOURCES)return[];e||(e=this.o);var a=[];if(e.graphset)for(t=0,i=e.graphset.length;t<i;t++){var n=e.graphset[t].type||"null";if(-1===ZC.AV(ZC.CHARTS,n)){for(var l in"3d"===n.substring(n.length-2)&&(n=n.substring(0,n.length-2)),ZC.EQUIV)ZC.EQUIV.hasOwnProperty(l)&&-1!==ZC.AV(ZC.EQUIV[l],n)&&(n=l);zingchart.loadModules(n),a.push(n)}}for(this.AAN(e),t=0,i=ZC.RT.length;t<i;t++)""!==ZC.GX(ZC.RT[t])&&-1===ZC.AV(ZC.X1,ZC.GX(ZC.RT[t]))&&a.push(ZC.GX(ZC.RT[t]));return a}AAN(e){e||(e=this.o)}load_(JN,U6){var s=this,H;s.D.rawsource=zingchart.DEV.KEEPSOURCE?U6:"N/A";var DJ=null;if("string"==typeof U6)try{DJ=JSON.parse(U6)}catch(JC){try{DJ=eval("("+U6+")")}catch(JC){return s.NL(JC,"JSON parser"),!1}}else DJ=U6;null===ZC._n_(DJ[ZC._[16]])&&(DJ={graphset:[DJ]}),s.D.source="N/A",zingchart.DEV.KEEPSOURCE&&(s.D.source=ZC.GX(JSON.stringify(DJ))),zingchart.A2A(s,s.A2H(DJ),function(){DJ=ZC.AP.C0("dataparse",s,s.F5(),DJ),zingchart.A2A(s,s.A2H(DJ),function(){if(ZC.AP.C0("modulesready",s,{id:s.K}),null===ZC._n_(JN))s.VT(DJ),s.o=DJ,s.A1M?(s.parse(),s.paint()):s.PS(function(){s.parse(),s.paint()});else{var e=s.OQ(JN);if(null!==e&&null!==ZC._n_(H=DJ[ZC._[16]])){var t=H.length>1?H[e.L]:H[0];t.id||(t.id=e.o.id||""),s.o[ZC._[16]][e.L]=t,s.PS(function(){s.parse(JN),s.AG[e.L].paint()})}}})})}VT(DJ){var s=this,H,i,A6,j,JD;for(null===ZC._n_(DJ[ZC._[16]])&&(DJ={graphset:[DJ]}),1===DJ[ZC._[16]].length&&null===ZC._n_(DJ[ZC._[16]][0])&&(DJ[ZC._[16]]=[{type:"null"}]),i=0,A6=DJ[ZC._[16]].length;i<A6;i++)if(null!==ZC._n_(DJ[ZC._[16]][i])){if(null!==ZC._n_(H=DJ[ZC._[16]][i].shapes)){var FJ=[];for(DJ[ZC._[16]][i][ZC._[10]]=DJ[ZC._[16]][i][ZC._[10]]||[],j=0,JD=H.length;j<JD;j++)if(H[j].generated&&H[j]["map-item"]||FJ.push(H[j]),null!==ZC._n_(H[j].type)&&0===H[j].type.indexOf("zingchart."))try{var M8=H[j].options||{},ED=H[j].type+"."+(M8.name||"");M8[ZC._[3]]=i;var A3E=eval(ED).call(s,M8,DJ,H[j]);for(var A4D in A3E)A3E.hasOwnProperty(A4D)&&("label"===A3E[A4D].objtype?DJ[ZC._[16]][i][ZC._[10]].push(A3E[A4D]):FJ.push(A3E[A4D]))}catch(e){}DJ[ZC._[16]][i].shapes=FJ}var A72;if(null!==ZC._n_(A72=DJ[ZC._[16]][i].widgets))for(var ABC=s.A0P(DJ,i),k=0;k<A72.length;k++){var A3A=A72[k];if(null!==ZC._n_(A3A.type)&&null!==ZC._n_(zingchart.widgets[A3A.type])&&"function"==typeof zingchart.widgets[A3A.type].parse)try{var BO={};ZC._cp_(A3A,BO),BO.graph=ABC.graph,BO.loader={id:s.K,width:s.I,height:s.F};var o=zingchart.widgets[A3A.type].parse.call(s,BO);if(null!==ZC._n_(H=o.graphs))for(j=0;j<H.length;j++)DJ[ZC._[16]].push({}),ZC._cp_(H[j],DJ[ZC._[16]][DJ[ZC._[16]].length-1]);if(null!==ZC._n_(H=o[ZC._[10]]))for(null===ZC._n_(DJ[ZC._[16]][i][ZC._[10]])&&(DJ[ZC._[16]][i][ZC._[10]]=[]),j=0;j<H.length;j++)DJ[ZC._[16]][i][ZC._[10]].push(H[j]);if(null!==ZC._n_(H=o.shapes))for(null===ZC._n_(DJ[ZC._[16]][i].shapes)&&(DJ[ZC._[16]][i].shapes=[]),j=0;j<H.length;j++)DJ[ZC._[16]][i].shapes.push(H[j])}catch(e){}}}}AAW(e,t){var i=this;switch(e){case"line":return new A6W(i);case"area":return new A6X(i);case"vline":return new AAG(i);case"varea":return new AAH(i);case"bar":case"vbar":case"column":return new A35(i);case"hbar":return new A36(i);case"mixed":case"hmixed":case"mixed3d":for(var a=!1,n=i.o[ZC._[16]][t][ZC._[11]],l=0,r=n.length;l<r;l++)n[l]&&n[l].type&&-1!==n[l].type.indexOf("3d")&&(a=!0);return a?new A3H(i):i.o[ZC._[16]][t].plot&&i.o[ZC._[16]][t].type&&i.o[ZC._[16]][t].plot&&i.o[ZC._[16]][t].plot.type&&-1!==i.o[ZC._[16]][t].plot.type.indexOf("3d")?new A3H(i):"mixed"===e?new A5S(i):new A98(i);case"scatter":return new A8C(i);case"hscatter":return new A7O(i);case"bubble":return new A99(i);case"hbubble":return new A8D(i);case"ring":case"pie":return new A4G(i);case"nestedpie":return new A75(i);case"radar":case"polar":return new AAB(i);case"venn":return new AAV(i);case"bullet":case"vbullet":return new A8F(i);case"hbullet":return new A8G(i);case"funnel":case"vfunnel":return new A8I(i);case"hfunnel":return new A8J(i);case"heatmap":case"piano":return new AAC(i);case"stock":return new AAD(i);case"range":return new AAF(i);case"vrange":return new ZCVRangeGraph(i);case"gauge":return new AAE(i);case"line3d":return new A9E(i);case"area3d":return new A9F(i);case"ring3d":case"pie3d":return new A5W(i);case"bar3d":case"vbar3d":return new A9D(i);case"hbar3d":return new A9C(i);case"null3d":return new A9I(i);default:return new AAT(i)}}OQ(e){for(var t=this,i=0,a=t.AG.length;i<a;i++)if(t.AG[i].K===t.K+"-graph-"+e||t.AG[i].K===t.K+"-graph-id"+e||t.AG[i].K===e||i===e)return t.AG[i];return null}A29(e,t){var i=this,a=ZC.A5("#"+i.K+("svg"===i.AB?"-top":"-main")),n=ZC._tx_(i.K);e-=a.offset().left,t-=a.offset().top;for(var l=null,r=0,o=i.AG.length;r<o;r++)ZC.DR(e,i.AG[r].iX,i.AG[r].iX+i.AG[r].I*n[0])&&ZC.DR(t,i.AG[r].iY,i.AG[r].iY+i.AG[r].F*n[1])&&(l=i.AG[r]);return l}A63(e){var t,i=this;if(typeof i.D.themesloaded===ZC._[31]){typeof e===ZC._[31]&&(e=!1),i.assign_a([["theme","LT"]]),i.o[ZC._[16]]&&1===i.o[ZC._[16]].length&&null!==ZC._n_(t=i.o[ZC._[16]][0].theme)&&(i.LT=t),""===i.LT&&(i.LT="light"),i.LT=String(i.LT).replace("zingchart","classic");for(var a=i.LT.split(/\s+|;|,/),n=0,l=a.length;n<l;n++)i.B8.ABF(a[n]);i.B8.A4U(i.MV),ZC.mobile&&i.B8.ABF("mobile"),e||(i.D.themesloaded=!0)}}parse(e){var t,i,a,n,l,r,o=this;o.NQ="x",o.D.json=ZC.GX(JSON.stringify(o.o)),ZC._cp_(o.o.layers,o.O7),1===o.o[ZC._[16]].length&&ZC._cp_(o.o[ZC._[16]][0].layers,o.O7);var s=o.F5();if(null!==ZC._n_(e)&&(s[ZC._[3]]=e),ZC.AP.C0("dataready",o,s),o.MI="parse",o.QZ[1]=o.QZ[0],o.QZ[0]="",o.QZ[0]+=o.I+":"+o.F+":",null!==ZC._n_(t=o.o[ZC._[16]]))for(o.QZ[0]+=t.length+":",n=0;n<t.length;n++)o.QZ[0]+=(t[n].type||"")+":",o.QZ[0]+=(t[n].x||"")+":"+(t[n].y||"")+":"+(t[n][ZC._[19]]||"")+":"+(t[n][ZC._[20]]||"")+":",null!==ZC._n_(t[n][ZC._[11]])&&(o.QZ[0]+=t[n][ZC._[11]].length+":");if(ZC.AK(o.K+"-main-c")&&o.clear(e,!1),typeof AAA!==ZC._[31]&&(o.HE=new AAA(o)),null===ZC._n_(e)){o.A63(),o.B8.B8["font-family"]&&(zingchart.FONTFAMILY=o.B8.B8["font-family"]);var C=!!o.o.gui;if(o.B8.load(o.o,"loader",!1,!0),o.assign_a([["gui","DE"],["globals","QW"]]),o.o[ZC._[16]]&&1===o.o[ZC._[16]].length&&(i=o.o[ZC._[16]][0],null!==ZC._n_(t=i.gui)&&(o.DE=t),null!==ZC._n_(t=i.globals)&&(o.QW=t)),ZC._todash_(o.QW),ZC._cp_(o.B8.B8.root.gui,o.DE,!1,!0,!0),o.DE.behaviors)for(n=o.DE.behaviors.length-1;n>=0;n--)for(r=0;r<n;r++)if(o.DE.behaviors[n].id===o.DE.behaviors[r].id){o.DE.behaviors.splice(n,1);break}if(C||delete o.o.gui,ZC._todash_(o.DE),o.O={},null!==ZC._n_(t=o.o.style))for(a in t)"url"!==a&&(o.O[a]=t[a]);if(o.o[ZC._[16]]&&1===o.o[ZC._[16]].length&&(i=o.o[ZC._[16]][0],null!==ZC._n_(t=i.style)))for(a in t)"url"!==a&&(o.O[a]=t[a]);ZC._todash_(o.O),o.O7[ZC._[16]]&&super.parse(),o.assign_a([["locale","A1N"],["set-locale","A1N"],["layout","NQ"],["h-space","A86","i"],["v-space","A85","i"],["flat","KD","b"],["show-progress","A0Q","b"]]),o.o[ZC._[16]]&&1===o.o[ZC._[16]].length&&(i=o.o[ZC._[16]][0],null!==ZC._n_(t=i.locale)&&(o.A1N=t),null!==ZC._n_(t=i["set-locale"])&&(o.A1N=t),null!==ZC._n_(t=i.flat)&&(o.KD=ZC._b_(t)),null!==ZC._n_(t=i["show-progress"])&&(o.A0Q=ZC._b_(t))),null!==ZC._n_(t=zingchart.i18n[o.A1N])&&(ZC.HN=t),o.AG=[]}var A=0,Z=0,c=o.I,p=o.F;if(null!==ZC._n_(o.o.margin)||null!==ZC._n_(o.o[ZC._[57]])||null!==ZC._n_(o.o[ZC._[58]])||null!==ZC._n_(o.o[ZC._[59]])||null!==ZC._n_(o.o[ZC._[60]])){var u=new I2(o);u.append(o.o,!1,!1),u.parse(),A=u.DV,Z=u.E7,c=c-u.DV-u.E6,p=p-u.E7-u.DN}var h,_,d=o.OQ(e);if(null!==ZC._n_(h=o.o[ZC._[16]])){var f=0;for(n=0,l=h.length;n<l;n++)_=0,null!==ZC._n_(t=h[n].page)&&(_=ZC._i_(t)),f+=o.LD===_?1:0;var g=ZC.AQ.A2X(o.NQ,f),B=ZC._i_(g[0]),v=ZC._i_(g[1]),m=0,b=0,D=0;for(n=0,l=h.length;n<l;n++){if(_=0,null===d&&null!==ZC._n_(t=h[n].page)&&(_=ZC._i_(t)),(null===d||D===d.L)&&o.LD===_){if(o.AG[D]=o.AAW(h[n].type||"null",n),o.AG[D].ON=o.AG[D].AF+"graph",o.B8.load(o.AG[D].o,"graph"),o.B8.load(o.AG[D].o,h[n].type||"null"),o.AG[D].append(o.o.graph),o.AG[D].append(h[n]),o.AG[D].L=D,null===ZC._n_(h[D].id)||""===h[D].id?o.AG[D].K=o.K+"-graph-id"+D:o.AG[D].K=o.K+"-graph-"+h[n].id,h.length>0){for(var K=0,E=0,F=ZC._i_((c-(v+1)*o.A86)/v),I=ZC._i_((p-(B+1)*o.A85)/B),x=["x","y",ZC._[19],ZC._[20]],y=0;y<x.length;y++)null!==ZC._n_(o.D["graph-"+D+"-"+x[y]])&&(delete o.D["graph-"+D+"-"+x[y]],delete o.AG[D].o[x[y]]);null===ZC._n_(o.AG[D].o.x)?o.D["graph-"+D+"-x"]=o.AG[D].o.x=ZC._i_(o.iX+(m+1)*o.A86+m*F)+A:(K=ZC.IR(o.AG[D].o.x))<1&&(K=ZC._i_(o.I*K)),null===ZC._n_(o.AG[D].o.y)?o.D["graph-"+D+"-y"]=o.AG[D].o.y=ZC._i_(o.iY+(b+1)*o.A85+b*I)+Z:(E=ZC.IR(o.AG[D].o.y))<1&&(E=ZC._i_(o.F*E)),null===ZC._n_(o.AG[D].o[ZC._[19]])&&(o.D["graph-"+D+"-width"]=o.AG[D].o[ZC._[19]]=Math.max(F,F-K)),null===ZC._n_(o.AG[D].o[ZC._[20]])&&(o.D["graph-"+D+"-height"]=o.AG[D].o[ZC._[20]]=Math.max(I,I-E))}o.AG[D].parse()}o.LD===_&&(D++,++m===v&&(b++,m=0))}}null===ZC._n_(e)&&null!==ZC._n_(t=o.o.refresh)&&(o.HW={type:"full",interval:10},ZC._cp_(t,o.HW))}A12(e,t){t=t||"";var i=[];for(var a in e)if("object"==typeof e[a])for(var n=this.A12(e[a],t+"."+a),l=0,r=n.length;l<r;l++)-1===ZC.AV(i,n[l])&&i.push(n[l]);else{var o=t+"."+a;"background-image"!==a&&"backgroundImage"!==a||""===e[a]||"zc."===e[a].substring(0,3)||(!ZC.ie67&&ZC.PATTERNS&&"PATTERN_"===e[a].substring(0,8)&&(e[a]=ZC.PATTERNS[e[a].substring(8)]),"!"===e[a].charAt(0)&&(e[a]=e[a].substring(1),this.D["safe-images"]=this.D["safe-images"]||[],this.D["safe-images"].push(e[a])),i.push([e[a],"image"])),"src"===a&&""!==e[a]&&"zc."!==e[a].substring(0,3)&&-1!==o.indexOf(".images.")&&(!ZC.ie67&&ZC.PATTERNS&&"PATTERN_"===e[a].substring(0,8)&&(e[a]=ZC.PATTERNS[e[a].substring(8)]),"!"===e[a].charAt(0)&&(e[a]=e[a].substring(1),this.D["safe-images"]=this.D["safe-images"]||[],this.D["safe-images"].push(e[a])),i.push([e[a],"image"])),".csv"===o.substr(o.length-4,4)&&"string"==typeof e[a]&&i.push([e[a],"csv"]),"url"===a&&(-1!==o.indexOf(".style.")&&i.push([e[a],"css"]),-1!==o.indexOf(".csv.")&&i.push([e[a],"csv"]),-1!==o.indexOf(".marker.")&&i.push([e[a],"image"])),"string"==typeof e[a]&&"url"!==a&&(0===e[a].indexOf("url:")&&a===ZC._[5]||0===e[a].indexOf("javascript:"))&&-1===ZC.AV(["format","text","tooltipText"],ZC.EE(a))&&i.push([e[a],"data"])}return i}PS(JG){var s=this;if(zingchart.DEV.RESOURCES){var J8=s.A12(s.o).concat(s.A12(s.MV));if(0!==J8.length){var UU=0,LS={},A23=0;s.D["safe-images"]=s.D["safe-images"]||[];var C3=window.setInterval(function(){if(UU>=J8.length){for(var e in window.clearInterval(C3),s.AAM(s.o),LS)if(0!==e.indexOf("data:")&&-1===ZC.AV(s.D["safe-images"],e))try{var t=document.createElement("canvas");t.width=LS[e].width,t.height=LS[e].height,t.getContext("2d").drawImage(LS[e],0,0);var i=t.toDataURL("image/png");LS[e].onload=null,LS[e].onerror=null,LS[e].src=i,ZC.cache.data[e]=LS[e]}catch(a){}window.setTimeout(function(){zingchart.YJ[s.K]&&JG()},1)}else A3N(++A23)},20);A3N(A23)}else zingchart.YJ[s.K]&&JG()}else zingchart.YJ[s.K]&&JG();function A3N(i){if(!(i>=J8.length)){var EV,MO,KM=J8[i][0],A0Z=J8[i][1];if("url:"===KM.substring(0,4)){var QT=KM.substring(4);s.QY["url:"+QT]="[]";try{EV=["query-string"===s.N9?"zcrandom="+Math.random():""].join("&"),ZC.A5.ajax({type:"GET",url:QT,beforeSend:function(e){s.S5.data||"http-headers"!==s.N9||e.setRequestHeader(ZC._[45],"Thu, 01 Jan 1970 00:00:00 GMT")},data:EV,error:function(e,t,i,a){return s.NL({name:ZC._[63],message:"Resource not found ("+a+")"},ZC._[64]),!1},success:function(e,t,i,a){s.QY["url:"+a]=e,UU++}})}catch(JC){return s.NL(JC,ZC._[64]),!1}}else if("javascript:"===KM.substring(0,11))if("zc.ext.load"===s.QY[KM]){s.QY[KM]="[]";var DZ=ZC.AP.AAX(KM.substring(11)),N={id:s.K,resource:KM,callback:function(e){s.QY[KM]=e,UU++}},A0J=DZ[0];N.arguments=DZ[1];try{var A3F=eval(A0J).call(s,N);null!==ZC._n_(A3F)&&A3F&&(s.QY[KM]=A3F,UU++)}catch(JC){return s.NL(JC,"JavaScript data loader"),!1}}else UU++;else"image"===A0Z?(LS[KM]=new Image,LS[KM].crossOrigin="anonymous",LS[KM].onload=function(){UU++},LS[KM].onerror=function(){var e=ZC._b_(s.o.strict);if(ZC.IMG404.push(KM),e)return s.NL({name:ZC._[63],message:"Resource not found ("+this.src+")"},"Resource loader (image)"),!1;this.src=ZC.BLANK,UU++},LS[KM].src=KM,ZC.cache.data[KM]=LS[KM]):"css"===A0Z?(EV=["query-string"===s.N9?"zcrandom="+Math.random():""].join("&"),ZC.A5.ajax({type:"GET",url:KM,beforeSend:function(e){s.S5.css||"http-headers"!==s.N9||e.setRequestHeader(ZC._[45],"Thu, 01 Jan 1970 00:00:00 GMT")},data:EV,error:function(e,t,i){return s.NL(i,"Resource loader"),!1},success:function(e){for(var t={},i=e.match(/[a-zA-Z0-9\.\#\-](.+?)\{((.|\s)+?)\}/gi),a=0,n=i.length;a<n;a++){MO=i[a].split("{");var l=ZC.GX(MO[0]),r=l.split(/\s+/);if(1===r.length||2===r.length&&ZC.GX(r[0])==="#"+s.K){t[l=ZC.GX(1===r.length?r[0]:r[1])]||(t[l]={});for(var o=0,C=(MO=MO[1].replace("}","").split(";")).length;o<C;o++){var A=MO[o].split(":");2===A.length&&(t[l][ZC.GX(A[0])]=""+ZC.GX(A[1]))}}}null!==ZC._n_(s.o.style)?ZC._cp_(t,s.o.style):null!==ZC._n_(s.o[ZC._[16]])&&1===s.o[ZC._[16]].length&&s.o[ZC._[16]][0].style&&ZC._cp_(t,s.o[ZC._[16]][0].style),UU++}})):"csv"===A0Z&&(EV=["query-string"===s.N9?"zcrandom="+Math.random():""].join("&"),ZC.A5.ajax({type:"GET",url:KM,beforeSend:function(e){s.S5.csv||"http-headers"!==s.N9||e.setRequestHeader(ZC._[45],"Thu, 01 Jan 1970 00:00:00 GMT")},data:EV,error:function(e,t,i){return s.NL(i,"Resource loader"),!1},success:function(e,t,i,a){s.A9U[a]=e,UU++}}))}}}AAM(BZ){var s=this;for(var p in BZ)if("object"==typeof BZ[p])s.AAM(BZ[p]);else for(var EV in s.QY)EV===BZ[p]&&(BZ[p]=eval(s.QY[EV]))}resize(e){var t,i,a,n,l=this;if(l.D.resize=!0,l.D.wh=l.I+"/"+l.F,l.o[ZC._[16]])if(l.A1Z)zingchart.exec(l.K,"destroy"),zingchart.render(zingchart.params[l.K]);else if(typeof e===ZC._[31]&&(e=!1),ZC.AP.C0("resize",l,l.F5()),e=!1);else{for(i=0;i<l.AG.length;i++)for(n=0;n<l.AG[i].AY.A4.length;n++)l.D["g-"+i+"-p-"+n+".visible"]=l.AG[i].D["plot"+n+".visible"];for(i=0;i<l.AG.length;i++)l.D["g-"+l.AG[i].L+"-selection"]=JSON.stringify(l.AG[i].CG);for(var r=l.o[ZC._[16]],o=[ZC._[10],"shapes"],s=0,C=r.length;s<C;s++)for(var A=0;A<o.length;A++){var Z=o[A],c=[];if(null!==ZC._n_(r[s][Z])){for(i=0,a=r[s][Z].length;i<a;i++)r[s][Z][i].generated||c.push(r[s][Z][i]);r[s][Z]=c}}if(l.VT(l.o),l.o=ZC.AP.C0("dataparse",l,l.F5(),l.o),ZC.A5("#"+l.K+"-top").width(l.I).height(l.F),l.D["from-api"]&&(ZC.A5("#"+l.K+"-wrapper").width(l.I).height(l.F),delete l.D["from-api"]),1===(t=ZC.A5("#"+l.K+"-img")).length&&t.width(l.I).height(l.F).css("clip","rect(1px,"+(l.I-1)+"px,"+(l.F-1)+"px,1px)"),"svg"===l.AB&&(l.KI.setAttribute(ZC._[19],l.I),l.KI.setAttribute(ZC._[20],l.F)),"canvas"===l.AB||"vml"===l.AB){for(ZC.A5("#"+l.K+"-main").width(l.I).height(l.F),i=0,a=l.AG.length;i<a;i++)ZC.A5("#"+l.AG[i].K+"-hover").remove();ZC.A5("#"+l.K+"-main>div").width(l.I).height(l.F)}for("canvas"===l.AB&&((t=ZC.AK(l.K+"-main-c"))&&(t.width=l.I,t.height=l.F),(t=ZC.AK(l.K+"-main-c-top"))&&(t.width=l.I,t.height=l.F),ZC.A5("#"+l.K+"-objects-bottom canvas, #"+l.K+"-objects-top canvas, #"+l.K+"-tools canvas").each(function(){this.width=l.I,this.height=l.F})),"vml"===l.AB&&ZC.A5("#"+l.K+"-objects-bottom div, #"+l.K+"-objects-top div, #"+l.K+"-tools div").each(function(){this.style.width=l.I+"px",this.style.height=l.F+"px"}),l.parse(),i=0,a=l.AG.length;i<a;i++)l.AG[i].UQ&&l.AG[i].UQ(),l.AG[i].HL=!0,l.AG[i].A6T=l.AG[i].GF,l.AG[i].GF=!1;for(l.paint(),i=0;i<l.AG.length;i++)for(n=0;n<l.AG[i].AY.A4.length;n++)delete l.D["g-"+i+"-p-"+n+".visible"];for(i=0;i<l.AG.length;i++)l.AG[i].HL=!1,l.AG[i].GF=l.AG[i].A6T,delete l.AG[i].A6T,delete l.D["g-"+l.AG[i].L+"-selection"]}}clearGenerated(){var e=this.o[ZC._[16]],t=[ZC._[10],"shapes"];if(e)for(var i=0,a=e.length;i<a;i++)for(var n=0;n<t.length;n++){var l=t[n],r=[];if(null!==ZC._n_(e[i][l])){for(var o=0,s=e[i][l].length;o<s;o++)e[i][l][o].generated||r.push(e[i][l][o]);e[i][l]=r}}}clear(e,t,i){var a=this;for(var n in a.D)-1!==n.indexOf("-label-")&&-1!==n.indexOf("-bounds")&&delete a.D[n];if(typeof t===ZC._[31]&&(t=!0),ZC.A5("."+a.K+"-history-area").die("click",a.A1A),ZC.A5("."+a.K+"-history-area").remove(),null!==ZC._n_(e))a.OQ(e).clear();else{t&&a.clearGenerated(),a._unbind_();for(var l=0,r=a.AG.length;l<r;l++)"vml"===a.AB&&i?a.AG[l].destroy():a.AG[l].clear();var o,s,C;null!==(o=ZC.AK(a.K+"-main-c"))&&ZC.Q.IT(o,a.AB,a.iX,a.iY,a.I,a.F),null!==(C=ZC.AK(a.K+"-main-c-top"))&&ZC.Q.IT(C,a.AB,a.iX,a.iY,a.I,a.F),null!==(s=ZC.AK(a.K+"-trigger-c"))&&(ZC.Q.IT(s,a.AB,a.iX,a.iY,a.I,a.F),ZC.A5("#"+a.K+"-menu-area").remove()),a.A7&&a.A7.hide(),ZC.A5("."+a.K+"-menu-item").remove(),ZC.Q.ET([a.K+"-menu-trigger",a.K+"-menu"]),ZC.Q.ET(a.K+"-license-text"),null!==a.ID&&ZC.Q.ET([a.K+"-history-path",a.K+"-history-back-path",a.K+"-history-forw-path",a.K+"-history-gradient",a.K+"-history-back-gradient",a.K+"-history-forw-gradient"])}}A82(){var e,t,i,a=this,n=a.I+"/"+a.F,l=ZC.Q.I7({id:a.K+"-wrapper",position:"relative",p:ZC.AK(a.K)});ZC.Q.PV(l,{height:"100%"===a.N2?a.N2:a.F+"px",width:"100%"===a.G0?a.G0:a.I+"px"});var r=ZC.Q.I7({cls:"zc-rel zc-top",wh:n,id:a.K+"-top",overflow:"hidden",position:"absolute",p:l});switch(zingchart.OFFSET&&(r.style.left="-0.5px",r.style.top="-0.5px"),a.AB){case"svg":a.KI=ZC.Q.F7("svg",ZC._[36]),a.KI.setAttributeNS&&a.KI.setAttributeNS(null,"xlink",ZC._[37]),ZC.Q.G9(a.KI,{version:"1.1",id:a.K+"-svg","class":"zc-svg",width:a.I,height:a.F,display:"block"}),r.appendChild(a.KI);var o=ZC.Q.F7("defs",ZC._[36]);if(o.id=a.K+"-defs",a.KI.appendChild(o),ZC.Q.K5({cls:"zc-rel zc-main",wh:n,id:a.K+"-main",p:a.KI},a.AB),a.A2R=[],a.o[ZC._[16]])for(e=0,t=a.o[ZC._[16]].length;e<t;e++)if((i=a.o[ZC._[16]][e].resources)&&i.length)for(var s=0;s<i.length;s++)if("css"===i[s].type&&i[s].url){var C=ZC.Q.F7("link",ZC._[36]);ZC.Q.G9(C,{xmlns:"http://www.w3.org/1999/xhtml",href:i[s].url,rel:"stylesheet",type:"text/css"}),a.A2R.push(i[s].url),o.appendChild(C)}break;case"vml":case"canvas":ZC.Q.I7({cls:"zc-rel zc-main",wh:n,id:a.K+"-main",p:r})}}paintHistory(){}paint(){var e=this;e.MI="paint";var t=e.I+"/"+e.F;if(e.Y9(),null===ZC.AK(e.K+"-top")){e.A82();var i=ZC.AK(e.K+"-main");if(e.O7[ZC._[16]]&&ZC.Q.HK({cls:"zc-abs",id:e.K+"-main-c",wh:t,p:i},e.AB),e.G.usc())ZC.Q.HK({cls:"zc-abs",id:e.K+"-main-c-top",wh:t,p:i},e.AB),ZC.Q.HK({cls:ZC._[24],id:e.K+ZC._[15],p:i,wh:t,display:"none"},e.AB);else{ZC.Q.K5({cls:"zc-abs",wh:t,id:e.K+"-objects-bottom",p:i},e.AB),zingchart.DEV.MAPSONBOTTOM&&ZC.Q.K5({cls:"zc-abs",wh:t,id:e.K+"-objects-maps",p:i},e.AB),ZC.Q.K5({cls:"zc-abs",wh:t,id:e.K+"-graphset",p:i},e.AB),zingchart.DEV.MAPSONBOTTOM||ZC.Q.K5({cls:"zc-abs",wh:t,id:e.K+"-objects-maps",p:i},e.AB),ZC.Q.K5({cls:"zc-abs",wh:t,id:e.K+"-objects-top",p:i},e.AB),ZC.Q.K5({cls:"zc-abs",wh:t,id:e.K+"-hover",p:i},e.AB),ZC.Q.K5({cls:"zc-abs",wh:t,id:e.K+"-objects-front",p:i},e.AB),ZC.Q.K5({cls:"zc-abs zc-text",wh:t,id:e.K+"-text",p:i},e.AB);var a="legend",n="tools";("legend"===e.o["top-layer"]||e.o[ZC._[16]]&&1===e.o[ZC._[16]].length&&"legend"===e.o[ZC._[16]][0]["top-layer"])&&(a="tools",n="legend"),ZC.Q.K5({cls:"zc-abs",wh:t,id:e.K+"-"+a,p:i},e.AB),ZC.Q.K5({cls:"zc-abs",wh:t,id:e.K+"-"+n,p:i},e.AB);var l=ZC.AK(e.K+"-tools");e.O7["static"]&&ZC.Q.HK({cls:ZC._[24],id:e.K+"-static-c",wh:t,p:l},e.AB),e.O7.guide&&ZC.Q.HK({cls:ZC._[24]+" zc-guide-c",id:e.K+"-guide-c",wh:t,p:l},e.AB),(ZC.A5.browser.opera&&ZC._i_(ZC.A5.browser.version)<=9.5||ZC.mobile||"classic"!==e.LT)&&ZC.Q.HK({cls:ZC._[24],id:e.K+"-trigger-c",wh:t,p:l},e.AB),ZC.Q.HK({cls:ZC._[24],id:e.K+ZC._[15],p:l,wh:t,display:"none"},e.AB),ZC.Q.HK({cls:ZC._[24],id:e.K+"-textprint-c",p:l,wh:t,display:"none"},e.AB),ZC.Q.K5({cls:"zc-abs",wh:t,id:e.K+"-text-top",p:i},e.AB)}if(!zingchart.DEV.SKIPTRACKERS){var r=document.createElement("img");if(r.id=e.K+"-img",r.className="zc-img",r.setAttribute("useMap","#"+e.K+"-map"),r.setAttribute("alt",""),ZC.Q.PV(r,{position:"absolute",borderWidth:0,width:e.I+2*ZC.MAPTX+"px",height:e.F+2*ZC.MAPTX+"px",left:-ZC.MAPTX+"px",top:-ZC.MAPTX+"px",zIndex:0,opacity:0,filter:"alpha(opacity=0)",clip:"rect("+(ZC.MAPTX+1)+"px,"+(e.I+ZC.MAPTX-1)+"px,"+(e.F+ZC.MAPTX-1)+"px,"+(ZC.MAPTX+1)+"px)"}),r.src=(ZC.ie67?"//":"")+ZC.BLANK,ZC.AK(e.K+"-top").appendChild(r),!e.G.usc()){var o=document.createElement("map");o.className="zc-map",ZC.Q.G9(o,{id:e.K+"-map",name:e.K+"-map"}),ZC.AK(e.K+"-top").appendChild(o)}}}e.Z=ZC.AK(e.K+"-main-c"),super.paint();var s,C,A=!1,Z=!1;for(s=0,C=e.AG.length;s<C;s++){e.AG[s].paint(),(null!==e.AG[s].CW&&e.AG[s].CW.AM||null!==e.AG[s].HB&&e.AG[s].HB.AM)&&(A=!0);for(var c=0;c<e.AG[s].BN.length;c++)if(e.AG[s].BN[c].GQ){Z=!0;break}}if(e.G2){for(var p in e.G2)ZC.AK(p).appendChild(e.G2[p]);e.G2=null}if(e.D[ZC._[53]]=null,e.TW||e.US||(e.ZE?e.A4W():e.ZE=window.setInterval(function(){e.A4T(),e.TW||e.US?(window.clearInterval(e.ZE),ZC.Q.ET(e.K+"-license-text")):ZC.AK(e.K+"-license-text")||e.A4W()},2e3)),-1===ZC.AV(e.KV,ZC._[38])&&e.A1D(),-1===ZC.AV(e.KV,ZC._[41])?(typeof A95!==ZC._[31]&&(e.A7=new A95(e)),Z&&e.HE.bind(),A&&typeof KB!==ZC._[31]&&(e.D4=new KB(e),e.D4.bind()),ZC.mobile&&(e.AGB=function(t){ZC.swipe={xy:ZC.Q.MM(t),ts:(new Date).getTime()},t.target.id===e.K+"-menu-area"?(ZC.move=!1,e.A7&&e.A7.hide(),zingchart.ZM(t)):(null===e.DE||null===ZC._n_(e.DE["page-scroll"])||e.DE["page-scroll"]||t.preventDefault(),ZC.move=!1,e.hideCM(),e.A7&&e.A7.hide(),e.W8(t))},e.P8=function(){window.clearTimeout(e.AB8),e.A3Y=null},e.AGA=function(t){if(ZC.swipe){var i=ZC.Q.MM(t);if(ZC._a_(i[0]-ZC.swipe.xy[0])>100&&(new Date).getTime()-ZC.swipe.ts<1e3){var a=e.F5();a.direction=i[0]>ZC.swipe.xy[0]?"right":"left",ZC.AP.C0("swipe",e,a)}ZC.swipe=null}e.A9T||ZC.move||zingchart.SP(t),e.P8(t)},ZC.A5("#"+e.K+"-img").bind("touchstart",e.AGB).bind("touchmove",e.P8).bind("touchend",e.AGA),ZC.A5("#"+e.K+"-menu-area").live("touchstart",e.AGB)),e.zc_loader_mousewheel=function(t){var i=e.F5();i.ev=t,ZC.AP.C0("mousewheel",e,i)},ZC.A5("#"+e.K+"-img").bind("mousewheel",e.zc_loader_mousewheel),ZC.A5("#"+e.K+"-map").bind("mousewheel",e.zc_loader_mousewheel),e.A2S=function(t){27===t.keyCode&&e.QV&&(e.A87||e.A9P())},ZC.A5(document).bind("keyup",e.A2S),e.A9P=function(){ZC.A5("#"+e.K+ZC._[66]).die("click",e.A9P),ZC.FSSTATUS=null,ZC.Q.ET(e.K+"-data-table"),e.destroy(),zingchart.FSID&&ZC.AK(zingchart.FSID)&&(ZC.AK(zingchart.FSID).style.display="none")},ZC.A5("#"+e.K+ZC._[66]).live("click",e.A9P)):ZC.mobile&&(e.zc_loader_touchstart_static=function(e){return e.preventDefault(),zingchart.SP(e),!1},ZC.A5("#"+e.K+"-img").bind("touchstart",e.zc_loader_touchstart_static)),null!==e.HW){var u=ZC._i_(e.HW.interval);u=u>=50?u:1e3*u,window.setTimeout(function(){e.MT(),e.load()},u)}e.MI="",ZC.TS[e.K]=(new Date).getTime()-ZC.TS[e.K],e.D["fire-complete"]&&(ZC.AP.C0("complete",e,e.F5()),e.D["fire-complete"]=null),e.D["fire-load"]&&(ZC.AP.C0("load",e,e.F5()),e.D["fire-load"]=null)}togglePreviewMasks(e){for(var t=this,i=0;i<t.AG.length;i++)t.AG[i].BA&&t.AG[i].BA.toggleMasks(e)}createPreviewMasks(){var e=this,t=document.createElement("canvas");t.width=e.I,t.height=e.F,t.setAttribute("class","");for(var i=0;i<e.AG.length;i++)e.AG[i].BA&&e.AG[i].BA.toggleMasks(!0,t);return t}AD1(){null===ZC._n_(ZC.showZCAbout)&&(ZC.showZCAbout=function(e){zingchart.exec(e.id,"toggleabout")}),zingchart.exec(this.K,"addmenuitem",{text:"About ZingChart","function":"ZC.showZCAbout()",order:100})}A4W(){var e,t=this,i={},a=t.DE.watermark;t.B8.load(i,"loader.gui.watermark"),a&&ZC._cp_(a,i),1===t.o[ZC._[16]].length&&t.o[ZC._[16]][0].gui&&(e=t.o[ZC._[16]][0].gui.watermark)&&ZC._cp_(e,i);var n=ZC._l_(ZC._i_(i.type||1),1,2),l=i.position||"br";-1===ZC.AV(["tl","tr","br","bl"],l)&&(l="br"),t.ACW=l;var r,o=32,s=146,C=0,A=1;ZC.ie67&&(o=30,s=168,C=8,A=1),s=126,o=22;var Z={light:["#6D6E71","#00384A"],dark:["#FFFFFF","#09A9DA"]},c=Z.light;if(zingchart.THEME&&(c="light"===t.LT||"classic"===t.LT?Z.light:Z.dark),1===t.o[ZC._[16]].length)if(t.o[ZC._[16]][0][ZC._[0]]){var p=ZC.AP.GD(t.o[ZC._[16]][0][ZC._[0]]);7===p.length&&(c=ZC.AP.AAO(p,Z.dark,Z.light))}else if(t.o[ZC._[16]][0].theme){var u=t.o[ZC._[16]][0].theme;c="light"===u||"classic"===u?Z.light:Z.dark}var h,_,d=typeof window!==ZC._[31]&&window.location?window.location.origin:"",f=typeof window!==ZC._[31]&&window.location?window.location.pathname:"";switch(r='<a title="JavaScript Charts by ZingChart" style="color:'+c[0]+' !important;font-size:11px !important;display:block !important;opacity:1 !important; text-decoration:none;" href="http://www.zingchart.com/?origin='+d+"&pathname="+f+'">Powered by <span style="color:'+c[1]+'; font-weight:bold;">ZingChart</span></a>',l){case"br":h=t.F-o,_=t.I-s;break;case"bl":h=t.F-o,_=6;break;case"tr":h=2,_=t.I-s;break;case"tl":h=2,_=6}null!==ZC._n_(e=ZC.AK(t.K+"-top"))&&ZC.Q.I7({cls:ZC.ie67?"-ie67":"",p:e,id:t.K+"-license-text",tl:h+"/"+_,wh:s+"/"+(o-C),color:ZC.ie67?1===n?"#369":"#fff":"",padding:C,opacity:A,position:"absolute",cursor:"pointer",fontFamily:zingchart.FONTFAMILY,html:r},t.AB)}_unbind_(){var e=this;ZC.A5("#"+e.K+"-menu").die(ZC._[47],e.U8),ZC.A5("."+e.K+"-menu-item").die(ZC._[47],e.U8),ZC.A5("."+e.K+"-menu-item").die("click touchend",e.AGE).die("mouseover",e.AGC).die("mouseout",e.AGD),e.D["menu-item-events"]=!1,null!==e.HE&&e.HE.unbind(),null!==e.D4&&e.D4.unbind(),ZC.mobile&&(ZC.A5("#"+e.K+"-img").unbind("touchstart",e.AGB).unbind("touchmove",e.P8).unbind("touchend",e.AGA),ZC.A5("#"+e.K+"-menu-area").die("touchstart",e.AGB),ZC.A5("#"+e.K+"-img").unbind("touchstart",e.zc_loader_touchstart_static)),ZC.A5("#"+e.K+"-img").unbind("mousewheel",e.zc_loader_mousewheel),ZC.A5("#"+e.K+"-map").unbind("mousewheel",e.zc_loader_mousewheel),ZC.A5(document).unbind("keyup",e.A2S),ZC.A5("#"+e.K+ZC._[66]).die("click",e.A9P)}UF(e,t,i){typeof i===ZC._[31]&&(i=!1);var a=ZC.AK("zc-menu-"+(i?"sep":"item")+"-"+e);a&&(a.style.display=t?"block":"none")}A1D(LR,ev){if(!zingchart.DEV.SKIPCONTEXTMENU){var s=this,H,i,A6,j,JD;typeof LR===ZC._[31]&&(LR=-1);var DE={};ZC._cp_(s.DE,DE),-1!==LR&&s.o[ZC._[16]][LR]&&ZC._cp_(s.o[ZC._[16]][LR].gui,DE,null,null,!0),ZC.A5("#"+s.K+"-menu").remove();var S4=[];for(typeof ZC.AO===ZC._[31]&&S4.push({id:"3D",enabled:"none"},{id:"SwitchTo3D",enabled:"none"},{id:"SwitchTo2D",enabled:"none"}),i=DE.behaviors.length-1;i>0;i--)for(var sBId=DE.behaviors[i].id,ii=i-1;ii>=0;ii--)DE.behaviors[ii].id===sBId&&DE.behaviors.splice(ii,1);if(null!==ZC._n_(H=DE.behaviors))for(i=0,A6=H.length;i<A6;i++){var NJ=!1;for(j=0,JD=S4.length;j<JD;j++)S4[j].id===H[i].id&&(NJ=!0);NJ||S4.push(H[i])}var JM=DE["context-menu"],OT=DE["context-menu[mobile]"];for(i=0,A6=S4.length;i<A6;i++)null!==ZC._n_(S4[i]["function"])&&(null===ZC._n_(JM)&&(JM={}),null===ZC._n_(JM["custom-items"])&&(JM["custom-items"]=[]),JM["custom-items"].push(S4[i]));JM["custom-items"]&&JM["custom-items"].sort(function(e,t){return ZC._i_(e.order||"0")>ZC._i_(t.order||"0")}),s.N6=new DT(s);var A1Q=s.LT.split(/\s+|;|,/),E0,LN,UM,ABL,GW;for(i=0,A6=A1Q.length;i<A6;i++)if(s.B8.O1[A1Q[i]]){var A1K=s.B8.O1[A1Q[i]].root||{};A1K&&A1K.gui&&A1K.gui.contextMenu&&ZC._cp_(A1K.gui.contextMenu,s.N6.o)}if(s.B8.load(s.N6.o,ZC._[65]),JM&&s.N6.append(JM),ZC.mobile&&(s.B8.load(s.N6.o,ZC._[65]+"[mobile]"),OT&&s.N6.append(OT)),s.N6.VH=!0,s.N6.parse(),s.N6.AM||!s.A3X){if(!ZC.AK(s.K+"-menu-area")){var A5L=!!(s.DE&&s.DE["context-menu"]&&s.DE["context-menu"].button)&&ZC._n_(s.DE["context-menu"].button.visible);if(A5L||"classic"!==s.LT&&A5L){GW=new DT(s),s.B8.load(GW.o,ZC._[65]+".button"),JM&&ZC._n_(null!==(H=JM.button))&&GW.append(H),ZC.mobile&&(s.B8.load(GW.o,ZC._[65]+"[mobile].button"),OT&&null!==ZC._n_(H=OT.button)&&GW.append(H)),ZC._cp_(s.N6.o,JM);var A73="left"===JM.position||"classic"===s.LT;if(GW.K=s.K+"-menu-trigger",GW.IU=ZC.AK(s.K+"-tools"),GW.Z=GW.C7=ZC.AK(s.K+"-trigger-c"),GW.VH=!0,GW.parse(),GW.AM){GW.paint();var DB=ZC.A5("#"+s.G.K+"-top");if(""===GW.AT){var NB=new DW(s);if(NB.CY=!1,s.B8.load(NB.o,ZC._[65]+".gear"),JM&&null!==ZC._n_(H=JM.gear)&&NB.append(H),ZC.mobile&&(s.B8.load(NB.o,ZC._[65]+"[mobile].gear"),OT&&null!==ZC._n_(H=OT.gear)&&NB.append(H)),NB.K=s.K+"-menu-trigger-gear",NB.IU=ZC.AK(s.K+"-tools"),NB.Z=ZC.AK(s.K+"-trigger-c"),NB.iX=A73?GW.iX+GW.I/2:DB.width()-(GW.iX+GW.I/2),NB.iY=GW.iY+GW.F/2,NB.AI=ZC.CX(GW.I,GW.F)/4.5,NB.parse(),NB.paint(),"hamburger"!==NB.DP){var QS=new DW(s);QS.copy(GW),QS.K=s.K+"-menu-trigger-gear-hole",QS.IU=ZC.AK(s.K+"-tools"),QS.Z=ZC.AK(s.K+"-trigger-c"),QS.DP="circle",QS.AI=ZC.CX(GW.I,GW.F)/7,QS.parse(),QS.iX=A73?GW.iX+GW.I/2:DB.width()-(GW.iX+GW.I/2),QS.iY=GW.iY+GW.F/2,QS.paint()}}var _iX=A73?GW.iX:DB.width()-(GW.iX+GW.I);ZC.AK(s.K+"-map").innerHTML+=ZC.Q.GJ("rect")+'id="'+s.K+"-menu-area"+ZC._[30]+ZC._i_(_iX+ZC.MAPTX)+","+ZC._i_(GW.iY+ZC.MAPTX)+","+ZC._i_(_iX+GW.I+ZC.MAPTX)+","+ZC._i_(GW.iY+GW.F+ZC.MAPTX)+'" />'}}}E0=new DT(s),s.B8.load(E0.o,ZC._[65]+".item"),JM&&null!==ZC._n_(H=JM.item)&&E0.append(H),ZC.mobile&&(s.B8.load(E0.o,ZC._[65]+"[mobile].item"),OT&&null!==ZC._n_(H=OT.item)&&E0.append(H)),E0.VH=!0,E0.parse(),LN=new DT(s),LN.copy(E0),s.B8.load(LN.o,ZC._[65]+".item.hover-state"),JM&&null!==ZC._n_(JM.item)&&null!==ZC._n_(H=JM.item[ZC._[71]])&&LN.append(H),ZC.mobile&&(s.B8.load(LN.o,ZC._[65]+"[mobile].item.hover-state"),OT&&null!==ZC._n_(OT.item)&&null!==ZC._n_(H=OT.item[ZC._[71]])&&LN.append(H)),LN.VH=!0,LN.parse(),UM={},JM&&null!==ZC._n_(JM.separator)&&(UM=JM.separator);var JZ=[],EK=null;if(ABL=null!==ZC._n_(s.N6.o.empty)&&ZC._b_(s.N6.o.empty),ZC.mobile&&(EK=G7("PageScroll"),"none"!==EK.enabled&&(null===s.DE||null===ZC._n_(s.DE["page-scroll"])||s.DE["page-scroll"]?JZ.push(GY("disablepagescroll",EK.text)):JZ.push(GY("enablepagescroll",EK.text)),JZ.push(JH("pagescroll")))),EK=G7("Reload"),"none"!==EK.enabled&&(JZ.push(GY("reload",EK.text)),JZ.push(JH("reload"))),typeof ZC.A8R!==ZC._[31]){EK=G7("SaveAsImage"),"none"!==EK.enabled&&(EK=G7("SaveAsImagePNG"),"none"!==EK.enabled&&JZ.push(GY("viewaspng",EK.text?EK.text:null)),EK=G7("SaveAsImageJPG"),"none"!==EK.enabled&&JZ.push(GY("viewasjpg",EK.text?EK.text:null)),JZ.push(JH("export")));var TR=["DownloadPDF","DownloadSVG","DownloadCSV","DownloadXLS","ViewDataTable","ExportData","Print"],A6V=0,A2Q=0;for(i=0;i<TR.length;i++)"ViewDataTable"===TR[i]&&ZC.AK(s.K+"-data-table")&&(TR[i]="HideDataTable"),EK=G7(TR[i]),"none"!==EK.enabled&&(A6V++,A2Q=i,JZ.push(GY(TR[i].toLowerCase(),EK.text)));A6V>0&&JZ.push(JH(TR[A2Q].toLowerCase()))}if(-1!==LR){var GQ=!1;for(j=0,JD=s.AG[LR].BN.length;j<JD;j++)s.AG[LR].BN[j].GQ&&(GQ=!0);if(GQ&&typeof AAA!==ZC._[31]){var A1I=!1;EK=G7("ZoomIn"),"none"!==EK.enabled&&(JZ.push(GY("zoomin",EK.text)),A1I=!0),EK=G7("ZoomOut"),"none"!==EK.enabled&&(JZ.push(GY("zoomout",EK.text)),A1I=!0),EK=G7("ViewAll"),"none"!==EK.enabled&&(JZ.push(GY("viewall",EK.text)),A1I=!0),A1I&&JZ.push(JH("zoom"))}}var b2D=!1,b3D=!1;if(-1!==LR&&(-1!==ZC.AV(["line","area","bar","vbar","hbar","pie","mixed"],s.AG[LR].AF)&&(b2D=!0,s.XN="2d"),-1!==ZC.AV(["line3d","area3d","bar3d","vbar3d","hbar3d","pie3d","mixed3d"],s.AG[LR].AF)&&(b3D=!0,s.XN="3d")),(b2D||b3D)&&(EK=G7("3D"),"none"!==EK.enabled&&(EK=G7(b2D?"SwitchTo3D":"SwitchTo2D"),"none"!==EK.enabled&&(JZ.push(GY(b2D?"switchto3d":"switchto2d",EK.text)),JZ.push(JH("dimension"))))),-1!==LR){var C=s.AG[LR],AB3=!1,ABX=!1;for(j=0;j<C.BN.length;j++){var B=C.BN[j];0===B.BG.indexOf(ZC._[51])&&(AB3=!0),"log"===B.C6&&(ABX=!0)}AB3&&(EK=G7("Progression"),"none"!==EK.enabled&&(EK=G7(ABX?"LinScale":"LogScale"),"none"!==EK.enabled&&(JZ.push(GY(ABX?"switchtolin":"switchtolog",EK.text)),JZ.push(JH("progression"))))),(C.CW||C.HB)&&(EK=G7("Guide"),"none"!==EK.enabled&&(EK=G7(C.A1W?"HideGuide":"ShowGuide"),"none"!==EK.enabled&&(JZ.push(GY(C.A1W?"hideguide":"showguide",EK.text)),JZ.push(JH("guide")))))}var ABA=0,B6;if(typeof ZC.A9G!==ZC._[31]&&(EK=G7("ViewSource"),"none"!==EK.enabled&&(JZ.push(GY("viewsource",EK.text)),ABA++),EK=G7("BugReport"),"none"!==EK.enabled&&(JZ.push(GY("bugreport",EK.text)),ABA++)),ABA>0&&JZ.push(JH("tools")),EK=G7("FullScreen"),"none"===EK.enabled||s.M2||(s.QV?(EK=G7("ExitFullScreen"),JZ.push(GY("exitfullscreen",EK.text)),JZ.push(JH("exitfullscreen"))):(JZ.push(GY("fullscreen",EK.text)),JZ.push(JH("fullscreen")))),s.ID&&(EK=G7("GoBack"),"none"!==EK.enabled&&JZ.push(GY("goback",EK.text)),EK=G7("GoForward"),"none"!==EK.enabled&&JZ.push(GY("goforward",EK.text)),JZ.push(JH("history"))),JZ.length>0&&-1!==JZ[JZ.length-1].indexOf("zc-menu-sep")&&JZ.splice(JZ.length-1,1),s.A1Y={},-1!==LR)if(JM&&null!==ZC._n_(B6=JM["custom-items"]))for(JZ.length>0&&JZ.push(JH("custom")),i=0,A6=B6.length;i<A6;i++){var A47=!0;if(null!==ZC._n_(B6[i].enabled)&&("none"===B6[i].enabled?A47=!1:"all"!==B6[i].enabled&&(A47=!ev||eval(B6[i].enabled).call(s,zingchart.A14(ev,s),B6[i].id,ev))),A47){var AT,K=B6[i].id||"custom-"+i;"sep"===B6[i].id||"sep"===B6[i].type?JZ.push(JH(K,!0)):"header"===B6[i].type?(AT=B6[i].text||"Custom Menu "+i,JZ.push(A3W(K,AT,!0))):(AT=B6[i].text||"Custom Menu "+i,s.A1Y[K]={fn:B6[i]["function"]||"",url:B6[i].url||"",target:B6[i].target||""},JZ.push(GY(K,AT,!0)))}}s.TW||(JZ.push(JH("zingchart")),JZ.push(GY("xmiabt","About ZingChart"))),ZC.Q.I7({id:s.K+"-menu",p:document.body,cls:"zc-menu zc-style",top:null===ZC._n_(GW)?0:GW.iY+GW.F/2,left:null===ZC._n_(GW)?0:GW.iX+GW.I/2,borderBottom:s.N6.AU+"px solid "+s.N6.BW,background:(-1===s.N6.A0?"transparent":s.N6.A0)+" "+A2D(s.N6.D8),paddingTop:s.N6.FO,paddingRight:s.N6.FP,paddingBottom:s.N6.FT,paddingLeft:s.N6.EO,html:JZ.join("")}),s.D["menu-item-events"]||(s.AGE=function(e){var t,i=1!==e.target.nodeType?e.target.parentNode.id:e.target.id,a=i.substring(0,i.indexOf("-menu-item-")),n=zingchart.getLoader(a);ZC.mobile&&n.P8();var l=n.A29(n.T0[0],n.T0[1]);n.hideCM(),ZC.mobile&&zingchart.SP(e);var r=i.replace(n.K+"-menu-item-","");n.A37({graphid:l?l.K:null,menuitemid:r,ev:ZC.A5.BX(e)});var o=n.o["export-filename"]||n.o[ZC._[16]][0]["export-filename"]||"";switch(r){case"switchto2d":case"switchto3d":l&&n.A0O(l.K);break;case"enablepagescroll":s.DE=s.DE||{},s.DE["page-scroll"]=!0;break;case"disablepagescroll":s.DE=s.DE||{},s.DE["page-scroll"]=!1;break;case"showguide":n.W3(l.K,!0);break;case"hideguide":n.W3(l.K,!1);break;case"switchtolin":n.W9(l.K,"lin");break;case"switchtolog":n.W9(l.K,"log");break;case"reload":n.A4R();break;case"viewaspng":n.NN("png");break;case"viewasjpg":n.NN("jpeg");break;case"downloadpdf":n.NN("pdf",""===o?null:{fn:o+".pdf"});break;case"downloadsvg":n.NN("svg",""===o?null:{fn:o+".svg"});break;case"exportdata":zingchart.exec(n.K,"exportdata");break;case"downloadcsv":zingchart.exec(n.K,"downloadCSV",""===o?null:{fn:o});break;case"downloadxls":var C=n.o["export-sheetname"]||n.o[ZC._[16]][0]["export-sheetname"]||"ZingChart";(t=G7("DownloadXLS"))["custom-function"]?n.ZS({graphid:l?l.K:null,menuitemid:r,filename:o,sheetname:C,"function":t["custom-function"]}):zingchart.exec(n.K,"downloadXLS",""===o?null:{fn:o,sn:C});break;case"viewdatatable":case"hidedatatable":zingchart.exec(n.K,"viewDataTable",{menuid:r});break;case"print":n.A5Y();break;case"viewsource":n.A1B();break;case"bugreport":n.A2G();break;case"fullscreen":n.A1C();break;case"goback":zingchart.exec(n.K,"goback");break;case"goforward":zingchart.exec(n.K,"goforward");break;case"zoomin":l&&(n.HE.C=l,n.A4S({graphid:l.K,ev:e}));break;case"zoomout":l&&(n.HE.C=l,n.A3L({graphid:l.K,ev:e}));break;case"viewall":l&&(n.HE.C=l,n.A3M({graphid:l.K,ev:e}));break;case"xmiabt":n.A5Z();break;default:null!==ZC._n_(H=s.A1Y[r])&&(""!==H.fn?n.ZS({graphid:l?l.K:null,menuitemid:r,"function":H.fn}):""!==H.url&&l&&l.UC(e,H.url,H.target))}},s.AGC=function(){this.style.backgroundColor=LN.A0,this.style.color=LN.C1,this.style.borderLeft=this.style.borderRight=LN.AU+"px solid "+LN.BW},s.AGD=function(){this.style.backgroundColor=E0.A0,this.style.color=E0.C1,this.style.borderLeft=this.style.borderRight=E0.AU+"px solid "+E0.BW},s.U8=function(e){return e.preventDefault(),!1},ZC.A5("#"+s.K+"-menu").live(ZC._[47],s.U8),ZC.A5("."+s.K+"-menu-item").live(ZC._[47],s.U8),ZC.A5("."+s.K+"-menu-item").live("click touchend",s.AGE).live("mouseover",s.AGC).live("mouseout",s.AGD),s.D["menu-item-events"]=!0)}}function A2D(e){return""!==e&&e?"url("+(0===e.indexOf("zc.")?ZC.IMAGES[e]:e)+")":"none"}function JH(e){return'<div id="'+s.K+"-menu-sep-"+e+'" class="zc-menu-sep" style="background-color:'+E0.A0+";background-image:"+A2D(E0.D8)+" repeat-x 50% 0%;border-bottom-width:"+UM[ZC._[4]]+";border-bottom-color:"+UM["line-color"]+';"> </div>'}function GY(e,t,i){t=t||ZC.HN["menu-"+e];var a=typeof i!==ZC._[31]&&i?" zc-custom-menu-item "+s.K+"-custom-menu-item":"";return'<div class="'+s.K+"-menu-item"+a+'" style="width:'+s.N6.o.width+";color:"+E0.C1+";font-family:"+E0.GI+";font-size:"+E0.DF+"px;background-color:"+E0.A0+";background-image:"+A2D(E0.D8)+" repeat-x 50% 0%;border-top:"+(ZC.ie67?E0.AU:1)+"px solid "+E0.BW+";border-left:"+E0.AU+"px solid "+E0.BW+";border-right:"+E0.AU+"px solid "+E0.BW+";padding:"+E0.FO+"px "+E0.FP+"px "+E0.FT+"px "+E0.EO+"px;text-align:"+E0.OI+";"+(ZC.HN.rtl?"unicode-bidi:bidi-override;direction:rtl;":"")+'" id="'+s.K+"-menu-item-"+e+'">'+t+"</div>"}function A3W(e,t,i){var a=typeof i!==ZC._[31]&&i?" zc-custom-menu-header "+s.K+"-custom-menu-header":"";return'<div class="zc-menu-header '+s.K+"-menu-header"+a+'" style="color:'+E0.C1+";background-color:#666;border-top:"+(ZC.ie67?E0.AU:1)+"px solid "+E0.BW+";border-left:"+E0.AU+"px solid "+E0.BW+";border-right:"+E0.AU+"px solid "+E0.BW+";padding:"+E0.FO+"px "+E0.FP+"px "+E0.FT+"px "+E0.EO+"px;text-align:"+E0.OI+";"+(ZC.HN.rtl?"unicode-bidi:bidi-override;direction:rtl;":"")+'" id="'+s.K+"-menu-item-"+e+'">'+t+"</div>"}function G7(e){if(ABL)return{enabled:"none"};for(var t=0,i=S4.length;t<i;t++)if(S4[t].id===e)return S4[t];return{enabled:"all"}}}destroy(){this._unbind_(),zingchart.I5.length-=1,this.clear(),ZC.A5("#zc-fullscreen").remove(),document.body.style.overflow=""}MT(e,t){var i,a=this;if(null===ZC._n_(t)&&(t=!1),(t||a.A0Q)&&-1===ZC.AV(a.KV,ZC._[41]))if(a.A08=!0,t&&ZC.Q.I7({id:a.K+"-dummy",p:ZC.AK(a.K),wh:a.I+"/"+a.F}),a.D.hideprogresslogo||zingchart.DEV.SKIPPROGRESS)a.A08=!1;else{var n=ZC.A5("#"+a.K);if(!(typeof n.offset()===ZC._[31]||n.width()+n.height()===0||a.D.hideprogresslogo&&a.TW)){var l=n.offset().left+ZC._i_(n.css("border-left-width"))+(null===e?a.iX:e.iX),r=n.offset().top+ZC._i_(n.css("border-top-width"))+(null===e?a.iY:e.iY);(ZC.ipad||ZC.iphone)&&(l-=ZC.A5(window).scrollLeft(),r-=ZC.A5(window).scrollTop());var o=null===e?a.I:e.I,s=null===e?a.F:e.F,C=ZC._i_(.8*a.I),A=30,Z=new DT(a);a.B8.load(Z.o,"loader.gui.progress"),Z.append(a.D.progress),null!==a.DE&&null!==ZC._n_(i=a.DE.progress)&&Z.append(i),Z.parse();var c,p=ZC.HN["progress-wait-long"];if(ZC.ie67)c=Z.A0;else{var u=a.D.customprogresslogo||ZC.IMAGES["zc.logo"];c=Z.A0+" url("+u+") no-repeat center center"}(o<180||s<90)&&(c=Z.A0,A=-12),o<120&&o>60?(C=60,p=ZC.HN["progress-wait-short"]):o<60&&(C=20,p=ZC.HN["progress-wait-mini"]),p=a.D.customprogresstext||p;var h=ZC.Q.I7({id:a.K+"-progress",p:document.body,tl:r+"/"+l,width:o-2*Z.AU,height:s-2*Z.AU,position:"absolute",opacity:.8,border:Z.AU+"px solid "+Z.BW,background:c});ZC.Q.I7({id:a.K+"-progress-text",p:h,width:C,html:p,textAlign:"center",marginLeft:ZC._i_((o-C)/2),marginTop:ZC._i_(s/2+A),fontFamily:zingchart.FONTFAMILY,fontSize:zingchart.FONTSIZE,color:Z.C1,fontWeight:"bold"})}}}Y9(){var e=this;ZC.Q.ET(e.K+"-dummy"),e.D.hideprogresslogo||(e.A08=!1,ZC.Q.ET([e.K+"-progress-text",e.K+"-progress"]))}A0P(e,t){var i,a,n=this;i=null!==ZC._n_(a=e[ZC._[16]])?a:[e];var l=e.layout||"",r=ZC.AQ.A2X(l,i.length),o=i[t],s=n.I/r[1],C=n.F/r[0],A=Math.floor(t/r[1]),Z=t%r[1]*s,c=A*C;o&&(null!==ZC._n_(a=o.x)&&(Z=ZC._p_(a))<=1&&(Z=ZC._i_(Z*n.I)),null!==ZC._n_(a=o.y)&&(c=ZC._p_(a))<=1&&(c=ZC._i_(c*n.F)),null!==ZC._n_(a=o[ZC._[19]])&&(s=ZC._p_(a))<=1&&(s=ZC._i_(s*n.I)),null!==ZC._n_(a=o[ZC._[20]])&&(C=ZC._p_(a))<=1&&(C=ZC._i_(C*n.F)));var p=[0,0,0,0];o.plotarea&&(null!==ZC._n_(o.plotarea.margin)&&(p=new I2(null).m_(o.plotarea.margin,"all",s,C)));return{graph:{x:ZC._i_(Z),y:ZC._i_(c),width:ZC._i_(s),height:ZC._i_(C),index:t},plotarea:{x:p[3],y:p[0],width:s-p[1]-p[3],height:C-p[0]-p[2]}}}JW(){var e=this;null===ZC._n_(e.o[ZC._[16]])&&(e.o={graphset:[e.o]}),e.MT(),zingchart.A2A(e,e.A2H(),function(){e.o=ZC.AP.C0("dataparse",e,e.F5(),e.o),zingchart.YJ[e.K]&&e.PS(function(){e.parse(),e.paint()})})}render(){var e=this;!function(){function t(){""!==e.QU||null!==e.MV?e.A4U():e.load()}e.US||e.A4T(),e.MT(null,!0),zingchart.TIMEOUT>0?ZC.A07(t):t()}()}W8(e){var t=this;null===ZC._n_(t.A3Y)&&(t.A3Y=(new Date).getTime(),t.AB8=window.setTimeout(function(){null!==ZC._n_(t.A3Y)&&(t.A3Y=null,zingchart.ZM(e))},1500))}F5(){var e,t=this,i=0,a=0;return i=typeof t.T0[0]!==ZC._[31]?t.T0[0]-i:0,a=typeof t.T0[1]!==ZC._[31]?t.T0[1]-a:0,e=t.LT?t.LT:"light",{id:t.K,width:t.I,height:t.F,output:t.AB,x:i,y:a,targetid:t.T0[2],theme:e}}A83(e){e=e||{},null!==ZC._n_(e.resource)&&(this.QY[e.resource]=e.data||"[]",this.UU++)}A4S(){}A3L(){}A3M(){}PM(){}A62(e,t){var i=this;if(e=e||{},null!==ZC._n_(e[ZC._[3]])){var a=i.OQ(e[ZC._[3]]);null!==a&&a.clear()}else i.clear(null,null,t);KB&&KB.GUIDES&&(KB.GUIDES[i.K]=null)}A3R(e){e=e||ZC.HN["sync-wait"];var t=this;if(null===ZC.AK(t.K+"-blocker")){ZC.Q.I7({cls:"zc-abs zc-style zc-blocker",id:t.K+"-blocker",p:ZC.AK(t.K+"-top"),wh:t.I+"/"+t.F,opacity:.75}),ZC.Q.I7({cls:"zc-blocker-msg",id:t.K+"-blocker-t",p:ZC.AK(t.K+"-blocker"),html:e});var i=ZC.A5("#"+t.K+"-blocker-t");i.css("top",t.F/2-i.height()/2+"px").css("left",t.I/2-i.width()/2+"px")}}A13(){ZC.Q.ET(this.K+"-blocker")}A5Z(){var e=this;ZC.AP.C0("about_show",e,e.F5()),ZC.Q.I7({cls:"zc-abs",id:e.K+"-about-mask",p:ZC.AK(e.K+"-top"),wh:e.I+"/"+e.F,background:"#ccc",opacity:.75});var t=ZC.CX(320,e.I),i=ZC.CX(215,e.F),a=ZC.BQ(0,(e.I-t)/2),n=ZC.BQ(0,(e.F-i)/2),l=ZC.Q.I7({cls:"zc-about zc-style",id:e.K+"-about",p:ZC.AK(e.K+"-top"),tl:n+"/"+a,wh:t-(ZC.quirks?0:10)+"/"+(i-(ZC.quirks?0:10))}),r="";""!==e.SK&&(r="Custom Built for<br />"+e.SK),l.innerHTML='<div class="zc-about-1"><a href="http://www.zingchart.com" target="_blank">zingchart.com</a></div><div class="zc-about-2">©2009-'+(new Date).getFullYear()+'</div><div class="zc-about-3"><div id="'+e.K+'-about-close">'+ZC.HN["about-close"]+'</div></div><div class="zc-about-4" style="padding:'+(i-215)+'px 5px 5px 5px;"><div> <br />Build '+ZC.VERSION+" ["+e.AB+"]</div>"+r+"</div>",ZC.A5("#"+e.K+"-about-close").bind("click",function(){ZC.AP.C0("about_hide",e,e.F5()),ZC.Q.ET([e.K+"-about",e.K+"-about-mask"])})}NL(e,t){var i=this;if(ZC.AP.A8X("error",i))ZC.AP.C0("error",i,{id:i.K,error:e,section:t,json:i.D.json||i.D.rawsource});else{var a="";a+="object"==typeof e?e.name+":"+e.message+"\n\n":e+"\n\n",null!==ZC._n_(t)&&(a+="Section:"+t+"\n\n"),a+="JSON data:\n\n"+i.D.json+"\n\n",i.Y9(),null===ZC.AK(i.K+"-top")&&i.A82(),ZC.Q.I7({cls:"zc-abs zc-error zc-style",id:i.K+"-error",p:ZC.AK(i.K+"-top"),wh:i.I-(ZC.quirks?0:10)+"/"+(i.F-(ZC.quirks?0:10))}).innerHTML='<div class="zc-form-row-label zc-form-s0">'+ZC.HN["error-header"]+'</div><div class="zc-form-row-label zc-form-s1">'+ZC.HN["error-message"]+'</div><div class="zc-form-row-element"><textarea id="'+i.K+'-error-message" style="width:'+(i.I-35)+"px;height:"+(i.F-135)+'px;"></textarea></div><div class="zc-form-row-element zc-form-row-last"><input type="button" value="'+ZC.HN["error-close"]+'" id="'+i.K+'-error-close" /></div>',ZC.A5("#"+i.K+"-error-message").val(ZC.GX(a)),ZC.A5("#"+i.K+"-error-close").bind("click",function(){ZC.Q.ET(i.K+"-error")})}}A1B(){}A2G(){}A1C(){var e=this,t=document.createElement("div");t.id="zc-fullscreen",t.style.zIndex=zingchart.FSZINDEX,t.style.overflow="hidden";var i,a,n=document.body,l=!1;for(zingchart.FSID&&ZC.AK(zingchart.FSID)&&(l=!0,(n=ZC.AK(zingchart.FSID)).style.display="block"),n.appendChild(t),ZC.FSSTATUS={},i=0,a=e.AG.length;i<a;i++){var r=e.AG[i];if(null!==r.AY)for(var o=0,s=r.AY.A4.length;o<s;o++)ZC.FSSTATUS["g-"+r.L+"-p-"+o]=r.D["plot"+o+".visible"]}ZC.Q.ET(e.K+"-data-table");var C,A=JSON.parse(e.D.json),Z=A[ZC._[16]];for(i=Z.length-1;i>=0;i--)if(Z[i].generated)Z.splice(i,1);else{if(null!==ZC._n_(Z[i].shapes))for(C=Z[i].shapes.length-1;C>=0;C--)Z[i].shapes[C].generated&&Z[i].shapes.splice(C,1);if(null!==ZC._n_(Z[i][ZC._[10]]))for(C=Z[i][ZC._[10]].length-1;C>=0;C--)Z[i][ZC._[10]][C].generated&&Z[i][ZC._[10]].splice(C,1)}l||window.scroll(0,0),zingchart.render({id:"zc-fullscreen",output:e.AB,width:ZC.A5(l?n:window).width(),height:ZC.A5(l?n:window).height(),fullscreenmode:!0,theme:e.LT,modules:e.A1U,data:A,defaults:e.MV,defaultsurl:e.QU})}W9(e,t){var i,a,n,l=this,r=0,o=!1;for(i=0,a=l.AG.length;i<a;i++)if(e===l.AG[i].K){for(r=i,n=0;n<l.AG[i].AY.A4.length;n++)if(l.AG[i].AY.A4[n].IE){o=!0;break}var s;for(s=l.AG[r].AJ["3d"]||o?l.o[ZC._[16]][i]:l.AG[i].o,n=0;n<10;n++){var C=ZC._[51]+(0===n?"":"-"+n);null===ZC._n_(s[C])&&null===ZC._n_(s[ZC.EE(C)])&&null!==l.AG[i].BI(C)?s[C]={progression:t}:(null!==ZC._n_(s[C])&&(s[C].progression=t),null!==ZC._n_(s[ZC.EE(C)])&&(s[ZC.EE(C)].progression=t))}}delete l.D["graph"+r+".zoom"],l.AG[r].AJ["3d"]||o?l.JW():l.AG[r].JW(!0,!0)}W3(e,t){var i=this;if(i.D4){for(var a=0,n=i.AG.length;a<n;a++)e===i.AG[a].K&&(i.AG[a].A1W=t,i.AG[a].D["guide-on"]=t);if(t){var l=ZC.A5("#"+i.K+"-top"),r={_pageX_:ZC.DX[0]-l.offset().left,_pageY_:ZC.DX[1]-l.offset().top,type:ZC._[48],target:{id:i.K+"-img"}};i.D4.QP(r)}else KB.clearGuide(i.K)}}A0O(e){for(var t=this,i=["line","area","bar","vbar","hbar","pie","mixed"],a=0,n=t.AG.length;a<n;a++)if(e===t.AG[a].K){var l=t.o[ZC._[16]][a];if("mixed"===l.type)for(var r=0,o=l[ZC._[11]].length;r<o;r++){var s=l[ZC._[11]][r];s.type=s.type||"line","3d"===t.XN?s.type=s.type.replace("3d",""):-1!==ZC.AV(i,s.type)&&(s.type=s.type+"3d")}else"3d"===t.XN?l.type=l.type.replace("3d",""):-1!==ZC.AV(i,l.type)&&(l.type=l.type+"3d")}t.XN="3d"===t.XN?"2d":"3d",t.D.json=ZC.GX(JSON.stringify(t.o)),t.JW()}A4R(e){for(var t,i=this,a=0;a<i.AG.length;a++)delete i.D["g"+a+"-legend-collapsed"];if(e=e||{},ZC.AP.C0("reload",i,{id:i.K,graphid:e[ZC._[3]]}),null!==ZC._n_(t=e[ZC._[3]])){var n=i.C8(t);null!==n&&(i.MT(n),i.load(n.K))}else i.R2=[],i.O5=-1,i.MT(),i.clearGenerated(),i.load()}AAY(e){var t,i=this;if(e=e||{},null!==ZC._n_(t=e[ZC._[3]])){var a=i.C8(t);null!==a&&null!==ZC._n_(e.dataurl)&&(i.MT(a),i.load(t,e.dataurl))}else null!==ZC._n_(t=e.dataurl)&&(i.QT=t,i.MT(),i.load())}A5Y(){}NN(){}W2(){}A37(e){ZC._cp_(this.F5(),e),ZC.AP.C0("menu_item_click",this,e)}ZS(N){var s=this;try{var DZ=ZC.AP.AAX(N["function"]);N["function"]=DZ[0],N.arguments=DZ[1],ZC._cp_(s.F5(),N),eval(N["function"]).call(s,N)}catch(JC){return s.NL(JC,"JavaScript data loader"),!1}}C8(e){var t=this;return null!==ZC._n_(e)?t.OQ(e):t.AG.length>0?t.AG[0]:null}bind(e,t){zingchart.bind(this.K,e,t)}unbind(e,t){zingchart.unbind(this.K,e,t)}exec(e,t){return zingchart.exec(this.K,e,t)}gc(){for(var e=0,t=this.AG.length;e<t;e++)this.AG[e].gc()}}S0.prototype.ADA=function(e){var t,i,a,n,l,r=this;if((e=e||{}).action="pan",t=null!==ZC._n_(e[ZC._[3]])?r.OQ(e[ZC._[3]]):r.AG[0]){for(i=0,a=t.BT("k").length;i<a;i++){var o=t.BT("k")[i];if(n=1===o.L?"":"-"+o.L,o.GQ&&(null===ZC._n_(e["zoomx"+n])||e["zoomx"+n])){var s;e["zoomx"+n]=!0,l=o.I/ZC.CX(o.I,e.xdist||50);var C=o.W,A=o.A1;e["x-"]?(s=ZC.CX(o.W-o.DA,ZC._i_((o.A1-o.W)/l)),C=o.W-s,A=o.A1-s):e["x+"]&&(s=ZC.CX(o.DU-o.A1,ZC._i_((o.A1-o.W)/l)),C=o.W+s,A=o.A1+s),e["xmin"+n]=C,e["xmax"+n]=A}}for(i=0,a=t.BT("v").length;i<a;i++){var Z=t.BT("v")[i];if(n=1===Z.L?"":"-"+Z.L,Z.GQ&&(null===ZC._n_(e["zoomy"+n])||e["zoomy"+n])){var c;e["zoomy"+n]=!0,l=Z.F/ZC.CX(Z.F,e.ydist||50);var p=Z.B3,u=Z.BK;e["y-"]?(c=ZC.CX(Z.B3-Z.FX,ZC._i_((Z.BK-Z.B3)/l)),p=Z.B3-c,u=Z.BK-c):e["y+"]&&(c=ZC.CX(Z.H2-Z.BK,ZC._i_((Z.BK-Z.B3)/l)),p=Z.B3+c,u=Z.BK+c),Z.QE&&1===Z.E3&&(p=Math.round(p),u=Math.round(u)),e["ymin"+n]=p,e["ymax"+n]=u}}r.PM(e)}},S0.prototype.A4S=function(e){var t,i,a,n,l=this;if((e=e||{}).action="zoomin",t=null!==ZC._n_(e[ZC._[3]])?l.OQ(e[ZC._[3]]):l.AG[0]){for(i=0,a=t.BT("k").length;i<a;i++){var r=t.BT("k")[i];if(n=1===r.L?"":"-"+r.L,r.GQ&&(null===ZC._n_(e["zoomx"+n])||e["zoomx"+n])){e["zoomx"+n]=!0;var o=r.A1-r.W,s=r.W+(o<2?0:ZC._i_(o/4)),C=r.A1-(o<2?0:ZC._i_(o/4));s<C?(e["xmin"+n]=s,e["xmax"+n]=C):(e["xmin"+n]=r.W,e["xmax"+n]=r.A1)}}for(i=0,a=t.BT("v").length;i<a;i++){var A=t.BT("v")[i];if(n=1===A.L?"":"-"+A.L,A.GQ&&(null===ZC._n_(e["zoomy"+n])||e["zoomy"+n])){e["zoomy"+n]=!0;var Z=A.BK-A.B3,c=A.B3+ZC._f_(Z/4),p=A.BK-ZC._f_(Z/4);A.QE&&1===A.E3&&(c=Math.round(c),p=Math.round(p)),c<p&&(e["ymin"+n]=c,e["ymax"+n]=p)}}l.PM(e)}},S0.prototype.A3L=function(e){var t,i,a,n,l,r,o,s=this;if((e=e||{}).action="zoomout",e.previewscale=!0,t=null!==ZC._n_(e[ZC._[3]])?s.OQ(e[ZC._[3]]):s.AG[0]){for(i=0,a=t.BT("k").length;i<a;i++){var C=t.BT("k")[i];if(o=1===C.L?"":"-"+C.L,C.GQ&&(null===ZC._n_(e["zoomx"+o])||e["zoomx"+o]))if(e["zoomx"+o]=!0,t.BA&&t.BA.LV){var A=ZC._i_(t.BA.NX[C.BG][ZC._[5]].length*t.BA.IK/t.BA.AR.I),Z=ZC._i_(t.BA.NX[C.BG][ZC._[5]].length*t.BA.H8/t.BA.AR.I);n=ZC.BQ(2,Z-A),(l=ZC.BQ(0,A-ZC._i_(n/2)))<(r=ZC.CX(t.BA.NX[C.BG][ZC._[5]].length-1,Z+ZC._i_(n/2)))&&(e["xmin"+o]=l,e["xmax"+o]=r)}else n=ZC.BQ(2,C.A1-C.W),(l=ZC.BQ(C.DA,C.W-ZC._i_(n/2)))<(r=ZC.CX(C.DU,C.A1+ZC._i_(n/2)))&&(e["xmin"+o]=l,e["xmax"+o]=r)}for(i=0,a=t.BT("v").length;i<a;i++){var c=t.BT("v")[i];if(o=1===c.L?"":"-"+c.L,c.GQ&&(null===ZC._n_(e["zoomy"+o])||e["zoomy"+o])){e["zoomy"+o]=!0;var p=c.BK-c.B3,u=ZC.BQ(c.FX,c.B3-ZC._f_(p/2)),h=ZC.CX(c.H2,c.BK+ZC._f_(p/2));c.QE&&1===c.E3&&(Math.round(h)-Math.round(u)>1?(u=Math.round(u),h=Math.round(h)):(u=Math.floor(u),h=Math.ceil(h))),(u=ZC.BQ(c.FX,u))<(h=ZC.CX(c.H2,h))&&(e["ymin"+o]=u,e["ymax"+o]=h)}}s.PM(e)}},S0.prototype.A3M=function(e){var t,i,a,n,l,r=this;for(e=e||{},i=null!==ZC._n_(e[ZC._[3]])?r.OQ(e[ZC._[3]]):r.AG[0],e.action="viewall",a=0,n=i.BT("k").length;a<n;a++)if(e["zoomx"+(l=1===(t=i.BT("k")[a]).L?"":"-"+t.L)]=!0,e["xmin"+l]=null,e["xmax"+l]=null,i.o[t.BG]&&(i.o[t.BG]["zoom-to"]=null,i.o[t.BG]["zoom-to-values"]=null),i.BA&&i.BA.LV){var o=i.BA.NX[t.BG][ZC._[5]];e["kmin"+l+"-async"]=o[0],e["kmax"+l+"-async"]=o[o.length-1]}for(a=0,n=i.BT("v").length;a<n;a++)t=i.BT("v")[a],i.o[t.BG]&&(i.o[t.BG]["zoom-to"]=null,i.o[t.BG]["zoom-to-values"]=null),t.DM=null!==ZC._n_(t.D[ZC._[12]])&&-1!==t.D[ZC._[12]]?t.D[ZC._[12]]:null,l=1===t.L?"":"-"+t.L,t.KS=null,e["zoomy"+l]=!0,e["ymin"+l]=null,e["ymax"+l]=null;r.PM(e)},S0.prototype.PM=function(e){var t,i,a,n,l,r,o,s,C,A,Z,c,p,u,h,_=this;(e=e||{}).id=_.K;var d=null!==ZC._n_(e.zoom)&&!e.zoom;if(i=null!==ZC._n_(e[ZC._[3]])?_.OQ(e[ZC._[3]]):_.AG[0]){d&&(_.D["graph."+i.L+".ignore-zoom"]=!0),_.D["graph."+i.L+".ignore-zoom"]&&(d=!0),typeof e.scroll===ZC._[31]&&(ZC.Q.IT(ZC.AK(i.K+"-scroll-x-c"),i.A.AB,i.iX,i.iY,i.I,i.F),ZC.Q.IT(ZC.AK(i.K+"-scroll-y-c"),i.A.AB,i.iX,i.iY,i.I,i.F)),i.BA&&(i.BA.IO=!1);var f=_.D["graph"+i.L+".zoom"]||{};for(e.yzoomed=!1,(l=i.BT("v")[0])&&null!==ZC._n_(e.ymin)&&null!==ZC._n_(e.ymax)&&(e.ymin===l.FX&&e.ymax===l.H2||(e.yzoomed=!0)),s=0,C=i.BT("k").length;s<C;s++)if(A=1===(n=i.BT("k")[s]).L?"":"-"+n.L,null!==ZC._n_(e["kmin"+A])&&null!==ZC._n_(e["kmax"+A]))if(e["kmin"+A]===e["kmax"+A])delete e["kmin"+A],delete e["kmax"+A];else{for(var g=!1,B=!1,v=0,m=n.V.length;v<m&&(e["kmin"+A]<=n.V[v]&&!g&&(e["xmin"+A]=v,g=!0),e["kmax"+A]<=n.V[v]&&!B&&(e["xmax"+A]=v,B=!0),!g||!B);v++);g||(e["xmin"+A]=0),B||(e["xmax"+A]=n.V.length-1),e["zoomx"+A]=!0,e.xzoomed=!(g&&B)}else a=i.BA&&i.BA.LV&&e.previewscale?i.BA.NX[n.BG][ZC._[5]]:n.V,null!==ZC._n_(t=a[e["xmin"+A]])&&(e["kmin"+A]=t),null!==ZC._n_(t=a[e["xmax"+A]])&&(e["kmax"+A]=t),e.xzoomed=!(e["xmin"+A]===n.DA&&e["xmax"+A]===n.DU);"viewall"===e.action&&(e.xzoomed=!1,e.yzoomed=!1);var b=ZC.AP.C0("zoom",i.A,e,!0);if(e.async&&!d)return;if(i.BA&&i.BA.LV){a=i.BA.NX[n.BG][ZC._[5]];var D=ZC.YM(a),K=ZC.A2C(a);null!==ZC._n_(e.kmin)&&typeof e.kmin!==ZC._[31]?(r=ZC._i_(i.BA.AR.I*(e.kmin-D)/(K-D)),r=ZC.BQ(r,0)):r=0,null!==ZC._n_(e.kmax)&&typeof e.kmax!==ZC._[31]?(o=ZC._i_(i.BA.AR.I*(e.kmax-D)/(K-D)),o=ZC.CX(o,i.BA.AR.I)):o=i.BA.AR.I,d||i.BA.update(r,o,i.BA.LB,i.BA.HI)}if(b||typeof b===ZC._[31]){for(s=0,C=i.BT("k").length;s<C;s++)e["zoomx"+(A=1===(n=i.BT("k")[s]).L?"":"-"+n.L)]&&(d||n.zoomTo(e["xmin"+A],e["xmax"+A]),f["xmin"+A]=e["xmin"+A],f["xmax"+A]=e["xmax"+A]);for(s=0,C=i.BT("v").length;s<C;s++)e["zoomy"+(A=1===(l=i.BT("v")[s]).L?"":"-"+l.L)]&&null!==ZC._n_(l)&&(d||l.zoomTo(e["ymin"+A],e["ymax"+A]),f["ymin"+A]=e["ymin"+A],f["ymax"+A]=e["ymax"+A]);if(d&&(_.HE.C=i),_.HE.parse(),_.HE.A0S)for(_.D["graph"+i.L+".zoom"]=f,u=0,h=_.AG.length;u<h;u++)i.K!==_.AG[u].K&&_.AG[u].HE&&ZC._b_(_.AG[u].HE.o.shared)&&(_.D["graph"+_.AG[u].L+".zoom"]=f);if(i.BA&&!e.preview&&i.BA.update(e.xmin,e.xmax,e.ymin,e.ymax,!0),d)return;i.clear(!0);for(var E=i.BT("v"),F=0;F<E.length;F++)if((l=i.BT("v")[F])&&(l.aAutoFit[0]||l.aAutoFit[1])){for(var I=l.aAutoFit[0]?ZC.MAX:l.FX,x=l.aAutoFit[1]?-ZC.MAX:l.H2,y=0,X=i.AY.A4.length;y<X;y++)if(i.AY.A4[y].AM&&-1!==ZC.AV(i.AY.A4[y].BN,l.BG))if(n.EF){for(s=0,C=i.AY.A4[y].R.length;s<C;s++)if((p=i.AY.A4[y].R[s])&&ZC.DR(p.BU,n.V[n.W],n.V[n.A1]))for(l.aAutoFit[0]&&(I=ZC.CX(I,p.CQ)),l.aAutoFit[1]&&(x=ZC.BQ(x,p.CQ)),Z=0,c=p.DL.length;Z<c;Z++)l.aAutoFit[0]&&(I=ZC.CX(I,p.DL[Z])),l.aAutoFit[1]&&(x=ZC.BQ(x,p.DL[Z]))}else for(s=n.W;s<=n.A1;s++)if(p=i.AY.A4[y].R[s])for(l.aAutoFit[0]&&(I=ZC.CX(I,p.CQ)),l.aAutoFit[1]&&(x=ZC.BQ(x,p.CQ)),Z=0,c=p.DL.length;Z<c;Z++)l.aAutoFit[0]&&(I=ZC.CX(I,p.DL[Z])),l.aAutoFit[1]&&(x=ZC.BQ(x,p.DL[Z]));"log"===l.C6&&(I=ZC.G6(I,l.E4),x=ZC.G6(x,l.E4)),l.Q7(I,x,!0),l.GZ();var G=i.BT("v");for(s=0;s<G.length;s++)G[s].BG!==l.BG&&G[s].sMaster===l.BG&&(G[s].Q7(I,x,!0),G[s].GZ())}var Y=ZC._b_(e.zoomto);i.D["skip-preview"]=!0;var w=["top","right","bottom","left"];for(s=0;s<w.length;s++)(i.P.D["d-margin-"+w[s]]||i.D["plotarea.d-margin-"+w[s]]||ZC._b_(i.P.o["adjust-layout"]))&&(i.o.plotarea["margin-"+w[s]]=i.P.o["margin-"+w[s]]="dynamic",i.D["plotarea.d-margin"]=i.D["plotarea.d-margin-"+w[s]]=!0);i.setupDynamicPlotArea(),i.paint(!Y),_.HE.C=null,ZC.AP.C0("postzoom",i.A,e)}}},zingchart.AC3=function(e,t,i){var a,n,l,r,o,s,C,A,Z;document.getElementById("zc-fullscreen")&&(e="zc-fullscreen"),"string"==typeof(i=i||{})&&(i=JSON.parse(i));var c=zingchart.getLoader(e);if(null!==ZC._n_(i[ZC._[53]])&&(c.D[ZC._[53]]=ZC._b_(i[ZC._[53]])),c)switch(t){case"getzoom":if(r={},l=c.C8(i[ZC._[3]]))for(a=0,n=l.BN.length;a<n;a++){var p=l.BN[a];"k"===p.AF?r[p.BG]={xmin:p.W,xmax:p.A1,vmin:p.V[p.W],vmax:p.V[p.A1]}:r[p.BG]={ymin:p.B3,ymax:p.BK,vmin:p.V[p.W],vmax:p.V[p.A1]}}return r;case"pan":c.ADA(i);break;case"zoomin":c.A4S(i);break;case"zoomout":c.A3L(i);break;case"zoomto":if(l=c.C8(i[ZC._[3]]),null!==ZC._n_(i.xall)&&i.xall)for(a=0,n=l.BT("k").length;a<n;a++)i["xmin"+(C=1===(o=l.BT("k")[a]).L?"":"-"+o.L)]=i.xmin||null,i["xmax"+C]=i.xmax||null,i["kmin"+C]=i.kmin||null,i["kmax"+C]=i.kmax||null;for(a=0,n=l.BT("k").length;a<n;a++)null===i["xmin"+(C=1===(o=l.BT("k")[a]).L?"":"-"+o.L)]&&null===ZC._n_(i["xmax"+C])&&null===ZC._n_(i["kmin"+C])&&null===ZC._n_(i["kmax"+C])||(i["zoomx"+C]=!0),"log"===o.C6&&(null!==ZC._n_(i["xmin"+C])&&(i["xmin"+C]=ZC.G6(i["xmin"+C],o.E4)),null!==ZC._n_(i["xmax"+C])&&(i["xmax"+C]=ZC.G6(i["xmax"+C],o.E4)));if(null!==ZC._n_(i.yall)&&i.yall)for(a=0,n=l.BT("v").length;a<n;a++)i["ymin"+(C=1===(s=l.BT("v")[a]).L?"":"-"+s.L)]=i.ymin||null,i["ymax"+C]=i.ymax||null;for(a=0,n=l.BT("v").length;a<n;a++)C=1===(s=l.BT("v")[a]).L?"":"-"+s.L,null===ZC._n_(i["ymin"+C])&&null===ZC._n_(i["ymax"+C])||(i["zoomy"+C]=!0),"log"===s.C6&&(null!==ZC._n_(i["ymin"+C])&&(i["ymin"+C]=ZC.G6(i["ymin"+C],s.E4)),null!==ZC._n_(i["ymax"+C])&&(i["ymax"+C]=ZC.G6(i["ymax"+C],s.E4)));c.PM(i);break;case"zoomtovalues":if(l=c.C8(i[ZC._[3]]),null!==ZC._n_(i.xall)&&i.xall)for(a=0,n=l.BT("k").length;a<n;a++)i["xmin"+(C=1===(o=l.BT("k")[a]).L?"":"-"+o.L)]=i.xmin||null,i["xmax"+C]=i.xmax||null;for(a=0,n=l.BT("k").length;a<n;a++)C=1===(o=l.BT("k")[a]).L?"":"-"+o.L,null===ZC._n_(i["xmin"+C])&&null===ZC._n_(i["xmax"+C])||(l.BA&&l.BA.LV?(i.previewscale=!0,i["kmin"+C+"-async"]=i["xmin"+C],i["xmin"+C]=ZC.AAP(l.BA.NX[o.BG][ZC._[5]],i["xmin"+C])):-1!==(A=ZC.AV(o.V,i["xmin"+C]))&&(i["xmin"+C]=A),l.BA&&l.BA.LV?(i.previewscale=!0,i["kmax"+C+"-async"]=i["xmax"+C],i["xmax"+C]=ZC.AAP(l.BA.NX[o.BG][ZC._[5]],i["xmax"+C])):-1!==(Z=ZC.AV(o.V,i["xmax"+C]))&&(i["xmax"+C]=Z),i["zoomx"+C]=!0);if(null!==ZC._n_(i.yall)&&i.yall)for(a=0,n=l.BT("v").length;a<n;a++)i["ymin"+(C=1===(s=l.BT("v")[a]).L?"":"-"+s.L)]=i.ymin||null,i["ymax"+C]=i.ymax||null;for(a=0,n=l.BT("v").length;a<n;a++)C=1===(s=l.BT("v")[a]).L?"":"-"+s.L,null===ZC._n_(i["ymin"+C])&&null===ZC._n_(i["ymax"+C])||(i["zoomy"+C]=!0);c.PM(i);break;case"viewall":c.A3M(i)}return null},ZC.A8R={},ZC.AP.A4K=function(e,t,i,a){"jpg"===(a=a||"png")&&(a="jpeg");var n=document.createElement("canvas");n.width=t,n.height=i,n.style.width=t+"px",n.style.height=i+"px";var l,r=n.getContext("2d");e instanceof Array||(e=[e]);for(var o=0,s=e.length;o<s;o++)if(-1===e[o].className.indexOf("zc-no-print")){var C=!1;try{e[o].toDataURL("image/"+a)}catch(Z){C=!0}if(!C)if(l=e[o].getAttribute("data-clip")){var A=l.split(",");r.drawImage(e[o],ZC.BQ(0,A[0]),ZC.BQ(0,A[1]),ZC.CX(A[2],e[o].width),ZC.CX(A[3],e[o].height),ZC.BQ(0,A[0]),ZC.BQ(0,A[1]),ZC.CX(A[2],e[o].width),ZC.CX(A[3],e[o].height))}else r.drawImage(e[o],0,0,e[o].width,e[o].height,0,0,t,i)}return n.toDataURL("image/"+a)},ZC.AP.AC0=function(e,t,i,a,n){null===ZC._n_(n)&&(n=!1);var l=ZC.AP.A4K(e,t,i,a);if(n){var r=document.createElement("img");return r.src=l,r}l=l.replace("image/"+a,"image/octet-stream"),document.location.href=l},S0.prototype.A5Y=function(){var e=this,t=[];if(!e.A87){e.A87=!0;var i=document.body.childNodes,a=ZC.A5(document.body).css(ZC._[0]),n=ZC.A5(document.body).css("background-image");ZC.A5(document.body).css(ZC._[0],"#fff").css("background-image","none");for(var l=0,r=i.length;l<r;l++)1===i[l].nodeType&&(t[l]=i[l].style.display,i[l].style.display="none");document.body.appendChild(ZC.AK(e.K+"-wrapper")),window.setTimeout(function(){window.print(),window.setTimeout(function(){ZC.A5(document.body).css(ZC._[0],a).css("background-image",n),ZC.AK(e.K+"-wrapper")&&ZC.AK(e.K).appendChild(ZC.AK(e.K+"-wrapper"));for(var l=0,r=i.length;l<r;l++)1===i[l].nodeType&&(i[l].style.display=t[l]);e.A87=!1},1e3)},50)}},S0.prototype.NN=function(e,t,i,a){var n=this;if(t=t||{},typeof i===ZC._[31]&&(i=!1),!ZC.AK(n.K+"-viewimage")){e=e||"png";var l=t.download,r=t.fn||"";ZC.Q.IT(ZC.AK(n.K+"-guide-c"),n.AB,0,0,n.I,n.F),ZC.A5(".zc-guide-label").remove();var o,s,C=("canvas"===n.AB||zingchart.AJAXEXPORT||zingchart.DEV.LOCALSVGEXPORT)&&"pdf"!==e&&"svg"!==e;if(ZC.mobile||!C||i||l||(o=ZC.Q.I7({cls:"zc-abs zc-viewimage zc-style",id:n.K+"-viewimage",zidx:5,p:ZC.AK(n.K+"-top"),wh:n.I+"/"+n.F}),s=ZC.Q.I7({id:n.K+"-viewimage-close",p:o,zidx:10,tl:"5/"+(n.I-15),html:ZC.HN["viewimage-close"]}),ZC.A5(s).css("cursor","pointer").css("left",n.I-15-ZC.A5(s).width()+"px"),ZC.A5(s).bind("click",function(){ZC.A5(o).remove()})),ZC.mobile&&(l=!0),!zingchart.DEV.LOCALSVGEXPORT||l||"svg"!==n.AB||"png"!==e&&"jpeg"!==e){var A;if("canvas"===n.AB&&"pdf"!==e&&"svg"!==e){var Z,c,p=document.createElement("canvas");for(p.width=n.I,p.height=n.F,Z=0,c=n.AG.length;Z<c;Z++)n.AG[Z].BC&&n.AG[Z].BC.EC(p);var u=[];ZC.A5("#"+n.K+" canvas").each(function(){-1===ZC.AV([n.K+"-guide-c",n.K+"-trigger-c"],this.id)&&u.push(this)}),u.push(p),u.push(n.createPreviewMasks());var h=ZC.AP.AC0(u,n.I,n.F,e,!0);h.id=n.K+"-print-"+e,o.appendChild(h)}else if(i||n.A3R(ZC.HN["export-wait"]),"vml"===n.AB||"canvas"===n.AB&&("pdf"===e||"svg"===e)){var _=document.createElement("div"),d="zc-export-svg-"+n.K;_.id=d,_.style.display="none",document.body.appendChild(_),zingchart.render({id:d,output:"!svg",imggen:!0,width:n.I,height:n.F,data:n.D.json,defaults:n.MV,theme:n.LT,hideprogresslogo:!0,events:{load:function(){window.setTimeout(function(){var e=zingchart.getLoader(d);if(e.D["dynamic-objects"])var t=window.setInterval(function(){"ready"===e.D["dynamic-objects"]&&(window.clearInterval(t),e.togglePreviewMasks(!0),A=ZC.AK(d+"-top").innerHTML,e.togglePreviewMasks(!1),zingchart.exec(d,"destroy",{skipfs:!0}),f())},100);else e.togglePreviewMasks(!0),A=ZC.AK(d+"-top").innerHTML,e.togglePreviewMasks(!1),zingchart.exec(d,"destroy",{skipfs:!0}),f()},100)}}})}else"svg"===n.AB&&(n.togglePreviewMasks(!0),A=ZC.AK(n.K+"-top").innerHTML,f(),n.togglePreviewMasks(!1));C&&!i&&(ZC.A5(s).css("cursor","pointer").css("left",n.I-15-ZC.A5(s).width()+"px"),ZC.A5(s).bind("click",function(){ZC.A5(o).remove()}))}else zingchart.exec(n.K,"getimagedata",{callback:function(l){if(-1!==l){var r=document.createElement("img");r.id=n.K+"-print-"+e,r.src=l,o.appendChild(r)}else ZC.Q.ET(n.K+"-viewimage"),zingchart.DEV.LOCALSVGEXPORT=0,n.NN(e,t,i,a)}})}function f(){var s,C,Z={svg:A=(A=A.replace(/<foreignObject(.+?)<\/foreignObject>/g,"")).replace(' xmlns="http://www.w3.org/2000/svg"',""),w:n.I,h:n.F,t:e,fn:r};if(ZC._cp_(t,Z),zingchart.AJAXEXPORT&&"pdf"!==e&&"svg"!==e&&!l){var c="base64=1&";for(C in Z)c+=C+"="+encodeURIComponent(Z[C])+"&";ZC.A5.ajax({type:"post",url:zingchart.EXPORTURL,data:c,success:function(t,l,r){if(n.A13(),i)a&&a(t,l,r);else{var s=document.createElement("img");s.src=t,s.id=n.K+"-print-"+e,o.appendChild(s)}}})}else{ZC.AK(n.K+"-export")&&ZC.Q.ET(n.K+"-export");var p=ZC.Q.I7({cls:"zc-abs zc-style",id:n.K+"-export",p:ZC.AK(n.K+"-top"),display:"none"}),u=(s=null!==ZC._n_(Z.uid)&&null!==ZC._n_(Z.page)?ZC.Q.ABQ(ZC.AK(n.K+"-export")):document).createElement("FORM");for(C in u.action=zingchart.EXPORTURL,u.method="post",u.enctype="multipart/form-data",null!==ZC._n_(Z.uid)&&null!==ZC._n_(Z.page)?s.body.appendChild(u):p.appendChild(u),u.style.display="none",Z){var h=s.createElement("INPUT");h.type="hidden",h.name=C,h.value=Z[C],u.appendChild(h)}u.submit(),u=null,null!==ZC._n_(Z.uid)&&null!==ZC._n_(Z.page)&&window.setTimeout(function(){ZC.A5("#"+n.K+"-export").remove()},6e4),window.setTimeout(function(){n.A13()},1e3)}}},S0.prototype.W2=function(e){var t=this;e=e||"png";var i,a,n=[],l=document.createElement("canvas");for(l.width=t.I,l.height=t.F,i=0,a=t.AG.length;i<a;i++)t.AG[i].BC&&t.AG[i].BC.EC(l);return ZC.A5("#"+t.K+" canvas").each(function(){-1===ZC.AV([t.K+"-guide-c",t.K+"-tooltip-c"],this.id)&&n.push(this)}),n.push(l),n.push(t.createPreviewMasks()),ZC.AP.A4K(n,t.I,t.F,e)},ZC.AP.downloadFile=function(e,t,i){if(!ZC.ie678){i=i||"application/octet-stream";var a=document.createElement("a");navigator.msSaveBlob?navigator.msSaveBlob(new Blob([e],{type:i}),t):URL&&"download"in a?(a.href=URL.createObjectURL(new Blob([e],{type:i})),a.setAttribute("download",t),document.body.appendChild(a),a.click(),document.body.removeChild(a)):location.href="data:application/octet-stream,"+encodeURIComponent(e)}},ZC.AP.YE=function(e,t){var i,a,n,l,r,o,s,C,A,Z,c,p,u,h=[],_="",d=[];for("xls"===(t=t||"csv")&&h.push('<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">',"<head>","\x3c!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>[ZC]</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--\x3e",'<style>td{border:none;font-family:Calibri,sans-serif} .number{mso-number-format:"0.00";} .text{mso-number-format:"@";}</style>',"<meta name=ProgId content=Excel.Sheet>","<meta charset=UTF-8>","</head>","<body>"),i=0,a=e.AG.length;i<a;i++){var f=e.AG[i],g=f.AY.A4;e.D.fastlinedata&&(g=e.D.fastlinedata);var B={},v=[],m=f.BT("k")[0];"html"!==t&&"xls"!==t&&"raw"!==t||(h.push("<table>"),f.J4&&""!==f.J4.AT&&(d.push([f.J4.AT]),h.push("<caption>"+f.J4.AT+"</caption>")),h.push("<thead>"),h.push("<tr>")),c=[],u=[];var b="Category",D=!1;for(m&&(m.FI&&"date"===m.FI.o.type&&(b="Date",D=!0),m.M&&m.M.AT&&(b=m.M.AT.replace(/\"|\'/g,""))),"csv"===t?c.push('"'+b+'"'):"raw"===t?u.push(b):"html"!==t&&"xls"!==t||c.push("<th>"+b+"</th>"),n=0,l=g.length;n<l;n++)(null===ZC._n_(g[n].o["export"])||ZC._b_(g[n].o["export"]))&&(p=(p=null!==ZC._n_(g[n].AT)?g[n].AT+"":"Series "+n).replace(/\"|\'/g,""),"csv"===t?c.push('"'+p+'"'):"raw"===t?u.push(p):"html"!==t&&"xls"!==t||c.push("<th"+("xls"===t?' scope="col" class="text"':"")+">"+p+"</th>"),v.push(""));if("csv"===t?h.push(c.join(",")):"raw"===t?d.push(u):"html"!==t&&"xls"!==t||h.push(c.join("")),"html"!==t&&"xls"!==t||(h.push("</tr>"),h.push("</thead>"),h.push("<tbody>")),m){for(s=0,C=m.V.length;s<C;s++)B[s+""]={hasData:!1,nodes:[].concat(v)};for(n=0,l=g.length;n<l;n++)if(null===ZC._n_(g[n].o["export"])||ZC._b_(g[n].o["export"]))for(r=0,o=g[n].R.length;r<o;r++){var K=g[n].R[r];K&&(B[s=K.BU?""+K.BU:""+r]=B[s]||{hasData:!0,nodes:[].concat(v)},B[s].nodes[n]=K.AD,B[s].hasData=!0)}var E=[];for(s in B)B[s].hasData&&E.push([s,B[s].nodes]);E.sort(function(e,t){return e[0]-t[0]});var F=null;for(A=0,Z=E.length;A<Z;A++){if("html"!==t&&"xls"!==t||h.push("<tr>"),"pie"!==f.AF&&"pie3d"!==f.AF&&"nestedpie"!==f.AF||m.V[E[A][0]]&&(E[A][0]=m.V[E[A][0]]),m.BY[E[A][0]]&&(E[A][0]=m.BY[E[A][0]]),m.V[E[A][0]]&&(E[A][0]=m.V[E[A][0]]),(F=f.A.F5()).row=A,F.col=0,F[ZC._[9]]=E[A][0],E[A][0]=ZC.AP.C0("dataexport",f.A,F,E[A][0],null),ZC._n_(E[A][1]))for(var I=0;I<E[A][1].length;I++)(F=f.A.F5()).row=A,F.col=I+1,F[ZC._[9]]=E[A][1][I],E[A][1][I]=ZC.AP.C0("dataexport",f.A,F,E[A][1][I],null);D&&(E[A][0]=ZC.AP.YY(E[A][0],"%Y-%mm-%dd %H:%i:%s",f.UX,f.NI),"csv"===t&&(E[A][0]='"'+E[A][0]+'"')),"csv"===t?h.push([].concat(E[A][0]).concat(E[A][1]).join(",")):"raw"===t?d.push([].concat(E[A][0]).concat(E[A][1])):"html"!==t&&"xls"!==t||h.push("<td"+("xls"===t?' scope="row"':"")+">"+[].concat(E[A][0]).concat(E[A][1]).join("</td><td>")+"</td>"),"html"!==t&&"xls"!==t||h.push("</tr>")}}"html"!==t&&"xls"!==t||(h.push("</tbody>"),h.push("</table>")),a>1&&i<a-1&&("csv"===t?h.push("","",""):"html"!==t&&"xls"!==t||h.push("<p> </p>"))}return"xls"===t&&h.push("</body>","</html>"),"raw"===t?d:("csv"===t?_=h.join("\n"):"html"!==t&&"xls"!==t||(_=h.join("")),_)},zingchart.ABS=function(e,t,i){var a,n,l,r,o,s="",C="";function A(e){ZC.A5.ajax({type:"post",url:n,data:e,success:function(e,t,i){l&&l(e,t,i)}})}document.getElementById("zc-fullscreen")&&(e="zc-fullscreen"),"string"==typeof(i=i||{})&&(i=JSON.parse(i));var Z=zingchart.getLoader(e);if(Z)switch(t){case"getimagedata":if(r="png",null!==ZC._n_(a=i.format)&&(r=a),null!==ZC._n_(a=i.filetype)&&(r=a),"jpg"===r&&(r="jpeg"),zingchart.DEV.LOCALSVGEXPORT&&"svg"===Z.AB&&("png"===r||"jpeg"===r)){Z.togglePreviewMasks(!0);var c=ZC.AK(Z.K+"-svg").parentNode.innerHTML,p=c.indexOf(">"),u=c.indexOf("</svg>");c=(c='<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" version="1.1" width="'+Z.I+'" height="'+Z.F+'">[CSS]'+c.substring(p+1,u+6)).replace(/<foreignObject(.+?)<\/foreignObject>/g,"");var h=function(){var e,t=window.URL||window.webkitURL||window;e=t.createObjectURL&&window.Blob?t.createObjectURL(new window.Blob([c],{type:"image/svg+xml;charset-utf-16"})):"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(c),Z.togglePreviewMasks(!1);var a=new window.Image;a.crossOrigin="anonymous",a.src=e,a.onload=function(){var t=document.createElement("canvas"),n=t.getContext("2d");if(t.width=a.width,t.height=a.height,n.drawImage(a,0,0,t.width,t.height),i.callback&&"function"==typeof i.callback)try{i.callback(t.toDataURL("image/"+r))}catch(l){i.callback(e)}}},_=0,d=function(){var e=new XMLHttpRequest;e.open("get",Z.A2R[_]),e.responseType="text",e.onloadend=function(e){var t=e.target.response,i=t.match(/https?:\/\/[^ \)]+/g),a=0;i.forEach(function(e){var n=new XMLHttpRequest;n.open("get",e),n.responseType="blob",n.onloadend=function(n){var l=new FileReader;l.onloadend=function(n){t=t.replace(new RegExp(e),n.target.result),++a===i.length&&(c=c.replace("[CSS]","[CSS]<style><![CDATA["+t+"]]></style>"),++_===Z.A2R.length?(c=c.replace("[CSS]",""),h()):d())},l.readAsDataURL(n.target.response)},n.send()})},e.send()};Z.A2R.length?d():(c=c.replace("[CSS]",""),h())}if("canvas"!==Z.AB&&!zingchart.AJAXEXPORT)return-1;if("canvas"===Z.AB){if(!i.callback||"function"!=typeof i.callback)return Z.W2(r);try{i.callback(Z.W2(r))}catch(v){i.callback(-1)}}else Z.NN(r,{},!0,i.callback);break;case"exportimage":case"saveasimage":if(!i.download&&"canvas"!==Z.AB&&!zingchart.AJAXEXPORT)return-1;if(r="png",o={},null!==ZC._n_(a=i.options)&&(o=a),null!==ZC._n_(a=i.uid)&&(o.uid=a),null!==ZC._n_(a=i.page)&&(o.page=a),null!==ZC._n_(a=i.format)&&(r=a),null!==ZC._n_(a=i.filetype)&&(r=a),null!==ZC._n_(a=i.filename)&&(s=a),n=Z.D.exportimageurl||"",null!==ZC._n_(a=i.url)&&(n=a),l=null,null!==ZC._n_(a=i.callback)&&(l=a),"jpg"===r&&(r="jpeg"),i.download&&("canvas"!==Z.AB||"pdf"===r))return o.download=!0,""!==s&&(o.fn=s),void Z.NN(r,o);if(""!==n){if("canvas"===Z.AB)return A(Z.W2(r));Z.NN(r,o,!0,function(e){return A(e)})}break;case"exportdata":if(n=Z.D.exportdataurl||"",null!==ZC._n_(a=i.url)&&(n=a),C=ZC.AP.YE(Z,"csv"),""===n)return C;l=null,null!==ZC._n_(a=i.callback)&&(l=a),ZC.A5.ajax({type:"post",url:n,data:C,success:function(e,t,i){l&&l(e,t,i)}});break;case"downloadCSV":C=ZC.AP.YE(Z,"csv"),ZC.AP.downloadFile(C,(i.fn||Z.K)+".csv","text/csv;encoding:utf-8");break;case"downloadXLS":C=ZC.AP.YE(Z,"xls");var f=i.sn||"ZingChart";C=C.replace("<x:Name>[ZC]</x:Name>","<x:Name>"+f+"</x:Name>"),ZC.AP.downloadFile(C,(i.fn||Z.K)+".xls","application/vnd.ms-excel;encoding:utf-8");break;case"downloadRAW":var g=ZC.AP.YE(Z,"raw");if(!i.callback||"function"!=typeof i.callback)return g;try{i.callback(g,i.fn||Z.K)}catch(v){i.callback(-1)}break;case"viewDataTable":if("viewdatatable"===i.menuid)if(C=ZC.AP.YE(Z,"html"),ZC.AK(Z.K+"-data-table"))ZC.AK(Z.K+"-data-table").innerHTML=C;else{var B=ZC.Q.I7({id:Z.K+"-data-table",cls:"zc-data-table "+Z.K+"-data-table"});ZC.Q.PV(B,{width:Z.I+"px","max-height":"400px",overflow:"auto"}),B.innerHTML=C,ZC.AK(Z.K).parentNode.insertBefore(B,ZC.AK(Z.K).nextSibling)}else"hidedatatable"===i.menuid&&ZC.Q.ET(Z.K+"-data-table")}return null},ZC.A9G={},ZC.AP.XF=function(e){for(var t,i="",a=!1,n=!1,l=0,r="",o=0,s=(e=e.replace(/\t|\r|\n/g,"")).length;o<s;o++)switch(t=e.substr(o,1)){case'"':a=!a,i+=e.substr(o,1),r=t;break;case"{":i+=e.substr(o,1),a||(i+="\n"+new Array(l+1).join(" "),l++,r=t);break;case"}":a||(i+="\n"+new Array(l).join(" "),l--,r=t),i+=e.substr(o,1);break;case"[":var C=e.indexOf("]",o),A=e.indexOf("}",o);A=-1===A?999999:A;var Z=e.indexOf("{",o);Z=-1===Z?999999:Z,C<ZC.CX(A,Z)?(n=!0,i+=e.substr(o,1)):(n=!1,i+=e.substr(o,1),i+="\n"+new Array(l+1).join(" "),l++),r=t;break;case"]":n&&(n=!1),"}"===r&&(l--,i+="\n"+new Array(l).join(" ")),i+=e.substr(o,1),r=t;break;case" ":a&&(i+=e.substr(o,1),r=t);break;case",":i+=e.substr(o,1),a||n||(i+="\n"+new Array(l).join(" ")),r=t;break;default:i+=e.substr(o,1),r=t}return i},S0.prototype.A1B=function(){var e=this;ZC.AP.C0("source_show",e,e.F5());var t=ZC.Q.I7({cls:"zc-abs zc-viewsource zc-style",id:e.K+"-viewsource",p:ZC.AK(e.K+"-top"),wh:e.I-(ZC.quirks?0:10)+"/"+(e.F-(ZC.quirks?0:10))});t.style.zIndex=99,t.innerHTML=ZC._h_('<div class="zc-form-row-label zc-form-s1"> <a href="javascript:void(0)" id="'+e.K+'-viewsource-originalsource" class="zc-tab-active">'+ZC.HN["viewsource-originalsource"]+'</a> <a href="javascript:void(0)" id="'+e.K+'-viewsource-jsonsource" class="zc-tab-inactive">'+ZC.HN["viewsource-jsonsource"]+'</a></div><div class="zc-form-row-element"><textarea id="'+e.K+'-viewsource-json" style="width:'+(e.I-35)+"px;height:"+(e.F-95)+'px;"></textarea></div><div class="zc-form-row-element zc-form-row-last" id="'+e.K+'-viewsource-actions"><input type="button" value="'+ZC.HN["viewsource-close"]+'" id="'+e.K+'-viewsource-close" /></div>'),zingchart.EDITSOURCE&&(ZC.AK(e.K+"-viewsource-actions").innerHTML+='<input type="button" value="'+ZC.HN["viewsource-apply"]+'" id="'+e.K+'-viewsource-apply" />'),ZC.A5("#"+e.K+"-viewsource-json").val(ZC.AP.XF(e.D.source)),ZC.A5("#"+e.K+"-viewsource-jsonsource").bind("click",function(){ZC.AK(e.K+"-viewsource-jsonsource").className="zc-tab-active",ZC.AK(e.K+"-viewsource-originalsource").className="zc-tab-inactive",ZC.A5("#"+e.K+"-viewsource-json").val(ZC.AP.XF(e.D.json))}),ZC.A5("#"+e.K+"-viewsource-originalsource").bind("click",function(){ZC.AK(e.K+"-viewsource-jsonsource").className="zc-tab-inactive",ZC.AK(e.K+"-viewsource-originalsource").className="zc-tab-active",ZC.A5("#"+e.K+"-viewsource-json").val(ZC.AP.XF(e.D.source))}),ZC.A5("#"+e.K+"-viewsource-close").bind("click",function(){ZC.AP.C0("source_hide",e,e.F5()),ZC.Q.ET(e.K+"-viewsource")}),zingchart.EDITSOURCE&&ZC.A5("#"+e.K+"-viewsource-apply").bind("click",function(){ZC.AP.C0("source_hide",e,e.F5());var t=ZC.A5("#"+e.K+"-viewsource-json").val();ZC.Q.ET(e.K+"-viewsource"),zingchart.exec(e.K,"setdata",{data:t})})},S0.prototype.A2G=function(){var e=this;if(e.I<300||e.F<300)window.open("http://www.zingchart.com/support/","","");else{var t=ZC.Q.I7({cls:"zc-abs zc-bugreport zc-style",id:e.K+"-bugreport",p:ZC.AK(e.K+"-top"),wh:e.I-(ZC.quirks?0:10)+"/"+(e.F-(ZC.quirks?0:10))}),i="";i+='<div class="zc-form-row-label zc-form-s0">'+ZC.HN["bugreport-header"]+'</div><div class="zc-form-row-label"><input type="checkbox" id="'+e.K+'-chkdata" checked="checked" /><label for="'+e.K+'-chkdata">'+ZC.HN["bugreport-senddata"]+"</label>",ZC.canvas&&(i+=' <input type="checkbox" id="'+e.K+'-chkcapture" checked="checked" /><label for="'+e.K+'-chkcapture">'+ZC.HN["bugreport-sendcapture"]+"</label>"),i+='</div><div class="zc-form-row-label zc-form-s1">'+ZC.HN["bugreport-yourcomment"]+'</div><div class="zc-form-row-element"><textarea id="'+e.K+'-bugreport-comment" style="width:'+(e.I-35)+"px;height:"+((e.F-300)/2-10)+'px;"></textarea></div><div class="zc-form-row-label zc-form-s1">'+ZC.HN["bugreport-jsondata"]+'</div><div class="zc-form-row-element"><textarea id="'+e.K+'-bugreport-json" style="width:'+(e.I-35)+"px;height:"+(e.F-210)/2+'px;"></textarea></div><div class="zc-form-row-label zc-form-s1">'+ZC.HN["bugreport-youremail"]+(e.I>=510?" <span>("+ZC.HN["bugreport-infoemail"]+")</span>":"")+'</div><div class="zc-form-row-element"><input type="text" id="'+e.K+'-bugreport-email" style="width:'+(e.I-35)+'px;" /></div><div class="zc-form-row-element zc-form-row-last"><input type="button" value="'+ZC.HN["bugreport-submit"]+'" id="'+e.K+'-bugreport-submit" /><input type="button" value="'+ZC.HN["bugreport-cancel"]+'" id="'+e.K+'-bugreport-cancel" /></div>',t.innerHTML=ZC._h_(i),ZC.A5("#"+e.K+"-bugreport-json").val("PARSED\n----------\n"+ZC.AP.XF(e.D.json)+"\n\nORIGINAL\n----------\n"+ZC.AP.XF(e.D.source)),ZC.A5("#"+e.K+"-bugreport-cancel").bind("click",function(){ZC.Q.ET(e.K+"-bugreport")}),ZC.A5("#"+e.K+"-bugreport-submit").bind("click",function(){var t=ZC.A5("#"+e.K+"-bugreport-email"),i="",a=function(){var a=("Parsed:"+e.D.json+" Original:"+e.D.source).replace(/\r|\n|\t|(\s{2,})/g,""),n="",l=[];ZC.A5("#"+e.K+"-chkcapture").attr("checked")&&l.push("****IMAGE:",i),ZC.A5("#"+e.K+"-chkdata").attr("checked")&&l.push("****JSON:",a),l.push("****COMMENT:",ZC.A5("#"+e.K+"-bugreport-comment").val(),"****EMAIL:",t.val(),"****VERSION:",ZC.VERSION,"****WIDTH:",e.I,"****HEIGHT:",e.F,"****URL:",window.location.href,"****UA:",navigator.userAgent,"****RENDER:",e.AB.toUpperCase(),"****RESOLUTION:",screen.width+"x"+screen.height);for(var r=0;r<l.length-1;r+=2)n+=l[r]+encodeURIComponent(l[r+1]);n+="****END";var o=ZC.Q.ABQ(ZC.AK(e.K+"-bugreport")),s=o.createElement("FORM");s.action=document.location.protocol+"//www.zingchart.com/support/submitreportH5.php",s.method="post",o.body.appendChild(s);var C=o.createElement("INPUT");C.type="text",C.name="data",C.value=n,s.appendChild(C),s.submit(),window.setTimeout(function(){alert(ZC.HN["bugreport-confirm"]),ZC.Q.ET(e.K+"-bugreport")},1e3)};"canvas"===e.AB?(i=zingchart.exec(e.K,"getimagedata",{}),a()):i=zingchart.exec(e.K,"getimagedata",{callback:function(e){i=e,a()}})})}},S0.prototype.paintHistory=function(){var e,t,i,a=this;ZC.Q.ET([a.K+"-history-path",a.K+"-history-back-path",a.K+"-history-forw-path",a.K+"-history-gradient",a.K+"-history-back-gradient",a.K+"-history-forw-gradient"]),null!==ZC._n_(e=a.o.history)&&(a.ID=new DT(a),a.B8.load(a.ID.o,"loader.gui.history"),a.ID.append(e),a.ID.parse(),a.ID.A5G=!0,t=new DW(a),a.B8.load(t.o,"loader.gui.history.item"),t.append(e.item),t.parse(),i=new DW(a),a.B8.load(i.o,"loader.gui.history.item-off"),i.append(e.item),i.append(e["item-off"]),i.parse());var n="";if(a.ID){a.ID.K=a.K+"-history",a.ID.Z=a.ID.C7=ZC.AK(a.K+"-static-c"),a.ID.paint();var l=a.ID.iX+a.ID.EO,r=a.ID.iY+a.ID.FO,o=a.ID.I-a.ID.EO-a.ID.FP,s=a.ID.F-a.ID.FO-a.ID.FT,C=new DW(a);C.K=a.K+"-history-back",C.copy(t),C.CY=!1,0===a.O5&&C.copy(i),C.E=[[l,r+s/2],[l+o/3,r],[l+o/3,r+s],[l,r+s/2]],C.IU=ZC.AK(a.A.K+"-text"),C.Z=C.C7=ZC.AK(a.K+"-static-c"),C.parse(),C.paint(),a.O5>0&&(n+=ZC.Q.GJ("rect",!0)+'class="'+a.K+'-history-area zc-history-area" id="'+a.K+"-history-back-area"+ZC._[30],n+=ZC._i_(l+ZC.MAPTX)+","+ZC._i_(r+ZC.MAPTX)+","+ZC._i_(l+o/3+ZC.MAPTX)+","+ZC._i_(r+s+ZC.MAPTX),n+='" />');var A=new DW(a);A.K=a.K+"-history-forw",A.copy(t),A.CY=!1,a.O5!==a.R2.length-1&&0!==a.R2.length||A.copy(i),A.E=[[l+o,r+s/2],[l+2*o/3,r],[l+2*o/3,r+s],[l+o,r+s/2]],A.IU=ZC.AK(a.A.K+"-text"),A.Z=A.C7=ZC.AK(a.K+"-static-c"),A.parse(),A.paint(),a.O5<a.R2.length-1&&(n+=ZC.Q.GJ("rect",!0)+'class="'+a.K+'-history-area zc-history-area" id="'+a.K+"-history-forw-area"+ZC._[30],n+=ZC._i_(l+2*o/3+ZC.MAPTX)+","+ZC._i_(r+ZC.MAPTX)+","+ZC._i_(l+o+ZC.MAPTX)+","+ZC._i_(r+s+ZC.MAPTX),n+='" />'),""!==n&&(ZC.AK(a.K+"-map").innerHTML+=n),a.A1A=function(e){e.target.id===a.K+"-history-back-area"?zingchart.exec(a.K,"goback"):e.target.id===a.K+"-history-forw-area"&&zingchart.exec(a.K,"goforward")},ZC.A5("."+a.K+"-history-area").live("click",a.A1A)}},ZC.AO={A51:1,E1:0,E2:0,FU:40},ZC.DH={A3V:function(e,t){var i,a;return t.A9%180==0?(i=new CB(e,-e.I/2,t.iY-e.iY-e.F/4,0),a=new CB(e,e.I/2,t.iY-e.iY-e.F/4,0)):(i=new CB(e,t.iX-e.iX-e.I/4,-e.F/2,0),a=new CB(e,t.iX-e.iX-e.I/4,e.F/2,0)),ZC.UE(Math.atan((a.EB[1]-i.EB[1])/(a.EB[0]-i.EB[0])))+(t.A9%180==0?0:t.A9%360==90?90:-90)},D9:function(e,t,i,a,n,l,r,o,s){s=s||"z";var C,A,Z,c,p=new A03(e,t);switch(s){case"x":C=new CB(t,i,n,r),A=new CB(t,a,n,r),Z=new CB(t,a,l,o),c=new CB(t,i,l,o);break;case"y":C=new CB(t,i,n,r),A=new CB(t,i,l,r),Z=new CB(t,a,l,o),c=new CB(t,a,n,o);break;case"z":C=new CB(t,i,n,r),A=new CB(t,i,n,o),Z=new CB(t,a,l,o),c=new CB(t,a,l,r)}return p.add(C),p.add(A),p.add(Z),p.add(c),p},D6:function(e,t,i,a){typeof a===ZC._[31]&&(a=!1);var n,l=null,r=null;i instanceof Array?l=i:(l=i.points,r=i.mathpoints);for(var o=new A03(e,t),s=0,C=l.length;s<C;s++)null!==ZC._n_(l[s])&&(a?o.add(l[s],r?r[s]:null):o.add(new CB(t,l[s][0],l[s][1],l[s][2]),r?new CB(t,r[s][0],r[s][1],r[s][2]):null));return(n=e.o["z-modifier"])&&(o.MJ=[ZC._i_(n),ZC._i_(n),ZC._i_(n)]),o}};class CB extends ZCClass{constructor(e,t,i,a){super(),this.parse(e,t,i,a)}parse(e,t,i,a){var n=this;n.C=e,n.iX=t,n.iY=i,a-=n.C.EY.depth/2,n.iZ=a,n.EJ=0,n.EM=0,n.AB0=0,n.EB=[];var l=n.C.EY.angle,r=n.C.EY.zoom;if(n.C.EY.true3d){var o={x:t,y:i,z:a},s={x:0,y:0,z:0},C={x:n.C.EY[ZC._[27]],y:n.C.EY[ZC._[28]],z:n.C.EY[ZC._[29]]},A=2*Math.PI/360,Z=Math.sin(C.x*A),c=Math.sin(C.y*A),p=Math.sin(C.z*A),u=Math.cos(C.x*A),h=Math.cos(C.y*A),_=Math.cos(C.z*A);n.EJ=h*(p*(o.y-s.y)+_*(o.x-s.x))-c*(o.z-s.z),n.EM=Z*(h*(o.z-s.z)+c*(p*(o.y-s.y)+_*(o.x-s.x)))+u*(_*(o.y-s.y)-p*(o.x-s.x)),n.AB0=u*(h*(o.z-s.z)+c*(p*(o.y-s.y)+_*(o.x-s.x)))-Z*(_*(o.y-s.y)-p*(o.x-s.x)),n.EB[0]=ZC.AO.E1+ZC.AO.A51/(ZC.AO.A51+n.AB0)*n.EJ*r,n.EB[1]=ZC.AO.E2+ZC.AO.A51/(ZC.AO.A51+n.AB0)*n.EM*r}else n.EB[0]=ZC.AO.E1+t+a*ZC.EH(l)*r,n.EB[1]=ZC.AO.E2+i-a*ZC.EN(l)*r}}zingchart.getZCPoint3D=function(e,t,i,a){return new CB(e,t,i,a)};class A03 extends ZCClass{constructor(e,t){super();var i=this;i.C=t,i.O=e,i.K="",i.KD=!1,i.MJ=[1,1,1],i.FY=-1,i.E=[],i.PI=[],i.SV=-9999,i.A09=-9999,i.A53=9999,i.A52=9999,i.A9V=9999,i.A3Z=0,i.A2K=0,i.AC6=0}add(e,t){this.E.push(e),this.PI.push(t||e)}ABP(){for(var e=this,t=e.PI.length,i=0;i<t;i++){var a=e.PI[i];e.SV=ZC.BQ(e.SV,a.iZ),ZC._b_(e.C.EY.true3d)?(e.A53=ZC.CX(e.A53,a.iZ),e.A09=ZC.BQ(e.A09,a.AB0),e.A2K+=a.iY):(e.A52=ZC.CX(e.A52,a.iX),e.A9V=ZC.CX(e.A9V,a.iY),e.A3Z+=a.iX,e.A2K+=a.iY,e.AC6+=a.iZ)}e.A3Z/=t,e.A2K/=t,e.AC6/=t}F1(){for(var e=this,t="",i=0,a=e.E.length;i<a;i++)t+=ZC._i_(e.E[i].EB[0]+ZC.MAPTX)+","+ZC._i_(e.E[i].EB[1]+ZC.MAPTX)+",";return t=t.substring(0,t.length-1)}}class VP extends ZCClass{constructor(){super();var e=this;e.A54=[],e.ADH={},e.X3=[],e.SS={}}clear(){var e=this;e.A54=[],e.X3=[],e.SS={}}add(e){this.A54.push(e)}sortFaces(e,t){return 1===zingchart.V3D?e[0][0]>t[0][0]?-1:e[0][0]<t[0][0]?1:e[0][1]>t[0][1]?1:e[0][1]<t[0][1]?-1:e[0][2]>t[0][2]?-1:e[0][2]<t[0][2]?1:e[0][3]>t[0][3]?-1:e[0][3]<t[0][3]?1:0:2===zingchart.V3D?-1!==e[0][3]||-1!==t[0][3]?e[0][3]>t[0][3]?1:e[0][3]<t[0][3]?-1:0:e[0][0]>t[0][0]?-1:e[0][0]<t[0][0]?1:e[0][1]>t[0][1]?1:e[0][1]<t[0][1]?-1:e[0][2]>t[0][2]?1:e[0][2]<t[0][2]?-1:0:3===zingchart.V3D?e[0]>t[0]?-1:e[0]<t[0]?1:0:void 0}}class A95 extends ZCClass{constructor(e){super(e);var t=this;t.G=e,t.VX=!1,t.P3=250,t.GK=0,t.IM=0,t.H1=20,t.B9="",t.CE=[],t.A7=null}onmouseout(){var e=this;ZC.mobile||(e.VX?(null!==ZC._n_(e.C3)&&window.clearInterval(e.C3),e.C3=window.setInterval(function(){var t=e.G.K,i=ZC.A5("#"+t+("svg"===e.G.AB?"-top":"-main")),a=ZC.DX[0]-i.offset().left,n=ZC.DX[1]-i.offset().top;ZC.DR(a,e.GK,e.GK+e.A7.I)&&ZC.DR(n,e.IM,e.IM+e.A7.F)||(null!==ZC._n_(e.C3)&&window.clearInterval(e.C3),e.hide())},e.P3)):e.hide())}clear(){var e=this;ZC.Q.IT(ZC.AK(e.G.K+"-tooltip-c"),e.G.AB,e.iX,e.iY,e.I,e.F,e.K)}hide(){if(!ZC.TTLOCK){var e=this.G.K;ZC.Q.ET([e+"-tooltip-text",e+"-tooltip",e+"-tooltip-text-float"]),"svg"===this.G.AB&&ZC.A5("clipPath").each(function(){-1!==this.id.indexOf("-hover_image-clip")&&ZC.Q.ET(this.id)})}}show(e){var t,i=this;null!==ZC._n_(i.C3)&&window.clearInterval(i.C3);var a=i.G.K;if(0!==ZC.A5("#"+a+"-tooltip-c").length&&i.A7){var n=ZC._tx_(i.G.K),l=ZC.Q.MM(e),r=ZC.A5("#"+a+("svg"===i.G.AB?"-top":"-main")),o=l[0]-r.offset().left-i.A7.I*n[0]/2,s=l[1]-r.offset().top-i.A7.F*n[1],C=o,A=1+2*i.A7.JX;if(null!==ZC._n_(i.A7.o.x)&&((o=ZC.IR(i.A7.o.x,!0))>0&&o<1&&(o=ZC._i_(i.G.I*o)),i.A7.o.fixed&&(o-=i.A7.I/2)),null!==ZC._n_(i.A7.o.y)&&((s=ZC.IR(i.A7.o.y,!0))>0&&s<1&&(s=ZC._i_(i.G.F*s)),i.A7.o.fixed&&(s-=i.A7.F/2)),o+=ZC._i_(i.A7.D["offset-x"]),s+=ZC._i_(i.A7.D["offset-y"]),"svg"===i.G.AB||!i.A7.o[ZC._[7]]){var Z=0,c=!1,p=i.A7.ER;o/n[0]<A&&(Z=C/n[0]-A-i.A7.HA/2,o=A),o/n[0]+i.A7.I>i.G.I-A&&(Z=C/n[0]+i.A7.I-i.G.I+A+i.A7.HA/2,o=(i.G.I-A-i.A7.I)*n[0]),s/n[1]<A&&(i.CE.node||!i.A7.o[ZC._[7]]?(s=A+ZC._i_(i.A7.D["offset-y"]),s=i.CE.node?s<A?A:s:s<A?l[1]-r.offset().top-ZC._i_(i.A7.D["offset-y"]):s,p="top",c=!0):s=A+(l[1]-r.offset().top-ZC._i_(i.A7.D["offset-y"]))),s/n[1]+i.A7.F>i.G.F-A&&(s=i.G.F-A-i.A7.F,!i.CE.node&&i.A7.o[ZC._[7]]||(p="top",c=!0)),0===Z&&!c||"xy"===i.A7.o[ZC._[7]]||i.A7.Z&&(i.clear(),c&&(i.A7.ER=p),Z=ZC.CX(Z,i.A7.I/2-i.A7.HA/2),Z=48*(Z=ZC.BQ(Z,-i.A7.I/2+i.A7.HA/2))/(i.A7.I/2-i.A7.HA/2),i.A7.EU=Z,i.A7.AM&&i.A7.paint())}switch(i.GK=o,i.IM=s,i.G.AB){case"svg":null===ZC._n_(i.A7.o.x)&&null===ZC._n_(i.A7.o.y)&&ZC.AK(a+"-tooltip").setAttribute("transform","translate("+o/n[0]+","+s/n[1]+")"),i.A7.D["html-mode"]&&ZC.Q.PV(ZC.AK(a+"-tooltip-text-float"),{left:(""===i.B9?o/n[0]:i.A7.iX)+i.A7.EO+"px",top:(""===i.B9?s/n[1]:i.A7.iY)+i.A7.FO+"px"});break;case"vml":null===ZC._n_(i.A7.o.x)&&null===ZC._n_(i.A7.o.y)&&ZC.Q.PV(ZC.AK(a+"-tooltip"),{left:o+"px",top:s+"px"});break;case"canvas":null!==ZC._n_(i.CE.x)&&(o=i.CE.x),null!==ZC._n_(i.CE.y)&&(s=i.CE.y);var u=i.A7.D["html-mode"]?0:20;switch(i.A7.X9){case"tl":break;case"tr":o-=i.A7.I;break;case"bl":s-=i.A7.F;break;case"br":o-=i.A7.I,s-=i.A7.F;break;case"c":o-=i.A7.I/2,s-=i.A7.F/2;break;case"t":o-=i.A7.I/2;break;case"r":o-=i.A7.I,s-=i.A7.F/2;break;case"b":o-=i.A7.I/2,s-=i.A7.F;break;case"l":s-=i.A7.F/2}ZC.Q.PV(ZC.AK(a+"-tooltip-c"),{left:o/n[0]-u+"px",top:s/n[1]-u+"px"}),null!==(t=ZC.AK(a+"-tooltip-text"))&&(t.style.display="none",ZC.Q.PV(t,{width:i.A7.I+"px",height:i.A7.F+"px",left:o/n[0]+"px",top:s/n[1]+"px"}),t.style.display="block")}}}onmousemove(e){this.show(e)}onmouseover(e,t){var i,a,n,l,r,o,s,C=this,A=C.G.K,Z=e.targetid||e.target.id,c=Z.replace(/--([a-zA-Z0-9]+)/,"").replace("-gshape-area","-area").replace("-area-path","").replace("-path","").replace("-marker-circle","").replace("-marker","").split("-").reverse(),p=Z.split("--"),u=!1,h=!1,_=!1;if("node"===c[1]&&"plot"===c[3]&&"plotset"===c[4]&&(u=!0),ZC.Q.ET([A+"-tooltip-text",A+"-tooltip",A+"-tooltip-text-float"]),u){if(!(l=C.G.OQ(c[5])))return;if(r=l.AY.A4[c[2]],o=r.FM(c[0]),"xy"===l.AJ.layout&&o.S1(),!o)return;ZC.A5("#"+A+"-graph-"+c[5]+"-plot-"+c[2]+"-bg-hover-c").show()}else"legend"===c[2]&&0===c[1].indexOf("item")&&(h=!0),0!==c[2].indexOf("scale")||0!==c[1].indexOf("item")&&0!==c[1].indexOf("marker")||(_=!0),l=C.G.OQ(c[3]);if(ZC.AK(A+"-tooltip")||(ZC.Q.K5({id:A+"-tooltip",p:ZC.AK(A+"-main"),cls:"zc-abs zc-tooltip",wh:C.G.I+"/"+C.G.F,overflow:"hidden"},C.G.AB),ZC.Q.HK({id:A+"-tooltip-c",p:ZC.AK(A+"-tooltip"),cls:"zc-abs",tl:"-999/-999",width:140,height:60},C.G.AB)),C.A7=zingchart.pool.getInstance("DT",C,A+"-tooltip-text"),C.A7.ON="tooltip",C.A7.A=C.G,l&&l.A7&&C.A7.copy(l.A7),u)C.A7.append(r.A7.o),l.CG["p"+r.L]&&l.CG["p"+r.L]["n"+o.L]&&C.A7.append(r.A7.o[ZC._[73]]),2===p.length&&C.A7.append(r.A2Y(p[1]));else{var d=!1;if(h&&l.BC&&null!==ZC._n_(l.BC.o.tooltip)&&(C.A7.o.text="",C.A7.append(l.BC.o.tooltip),d=!0),_){C.A7.append({"background-color":"#fff","border-width":1,"border-color":"#999"});var f=l.BI(c[2].replace(/\_/g,"-"));if(f&&null!==ZC._n_(f.o.tooltip)&&(C.A7.o.text="",C.A7.append(f.o.tooltip),d=!0),0===c[1].indexOf("item_"))f&&(-1!==c[1].indexOf("_title")&&f.o.label&&f.o.label.tooltip?(C.A7.o.text="",C.A7.append(f.o.label.tooltip),d=!0):f.o.item&&f.o.item.tooltip&&(C.A7.o.text="",C.A7.append(f.o.item.tooltip),d=!0));else if(0===c[1].indexOf("marker_")){var g=ZC._i_(c[1].replace("marker_",""));f.QG[g]&&f.QG[g].o.label&&f.QG[g].o.label.tooltip&&(C.A7.o.text="",C.A7.append(f.QG[g].o.label.tooltip),d=!0)}}if("shape"===c[2])if(C.A7.append({"background-color":"#fff","border-width":1,"border-color":"#999"}),e.target.getAttribute("data-lowlevel"))C.A7.append({text:e.target.getAttribute("data-tooltip-text")}),d=!0;else for(a=0,n=l.FJ.length;a<n;a++)if(null!==ZC._n_(l.FJ[a])){var B=l.FJ[a]instanceof R9?l.FJ[a].BF:l.FJ[a];l.K+"-shape-"+c[1]===l.FJ[a].K&&null!==ZC._n_(i=B.o.tooltip)&&(C.A7.append(i),C.A7.o.fixed&&(C.A7.o.x=B.iX,C.A7.o.y=B.iY),d=!0)}if("label"===c[2])for(C.A7.append({"background-color":"#fff","border-width":1,"border-color":"#999"}),a=0,n=l.BY.length;a<n;a++)l.K+"-label-"+c[1]===l.BY[a].K&&null!==ZC._n_(i=l.BY[a].o.tooltip)&&(C.A7.append(i),C.A7.o.fixed&&(C.A7.o.x=l.BY[a].iX+l.BY[a].I/2,C.A7.o.y=l.BY[a].iY+l.BY[a].F/2),d=!0);if("xy"===c[2]&&(C.A7.append({"background-color":"#fff","border-width":1,"border-color":"#999"}),d=!0),!d)return}if(t&&C.A7.append(t),C.VX=!1,C.P3=250,null!==ZC._n_(i=C.A7.o.sticky)&&(C.VX=ZC._b_(i)),null!==ZC._n_(i=C.A7.o.timeout)&&(C.P3=ZC._i_(i)),null!==ZC._n_(i=C.A7.o[ZC._[7]])?C.B9=i:C.B9="",null!==ZC._n_(i=C.A7.o.distance)&&(C.H1=ZC._i_(i)),C.A7.iX=0,C.A7.iY=0,C.A7.Z=C.A7.C7=ZC.AK(A+"-tooltip-c"),u){s=o.KC(),o.GN(s),null!==ZC._n_(s["line-color"])?C.A7.A0=C.A7.AE=ZC.AP.JQ(s["line-color"]):C.A7.A0=C.A7.AE=ZC.AP.JQ(s[ZC._[0]]),C.A7.BW=s[ZC._[61]],C.A7.C1=s.color,null!==ZC._n_(r.o.rules)?(C.A0H||(C.A0H=new IL(r.A),C.A0H.D["quick-parse"]=!0),C.A0H.append(r.o),C.A0H.parse(),C.A0H.J2=function(e){return o.J2(e)},C.A0H.DC()&&C.A0H.parse(),C.A7.AT=C.A0H.K4):C.A7.AT=r.K4;var v=ZC.AP.OF(C.A7.o,r.o);C.A7.F0=function(e){return o.F0(e,v)},C.A7.D.plotidx=o.A.L,C.A7.D.nodeidx=o.L}else if(h){for(r=l.AY.A4[c[1].replace("item_","")],C.A7.append(r.o["legend-tooltip"]),o=null,a=0,n=r.R.length;a<n;a++)if(null!==r.R[a]){o=r.FM(a);break}if(o){if("-1"===(s=o.KC())[ZC._[0]])return;C.A7.A0=C.A7.AE=ZC.AP.JQ(s[ZC._[0]]),C.A7.C1=s.color}else C.A7.A0=C.A7.AE=ZC.AP.JQ(r.BP[1]),C.A7.C1=r.BP[0];C.A7.AT=r.Z1,C.A7.F0=function(e){return e=(e=e.replace(/%plot-description/g,r.Z1)).replace(/%plot-text|%t/g,r.AT)}}else if(_){if(0===c[1].indexOf("item_")){var m=c[1].replace("item_","").split("_"),b=1===m.length?ZC._i_(m[0]):ZC._i_(m[1]);C.A7.F0=function(e){e=e||"%scale-value";var t=f.BY[b]||f.V[b];if(f.FI){var i={"transform-date":!0,"transform-date-format":f.FI.o.all||f.FI.o.text||"",utc:l.UX,timezone:l.NI};t=ZC.AP.G3(t,i,C.A,!!f.FI&&f.FI)}for(var a in"number"==typeof t&&f.IX&&null!==ZC._n_(f.IX[t])&&(t=f.IX[t]),e=(e=e.replace(/%text|%item-text|%scale-value|%v/g,t)).replace(/%tooltip-text/g,f.A5J[b]||""),f.o)f.o.hasOwnProperty(a)&&"data-"===a.substring(0,5)&&(e=e.replace("%"+a,f.o[a][b]||"","g"));return e}}}else C.A7.F0=function(e){return e};if(null===ZC._n_(C.A7.o["text-alpha"])&&(C.A7.o["text-alpha"]=1),C.A7.parse(),!u&&"canvas"!==C.G.AB&&C.A7.o.fixed&&(C.A7.iX=C.A7.iX-C.A7.I/2+C.A7.BL,C.A7.iY=C.A7.iY-C.A7.F/2+C.A7.BH),C.A7.AM){var D,K;if(C.A7.HX&&(u&&C.A7.GN(C.A7,C.A7,null,o.LL(e,!1)),C.A7.parse()),C.A7.D["html-mode"]=!1,null!==ZC._n_(i=C.A7.o["html-mode"])&&(C.A7.D["html-mode"]=ZC._b_(i)),u&&(C.A7.J2=function(e){return o.J2(e)},C.A7.DC()&&C.A7.parse()),"canvas"!==C.G.AB&&"vml"!==C.G.AB||0===C.A7.A9)D=C.A7.I+C.A7.JX,K=C.A7.F+C.A7.JX,D+=40,K+=40,C.A7.D["offset-x"]=C.A7.BL,C.A7.D["offset-y"]=C.A7.BH;else{var E=1.25*ZC.BQ(C.A7.I,C.A7.F)+C.A7.JX;D=E,K=E,C.A7.iX+=(E-C.A7.I)/2,C.A7.iY+=(E-C.A7.F)/2,C.A7.D["offset-x"]=-(E-C.A7.I)/2+C.A7.BL,C.A7.D["offset-y"]=-(E-C.A7.F)/2+C.A7.BH}if(ZC.A5("#"+A+"-tooltip-c").attr(ZC._[19],D).attr(ZC._[20],K),"vml"===C.G.AB&&ZC.Q.PV(ZC.AK(A+"-tooltip-c"),{top:0,left:0}),C.A7.QN=C.A7.BL,C.A7.ML=C.A7.BH,C.A7.BL=0,C.A7.BH=0,!e.type&&u&&("canvas"===C.G.AB?(null===ZC._n_(C.A7.o.x)&&(C.A7.o.x=o.iX-C.A7.I/2),null===ZC._n_(C.A7.o.y)&&(C.A7.o.y=o.iY-C.A7.F)):(null===ZC._n_(C.A7.o.x)&&(C.A7.iX=o.iX-C.A7.I/2),null===ZC._n_(C.A7.o.y)&&(C.A7.iY=o.iY-C.A7.F-20))),u&&(C.CE=C.getPlacementInfo(o),""!==C.B9&&("canvas"!==C.G.AB?(C.A7.o.x=C.A7.iX=C.CE.x,C.A7.o.y=C.A7.iY=C.CE.y):(C.A7.o.x=C.A7.iX=0,C.A7.o.y=C.A7.iY=0),C.A7.ER=C.CE.cp,C.A7.EU=C.CE.co)),C.A7.AM&&""!==C.A7.AT&&("canvas"===C.G.AB&&(C.A7.D["html-mode"]||(C.A7.iX=20,C.A7.iY=20)),C.A7.paint()),(e.type&&u||e.update)&&(o.XG(),o.C.Q0(!0)),e.type||"canvas"===C.G.AB)C.show(e);else if(C.A7.D["html-mode"]){var F=C.A7.iX+C.A7.EO,I=C.A7.iY+C.A7.FO;ZC.Q.PV(ZC.AK(A+"-tooltip-text-float"),{left:F+"px",top:I+"px",zIndex:zingchart.ZINDEX})}}}getPlacementInfo(e){var t,i=this,a={},n=i.A7.HA,l=i.A7.G8,r=i.A7.I,o=i.A7.F;if(i.A7.D["html-mode"]&&("horizontal"===i.B9||"vertical"===i.B9||"node:"===i.B9.substring(0,5))&&(i.A7.iX=-9999,i.A7.iY=-9999,i.A7.AM)){i.A7.paint();var s=ZC.A5("#"+i.G.K+"-tooltip-text-"+("canvas"===i.G.AB?"t":"float"));r=s.width()+i.A7.EO+i.A7.FP,o=s.height()+i.A7.FO+i.A7.FT,null!==ZC._n_(i.A7.o[ZC._[19]])&&(r=ZC._i_(i.A7.o[ZC._[19]])),null!==ZC._n_(i.A7.o[ZC._[20]])&&(o=ZC._i_(i.A7.o[ZC._[20]]))}if("horizontal"===i.B9)e.iX+e.I/2<e.C.iX+e.C.I/2?(a.x=e.iX+0*e.I+i.H1,a.y=e.iY+0*e.F/2-o/2,a.cp="left"):(a.x=e.iX-r-i.H1,a.y=e.iY+0*e.F/2-o/2,a.cp="right"),a.y<5&&(t=5-a.y,a.co=-ZC._i_(100*t/(o-l)),a.y=5),a.y+o>i.G.F-5&&(t=i.G.F-5-a.y-o,a.co=-ZC._i_(100*t/(o-l)),a.y=i.G.F-5-o);else if("vertical"===i.B9)e.iY+e.F/2<e.C.iY+e.C.F/2?(a.y=e.iY+0*e.F+i.H1,a.x=e.iX+0*e.I/2-r/2,a.cp="top"):(a.y=e.iY-o-i.H1,a.x=e.iX+0*e.I/2-r/2,a.cp="bottom"),a.x<5&&(t=5-a.x,a.co=-ZC._i_(100*t/(i.A7.I-n)),a.x=5),a.x+r>i.G.I-5&&(t=i.G.I-5-a.x-r,a.co=-ZC._i_(100*t/(r-n)),a.x=i.G.I-5-r);else if("node:"===i.B9.substring(0,5)&&e.getTooltipPosition){switch((a=e.getTooltipPosition(i.A7,i.B9.substring(5))).node=!0,a.side=i.B9.substring(5),a.side){case"left":a.x=a.x-r+i.A7.QN,a.y=a.y-o/2+i.A7.ML;break;case"right":a.x=a.x+i.A7.QN,a.y=a.y-o/2+i.A7.ML;break;case"top":a.x=a.x-r/2+i.A7.QN,a.y=a.y-o+i.A7.ML;break;case"bottom":a.x=a.x-r/2+i.A7.QN,a.y=a.y+i.A7.ML;break;case"center":a.x=a.x-r/2+i.A7.QN,a.y=a.y-o/2+i.A7.ML}a.cp=i.A7.ER}if(a.node){var C=0;a.y+o>i.G.F-5&&("top"===a.side||"bottom"===a.side?(a.y=a.y-o-("bottom"===a.side?0:i.A7.G8)-i.A7.ML,a.cp="bottom"):a.y=i.G.F-o-5),a.y<5&&("top"===a.side||"bottom"===a.side?(a.y=a.y+("top"===a.side?0:i.A7.G8)+o-i.A7.ML,a.cp="top"):a.y=5),a.x+r>i.G.I-5&&("left"===a.side||"right"===a.side?(a.x=a.x-r-i.A7.QN-5,a.cp="right"):(C=48*(r-i.G.I+a.x+i.A7.HA/2)/(i.A7.I/2),a.x=i.G.I-r-i.A7.QN-5),a.co=C),a.x<5&&("left"===a.side||"right"===a.side?(a.x=a.x+i.A7.I-i.A7.QN+5,a.cp="left"):(C=48*(a.x-i.A7.HA/2)/(i.A7.I/2),a.x=5),a.co=C)}return a}}class AAA extends I2{constructor(e){super(e);var t=this;t.G=e,t.JI=!1,t.C=null,t.Q3=null,t.UZ=null,t.IB=0,t.LQ=0,t.IA=0,t.LP=0,t.A8=null,t.AL=null,t.ZT=!1,t.ABJ=0,t.A0S=!1,t.M=null}parse(){var e=this;e.C&&(e.C.HE&&e.append(e.C.HE.o),super.parse(),e.YX("preserve-zoom","A0S","b"),e.M=new DT(e),e.C.A.B8.load(e.M.o,"graph.zoom.label"),e.M.append(e.o.label),e.M.parse(),e.o.label&&!1!==e.o.label.visible&&(e.M.AM=!0))}unbind(){var e=this;zingchart.DEV.SKIPTRACKERS?ZC.A5(document.body).unbind("mousedown touchstart",e.RE):ZC.A5("#"+e.G.K+"-img").unbind("mousedown touchstart",e.RE),ZC.A5(".zc-node-area").die("mousedown touchstart",e.RE),ZC.A5(document.body).unbind("mousemove touchmove",e.UN),ZC.A5(document.body).unbind("mouseup touchend",e.W7)}bind(){var e=this,t=e.G.K;e.RE=function(i){if((!ZC.mobile||"pinch"!==zingchart.TOUCHZOOM)&&!(i.which>1||-1!==ZC.Q.TH(i.target).indexOf("zc-menu-item")||ZC.move)&&(i.type!==ZC._[47]||!ZC.TOUCHEVENTS)&&-1===i.target.id.indexOf("-legend-header-area")&&(ZC.mobile||i.preventDefault(),e.G.hideCM(),(ZC.mobile||!(i.which>1))&&("vml"!==e.G.AB||-1===i.target.className.indexOf("zc-node-area")))){i.shiftKey&&(e.ZT=!0);var a=ZC.Q.MM(i),n=ZC._tx_(e.G.K),l=ZC.A5("#"+t+"-top").offset(),r=(a[0]-l.left)/n[0],o=(a[1]-l.top)/n[1];e.Q3=r,e.UZ=o,e.ZT&&(e.ABJ=r);for(var s,C=!1,A=0,Z=e.G.AG.length;A<Z;A++)s=e.G.AG[A].P,ZC.DR(r,s.iX-5,s.iX+s.I+5)&&ZC.DR(o,s.iY-5,s.iY+s.F+5)&&(e.C=e.G.AG[A]);if(null!==e.C){var c={id:e.G.K,graphid:e.C.K,ev:i},p=ZC.AP.C0("beforezoom",e.G,c,!0);if(typeof p!==ZC._[31]&&!p)return;if(e.C.HE&&null!==ZC._n_(e.C.HE.o.active)&&!ZC._b_(e.C.HE.o.active))return;s=e.C.P,e.C.AY.A4.length>0&&(e.A8=e.C.BI(e.C.AY.A4[0].BT("k")[0]),e.AL=e.C.BI(e.C.AY.A4[0].BT("v")[0])),null!==e.A8&&null!==e.AL&&e.C.AJ["enable-zooming"]&&(e.A8.GQ||e.AL.GQ)&&(e.IB=e.A8.CP?o:r,e.IA=e.AL.CP?r:o,C=!0,e.A8.GQ?e.A8.CP?e.IB=ZC._l_(e.IB,s.iY,s.iY+s.F):e.IB=ZC._l_(e.IB,s.iX,s.iX+s.I):e.IB=e.A8.CP?s.iY:s.iX,e.AL.GQ?e.AL.CP?e.IA=ZC._l_(e.IA,s.iX,s.iX+s.I):e.IA=ZC._l_(e.IA,s.iY,s.iY+s.F):e.IA=e.AL.CP?s.iX:s.iY)}return C&&(e.LQ=e.IB,e.LP=e.IA,e.JI=!0,ZC.A5(document.body).bind("mousemove touchmove",e.UN),ZC.A5(document.body).bind("mouseup touchend",e.W7),e.ZT?document.body.style.cursor="pointer":(e.parse(),e.C.AJ["3d"]||ZC.Q.I7({id:t+"-zoom",p:ZC.AK(t+"-top"),top:-9,left:-9,wh:"1/1",position:"absolute",border:e.AU+"px solid "+e.BW,background:e.A0,opacity:e.C5}),e.M.AM&&(ZC.Q.I7({id:t+"-from",p:ZC.AK(t+"-top"),top:-9999,left:-9999,position:"absolute",paddingTop:e.M.FO,paddingRight:e.M.FP,paddingBottom:e.M.FT,paddingLeft:e.M.EO,border:e.M.AU+"px solid "+e.M.BW,background:e.M.A0,color:e.M.C1,fontFamily:e.M.GI,fontWeight:e.M.sFontWeight,fontStyle:e.M.N8?"oblique":"normal",fontSize:e.M.DF,text:""}),ZC.Q.I7({id:t+"-to",p:ZC.AK(t+"-top"),top:-9999,left:-9999,position:"absolute",paddingTop:e.M.FO,paddingRight:e.M.FP,paddingBottom:e.M.FT,paddingLeft:e.M.EO,border:e.M.AU+"px solid "+e.M.BW,background:e.M.A0,color:e.M.C1,fontFamily:e.M.GI,fontWeight:e.M.sFontWeight,fontStyle:e.M.N8?"oblique":"normal",fontSize:e.M.DF,text:""})),document.body.style.cursor="crosshair")),!!ZC.mobile&&void 0}},e.UN=function(i){if(i.type!==ZC._[48]||!ZC.TOUCHEVENTS){var a,n;if(ZC.mobile||i.preventDefault(),ZC.move=!0,e.C||(ZC.move=!1,e.JI=!1,ZC.A5(document.body).unbind("mousemove touchmove",e.UN),ZC.A5(document.body).unbind("mouseup touchend",e.W7),document.body.style.cursor="auto",ZC.Q.ET([t+"-zoom",t+"-from",t+"-to"])),e.JI){e.C.A.A7.hide();var l=ZC.Q.MM(i),r=ZC._tx_(e.G.K),o=ZC.A5("#"+t+"-top").offset(),s=(l[0]-o.left)/r[0],C=(l[1]-o.top)/r[1];if(i.ctrlKey){var A=ZC.CX(s-e.Q3,C-e.UZ);s=e.Q3+A,C=e.UZ+A}if(e.LQ=e.A8.CP?C:s,e.LP=e.AL.CP?s:C,!e.ZT){var Z,c,p,u,h=e.C.P;a=e.A8.AW?e.A8.BV:e.A8.AA,n=e.A8.AW?e.A8.AA:e.A8.BV,e.A8.GQ?e.A8.CP?(e.A8.YO&&(e.IB=e.A8.iY+a+e.A8.AC*ZC._i_((e.IB-e.A8.iY-a)/e.A8.AC),e.LQ=e.A8.iY+a+e.A8.AC*ZC._i_((e.LQ-e.A8.iY-a)/e.A8.AC)),e.IB=ZC._l_(e.IB,h.iY+n,h.iY+h.F-a),e.LQ=ZC._l_(e.LQ,h.iY+n,h.iY+h.F-a)):(e.A8.YO&&(e.IB=e.A8.iX+a+e.A8.AC*ZC._i_((e.IB-e.A8.iX-a)/e.A8.AC),e.LQ=e.A8.iX+a+e.A8.AC*ZC._i_((e.LQ-e.A8.iX-a)/e.A8.AC)),e.IB=ZC._l_(e.IB,h.iX+a,h.iX+h.I-n),e.LQ=ZC._l_(e.LQ,h.iX+a,h.iX+h.I-n)):(e.IB=e.A8.CP?h.iY+n:h.iX+a,e.LQ=e.A8.CP?h.iY+h.F-a:h.iX+h.I-n),a=e.AL.AW?e.AL.AA:e.AL.BV,n=e.AL.AW?e.AL.BV:e.AL.AA,e.AL.GQ?e.AL.CP?(e.AL.YO&&(e.IA=e.AL.iX+a+e.AL.AC*ZC._i_((e.IA-e.AL.iX-a)/e.AL.AC),e.LP=e.AL.iX+a+e.AL.AC*ZC._i_((e.LP-e.AL.iX-a)/e.AL.AC)),e.IA=ZC._l_(e.IA,h.iX+n,h.iX+h.I-a),e.LP=ZC._l_(e.LP,h.iX+n,h.iX+h.I-a)):(e.AL.YO&&(e.IA=e.AL.iY+a+e.AL.AC*ZC._i_((e.IA-e.AL.iY-a)/e.AL.AC),e.LP=e.AL.iY+a+e.AL.AC*ZC._i_((e.LP-e.AL.iY-a)/e.AL.AC)),e.IA=ZC._l_(e.IA,h.iY+a,h.iY+h.F-n),e.LP=ZC._l_(e.LP,h.iY+a,h.iY+h.F-n)):(e.IA=e.AL.CP?h.iX+n:h.iY+a,e.LP=e.AL.CP?h.iX+h.I-a:h.iY+h.F-n);var _=ZC.A5.browser.msie?0:2*e.AU;e.C.AJ["3d"]&&(_=0);var d=ZC.AK(t+"-zoom");if(e.A8.CP&&e.AL.CP?(Z=ZC._a_(e.LP-e.IA-_),c=ZC._a_(e.LQ-e.IB-_),p=ZC.CX(e.IA,e.LP),u=ZC.CX(e.IB,e.LQ)):(Z=ZC._a_(e.LQ-e.IB-_),c=ZC._a_(e.LP-e.IA-_),p=ZC.CX(e.IB,e.LQ),u=ZC.CX(e.IA,e.LP)),e.C.AJ["3d"]){e.C.NO();var f=ZC.AK(e.G.K+"-guide-c");f&&(ZC.Q.IT(f,e.G.AB,e.C.iX,e.C.iY,e.C.I,e.C.F),ZC.A5(".zc-guide-label").remove()),(d=new DW(e)).Z=f,d.A0=d.AE=e.A0,d.BW=e.BW,d.AU=e.AU,d.C5=e.C5,d.E=[[p,u],[p+Z,u],[p+Z,u+c],[p,u+c],[p,u]];for(var g=0;g<d.E.length;g++){var B=new CB(e.C,d.E[g][0]-ZC.AO.E1,d.E[g][1]-ZC.AO.E2,0);d.E[g][0]=B.EB[0],d.E[g][1]=B.EB[1]}d.parse(),d.paint()}else ZC.Q.PV(d,{width:Z+"px",height:c+"px",left:p+"px",top:u+"px"});if(e.M.AM){var v=ZC.CX(e.IB,e.LQ),m=ZC.BQ(e.IB,e.LQ),b=ZC.CX(e.IA,e.LP),D=ZC.BQ(e.IA,e.LP),K=ZC.AK(t+"-from"),E=ZC.AK(t+"-to"),F={decimals:null===ZC._n_(e.AL.DM)?1:e.AL.DM};K.innerHTML=e.A8.FC(e.A8.MZ(v))+"/"+e.AL.FC(-1,e.AL.L1(b),F),E.innerHTML=e.A8.FC(e.A8.MZ(m))+"/"+e.AL.FC(-1,e.AL.L1(D),F),ZC.Q.PV(K,{left:p-e.AU-ZC._i_(ZC.A5(K).width())+"px",top:u-e.AU-ZC._i_(ZC.A5(K).height())+"px"}),ZC.Q.PV(E,{left:p+e.AU+e.M.AU+Z+"px",top:u+e.AU+e.M.AU+c+"px"})}}}return!1}},e.W7=function(i){if((i.type!==ZC._[49]||!ZC.TOUCHEVENTS)&&e.C){if(ZC.move=!1,e.JI=!1,document.body.style.cursor="auto",ZC.Q.ET([t+"-zoom",t+"-from",t+"-to"]),e.C.AJ["3d"]){e.C.NO();var a=ZC.AK(e.G.K+"-guide-c");a&&(ZC.Q.IT(a,e.G.AB,e.C.iX,e.C.iY,e.C.I,e.C.F),ZC.A5(".zc-guide-label").remove())}if(ZC.A5(document.body).unbind("mousemove touchmove",e.UN),ZC.A5(document.body).unbind("mouseup touchend",e.W7),e.ZT)e.ZT=!1;else{var n,l,r,o,s,C,A,Z,c,p={graphid:e.C.K,ev:i};if(ZC._a_(e.IB-e.LQ)>10&&ZC._a_(e.IA-e.LP)>10){var u,h,_=!1,d=!1;for(o=0,s=(r=e.C.BT("k")).length;o<s;o++)(u=r[o])&&r[o].GQ&&(C=1===u.L?"":"-"+u.L,n=u.MZ(ZC.CX(e.IB,e.LQ)),l=u.MZ(ZC.BQ(e.IB,e.LQ)),ZC._a_(l-n)>=1&&(p["zoomx"+C]=!0,p["xmin"+C]=ZC.CX(n,l),p["xmax"+C]=ZC.BQ(n,l),"log"===u.C6&&(p["kmin"+C]=u.V[ZC._i_(ZC.G6(p["xmin"+C],u.E4))],p["kmax"+C]=u.V[ZC._i_(ZC.G6(p["xmax"+C],u.E4))],delete p["xmin"+C],delete p["xmax"+C]),_=!0));for(o=0,s=(r=e.C.BT("v")).length;o<s;o++)(h=r[o])&&r[o].GQ&&(C=1===h.L?"":"-"+h.L,A=h.L1(ZC.BQ(e.IA,e.LP)),Z=h.L1(ZC.CX(e.IA,e.LP)),c=(h.H2-h.FX)/Math.pow(10,10),ZC._a_(Z-A)>=c&&(p["zoomy"+C]=!0,p["ymin"+C]=ZC.CX(A,Z),p["ymax"+C]=ZC.BQ(A,Z),d=!0));_||d?(zingchart.SKIP.EVENT=!0,e.C.A.PM(p)):zingchart.SKIP.EVENT=!0}else(ZC._a_(e.IB-e.LQ)>5||ZC._a_(e.IA-e.LP)>5)&&(zingchart.SKIP.EVENT=!0);e.C=null}}},ZC.mobile&&"normal"!==zingchart.TOUCHZOOM||(zingchart.DEV.SKIPTRACKERS?ZC.A5(document.body).bind("mousedown touchstart",e.RE):ZC.A5("#"+t+"-img").bind("mousedown touchstart",e.RE),ZC.A5(".zc-node-area").live("mousedown touchstart",e.RE))}}class A97 extends D0{constructor(e){super(e);var t=this;t.IO=!0,t.AC7=!1,t.C=e,t.G=e.A,t.JI=!1,t.A6A=!1,t.H7=null,t.AR=null,t.Z=null,t.IK=0,t.H8=0,t.PH=0,t.A0W=0,t.LV=!1,t.NX=null,t.bBind=!1,t.BY=null,t.A24=!1}parse(){var e,t=this;t.K=t.C.K+"-preview",t.assign_a([["live","AC7","b"],["async","LV","b"],["min-distance","PH","i"],["min-distance-x","PH","i"],["min-distance-y","PH","i"],["visible","AM","b"]]);var i="("+t.C.AF+").preview",a=t.G.B8;function n(e){return[i+".handler",i+".handler-"+e,i+".handle",i+".handle-"+e]}t.AR=new I2(t.C),t.AR.K=t.C.K+"-preview-viewport",a.load(t.AR.o,[i]),t.AR.append(t.o),t.AR.parse(),t.o.label&&(t.BY=[]),t.o.handle&&t.o.handle.label&&(t.JA=new DT(t.C),t.JA.append(t.o.handle.label),t.JA.append({text:" "}),t.JA.parse(),t.JA.AM&&(t.A24=!0)),t.P4=new D0(t.C),a.load(t.P4.o,[i+".mask"]),null!==ZC._n_(e=t.o.mask)&&t.P4.append(e),t.P4.parse(),t.UV=new D0(t.C),a.load(t.UV.o,[i+".active"]),null!==ZC._n_(e=t.o.active)&&t.UV.append(e),t.UV.parse(),t.IW=new I2(t.AR),t.HH=new I2(t.AR),t.JE=new I2(t.AR),t.H5=new I2(t.AR),a.load(t.IW.o,n("left")),a.load(t.HH.o,n("right")),a.load(t.JE.o,n("top")),a.load(t.H5.o,n("bottom"));for(var l=["handle","handler"],r=0;r<l.length;r++)null!==ZC._n_(e=t.o[l[r]])&&(t.IW.append(e),t.HH.append(e),t.JE.append(e),t.H5.append(e)),null!==ZC._n_(e=t.o[l[r]+"-left"])&&t.IW.append(e),null!==ZC._n_(e=t.o[l[r]+"-right"])&&t.HH.append(e),null!==ZC._n_(e=t.o[l[r]+"-top"])&&t.JE.append(e),null!==ZC._n_(e=t.o[l[r]+"-bottom"])&&t.H5.append(e);t.IW.parse(),t.HH.parse(),t.JE.parse(),t.H5.parse()}setScalesInfo(){var e=this;e.NX={};for(var t,i=e.C.BN,a=0,n=i.length;a<n;a++)(t=i[a])&&("k"===t.AF?e.NX[t.BG]={minindex:t.DA,maxindex:t.DU,minvalue:t.V[t.DA],maxvalue:t.V[t.DU],stepsize:t.AC,values:[].concat(t.V)}:e.NX[t.BG]={minvalue:t.FX,maxvalue:t.H2})}toggleMasks(e,t){for(var i=this,a=["x-left","x-right","y-top","y-bottom"],n=0;n<a.length;n++)if(e){var l=new I2(i.C);switch(l.K=i.C.K+"-preview-mask-"+a[n],l.A0=l.AE=i.P4.A0,l.C5=i.P4.C5,l.Z=l.C7=t||ZC.AK(i.C.K+"-preview-c"),a[n]){case"x-left":l.iX=i.AR.iX,l.iY=i.AR.iY,l.I=ZC.A5(i.A40).css(ZC._[19]),l.F=i.AR.F;break;case"x-right":l.iX=i.AR.iX+i.AR.I-ZC.A5(i.XO).css(ZC._[19]),l.iY=i.AR.iY,l.I=ZC.A5(i.XO).css(ZC._[19]),l.F=i.AR.F;break;case"y-top":l.iX=i.AR.iX,l.iY=i.AR.iY,l.I=i.AR.I,l.F=ZC.A5(i.A5H).css(ZC._[20]);break;case"y-bottom":l.iX=i.AR.iX,l.iY=i.AR.iY+i.AR.F-ZC.A5(i.WH).css(ZC._[20]),l.I=i.AR.I,l.F=ZC.A5(i.WH).css(ZC._[20])}l.paint()}else ZC.Q.ET(i.C.K+"-preview-mask-"+a[n]+"-path")}paint(){var e,t,i,a,n,l,r,o,s,C=this;if(C.Q5=ZC.mobile?40:ZC.ie67?0:20,C.AM){C.Z=C.AR.Z=C.AR.C7=ZC.AK(C.C.K+"-preview-c"),C.AR.paint();var A=ZC.AK(C.G.K+"-top"),Z=C.C.BT("k")[0],c=C.C.BT("v")[0];if(null===C.NX&&C.setScalesInfo(),"svg"!==C.G.AB?(e=ZC.AK(C.C.K+"-preview"))&&ZC.Q.PV(e,{clip:C.C.LY(0,"canvas",C.AR)}):(e=ZC.AK(C.C.K+"-clip-preview-shape"))&&ZC.Q.G9(e,{points:C.C.LY(0,"svg",C.AR)}),0===C.PH&&Z&&(C.PH=ZC.BQ(1,ZC._i_(2*C.AR.I/Z.V.length)),"log"===Z.C6&&(C.PH=ZC.BQ(1,ZC._i_(C.PH/Z.E4)))),C.BY){var p=ZC.ie67?ZC.AK(C.G.K):null;ZC.A5("."+C.C.K+"-preview-item",p).remove();for(var u=[],h=0;h<C.BY.length;h++){var _=(C.BY[h].x-Z.iX)/Z.I,d=ZC._i_(C.AR.iX+_*C.AR.I),f=new DT(C.C);if(f.append({"line-width":1,"line-color":"#999",text:C.BY[h].text,x:d,y:C.AR.iY}),f.append(C.o.label),f.parse(),f.Z=C.Z,f.IU=C.G.usc()?ZC.AK(C.G.K+"-main"):ZC.AK(C.G.K+"-text"),f.GO=C.K+"-item "+C.C.K+"-preview-item zc-preview-item",f.K=C.K+"-item-"+h,f.iX>=C.AR.iX&&f.iX+f.I<=C.AR.iX+C.AR.I){for(var g=!1,B=0;B<u.length;B++)f.iX>u[B].x&&f.iX<u[B].x+u[B][ZC._[19]]&&(g=!0);!g&&f.AM&&(f.paint(),u.push({x:f.iX,width:f.I}));var v=[[d,C.AR.iY],[d,C.AR.iY+C.AR.F]];a=ZC.Q.E9(C.Z,C.G.AB),ZC.CR.paint(a,f,v)}}}if((Z.GQ||c.GQ)&&(C.KL=ZC.Q.I7({cls:"zc-abs zc-preview-handler zc-preview-handler-middle "+C.C.K+"-preview-handler",id:C.K+"-handler-middle",wh:C.AR.I+"/"+C.AR.F,tl:C.AR.iY+"/"+C.AR.iX,background:C.UV.A0,opacity:C.UV.C5,cursor:"pointer",p:A})),!Z.CP&&Z.GQ||c.CP&&c.GQ){C.A40=ZC.Q.I7({cls:"zc-abs zc-preview-mask zc-preview-mask-left "+C.C.K+"-preview-mask",id:C.K+"-mask-x-left",wh:"0/"+C.AR.F,tl:C.AR.iY+"/"+C.AR.iX,background:C.P4.A0,opacity:C.P4.C5,p:A}),C.XO=ZC.Q.I7({cls:"zc-abs zc-preview-mask zc-preview-mask-right "+C.C.K+"-preview-mask",id:C.K+"-mask-x-right",wh:"0/"+C.AR.F,tl:C.AR.iY+"/"+(C.AR.iX+C.AR.I),background:C.P4.A0,opacity:C.P4.C5,p:A}),t=C.IW.I,i=C.IW.F,C.KP=ZC.Q.I7({cls:"zc-abs zc-preview-handler zc-preview-handler-left "+C.C.K+"-preview-handler",id:C.K+"-handler-x-left",wh:ZC.quirks?null:t+"/"+i,tl:ZC._i_(C.AR.iY+(C.AR.F-i)/4-C.Q5/2)+"/"+ZC._i_(C.AR.iX-t/2-C.Q5/2),lineHeight:"10%",cursor:"pointer",p:A,border:C.Q5/2+"px solid transparent"});var m=C.KP;if("svg"===C.G.AB&&!ZC.AK(C.K+"-handler-x-left-svg")){var b=ZC.Q.F7("svg",ZC._[36]);ZC.Q.G9(b,{version:"1.1",id:C.K+"-handler-x-left-svg",width:t,height:i}),C.KP.appendChild(b),m=b}if(!ZC.AK(C.K+"-handler-x-left-c")){var D=ZC.Q.HK({cls:"zc-no-print",id:C.K+"-handler-x-left-c",wh:t+"/"+i,p:m},C.G.AB);C.IW.Z=D,C.IW.K=C.K+"-handler-x-left-c-preview",C.IW.iX=0,C.IW.iY=0,C.IW.paint(),a=ZC.Q.E9(C.G.usc()?C.G.K+"-main-c":C.K+"-handler-x-left-c",C.G.AB);var K=C.IW.AZ,E=C.IW.AU;o=ZC._i_(t/2-K),r=ZC._i_(t/2+K),s=[[o,l=E+3],[o,n=i-E-2],null,[r,l],[r,n]],C.IW.CY=!0,ZC.CR.paint(a,C.IW,s)}t=C.HH.I,i=C.HH.F,C.K2=ZC.Q.I7({cls:"zc-abs zc-preview-handler zc-preview-handler-right "+C.C.K+"-preview-handler",id:C.K+"-handler-x-right",wh:ZC.quirks?null:t+"/"+i,tl:ZC._i_(C.AR.iY+C.AR.F-C.HH.F-(C.AR.F-i)/4-C.Q5/2)+"/"+ZC._i_(C.AR.iX+C.AR.I-C.HH.I/2-C.Q5/2),lineHeight:"10%",cursor:"pointer",p:A,border:C.Q5/2+"px solid transparent"});var F=C.K2;if("svg"===C.G.AB&&!ZC.AK(C.K+"-handler-x-right-svg")){var I=ZC.Q.F7("svg",ZC._[36]);ZC.Q.G9(I,{version:"1.1",id:C.K+"-handler-x-right-svg",width:t,height:i}),C.K2.appendChild(I),F=I}if(!ZC.AK(C.K+"-handler-x-right-c")){var x=ZC.Q.HK({cls:"zc-no-print",id:C.K+"-handler-x-right-c",wh:t+"/"+i,p:F},C.G.AB);C.HH.Z=x,C.HH.K=C.K+"-handler-x-right-c-preview",C.HH.iX=0,C.HH.iY=0,C.HH.paint(),a=ZC.Q.E9(C.G.usc()?C.G.K+"-main-c":C.K+"-handler-x-right-c",C.G.AB);var y=C.HH.AZ,X=C.HH.AU;o=ZC._i_(t/2-y),r=ZC._i_(t/2+y),s=[[o,l=X+3],[o,n=i-X-2],null,[r,l],[r,n]],C.HH.CY=!0,ZC.CR.paint(a,C.HH,s)}}if(!c.CP&&c.GQ||Z.CP&&Z.GQ){C.A5H=ZC.Q.I7({cls:"zc-abs zc-preview-mask zc-preview-mask-top "+C.C.K+"-preview-mask",id:C.K+"-mask-x-top",wh:C.AR.I+"/0",tl:C.AR.iY+"/"+C.AR.iX,background:C.P4.A0,opacity:C.P4.C5,p:A}),C.WH=ZC.Q.I7({cls:"zc-abs zc-preview-mask zc-preview-mask-bottom "+C.C.K+"-preview-mask",id:C.K+"-mask-x-bottom",wh:C.AR.I+"/0",tl:C.AR.iY+C.AR.F+"/"+C.AR.iX,background:C.P4.A0,opacity:C.P4.C5,p:A}),t=C.JE.I,i=C.JE.F,C.LC=ZC.Q.I7({cls:"zc-abs zc-preview-handler zc-preview-handler-top "+C.C.K+"-preview-handler",id:C.K+"-handler-y-top",wh:ZC.quirks?null:t+"/"+i,tl:ZC._i_(C.AR.iY-i/2-C.Q5/2)+"/"+ZC._i_(C.AR.iX+(C.AR.I-t)/4-C.Q5/2),lineHeight:"10%",cursor:"pointer",p:A,border:C.Q5/2+"px solid transparent"});var G=C.LC;if("svg"===C.G.AB&&!ZC.AK(C.K+"-handler-y-top-svg")){var Y=ZC.Q.F7("svg",ZC._[36]);ZC.Q.G9(Y,{version:"1.1",id:C.K+"-handler-y-top-svg",width:t,height:i}),C.LC.appendChild(Y),G=Y}if(!ZC.AK(C.K+"-handler-y-top-c")){var w=ZC.Q.HK({cls:"zc-no-print",id:C.K+"-handler-y-top-c",wh:t+"/"+i,p:G},C.G.AB);C.JE.Z=w,C.JE.K=C.K+"-handler-y-top-c-preview",C.JE.iX=0,C.JE.iY=0,C.JE.paint(),a=ZC.Q.E9(C.G.usc()?C.G.K+"-main-c":C.K+"-handler-y-top-c",C.G.AB);var M=C.JE.AZ,L=C.JE.AU;n=ZC._i_(i/2-M),s=[[o=t-L-2,l=ZC._i_(i/2+M)],[r=L+3,l],null,[o,n],[r,n]],C.JE.CY=!0,ZC.CR.paint(a,C.JE,s)}t=C.H5.I,i=C.H5.F,C.JL=ZC.Q.I7({cls:"zc-abs zc-preview-handler zc-preview-handler-bottom "+C.C.K+"-preview-handler",id:C.K+"-handler-y-bottom",wh:ZC.quirks?null:t+"/"+i,tl:ZC._i_(C.AR.iY+C.AR.F-C.H5.F/2-C.Q5/2)+"/"+ZC._i_(C.AR.iX+C.AR.I-C.H5.I-(C.AR.I-t)/4-C.Q5/2),lineHeight:"10%",cursor:"pointer",p:A,border:C.Q5/2+"px solid transparent"});var P=C.JL;if("svg"===C.G.AB&&!ZC.AK(C.K+"-handler-y-bottom-svg")){var O=ZC.Q.F7("svg",ZC._[36]);ZC.Q.G9(O,{version:"1.1",id:C.K+"-handler-y-bottom-svg",width:t,height:i}),C.JL.appendChild(O),P=O}if(!ZC.AK(C.K+"-handler-y-bottom-c")){var R=ZC.Q.HK({cls:"zc-no-print",id:C.K+"-handler-y-bottom-c",wh:t+"/"+i,p:P},C.G.AB);C.H5.Z=R,C.H5.K=C.K+"-handler-y-bottom-c-preview",C.H5.iX=0,C.H5.iY=0,C.H5.paint(),a=ZC.Q.E9(C.G.usc()?C.G.K+"-main-c":C.K+"-handler-y-bottom-c",C.G.AB);var Q=C.H5.AZ,T=C.H5.AU;n=ZC._i_(i/2-Q),s=[[o=t-T-2,l=ZC._i_(i/2+Q)],[r=T+3,l],null,[o,n],[r,n]],C.H5.CY=!0,ZC.CR.paint(a,C.H5,s)}}if(C.IK=0,C.H8=C.AR.I,C.LB=0,C.HI=C.AR.F,Z.GQ&&C.A24){var k=Z.W,N=Z.A1;Z.FI&&"date"===Z.FI.o.type&&(k=Z.FC(Z.W,null,null).replace(/<br>/g," "),N=Z.FC(Z.A1,null,null).replace(/<br>/g," ")),C.RJ=ZC.Q.I7({cls:"zc-abs zc-preview-label "+C.C.K+"-preview-label",id:C.K+"-min-label",background:C.JA.A0,opacity:C.JA.C5,fontFamily:C.JA.GI,fontSize:C.JA.DF,fontWeight:C.JA.sFontWeight,color:C.JA.C1,padding:0,html:k+"",p:A}),C.RJ.style.left=C.AR.iX+"px",C.RJ.style.top=C.AR.iY+C.AR.F+"px",C.RK=ZC.Q.I7({cls:"zc-abs zc-preview-label "+C.C.K+"-preview-label",id:C.K+"-max-label",background:C.JA.A0,opacity:C.JA.C5,fontFamily:C.JA.GI,fontSize:C.JA.DF,fontWeight:C.JA.sFontWeight,color:C.JA.C1,padding:0,html:N+"",p:A}),C.RK.style.left=C.AR.iX+C.AR.I+"px",C.RK.style.top=C.AR.iY+C.AR.F+"px",C.IK>ZC.A5(C.RJ).width()?C.RJ.style.left=C.AR.iX+C.IK-ZC.A5(C.RJ).width()+"px":C.RJ.style.left=C.AR.iX+"px",C.AR.I-C.H8>ZC.A5(C.RK).width()?C.RK.style.left=C.AR.iX+C.H8+"px":C.RK.style.left=C.AR.iX+C.H8-ZC.A5(C.RK).width()+"px"}C.bind(),C.BY&&(C.BY=[])}}reset(){var e=this,t=e.C.BT("k")[0],i=e.C.BT("v",!0)[0];i||(i=e.C.BT("v")[0]),t&&i&&e.update(t.DA,t.DU,i.FX,i.H2,!0)}update(e,t,i,a,n){null===ZC._n_(n)&&(n=!1);var l=this;if(n||(e>=t&&(e=t-1),i>=a&&(i=a-1)),l.AM){var r=l.C.BT("k")[0],o=l.C.BT("v",!0)[0];o||(o=l.C.BT("v")[0]);var s=!0;if(n){if(r&&o){if(r.CP&&o.CP){var C=e,A=t;e=i,t=a,i=C,a=A}r.CP?(null===ZC._n_(a)&&(a=r.A1),null===ZC._n_(i)&&(i=r.W)):(null===ZC._n_(e)&&(e=r.W),null===ZC._n_(t)&&(t=r.A1)),o.CP?(null===ZC._n_(e)&&(e=o.aAutoFit[0]?o.FX:o.B3),null===ZC._n_(t)&&(t=o.aAutoFit[1]?o.H2:o.BK)):(null===ZC._n_(i)&&(i=o.aAutoFit[0]?o.FX:o.B3),null===ZC._n_(a)&&(a=o.aAutoFit[1]?o.H2:o.BK)),r.CP||o.CP?r.AW?l.update((e-o.FX)*l.AR.I/(o.H2-o.FX),(t-o.FX)*l.AR.I/(o.H2-o.FX),(i-r.DA)*l.AR.F/(r.DU-r.DA),(a-r.DA)*l.AR.F/(r.DU-r.DA)):l.update((e-o.FX)*l.AR.I/(o.H2-o.FX),(t-o.FX)*l.AR.I/(o.H2-o.FX),l.AR.F-(a-r.DA)*l.AR.F/(r.DU-r.DA),l.AR.F-(i-r.DA)*l.AR.F/(r.DU-r.DA)):r.AW?l.update(l.AR.I-(t-r.DA)*l.AR.I/(r.DU-r.DA),l.AR.I-(e-r.DA)*l.AR.I/(r.DU-r.DA),l.AR.F-(a-o.FX)*l.AR.F/(o.H2-o.FX),l.AR.F-(i-o.FX)*l.AR.F/(o.H2-o.FX)):l.update((e-r.DA)*l.AR.I/(r.DU-r.DA),(t-r.DA)*l.AR.I/(r.DU-r.DA),l.AR.F-(a-o.FX)*l.AR.F/(o.H2-o.FX),l.AR.F-(i-o.FX)*l.AR.F/(o.H2-o.FX))}}else if(t-e<l.PH&&(l.H7===l.K2?t=e+l.PH:l.H7===l.KP&&(e=t-l.PH)),a-i<l.A0W&&(l.H7===l.JL?a=i+l.A0W:l.H7===l.LC&&(i=a-l.A0W)),e>t&&(l.H7===l.KP?l.update(t-1,t,i,a):l.H7===l.K2&&l.update(e,e+1,i,a),s=!1),e<0&&(l.H7===l.KP?l.update(0,t,i,a):l.H7===l.KL&&l.update(0,ZC.A5(l.KL).width(),i,a),s=!1),t>l.AR.I&&(l.H7===l.K2?l.update(e,l.AR.I,i,a):l.H7===l.KL&&l.update(l.AR.I-ZC.A5(l.KL).width(),l.AR.I,i,a),s=!1),i>a&&(l.H7===l.LC?l.update(e,t,i-1,a):l.H7===l.JL&&l.update(e,t,i,a+1),s=!1),i<0&&(l.H7===l.LC?l.update(e,t,0,a):l.H7===l.KL&&l.update(e,t,0,ZC.A5(l.KL).height()),s=!1),a>l.AR.F&&(l.H7===l.JL?l.update(e,t,i,l.AR.F):l.H7===l.KL&&l.update(e,t,l.AR.F-ZC.A5(l.KL).height(),l.AR.F),s=!1),s){if(r&&r.YO){var Z=l.AR.I/(r.V.length-(r.DQ?0:1));e=Z*Math.round(e/Z),t=ZC.CX(Z*Math.round(t/Z),l.AR.I)}l.IK=e,l.H8=t,l.LB=i,l.HI=a,(!r.CP&&r.GQ||o.CP&&o.GQ)&&(l.KP.style.left=ZC._i_(l.AR.iX+l.IK-l.IW.I/2-l.Q5/2)+"px",l.A40.style.width=ZC._i_(l.IK)+"px",l.K2.style.left=ZC._i_(l.AR.iX+l.H8-l.HH.I/2-l.Q5/2)+"px",l.XO.style.left=ZC._i_(l.AR.iX+l.H8)+"px",l.XO.style.width=ZC._i_(l.AR.I-l.H8)+"px"),(!o.CP&&o.GQ||r.CP&&r.GQ)&&(l.LC.style.top=ZC._i_(l.AR.iY+l.LB-l.JE.F/2-l.Q5/2)+"px",l.A5H.style.height=ZC._i_(l.LB)+"px",l.JL.style.top=ZC._i_(l.AR.iY+l.HI-l.H5.F/2-l.Q5/2)+"px",l.WH.style.top=ZC._i_(l.AR.iY+l.HI)+"px",l.WH.style.height=ZC._i_(l.AR.F-l.HI)+"px"),(r.GQ||o.GQ)&&(l.KL.style.left=ZC._i_(l.AR.iX+l.IK)+"px",l.KL.style.width=ZC._i_(l.H8-l.IK)+"px",l.KL.style.top=ZC._i_(l.AR.iY+l.LB)+"px",l.KL.style.height=ZC._i_(l.HI-l.LB)+"px"),l.AC7&&l.JI&&(l.C.OJ=!0,l.zoom(!0)),r.GQ&&l.A24&&(r.FI&&"date"===r.FI.o.type?(l.RJ.innerHTML=r.FC(r.W,null,null).replace(/<br>/g," "),l.RK.innerHTML=r.FC(r.A1,null,null).replace(/<br>/g," ")):(l.RJ.innerHTML=r.W,l.RK.innerHTML=r.A1),l.IK>ZC.A5(l.RJ).width()?l.RJ.style.left=l.AR.iX+l.IK-ZC.A5(l.RJ).width()+"px":l.RJ.style.left=l.AR.iX+"px",l.AR.I-l.H8>ZC.A5(l.RK).width()?l.RK.style.left=l.AR.iX+l.H8+"px":l.RK.style.left=l.AR.iX+l.H8-ZC.A5(l.RK).width()+"px")}}}zoom(e){for(var t,i=this,a={graphid:i.C.K,preview:1,async:i.LV,previewscale:!0,zooming:e},n=i.C.BN,l=i.C.BT("k")[0],r=i.C.BT("v")[0],o=0,s=n.length;o<s;o++)if(t=n[o]){var C=1===t.L?"":"-"+t.L;if("k"===t.AF){if(l.GQ){var A=i.LV?i.NX[t.BG].minindex:t.DA,Z=i.LV?i.NX[t.BG].maxindex:t.DU;if(a["zoomx"+C]=!0,l.CP?(a["xmin"+C]=ZC._i_((i.AR.F-i.HI)/i.AR.F*(Z-A)),a["xmax"+C]=ZC._i_((i.AR.F-i.LB)/i.AR.F*(Z-A))):(a["xmin"+C]=ZC._i_(i.IK/i.AR.I*(Z-A)),a["xmax"+C]=ZC._i_(i.H8/i.AR.I*(Z-A))),l.AW){a["xmin"+C]=Z-a["xmin"+C],a["xmax"+C]=Z-a["xmax"+C];var c=a["xmin"+C];a["xmin"+C]=a["xmax"+C],a["xmax"+C]=c}}}else if(r.GQ){var p=i.LV?i.NX[t.BG].minvalue:t.FX,u=i.LV?i.NX[t.BG].maxvalue:t.H2;a["zoomy"+C]=!0,r.CP?(a["ymin"+C]=p+i.IK/i.AR.I*(u-p),a["ymax"+C]=p+i.H8/i.AR.I*(u-p)):(a["ymin"+C]=p+(i.AR.F-i.HI)/i.AR.F*(u-p),a["ymax"+C]=p+(i.AR.F-i.LB)/i.AR.F*(u-p))}}i.G.PM(a)}unbind(){var e=this;ZC.A5("."+e.C.K+"-preview-handler").unbind("mousedown touchstart",e.ZH),ZC.A5("."+e.C.K+"-preview-mask").unbind("click",e.AGF),ZC.A5(document.body).unbind("mousemove touchmove",e.VO),ZC.A5(document.body).unbind("mouseup touchend",e.WR),e.bBind=!1}bind(){var e=this;if(!e.bBind){var t=e.G.K,i=0,a=0;e.AGF=function(i){if(i.preventDefault(),e.G.HE){e.G.HE.C=e.C,e.G.HE.parse();var a=ZC.Q.MM(i),n=ZC.A5("#"+t+"-top").offset();if(-1!==i.target.id.indexOf("preview-mask-x-left")||-1!==i.target.id.indexOf("preview-mask-x-right")){var l=a[0]-n.left-e.AR.iX,r=e.H8-e.IK;l-r/2<0?(e.IK=0,e.H8=r):l+r/2>e.AR.I?(e.IK=e.AR.I-r,e.H8=e.AR.I):(e.IK=ZC._i_(l-r/2),e.H8=ZC._i_(l+r/2))}else{var o=a[1]-n.top-e.AR.iY,s=e.HI-e.LB;o-s/2<0?(e.LB=0,e.HI=s):o+s/2>e.AR.F?(e.LB=e.AR.F-s,e.HI=e.AR.F):(e.LB=ZC._i_(o-s/2),e.HI=ZC._i_(o+s/2))}return e.JI=!1,e.C.OJ=!1,e.update(e.IK,e.H8,e.LB,e.HI),e.zoom(!1),!1}},e.ZH=function(n){if(n.preventDefault(),e.G.HE){e.G.HE.C=e.C,e.G.HE.parse();for(var l=n.target;l&&"BODY"!==l.tagName.toUpperCase();){if(-1!==ZC.Q.TH(l).indexOf("zc-preview-handler"))break;l=l.parentNode}if((ZC.mobile||!(n.which>1))&&l){var r=ZC.Q.MM(n),o=ZC._tx_(e.G.K),s=ZC.A5("#"+t+"-top").offset(),C=(r[0]-s.left)/o[0]-e.AR.iX,A=(r[1]-s.top)/o[1]-e.AR.iY;return-1!==l.id.indexOf("handler-x-left")?e.H7=e.KP:-1!==l.id.indexOf("handler-x-right")?e.H7=e.K2:-1!==l.id.indexOf("handler-y-top")?e.H7=e.LC:-1!==l.id.indexOf("handler-y-bottom")?e.H7=e.JL:-1!==l.id.indexOf("handler-middle")&&(e.H7=e.KL,i=C-e.IK,a=A-e.LB),ZC.A5(document.body).bind("mousemove touchmove",e.VO),ZC.A5(document.body).bind("mouseup touchend",e.WR),e.JI=!0,e.A6A=!1,!1}}},e.VO=function(n){if(e.JI){e.A6A=!0,zingchart.exec(e.G.K,"setmode",{mode:"static,fast"});var l=ZC._tx_(e.G.K),r=ZC.Q.MM(n),o=ZC.A5("#"+t+"-top").offset(),s=(r[0]-o.left)/l[0]-e.AR.iX,C=(r[1]-o.top)/l[1]-e.AR.iY;e.H7===e.KP?e.update(s,e.H8,e.LB,e.HI):e.H7===e.K2?e.update(e.IK,s,e.LB,e.HI):e.H7===e.LC?e.update(e.IK,e.H8,C,e.HI):e.H7===e.JL?e.update(e.IK,e.H8,e.LB,C):e.H7===e.KL&&e.update(s-i,s-i+ZC.A5(e.KL).width(),C-a,C-a+ZC.A5(e.KL).height())}return!1},e.WR=function(){return zingchart.exec(e.G.K,"setmode",{mode:""}),e.JI&&(ZC.A5(document.body).unbind("mousemove touchmove",e.VO),ZC.A5(document.body).unbind("mouseup touchend",e.WR),e.JI=!1,e.C.OJ=!1,e.A6A&&e.zoom(!1),e.A6A=!1),!1},ZC.A5("."+e.C.K+"-preview-handler").bind("mousedown touchstart",e.ZH),ZC.A5("."+e.C.K+"-preview-mask").bind("click",e.AGF),e.bBind=!0}}gc(){ZC.AP.gc(this,["Z","C7","o","I9","JF","C","G","AR","UV","KP","K2","LC","JL","KL","JE","HH","H5","IW","oMask","P4","A40","XO","A5H","WH"])}}class A4I extends D0{constructor(e,t){super(e);var i=this;i.C=e,i.G=e.A,i.JI=!1,i.Z=null,i.BL=0,i.BH=0,i.A7L="",i.bYX="yx"===i.C.AJ.layout,i.AF=i.sTypeE=i.sTypeN="scroll-"+(t||"x"),i.bYX&&(i.AF+="i",i.sTypeE="scroll-xi"===i.AF?"scroll-y":"scroll-x")}parse(){var e,t=this;t.K=t.C.K+"-"+t.sTypeE,t.assign_a([["offset-x","BL"],["offset-y","BH"]]);var i="("+t.C.AF+").",a=t.G.B8;t.B0=new I2(t.C),a.load(t.B0.o,[i+"scroll.bar",i+t.AF+".bar"]),null!==ZC._n_(e=t.o.bar)&&t.B0.append(e),t.B0.parse(),t.B1=new I2(t.C),a.load(t.B1.o,[i+"scroll.handle",i+t.AF+".handle"]),null!==ZC._n_(e=t.o.handle)&&t.B1.append(e),t.B1.parse()}paint(){var e=this,t=e.C.BT("k")[0],i=e.C.BT("v")[0],a=e.C.P;if(("scroll-x"===e.AF||"scroll-xi"===e.AF)&&t.DA===t.W&&t.DU===t.A1||("scroll-y"===e.AF||"scroll-yi"===e.AF)&&i.FX===i.B3&&i.H2===i.BK)return e.unbind(),ZC.A5("#"+e.C.K+"-"+e.AF+"-handle").remove(),ZC.A5("#"+e.C.K+"-"+e.AF+"-bar").remove(),void ZC.Q.IT(e.Z,e.G.AB,e.C.iX,e.C.iY,e.C.I,e.C.F);e.Z=ZC.AK(e.C.K+"-"+e.sTypeN+"-c");var n=ZC.AK(e.G.K+"-top");"scroll-x"===e.AF||"scroll-yi"===e.AF?(e.B0.iX=a.iX+e.BL,e.B0.iY=a.iY+a.F+t.AZ-1+e.BH,e.B0.I=a.I,e.bYX?(e.B1.I=ZC._i_(ZC.BQ(4,e.B0.I*((i.BK-i.B3)/(i.H2-i.FX)))),i.FX===i.B3?i.AW?e.B1.iX=e.B0.iX+e.B0.I-e.B1.I:e.B1.iX=e.B0.iX:i.H2===i.BK?i.AW?e.B1.iX=e.B0.iX:e.B1.iX=e.B0.iX+e.B0.I-e.B1.I:i.AW?e.B1.iX=ZC._i_(e.B0.iX+e.B0.I-e.B1.I-e.B0.I*(i.B3-i.FX)/(i.H2-i.FX)):e.B1.iX=ZC._i_(e.B0.iX+e.B0.I*(i.B3-i.FX)/(i.H2-i.FX))):(e.B1.I=ZC._i_(ZC.BQ(4,e.B0.I*((t.A1-t.W)/(t.DU-t.DA)))),t.DA===t.W?t.AW?e.B1.iX=e.B0.iX+e.B0.I-e.B1.I:e.B1.iX=e.B0.iX:t.DU===t.A1?t.AW?e.B1.iX=e.B0.iX:e.B1.iX=e.B0.iX+e.B0.I-e.B1.I:t.AW?e.B1.iX=ZC._i_(e.B0.iX+e.B0.I-e.B1.I-e.B0.I*(t.W-t.DA)/(t.DU-t.DA)):e.B1.iX=ZC._i_(e.B0.iX+e.B0.I*(t.W-t.DA)/(t.DU-t.DA))),ZC.AK(e.K+"-handle")?(ZC.A5("#"+e.K+"-bar").css("top",e.B0.iY+"px"),ZC.A5("#"+e.K+"-handle").css("left",e.B1.iX+"px").css("top",e.B0.iY+"px").css(ZC._[19],ZC.BQ(15,e.B1.I)+"px"),e.paint_()):(e.AAR=ZC.Q.I7({cls:"zc-abs zc-scroll zc-scroll-x-bar "+e.C.K+"-scroll-x-bar",id:e.K+"-bar",wh:e.B0.I+"/"+e.B0.F,tl:e.B0.iY+"/"+e.B0.iX,opacity:0,p:n}),e.ZV=ZC.Q.I7({cls:"zc-abs zc-scroll zc-scroll-x-handle "+e.C.K+"-scroll-x-handle",id:e.K+"-handle",wh:ZC.BQ(15,e.B1.I)+"/"+e.B0.F,tl:e.B0.iY+"/"+(e.B1.iX-2),background:"#fff",opacity:0,p:n}),e.ZV.style.cursor="pointer",e.paint_(),e.JI||e.bind())):(e.B0.iX=a.iX-e.B0.I-1+e.BL,e.B0.iY=a.iY+e.BH,e.B0.F=a.F,e.bYX?(e.B1.F=ZC._i_(ZC.BQ(4,e.B0.F*((t.A1-t.W)/(t.DU-t.DA)))),t.DA===t.W?t.AW?e.B1.iY=e.B0.iY:e.B1.iY=e.B0.iY+e.B0.F-e.B1.F:t.DU===t.A1?t.AW?e.B1.iY=e.B0.iY+e.B0.F-e.B1.F:e.B1.iY=e.B0.iY:t.AW?e.B1.iY=ZC._i_(e.B0.iY+e.B0.F*(t.W-t.DA)/(t.DU-t.DA)):e.B1.iY=ZC._i_(e.B0.iY+e.B0.F-e.B1.F-e.B0.F*(t.W-t.DA)/(t.DU-t.DA))):(e.B1.F=ZC._i_(ZC.BQ(4,e.B0.F*((i.BK-i.B3)/(i.H2-i.FX)))),i.FX===i.B3?i.AW?e.B1.iY=e.B0.iY:e.B1.iY=e.B0.iY+e.B0.F-e.B1.F:i.H2===i.BK?i.AW?e.B1.iY=e.B0.iY+e.B0.F-e.B1.F:e.B1.iY=e.B0.iY:i.AW?e.B1.iY=ZC._i_(e.B0.iY+e.B0.F*(i.B3-i.FX)/(i.H2-i.FX)):e.B1.iY=ZC._i_(e.B0.iY+e.B0.F-e.B1.F-e.B0.F*(i.B3-i.FX)/(i.H2-i.FX))),ZC.AK(e.K+"-handle")?(ZC.A5("#"+e.K+"-bar").css("left",e.B0.iX+"px"),ZC.A5("#"+e.K+"-handle").css("top",e.B1.iY+"px").css("left",e.B0.iX+"px").css(ZC._[20],ZC.BQ(15,e.B1.F)+"px"),e.paint_()):(e.AAS=ZC.Q.I7({cls:"zc-abs zc-scroll zc-scroll-y-bar "+e.C.K+"-scroll-y-bar",id:e.K+"-bar",wh:e.B0.I+"/"+e.B0.F,tl:e.B0.iY+"/"+e.B0.iX,opacity:0,p:n}),e.ZW=ZC.Q.I7({cls:"zc-abs zc-scroll zc-scroll-y-handle "+e.C.K+"-scroll-y-handle",id:e.K+"-handle",wh:e.B0.I+"/"+ZC.BQ(15,e.B1.F),tl:e.B1.iY-2+"/"+e.B0.iX,background:"#fff",opacity:0,p:n}),e.ZW.style.cursor="pointer",e.paint_(),e.JI||e.bind()))}zoom(e){for(var t,i,a,n=this,l={graphid:n.C.K,zooming:e,scroll:!0},r=n.C.BN,o=n.C.BT("k")[0],s=n.C.BT("v")[0],C=0,A=r.length;C<A;C++)if(t=r[C]){var Z=1===t.L?"":"-"+t.L;if(o.GQ&&"scroll-x"===n.AF&&"k"===t.AF&&!n.bYX){var c=t.A1-t.W;l["zoomx"+Z]=!0,i=(n.B1.iX-n.B0.iX)/n.B0.I,a=(n.B1.iX-n.B0.iX+n.B1.I)/n.B0.I,o.AW?(l["xmin"+Z]=t.DU-ZC._i_(a*(t.DU-t.DA)),l["xmax"+Z]=t.DU-ZC._i_(i*(t.DU-t.DA))):(l["xmin"+Z]=t.DA+ZC._i_(i*(t.DU-t.DA)),l["xmax"+Z]=t.DA+ZC._i_(a*(t.DU-t.DA))),l["xmax"+Z]-l["xmin"+Z]!==c&&(l["xmax"+Z]===t.DU?l["xmin"+Z]=l["xmax"+Z]-c:l["xmax"+Z]=l["xmin"+Z]+c)}else if(s.GQ&&"scroll-y"===n.AF&&"v"===t.AF&&!n.bYX)l["zoomy"+Z]=!0,i=(n.B0.F-(n.B1.iY-n.B0.iY+n.B1.F))/n.B0.F,a=(n.B0.F-(n.B1.iY-n.B0.iY))/n.B0.F,s.AW?(l["ymin"+Z]=t.H2-ZC._f_(a*(t.H2-t.FX)),l["ymax"+Z]=t.H2-ZC._f_(i*(t.H2-t.FX))):(l["ymin"+Z]=t.FX+ZC._f_(i*(t.H2-t.FX)),l["ymax"+Z]=t.FX+ZC._f_(a*(t.H2-t.FX)));else if(o.GQ&&"scroll-xi"===n.AF&&"k"===t.AF&&n.bYX){c=t.A1-t.W;l["zoomx"+Z]=!0,i=(n.B0.F-n.B1.iY+n.B0.iY-n.B1.F)/n.B0.F,a=(n.B0.F-n.B1.iY+n.B0.iY)/n.B0.F,o.AW?(l["xmin"+Z]=t.DU-ZC._i_(a*(t.DU-t.DA)),l["xmax"+Z]=t.DU-ZC._i_(i*(t.DU-t.DA))):(l["xmin"+Z]=t.DA+ZC._i_(i*(t.DU-t.DA)),l["xmax"+Z]=t.DA+ZC._i_(a*(t.DU-t.DA))),l["xmax"+Z]-l["xmin"+Z]!==c&&(l["xmax"+Z]===t.DU?l["xmin"+Z]=l["xmax"+Z]-c:l["xmax"+Z]=l["xmin"+Z]+c)}else s.GQ&&"scroll-yi"===n.AF&&"v"===t.AF&&n.bYX&&(l["zoomy"+Z]=!0,i=(n.B1.iX-n.B0.iX)/n.B0.I,a=(n.B1.iX-n.B0.iX+n.B1.I)/n.B0.I,s.AW?(l["ymin"+Z]=t.H2-ZC._f_(a*(t.H2-t.FX)),l["ymax"+Z]=t.H2-ZC._f_(i*(t.H2-t.FX))):(l["ymin"+Z]=t.FX+ZC._f_(i*(t.H2-t.FX)),l["ymax"+Z]=t.FX+ZC._f_(a*(t.H2-t.FX))))}n.G.PM(l)}paint_(){var e,t,i=this;ZC.Q.IT(i.Z,i.G.AB,i.C.iX,i.C.iY,i.C.I,i.C.F),"scroll-x"===i.AF||"scroll-yi"===i.AF?((e=new I2(i)).K=i.C.K+"-scroll-x-bar",e.copy(i.B0),e.Z=e.C7=i.Z,e.iX=i.B0.iX,e.iY=i.B0.iY,e.I=i.B0.I,e.F=i.B0.F,e.paint(),(t=new I2(i)).K=i.C.K+"-scroll-x-handle",t.copy(i.B1),t.Z=t.C7=i.Z,t.iX=i.B1.iX,t.iY=i.B0.iY+(i.B0.F-i.B1.F)/2-1,t.I=ZC.BQ(15,i.B1.I),t.iX+t.I>i.C.P.iX+i.C.P.I&&(t.iX=i.C.P.iX+i.C.P.I-t.I),t.iX<i.C.P.iX&&(t.iX=i.C.P.iX),t.F=i.B1.F,t.paint(),ZC.A5("#"+i.K+"-handle").css("left",t.iX+"px")):((e=new I2(i)).K=i.C.K+"-scroll-y-bar",e.copy(i.B0),e.Z=e.C7=i.Z,e.iX=i.B0.iX,e.iY=i.B0.iY,e.I=i.B0.I,e.F=i.B0.F,e.paint(),(t=new I2(i)).K=i.C.K+"-scroll-y-handle",t.copy(i.B1),t.Z=t.C7=i.Z,t.iX=i.B0.iX+(i.B0.I-i.B1.I)/2,t.iY=i.B1.iY,t.I=i.B1.I,t.F=ZC.BQ(15,i.B1.F),t.iY+t.F>i.C.P.iY+i.C.P.F&&(t.iY=i.C.P.iY+i.C.P.F-t.F),t.iY<i.C.P.iY&&(t.iY=i.C.P.iY),t.paint(),ZC.A5("#"+i.K+"-handle").css("top",t.iY+"px"))}setScrollingFlag(e){var t=this;if(t.C.OJ=e,t.C.HE&&ZC._b_(t.C.HE.o.shared))for(var i=0;i<t.G.AG.length;i++)t.G.AG[i].HE&&ZC._b_(t.G.AG[i].HE.o.shared)&&(t.G.AG[i].OJ=e)}update(e){var t=this;"scroll-x"===t.AF||"scroll-yi"===t.AF?(t.B1.iX=e,ZC.A5("#"+t.K+"-handle").css("left",e+"px"),t.paint_()):(t.B1.iY=e,ZC.A5("#"+t.K+"-handle").css("top",e+"px"),t.paint_()),t.JI&&(t.setScrollingFlag(!0),t.zoom(!0))}unbind(){var e=this;ZC.A5("."+e.C.K+"-"+e.AF+"-handle").unbind("mousedown touchstart",e.RP),ZC.A5("."+e.C.K+"-"+e.AF+"-bar").unbind("click",e.RR)}overscroll(e){var t=this.C.I3();t.type=e,ZC.AP.C0("overscroll",this.G,t)}bind(){var e=this,t=e.G.K,i=0,a=0;e.RP=function(n){if(n.preventDefault(),!(n.button>1)&&(e.A7L=e.G.KV.join(","),e.G.KV.push(ZC._[38],"skip_objects_tracking",ZC._[39],ZC._[40],ZC._[41]),e.G.HE)){e.G.HE.C=e.C,e.G.HE.parse();for(var l=n.target;l&&"BODY"!==l.tagName.toUpperCase();){if(-1!==ZC.Q.TH(l).indexOf("zc-"+e.AF+"-handle"))break;l=l.parentNode}if((ZC.mobile||!(n.which>1))&&l){var r=ZC.Q.MM(n),o=ZC.A5("#"+t+"-top").offset();if("scroll-x"===e.AF||"scroll-yi"===e.AF){var s=r[0]-o.left;i=s-e.B1.iX}else{var C=r[1]-o.top;a=C-e.B1.iY}return ZC.A5(document.body).bind("mousemove touchmove",e.RQ),ZC.A5(document.body).bind("mouseup touchend",e.NY),e.JI=!0,!1}}},e.RQ=function(n){if(e.JI){e.setScrollingFlag(!1);var l=ZC.Q.MM(n),r=ZC.A5("#"+t+"-top").offset();if("scroll-x"===e.AF||"scroll-yi"===e.AF){var o=l[0]-r.left;o-i<e.B0.iX&&(o<e.B0.iX-15&&e.overscroll("scroll-x-left"),o=e.B0.iX+i),o-i+e.B1.I>e.B0.iX+e.B0.I&&(o>e.B0.iX+e.B0.I+15&&e.overscroll("scroll-x-right"),o=e.B0.iX+e.B0.I+i-e.B1.I),e.update(o-i)}else{var s=l[1]-r.top;s-a<e.B0.iY&&(s<e.B0.iY-15&&e.overscroll("scroll-y-top"),s=e.B0.iY+a),s-a+e.B1.F>e.B0.iY+e.B0.F&&(s>e.B0.iY+e.B0.F+15&&e.overscroll("scroll-y-bottom"),s=e.B0.iY+e.B0.F+a-e.B1.F),e.update(s-a)}}return!1},e.NY=function(t){return e.G.KV=e.A7L.split(","),e.JI&&(ZC.A5(document.body).unbind("mousemove touchmove",e.RQ),ZC.A5(document.body).unbind("mouseup touchend",e.NY),e.JI=!1,e.setScrollingFlag(!1),t&&e.zoom(!1)),!1},e.RR=function(i){e.JI=!1,e.setScrollingFlag(!1);var a=ZC.Q.MM(i),n=ZC.A5("#"+t+"-top").offset();"scroll-x"===e.AF||"scroll-yi"===e.AF?a[0]-n.left>e.B1.iX?e.update(ZC.CX(e.B0.iX+e.B0.I-e.B1.I-2*e.B1.AU,e.B1.iX+(a[0]-n.left-e.B1.iX)/4)):e.update(ZC.BQ(e.B0.iX,a[0]-n.left+(e.B1.iX-a[0]+n.left-e.B1.I)/4)):a[1]-n.top>e.B1.iY?e.update(ZC.CX(e.B0.iY+e.B0.F-e.B1.F-2*e.B1.AU,e.B1.iY+(a[1]-n.top-e.B1.iY)/4)):e.update(ZC.BQ(e.B0.iY,a[1]-n.top+(e.B1.iY-a[1]+n.top-e.B1.F)/4)),e.zoom(!1)},ZC.A5("."+e.C.K+"-"+e.sTypeE+"-handle").bind("mousedown touchstart",e.RP),ZC.A5("."+e.C.K+"-"+e.sTypeE+"-bar").bind("click",e.RR)}}class A3K extends D0{constructor(e,t){super(e);var i=this;i.BC=e,i.JI=!1,i.Z=null,i.A7L="",i.KY=1,i.H3=1,i.AF="scroll-"+(t||"y")}parse(){var e,t=this;t.K=t.BC.K+"-legend-"+t.AF;var i=t.BC.A.G.B8,a="("+t.BC.A.AF+")";t.B0=new I2(t.BC),i.load(t.B0.o,[a+".legend.scroll.bar",t.AF+".bar"]),null!==ZC._n_(e=t.o.bar)&&t.B0.append(e),t.B0.parse(),t.B1=new I2(t.BC),i.load(t.B1.o,[a+".legend.scroll.handle",t.AF+".handle"]),null!==ZC._n_(e=t.o.handle)&&t.B1.append(e),t.B1.parse()}paint(){var e,t=this;if(!t.JI){t.Z=ZC.AK(t.BC.A.K+"-legend-scroll-c");var i=ZC.AK(t.G.K+"-top");"scroll-y"===t.AF?(t.B0.iX=t.BC.iX+t.BC.I-t.B0.I-1,t.B0.iY=t.BC.EM,t.B0.F=t.BC.F-(t.BC.KR?t.BC.KR.F:0)-(t.BC.EM-t.BC.iY),e=Math.ceil(t.BC.B6.length/t.H3-t.BC.EG/t.H3)+1,t.B1.F=t.B0.F/e,t.B1.iY=t.B0.iY,0!==t.BC.D2.min&&(t.B1.iY+=t.BC.D2.min/t.H3*t.B1.F),ZC.AK(t.K+"-legend-handle")?(ZC.A5("#"+t.K+"-legend-handle").css("left",t.B0.iX+"px").css("top",t.B1.iY+"px").css(ZC._[20],t.B1.F-0*t.B1.AU+"px"),ZC.A5("#"+t.K+"-legend-bar").css("left",t.B0.iX+"px").css("top",t.B0.iY+"px"),ZC.A5("#"+t.BC.K+"-frame").css("left",t.BC.iX+"px").css("top",t.BC.EM+"px"),t.paint_()):(t.AAS=ZC.Q.I7({cls:"zc-abs zc-scroll zc-scroll-y-bar "+t.BC.K+"-scroll-y-legend-bar",id:t.K+"-legend-bar",wh:t.B0.I+"/"+t.B0.F,tl:t.B0.iY+"/"+t.B0.iX,background:"#fff",opacity:0,zidx:1,p:i}),t.ZW=ZC.Q.I7({cls:"zc-abs zc-scroll zc-scroll-y-handle "+t.BC.K+"-scroll-y-legend-handle",id:t.K+"-legend-handle",wh:t.B0.I-0*t.B1.AU+"/"+(t.B1.F-0*t.B1.AU),tl:t.B1.iY+"/"+t.B0.iX,background:"#fff",opacity:0,zidx:1,p:i}),t.ZW.style.cursor="pointer",t.paint_())):"scroll-x"===t.AF&&(t.B0.iX=t.BC.iX,t.B0.iY=t.BC.iY+t.BC.F-t.B0.F-1,t.B0.I=t.BC.I,e=Math.ceil(t.BC.B6.length/t.KY-t.BC.EG/t.KY)+1,t.B1.I=t.B0.I/e,t.B1.iX=t.B0.iX,0!==t.BC.D2.min&&(t.B1.iX+=t.BC.D2.min/t.KY*t.B1.I),ZC.AK(t.K+"-legend-handle")?(ZC.A5("#"+t.K+"-legend-handle").css("left",t.B1.iX+"px").css("top",t.B0.iY+"px").css(ZC._[19],t.B1.I-0*t.B1.AU+"px"),ZC.A5("#"+t.K+"-legend-bar").css("left",t.B0.iX+"px").css("top",t.B0.iY+"px"),ZC.A5("#"+t.BC.K+"-frame").css("left",t.BC.iX+"px").css("top",t.BC.EM+"px"),t.paint_()):(t.AAR=ZC.Q.I7({cls:"zc-abs zc-scroll zc-scroll-x-bar "+t.BC.K+"-scroll-x-legend-bar",id:t.K+"-legend-bar",wh:t.B0.I+"/"+t.B0.F,tl:t.B0.iY+"/"+t.B0.iX,background:"#fff",opacity:0,zidx:1,p:i}),t.ZV=ZC.Q.I7({cls:"zc-abs zc-scroll zc-scroll-x-handle "+t.BC.K+"-scroll-x-legend-handle",id:t.K+"-legend-handle",wh:t.B1.I-0*t.B1.AU+"/"+(t.B0.F-0*t.B1.AU),tl:t.B0.iY+"/"+t.B1.iX,background:"#fff",opacity:0,zidx:1,p:i}),t.ZV.style.cursor="pointer",t.paint_())),ZC.move||t.bind()}}paint_(){var e,t,i=this;"scroll-y"===i.AF?((e=new I2(i)).K=i.BC.K+"-scroll-y-legend-bar",e.copy(i.B0),e.Z=i.Z,e.iX=i.B0.iX,e.iY=i.B0.iY,e.I=i.B0.I,e.F=i.B0.F,e.paint(),(t=new I2(i)).K=i.BC.K+"-scroll-y-legend-handle",t.copy(i.B1),t.Z=i.Z,t.iX=i.B0.iX,t.iY=i.B1.iY,t.I=i.B1.I,t.F=i.B1.F,t.paint()):"scroll-x"===i.AF&&((e=new I2(i)).K=i.BC.K+"-scroll-x-legend-bar",e.copy(i.B0),e.Z=i.Z,e.iX=i.B0.iX,e.iY=i.B0.iY,e.I=i.B0.I,e.F=i.B0.F,e.paint(),(t=new I2(i)).K=i.BC.K+"-scroll-x-legend-handle",t.copy(i.B1),t.Z=i.Z,t.iX=i.B1.iX,t.iY=i.B0.iY,t.I=i.B1.I,t.F=i.B0.F,t.paint())}update(e){var t,i,a,n,l,r,o=this,s=o.BC;if("scroll-y"===o.AF){if(e<o.B1.iY&&!1,e===o.B1.iY)return;o.B1.iY=e,ZC.A5("#"+o.K+"-legend-handle").css("top",e+"px"),t=o.B1.iY-o.B0.iY,n=Math.ceil(s.B6.length/o.H3-s.EG/o.H3)+1,i=o.B0.F/n,r=o.H3}else if("scroll-x"===o.AF){if(e>o.B1.iX&&!1,e===o.B1.iX)return;o.B1.iX=e,ZC.A5("#"+o.K+"-legend-handle").css("left",e+"px"),t=o.B1.iX-o.B0.iX,n=Math.ceil(s.B6.length/o.KY-s.EG/o.KY)+1,i=o.B0.I/n,r=o.KY}a=Math.round(t/i),l=s.B6.length-s.EG,s.B6.length%r&&(l+=r-s.B6.length%r),s.D2.min=Math.min(a*r,l),s.D2.max=s.D2.min+s.EG,s.VG(),s.clear(!1),s.parse(),s.paint(),o.paint_(),o.bind()}unbind(){var e=this;ZC.A5("."+e.BC.K+"-"+e.AF+"-legend-handle").unbind("mousedown touchstart",e.RP),ZC.A5("."+e.BC.K+"-"+e.AF+"-legend-bar").unbind("click",e.RR)}bind(){var e=this,t=e.G.K,i=0,a=0;e.RP=function(n){if(n.preventDefault(),!(n.button>1)){for(var l=n.target;l&&"BODY"!==l.tagName.toUpperCase();){if(-1!==ZC.Q.TH(l).indexOf("zc-"+e.AF+"-handle"))break;l=l.parentNode}if((ZC.mobile||!(n.which>1))&&l){var r=ZC.Q.MM(n),o=ZC.A5("#"+t+"-top").offset();if("scroll-y"===e.AF){var s=r[1]-o.top;a=s-e.B1.iY}else if("scroll-x"===e.AF){var C=r[0]-o.left;i=C-e.B1.iX}return ZC.A5(document.body).bind("mousemove touchmove",e.RQ),ZC.A5(document.body).bind("mouseup touchend",e.NY),e.JI=!0,!1}}},e.RQ=function(n){if(n.preventDefault(),e.JI){var l=ZC.Q.MM(n),r=ZC.A5("#"+t+"-top").offset();if("scroll-y"===e.AF){var o=l[1]-r.top;o-a<e.B0.iY&&(o=e.B0.iY+a),o-a+e.B1.F>e.B0.iY+e.B0.F&&(o=e.B0.iY+e.B0.F+a-e.B1.F),e.update(o-a)}else if("scroll-x"===e.AF){var s=l[0]-r.left;s-i<e.B0.iX&&(s=e.B0.iX+i),s-i+e.B1.I>e.B0.iX+e.B0.I&&(s=e.B0.iX+e.B0.I+i-e.B1.I),e.update(s-i)}}return!1},e.NY=function(){return e.G.KV=e.A7L.split(","),e.JI&&(ZC.A5(document.body).unbind("mousemove touchmove",e.RQ),ZC.A5(document.body).unbind("mouseup touchend",e.NY),e.JI=!1),!1},e.A4F=function(t){(t.detail?-120*t.detail:t.wheelDelta)/120>0?e.update(ZC.BQ(e.B0.iY,e.B1.iY-e.B1.F)):e.update(ZC.CX(e.B0.iY+e.B0.F-e.B1.F,e.B1.iY+e.B1.F))},e.RR=function(i){e.JI=!0;var a=ZC.Q.MM(i),n=ZC.A5("#"+t+"-top").offset();"scroll-y"===e.AF?a[1]-n.top>e.B1.iY?e.update(ZC.CX(e.B0.iY+e.B0.F-e.B1.F,e.B1.iY+e.B1.F)):e.update(ZC.BQ(e.B0.iY,e.B1.iY-e.B1.F)):"scroll-x"===e.AF&&(a[0]-n.left>e.B1.iX?e.update(ZC.CX(e.B0.iX+e.B0.I-e.B1.I,e.B1.iX+e.B1.I)):e.update(ZC.BQ(e.B0.iX,e.B1.iX-e.B1.I))),e.JI=!1},ZC.A5("."+e.BC.K+"-"+e.AF+"-legend-handle").bind("mousedown touchstart",e.RP),ZC.A5("."+e.BC.K+"-"+e.AF+"-legend-bar").bind("click",e.RR)}}class A28 extends DT{constructor(e){super(e);var t=this;t.ON="legend",t.B6=null,t.QG=null,t.NQ="x1",t.IP="hide",t.RC="",t.Q2="",t.VA=!1,t.VL=!1,t.U0="none",t.UW="header",t.EG=9999,t.DD=null,t.BR=null,t.ZU=null,t.A2=null,t.NW=null,t.FQ=null,t.KR=null,t.QN=0,t.ML=0,t.Z4=!0,t.EM=0,t.GR=0,t.sAlign="",t.K1="",t.D2={enabled:!1,min:-1,max:-1,page:-1,pages:-1},t.MA=!1,t.NF=!1,t.NG=-1,t.Q1=!1,t.A5I=1,t.XE=0,t.LK=!1,t.Y4=!1,t.ZA=!1,t.Y7=[]}highlightItem(e){var t,i,a=this,n=!1,l=ZC.move,r=a.LK;-1!==e&&(r=a.LK||a.A.AY.A4[e].LK),a.o.item&&null!==ZC._n_(t=a.o.item["highlight-item"])&&(n=ZC._b_(t),null===ZC._n_(a.o["highlight-legend"])&&null===a.A.AY.A4[e].o["highlight-legend"]&&(r=n)),(n||r)&&(n&&(a.D["highlight-item"]=e),r&&(a.D["highlight-legend"]=ZC._i_(e)),i=a.scrollTo(ZC._i_(e)),a.VG(),a.clear(!0,i),a.Z4=!0,a.parse(),a.fixPlacement(!0),a.paint(),ZC.move=l)}scrollTo(e){var t,i,a=this,n=!1;return e>=0&&(e<a.D2.min||e>=a.D2.max)&&(n=!0,"scroll"===a.U0?(e%(i="scroll-y"===a.DD.AF?a.DD.H3:a.DD.KY)&&(e-=e%i),a.D2.min=e,a.D2.max=e+a.EG,a.D2.max>a.B6.length&&(a.D2.min=a.B6.length-a.EG,a.B6.length%i&&(a.D2.min=a.D2.min+(i-a.B6.length%i)),a.D2.max=a.B6.length)):"page"===a.U0&&(t=Math.floor(e/a.EG),a.D2.min=t*a.EG,a.D2.max=a.D2.min+a.EG,a.D2.page=t+1)),n}parse(){var e,t,i,a,n=this;if(n.D["force-margins"]=!0,n.QN=0,n.ML=0,null!==ZC._n_(e=n.A.A.D["graph-"+n.A.K+"-legend-info"])&&(n.o.x=e.x-n.A.iX,n.o.y=e.y-n.A.iY),ZC.move)n.FQ&&n.FQ.parse(),n.KR&&n.KR.parse();else{a=n.A.G.B8;var l="("+n.A.AF+")";super.parse(),n.assign_a([["collapse","MA","b"],["minimize","VA","b"],["draggable","VL","b"],["shared","Q1","b"],["overflow","U0"],["max-items","EG","i"],["group","A5I","i"],["drag-handler","UW"],["highlight-plot","XE","b"],["highlight-legend","LK","b"],["align","sAlign"],["vertical-align","K1"]]),n.MA&&!n.VA&&(n.MA=!1),zingchart.DEV.MEDIARULES&&(n.D["forced-align-position"]||(n.alignPosition({align:n.sAlign,"vertical-align":n.K1,layout:n.NQ}),n.D["forced-align-position"]=!0)),n.XE&&null===ZC._n_(n.o["highlight-legend"])&&(n.LK=n.XE),n.BR=new DT(n),a.load(n.BR.o,l+".legend.item"),n.o.item&&null===ZC._n_(n.o.item.visible)&&(n.o.item.visible=!0),n.BR.append(n.o.item),n.BR.parse(),n.ZU=new DT(n),a.load(n.ZU.o,l+".legend.item-off"),n.o["item-off"]&&null===ZC._n_(n.o["item-off"].visible)&&(n.o["item-off"].visible=!0),n.ZU.append(n.o["item-off"]),n.ZU.parse(),n.A2=new DW(n),a.load(n.A2.o,l+".legend.marker"),n.o.marker&&null===ZC._n_(n.o.marker.visible)&&(n.o.marker.visible=!0),n.A2.append(n.o.marker),n.A2.D.type="default",n.A2.D["show-marker"]=!0,n.A2.D["show-line"]=!1,null!==ZC._n_(e=n.A2.o.type)&&(n.A2.D.type=e),null!==ZC._n_(e=n.A2.o["show-line"])&&(n.A2.D["show-line"]=ZC._b_(e)),null!==ZC._n_(e=n.BR.o["marker-style"])&&(n.A2.D.type=e),null!==ZC._n_(e=n.BR.o["show-line"])&&(n.A2.D["show-line"]=ZC._b_(e)),null!==ZC._n_(e=n.BR.o["show-marker"])&&(n.A2.o.visible=ZC._b_(e)),n.A2.parse(),n.NW=new DW(n),a.load(n.NW.o,l+".legend.marker-off"),n.o["marker-off"]&&(n.o["marker-off"].visible=!0),n.NW.append(n.o["marker-off"]),n.NW.D.type="default",n.NW.D["show-marker"]=!0,n.NW.D["show-line"]=!1,null!==ZC._n_(e=n.NW.o.type)&&(n.NW.D.type=e),null!==ZC._n_(e=n.NW.o["show-line"])&&(n.NW.D["show-line"]=ZC._b_(e)),null!==ZC._n_(e=n.BR.o["marker-style"])&&(n.NW.D.type=e),null!==ZC._n_(e=n.BR.o["show-line"])&&(n.NW.D["show-line"]=ZC._b_(e)),null!==ZC._n_(e=n.BR.o["show-marker"])&&(n.NW.o.visible=ZC._b_(e)),n.NW.parse(),(null!==ZC._n_(e=n.o.header)||n.VL||n.VA)&&(n.FQ=new DT(n),n.FQ.ON="legendheader",n.FQ.GO="zc-legend-item "+n.K+"-header",n.FQ.K=n.K+"-header",a.load(n.FQ.o,l+".legend.header"),n.FQ.o.text=n.FQ.o.text||" ",n.FQ.append(e),n.FQ.parse(),n.FQ.AM||(n.FQ=null)),null!==ZC._n_(e=n.o.footer)&&(n.KR=new DT(n),n.KR.ON="legendfooter",n.KR.GO="zc-legend-item "+n.K+"-footer",n.KR.K=n.K+"-footer",a.load(n.KR.o,l+".legend.footer"),n.KR.append(e),n.KR.parse(),n.KR.AM||(n.KR=null));var r=n.A.AY.A4;null!==ZC._n_(e=n.o.layout)?n.NQ=e:25*r.length>n.A.F&&(n.NQ="x"+Math.ceil(25*r.length/n.A.F)),null!==ZC._n_(e=n.o[ZC._[54]])&&(n.IP=e),n.RC=n.Q2=n.IP,null!==ZC._n_(n.o.item)&&null!==ZC._n_(e=n.o.item[ZC._[54]])&&(n.RC=e),null!==ZC._n_(n.o.marker)&&null!==ZC._n_(e=n.o.marker[ZC._[54]])&&(n.Q2=e);var o=function(e){if(r[t]&&r[t].FM(0)){var i=ZC.AP.OF(n.BR.o,r[t].o);e=r[t].FM(0).F0(e,i)}return e},s=[];for(n.B6=[],t=0,i=r.length;t<i;t++){var C=n.A.AY.ME[t],A=new DT(n);A.copy(n.BR),A.append(r[C].o["legend-item"]),null===ZC._n_(A.o.text)&&null!==ZC._n_(e=r[C].A6K)&&(A.o.text=e),null===ZC._n_(A.o.text)&&null!==ZC._n_(e=r[C].AT)&&(A.o.text=e),A.AT=null===ZC._n_(A.o.text)?"Series "+(C+1):A.o.text,A.D.order=C,A.D.index=C,null!==ZC._n_(r[C].o["legend-item"])&&null!==ZC._n_(e=r[C].o["legend-item"].order)&&(A.D.order=ZC._i_(e)),s.push([t,C,A.D.order]),-1!==A.AT.indexOf("%")&&(A.F0=o),A.parse(),n.B6.push(A)}for(s.sort(function(e,t){return e[2]-t[2]}),t=0;t<s.length;t++)s[t][2]=t,r[s[t][1]].o["legend-item"]=r[s[t][1]].o["legend-item"]||{},r[s[t][1]].o["legend-item"].order=s[t][2],n.B6[s[t][0]].D.order=s[t][2];(e=n.A.D["legend-info"])&&(n.NF=e.collapsed)}if(n.B6&&n.A2){"page"===n.U0?((e=n.A.D["legend-info"])?(n.D2.min=e.min,n.D2.max=e.max,n.D2.page=e.page):(n.D2.min=0,n.D2.max=n.EG,n.D2.page=1),n.D2.pages=Math.ceil(n.B6.length/n.EG),n.D2.page>n.D2.pages&&(n.D2.page=n.D2.pages,n.D2.min=(n.D2.page-1)*n.EG,n.D2.max=n.D2.page*n.EG-1),n.D2.page=ZC.CX(n.D2.page,n.D2.pages)):"scroll"===n.U0?(e=n.A.D["legend-info"])?(n.D2.min=e.min,n.D2.max=e.max,n.D2.page=e.page):(n.D2.min=0,n.D2.max=n.EG,n.D2.page=1):(n.D2.min=0,n.D2.max="hidden"===n.U0?n.EG:n.B6.length,n.D2.page=1),n.VG(!1),n.B6.sort(function(e,t){return e.D.order-t.D.order}),n.o["reverse-series"]&&n.B6.reverse();var Z=.9*n.A.I;null!==ZC._n_(n.o[ZC._[19]])&&(Z=n.I);var c=0,p=0,u=-ZC.MAX,h=-ZC.MAX,_=n.A2.D["show-line"]?3:2,d=0,f=1,g=1;if("float"===n.NQ){for(t=0,i=n.B6.length;t<i;t++)if(d+=n.B6[t].AM?1:0,!(t<n.D2.min||t>=n.D2.max||n.NF)&&n.B6[t].AM){var B=n.B6[t].I+n.B6[t].DV+n.B6[t].E6+_*n.B6[t].DF;h=ZC.BQ(h,n.B6[t].F+n.B6[t].E7+n.B6[t].DN),c+B>Z?(u=ZC.BQ(u,c),p+=h,c=B,h=ZC.BQ(h,n.B6[t].F+n.B6[t].E7+n.B6[t].DN)):c+=B}u=ZC.BQ(u,c),h!==-ZC.MAX&&(p+=h),u!==-ZC.MAX&&(c=u)}else{var v=0;for(t=0,i=n.B6.length;t<i;t++)d+=n.B6[t].AM?1:0,t<n.D2.min||t>=n.D2.max||n.NF||(v+=n.B6[t].AM?1:0);var m=ZC.AQ.A2X(n.NQ,v);for(f=m[0],g=m[1],t=0,i=n.B6.length;t<i;t++)(t<n.D2.min||t>=n.D2.max||n.NF)&&("scroll"!==n.U0||d<=n.EG)||n.B6[t].AM&&(u=ZC.BQ(u,n.B6[t].I+n.B6[t].DV+n.B6[t].E6+_*n.B6[t].DF),h=ZC.BQ(h,n.B6[t].F+n.B6[t].E7+n.B6[t].DN),1===g&&(p+=n.B6[t].F+n.B6[t].E7+n.B6[t].DN));c=g*u,p=f*h}if("page"===n.U0&&d>n.EG&&(n.D2.enabled=!0),"scroll"===n.U0&&d>n.EG&&(n.DD||(!f||f>g?(n.DD=new A3K(n,"y"),a.load(n.DD.o,".scroll-y")):(n.DD=new A3K(n,"x"),a.load(n.DD.o,".scroll-x")),n.DD.append(n.o.scroll),n.DD.KY=f,n.DD.H3=g,n.DD.parse()),n.NF||("scroll-y"===n.DD.AF?c+=n.DD.B0.I:p+=n.DD.B0.F)),n.FQ){var b=n.FQ.I;n.VL&&"icon"===n.UW?(b+=15,n.VA&&(b+=25)):n.VA&&(b+=15),c=ZC.BQ(c,b)}n.KR&&(c=ZC.BQ(c,n.KR.I));var D=!1,K=!1;if(null===ZC._n_(n.o[ZC._[19]])&&(n.o[ZC._[19]]=c,D=!0),null===ZC._n_(n.o[ZC._[20]])&&(n.o[ZC._[20]]=p,K=!0),n.iX=-1,n.iY=-1,!ZC.move&&n.FQ&&null!==ZC._n_(e=n.A.A.D["legend"+n.A.L+"-xy-ratio"])){n.locate();var E=n.I+n.EO+n.FP,F=n.F+n.FO+n.FT,I=n.Q1?n.A.A:n.A;n.iX=I.I*e[0],n.iX=ZC.BQ(n.iX,1.1),n.o.x=n.iX=ZC.CX(n.iX,I.I-E-2),n.iY=(I.F-n.FQ.F)*e[1],n.iY=ZC.BQ(n.iY,1.1),n.o.y=n.iY=ZC.CX(n.iY,I.F-F-n.FQ.F-2)}if(n.locate(),null!==ZC._n_(n.o.position)&&typeof n.D["position-info"]!==ZC._[31]?(n.D["position-info"][0]>.5&&(n.QN+=n.EO+n.FP),n.D["position-info"][1]>.5?n.ML+=n.FO+n.FT:(n.FQ&&(n.ML-=n.FQ.F),n.KR&&(n.ML-=n.KR.F),n.D2&&n.D2.enabled&&(n.ML-=20))):((0===n.A.iX||n.iX+n.I/2>n.A.iX+n.A.I/2)&&(n.QN+=n.EO+n.FP),(0===n.A.iY||n.iY+n.F/2>n.A.iY+n.A.F/2)&&(n.ML+=n.FO+n.FT)),!ZC.move&&(e=n.A.A.D["graph-"+n.A.K+"-legend-info"])&&(e.x&&(n.iX=e.x),e.y&&(n.iY=e.y)),n.GR=n.F,n.EM=n.iY,n.FQ&&(n.F+=n.FQ.F,n.EM+=n.FQ.F,n.ML+=n.FQ.F),n.KR&&(n.F+=n.KR.F,n.ML+=n.KR.F),n.D2.enabled&&!n.NF){var x=new DT(n);x.AT=" ",x.append(n.o["page-status"]),null!==ZC._n_(x.o.text)&&""!==x.o.text||(x.o.text="#"),x.parse(),n.F+=x.F+4,n.ML+=x.F+4}D&&(n.o[ZC._[19]]=null),K&&(n.o[ZC._[20]]=null),n.NF||(n.I+=n.EO+n.FP,n.F+=n.FO+n.FT),n.D["default-width"]&&(n.I=n.D["default-width"])}}alignPosition(e){var t=this;if(null!==ZC._n_(e)){var i=t.A.G.B8.B8.graph.legend,a=e.align||i.align,n=e["vertical-align"]||i["vertical-align"],l=e.layout||i.layout;(a||n)&&("center"===a?(null===ZC._n_(t.o.layout)&&(l=t.o.layout="horizontal"),t.o.position="50% "):t.o.position="left"===a?"0% ":"100% ",t.o.position+="middle"===n?"50%":"bottom"===n?"100%":"0%","horizontal"!==l&&"middle"!==n||(t.o["adjust-layout"]=!0))}}VG(e){var t=this;typeof e===ZC._[31]&&(e=!0),t.A.D["legend-info"]={collapsed:t.NF,min:t.D2.min,max:t.D2.max,page:t.D2.page},e&&(t.A.A.D["graph-"+t.A.K+"-legend-info"]={x:t.iX,y:t.iY})}clear(e,t){null===ZC._n_(e)&&(e=!1),null===ZC._n_(t)&&(t=!1);var i=this,a=i.A.K+"-legend-",n=null;ZC.A5("."+a+"item",n).remove(),ZC.A5("."+a+"header",n).remove(),ZC.A5("."+a+"footer",n).remove(),ZC.A5("#"+a+"page-status",n).remove(),e&&!t||(ZC.move||i.unbind(),ZC.A5("."+a+"page-area",n).remove(),ZC.A5("."+a+"header-area",n).remove(),ZC.A5("."+a+"item-area",n).remove(),ZC.A5("."+a+"marker-area",n).remove()),ZC.move?ZC.Q.IT(ZC.AK(a+"c"),i.A.G.AB,i.A.iX,i.A.iY,i.A.I,i.A.F):ZC.Q.IT(ZC.AK(a+"c"),i.A.G.AB,i.iX-2*i.AU-2*i.JX,i.iY-2*i.AU-2*i.JX,i.I+4*i.AU+4*i.JX,i.F+4*i.AU+4*i.JX),i.DD&&ZC.Q.IT(ZC.AK(a+"scroll-c"),i.A.G.AB,i.A.iX,i.A.iY,i.A.I,i.A.F)}unbind(){var e=this;ZC.A5("#"+e.K+"-frame").die(ZC.Q.BX("mouseover"),e.zc_legend_mouseover).die(ZC.Q.BX("mouseout"),e.zc_legend_mouseout),ZC.A5("#"+e.K+"-move-area").die(ZC.Q.BX(ZC._[47]),e.ZQ),ZC.A5("#"+e.K+"-minimize-area").die(ZC.Q.BX("click"),e.YK),ZC.A5("."+e.K+"-page-area").die(ZC.Q.BX("click"),e.ZI),e.DD&&e.DD.unbind(),e.BR&&e.BR.o.reorder&&ZC.A5("."+e.A.K+"-legend-item-area").die(ZC._[47],e.WS)}fixPlacement(e){var t=this;if(t.Z4&&null===ZC._n_(t.o.y)||e){if(!t.o.position&&e||(t.iX-=t.QN),t.iX<t.DV&&(t.DV<t.E6||-2===t.E6)&&(t.iX=t.DV),!t.o.position&&e||(t.iY-=t.ML,t.EM-=t.ML),t.iY<t.E7&&(t.E7<t.DN||-2===t.DN)){var i=t.EM-t.iY;t.iY=t.E7,t.EM=t.E7+i}t.Z4=!1}}EC(e){var t=this;t.FQ&&t.FQ.EC(e),t.KR&&t.KR.EC(e);for(var i=0;i<t.Y7.length;i++)t.Y7[i].EC(e)}paint(e){var t,i,a,n,l,r,o,s,C,A,Z,c,p,u,h,_,d=this;if(d.AM&&(d.D["default-width"]||(d.D["default-width"]=d.I),d.B6)){var f=ZC.AK(d.G.K+"-top"),g=d.A.AY.A4,B=0;for(r=0,o=d.B6.length;r<o;r++)r<d.D2.min||r>=d.D2.max||d.NF||(B+=d.B6[r].AM?1:0);d.A5G=!0,super.paint(),d.FQ&&(d.FQ.iX=d.iX,d.FQ.iY=d.iY,d.FQ.I=d.I,d.FQ.Z=d.FQ.C7=d.Z,d.FQ.paint(),ZC.move||"canvas"!==d.A.A.AB&&d.FQ.EC(),d.VL&&"icon"===d.UW&&((a=new DW(d)).Z=d.Z,a.B7="#000",a.AZ=1,a.DP="line",a.append(d.o.icon),n=d.FQ.iX+d.FQ.I-10,l=d.FQ.iY+d.FQ.F/2,a.E=[[n-7,l],[n+7,l],null,[n,l-7],[n,l+7],null,[n-6,l-1],[n-6,l+1],null,[n-5,l-2],[n-5,l+2],null,[n+6,l-1],[n+6,l+1],null,[n+5,l-2],[n+5,l+2],null,[n-1,l-6],[n+1,l-6],null,[n-2,l-5],[n+2,l-5],null,[n-1,l+6],[n+1,l+6],null,[n-2,l+5],[n+2,l+5]],a.parse(),a.paint()),d.VA&&((i=new DW(d)).Z=d.Z,i.B7=ZC.AP.AAO(d.A0,"#fff","#000"),i.AZ=1,i.append(d.o.icon),i.DP="line",n=d.FQ.iX+d.FQ.I-10-(d.VL&&"icon"===d.UW?20:0),l=d.FQ.iY+d.FQ.F/2,i.E=[[n-7,l-2],[n+2,l-2],[n+2,l+7],[n-7,l+7],[n-7,l-2],[n+2,l-2],null,[n-4,l-5],[n+5,l-5],[n+5,l+4],[n-4,l+4],[n-4,l-5],[n+5,l-5]],i.parse(),i.paint())),d.KR&&(d.KR.iX=d.iX,d.KR.iY=d.iY+d.F-d.KR.F,d.KR.I=d.I,d.KR.Z=d.KR.C7=d.Z,d.KR.paint(),ZC.move||"canvas"!==d.A.A.AB&&d.KR.EC());var v=ZC.AQ.A2X(d.NQ,B),m=v[0],b=v[1],D=d.I/b,K=d.GR/m,E=0,F=0;d.QG=[];var I,x=0,y=-ZC.MAX,X=d.A2.D["show-line"]?3:2,G=null,Y=function(t){var i=t;if(null===ZC._n_(e)&&(e=0),g[I]&&g[I].R[e]){var a=ZC.AP.OF(d.BR.o,g[I].o);t=g[I].FM(e).F0(t,a)}return d.Y4=d.Y4||t!==i,t},w=0;for(d.Y4=!1,r=0,o=d.B6.length;r<o;r++)if(!(r-w<d.D2.min||r-w>=d.D2.max||d.NF)){var M=new DT(d);M.copy(d.B6[r]),d.D["highlight-legend"]===r&&(M.append({bold:!0}),null!==ZC._n_(d.o.item)&&M.append(d.o.item["highlight-state"])),I=M.D.index;var L=new DT(d);L.ON="legenditem",L.K=d.K+"-item_"+I,L.GO="zc-legend-item "+d.K+"-item",L.copy(M),d.A.D["plot"+I+".visible"]&&"off"!==g[I].o["legend-status"]||L.append(d.ZU.o),L.append(g[I].o["legend-item"]),L.F0=Y,L.parse(),L.AM?("float"===d.NQ?(y=ZC.BQ(y,M.F),null===ZC._n_(G)?(M.iX=d.iX+d.EO+M.DV+X*M.DF,M.iY=d.EM+d.FO+M.E7,x=d.EM):(M.iX=G.iX+G.I+G.E6+M.DV+X*M.DF,ZC._i_(M.iX+M.I+M.E6)>ZC._i_(d.iX+d.I)&&(M.iX=d.iX+d.EO+M.DV+X*M.DF,x+=y+M.E7+M.DN,y=-ZC.MAX),M.iY=x+d.FO+M.E7)):(M.iX=d.iX+(0===F?d.EO:0)+F*D+M.DV+X*M.DF,M.iY=d.EM+d.FO+E*K+M.E7,++F===b&&(F=0,E++)),G=M,L.iX=M.iX=ZC._i_(M.iX),L.iY=M.iY=ZC._i_(M.iY),L.Z=L.C7=d.Z,L.iX+=d.BL,L.iY+=d.BH,I===d.NG&&(d.D["calculate-y"]&&(d.D["calculate-y"]=!1,d.D["dragged-offset-y"]=d.D["dragged-y"]-L.iY),L.iY=d.D["dragged-y"]-d.D["dragged-offset-y"]-L.DF/4),L.paint(),typeof d.D.showhide!==ZC._[31]&&null!==ZC._n_(d.D.showhide)||ZC.move||("canvas"!==d.A.A.AB?L.EC():d.Y7.push(L))):w++;var P=d.A2.D.type;null!==ZC._n_(t=g[I].o["legend-marker"])&&null!==ZC._n_(t.type)&&(P=t.type);var O,R=!1;switch("match"!==P&&"inherit"!==P||(R=!0,P=null!==ZC._n_(t=g[I].A2.o.type)?t:"default"),-1!==ZC.AV(["default","square"],P)?O=new I2(d):(O=new DW(d)).DP=P,O.ON="legendmarker",O.append(d.A2.o),d.A.D["plot"+I+".visible"]&&"off"!==g[I].o["legend-status"]||O.append(d.NW.o),O.NE=g[I].NE,g[I].AF){case"pie":case"pie3d":case"nestedpie":case"vbar":case"vbar3d":case"hbar":case"hbar3d":case"vbullet":case"hbullet":case"area":case"area3d":case"gauge":case"vfunnel":case"hfunnel":case"venn":O.A0=g[I].A0,O.AE=g[I].AE,O.GU=g[I].GU,O.HQ=g[I].HQ;break;case"scatter":case"hscatter":case"bubble":case"hbubble":O.A0="-1"!==g[I].A2.A0?g[I].A2.A0:g[I].A0,O.AE="-1"!==g[I].A2.AE?g[I].A2.AE:g[I].AE,O.GU=""!==g[I].A2.GU?g[I].A2.GU:g[I].GU,O.HQ=""!==g[I].A2.HQ?g[I].A2.HQ:g[I].HQ;break;default:O.A0=g[I].B7,O.AE=g[I].B7}"line"!==O.DP&&"area"!==O.DP||(O.B7=O.A0,O.AZ=2),R&&O.append(g[I].A2.o),O.o["line-style"]="solid",O.o.type=O.DP,O.append(g[I].o["legend-marker"]),R&&(O.o.type=O.DP),O.D["show-marker"]=!0,O.D["show-line"]=!1,null!==ZC._n_(t=O.o["show-line"])&&(O.D["show-line"]=ZC._b_(t)),null!==ZC._n_(t=L.o["show-line"])&&(O.D["show-line"]=ZC._b_(t)),null!==ZC._n_(t=L.o["show-marker"])&&(O.o.visible=ZC._b_(t)),-1!==ZC.AV(["default","square"],P)&&null!==ZC._n_(t=O.o[ZC._[21]])&&(null===ZC._n_(O.o[ZC._[19]])&&(O.o[ZC._[19]]=2*ZC._i_(t)),null===ZC._n_(O.o[ZC._[20]])&&(O.o[ZC._[20]]=2*ZC._i_(t))),O.K=d.K+"-marker_"+I,O.Z=O.C7=d.Z,O.iX=L.iX-X*L.DF+(X-1)*L.DF/2+L.DF/2,O.iY=L.iY+(L.F-L.DF)/2+L.DF/2,O.parse(),d.D["highlight-legend"]===r&&(O.append({size:O.AI+1,width:O.I+2,height:O.F+2}),g[I]&&g[I].R[e]&&g[I].R[e].GL&&O.append({A0:g[I].R[e].GL.A0,AE:g[I].R[e].GL.AE}),null!==ZC._n_(d.o.marker)&&O.append(d.o.marker["highlight-state"]),O.parse()),"line"===O.DP?(O.o.points=[[O.iX-1.75*O.AI,O.iY],[O.iX+1.75*O.AI,O.iY]],O.parse()):"area"===O.DP&&(O.o.points=[[O.iX-1.75*O.AI,O.iY+O.AI],[O.iX+1.75*O.AI,O.iY+O.AI],[O.iX+1*O.AI,O.iY-O.AI/2],[O.iX,O.iY],[O.iX-1.25*O.AI,O.iY-O.AI],[O.iX-1.75*O.AI,O.iY+O.AI]],O.parse());var Q=O.iX+O.BL,T=O.iY+O.BH;if(-1!==ZC.AV(["default","square"],P)&&(O.iX-=O.I/2,O.iY-=O.F/2),d.A.D["plot"+I+".visible"]&&"off"!==g[I].o["legend-status"]||(O.C5/=4),L.AM&&O.D["show-line"]){var k=ZC.Q.E9(d.Z,d.A.G.AB),N=new D0(d);N.Z=d.Z,N.copy(g[I]),N.o["line-style"]=d.A2.GE,N.append(g[I].o),N.append(d.A2.o),N.append(g[I].o["legend-item"]),N.append(g[I].o["legend-marker"]),N.parse(),d.A.D["plot"+I+".visible"]||(N.C5=.25);var H=[],z=O.AM?2:1;s="box"===O.DP?O.I/2:O.AI,H.push([Q-z*s-(N.AZ>1?1:0),T-(N.AZ>1?.5:0)]),H.push([Q+z*s,T-(N.AZ>1?.5:0)]),N.CY=!0,ZC.CR.paint(k,N,H)}I===d.NG&&(O.iY=d.D["dragged-y"]-d.D["dragged-offset-y"]/2),O.AM&&L.AM&&O.paint(),d.QG.push(O);var V=!0;if(null!==ZC._n_(t=d.BR.o.toggle)&&(V=ZC._b_(t)),d.D["item.toggle"]=V,(L.AM||O.AM)&&-1===ZC.AV(d.A.G.KV,ZC._[41])){var J=O.BL+("box"===O.DP?O.iX+O.I/2:O.iX),S=O.BH+("box"===O.DP?O.iY+O.F/2:O.iY);s="box"===O.DP?O.I/2:O.AI,C="box"===O.DP?O.F/2:O.AI;var W=(O.D["show-line"]?2:1)*s;ZC.AK(L.K+"-area")||(O.AM&&"disabled"!==d.Q2&&"disabled"!==O.o[ZC._[54]]&&(ZC.AK(O.K+"-area")||ZC.Q.I7({cls:d.K+"-marker-area zc-legend-marker-area zc-abs",id:O.K+"-area",wh:2*W+"/"+2*C,tl:S-C+"/"+(J-W),opacity:0,background:"#fff",cursor:O.IZ,p:f,zidx:1})),L.AM&&"disabled"!==d.RC&&"disabled"!==L.o[ZC._[54]]&&(ZC.AK(L.K+"-area")||ZC.Q.I7({cls:d.K+"-item-area zc-legend-item-area zc-abs",id:L.K+"-area",wh:L.I+"/"+L.F,tl:L.iY+L.BH+"/"+(L.iX+L.BL),opacity:0,background:"#fff",cursor:L.IZ,p:f,zidx:1})))}}if(d.DD&&!d.NF&&(d.DD.paint(),ZC.AK(d.K+"-scroll-c").style.display="block"),d.DD&&d.NF&&(ZC.AK(d.K+"-scroll-c").style.display="none"),d.D2.enabled&&!d.NF){var U=new DT(d);U.Z=U.C7=d.Z,U.K=d.K+"-page-status",U.AT=ZC.HN["legend-pagination"].replace("%page%",d.D2.page).replace("%pages%",d.D2.pages),U.append(d.o["page-status"]),U.parse(),d.I<U.I+48&&(U.AT=d.D2.page+"/"+d.D2.pages,U.parse()),U.iX=d.iX+d.I/2-U.I/2,U.iY=d.iY+d.F-(d.KR?d.KR.F:0)-U.F-4,U.AM&&U.paint();var j=d.A.G.B8,q="("+d.A.AF+")",$={"background-color":"#999"},ee={"background-color":"#f90"};j.load($,q+".legend.page-off"),j.load(ee,q+".legend.page-on"),(Z=new DW(d)).Z=Z.C7=d.Z,Z.K=d.K+"-page-prev",Z.A0=Z.AE=d.D2.page>1?ee[ZC._[0]]:$[ZC._[0]],Z.append(d.D2.page>1?d.o["page-on"]:d.o["page-off"]),A=d.iX+d.I/2-U.I/2-6,c=U.iY+U.F/2,Z.parse(),Z.AI=ZC.BQ(Z.AI,8),_=ZC._i_(.75*Z.AI),Z.E=[[A,c-_],[A,c+_],[A-Z.AI,c],[A,c-_]],Z.parse(),Z.AM&&Z.paint(),(u=new DW(d)).Z=u.C7=d.Z,u.K=d.K+"-page-next",u.A0=u.AE=d.D2.page<d.D2.pages?ee[ZC._[0]]:$[ZC._[0]],u.append(d.D2.page<d.D2.pages?d.o["page-on"]:d.o["page-off"]),p=d.iX+d.I/2+U.I/2+6,h=U.iY+U.F/2,u.parse(),u.AI=ZC.BQ(u.AI,8),_=ZC._i_(.75*u.AI),u.E=[[p,h-_],[p,h+_],[p+u.AI,h],[p,h-_]],u.parse(),u.AM&&u.paint()}if(!ZC.move){var te,ie,ae=d.F,ne=d.iY;d.FQ&&(ae-=d.FQ.F,ne+=d.FQ.F),ZC.AK(d.K+"-frame")?ZC.A5("#"+d.K+"-frame").css("top",ne+"px").css("left",d.iX+"px").css(ZC._[19],d.I+"px").css(ZC._[20],ae+"px"):ZC.Q.I7({cls:"zc-abs zc-legend-frame "+d.K+"-frame",id:d.K+"-frame",wh:d.I+"/"+ae,tl:ne+"/"+d.iX,opacity:0,background:"#fff",p:f,zidx:0}),d.D2.enabled&&!d.NF&&(d.D2.page>1&&ZC.Q.I7({cls:d.K+"-page-area zc-legend-page-area zc-abs",id:d.K+"-page-prev-area",wh:Z.AI+"/"+2*Z.AI,tl:ZC._i_(c+Z.BH-Z.AI)+"/"+ZC._i_(A+Z.BL-Z.AI),opacity:0,p:f,zidx:1}),d.D2.page<d.D2.pages&&ZC.Q.I7({cls:d.K+"-page-area zc-legend-page-area zc-abs",id:d.K+"-page-next-area",wh:u.AI+"/"+2*u.AI,tl:ZC._i_(h+Z.BH-u.AI)+"/"+ZC._i_(p+u.BL),opacity:0,p:f,zidx:1})),d.FQ&&d.VL&&("icon"===d.UW?(ie=ZC._i_(d.FQ.iY+ZC.MAPTX+a.BH)+"/"+ZC._i_(d.FQ.iX+d.FQ.I-20+ZC.MAPTX+a.BL),te="20/"+d.FQ.F):(ie=ZC._i_(d.FQ.iY+ZC.MAPTX)+"/"+ZC._i_(d.FQ.iX+ZC.MAPTX),te=d.FQ.I-(d.VA?23:0)+"/"+d.FQ.F),ZC.Q.I7({cls:d.K+"-header-area zc-legend-header-area zc-abs",id:d.K+"-move-area",wh:te,tl:ie,opacity:0,p:f,zidx:1})),d.VA&&(d.VL&&"icon"===d.UW?(ie=ZC._i_(d.FQ.iY+ZC.MAPTX+i.BH)+"/"+ZC._i_(d.FQ.iX+d.FQ.I-41+ZC.MAPTX+i.BL),te="20/"+d.FQ.F):(ie=ZC._i_(d.FQ.iY+ZC.MAPTX+i.BH)+"/"+ZC._i_(d.FQ.iX+d.FQ.I-22+ZC.MAPTX+i.BL),te="20/"+d.FQ.F),ZC.Q.I7({cls:d.K+"-header-area zc-legend-header-area zc-abs",id:d.K+"-minimize-area",wh:te,tl:ie,opacity:0,p:f,zidx:1})),d.P6=0,d.A0G=0,d.zc_legend_mouseover=function(){d.ZA=!0},d.zc_legend_mouseout=function(){d.ZA=!1},d.ZQ=function(e){if(e.preventDefault(),d.G.hideCM(),ZC.move=!0,ZC.mobile||!(e.which>1)){d.A.A.D["graph-"+d.A.K+"-legend-info"]=null;var t=ZC.Q.MM(e),i=ZC.A5("#"+d.A.A.K+"-top").offset();d.P6=t[0]-i.left-d.FQ.iX,d.A0G=t[1]-i.top-d.FQ.iY,d.oldcursor=document.body.style.cursor,document.body.style.cursor="move",ZC.A5(document.body).bind(ZC.Q.BX(ZC._[48]),d.ZR),ZC.A5(document.body).bind(ZC.Q.BX(ZC._[49]),d.A19)}},d.ZR=function(e){var t=ZC.Q.MM(e),i=ZC.A5("#"+d.A.A.K+"-top").offset(),a=t[0]-i.left-d.P6,n=t[1]-i.top-d.A0G;if(d.Q1?(a=ZC.BQ(a,d.G.iX+2),a=ZC.CX(a,d.G.iX+d.G.I-d.I-2),n=ZC.BQ(n,d.G.iY+2),n=ZC.CX(n,d.G.iY+d.G.F-d.F-4)):(a=ZC.BQ(a,d.A.iX+2),a=ZC.CX(a,d.A.iX+d.A.I-d.I-2),n=ZC.BQ(n,d.A.iY+2),n=ZC.CX(n,d.A.iY+d.A.F-d.F-4)),d.Q1||(a-=d.A.iX,n-=d.A.iY),d.o.x=a,d.o.y=n,d.o.position=null,d.clear(!0),d.parse(),d.paint(),d.FQ){var l=d.Q1?d.A.A:d.A;d.A.A.D["legend"+d.A.L+"-xy-ratio"]=[a/l.I,n/(l.F-d.FQ.F)]}},d.A19=function(){ZC.move=!1,document.body.style.cursor=d.oldcursor,delete d.oldcursor,ZC.A5(document.body).unbind(ZC.Q.BX(ZC._[48]),d.ZR),ZC.A5(document.body).unbind(ZC.Q.BX(ZC._[49]),d.A19),d.Y7=[],d.clear(!1),d.parse(),d.paint(),d.VG()},d.ZI=function(e){d.D["default-width"]=null,-1!==(e.targetid||e.target.id).indexOf("-page-next-area")?(d.D2.min+=d.EG,d.D2.max+=d.EG,d.D2.page+=1):(d.D2.min-=d.EG,d.D2.max-=d.EG,d.D2.page-=1),(!(t=d.A.A.D["graph-"+d.A.K+"-legend-info"])||null===ZC._n_(t.x)&&null===ZC._n_(t.y))&&(d.iX=null,d.iY=null),d.VG(),d.A.JW()},d.YK=function(e){var t=d.NF?"legendmaximize":"legendminimize";e&&(d.A.A.D["legend-toggling"]=1),zingchart.exec(d.A.G.K,t,{graphid:d.A.L}),e&&(d.A.A.D["legend-toggling"]=0),e&&(d.A.A.D["g"+d.A.L+"-legend-collapsed"]="legendminimize"===t)},d.MY=function(e){ZC.move=!0;var t=ZC.Q.MM(e),i=ZC.A5("#"+d.A.A.K+"-top").offset(),a=t[0]-i.left,n=t[1]-i.top;d.D["dragged-x"]=a,d.D["dragged-y"]=n,d.VG(),d.clear(!1),d.parse(),d.paint()},d.WS=function(e){if(e.preventDefault(),d.G.hideCM(),d.IZ=document.body.style.cursor,document.body.style.cursor="move",ZC.mobile||!(e.which>1)){var t=new RegExp("-legend-item_([0-9]+)-area","g").exec(e.target.id);t&&(d.D["dragged-offset-y"]=0,d.D["calculate-y"]=!0,d.D["dragged-x"]=0,d.D["dragged-y"]=0,d.NG=ZC._i_(t[1]),d.iDragPos=ZC.AV(d.A.AY.ME,d.NG),ZC.A5(document.body).bind(ZC.Q.BX(ZC._[48]),d.MY),ZC.A5(document.body).bind(ZC.Q.BX(ZC._[49]),d.XU))}},d.XU=function(){var e=d.NG,t=d.iDragPos;if(d.NG=-1,d.iDragPos=-1,d.D["calculate-y"]=!1,document.body.style.cursor=d.IZ,ZC.move||(e=-1,t=-1),ZC.A5(document.body).unbind(ZC.Q.BX(ZC._[48]),d.MY),ZC.A5(document.body).unbind(ZC.Q.BX(ZC._[49]),d.XU),ZC.move&&-1!==e){for(var i=d.A.AY.A4,a=d.A.AY.ME,n=0,l=i.length;n<l;n++)i[n].o["legend-item"]=i[n].o["legend-item"]||{},null===ZC._n_(i[n].o["legend-item"].order)&&(i[n].o["legend-item"].order=ZC._i_(i[n].o["z-index"]||n+1));for(var r=i[e].o["legend-item"].order,o=-1,s=0,C=d.QG.length;s<C;s++)d.D["dragged-y"]-d.D["dragged-offset-y"]/2>d.QG[s].iY&&(o=s);for(i[e].o["legend-item"].order=-1===o?.5:i[a[o]].o["legend-item"].order+.5,s=0,C=d.QG.length;s<C;s++)o>t?i[s].o["legend-item"].order<i[e].o["legend-item"].order&&i[s].o["legend-item"].order>r&&i[s].o["legend-item"].order--:i[s].o["legend-item"].order>i[e].o["legend-item"].order&&i[s].o["legend-item"].order<r&&i[s].o["legend-item"].order++;for(i[e].o["legend-item"].order=o>t?Math.floor(i[e].o["legend-item"].order):Math.ceil(i[e].o["legend-item"].order),s=0,C=d.QG.length;s<C;s++)d.A.o[ZC._[11]][s]["z-index"]=i[s].o["legend-item"].order}d.A.AY.D["plot-sort"]=!0,ZC.move=!1,d.clear(!1),d.A.JW()},ZC.A5("#"+d.K+"-frame").live(ZC.Q.BX("mouseover"),d.zc_legend_mouseover).live(ZC.Q.BX("mouseout"),d.zc_legend_mouseout),ZC.A5("#"+d.K+"-move-area").live(ZC.Q.BX(ZC._[47]),d.ZQ),ZC.A5("#"+d.K+"-minimize-area").live(ZC.Q.BX("click"),d.YK),ZC.A5("."+d.K+"-page-area").live(ZC.Q.BX("click"),d.ZI),d.BR.o.reorder&&ZC.A5("."+d.A.K+"-legend-item-area").live(ZC._[47],d.WS)}d.D.showhide=null,1===d.A.A.D["legend-toggling"]||ZC.move||(d.MA&&null===ZC._n_(d.A.A.D["g"+d.A.L+"-legend-collapsed"])||d.A.A.D["g"+d.A.L+"-legend-collapsed"]&&!d.NF)&&(window.setTimeout(function(){d.YK(!0)},0),d.A.A.D["g"+d.A.L+"-legend-collapsed"]=!0)}}gc(){ZC.AP.gc(this,["B6","E","QG","Z","C7","o","JF","I9","KR","FQ","BR","ZU","G","A","A2","NW","D2"])}}class ACG extends DW{constructor(e){super(e);var t=this;t.N5=null,t.BB=null,t.M=null,t.JU=0,t.BF=null,t.GH="bottom",t.L9=40,t.A3D=[2,4]}parse(){var e,t,i,a=this;(a.assign_a([["z-index","JU","i"],["length","L9","i"],["aspect","A3D"],["direction","GH"]]),null===ZC._n_(a.o.from)&&null===ZC._n_(a.o.to))&&(null!==ZC._n_(a.o.x)&&null!==ZC._n_(a.o.y)&&null!==ZC._n_(a.o.length)&&null!==ZC._n_(a.o.angle)&&(t="string"==typeof a.o.x?a.A.OP(a.o.x)[0]:ZC._i_(a.o.x),i="string"==typeof a.o.y?a.A.OP(a.o.y)[1]:ZC._i_(a.o.y),a.o.from={x:t+a.L9*ZC.EN(a.A9+180),y:i+a.L9*ZC.EH(a.A9+180)},a.o.to={x:t+a.L9*ZC.EN(a.A9),y:i+a.L9*ZC.EH(a.A9)}));null!==ZC._n_(e=a.o.from)&&(a.N5=new DW(a.A),a.N5.append(e),null!==e.hook&&(a.N5.D.hook=e.hook),a.N5.parse(),"string"==typeof e&&(a.N5.D.hook=e)),null!==ZC._n_(e=a.o.to)&&(a.BB=new DW(a.A),a.BB.append(e),null!==e.hook&&(a.BB.D.hook=e.hook),a.BB.parse(),"string"==typeof e&&(a.BB.D.hook=e)),(null!==ZC._n_(e=a.o.label)||""!==a.o.text&&typeof a.o.text!==ZC._[31])&&(a.M=new DT(a),a.M.append(a.o),a.M.append(e),a.M.parse()),super.parse()}paint(){var e,t,i=this;if(i.AM&&(null!==i.N5||null!==i.BB))if(i.AI<1&&(i.AI=1),!i.N5||null===ZC._n_(e=i.N5.D.hook)||(t=i.A.OP(e),i.N5.iX=t[0],i.N5.iY=t[1],i.N5.iX+=i.N5.BL,i.N5.iY+=i.N5.BH,ZC.DR(i.N5.iX,i.A.P.iX-2,i.A.P.iX+i.A.P.I+2)&&ZC.DR(i.N5.iY,i.A.P.iY-2,i.A.P.iY+i.A.P.F+2)))if(!i.BB||null===ZC._n_(e=i.BB.D.hook)||(t=i.A.OP(e),i.BB.iX=t[0],i.BB.iY=t[1],i.BB.iX+=i.BB.BL,i.BB.iY+=i.BB.BH,ZC.DR(i.BB.iX,i.A.P.iX-2,i.A.P.iX+i.A.P.I+2)&&ZC.DR(i.BB.iY,i.A.P.iY-2,i.A.P.iY+i.A.P.F+2))){var a,n;if(i.N5&&i.BB)a=[i.N5.iX,i.N5.iY],n=[i.BB.iX,i.BB.iY];else if(i.N5&&!i.BB)switch(a=[i.N5.iX,i.N5.iY],i.GH){case"top":n=[i.N5.iX,i.N5.iY+i.L9];break;case"right":n=[i.N5.iX+i.L9,i.N5.iY];break;case"bottom":n=[i.N5.iX,i.N5.iY-i.L9];break;case"left":n=[i.N5.iX-i.L9,i.N5.iY]}else if(!i.N5&&i.BB)switch(n=[i.BB.iX,i.BB.iY],i.GH){case"top":a=[i.BB.iX,i.BB.iY+i.L9];break;case"right":a=[i.BB.iX-i.L9,i.BB.iY];break;case"bottom":a=[i.BB.iX,i.BB.iY-i.L9];break;case"left":a=[i.BB.iX+i.L9,i.BB.iY]}var l,r=n[0]-a[0],o=n[1]-a[1],s=ZC.UE(Math.atan2(o,r)),C=Math.sqrt(r*r+o*o),A=[];if(A.push(a),l=ZC.AQ.BM(a[0],a[1],i.AI/2,s+90),A.push(l),l=ZC.AQ.BM(l[0],l[1],C-i.A3D[1]*i.AI/2,s),A.push(l),l=ZC.AQ.BM(l[0],l[1],i.A3D[0]*i.AI/2,s+90),A.push(l),A.push(n),l=ZC.AQ.BM(l[0],l[1],(2*i.A3D[0]+2)*i.AI/2,s-90),A.push(l),l=ZC.AQ.BM(l[0],l[1],i.A3D[0]*i.AI/2,s+90),A.push(l),l=ZC.AQ.BM(a[0],a[1],i.AI/2,s-90),A.push(l),A.push(a),i.BF=new DW(i.A),i.BF.K=i.K,i.BF.Z=i.BF.C7=i.Z,i.BF.copy(i),i.BF.E=A,i.BF.CY=!1,i.BF.parse(),i.BF.paint(),null!==i.M&&i.M.AM){i.M.Z=i.Z,i.M.K=i.A.K+"-arrow-label-"+i.H6,i.M.GO=i.A.K+"-arrow-label zc-arrow-label";var Z=ZC.AQ.K0(a[0],a[1],n[0],n[1]);i.M.iX=Z[0],i.M.iY=Z[1],i.M.BL-=i.M.I/2,i.M.BH-=i.M.F/2,null!==ZC._n_(i.M.o["font-angle"])&&"inherit"===i.M.o["font-angle"]&&(i.M.A9=s),i.M.paint(),i.M.EC()}}else i.AM=!1;else i.AM=!1}}class KB extends ZCClass{constructor(e){super(e);var t=this;t.G=e,t.SE=!1,t.C3=null,t.Z0=null,t.QP=null,t.zc_guide_touchend=null}unbind(){var e=this;e.C3&&window.clearInterval(e.C3),e.Z0&&window.clearInterval(e.Z0),ZC.A5(document.body).unbind("mousemove touchstart touchmove",e.QP),ZC.A5(document.body).unbind("touchend",e.zc_guide_touchend)}bind(){var e,t=this,i=t.G.K,a=ZC.AK(i+"-guide-c"),n=ZC.Q.E9(a,t.G.AB),l={},r={},o={},s={},C=null,A=null,Z=null;function c(){!A&&Z&&(Z.D["guide-active-plot"]=null),KB.GUIDES&&KB.GUIDES[i]&&!KB.GUIDES[i].blocked&&KB.clearGuide(i),A=null}ZC.mobile||null!==ZC._n_(ZC.Z0)||(t.Z0=window.setInterval(function(){for(var e=!0,a=0,n=zingchart.I5.length;a<n;a++)if(i===zingchart.I5[a].K)if(ZC.AK(zingchart.I5[a].K+"-top")){var l=ZC._tx_(i),r=ZC.A5("#"+zingchart.I5[a].K+"-top").offset();ZC.DX[0]>=r.left&&ZC.DX[0]<=r.left+zingchart.I5[a].I*l[0]&&ZC.DX[1]>=r.top&&ZC.DX[1]<=r.top+zingchart.I5[a].F*l[1]&&(e=!1)}else window.clearInterval(t.Z0);e&&(c(),KB.GUIDES&&KB.GUIDES[i]&&KB.GUIDES[i].active&&(ZC.AP.C0("guide_mouseout",t.G,t.G.F5()),KB.GUIDES[i].active=!1))},500)),t.QP=function(p){if(zingchart.GUIDE_EV=p,!p.target.id||-1===p.target.id.indexOf("-menu-item-")){var u,h,_,d,f,g,B,v,m,b,D,K,E,F,I,x,y,X,G,Y,w,M,L,P,O;ZC.MAX,ZC.MAX;for(u=0;u<zingchart.I5.length;u++)if(zingchart.I5[u].K!==t.G.K&&-1!==zingchart.I5[u].K.indexOf("-fullscreen"))return;if((ZC.ie67||p.type!==ZC._[48]||!ZC.TOUCHEVENTS)&&-1!==p.target.id.indexOf(t.G.K+"-")&&(!ZC.move||ZC.mobile)){if(t.G.A08||!ZC.AK(i+"-top"))return!1;if(!ZC.Q.ABE(ZC.AK(i+"-top")))return!1;var R=[],Q=ZC.Q.MM(p),T=Q[0],k=Q[1];if(null!==ZC._n_(p._pageX_)&&(T=p._pageX_),null!==ZC._n_(p._pageY_)&&(k=p._pageY_),null===ZC._n_(p._pageX_)&&null===ZC._n_(p._pageY_)){var N=ZC.A5("#"+i+"-top").offset();_=T-N.left,d=k-N.top}else _=T,d=k;var H=ZC._tx_(t.G.K);for(_/=H[0],d/=H[1],u=0,h=t.G.AG.length;u<h;u++)f=t.G.AG[u].P,ZC.DR(_,f.iX-15,f.iX+f.I+15)&&ZC.DR(d,f.iY-15,f.iY+f.F+15)&&(A=t.G.AG[u]),ZC.DR(_,t.G.AG[u].iX,t.G.AG[u].iX+t.G.AG[u].I)&&ZC.DR(d,t.G.AG[u].iY,t.G.AG[u].iY+t.G.AG[u].F)&&(C=t.G.AG[u]);var z=null,V=!1;if(A){if(KB.GUIDES=KB.GUIDES||{},KB.GUIDES[i]=KB.GUIDES[i]||{},p.fromAPI||(KB.GUIDES[i].blocked=!1,KB.GUIDES[i].active=!0),Z=A,A.CW&&"hover"===A.CW.o.trigger){null!==ZC._n_(A.D["guide-active-plot"])&&(z=A.D["guide-active-plot"]);var J=/(.+)-plotset-plot-(.+)-node-(.+)/.exec(p.target.id);if(J&&J.length&&(z=parseInt(J[2],10),A.D["guide-active-plot"]=z),null===ZC._n_(z))return}if(!A.A1W)return void c();for(R.push(A),A&&A.CW&&(V=null!==ZC._n_(A.CW.o.shared)&&ZC._b_(A.CW.o.shared)),u=0,h=t.G.AG.length;u<h;u++)if(t.G.AG[u]!==A){f=t.G.AG[u].P;var S=t.G.AG[u].CW,W=t.G.AG[u].HB,U=S&&null!==ZC._n_(S.o.shared)&&ZC._b_(S.o.shared);U&&("xy"===A.AJ.layout&&"xy"===t.G.AG[u].AJ.layout&&(S||W)&&ZC.DR(_,f.iX-5,f.iX+f.I+5)&&(ZC.DR(d,f.iY-5,f.iY+f.F+5)||V&&U)||"yx"===A.AJ.layout&&"yx"===t.G.AG[u].AJ.layout&&(S||W)&&ZC.DR(d,f.iY-5,f.iY+f.F+5)&&(ZC.DR(_,f.iX-5,f.iX+f.I+5)||V&&U))&&R.push(t.G.AG[u])}}else if(KB.GUIDES)for(var j in KB.GUIDES)if(KB.GUIDES[j]&&KB.GUIDES[j].active){var q=zingchart.getLoader(j);L=q.F5(),ZC.AP.C0("guide_mouseout",q,L),KB.GUIDES[j].active=!1}if(0===R.length&&(l={},r={},o={},t.SE&&(null===ZC._n_(p._pageX_)&&c(),t.SE=!1),Z&&Z.A.A7&&C&&C.K!==Z.K&&Z.A.A7.hide()),R.length>0){t.SE=!0;for(var $=!1,ee=0,te=R.length;ee<te;ee++){var ie=!1;if(null===ZC._n_(l[ee])&&(l[ee]={}),null===ZC._n_(r[ee])&&(r[ee]={}),null===ZC._n_(o[ee])&&(o[ee]={}),(R[ee].CW||R[ee].HB)&&"ready"===R[ee].MI){var ae,ne=[],le=[],re=[],oe=!1,se="",Ce=[],Ae=[],Ze=[],ce=[],pe={},ue={},he=[];f=R[ee].P;var _e=R[ee].CW&&null!==ZC._n_(R[ee].CW.o.exact)&&ZC._b_(R[ee].CW.o.exact),de=-1;R[ee].CW&&(de=ZC._i_(ZC._c_(R[ee].CW.o.tolerance||-1))),ZC.MAX,ZC.MAX;var fe,ge,Be=!0,ve=[],me="";R[ee].CW&&(null!==ZC._n_(R[ee].CW.o["plot-label"])&&ZC._n_(null!==(e=R[ee].CW.o["plot-label"].multiple))&&(Be=ZC._b_(e)),null!==ZC._n_(R[ee].CW.o["value-label"])&&ZC._n_(null!==(e=R[ee].CW.o["value-label"].multiple))&&(Be=ZC._b_(e)));var be={};for(Y=0,w=R[ee].AY.A4.length;Y<w;Y++)if(!R[ee].AY.A4[Y].M1&&(u=Y,R[ee].CW&&R[ee].CW.o["reverse-series"]&&(u=w-Y-1),R[ee].D["plot"+u+".visible"])){if(null!==ZC._n_(z)&&u!==z)continue;if(!(fe=R[ee].BI(R[ee].AY.A4[u].BT("k")[0])))continue;if(fe.CP){var De=fe.AW?fe.iY+fe.BV:fe.iY+fe.AA,Ke=fe.AW?fe.iY+fe.F-fe.BV:fe.iY+fe.F-fe.AA;d=ZC._l_(d,De,Ke),g=fe.EF&&R[ee].AY.A4[u].EF?fe.MZ(d,R[ee].AY.A4[u]):fe.MZ(d)}else{var Ee=fe.AW?fe.iX+fe.BV:fe.iX+fe.AA,Fe=fe.AW?fe.iX+fe.I-fe.AA:fe.iX+fe.I-fe.BV;_=ZC._l_(_,Ee,Fe),g=fe.EF&&R[ee].AY.A4[u].EF?fe.MZ(_,R[ee].AY.A4[u]):fe.MZ(_)}if(null===ZC._n_(g))continue;var Ie,xe,ye,Xe,Ge,Ye,we,Me,Le=[];if(Le=typeof g.length===ZC._[31]||0===g.length?[g]:g,R[ee].CW){for(var Pe=0,Oe=Le.length;Pe<Oe;Pe++)if(g=Le[Pe],B=R[ee].AY.A4[u].FM(g)){ae=B,B.setup(),B.O?(ZC.COLORS=[B.O.C1,B.O.A0,B.O.AE,B.O.BW,B.O.B7],B.NH&&ZC.COLORS.push(B.NH.A0,B.NH.AE,B.NH.BW,B.NH.B7)):ZC.COLORS=[],B.A.IE&&typeof B.D.A68!==ZC._[31]&&B.paint(!0),F=B.iX,I=B.iY,typeof B.D.A68!==ZC._[31]&&(F=parseInt(B.D.A68,10)),typeof B.D.A88!==ZC._[31]&&(I=parseInt(B.D.A88,10)),K=F,E=I,pe[u]={index:g,y:I},R[ee].BC&&R[ee].BC.Y4&&(R[ee].BC.clear(!0),R[ee].BC.parse(),R[ee].BC.paint(g)),(v=new DT(fe)).Z=v.C7=a,v.K=R[ee].K+"-guide-label-"+g+"-"+u,v.GO=R[ee].A.K+"-guide-label "+R[ee].K+"-guide-label zc-guide-label",Be&&(G=B.A04(),v.AT=B.A.K4),Be?v.append(R[ee].CW.o["plot-label[multiple]"]):v.append(R[ee].CW.o["plot-label[single]"]),v.append(R[ee].CW.o["plot-label"]),v.append(R[ee].CW.o["value-label"]),v.append(R[ee].AY.A4[u].o["guide-label"]),D=ZC.AP.OF(v.o,R[ee].AY.A4[u].o),v.F0=function(e){return B?B.F0(e,D):e},B.XG();var Re="auto";if(null!==ZC._n_(e=v.o[ZC._[7]])&&(Re=e),v.D[ZC._[7]]=Re,v.KW=Be,v.D.plotidx=B.A.L,v.D.nodeidx=B.L,v.parse(),M=null!==ZC._n_(v.o.distance)?ZC._i_(v.o.distance):6,v.E5&&v.E5.length&&(v.J2=function(e){return e=B?B.F0(e,D):e.replace(/(%i)|(%node-index)/g,g)},v.DC()&&v.parse()),v.HX&&B&&(v.GN(v,v,null,B.LL(null,!1),v.MR),v.parse()),ZC.DR(B.iX,f.iX-.5,f.iX+f.I+.5)){switch(Be||(0===le.length&&(null===ZC._n_(v.o["header-text"])||oe||(oe=!0,me+=B.F0(v.o["header-text"],D)+"<br>"),null!==ZC._n_(v.o["footer-text"])&&""===se&&(se=B.F0(v.o["footer-text"],D)+"<br>")),v.AM&&""!==v.AT&&(ZC._b_(v.o["single-text"])?ve.push(B.F0(v.AT,D)):ve.push(B.F0(v.AT,D)+"<br>"))),v.D.pos=le.length,v.D["node-value"]=B.AD,v.D["marker-x"]=F,v.D["marker-y"]=I,v.D["guide-style"]=B.A04(),Re){default:null===ZC._n_(v.o.x)?fe.CP?B.iY<=f.iY+f.F/2?(v.iY=I-v.F-M,v.ER="bottom"):(v.iY=I+M,v.ER="top"):B.iX>=f.iX+f.I/2?(v.iX=F-v.I-M,v.ER="right"):(v.iX=F+M,v.ER="left"):v.iX-=f.iX,null===ZC._n_(v.o.y)?fe.CP?(v.iX=F-v.I/2,v.iX<f.iX&&(v.iX=f.iX),v.iX+v.I>f.iX+f.I&&(v.iX=f.iX+f.I-v.I)):(v.iY=I-v.F/2,v.iY<f.iY&&(v.iY=f.iY),v.iY+v.F>f.iY+f.F&&(v.iY=f.iY+f.F-v.F)):v.iY-=f.iY,v.DK=[F,I];break;case"left":v.iX=F-v.I-M,v.iY=I-v.F/2,v.DK=[F,I];break;case"right":v.iX=F+M,v.iY=I-v.F/2,v.DK=[F,I];break;case"top":fe.CP?(v.iX=f.iX+f.I-v.I,v.iY=I-v.F/2,v.ER="left",v.DK=[f.iX+f.I-v.I-M,I]):(v.iX=F-v.I/2,v.iY=f.iY,v.ER="bottom",v.DK=[F,v.iY+v.F+M]);break;case"node-top":fe.CP?(v.iX=F+2*M,v.iY=I-v.F/2,v.ER="left",v.DK=[F+M,I]):(v.iX=F-v.I/2,v.iY=I-v.F-2*M,v.ER="bottom",v.DK=[F,I-M]);break;case"bottom":fe.CP?(v.iX=f.iX,v.iY=I-v.F/2,v.ER="right",v.DK=[f.iX+v.I+M,I]):(v.iX=F-v.I/2,v.iY=f.iY+f.F-v.F,v.ER="top",v.DK=[F,v.iY-M])}ne.push({plotindex:B.A.L,nodeindex:B.L,keyvalue:B.BU||fe.V[B.L],value:B.AD,text:v.AT,x:v.iX,y:v.iY,refx:F,refy:I}),-1===ZC.AV(re,v.AT)&&(s[v]=B,re.push(v.AT)),fe.CP?v.D.diff=_e||-1!==de?ZC._a_(I-d):-1:v.D.diff=_e||-1!==de?ZC._a_(F-_):-1,v.AM&&le.push(v),r[ee][u]=v,ie=!0}}if(!B)continue}if(R[ee].CW&&ZC.DR(B.iX,f.iX-1,f.iX+f.I+1)){if((b=new DT(fe)).Z=b.C7=a,b.K=R[ee].K+"-guide-scale-x-label-"+u,b.GO=R[ee].A.K+"-guide-label "+R[ee].K+"-guide-label zc-guide-label",b.A0=b.AE=fe.B7,b.C1=R[ee].AJ["3d"]?"#999":"#fff",b.append(R[ee].CW.o["scale-label"]),b.append(R[ee].CW.o[fe.BG+"-label"]),b.append(R[ee].AY.A4[u].o["scale-label"]),b.KW=!0,b.D.nodeidx=B.L,D=ZC.AP.OF(b.o),null===ZC._n_(D[ZC._[12]])){var Qe=Math.floor(ZC.G6(null!==B.BU?B.BU:B.L,10));D[ZC._[12]]=Qe<0?1-Qe:0}if(b.F0=function(e){e=fe.F0(e,g,fe.EF&&R[ee].AY.A4[u].EF?R[ee].AY.A4[u]:null,D,!0);var t=R[ee].AY.A4[u].KJ;if(B&&t)for(var i in t){var a;a=t[i]instanceof Array?ZC._c_(t[i][B.L],""):ZC._c_(t[i],""),e=e.replace("%data-"+i,a,"g")}return e},b.parse(),M=null!==ZC._n_(b.o.distance)?ZC._i_(b.o.distance):6,b.E5&&b.E5.length&&(b.J2=function(e){return e=B?B.F0(e,D):e.replace(/(%i)|(%node-index)/g,g)},b.DC()&&b.parse()),b.HX&&B&&(b.GN(b,b,null,B.LL(null,!1),b.MR),b.parse()),ue[fe.BG]=b.AT,Ie=ZC._b_(b.o["callout-position"]),xe=b.o.x,ye=b.o.y,"opposite"!==fe.B9?fe.CP?(Xe="right",Ye=fe.D.iX-b.I-M,Ge=[fe.D.iX,E],we=E-b.F/2):(Xe="top",Ye=K-b.I/2,Ge=[K,fe.D.iY],we=fe.D.iY+M):fe.CP?(Xe="left",Ye=fe.D.iX+M,Ge=[fe.D.iX,E],we=E-b.F/2):(Xe="bottom",Ye=K-b.I/2,Ge=[K,fe.D.iY],we=fe.D.iY-b.F-M),Ie||(b.ER=Xe),xe||(b.iX=Ye),Ie||xe||ye||(b.DK=Ge),ye||(b.iY=we),b.AM&&fe.AM&&""!==b.AT){var Te=!1;if(he.length)for(var ke=0;ke<he.length;ke++)b.AT+"@"+fe.BG===he[ke]&&(Te=!0);Te||(he.push(b.AT+"@"+fe.BG),fe.CP?b.D.diff=_e||-1!==de?ZC._a_(E-d):-1:b.D.diff=_e||-1!==de?ZC._a_(K-_):-1,Ze.push(b)),ce.push(fe.BG),o[ee][u]=b,ie=!0}-1!==String(R[ee].CW.o[ZC._[4]]).indexOf("%")&&(Me=ZC.IR(R[ee].CW.o[ZC._[4]]))>0&&Me<=1&&(R[ee].CW.AZ=ZC._i_(Me*fe.AC)),fe.CP?Ce.push([_e||-1!==de?ZC._a_(E-d):-1,[null,[fe.D.iX,E],[R[ee].P.iX+("opposite"===fe.B9?0:R[ee].P.I),E]]]):Ce.push([_e||-1!==de?ZC._a_(K-_):-1,[null,[K,fe.D.iY],[K,R[ee].P.iY+("opposite"===fe.B9?R[ee].P.F:0)]]])}if(ge=R[ee].BI(R[ee].AY.A4[u].BT("v")[0]),-1===ZC.AV(ce,ge.BG)&&R[ee].HB&&("xy"===R[ee].AJ.layout&&ZC.DR(d,ge.iY,ge.iY+ge.F)||"yx"===R[ee].AJ.layout&&ZC.DR(d,ge.iX,ge.iX+ge.I))){var Ne="single";R[ee].HB.o.type&&"multiple"===R[ee].HB.o.type&&(Ne="multiple"),"multiple"===Ne&&null!==ZC._n_(pe[u])&&(ge.CP?_=pe[u].x:d=pe[u].y),(b=new DT(ge)).Z=b.C7=a,b.K=R[ee].K+"-guide-scale-y-label-"+u,b.GO=R[ee].A.K+"-guide-label "+R[ee].K+"-guide-label zc-guide-label";var He=ge.B7;"multiple"===Ne&&(He=R[ee].AY.A4[u].B7),b.A0=b.AE=He,b.C1=R[ee].AJ["3d"]&&"multiple"!==Ne?"#999":"#fff",b.append(R[ee].HB.o["scale-label"]),b.append(R[ee].HB.o[ge.BG+"-label"]),b.KW=!0;var ze=ge.CP?ge.L1(_,!0):ge.L1(d,!0),Ve=ze;if(D=ge.LX(),ZC._cp_(ZC.AP.OF(b.o,ge.o),D),null===ZC._n_(D[ZC._[12]])){Qe=Math.floor(ZC.G6(ze,10));D[ZC._[12]]=Qe<=0?1-Qe:0}ze=ge.FC(0,ze,D),b.o.text=ze,b.parse(),M=null!==ZC._n_(b.o.distance)?ZC._i_(b.o.distance):6,b.E5&&b.E5.length&&(b.J2=function(e){return e=e.replace(/(%v)|(%scale-value)/g,Ve).replace(/(%t)|(%scale-text)/g,ze).replace(/(%coord)/,ge.CP?_:d)},b.DC()&&b.parse()),b.HX&&B&&(be={value:Ve,text:ze,coord:ge.CP?_:d},b.GN(b,b,null,be,b.MR),b.parse()),ue[ge.BG]=b.AT,Ie=ZC._b_(b.o["callout-position"]),xe=b.o.x,ye=b.o.y,"opposite"!==ge.B9?ge.CP?(Xe="top",Ye=_-b.I/2,we=ge.D.iY+M,Ge=[_,ge.D.iY]):(Xe="right",Ye=ge.D.iX-b.I-M,we=d-b.F/2,Ge=[ge.D.iX,d]):ge.CP?(Xe="bottom",Ye=_-b.I/2,we=ge.D.iY-b.F-M,Ge=[_,ge.D.iY]):(Xe="left",Ye=ge.D.iX+M,we=d-b.F/2,Ge=[ge.D.iX,d]),Ie||(b.ER=Xe),xe||(b.iX=Ye),Ie||xe||ye||(b.DK=Ge),ye||(b.iY=we),b.AM&&ge.AM&&(b.D.diff=-1,Ze.push(b),"multiple"===Ne&&null!==ZC._n_(pe[u])||ce.push(ge.BG),o[ee][u]=b,ie=!0),-1!==String(R[ee].HB.o[ZC._[4]]).indexOf("%")&&(Me=ZC.IR(R[ee].HB.o[ZC._[4]]))>0&&Me<=1&&(R[ee].HB.AZ=ZC._i_(Me*ge.AC)),ge.CP?Ae.push(null,[_,ge.D.iY],[_,R[ee].P.iY+("opposite"===ge.B9?R[ee].P.F:0)]):Ae.push(null,[ge.D.iX,d],[R[ee].P.iX+("opposite"===ge.B9?0:R[ee].P.I),d])}}if(!_e&&Ze.length>1)for(var Je=Ze[Ze.length-1],Se=ZC._i_((Je.FO+Je.FT+Je.EO+Je.FP)/4),We=Ze.length-1;We>=0;We--)for(var Ue=We;Ue>=0;Ue--)We!==Ue&&ZC.AQ._boxoverlap2_(Ze[We],Ze[Ue],-Se)&&(Ze[Ue].C5=.3,Ze[Ue].VK=.1);for(m=ZC.MAX,u=0,h=le.length;u<h;u++)le[u].D.diff>=0&&(m=ZC.CX(le[u].D.diff,m));-1!==de&&(m=ZC.BQ(m,de));var je=!1,qe=1,$e=!1;le[0]&&($e=ZC._b_(le[0].o["single-text"]),le[0].o["table-columns"]&&ZC._b_(le[0].o["html-mode"])&&(je=!0,qe=ZC._i_(le[0].o["table-columns"]||"1"),me+='<table class="zc-guide-label-table '+t.G.K+'-guide-label-table">')),!Be&&le.length>0&&("asc"!==le[0].o["sort-by-value"]&&"desc"!==le[0].o["sort-by-value"]||le.sort(function(e,t){return(e.D["node-value"]-t.D["node-value"])*("asc"===le[0].o["sort-by-value"]?1:-1)}));var et=0;for(P=0,O=le.length;P<O&&(!(-1===le[P].D.diff||le[P].D.diff<=m)||(je?(et%qe==0&&(me+="<tr>"),me+="<td>"+ve[P]+"</td>",et%qe==qe-1&&(me+="</tr>"),et++):me+=ve[le[P].D.pos],je||!$e));P++);if(je&&(et%qe!=qe-1&&(me+="</tr>"),me+="</table>"),""!==se&&(me+=se),!Be&&le.length>0&&(_=F=K,d=I=E,""!==me&&(le[0].o.text=je||$e?me:me.substring(0,me.length-4),le[0].parse()),M=null!==ZC._n_(v.o.distance)?ZC._i_(v.o.distance):6,null===ZC._n_(v.o.x)?fe.CP?_<R[ee].iX+R[ee].I/2?le[0].iX=_+M+14:le[0].iX=_-le[0].I-M-14:ae&&ae.iX>=f.iX+f.I/2?le[0].iX=F-le[0].I-M:le[0].iX=F+M:le[0].iX-=f.iX,null===ZC._n_(v.o.y)?fe.CP?ae&&ae.iY>=f.iY+f.F/2?le[0].iY=I-le[0].F-M:le[0].iY=I+M:d<R[ee].iY+R[ee].F/2?le[0].iY=d+M+14:le[0].iY=d-le[0].F-M-14:le[0].iY-=f.iY),ie){var tt=-1,it=-1;if($||(null===ZC._n_(p._pageX_)&&c(),$=!0),Ce.length>0){var at=[];for(m=ZC.MAX,x=0,y=Ce.length;x<y;x++)Ce[x][0]>=0&&(m=ZC.CX(Ce[x][0],m));for(-1!==de&&(m=ZC.BQ(m,de)),x=0,y=Ce.length;x<y;x++)null!==ZC._n_(Ce[x])&&(-1===Ce[x][0]||Ce[x][0]<=m)&&(R[ee].CW&&R[ee].CW.o["single-line"]&&ZC._b_(R[ee].CW.o["single-line"])?(at=[].concat(Ce[x][1]),"xy"===R[ee].AJ.layout?tt=ZC._x_(Ce[x][1][1][0]):"yx"===R[ee].AJ.layout&&(it=ZC._x_(Ce[x][1][1][1]))):at=at.concat(Ce[x][1]));if(R[ee].CW.o.mask){var nt=-1;at.length>1&&at[1]&&(nt=at[1][0]||-1),R[ee].CW.oMask||(R[ee].CW.oMask=new I2(R[ee]),R[ee].CW.oMask.append({"background-color":"#fff",alpha:.85}),R[ee].CW.oMask.append(R[ee].CW.o.mask),R[ee].CW.oMask.Z=a,R[ee].CW.oMask.parse()),R[ee].CW.oMask.iX=nt,R[ee].CW.oMask.iY=R[ee].P.iY,R[ee].CW.oMask.I=Math.max(2,R[ee].P.iX+R[ee].P.I-nt+2),R[ee].CW.oMask.F=R[ee].P.F,R[ee].CW.oMask.paint()}if(R[ee].AJ["3d"])for(R[ee].NO(),x=0,y=at.length;x<y;x++)at[x]&&(X=new CB(R[ee],at[x][0]-ZC.AO.E1,at[x][1]-ZC.AO.E2,0),at[x][0]=X.EB[0],at[x][1]=X.EB[1]);R[ee].CW.K=R[ee].K+"-crosshair-x",R[ee].CW.HX&&B&&(R[ee].CW.GN(R[ee].CW,R[ee].CW,null,B.LL(null,!1),R[ee].CW.MR),R[ee].CW.parse()),R[ee].CW.AM&&ZC.CR.paint(n,R[ee].CW,at)}if(Ae.length>0){if(R[ee].AJ["3d"])for(R[ee].NO(),x=0,y=Ae.length;x<y;x++)null!==ZC._n_(Ae[x])&&(X=new CB(R[ee],Ae[x][0]-ZC.AO.E1,Ae[x][1]-ZC.AO.E2,0),Ae[x][0]=X.EB[0],Ae[x][1]=X.EB[1]);R[ee].HB.HX&&B&&(R[ee].HB.GN(R[ee].HB,R[ee].HB,null,be,R[ee].HB.MR),R[ee].HB.parse()),R[ee].HB.AM&&ZC.CR.paint(n,R[ee].HB,Ae)}if(Be){for(u=le.length-1;u>=0;u--)ZC.DR(le[u].DK[0],f.iX-5,f.iX+f.I+5)&&ZC.DR(le[u].DK[1],f.iY-5,f.iY+f.F+5)||le.splice(u,1);if(le.length>1)for(var lt=!0;lt;)for(lt=!1,u=0;u<le.length-1;u++)if(le[u].AM&&(ge.CP&&le[u].iX>le[u+1].iX||!ge.CP&&le[u].iY>le[u+1].iY)){var rt=le[u];le[u]=le[u+1],le[u+1]=rt,lt=!0}if(le.length>0){var ot=[],st=[];for(u=0;u<le.length;u++)null!==ZC._n_(le[u].o.x)&&null!==ZC._n_(le[u].o.y)&&st.push(le[u]);for(var Ct,At,Zt,ct=!0,pt=0,ut=le.length*le.length;ct&&pt<ut;)for(pt++,ct=!1,u=0;u<le.length-1;u++)if(le[u].AM&&-1===ZC.AV(st,le[u]))if(fe.CP){if(le[u+1].iX<le[u].iX+le[u].I){if(le[u+1].iX-le[u].I-4<f.iX&&-1===ZC.AV(ot,le[u])&&(ot.push(le[u]),le[u].iX=f.iX),le[u+1].iX=le[u].iX+le[u].I+4,le[u+1].iX+le[u+1].I>f.iX+f.I)for(Zt=le[u+1].iX-(f.iX+f.I-le[u+1].I),Ct=0,At=le.length;Ct<At;Ct++)le[Ct].iX-Zt>=f.iX?le[Ct].iX-=Zt:(le[Ct].iX=f.iX,Ct>0&&(le[u+1].D["marker-y"]<f.iY+f.F/2?le[Ct].iY=le[Ct-1].iY+le[Ct-1].F+4:le[Ct].iY=le[Ct-1].iY-le[Ct].F-4));ct=!0}}else if(le[u+1].iY<le[u].iY+le[u].F){if(le[u+1].iY-le[u].F-4<f.iY&&-1===ZC.AV(ot,le[u])&&(ot.push(le[u]),le[u].iY=f.iY),le[u+1].iY=le[u].iY+le[u].F+4,le[u+1].iY+le[u+1].F>f.iY+f.F)for(Zt=le[u+1].iY-(f.iY+f.F-le[u+1].F),Ct=0,At=le.length;Ct<At;Ct++)le[Ct].iY-Zt>=f.iY?le[Ct].iY-=Zt:(le[Ct].iY=f.iY,Ct>0&&(le[u+1].D["marker-x"]<f.iX+f.I/2?le[Ct].iX=le[Ct-1].iX+le[Ct-1].I+4:le[Ct].iX=le[Ct-1].iX-le[Ct].I-4));ct=!0}}}var ht=!1;for(u=0,h=Ze.length;u<h;u++)if(-1===Ze[u].D.diff||Ze[u].D.diff<=m){var _t=Ze[u];R[ee].AJ["3d"]&&(R[ee].NO(),X=new CB(R[ee],_t.iX+_t.I/2-ZC.AO.E1,_t.iY+_t.F/2-ZC.AO.E2,0),_t.iX=X.EB[0]-_t.I/2,_t.iY=X.EB[1]-_t.F/2,X=new CB(R[ee],_t.DK[0]-ZC.AO.E1,_t.DK[1]-ZC.AO.E2,0),_t.DK[0]=X.EB[0],_t.DK[1]=X.EB[1]),R[ee].CW&&R[ee].CW.o["single-line"]&&ZC._b_(R[ee].CW.o["single-line"])?("xy"===R[ee].AJ.layout&&tt===ZC._x_(_t.iX+_t.I/2)||"yx"===R[ee].AJ.layout&&it===ZC._x_(_t.iY+_t.F/2))&&!ht&&(_t.paint(),ht=!0):_t.paint()}for(m=ZC.MAX,P=0,O=le.length;P<O;P++)le[P].D.diff>=0&&(m=ZC.CX(le[P].D.diff,m));for(-1!==de&&(m=ZC.BQ(m,de)),Y=0,P=0,O=le.length;P<O;P++)if(-1===le[P].D.diff||le[P].D.diff<=m){var dt=ZC.DR(le[P].DK[0],f.iX-5,f.iX+f.I+5)&&ZC.DR(le[P].DK[1],f.iY-5,f.iY+f.F+5);if(!Be||dt){if(le[P].AM){switch(le[P].D[ZC._[7]]){case"top":fe.CP?le[P].DK[0]=le[P].iX-le[P].G8:le[P].DK[1]=le[P].iY+le[P].F+le[P].G8;break;case"bottom":fe.CP?le[P].DK[0]=le[P].iX+le[P].I+le[P].G8:le[P].DK[1]=le[P].iY-le[P].G8}if(-1!==ZC.AV(["top","bottom"],le[P].D[ZC._[7]])){var ft=le[P].iX+le[P].I/2;le[P].iX=ZC.BQ(le[P].iX,0),le[P].iX=ZC.CX(le[P].iX,t.G.I-le[P].I),le[P].iY=ZC.BQ(le[P].iY,0),le[P].iY=ZC.CX(le[P].iY,t.G.F-le[P].F),null===ZC._n_(le[P].o["callout-offset"])&&(le[P].EU=parseInt(100*(ft-le[P].iX-le[P].I/2)/(le[P].I-le[P].HA),10))}if(R[ee].AJ["3d"]&&(R[ee].NO(),X=new CB(R[ee],le[P].iX+le[P].I/2-ZC.AO.E1,le[P].iY+le[P].F/2-ZC.AO.E2,0),le[P].iX=X.EB[0]-le[P].I/2,le[P].iY=X.EB[1]-le[P].F/2,X=new CB(R[ee],le[P].DK[0]-ZC.AO.E1,le[P].DK[1]-ZC.AO.E2,0),le[P].DK[0]=X.EB[0],le[P].DK[1]=X.EB[1],"left"===le[P].ER?le[P].iX=le[P].DK[0]+M:le[P].iX=le[P].DK[0]-le[P].I-M),R[ee].AJ["3d"]||Be||0!==Y||(le[P].iX=ZC.BQ(f.iX-5,le[P].iX),le[P].iY=ZC.BQ(f.iY-5,le[P].iY),le[P].iX=ZC.CX(f.iX+f.I-le[P].I+5,le[P].iX),le[P].iY=ZC.CX(f.iY+f.F-le[P].F+5,le[P].iY)),Be||!Be&&0===Y){var gt=Be?P:0;(!Be||"canvas"===t.G.AB&&le[gt].o["background-image"]&&""!==le[gt].o["background-image"])&&le[gt].parse(),0!==le[gt].C5&&le[gt].paint(),Y++}}if(dt){var Bt=new DW(R[ee]);if(t.G.B8.load(Bt.o,"("+R[ee].AF+").guide.marker"),Bt.K=le[P].K+"-marker",Bt.Z=Bt.C7=a,Bt.iX=le[P].D["marker-x"],Bt.iY=le[P].D["marker-y"],R[ee].AJ["3d"]&&(R[ee].NO(),X=new CB(R[ee],Bt.iX-ZC.AO.E1,Bt.iY-ZC.AO.E2,0),Bt.iX=X.EB[0],Bt.iY=X.EB[1]),G=le[P].D["guide-style"],Bt.A0=Bt.AE=ZC.AP.JQ(G[ZC._[0]]),Bt.BW=G.color,Bt.append(R[ee].CW.o.marker),Bt.append(R[ee].AY.A4[le[P].D.plotidx].o["guide-marker"]),"inherit"===Bt.o.type){var vt=R[ee].AY.A4[le[P].D.plotidx];vt.A2&&vt.A2.o.type&&(Bt.o.type=vt.A2.o.type)}Bt.parse(),Bt.AM&&"none"!==Bt.DP&&Bt.AI>1&&Bt.paint()}}}(L=R[ee].I3()).items=ne,L.guide={x:F,y:I},L.ev=p,L["scale-label"]=ue,ZC.AP.C0("guide_mousemove",t.G,L),R[ee].Q0(!0)}else(L={}).guide={x:F,y:I},L.ev=p,ZC.AP.C0("guide_mousemove",t.G,L)}}}}}},t.zc_guide_touchend=function(){0!==zingchart.DEV.GUIDETIMEOUT&&window.setTimeout(function(){c()},ZC._i_(zingchart.DEV.GUIDETIMEOUT))},ZC.A5(document.body).bind("mousemove touchstart touchmove",t.QP),ZC.A5(document.body).bind("touchend",t.zc_guide_touchend)}}KB.clearGuide=function(e){var t=zingchart.getLoader(e);if(t){zingchart.GUIDE_EV=null;var i=ZC.AK(e+"-guide-c"),a=ZC.A5(i).width(),n=ZC.A5(i).height();ZC.A5("."+e+"-guide-label").remove(),ZC.Q.IT(i,t.AB,0,0,a,n),ZC.A5("#"+e+"-defs").children().each(function(){this.id&&-1!==this.id.indexOf("-guide-label-")&&ZC.Q.ET(this.id)})}},zingchart.extendAPI("resetguide",function(e,t){"string"==typeof(t=t||{})&&(t=JSON.parse(t)),KB.GUIDES[e]=KB.GUIDES[e]||{},KB.GUIDES[e].blocked=!1,KB.clearGuide(e)}),zingchart.extendAPI("setguide",function(e,t){"string"==typeof(t=t||{})&&(t=JSON.parse(t));var i,a,n=zingchart.getLoader(e),l=n.C8(t[ZC._[3]]),r=l.BI(ZC._[50]);"xy"===l.AJ.layout?(i=t.x||r.AN(t.keyvalue),a=l.iY+l.F/2):(i=l.iX+l.I/2,a=t.y||r.AN(t.keyvalue));var o={_pageX_:i,_pageY_:a,type:ZC.mobile?"touchstart":ZC._[48],target:{id:e+"-img"}};KB.GUIDES=KB.GUIDES||{},KB.GUIDES[e]=KB.GUIDES[e]||{},KB.GUIDES[e].blocked=!0,KB.clearGuide(e),o.fromAPI=!0,n.D4.QP(o)});class AAU extends ZCClass{constructor(e,t){var i=this;i.o=null,i.C=e,i.O2=t}parse(){var e,t=this;t.o=t.C.o;var i,a,n,l,r,o,s,C,A,Z=t.O2,c="\r\n",p=",",u=!1,h=null,_=null,d=null,f=null,g=null,B=!1,v=!1,m=null,b={};if(null!==ZC._n_(e=t.o["html5-csv"])&&(b=e),null!==ZC._n_(e=t.o.csv)&&(b=e),null!==ZC._n_(e=b.separator)&&(p=e),null!==ZC._n_(e=b.mirrored)&&(u=ZC._b_(e)),null!==ZC._n_(e=b.title)&&(h=ZC._b_(e)),null!==ZC._n_(e=b["string-values"])&&(v=ZC._b_(e)),u?(null!==ZC._n_(e=b["horizontal-labels"])&&(d=ZC._b_(e)),null!==ZC._n_(e=b["vertical-labels"])&&(_=ZC._b_(e))):(null!==ZC._n_(e=b["horizontal-labels"])&&(_=ZC._b_(e)),null!==ZC._n_(e=b["vertical-labels"])&&(d=ZC._b_(e))),null!==ZC._n_(e=b["smart-scales"])&&(f=ZC._b_(e)),null!==ZC._n_(e=b["separate-scales"])&&(g=ZC._b_(e)),null!==ZC._n_(e=b["keyval-format"])&&(B=ZC._b_(e)),null!==ZC._n_(e=b.columns)&&(m=e),null!==ZC._n_(m)&&m.length>0){i=[],null!==ZC._n_(e=b["row-separator"])?c=e:Z.split(/\n/).length>0?c="\n":Z.split(/\r/).length>0&&(c="\r");var D=Z.split(c),K=0;for(l=0,r=D.length;l<r;l++)if(""!==D[l].replace(/\s+/g,"")){i[K]=[];for(var E=0,F=0;E<D[l].length-1;)n=D[l].substring(E,E+m[F]),i[K].push(n),E+=m[F],F++;K++}}else{i=[[]],a=null!==ZC._n_(e=b["row-separator"])?new RegExp("(\\"+p+"|"+e+'|^)(?:"([^"]*(?:""[^"]*)*)"|([^"\\'+p+e+"]*))","gi"):new RegExp("(\\"+p+'|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|([^"\\'+p+"\\r\\n]*))","gi");for(var I=null;I=a.exec(Z);){var x=I[1];x.length&&x!==p&&i.push([]),n=I[2]?I[2].replace(new RegExp('""',"g"),'"'):I[3],i[i.length-1].push(n)}}var y=[];for(l=0,r=i.length;l<r;l++)0!==i[l].join("").replace(/\s+/g,"").length&&y.push(i[l]);var X=0,G=0;if((null===ZC._n_(h)||h)&&(y.length>1&&1===y[0].length?(null===ZC._n_(t.o.title)?t.o.title={text:y[0][0]}:null===ZC._n_(t.o.title.text)&&(t.o.title.text=y[0][0]),h=!0):h=!1),h&&X++,u){for(i=[],h&&i.push(y[0]),o=X,s=y.length;o<s;o++)for(C=0,A=y[o].length;C<A;C++)null===ZC._n_(i[C+X])&&(i[C+X]=[]),i[C+X].push(y[o][C]);y=i}if("function"==typeof zingchart.csvParser)for(o=0,s=y.length;o<s;o++)for(C=0,A=y[o].length;C<A;C++)y[o][C]=zingchart.csvParser.call(this,y[o][C],o,C,t.C.A.K);var Y=0;for(l=0,r=y.length;l<r;l++)Y=ZC.BQ(Y,y[l].length);var w=[];if(null===ZC._n_(_)){var M=y[X].join("").length;_=y[X].join("").replace(/[0-9]/g,"").length/M>.75}_&&(w=y[X],X++);var L=[];if(null===ZC._n_(d))if(_&&-1!==w[0].indexOf("\\"))d=!0;else{var P="";for(o=X,s=y.length;o<s;o++)P+=y[o][0];var O=P.length;d=P.replace(/[0-9]/g,"").length/O>.75}if(d){for(o=X,s=y.length;o<s;o++)B?L.push(ZC._i_(y[o][G])):L.push(y[o][G]);G++}var R=[],Q=[];for(C=G;C<Y;C++){Q[C-G]=[];var T=null,k=null,N=0,H=null;for(o=X,s=y.length;o<s;o++)if(null!==ZC._n_(y[o][C])&&""!==y[o][C]&&typeof y[o][C]!==ZC._[31]){n=y[o][C],null!==ZC._n_(H)||v||(H=n.replace(/[0-9\-\,\.\+\e]+/g,"%v")),v||(n=n.replace(/[^0-9\-\,\.\+\e]+/g,""));var z=n.indexOf("."),V=n.indexOf(",");-1!==z&&-1!==V?z<V?(T=".",k=",",N=ZC.BQ(0,n.length-V)):(T=",",k=".",N=ZC.BQ(0,n.length-z)):-1===z&&-1!==V?n.length-V-1==3?(T=",",k="."):(T=".",k=",",N=ZC.BQ(0,n.length-V)):-1!==z&&-1===V&&(n.length-z-1==3?(T=".",k=","):(T=",",k=".",N=ZC.BQ(0,n.length-z))),"."===T&&(n=n.replace(/\./g,"").replace(/,/g,".")),","===T&&(n=n.replace(/,/g,"")),Q[C-G].push(v?n:ZC._f_(n))}else Q[C-G].push(null);R[C-G]={},null!==ZC._n_(H)&&(R[C-G].format=H),null!==ZC._n_(T)&&(R[C-G][ZC._[13]]=T),null!==ZC._n_(T)&&(R[C-G][ZC._[14]]=k),0!==N&&(R[C-G][ZC._[12]]=N)}if(B)for(l=0,r=Q.length;l<r;l++)for(var J=0;J<Q[l].length;J++)Q[l][J]=[L[J],Q[l][J]];var S=[];switch(t.C.AF){case"line":case"area":case"vbar":case"hbar":case"line3d":case"area3d":case"vbar3d":case"hbar3d":case"mixed":null===ZC._n_(t.o[ZC._[50]])&&(t.o[ZC._[50]]={});var W=[];d&&null!==ZC._n_(w[0])&&(W=w[0].split(/\\/)),null!==ZC._n_(W[0])&&(null===ZC._n_(t.o[ZC._[50]].label)&&(t.o[ZC._[50]].label={}),null===ZC._n_(t.o[ZC._[50]].label.text)&&(t.o[ZC._[50]].label.text=W[0])),d&&(null===ZC._n_(t.o[ZC._[50]][ZC._[5]])?t.o[ZC._[50]][ZC._[5]]=L:null===ZC._n_(t.o[ZC._[50]][ZC._[10]])&&(t.o[ZC._[50]][ZC._[10]]=L));var U=[];if(null!==ZC._n_(g)&&g)for(l=0,r=Q.length;l<r;l++)U[l]=ZC._[51]+(0===l?"":"-"+(l+1));else if(null!==ZC._n_(f)&&f){var j={},q=0,$=[];for(l=0,r=Q.length;l<r;l++){for(var ee=0,te=0,ie=Q[l].length;te<ie;te++)ee+=Q[l][te];ee/=Q[l].length;var ae=Math.round(ZC.G6(ee)/Math.LN10/2);null===ZC._n_(j[ae])&&(j[ae]=ZC._[51]+(0===q?"":"-"+(q+1))),-1===ZC.AV($,R[l].format)?(U[l]=ZC._[51]+(0===q?"":"-"+(q+1)),q++):(U[l]=j[ae],q++),$.push(R[l].format)}}for(0===U.length&&(U[0]=ZC._[51]),null===ZC._n_(t.o[ZC._[11]])&&(t.o[ZC._[11]]=[]),l=0,r=Q.length;l<r;l++)null===ZC._n_(t.o[ZC._[11]][l])&&(t.o[ZC._[11]][l]={}),t.o[ZC._[11]][l][ZC._[5]]=Q[l],_&&(null===ZC._n_(t.o[ZC._[11]][l].text)&&(t.o[ZC._[11]][l].text=w[l+G],S.push(w[l+G])),null===ZC._n_(t.o[ZC._[11]][l]["legend-text"])&&(t.o[ZC._[11]][l]["legend-text"]=w[l+G],S.push(w[l+G])),null===ZC._n_(t.o[ZC._[11]][l]["tooltip-text"])&&null!==ZC._n_(R[l].format)&&(t.o[ZC._[11]][l]["tooltip-text"]=R[l].format)),null!==ZC._n_(U[l])&&(null===ZC._n_(t.o[U[l]])&&(t.o[U[l]]={}),null!==ZC._n_(W[1])&&(null===ZC._n_(t.o[U[l]].label)&&(t.o[U[l]].label={}),null===ZC._n_(t.o[U[l]].label.text)&&(t.o[U[l]].label.text=W[1])),null===ZC._n_(t.o[ZC._[11]][l].scales)&&(t.o[ZC._[11]][l].scales="scale-x,"+U[l]),null===ZC._n_(t.o[U[l]][ZC._[12]])&&null!==ZC._n_(R[l][ZC._[12]])&&(t.o[U[l]][ZC._[12]]=R[l][ZC._[12]]),null===ZC._n_(t.o[U[l]][ZC._[13]])&&null!==ZC._n_(R[l][ZC._[13]])&&(t.o[U[l]][ZC._[13]]=R[l][ZC._[13]]),null===ZC._n_(t.o[U[l]][ZC._[14]])&&null!==ZC._n_(R[l][ZC._[14]])&&(t.o[U[l]][ZC._[14]]=R[l][ZC._[14]]),null===ZC._n_(t.o[U[l]].format)&&null!==ZC._n_(R[l].format)&&(t.o[U[l]].format=R[l].format));break;case"pie":case"pie3d":case"gauge":case"nestedpie":if(null===ZC._n_(t.o.scale)&&(t.o.scale={}),d&&null!==ZC._n_(w[0])){var ne=w[0].split(/\\/);null===ZC._n_(t.o.scale.label)&&(t.o.scale.label={}),null===ZC._n_(t.o.scale.label.text)&&(t.o.scale.label.text=ne[0])}for(d&&(null===ZC._n_(t.o.scale[ZC._[5]])?t.o.scale[ZC._[5]]=L:null===ZC._n_(t.o.scale[ZC._[10]])&&(t.o.scale[ZC._[10]]=L)),null===ZC._n_(t.o[ZC._[11]])&&(t.o[ZC._[11]]=[]),l=0,r=Q.length;l<r;l++)null===ZC._n_(t.o[ZC._[11]][l])&&(t.o[ZC._[11]][l]={}),t.o[ZC._[11]][l][ZC._[5]]=Q[l],_&&(null===ZC._n_(t.o[ZC._[11]][l].text)&&(t.o[ZC._[11]][l].text=w[l+G],S.push(w[l+G])),null===ZC._n_(t.o[ZC._[11]][l]["legend-text"])&&(t.o[ZC._[11]][l]["legend-text"]=w[l+G],S.push(w[l+G])),null===ZC._n_(t.o[ZC._[11]][l]["tooltip-text"])&&null!==ZC._n_(R[l].format)&&(t.o[ZC._[11]][l]["tooltip-text"]=R[l].format)),null===ZC._n_(t.o[ZC._[52]])&&(t.o[ZC._[52]]={}),null===ZC._n_(t.o[ZC._[52]][ZC._[12]])&&null!==ZC._n_(R[l][ZC._[12]])&&(t.o[ZC._[52]][ZC._[12]]=R[l][ZC._[12]]),null===ZC._n_(t.o[ZC._[52]][ZC._[13]])&&null!==ZC._n_(R[l][ZC._[13]])&&(t.o[ZC._[52]][ZC._[13]]=R[l][ZC._[13]]),null===ZC._n_(t.o[ZC._[52]][ZC._[14]])&&null!==ZC._n_(R[l][ZC._[14]])&&(t.o[ZC._[52]][ZC._[14]]=R[l][ZC._[14]]),null===ZC._n_(t.o[ZC._[52]].format)&&null!==ZC._n_(R[l].format)&&(t.o[ZC._[52]].format=R[l].format)}return""!==S.join("")&&null===ZC._n_(t.o.legend)&&(t.o.legend={}),t.o=JSON.parse(JSON.stringify(t.o).replace(/\\\\/g,"\\")),t.o}}class K3 extends I2{constructor(e){super(e);var t=this;t.OM="zcgraph",t.G=e,t.AF="",t.J4=null,t.KU=null,t.N0=null,t.SH=null,t.P=null,t.BA=null,t.IG=null,t.IH=null,t.A6C=1,t.W1=1,t.A55=1,t.L=0,t.HW=null,t.MK=[1,0],t.A9W=null,t.CA=!1,t.KX="normal",t.BN=[],t.BY=[],t.YP=[],t.FJ=[],t.LS=[],t.AY=new LW(t),t.HE=null,t.BC=null,t.A7=null,t.CW=null,t.HB=null,t.A1R="always",t.ABV=!0,t.MI="",t.RS=null,t.LV=!1,t.UX=!1,t.NI=0,t.Z2=!1,t.QH=!1,t.EY={true3d:1,angle:45,depth:40,"x-angle":0,"y-angle":0,"z-angle":0,zoom:1},t.AJ={"enable-guide":!1,"enable-preview":!1,"enable-scroll":!1,"enable-zooming":!0,"3d":!1,clip:!1,layout:"","enable-animation":!0,"angle-min":15,"angle-max":75,"x-angle-min":-65,"x-angle-max":65,"y-angle-min":-65,"y-angle-max":65,"z-angle-min":-65,"z-angle-max":65},t.OJ=!1,t.A1O=!1,t.A9X=[],t.A1W=!0,typeof PR!==ZC._[31]&&(t.M4=new PR(t)),t.GF=!1,t.CG={},t.J0=[],t.KO=!1,t.HL=!1,t.LD=0,t.BP=[],t.A5K=!0,t.V0=zingchart.DEV.STACKINGLOGIC,-1===t.V0&&(t.V0=0)}getPMap(){var e=super.getPMap();return this.addPMap(e,"index","L"),e}getToggleAction(){var e,t=this,i="hide";return t.BC&&""!==t.D["legend-last-trigger"]&&typeof t.D["legend-last-trigger"]!==ZC._[31]?i="item"===t.D["legend-last-trigger"]?t.BC.RC:t.BC.Q2:(t.o.legend&&(e=t.o.legend[ZC._[54]])&&(i=e),t.o.legend&&t.o.legend.item&&(e=t.o.legend.item[ZC._[54]])&&(i=e)),(t.A.KD||t.D["toggle-action-remove"])&&(i="remove"),i}BT(e,t){typeof t===ZC._[31]&&(t=!1);for(var i=[],a=this,n=0,l=a.BN.length;n<l;n++)a.BN[n].AF===e&&(!t||t&&a.BN[n].V.length>0)&&i.push(a.BN[n]);return i}BI(e){for(var t=this,i=0,a=t.BN.length;i<a;i++)if(t.BN[i].BG===e)return t.BN[i];return null}NP(e){return e}A9J(e){return new ZC.AAU(this,e)}OA(){for(var e=this,t=0,i=e.BN.length;t<i;t++){var a=e.BN[t],n=a.BG;e.A.B8.load(a.o,["("+e.AF+").SCALE","("+e.AF+")."+n.replace(/\-[0-9]+/,""),"("+e.AF+")."+n.replace(/\-[0-9]+/,"-n"),"("+e.AF+")."+n],!1,!0);var l=n.replace(/\-[0-9]+/,"")+"-n";e.o[l]&&a.append(e.o[l]),e.o[n]&&a.append(e.o[n]),e.AJ["3d"]&&e.A.B8.load(a.o,["("+e.AF+").SCALE[3d]","("+e.AF+")."+n.replace(/\-[0-9]+/,"")+"[3d]","("+e.AF+")."+n.replace(/\-[0-9]+/,"-n")+"[3d]","("+e.AF+")."+n+"[3d]"],!1,!0),e.AJ["3d"]&&a.append(e.o[n+"[3d]"]),a.parse()}}UP(){return null}A5X(e){var t,i,a,n=this,l=0,r=n.AY.A4.length;for(t=0;t<r;t++)l=ZC.BQ(l,n.AY.A4[t].R.length);function o(e){return e=(e=(e=e.replace(/(%N|%node-count)/g,l)).replace(/(%P|%plot-count)/g,r)).replace(/(%S|%scale-values-count)/g,a.V.length)}for(t=0,i=n.BN.length;t<i;t++)(a=n.BN[t]).HC(e),2===e&&(a.J2=o,a.DC()&&a.parse()),null===ZC._n_(a.o["max-items"])&&null===ZC._n_(a.o["max-labels"])&&a.T8(),null===ZC._n_(a.o["max-ticks"])&&a.A05()}OP(){}NO(){}AC5(){}A84(){}setupPlotArea(){var e=this,t=e.A.B8,i="("+e.AF+")";e.P=new I2(e),e.P.ON="plotarea",e.P.K=e.K+"-plotarea";var a=[i+".plotarea"];if(e.BA&&a.push(i+".plotarea[preview]"),e.AJ["3d"]&&a.push(i+".plotarea[3d]"),t.load(e.P.o,a),e.P.append(e.o.chart),e.P.append(e.o.plotarea),e.BA&&e.P.append(e.o["plotarea[preview]"]),e.AJ["3d"]&&e.P.append(e.o["plotarea[3d]"]),"dynamic"===e.P.o[ZC._[57]]||"dynamic"===e.P.o[ZC._[58]]||"dynamic"===e.P.o[ZC._[59]]||"dynamic"===e.P.o[ZC._[60]]){var n=String(e.P.o.margin||"").split(/\s+|;|,/),l=n.length>0?n[0]:"",r=n.length>1?n[1]:"",o=n.length>0?n[2]||n[0]:"",s=n.length>1?n[3]||n[1]:"";"dynamic"===e.P.o[ZC._[57]]&&(l="dynamic"),"dynamic"===e.P.o[ZC._[58]]&&(r="dynamic"),"dynamic"===e.P.o[ZC._[59]]&&(o="dynamic"),"dynamic"===e.P.o[ZC._[60]]&&(s="dynamic"),e.P.o.margin=[l,r,o,s].join(" ")}if(e.D["plotarea-margins"]?e.P.o.margin=e.D["plotarea-margin"]:(e.D["plotarea-margins"]=!0,e.D["plotarea-margin"]=e.P.o.margin,e.D["plotarea-margin-top"]=e.P.o[ZC._[57]],e.D["plotarea-margin-right"]=e.P.o[ZC._[58]],e.D["plotarea-margin-bottom"]=e.P.o[ZC._[59]],e.D["plotarea-margin-left"]=e.P.o[ZC._[60]]),typeof e.D["plotarea-p-x"]!==ZC._[31]&&(e.P.D["p-x"]=e.D["plotarea-p-x"],e.P.D["p-y"]=e.D["plotarea-p-y"],e.P.D["p-width"]=e.D["plotarea-p-width"],e.P.D["p-height"]=e.D["plotarea-p-height"]),null!==ZC._n_(e.P.o["adjust-layout"])&&ZC._b_(e.P.o["adjust-layout"])&&(e.P.o.margin="dynamic"),e.P.parse(),e.AJ["3d"]&&!e.EY.true3d){var C=ZC._a_(ZC._i_(e.EY.depth*ZC.EN(e.EY.angle)));e.P.iY+=C,e.P.F-=C,e.P.I-=ZC._i_(e.EY.depth*ZC.EH(e.EY.angle))}if(typeof e.D["plotarea-p-x"]!==ZC._[31])for(var A=0,Z=e.BN.length;A<Z;A++)e.BN[A].WX(),e.BN[A].GZ()}setupDynamicPlotArea(){var e,t,i,a=this,n=["top","right","bottom","left"],l={};for(t=0;t<n.length;t++)l[n[t]]=!1,a.D["plotarea.d-margin-"+n[t]]&&(a.o.plotarea["margin-"+n[t]]=null),a.o.plotarea&&"dynamic"===a.o.plotarea["margin-"+n[t]]&&(l[n[t]]=!0,a.o.plotarea["margin-"+n[t]]="20");var r=!1,o={};if("xy"===a.AJ.layout&&(r=!0),("xy"===a.AJ.layout||"yx"===a.AJ.layout)&&(a.P.D["d-margin"]||a.D["plotarea.d-margin"])){for(var s=0,C=a.BN.length;s<C;s++){var A=0,Z=0,c="",p=a.BN[s];if(p.AM&&p.TL){"k"===p.AF?c=p.CP?"default"===p.B9?"left":"right":"default"===p.B9?"bottom":"top":"v"===p.AF&&(c=p.CP?"default"===p.B9?"bottom":"top":"default"===p.B9?"left":"right");var u=0;if(a.P.D["d-margin-"+c]||a.D["plotarea.d-margin-"+c]){var h=new DT(p);h.copy(p.BR);var _=ZC.BQ(1,ZC._i_((p.A1-p.W)/p.EG));for(t=p.W;t<=p.A1;t+=_)if(h.AT=p.FC(t),h.A2N&&("k"===p.AF&&!p.CP||"v"===p.AF&&p.CP)&&(h.o[ZC._[19]]=ZC._i_(.9*p.AC)),h.parse(),h.AM)if(Z=ZC.BQ(Z,h.A9%180==0?h.F:h.I),A=ZC.BQ(A,h.A9%180==0?h.I:h.F),u=ZC.BQ(u,1.5*h.DF*(h.AT||"").split(/<br>|<br\/>|<br \/>|\n/).length),"top"===c||"bottom"===c){if(u=ZC.BQ(u,.465*h.DF+1.025*ZC._a_(ZC.EN(h.A9))*ZC.BQ(h.I,h.F)),A=h.I,Z=u,r&&"k"===p.AF){o[p.BG]||(o[p.BG]=[]);var d=null===ZC._n_(h.o["auto-align"])||ZC._b_(h.o["auto-align"]),f=.465*h.DF+1.025*ZC._a_(ZC.EH(h.A9))*ZC.BQ(h.I,h.F);"default"===p.B9?(d&&(ZC.DR(ZC._ang_(h.A9),90,180)||ZC.DR(ZC._ang_(h.A9),270,360))&&o[p.BG].push(f),d||o[p.BG].push(f/2)):(d&&(ZC.DR(ZC._ang_(h.A9),0,90)||ZC.DR(ZC._ang_(h.A9),180,270))&&o[p.BG].push(f),d||o[p.BG].push(f/2))}}else A=u=ZC.BQ(u,.465*h.DF+1.025*ZC._a_(ZC.EH(h.A9))*ZC.BQ(h.I,h.F)),Z=h.F;var g=new DT(p);g.copy(p.M),g.AT=p.M.AT,g.parse(),""!==g.AT&&g.AM&&(Z+=g.A9%180==0?g.F:g.I,A+=g.A9%180==0?g.I:g.F)}if(a.o.plotarea||(a.o.plotarea={}),("dynamic"===a.o.plotarea["margin-"+c]||a.P.D["d-margin-"+c])&&(a.P.D["d-margin-"+c]=!1,l[c]=!0,a.o.plotarea["margin-"+c]="0"),l[c]){a.o.plotarea["margin-"+c]=ZC._f_(a.o.plotarea["margin-"+c]||"0"),a.D[p.BG+"-distance"]=a.o.plotarea["margin-"+c];var B=("top"===c||"bottom"===c?ZC._i_(Z):ZC._i_(A))+10+(a.AJ["3d"]?20:0);if(p.VX?a.o.plotarea["margin-"+c]=ZC.BQ(a.o.plotarea["margin-"+c],B):a.o.plotarea["margin-"+c]+=B,null!==ZC._n_(a.o.plotarea["margin-"+c+"-offset"])&&(a.o.plotarea["margin-"+c]+=ZC._i_(a.o.plotarea["margin-"+c+"-offset"])),!a.A.TW){var v={},m=a.A.DE.watermark;a.A.B8.load(v,"loader.gui.watermark"),m&&ZC._cp_(m,v),1===a.A.o[ZC._[16]].length&&a.A.o[ZC._[16]][0].gui&&(e=a.A.o[ZC._[16]][0].gui.watermark)&&ZC._cp_(e,v);var b=v.position||"br";-1===ZC.AV(["tl","tr","br","bl"],b)&&(b="br"),("bottom"!==c||"bl"!==b&&"br"!==b)&&("top"!==c||"tl"!==b&&"tr"!==b)||(a.o.plotarea["margin-"+c]+=15)}"bottom"===c&&("xy"===a.AJ.layout&&a.IG||"yx"===a.AJ.layout&&a.IH)&&(a.o.plotarea["margin-"+c]+=15),"left"===c&&("xy"===a.AJ.layout&&a.IH||"yx"===a.AJ.layout&&a.IG)&&(a.o.plotarea["margin-"+c]+=15),a.D["plotarea.d-margin-"+c]=!0}}}if(r&&l.left&&null!==ZC._n_(a.o.plotarea[ZC._[60]]))for(var D in o){var K=a.BI(D);for(t=0;t<o[D].length;t++){ZC._i_(a.o.plotarea[ZC._[60]])+t*K.AC+(K.DQ?K.AC/2:0)-o[D][t]<0&&(a.o.plotarea[ZC._[60]]=o[D][t]-t*K.AC-(K.DQ?K.AC/2:0))}}ZC.Q.IT(ZC.AK(a.K+"-plotarea-c"),a.G.AB,a.P.iX,a.P.iY,a.P.I,a.P.F,a.K),a.D["plotarea.paint"]=!0,a.setupPlotArea();var E=2,F=6;null!==ZC._n_(e=a.P.o["mask-tolerance"])&&(e instanceof Array?(E=F=ZC._i_(e[0]),e.length>1&&(F=ZC._i_(e[1]))):E=F=ZC._i_(e)),a.P.D.tolerance=E,"svg"===a.G.AB?((e=ZC.AK(a.K+"-clip-shape"))&&e.setAttribute("points",a.LY(E,"svg")),(e=ZC.AK(a.K+"-clip-hover-shape"))&&e.setAttribute("points",a.LY(F,"svg"))):(ZC.A5("#"+a.K+" div").each(function(){""!==this.style.clip&&(this.style.clip=a.LY(E))}),(e=ZC.AK(a.K+"-hover"))&&""!==e.style.clip&&(e.style.clip=a.LY(F)))}for(t=0,i=a.BN.length;t<i;t++)a.BN[t].WX(),a.BN[t].GZ()}parse(){var e,t,i,a,n,l,r,o,s,C=this,A=C.A.B8,Z="("+C.AF+")";(e=C.A.D["graph-state-"+C.L])&&(C.D=JSON.parse(e),null===ZC._n_(C.D["guide-on"])||ZC._b_(C.D["guide-on"])||(C.A1W=!1)),C.D.legend_toggle_action||(C.A.D["graph-"+C.K+"-legend-info"]=null),C.D.legend_toggle_action=null,C.MI="parse.init",super.parse(),C.AC5(),-1!==JSON.stringify(C.o).indexOf("zingchart.maps")&&(C.o.plotarea=C.o.plotarea||{},C.o.plotarea.margin=0);var c=null;if(!zingchart.SKIP.CSV&&((e=C.o["html5-csv"])&&(C.RS=e["html5-url"]),(e=C.o.csv)&&("object"==typeof e?e.url?C.RS=e.url:e["data-string"]&&(c=e["data-string"]):C.RS=e),""!==C.RS&&null!==ZC._n_(C.A.A9U[C.RS])&&(c=C.A.A9U[C.RS]),C.G.O2&&(c=C.G.O2),c)){var p=C.A9J(c);C.o=p.parse()}if(C.LV=zingchart.ASYNC,C.assign_a([["utc","UX","b"],["timezone","NI","f"],["async","LV","b"],["stacked","CA","b"],["stack-type","KX"],["animate-type","A1R"],["url-data","A9W"],["page","LD","i"],["palette","BP"],["sort-objects","A5K","b"]]),C.BP.length>0)for(A.B8.palette=[],a=0;a<C.BP.length;a++){var u=C.BP[a],h=ZC.AP.JQ(C.BP[a],10),_=ZC.AP.RB(C.BP[a],10);A.B8.palette.push(["#fff",u,h,_])}"pie3d"===C.AF&&(C.EY.true3d=!0),(C.AJ["3d"]||C.A.A1M)&&(C.LV=!1),C.A84(),-1===ZC.AV(C.G.KV,ZC._[41])&&((null!==ZC._n_(e=C.o.preview)||A.PZ("preview",C.AF))&&C.AJ[ZC._[56]]&&(C.BA&&!C.D["force-preview-parse"]||typeof A97===ZC._[31]||(C.D["force-preview-parse"]=!1,C.BA=new A97(C),C.BA.ON="preview",A.load(C.BA.o,Z+".preview"),"yx"===C.AJ.layout&&A.load(C.BA.o,Z+".preview[yx]"),(t=C.o.plotarea)&&C.BA.append({"background-color":t[ZC._[0]],"background-color-1":t["background-color-1"],"background-color-2":t["background-color-2"],"gradient-stops":t["gradient-stops"],"gradient-colors":t["gradient-colors"]}),C.BA.append(e),C.BA.parse())),(null!==ZC._n_(e=C.o["scroll-x"])||A.PZ("scroll-x",C.AF))&&C.AJ["enable-scroll"]&&(C.IG||typeof A4I===ZC._[31]||(C.IG=new A4I(C,"x"),C.IG.ON="scrollx",A.load(C.IG.o,Z+".scroll-x"),C.IG.append(e),C.IG.parse())),(null!==ZC._n_(e=C.o["scroll-y"])||A.PZ("scroll-y",C.AF))&&C.AJ["enable-scroll"]&&(C.IH||typeof A4I===ZC._[31]||(C.IH=new A4I(C,"y"),C.IH.ON="scrolly",A.load(C.IH.o,Z+".scroll-y"),C.IH.append(e),C.IH.parse()))),C.setupPlotArea(),C.NO(),C.BN=[],C.OA(),C.A5X(1),null!==ZC._n_(e=C.o[ZC._[11]])&&(C.AY.o=e);var d=C.AY.o;for(a=0;a<d.length;a++)if(d[a].rel)for(s=0;s<d.length;s++)d[s].id&&d[s].id===d[a].rel&&(C.AY.o[a][ZC._[5]]=[].concat(C.AY.o[s][ZC._[5]]));if(C.AY.parse(),C.A5X(2),(null!==ZC._n_(e=C.o.title)||A.PZ("title",C.AF))&&(C.J4=new DT(C),C.J4.ON="title",A.load(C.J4.o,Z+".title"),C.J4.append(e),C.J4.K=C.K+"-title",C.J4.KD=!0,C.J4.parse(),null===ZC._n_(C.J4.o.x))){var f=C.iX,g=C.I;switch("plotarea"===C.J4.o["center-point"]&&(f=C.P.iX,g=C.P.I),C.J4.OI){case"left":C.J4.iX=f;break;case"center":C.J4.iX=f+g/2-C.J4.I/2;break;case"right":C.J4.iX=f+g-C.J4.I}}(null!==ZC._n_(e=C.o.subtitle)||A.PZ("subtitle",C.AF))&&(C.KU=new DT(C),C.KU.ON="subtitle",A.load(C.KU.o,Z+".subtitle"),C.KU.append(e),C.KU.K=C.K+"-subtitle",C.KU.parse()),null!==ZC._n_(e=C.o.source)&&(C.N0=new DT(C),C.N0.ON="source",A.load(C.N0.o,Z+".source"),C.N0.append(e),C.N0.K=C.K+"-source",C.N0.parse()),typeof A28!==ZC._[31]&&(null!==ZC._n_(e=C.o.legend)||A.PZ("legend",C.AF))&&(C.BC=new A28(C),C.BC.K=C.K+"-legend",typeof e.alpha!==ZC._[31]&&e.alpha<.1&&typeof e[ZC._[62]]===ZC._[31]&&typeof e["border-alpha"]===ZC._[31]&&(e["border-alpha"]=e.alpha),A.load(C.BC.o,Z+".legend"),C.BC.alignPosition(e),(null!==ZC._n_(e)&&null!==ZC._n_(e.position)||null!==ZC._n_(C.BC.o.position))&&A.load(C.BC.o,Z+".legend[position]"),C.BC.append(e),ZC._b_(C.BC.o.shared)&&(C.BC.D["p-x"]=C.A.iX,C.BC.D["p-y"]=C.A.iY,C.BC.D["p-width"]=C.A.I,C.BC.D["p-height"]=C.A.F),C.BC.alignPosition(e),C.BC.parse());var B=!1,v=C.iX,m=C.iY,b=C.I,D=C.F,K="";if(C.J4&&C.J4.AM&&C.J4.o["adjust-layout"]&&(B=!0,(i=C.J4.iY+C.J4.F/2)<m+D/2&&(K="top",D=m+D-C.J4.F-C.J4.iY,m=C.J4.iY+C.J4.F,C.KU&&C.KU.o["adjust-layout"]))){var E=C.KU.iY+C.KU.F/2;E<m+D/2&&E>i&&(D-=C.KU.F,m+=C.KU.F)}if(C.N0&&C.N0.AM&&C.N0.o["adjust-layout"]&&(B=!0,(i=C.N0.iY+C.N0.F/2)>m+D/2&&(D-=C.N0.F)),C.BA&&C.BA.AM&&C.BA.o["adjust-layout"]&&(B=!0,"xy"===C.AJ.layout?(i=C.BA.AR.iY+C.BA.AR.F/2)>m+D/2?D-=C.BA.AR.F+C.BA.AR.DN:(m=C.BA.AR.iY+C.BA.AR.F,D-=C.BA.AR.F):(f=C.BA.AR.iX+C.BA.AR.I/2)<v+b/2?(b-=C.BA.AR.I+C.BA.AR.DV,v+=C.BA.AR.I+C.BA.AR.DV):(v=C.BA.AR.iX+C.BA.AR.I,b-=C.BA.AR.I)),C.BC&&C.BC.AM&&C.BC.o["adjust-layout"]){B=!0;var F=C.BC.D2&&C.BC.D2.enabled?15:5;if("top"===K&&C.BC.iY<C.J4.iY+C.J4.F+5){if(null!==ZC._n_(C.BC.o.position)){var I=(""+C.BC.o.position).split(" ");C.BC.o.position=I[0]+" "+(C.J4.iY-C.iY+C.J4.F+C.BC.ML+F)}else C.BC.o[ZC._[57]]=C.J4.iY-C.iY+C.J4.F+C.BC.ML;C.BC.parse()}C.BC.fixPlacement(),i=C.BC.iY+C.BC.F/2;var x="",y=(ZC.MAX,C.BC.D["position-info"]),X={Bottom:C.BC.iY-C.iY,Top:C.iY+C.F-C.BC.iY-C.BC.F,Right:C.BC.iX-C.iX,Left:C.iX+C.I-C.BC.iX-C.BC.I},G="";if(C.BC.I/C.BC.F>2)G="v";else if(C.BC.F/C.BC.I>2)G="h";else{G=Math.max(X.Left*C.F,X.Right*C.F)/Math.max(X.Top*C.I,X.Bottom*C.I)>1?"h":"v"}if(y)y[0]>=.8?x=y[1]<=.2?"v"===G?"top":"right":y[1]>=.8&&"v"===G?"bottom":"right":y[0]<=.2?x=y[1]<=.2?"v"===G?"top":"left":y[1]>=.8&&"v"===G?"bottom":"left":y[1]<=.2?x="top":y[1]>=.8&&(x="bottom");else Math.min(X.Top,X.Bottom)/Math.max(X.Top,X.Bottom)<Math.min(X.Left,X.Right)/Math.max(X.Left,X.Right)?X.Top>X.Bottom?(x="top",C.BC.E7):(x="bottom",C.BC.DN):X.Left>X.Right?(x="left",C.BC.DV):(x="right",C.BC.E6);var Y=0;"top"===x&&(D=m+D-C.BC.F-C.BC.iY,m=C.BC.iY+C.BC.F),"bottom"===x&&(D-=Y=D-C.BC.iY+m+C.BC.FO+C.BC.FT),"left"===x&&(v+=Y=C.BC.iX-C.iX+C.BC.I,b-=Y),"right"===x&&(b-=Y=b-(C.BC.iX-C.iX)+C.BC.EO+C.BC.FP)}else C.BC&&C.BC.fixPlacement();B&&(C.D["plotarea-p-x"]=v,C.D["plotarea-p-y"]=m,C.D["plotarea-p-width"]=b,C.D["plotarea-p-height"]=D,C.setupPlotArea()),C.setupDynamicPlotArea(),C.AY.parseLayout&&C.AY.parseLayout(!0),C.BA&&C.BA.o["adjust-layout"]&&("xy"===C.AJ.layout?(null===ZC._n_(C.BA.JF.x)&&(C.BA.AR.iX=C.P.iX),null===ZC._n_(C.BA.JF[ZC._[19]])&&(C.BA.AR.I=C.P.I)):(null===ZC._n_(C.BA.JF.y)&&(C.BA.AR.iY=C.P.iY),null===ZC._n_(C.BA.JF[ZC._[20]])&&(C.BA.AR.F=C.P.F)));var w=0;for(a=0;a<C.AY.A4.length;a++)w+=C.AY.A4[a].R.length;null!==ZC._n_(e=C.o["no-data"])&&0===w?(C.SH=new DT(C),C.SH.ON="nodata",A.load(C.SH.o,Z+".noData"),C.SH.append({x:C.P.iX,y:C.P.iY,width:C.P.I,height:C.P.F}),C.SH.append(e),C.SH.K=C.K+"-nodata",C.SH.parse()):C.SH=null,C.D["plotarea-margins"]&&(C.D["plotarea-margins"]=null,C.o.plotarea=C.o.plotarea||{},C.o.plotarea.margin=C.D["plotarea-margin"],C.o.plotarea[ZC._[57]]=C.D["plotarea-margin-top"],C.o.plotarea[ZC._[58]]=C.D["plotarea-margin-right"],C.o.plotarea[ZC._[59]]=C.D["plotarea-margin-bottom"],C.o.plotarea[ZC._[60]]=C.D["plotarea-margin-left"]);var M=["top","right","bottom","left"];for(a=0;a<M.length;a++)C.D["plotarea.d-margin-"+M[a]]=null;if(ZC.Q.ET(C.A.K+"-tooltip"),typeof C.D.datalength!==ZC._[31]&&null!==ZC._n_(C.D.datalength)&&C.D.datalength.length>0&&"canvas"!==C.G.AB&&C.AY.A4)for(var L=0,P=C.AY.A4.length;L<P;L++){if(C.AY.A4[L].R.length<C.D.datalength[L])for(r=C.AY.A4[L].R.length,o=C.D.datalength[L];r<o;r++)l=C.K+ZC._[35]+L+"-node-"+r,ZC.Q.ET([l+"-path",l+"-area-path",l+"-sh-path"]),-1!==ZC.AV(["scatter","bubble"],C.AF)&&ZC.Q.ET([l+"-marker-gradient",l+"-marker-path",l+"-marker-sh-path",l+"-marker-circle",l+"-marker-sh-circle"]),C.EL[L+"-"+r]=null;if(-1===ZC.AV(["scatter","bubble"],C.AF)||ZC.A5.browser.webkit)for(r=0,o=C.D.datalength[L];r<o;r++)l=C.K+ZC._[35]+L+"-node-"+r,ZC.Q.ET([l+"-marker-gradient",l+"-marker-path",l+"-marker-sh-path",l+"-marker-circle",l+"-marker-sh-circle"])}for(C.D.datalength=null,a=0,n=C.AY.A4.length;a<n;a++)C.GF=C.GF||C.AY.A4[a].GF;(C.HL||typeof PR===ZC._[31])&&(C.GF=!1),C.GF&&(C.M4.onStop=function(){C.MI="ready"}),-1===ZC.AV(C.G.KV,ZC._[41])&&(C.HE=new I2(C),C.HE.K=C.K+"-zoom",A.load(C.HE.o,Z+".zoom"),C.HE.append(C.o.zoom),C.A7=new DT(C),C.A7.ON="tooltip",C.o.tooltip&&C.o.tooltip[ZC._[7]]&&C.o.tooltip[ZC._[7]].indexOf("node")>-1?A.load(C.A7.o,Z+".tooltip[dynamic]"):A.load(C.A7.o,Z+".tooltip"),C.A7.append(C.o.tooltip),C.A7.QA=!0,C.A7.parse(),null!==ZC._n_(e=C.o.guide)&&(C.o["crosshair-x"]=e),(null!==ZC._n_(e=C.o["crosshair-x"])||A.PZ("guide",C.AF)||A.PZ("crosshair-x",C.AF))&&C.AJ[ZC._[23]]&&(C.CW=new D0(C),C.CW.ON="crosshairx",A.load(C.CW.o,[Z+".guide",Z+".crosshair-x"],!0,!0),C.CW.append(e),C.CW.parse(),C.D["guide-on"]=!0),(null!==ZC._n_(e=C.o["crosshair-y"])||A.PZ("crosshair-y",C.AF))&&C.AJ[ZC._[23]]&&(C.HB=new D0(C),C.HB.ON="crosshairy",A.load(C.HB.o,[Z+".guide",Z+".crosshair-y"],!0,!0),C.HB.append(e),C.HB.parse(),C.D["guide-on"]=!0)),C.OB(),ZC.AP.C0("gparse",C.A,C.I3()),null!==ZC._n_(e=C.o.refresh)&&(C.HW={type:"full",interval:10,transport:"http",method:"pull","adjust-scale":!1,"max-ticks":20,"reset-timeout":100,"stop-timeout":0,storage:!1,"storage-size":1e3},ZC._cp_(e,C.HW),C.V0=1),C.MI="parse.complete"}OB(){}PO(){}LY(e,t,i){var a=this,n=(i=i||a.P).iX,l=i.iY,r=i.I,o=i.F;if("svg"===t){if(a.AJ["3d"]){var s,C=[];e=1;var A,Z,c,p,u=[],h=n-ZC.AO.E1,_=l-ZC.AO.E2;s=new CB(a,h+r/2-e,_-e,ZC.AO.FU),p=ZC._i_(s.EB[1]),s=new CB(a,h+r/2-e,_-e,0),c=ZC._i_(s.EB[1]),u.push(new CB(a,h-e,_-e,p<c?ZC.AO.FU:0),new CB(a,h+r+e,_-e,p<c?ZC.AO.FU:0)),s=new CB(a,h+r-e,_+o/2-e,ZC.AO.FU),A=ZC._i_(s.EB[0]),s=new CB(a,h+r-e,_+o/2-e,0),Z=ZC._i_(s.EB[0]),u.push(new CB(a,h+r+e,_-e,A>Z?ZC.AO.FU:0),new CB(a,h+r+e,_+o+e,A>Z?ZC.AO.FU:0)),s=new CB(a,h+r/2-e,_+o+e,ZC.AO.FU),p=ZC._i_(s.EB[1]),s=new CB(a,h+r/2-e,_+o+e,0),c=ZC._i_(s.EB[1]),u.push(new CB(a,h+r+e,_+o+e,p>c?ZC.AO.FU:0),new CB(a,h-e,_+o+e,p>c?ZC.AO.FU:0)),s=new CB(a,h-e,_+o/2-e,ZC.AO.FU),A=ZC._i_(s.EB[0]),s=new CB(a,h-e,_+o/2-e,0),Z=ZC._i_(s.EB[0]),u.push(new CB(a,h-e,_+o+e,A<Z?ZC.AO.FU:0),new CB(a,h-e,_-e,A<Z?ZC.AO.FU:0)),u.push(u[0]);for(var d=0;d<u.length;d++)s=u[d],C.push([ZC._i_(s.EB[0]),ZC._i_(s.EB[1])].join(","));return C.join(" ")}return[[n-e,l-e].join(","),[n+r+e,l-e].join(","),[n+r+e,l+o+e].join(","),[n-e,l+o+e].join(","),[n-e,l-e].join(",")].join(" ")}return"box"===t?n-e+","+(l-e)+","+(r+2*e)+","+(o+2*e):(a.AJ["3d"]&&(e+=10),"rect("+(l-e)+"px,"+(n+r+e)+"px,"+(l+o+e)+"px,"+(n-e)+"px)")}autoFit(){var e,t=this;if(t.AJ["3d"]&&t.EY["auto-fit"]){var i=!1;for(t.EY.zoom=1;!i&&t.EY.zoom>.25;){i=!0;var a=t.LY(0,"svg").split(" ");for(e=0;e<a.length;e++){var n=a[e].split(",");(ZC._i_(n[0])<t.iX+t.P.DV||ZC._i_(n[0])>t.iX+t.I-t.P.E6||ZC._i_(n[1])<t.iY+t.P.E7||ZC._i_(n[1])>t.iY+t.F-t.P.DN)&&(i=!1)}i||(t.EY.zoom-=.05),i&&(t.EY.zoom-=.025)}}}build(){var e,t,i,a,n,l,r,o,s=this,C=s.A.I+"/"+s.A.F,A="0/0";if(s.autoFit(),!s.G.usc()){var Z=2,c=6;if(null!==ZC._n_(e=s.P.o["mask-tolerance"])&&(e instanceof Array?(Z=c=ZC._i_(e[0]),e.length>1&&(c=ZC._i_(e[1]))):Z=c=ZC._i_(e)),"svg"===s.A.AB&&s.AJ.clip&&(ZC.Q.ET([s.K+"-clip",s.K+"-clip-hover",s.K+"-clip-preview"]),s.A.KI.appendChild(ZC.Q.Y1({id:s.K+"-clip",path:s.LY(Z,"svg")})),s.A.KI.appendChild(ZC.Q.Y1({id:s.K+"-clip-hover",path:s.LY(c,"svg")})),s.BA)){var p=s.AJ["3d"];s.AJ["3d"]=!1,s.A.KI.appendChild(ZC.Q.Y1({id:s.K+"-clip-preview",path:s.LY(0,"svg",s.BA.AR)})),s.AJ["3d"]=p}var u=!s.AJ.clip,h=u?null:s.LY(Z),_=u?null:"url(#"+s.K+"-clip)",d=u?null:s.LY(c),f=u?null:"url(#"+s.K+"-clip-hover)";if(s.BA&&(n=u?null:s.LY(0,s.A.AB,s.BA.AR),l=u?null:"url(#"+s.K+"-clip-preview)"),ZC.Q.K5({cls:"zc-abs",id:s.K,p:ZC.AK(s.A.K+"-graphset"),tl:A,wh:C},s.A.AB),s.A.O7.graph&&ZC.Q.HK({cls:ZC._[24]+" zc-persistent",id:s.K+"-c",p:ZC.AK(s.K),wh:C},s.A.AB),ZC.Q.K5({id:s.K+"-plotarea",p:ZC.AK(s.K),tl:A,wh:C,position:"absolute"},s.A.AB),s.o.plotarea&&s.A.O7.plotarea&&ZC.Q.HK({cls:ZC._[24],id:s.K+"-plotarea-c",p:ZC.AK(s.K+"-plotarea"),wh:C},s.A.AB),"null"!==s.AF&&s.A.O7.plots){for(ZC.Q.K5({id:s.K+"-scales-bl",p:ZC.AK(s.K),tl:A,wh:C,position:"absolute","clip-path":_,clip:h},s.A.AB),t=0;t<s.A6C;t++)ZC.Q.HK({cls:ZC._[24],id:s.K+"-scales-bl-"+t+"-c",p:ZC.AK(s.K+"-scales-bl"),wh:C},s.A.AB);if(s.AY.D["plot-sort"]){for(t=0,i=s.AY.A4.length;t<i;t++){for(s.AY.A4[t].UY={},a=0;a<s.AY.A4[t].T1;a++)ZC.Q.ET(s.K+"-plots-bl-"+a);for(a=0;a<s.AY.A4[t].A1S;a++)ZC.Q.ET(s.K+"-plots-fl-"+a)}delete s.AY.D["plot-sort"]}if(s.A.KD||s.AJ["3d"])ZC.AK(s.K+"-plots-bl")||ZC.Q.K5({id:s.K+"-plots-bl",p:ZC.AK(s.K),after:ZC.AK(s.K+"-scales-bl"),tl:A,wh:C,position:"absolute","clip-path":_,clip:h},s.A.AB),(r=ZC.Q.HK({cls:"zc-abs zc-layer zc-bl",id:s.K+"-plots-bl-c",p:ZC.AK(s.K+"-plots-bl"),wh:C},s.A.AB)).setAttribute("data-clip",s.LY(Z,"box"));else for(t=0,i=s.AY.A4.length;t<i;t++)for(o=s.AY.ME[t],a=s.AY.A4[t].T1-1;a>=0;a--)ZC.AK(s.K+"-plots-bl-"+a)||ZC.Q.K5({id:s.K+"-plots-bl-"+a,p:ZC.AK(s.K),after:ZC.AK(s.K+"-scales-bl"),tl:A,wh:C,position:"absolute","clip-path":_,clip:h},s.A.AB),(r=ZC.Q.HK({cls:"zc-abs zc-layer zc-bl",id:s.K+"-plot-"+o+"-bl-"+a+"-c",p:ZC.AK(s.K+"-plots-bl-"+a),wh:C},s.A.AB)).setAttribute("data-clip",s.LY(Z,"box")),r.style.display="block";for(t=0;t<s.W1;t++)ZC.Q.HK({cls:ZC._[24],id:s.K+"-scales-ml-"+t+"-c",p:ZC.AK(s.K),wh:C},s.A.AB);if(s.A.KD||s.AJ["3d"])ZC.AK(s.K+"-plots-fl")||ZC.Q.K5({id:s.K+"-plots-fl",p:ZC.AK(s.K),after:ZC.AK(s.K+"-scales-ml-"+(s.W1-1)+"-c"),tl:A,wh:C,position:"absolute"},s.A.AB),(r=ZC.Q.HK({cls:"zc-abs zc-layer zc-fl",id:s.K+"-plots-fl-c",p:ZC.AK(s.K+"-plots-fl"),wh:C},s.A.AB)).setAttribute("data-clip",s.LY(c,"box"));else for(t=0,i=s.AY.A4.length;t<i;t++)for(o=s.AY.ME[t],a=s.AY.A4[t].A1S-1;a>=0;a--)ZC.AK(s.K+"-plots-fl-"+a)||ZC.Q.K5({id:s.K+"-plots-fl-"+a,p:ZC.AK(s.K),after:ZC.AK(s.K+"-scales-ml-"+(s.W1-1)+"-c"),tl:A,wh:C,position:"absolute"},s.A.AB),(r=ZC.Q.HK({cls:"zc-abs zc-layer zc-fl",id:s.K+"-plot-"+o+"-fl-"+a+"-c",p:ZC.AK(s.K+"-plots-fl-"+a),wh:C},s.A.AB)).setAttribute("data-clip",s.LY(c,"box")),r.style.display="block";for(zingchart.DEV.PLOTSHLAYER&&(ZC.Q.K5({id:s.K+"-plots-hover",p:ZC.AK(s.K),tl:A,wh:C,position:"absolute"},s.A.AB),ZC.Q.HK({cls:"zc-abs zc-layer zc-fl",id:s.K+"-plots-hover-c",p:ZC.AK(s.K+"-plots-hover"),wh:C},s.A.AB)),ZC.Q.K5({id:s.K+"-scales-fl",p:ZC.AK(s.K),tl:A,wh:C,position:"absolute","clip-path":_,clip:h},s.A.AB),t=0;t<s.A55;t++)ZC.Q.HK({cls:ZC._[24],id:s.K+"-scales-fl-"+t+"-c",p:ZC.AK(s.K+"-scales-fl"),wh:C},s.A.AB);if(s.BA&&(ZC.Q.K5({id:s.K+"-preview",p:ZC.AK(s.A.K+"-tools"),tl:A,wh:C,position:"absolute","clip-path":l,clip:n},s.A.AB),ZC.Q.HK({cls:"zc-abs",id:s.K+"-preview-c",p:ZC.AK(s.K+"-preview"),wh:C},s.A.AB)),ZC.Q.K5({id:s.K+"-scroll",p:ZC.AK(s.K),tl:A,wh:C,position:"absolute"},s.A.AB),s.o["scroll-x"]&&ZC.Q.HK({cls:"zc-abs",id:s.K+"-scroll-x-c",p:ZC.AK(s.K+"-scroll"),wh:C},s.A.AB),s.o["scroll-y"]&&ZC.Q.HK({cls:"zc-abs",id:s.K+"-scroll-y-c",p:ZC.AK(s.K+"-scroll"),wh:C},s.A.AB),ZC.Q.K5({id:s.K+"-plots-vb",p:ZC.AK(s.K),tl:A,wh:C,position:"absolute"},s.A.AB),s.A.O7[ZC._[17]])if(s.A.KD||s.AJ["3d"])ZC.Q.HK({cls:"zc-abs zc-layer zc-vb",id:s.K+"-plots-vb-c",p:ZC.AK(s.K+"-plots-vb"),wh:C},s.A.AB);else for(t=0,i=s.AY.A4.length;t<i;t++)ZC.Q.HK({cls:"zc-abs zc-layer zc-vb",id:s.K+"-plot-"+t+"-vb-c",p:ZC.AK(s.K+"-plots-vb"),wh:C},s.A.AB)}(s.o.title||s.o.subtitle||s.o.source||s.o["no-data"])&&(ZC.Q.K5({id:s.K+"-titles",p:ZC.AK(s.K),tl:A,wh:C,position:"absolute"},s.A.AB),ZC.Q.HK({cls:ZC._[24],id:s.K+"-titles-c",p:ZC.AK(s.K+"-titles"),wh:C},s.A.AB)),ZC.Q.K5({cls:"zc-abs",wh:C,id:s.K+"-hover",p:ZC.AK(s.A.K+"-hover"),"clip-path":f,clip:d},s.A.AB),"canvas"===s.A.AB&&(ZC.AK(s.K+"-hover").style.clip=d),ZC.Q.HK({cls:ZC._[24],id:s.K+ZC._[22],p:ZC.AK(s.K+"-hover"),wh:C},s.A.AB),s.A.O7.maps&&-1!==JSON.stringify(s.o).indexOf("zingchart.maps")&&(ZC.Q.K5({cls:"zc-abs",wh:C,id:s.K+"-objects-maps",p:ZC.AK(s.A.K+"-objects-maps"),"clip-path":f,clip:d},s.A.AB),ZC.Q.HK({cls:ZC._[24],id:s.K+"-objects-maps-sh-c",p:ZC.AK(s.K+"-objects-maps"),wh:C},s.A.AB),ZC.Q.HK({cls:ZC._[24],id:s.K+"-objects-maps-c",p:ZC.AK(s.K+"-objects-maps"),wh:C},s.A.AB),ZC.Q.HK({cls:ZC._[24],id:s.K+"-objects-maps-click-c",p:ZC.AK(s.K+"-objects-maps"),wh:C},s.A.AB),ZC.Q.HK({cls:ZC._[24],id:s.K+"-objects-maps-hover-c",p:ZC.AK(s.K+"-objects-maps"),wh:C},s.A.AB),ZC.Q.HK({cls:ZC._[24],id:s.K+"-objects-maps-print-c",p:ZC.AK(s.K+"-objects-maps"),wh:C,display:"none"},s.A.AB)),s.initObjectsLayers(),s.o.legend&&(ZC.Q.HK({cls:ZC._[24],id:s.K+"-legend-c",p:ZC.AK(s.A.K+"-legend"),wh:C},s.A.AB),ZC.Q.HK({cls:ZC._[24],id:s.K+"-legend-scroll-c",p:ZC.AK(s.A.K+"-legend"),wh:C},s.A.AB))}s.Z=s.G.usc()?s.G.mc():ZC.AK(s.K+"-c")}initObjectsLayers(){var e=this,t=e.A.I+"/"+e.A.F;!ZC.AK(e.K+"-objects-bottom")&&e.A.O7["objects-bottom"]&&(e.o.shapes||e.o[ZC._[10]]||e.o.arrows||e.o.images)&&(ZC.Q.K5({cls:"zc-abs",wh:t,id:e.K+"-objects-bottom",p:ZC.AK(e.A.K+"-objects-bottom")},e.A.AB),ZC.Q.HK({cls:ZC._[24],id:e.K+"-objects-bottom-sh-c",p:ZC.AK(e.K+"-objects-bottom"),wh:t},e.A.AB),ZC.Q.HK({cls:ZC._[24],id:e.K+"-objects-bottom-c",p:ZC.AK(e.K+"-objects-bottom"),wh:t},e.A.AB)),!ZC.AK(e.K+"-objects-top")&&e.A.O7["objects-top"]&&(e.o.shapes||e.o[ZC._[10]]||e.o.arrows||e.o.images)&&(ZC.Q.K5({cls:"zc-abs",wh:t,id:e.K+"-objects-top",p:ZC.AK(e.A.K+"-objects-top")},e.A.AB),ZC.Q.HK({cls:ZC._[24],id:e.K+"-objects-top-sh-c",p:ZC.AK(e.K+"-objects-top"),wh:t},e.A.AB),ZC.Q.HK({cls:ZC._[24],id:e.K+"-objects-top-c",p:ZC.AK(e.K+"-objects-top"),wh:t},e.A.AB)),(e.A.O7["objects-bottom"]||e.A.O7["objects-top"])&&(e.o.shapes||e.o[ZC._[10]]||e.o.arrows)&&ZC.Q.HK({cls:ZC._[24],id:e.K+"-objects-print-c",p:ZC.AK(e.K+"-objects-top"),wh:t,display:"none"},e.A.AB),!ZC.AK(e.K+"-objects-click")&&(e.A.O7["objects-bottom"]||e.A.O7["objects-top"])&&(e.o.shapes||e.o[ZC._[10]]||e.o.arrows||e.o.images)&&(ZC.Q.K5({cls:"zc-abs",wh:t,id:e.K+"-objects-click",p:ZC.AK(e.A.K+"-hover")},e.A.AB),ZC.Q.HK({cls:ZC._[24],id:e.K+"-objects-click-c",p:ZC.AK(e.K+"-objects-click"),wh:t},e.A.AB)),!ZC.AK(e.K+"-objects-hover")&&(e.A.O7["objects-bottom"]||e.A.O7["objects-top"])&&(e.o.shapes||e.o[ZC._[10]]||e.o.arrows||e.o.images)&&(ZC.Q.K5({cls:"zc-abs",wh:t,id:e.K+"-objects-hover",p:ZC.AK(e.A.K+"-hover")},e.A.AB),ZC.Q.HK({cls:ZC._[24],id:e.K+"-objects-hover-c",p:ZC.AK(e.K+"-objects-hover"),wh:t},e.A.AB))}YB(){}clear_(){}destroy(){var e,t=this;null!==ZC._n_(e=t.A.SM[t.K])&&"feed"===t.HW.type&&(e.send("zingchart.stopfeed"),e.close(),t.A.SM[t.K]=null),t.GF&&t.M4.stop(!0),t.MI="clear.init",t.unbind(),t.BC&&t.BC.unbind(),t.BA&&t.BA.unbind(),t.IG&&t.IG.unbind(),t.IH&&t.IH.unbind(),t.MI="clear.complete"}clear(e,t){null===ZC._n_(e)&&(e=!1),null===ZC._n_(t)&&(t=!1);var i,a,n,l,r=this;r.TP={},null===ZC._n_(i=r.A.SM[r.K])||e||"feed"===r.HW.type&&(i.send("zingchart.stopfeed"),i.close(),r.A.SM[r.K]=null),r.GF&&r.M4.stop(!0),r.MI="clear.init",r.unbind(e),r.YB(!1,!0),r.L2(),r.L2("click"),r.L2("guide",!0),r.L2("print",!0),r.L2("textprint",!0),e||(!r.BA||r.BA&&!r.BA.LV)&&r.L2("static",!0),r.AY.ZG=[],r.A.T3=[],zingchart.SKIP.LEGEND||r.BC&&r.BC.clear(),r.D.datalength=[];var o,s,C,A=ZC.ie67?ZC.AK(r.A.K):null;if(ZC.mobile||ZC.ie67)ZC.A5("."+r.K+"-node-area",A).remove();else if(ZC.AK(r.A.K+"-img")&&ZC.AK(r.A.K+"-map")){ZC.AK(r.A.K+"-img").setAttribute("useMap","");var Z=ZC.AK(r.A.K+"-map").cloneNode(!0);for(a=(n=Z.childNodes.length)-1;a>=0;a--)-1!==Z.childNodes[a].className.indexOf(r.K+"-node-area")&&Z.removeChild(Z.childNodes[a]);ZC.Q.ET(r.A.K+"-map"),ZC.AK(r.A.K+"-top").appendChild(Z),ZC.AK(r.A.K+"-img").setAttribute("useMap","#"+r.A.K+"-map")}switch(r.AY.HZ=[],ZC.A5("."+r.K+"-value-box",A).remove(),ZC.A5("."+r.K+"-scale-marker-label",A).remove(),ZC.A5("."+r.K+"-scale-item",A).remove(),ZC.A5("."+r.K+"-scale-label",A).remove(),ZC.A5("."+r.K+"-guide-label",A).remove(),ZC.A5("."+r.K+"-shape-label",A).remove(),ZC.A5("."+r.K+"-mapshape-label",A).remove(),e||ZC.A5("."+r.K+"-preview-item",A).remove(),r.A.AB){case"svg":for(a=0,n=r.AY.A4.length;a<n;a++)r.AY.A4[a].HM=null;ZC.A5("#"+r.A.K+"-defs").children().each(function(){"LINK"!==this.tagName.toUpperCase()&&(0!==this.id.indexOf(r.K+"-")&&1!==r.A.AG.length||(e?this.id!==r.K+"-gradient"&&-1===this.id.indexOf("-preview-gradient")&&-1===this.id.indexOf("-menu-trigger-gradient")&&-1!==this.id.indexOf(r.K+ZC._[35])&&(t&&r.GF||-1!==this.id.indexOf(r.K+"-legend-")&&zingchart.SKIP.LEGEND||ZC.A5(this).remove()):-1===this.id.indexOf("zc-menu-")&&-1===this.id.indexOf("-menu-trigger-")&&(-1!==this.id.indexOf(r.K+"-legend-")?zingchart.SKIP.LEGEND||ZC.A5(this).remove():r.BA&&r.BA.LV?-1===this.id.indexOf("-preview-gradient")&&ZC.A5(this).remove():ZC.A5(this).remove())))}),e||ZC.Q.ET([r.K+"-clip",r.K+"-clip-hover",r.K+"-clip-preview"]),ZC.A5("#"+r.A.K+"-svg").children().each(function(){var e=r.K+"-";"clippath"===this.tagName.toLowerCase()&&this.id.substring(0,e.length)===e&&this.id!==r.K+"-clip"&&this.id!==r.K+"-clip-hover"&&this.id!==r.K+"-clip-preview"&&ZC.Q.ET(this.id)})}(ZC.Q.ET(r.K+"-nodata"),ZC.Q.ET(r.A.K+"-tooltip-text-float"),e||(ZC.Q.ET([r.K+"-title",r.K+"-subtitle",r.K+"-source",r.K+"-hover"]),zingchart.SKIP.LEGEND||r.BC&&(ZC.Q.ET(r.K+"-legend-c"),ZC.Q.ET(r.K+"-legend-scroll-c"),ZC.A5("."+r.K+"-legend-item-area",A).remove(),ZC.A5("."+r.K+"-legend-marker-area",A).remove(),ZC.A5("."+r.K+"-legend-item",A).remove(),ZC.A5("."+r.K+"-legend-header",A).remove(),ZC.A5("."+r.K+"-legend-footer",A).remove(),ZC.A5("."+r.K+"-legend-frame",A).remove(),r.BC.gc(),r.BC=null),r.BA&&(r.BA.LV&&!r.A.D.resize||(r.BA.unbind(),ZC.A5("."+r.K+"-preview-handler").remove(),ZC.A5("."+r.K+"-preview-mask").remove(),ZC.A5("#"+r.K+"-preview").remove(),r.BA.gc(),r.BA=null)),r.IG&&(r.IG.unbind(),r.IG=null),ZC.Q.IT(ZC.AK(r.K+"-scroll-x-c"),r.A.AB,r.iX,r.iY,r.I,r.F,r.K),ZC.Q.IT(ZC.AK(r.K+"-scroll-y-c"),r.A.AB,r.iX,r.iY,r.I,r.F,r.K),ZC.A5("#"+r.K+"-scroll-x-handle").remove(),ZC.A5("#"+r.K+"-scroll-x-bar").remove(),r.IH&&(r.IH.unbind(),r.IH=null),ZC.A5("#"+r.K+"-scroll-y-handle").remove(),ZC.A5("#"+r.K+"-scroll-y-bar").remove(),ZC.A5("#"+r.K+"-c").empty(),r.G.QZ[0]!==r.G.QZ[1]&&""!==r.G.QZ[1]&&("canvas"===r.G.AB&&ZC.A5("#"+r.K+" canvas").each(function(){this.width=1,this.height=1,ZC.Q.ET(this)}),ZC.A5("#"+r.K+" div").each(function(){ZC.Q.ET(this)}),ZC.Q.ET(r.K))),ZC.A5("#"+r.K+" .zc-layer").each(function(){var i=ZC.Q.TH(this);if(-1===i.indexOf("zc-persistent")){if(e&&(this.id===r.K+"-plotarea-c"||this.id===r.K+"-titles-c"))return;if(-1===this.id.indexOf(r.K+"-plot-")&&-1===this.id.indexOf(r.K+"-plots-"))ZC.Q.IT(this,r.G.AB,r.iX,r.iY,r.I,r.F,r.K);else if(t&&r.GF&&!r.HL){if("canvas"!==r.G.AB)for(var a=0,n=r.AY.A4.length;a<n;a++)r.D.datalength[a]=r.AY.A4[a].R.length;(l=r.A.KD?new RegExp("-plots-[a-z]+-c","g").exec(this.id):new RegExp("-plot-(\\d+)-[a-z]+-\\d+-","g").exec(this.id))&&(!r.D["plot"+l[1]+".visible"]&&"remove"===r.getToggleAction()||r.A.KD)&&ZC.Q.IT(this,r.G.AB,r.iX,r.iY,r.I,r.F,r.K),-1===i.indexOf("zc-vb")&&-1===i.indexOf("zc-fl")||ZC.Q.IT(this,r.G.AB,r.iX,r.iY,r.I,r.F,r.K)}else ZC.Q.IT(this,r.G.AB,r.iX,r.iY,r.I,r.F,r.K)}}),-1!==ZC.AV(r.G.KV,ZC._[44]))&&((o=ZC.AK(r.G.K+"-main-c"))&&ZC.Q.IT(o,r.G.AB,r.iX,r.iY,r.I,r.F,r.K),(s=ZC.AK(r.G.K+"-main-c-top"))&&ZC.Q.IT(s,r.G.AB,r.iX,r.iY,r.I,r.F,r.K),(C=ZC.AK(r.G.K+ZC._[15]))&&ZC.Q.IT(C,r.G.AB,r.iX,r.iY,r.I,r.F,r.K));r.clear_(),r.A.D.resize=!1,r.MI="clear.complete"}unbind(e,t){null===ZC._n_(e)&&(e=!1);var i=this;(-1===ZC.AV(i.G.KV,ZC._[41])||t)&&(ZC.A5("."+i.K+"-node-area").die("mousedown mouseover touchstart",i.XK).die("mouseup mouseout touchend",i.A25).die("mousemove touchmove",i.A16).die("click",i.TS).die("contextmenu",i.TS).die("dblclick",i.A26),i.BC&&(zingchart.SKIP.LEGEND||(ZC.A5("."+i.K+"-legend-item-area").die("mouseup touchstart",i.SZ).die("DOMMouseScroll",i.zc_legend_mousescroll).die("mousewheel",i.zc_legend_mousescroll),ZC.A5("."+i.K+"-legend-marker-area").die("mouseup touchstart",i.SZ).die("DOMMouseScroll",i.zc_legend_mousescroll).die("mousewheel",i.zc_legend_mousescroll),ZC.A5("#"+i.K+"-legend-frame").die("DOMMouseScroll",i.zc_legend_mousescroll).die("mousewheel",i.zc_legend_mousescroll),ZC.mobile||(ZC.A5("."+i.K+"-legend-item-area").die(ZC.Q.BX("mouseover"),i.R4).die(ZC.Q.BX("mouseout"),i.RL).die(ZC.Q.BX(ZC._[48]),i.PY),ZC.A5("."+i.K+"-legend-marker-area").die(ZC.Q.BX("mouseover"),i.R4).die(ZC.Q.BX("mouseout"),i.RL).die(ZC.Q.BX(ZC._[48]),i.PY))))),i.A8V()}A8V(){}S2(){}Q0(){}JV(){}RF(){}Q9(){}L2(e,t){var i=this;e=e||"hover",null===ZC._n_(t)&&(t=!1);var a=ZC.AK((t?i.A.K:i.K)+"-"+e+"-c");a&&(ZC.Q.IT(a,i.G.AB,i.iX,i.iY,i.I,i.F,i.K,"textprint"===e),ZC.A5("."+i.K+"-label-hover").remove()),"hover"===e&&(ZC.Q.IT(ZC.AK(i.K+"-objects-hover-c"),i.G.AB,i.iX,i.iY,i.I,i.F,i.K),ZC.Q.IT(ZC.AK(i.K+"-objects-maps-hover-c"),i.G.AB,i.iX,i.iY,i.I,i.F,i.K),zingchart.DEV.PLOTSHLAYER&&ZC.Q.IT(ZC.AK(i.K+"-plots-hover-c"),i.G.AB,i.iX,i.iY,i.I,i.F,i.K)),"click"===e&&(ZC.Q.IT(ZC.AK(i.K+"-objects-click-c"),i.G.AB,i.iX,i.iY,i.I,i.F,i.K),ZC.Q.IT(ZC.AK(i.K+"-objects-maps-click-c"),i.G.AB,i.iX,i.iY,i.I,i.F,i.K)),i.hideLayer_(e,t)}hideLayer_(){}A2F(e,t){var i,a=this;if(null!==ZC._n_(e)&&null!==ZC._n_(t)){var n=a.AY.A4[e].J5,l=a.AY.A4[e].RW;if("none"===n)return;if(null!==ZC._n_(a.CG["p"+e])){if(null!==ZC._n_(a.CG["p"+e]["n"+t])){if(delete a.CG["p"+e]["n"+t],l)for(i=0;i<a.AY.A4.length;i++)delete a.CG["p"+i]["n"+t]}else if("graph"===n?(a.CG={},a.CG["p"+e]={}):"plot"===n&&(a.CG["p"+e]={}),a.CG["p"+e]["n"+t]=!0,l)for(i=0;i<a.AY.A4.length;i++)a.CG["p"+i]=a.CG["p"+i]||{},a.CG["p"+i]["n"+t]=!0}else if("graph"===n&&(a.CG={}),a.CG["p"+e]={},a.CG["p"+e]["n"+t]=!0,l)for(i=0;i<a.AY.A4.length;i++)a.CG["p"+i]=a.CG["p"+i]||{},a.CG["p"+i]["n"+t]=!0}null!==ZC._n_(e)&&null!==ZC._n_(t)&&(a.HL=!0,a.JW(!0,!0))}paint(e){null===ZC._n_(e)&&(e=!1);var t,i,a,n,l,r,o=this;o.A.GRAPHID=o.K,o.VI=e,window.clearTimeout(ZC.ASYNC_TICK[o.K]),o.A.clearLabelBoxes("vb"+o.L);var s,C,A,Z,c,p,u,h=o.BT("k")[0],_=ZC.MAX,d=-ZC.MAX,f={},g=o.AY.A4,B=0;for(Z=0;Z<g.length;Z++)if(g[Z].o.rel)for(A=0;A<g.length;A++)if(g[A].o.id&&g[A].o.id===g[Z].o.rel){B++,u=!0;var v=[];for(l=0;l<g[A].R.length;l++)(h.EF?g[A].R[l].BU>=h.B3&&g[A].R[l].BU<=h.BK:g[A].R[l].L>=h.W&&g[A].R[l].L<=h.A1)?(s=g[A].R[l].AD,_=Math.min(_,s),d=Math.max(d,s),u?(u=!1,g[A].R[l].BU?v.push([g[A].R[l].BU,0]):v.push(0),p=s):g[A].R[l].BU?v.push([g[A].R[l].BU,100*(s-p)/p]):v.push(100*(s-p)/p)):g[A].R[l].BU?v.push([g[A].R[l].BU,0]):v.push(0);f["p-"+Z]=[].concat(v)}if(B>0){for(_=ZC.MAX,d=-ZC.MAX,Z=0;Z<g.length;Z++)if(g[Z].o.rel&&f["p-"+Z])for(l=0;l<g[Z].R.length;l++)2===(C=f["p-"+Z][l]).length?(s=C[1],g[Z].V[l]=C,g[Z].R[l].AD=g[Z].R[l].CQ=C[1]):(s=C,g[Z].V[l]=g[Z].R[l].AD=g[Z].R[l].CQ=C),g[Z].FM(l),_=Math.min(_,s),d=Math.max(d,s);var m=o.BT("v")[0];m.Q7(_,d,!0),m.GZ()}for(o.A.D["g-"+o.L+"-selection"]&&(o.CG=JSON.parse(o.A.D["g-"+o.L+"-selection"])),o.KO=!1,i=0,a=o.AY.A4.length;i<a;i++)o.J0[i]=!1;for(i in o.CG)if(o.CG.hasOwnProperty(i)){var b=ZC._i_(i.replace("p",""));for(c in o.CG[i])if(o.CG[i].hasOwnProperty(c)){o.J0[b]=!0,o.KO=!0;break}}function D(){if(o.AJ["3d"]){var e=ZC.DH.D9(o.P,o,o.P.iX-ZC.AO.E1,o.P.iX-ZC.AO.E1+o.P.I,o.P.iY-ZC.AO.E2,o.P.iY-ZC.AO.E2+o.P.F,ZC.AO.FU+10,ZC.AO.FU+10,"y"),i=ZC.DH.D9(o.P,o,o.P.iX-ZC.AO.E1,o.P.iX-ZC.AO.E1+o.P.I,o.P.iY-ZC.AO.E2,o.P.iY-ZC.AO.E2+o.P.F,ZC.AO.FU,ZC.AO.FU,"y");i.K=o.K+"-plotarea",i.PI=e.E,o.CJ.add(i)}else{o.P.Z=o.P.C7=o.G.usc()?o.G.mc():ZC.AK(o.K+"-plotarea-c");var a,n=[o.P.iX,o.P.iY,o.P.I,o.P.F],l=o.P.AU,r=o.P.AU,s=o.P.AU,C=o.P.AU;""!==(t=o.P.QC)&&(a=t.split(/\s/),l=ZC._i_(a[0])),""!==(t=o.P.OS)&&(a=t.split(/\s/),r=ZC._i_(a[0])),""!==(t=o.P.O0)&&(a=t.split(/\s/),s=ZC._i_(a[0])),""!==(t=o.P.PJ)&&(a=t.split(/\s/),C=ZC._i_(a[0])),o.P.iX-=C+1,o.P.iY-=l+1,o.P.I+=C+r+1,o.P.F+=l+s+1,o.P.paint(),o.P.iX=n[0],o.P.iY=n[1],o.P.I=n[2],o.P.F=n[3]}}if(o.A.Y9(),o.NO(),o.VI?o.D["plotarea.paint"]&&(D(),o.D["plotarea.paint"]=null):(o.build(),o.Z&&(o.C7=o.Z,super.paint()),D()),"xy"===o.AJ.layout||"yx"===o.AJ.layout){var K=o.BT("v"),E=null;for(l=0;l<K.length;l++)(0===l||K[l].o["ref-zero"])&&K[l].FX<=0&&K[l].H2>=0&&K[l].TL&&(E=l);if(null!==ZC._n_(E)){var F=K[E].AN(0);for(l=0;l<K.length;l++)if(l!==E&&K[l].o["sync-zero"]&&K[l].FX<=0&&K[l].H2>=0&&K[l].TL){var I=K[l].AN(0);if(ZC._a_(I-F)>=1)for(var x=!0,y=0;x;)I>F?K[l].CP?K[l].AW?K[l].AA+=1:K[l].BV+=1:K[l].AW?K[l].BV+=1:K[l].AA+=1:K[l].CP?K[l].AW?K[l].BV+=1:K[l].AA+=1:K[l].AW?K[l].AA+=1:K[l].BV+=1,y++,K[l].GZ(),K[l].T8(),(y>(K[l].CP?o.P.I:o.P.F)||ZC._a_(K[l].AN(0)-F)<1)&&(x=!1)}}}for(l=0,r=o.BN.length;l<r;l++)o.BN[l].Z=o.BN[l].C7=o.G.usc()?o.G.mc():ZC.AK(o.K+"-scales-bl-0-c"),o.A.OH=!0,o.BN[l].paint(),o.A.Y0(),o.A.OH=!1;var X=typeof o.D["shared-zoom"]!==ZC._[31]&&null!==ZC._n_(o.D["shared-zoom"])&&o.D["shared-zoom"];if(o.BA&&o.BA.LV?o.BA.IO&&(o.BA.IO=!0,o.BA.paint()):o.D["skip-preview"]||!o.BA||o.VI&&!o.BA.IO||X||(o.BA.IO=!0,o.BA.paint()),o.D["shared-zoom"]=null,o.D["skip-preview"]=null,o.IG&&o.IG.paint(),o.IH&&o.IH.paint(),o.VI||(n=o.G.usc()?o.G.mc():ZC.AK(o.K+"-titles-c"),o.J4&&o.J4.AM&&null!==ZC._n_(o.J4.AT)&&(o.J4.Z=o.J4.C7=n,o.J4.paint(),!o.J4.KD&&ZC.AK(o.A.K+"-map")&&(ZC.AK(o.A.K+"-map").innerHTML+=ZC.AP.OG(o.K,o.J4))),o.KU&&o.KU.AM&&null!==ZC._n_(o.KU.AT)&&(o.KU.Z=o.KU.C7=n,o.KU.paint(),!o.KU.KD&&ZC.AK(o.A.K+"-map")&&(ZC.AK(o.A.K+"-map").innerHTML+=ZC.AP.OG(o.K,o.KU))),o.N0&&o.N0.AM&&null!==ZC._n_(o.N0.AT)&&(o.N0.Z=o.N0.C7=n,o.N0.paint(),!o.N0.KD&&ZC.AK(o.A.K+"-map")&&(ZC.AK(o.A.K+"-map").innerHTML+=ZC.AP.OG(o.K,o.N0))),o.SH&&o.SH.AM&&null!==ZC._n_(o.SH.AT)&&(o.SH.Z=o.SH.C7=n,o.SH.paint())),o.J4&&o.J4.EC(),o.KU&&o.KU.EC(),o.N0&&o.N0.EC(),o.AJ["3d"]||o.TJ(),o.A.OH=!o.GF,zingchart.DEV.SKIPTRACKERS&&(o.A.OH=!1),o.A.D["graph."+o.K+".disableanimation"])for(l=0,r=o.AY.A4.length;l<r;l++)o.AY.A4[l].GF=!1;o.AY.paint(),o.G.paintHistory()}TJ(){}clearPreview(){var e=this;e.BA&&(ZC.Q.IT(ZC.AK(e.K+"-preview-c"),e.A.AB,e.iX,e.iY,e.I,e.F,e.K),e.A.HE&&!e.A.HE.A0S&&e.BA.reset(),e.BA.IO=!0)}flatten(){}_end_(){var e,t,i,a,n=this;for(n.D["toggle-action-remove"]=null,n.GF||n.A.Y0(),n.A.OH=!1,(n.LV||!n.GF||n.G.D["graph."+n.K+".disableanimation"]||!n.AJ[ZC._[55]]||-1!==ZC.AV(n.G.KV,ZC._[41])||zingchart.SKIP.ANIMATION)&&(n.MI="ready"),"initial"===n.A1R&&(n.ABV=!1,n.G.D["graph."+n.K+".disableanimation"]=!0),t=0,i=n.BN.length;t<i;t++)n.BN[t].paint_();if(!n.A.D["fire-load"]){var l=ZC.AP.C0("objectsinit",n.A,n.I3(),!0);if(l)for(var r=[ZC._[10],"shapes","imges","arrows"],o=0;o<r.length;o++)l[r[o]]&&(n.o[r[o]]=(n.o[r[o]]||[]).concat(l[r[o]]))}function s(e){var t,i,a=(e.targetid||e.target.id).replace("-area-path","").replace("-path","").replace(/--([a-zA-Z0-9]+)/,"").replace("-marker","").replace("-circle","").split("-").reverse();return"node"===a[1]&&(t=a[2],i=a[0]),[t,i]}if(n.AJ["3d"]||(n.flatten(),n.PO(),n.JV(),-1===ZC.AV(n.G.KV,ZC._[41])&&n.Q9()),-1===ZC.AV(n.G.KV,ZC._[41])){var C=ZC.A5("."+n.K+"-node-area");n.XK=function(e){if(!(zingchart.NODE_EV&&"mouseover"===zingchart.NODE_EV_TYPE&&"mouseover"===e.type||(zingchart.NODE_EV_CHART=n.A.K,zingchart.NODE_EV=e,zingchart.NODE_EV_TYPE=e.type,ZC.move||n.BC&&n.BC.ZA||-1===ZC.Q.TH(e.target).indexOf("zc-node-area")||"ready"!==n.MI))){ZC.mobile&&(n.D["node-target-id"]=e.target.id,ZC.move=!1,n.G.hideCM(),null===n.G.DE||null===ZC._n_(n.G.DE["page-scroll"])||n.G.DE["page-scroll"]||e.preventDefault(),n.A.W8(e));var a=s(e);if(n.AY.A4[a[0]]){var l=n.AY.A4[a[0]].FM(a[1]);if(l&&(l.O?(ZC.COLORS=[l.O.C1,l.O.A0,l.O.AE,l.O.BW,l.O.B7],l.NH&&ZC.COLORS.push(l.NH.A0,l.NH.AE,l.NH.BW,l.NH.B7)):ZC.COLORS=[],n.D["plot"+a[0]+".visible"])){var r=ZC.mobile?"mousedown":e.xtype||e.type;(ZC.mobile||r!==ZC._[47])&&n.A.A7&&n.A7&&n.A7.AM&&n.A.A7.onmouseover(e);var o=n.AY.A4[a[0]];if("plot"===o.A46)for(t=0,i=o.R.length;t<i;t++)o.R[t]&&o.FM(t).HU("hover");else l.HU("hover");if(l.P2(e,r),l.A.UO(e,r),n.BC){ZC.move=!0;var C=a[0];n.AY.A4[C].o["legend-item"]&&null!==ZC._n_(n.AY.A4[C].o["legend-item"].order)&&(C=ZC._i_(n.AY.A4[C].o["legend-item"].order)),n.BC.o["reverse-series"]&&(C=n.AY.A4.length-1-C),n.BC.Q1?n.L===n.A.AG.length-1&&n.BC.highlightItem(C):n.BC.highlightItem(C),ZC.move=!1}}}}},C.live("mousedown mouseover touchstart",n.XK),n.A25=function(e){if(zingchart.NODE_EV=zingchart.NODE_EV_TYPE=null,zingchart.NODE_EV_CHART=null,!(ZC.move||n.BC&&n.BC.ZA)){var t=e.target;if(ZC.mobile&&document.elementFromPoint){var i=ZC.Q.MM(e),a=Math.max(window.pageXOffset,document.documentElement.scrollLeft,document.body.scrollLeft),l=Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop);if((t=document.elementFromPoint(i[0]-a,i[1]-l))&&n.D["node-target-id"]&&n.D["node-target-id"]!==t.id)return}if(-1!==ZC.Q.TH(e.target).indexOf("zc-node-area")&&"ready"===n.MI){ZC.mobile&&n.A.P8(e);var r=s(e),o=n.AY.A4[r[0]].FM(r[1]);if(o){if(n.D["plot"+r[0]+".visible"]){n.A.A7&&n.A7&&n.A7.AM&&n.A.A7.onmouseout(e),n.AY.A4[r[0]].E=[],o.L2(),n.L2();var C=ZC.mobile?"mouseup":e.xtype||e.type;o.P2(e,C),o.A.UO(e,C),n.BC&&(ZC.move=!0,n.BC.Q1?n.L===n.A.AG.length-1&&n.BC.highlightItem(-1):n.BC.highlightItem(-1),ZC.move=!1)}!ZC.mobile||n.G.A9T||ZC.move||(zingchart.SP(e),n.TS(e))}}}},C.live("mouseup mouseout touchend",n.A25),n.A16=function(e){if(zingchart.NODE_EV=e,zingchart.NODE_EV_CHART=n.A.K,zingchart.NODE_EV_TYPE=e.type,-1!==ZC.Q.TH(e.target).indexOf("zc-node-area")&&"ready"===n.MI){ZC.mobile&&n.A.P8(e);var t=s(e);n.D["plot"+t[0]+".visible"]&&n.A.A7&&n.A7&&n.A7.AM&&n.A.A7.onmousemove(e)}},C.live("mousemove touchmove",n.A16),n.TS=function(e){if((e.targetid||-1!==ZC.Q.TH(e.target).indexOf("zc-node-area"))&&"ready"===n.MI){var t=s(e),i=n.AY.A4[t[0]].FM(t[1]);if(i&&("none"===i.A.J5||!ZC.mobile&&0!==e.button||(n.A.D[ZC._[53]]=!0,n.clearPreview(),n.A2F(i.A.L,i.L)),i.P2(e,"click"),i.A.UO(e,"click"),null!==ZC._n_(i.A.E8)&&"NULL"!==i.A.E8))if(i.A.E8 instanceof Array)for(var a=0;a<i.A.E8.length;a++){var l=i.A.FF;i.A.FF instanceof Array&&(l=i.A.FF[a]||"graph="+(n.o.id||"")),a===i.L&&n.UC(e,i.F0(i.A.E8[a],null,null,!0),l)}else n.UC(e,i.F0(i.A.E8,null,null,!0),i.A.FF||"graph="+(n.o.id||""))}},n.A26=function(e){if(-1!==ZC.Q.TH(e.target).indexOf("zc-node-area")&&"ready"===n.MI){var t=s(e),i=n.AY.A4[t[0]].FM(t[1]);i&&(i.P2(e,"doubleclick"),i.A.UO(e,"doubleclick"))}},ZC.mobile||C.live("click",n.TS).live("contextmenu",n.TS).live("dblclick",n.A26)}if(n.A80(),n.A.D["tr-ev-"+n.L]?(n.A.D["tr-ev-"+n.L]=null,n.A3P()):n.A3P(),n.A1O){n.A1O=!1;var A={graphid:n.K};for(t=0,i=n.BT("k").length;t<i;t++){var Z=n.BT("k")[t];null!==ZC._n_(e=Z.KS)&&(A["zoomx"+(a=1===Z.L?"":"-"+Z.L)]=!0,A["xmin"+a]=e[0],A["xmax"+a]=e[1])}for(t=0,i=n.BT("v").length;t<i;t++){var c=n.BT("v")[t];null!==ZC._n_(e=c.KS)&&(A["zoomy"+(a=1===c.L?"":"-"+c.L)]=!0,A["ymin"+a]=e[0],A["ymax"+a]=e[1])}if(A.zoomto=!0,n.A.G2){for(var p in n.A.G2)ZC.AK(p).appendChild(n.A.G2[p]);n.A.G2=null}n.A.PM(A)}}A80(){}A3P(){var e=this;if(e.A.A2J<e.A.AG.length&&(e.A.A2J++,ZC.AP.C0("gload",e.A,e.I3())),ZC.AP.C0("gcomplete",e.A,e.I3()),e.BA&&(e.BA.IO=!1),zingchart.NODE_EV&&zingchart.NODE_EV_CHART&&zingchart.NODE_EV_CHART===e.A.K){var t=ZC.A5("#"+e.A.K+"-top"),i=ZC.DX[0]-t.offset().left,a=ZC.DX[1]-t.offset().top,n=zingchart.exec(e.A.K,"getxyinfo",{x:i,y:a});if(n)for(var l=0;l<n.length;l++)if("node"===n[l].infotype&&n[l].xydistance<10){var r=n[l].graphid+ZC._[35]+n[l].plotidx+"-node-"+n[l].nodeidx;zingchart.NODE_EV&&zingchart.NODE_EV.target&&zingchart.NODE_EV.target.id===r&&(e.XK(zingchart.NODE_EV),zingchart.NODE_EV=null)}}zingchart.GUIDE_EV&&e.A.D4&&e.A.D4.QP(zingchart.GUIDE_EV),e.A.A50<e.A.AG.length?e.A.A50++:(e.A.A50=1,e.A.A2J===e.A.AG.length&&(e.A.A2J++,e.A.D["fire-load"]=!0,e.LV&&e.AY.A4.length>1&&(zingchart.SKIP.EVENT||ZC.AP.C0("load",e.A,e.A.F5()))),e.A.D["fire-complete"]=!0,(e.D["graph-JW"]||e.LV&&e.AY.A4.length>1)&&(zingchart.SKIP.EVENT||ZC.AP.C0("complete",e.A,e.A.F5()),e.D["graph-JW"]=null)),0!==e.A.R2.length&&e.A.R2[e.A.R2.length-1]===e.A.D.json||(e.A.R2[e.A.O5]!==e.A.D.json&&(e.A.R2.length=e.A.O5+1),e.A.R2[e.A.O5]=e.A.D.json)}JW(e,t){var i=this;null===ZC._n_(e)&&(e=!1),null===ZC._n_(t)&&(t=!1),i.A.MT(i),i.D["graph-JW"]=!0,i.clear(e,t),i.parse(),i.UQ&&i.UQ(),i.paint(e),i.BA&&i.BA.setScalesInfo(),i.HL=!1,zingchart.SKIP.CSV=!1}UC(ev,E8,FF){if(2!==ev.button){var s=this,C,PK=[""];switch(null!==ZC._n_(FF)&&(PK=FF.split("=")),PK[0]){case"_blank":window.open(E8,"_blank");break;case"_top":window.top.location.href=E8;break;case"_parent":window.parent.location.href=E8;break;case"window":null!==ZC._n_(PK[1])&&""!==PK[1]&&(window.top[PK[1]].location.href=E8);break;case"graph":var YI=null;if("()"===E8.substring(E8.length-2)||"javascript:"===E8.substring(0,11))try{var ED=E8.replace("javascript:","").replace("()","");eval(ED)&&(YI=eval(ED).call(s))}catch(e){}null!==ZC._n_(PK[1])&&""!==PK[1]?"_top"===PK[1]||"_parent"===PK[1]?(s.A.MT(),YI?zingchart.exec(s.A.K,"setdata",{data:YI}):s.A.load(null,E8)):(C=s.A.OQ(PK[1]),C&&(s.A.MT(C),s.A.D["tr-ev-"+C.L]=!0,s.A.O5++,YI?zingchart.exec(s.A.K,"setdata",{graphid:PK[1],data:YI}):s.A.load(PK[1],E8))):(C=s.A.AG[0],s.A.MT(C),YI?zingchart.exec(s.A.K,"setdata",{graphid:C.K,data:YI}):(s.A.D["tr-ev-"+C.L]=!0,s.A.O5++,s.A.load(C.K,E8)));break;default:window.location.href=E8}}}HT(e,t,i){var a=this;if(null===ZC._n_(i)&&(i=a.AY.A4.length-1),null!==ZC._n_(e)&&typeof e!==ZC._[31])return a.AY.A4[e];if(null===ZC._n_(t)||typeof t===ZC._[31])return a.AY.A4[i];for(var n=0,l=a.AY.A4.length;n<l;n++)if(t===a.AY.A4[n].H6)return a.AY.A4[n];return null}ZL(e,t){var i,a,n=this;(e=e||{})[ZC._[54]]=e[ZC._[54]]||n.getToggleAction();var l=null;if(typeof e.plotindex!==ZC._[31]&&(l=ZC._i_(e.plotindex)),-1===l)for(l=[],i=0,a=n.AY.A4.length;i<a;i++)l.push(i);l instanceof Array||(l=[l]);var r=e.plotid||"";r instanceof Array||(r=[r]);var o=[];for(i=0,a=ZC.BQ(l.length,r.length);i<a;i++){var s=n.HT(l[i],r[i]);if(s){var C={};ZC._cp_(e,C);var A=s.L;C.plotindex=A,C.plotid=s.H6,("show"===t&&!n.D["plot"+A+".visible"]||"hide"===t&&n.D["plot"+A+".visible"])&&o.push(C)}}for(i=0,a=o.length;i<a;i++)n.A.o[ZC._[16]][n.L][ZC._[11]][o[i].plotindex].visible="show"===t,i===a-1&&(o[i].JW=1),n.PE(o[i])}PE(e){var t,i,a,n=this;n.A.D["graph."+n.K+".disableanimation"]=!1,e=e||{};var l=!1;null!==ZC._n_(e.skip)&&e.skip&&(l=!0),null===ZC._n_(e.update)||e.update||(l=!0);var r=!1;e[ZC._[54]]=e[ZC._[54]]||n.getToggleAction(),null!==ZC._n_(t=e["ignore-legend"])&&(r=ZC._b_(t));var o=n.HT(e.plotindex,e.plotid);if(o){var s=o.L;switch(e[ZC._[54]]){case"hide":if(n.BC&&(n.BC.D.showhide=!0),n.D["plot"+s+".visible"]=!n.D["plot"+s+".visible"],null!==ZC._n_(n.A.o[ZC._[16]][n.L][ZC._[11]])&&(n.A.o[ZC._[16]][n.L][ZC._[11]][s].visible=n.D["plot"+s+".visible"]),n.AJ["3d"])r=!0,l||n.JW();else{var C=n.D["plot"+s+".visible"]?"block":"none";if(zingchart.DEV.SKIPTRACKERS||ZC.A5("."+n.K+ZC._[35]+s+"-node-area").each(function(){if("AREA"===this.tagName.toUpperCase()){var e=ZC.A5(this),t=e.attr("coords"),a=e.attr("shape");"none"===C?(t="-"+t.replace(/,/g,",-"),"rect"===a?4===(i=t.split(",")).length&&(t=[i[2],i[3],i[0],i[1]].join(",")):"circle"===a&&3===(i=t.split(",")).length&&(t=[i[0],i[1],-i[2]].join(","))):(t=t.replace(/\-/g,""),"rect"===a&&4===(i=t.split(",")).length&&(t=[i[2],i[3],i[0],i[1]].join(","))),e.attr("coords",t)}}),n.A.KD)ZC.AK(n.K+"-plots-bl-c").style.display=C,ZC.AK(n.K+"-plots-fl-c").style.display=C,ZC.AK(n.K+"-plots-vb-c").style.display=C;else{for(a=0;a<o.T1;a++)(t=ZC.AK(n.K+"-plot-"+s+"-bl-"+a+"-c"))&&(t.style.display=C);for(a=0;a<o.A1S;a++)(t=ZC.AK(n.K+"-plot-"+s+"-fl-"+a+"-c"))&&(t.style.display=C);(t=ZC.AK(n.K+"-plot-"+s+"-vb-c"))&&(t.style.display=C)}var A=ZC.A5("."+n.K+"-plot-"+s+"-value-box");n.D["plot"+s+".visible"]?(A.show(),ZC.A5("."+n.K+ZC._[35]+s+"-preview").show()):(A.hide(),ZC.A5("."+n.K+ZC._[35]+s+"-preview").hide())}break;case"remove":n.clearPreview(),r=!0,n.D["toggle-action-remove"]=!0,n.D["plot"+s+".visible"]=!n.D["plot"+s+".visible"],e.JW&&(l||(n.LM("on-legend-toggle"),n.JW(!0,!0)))}n.BC&&!r&&(n.BC.clear(),n.BC.paint())}}LM(e){var t=this,i=!0,a=t.o.plot||{};null!==ZC._n_(a.animation)&&null!==ZC._n_(a.animation[e])&&(i=ZC._b_(a.animation[e])),t.HL="initial"===t.A1R||!i}I3(){return{id:this.A.K,graphidx:this.L,graphid:this.K.replace(this.A.K+"-graph-",""),x:this.iX,y:this.iY,width:this.I,height:this.F,loader:this.A.F5()}}QQ(){}QR(){}gc(){for(var e=0;e<this.BN.length;e++)this.BN[e].gc();for(var t=0;t<this.AY.A4.length;t++)this.AY.A4[t].gc();ZC.AP.gc(this.AY,["A","C","G","F9","o","I9","JF"]),ZC.AP.gc(this,["Z","C7","AJ","J4","KU","N0","EY"])}}K3.prototype.PO=function(){var e,t,i,a,n,l,r,o,s=this;s.initObjectsLayers(),s.BY=[],s.FJ=[],s.YP=[],s.LS=[],s.FD=[],s.XT={};var C,A,Z,c=s.A.B8,p="("+s.AF+")";if(null!==ZC._n_(C=s.o[ZC._[10]]))for(t=0,i=C.length;t<i;t++){C[t].id||(C[t].id="lbl_"+t+"_"+ZC._r_(1e3,9999)),a=C[t].id||t,n=!1,l=!1,s.D["objects.updates"]&&-1===ZC.AV(s.D["objects.updates"],a)&&(n=!0,l=!0),C[t].tween&&(n=!0);var u=zingchart.pool.getInstance("DT",s,s.K+"-label-"+a,n);if(!l||!u._POOL_){if(c.load(u.o,p+".label"),u.append(C[t]),null!==ZC._n_(e=u.o.parent))for(var h=0;h<s.BY.length;h++)if(""+s.BY[h].H6==""+e){u.D["p-x"]=s.BY[h].iX,u.D["p-y"]=s.BY[h].iY,u.D["p-width"]=s.BY[h].I,u.D["p-height"]=s.BY[h].F;break}if(u.H6=a,u.K=s.K+"-label-"+a,u.GO=s.K+"-label zc-label",null!==ZC._n_(e=C[t].hook)&&(u.D.hook=e),u.F0=function(t){if(!t||-1===(""+t).indexOf("%"))return t;t=""+t;var i,a=[];a.push(["%id",s.A.K]),a.push(["%graphid",s.K.replace(s.A.K+"-graph-","")]);var n=s.D.update;for(var l in n)a.push(["%"+l,n[l]]);a.sort(ZC.A27);for(var r=0,o=a.length;r<o;r++)i=new RegExp(a[r][0],"g"),t=t.replace(i,a[r][1]);var C,A,Z,c,p=u.o["default-value"]||" ";for(i=new RegExp("(%plot-([0-9]+?)-value(-*)([0-9]*?))|(%plot-value-([0-9]+?))|(%plot-value)|(%npv)|(%node-percent-value)","g"),t=t.replace(i,p),i=new RegExp("%plot-([0-9]+?)-data-([a-zA-Z0-9-]+)","g"),t=t.replace(i,p),i=new RegExp("\\((.+?)\\)\\(([0-9]*)\\)\\(([0-9]*)\\)");C=i.exec(t);)if("%node-value"===C[1]){A="";var h=0,_=0;""!==(e=C[2])&&(h=ZC._i_(e)),""!==(e=C[3])&&(_=ZC._i_(e)),(c=s.AY.A4[h])&&(Z=c.FM(_,3))&&(A=Z.F0(C[1])),t=t.replace(C[0],A)}return t},u.parse(),C[t]["3d"]){var _=new CB(s,u.iX+u.I/2-ZC.AO.E1,u.iY+u.F/2-ZC.AO.E2,ZC._i_(C[t].z||"0"));u.iX=_.EB[0]-u.I/2,u.iY=_.EB[1]-u.F/2}}s.BY.push(u),s.FD.push({type:"label",index:t,zindex:u.JU}),s.XT[a]={shape:"label",idx:t}}if(null!==ZC._n_(A=s.o.arrows))for(t=0,i=A.length;t<i;t++){var d=new ACG(s);c.load(d.o,p+".arrow"),d.append(A[t]),a=A[t].id||t,d.K=s.K+"-arrow-"+a,d.parse(),s.YP.push(d),s.FD.push({type:"arrow",index:t,zindex:d.JU})}var f,g=0;if(null!==ZC._n_(Z=s.o.shapes))for(t=0,i=Z.length;t<i;t++)if(null===ZC._n_(Z[t].type)||0!==Z[t].type.indexOf("zingchart.")){var B,v,m;if(Z[t].id||(Z[t].id="shp_"+t+"_"+ZC._r_(1e3,9999)),a=Z[t].id||t,l=null!==ZC._n_(zingchart.pool[s.K+"-shape-"+a])&&zingchart.SKIP.PARSE3D,n=!1,s.D["objects.updates"]&&-1===ZC.AV(s.D["objects.updates"],a)&&(n=!0,l=!0),Z[t].tween&&(n=!0),Z[t]["3d"]?((r=zingchart.pool.getInstance("DW",s,s.K+"-shape-"+a,!0)).o=Z[t],("poly"!==Z[t].type||Z[t]["map-item"])&&(l=!1)):(null!==ZC._n_(Z[t].label)?(r=zingchart.pool.getInstance("R9",s,s.K+"-shape-"+a,n)).XA=Z[t]:((r=zingchart.pool.getInstance("DW",s,s.K+"-shape-"+a,n)).o=Z[t],r.append({},!0)),n&&r._POOL_||(l=!1)),l||(r.H6=a,r.K=s.K+"-shape-"+a,r.OH=!0,Z[t]["map-item"]&&(r.OH=!1),r.parse()),null!==ZC._n_(e=Z[t].hook)&&(r.D.hook=e),Z[t]["3d"]){if(Z[t]["map-item"]){for(B=[],v=0,m=r.E.length;v<m;v++)null!==r.E[v]?(o=new CB(s,r.E[v][0]-ZC.AO.E1,r.E[v][1]-ZC.AO.E2,ZC._i_(r.E[v][2]||Z[t].z||"0")),B.push(o.EB)):B.push(null);r.E=B,s.FJ.push(r),s.FD.push({type:"shape",index:g,zindex:r.JU,z3d:o.AB0}),s.XT[a]={shape:r.DP,idx:g}}else if("poly"===Z[t].type){var b=ZC.DH.D6(r,s,Z[t].points,!1);s.CJ.add(b),s.FJ.push(null)}else{if(r.E.length>0){for(B=[],v=0,m=r.E.length;v<m;v++)o=new CB(s,r.E[v][0]-ZC.AO.E1,r.E[v][1]-ZC.AO.E2,ZC._i_(r.E[v][2]||Z[t].z||"0")),B.push(o.EB);r.E=B}else o=new CB(s,r.iX-ZC.AO.E1,r.iY-ZC.AO.E2,ZC._i_(Z[t].z||"0")),r.iX=ZC._i_(o.EB[0]),r.iY=ZC._i_(o.EB[1]);s.FJ.push(r),s.FD.push({type:"shape",index:g,zindex:r.JU,z3d:o.AB0})}r.D["3dtx"]=!0,r.D["3d"]=!0}else s.FJ.push(r),r instanceof R9?(s.FD.push({type:"shape",index:g,zindex:r.BF.JU}),s.XT[a]={shape:r.BF.DP,idx:g}):(s.FD.push({type:"shape",index:g,zindex:r.JU}),s.XT[a]={shape:r.DP,idx:g});g++}if(null!==ZC._n_(f=s.o.images))for(t=0,i=f.length;t<i;t++){var D=f[t].src;if(ZC.cache.data[D]){var K=new I2(s);K.append({"background-repeat":"no-repeat","background-image":D,width:ZC.cache.data[D].width,height:ZC.cache.data[D].height}),K.append(f[t]),a=f[t].id||t,K.H6=a,K.K=s.K+"-image-"+a,K.L=t,K.parse(),s.LS.push(K),s.FD.push({type:"image",index:t,zindex:K.JU})}}s.D["objects.updates"]=null,s.FD=s.FD.sort(function(e,t){return null!==ZC._n_(e.z3d)&&null!==ZC._n_(t.z3d)?e.z3d-t.z3d>0?1:-1:0}),s.FD=s.FD.sort(function(e,t){return e.zindex-t.zindex==0?e.index-t.index:e.zindex-t.zindex})},K3.prototype.YB=function(e,t){typeof e===ZC._[31]&&(e=!1),typeof t===ZC._[31]&&(t=!1);var i,a=this,n=[a.K+"-objects-bottom-sh-c",a.K+"-objects-bottom-c",a.K+"-objects-top-sh-c",a.K+"-objects-top-c",a.K+"-objects-front-c",a.K+"-objects-print-c"];ZC.SKIPMAPS||n.push(a.K+"-objects-maps-sh-c",a.K+"-objects-maps-c");for(var l=0;l<n.length;l++)(i=ZC.AK(n[l]))&&ZC.Q.IT(i,a.G.AB,a.iX,a.iY,a.I,a.F,a.K);"canvas"===a.A.AB&&!zingchart.CANVASTEXT&&ZC.objmove||(ZC.A5("."+a.K+"-label").remove(),ZC.A5("."+a.K+"-shape-label").remove(),ZC.A5("."+a.K+"-arrow-label").remove()),e||(ZC.A5("."+a.K+"-label-area").each(function(){if(-1===ZC.AV([a.K+"-title-area",a.K+"-subtitle-area",a.K+"-source-area"],this.id)){var e=new RegExp("scale_(x|y|k|v)-(item_|marker_)([0-9]+)").exec(this.id);!t&&e&&e.length||ZC.Q.ET(this.id)}}),ZC.A5("."+a.K+"-shape-area").each(function(){(!ZC.SKIPMAPS||ZC.SKIPMAPS&&"1"!==this.getAttribute("data-map"))&&ZC.Q.ET(this.id)}),ZC.A5("."+a.K+"-arrow-area").remove()),"svg"===a.A.AB&&ZC.A5("#"+a.A.K+"-svg").children().each(function(){var e=a.K+"-label-";"clippath"===this.tagName.toLowerCase()&&this.id.substring(0,e.length)===e&&ZC.Q.ET(this.id)})},K3.prototype.A8V=function(){var e=this;(e.G.O7["objects-top"]||e.G.O7["objects-bottom"])&&(ZC.A5("."+e.K+"-label-area").die(ZC.mobile?"touchstart":"mousedown mouseover",e.A0K).die(ZC.mobile?"touchend":"mouseup mouseout",e.A17).die(ZC.mobile?"touchmove":ZC._[48],e.A0L),ZC.mobile||ZC.A5("."+e.K+"-label-area").die("click",e.V1).die("dblclick",e.V1),ZC.A5("."+e.K+"-shape-area").die(ZC.mobile?"touchstart":"mousedown mouseover",e.A0M).die(ZC.mobile?"touchend":"mouseup mouseout",e.A18).die(ZC.mobile?"touchmove":ZC._[48],e.A0N),ZC.mobile||ZC.A5("."+e.K+"-shape-area").die("click",e.V2).die("dblclick",e.V2))},K3.prototype.OB=function(){var e,t,i,a,n=this;if(n.Z2=!1,null!==ZC._n_(i=n.o[ZC._[10]]))for(e=0,t=i.length;e<t;e++){var l=""+(i[e].text||"");if(-1!==l.indexOf("%node-")||-1!==l.indexOf("%plot-")||-1!==l.indexOf("%npv")||-1!==l.indexOf("%node-percent-value")||ZC._b_(i[e].dynamic)){n.Z2=!0;break}}if(null!==ZC._n_(a=n.o.shapes))for(e=0,t=a.length;e<t;e++)if(ZC._b_(a[e].dynamic)){n.Z2=!0;break}},K3.prototype.Q0=function(e){var t=this;t.YB(e),t.PO(),t.JV(e),ZC.SKIPMAPS=!1},K3.prototype.JV=function(e){typeof e===ZC._[31]&&(e=!1);var t,i,a,n=this,l=[],r=[];function o(e){var t=n.YP[e];if(t.AM&&(t.Z=t.C7=n.G.usc()?n.G.mc("top"):ZC.AK(n.K+"-objects-"+(t.JU<0?"bottom":"top")+"-c"),t.paint(),t.AM&&ZC.AK(n.A.K+"-map"))){var i=t.BF.A2E(),a=ZC.Q.GJ(i[0],t.BF.E8,t.BF.IZ)+'class="'+n.K+'-arrow-area zc-arrow-area" id="'+t.BF.K+'-area" coords="'+i[1]+'" />';"top"===t.o[ZC._[7]]?r.push(a):l.push(a)}}function s(e){if(n.FJ[e]){var i=n.FJ[e],a=i instanceof R9?i.BF:i;if((!ZC.SKIPMAPS||!a.o["map-item"])&&a.AM){if(null!==ZC._n_(t=i.D.hook)){var o=n.OP(t);-1!==o[0]&&(a.iX=ZC._i_(o[0])),-1!==o[1]&&(a.iY=ZC._i_(o[1]))}if(!i.D["3d"]||i.D["3dtx"]){i.Z=n.G.usc()?n.G.mc("top"):ZC.AK(n.K+"-objects-"+(a.JU<0?"bottom":"top")+"-c"),i.C7=n.G.usc()?n.G.mc("top"):ZC.AK(n.K+"-objects-"+(a.JU<0?"bottom":"top")+"-sh-c"),a.o["map-item"]&&(i.Z=n.G.usc()?n.G.mc("top"):ZC.AK(n.K+"-objects-maps-c"),i.C7=n.G.usc()?n.G.mc("top"):ZC.AK(n.K+"-objects-maps-sh-c"));var s="";null!==ZC._n_(t=a.o.limit)&&("x"===t?s="x":"y"===t?s="y":"xy"===t&&(s="xy")),(""===s||"x"===s&&ZC.DR(a.iX-a.BL,n.P.iX-2,n.P.iX+n.P.I+2)||"y"===s&&ZC.DR(a.iY-a.BH,n.P.iY-2,n.P.iY+n.P.F+2)||"xy"===s&&ZC.DR(a.iX+a.BL,n.P.iX-2,n.P.iX+n.P.I-2)&&ZC.DR(a.iY+a.BH,n.P.iY-2,n.P.iY+n.P.F+2))&&(i.WM=!1,i.D["print-canvas"]=n.K+"-"+(a.o["map-item"]?"maps":"objects")+ZC._[15],i.paint())}if(!i.KD&&!n.QH&&"normal"===zingchart.OBJECTMODE){var C=a.A2E();if(ZC.AK(n.A.K+"-map"))for(var A=1,Z=C.length;A<Z;A++)if(""!==C[A]){var c=a.o["map-item"]&&!a.o["map-skip-z-sort"]?' data-map="1"':"",p=ZC.Q.GJ(C[0],a.E8,a.IZ)+'class="'+n.K+'-shape-area zc-shape-area" id="'+a.K+"-area"+(A>1?"--"+A:"")+ZC._[30]+C[A]+'" data-z-sort="'+a.AA2+'"'+c+" />";"top"===i.o[ZC._[7]]?r.push(p):l.push(p)}}}}}function C(e){var t=n.LS[e];if(t.AM)if(t.Z=t.C7=n.G.usc()?n.G.mc("top"):ZC.AK(n.K+"-objects-"+(t.JU<0?"bottom":"top")+"-c"),null!==ZC._n_(t.o.repeat)&&ZC._b_(t.o.repeat)){var i=ZC._i_(ZC._c_(t.o.items,0)),a=null;if(t.o.inactive&&((a=new I2(t.A)).copy(t),a.append(t.o.inactive),a.parse(),a.Z=a.C7=t.Z),i>0||a){var l=ZC._i_(ZC._c_(t.o.rows,-1)),r=ZC._i_(ZC._c_(t.o.cols,-1)),o=ZC._i_(ZC._c_(t.o["space-x"],0)),s=ZC._i_(ZC._c_(t.o["space-y"],0)),C=ZC._i_(ZC._c_(t.o["offset-row"],0)),A=ZC._i_(ZC._c_(t.o["offset-col"],0));-1!==l&&-1===r?r=Math.ceil(i/l):-1===l&&-1!==r?l=Math.ceil(i/r):-1===l&&-1===r&&(r=Math.ceil(Math.sqrt(i)),l=Math.ceil(i/r));for(var Z=t.iX,c=t.iY,p=t.K,u=0;u<l;u++)for(var h=0;h<r;h++)t.iX=Z+h*o+u*C,t.iY=c+u*s+h*A,t.K=p+(u*r+h),u*r+h<i?t.paint():a&&(a.iX=t.iX,a.iY=t.iY,a.K=t.K,a.paint())}else t.paint()}else t.paint()}function A(e){var i=n.BY[e];if(i.AM){if(i.D.lbltype="label",null!==ZC._n_(t=i.D.hook)){var a=n.OP(t);if(-1===a[0]&&-1===a[1])return;if(-1!==a[0]&&(i.iX=a[0]),-1!==a[1]&&(i.iY=a[1]),null===ZC._n_(a[2])||i.o.anchor||null!==ZC._n_(a[2].center)&&a[2].center&&(i.iX-=i.I/2,i.iY-=i.F/2),i.o.anchor&&i.setAnchor(),i.o["3d"]){var o=0;a[2]&&a[2].z?o=a[2].z:i.o.z&&(o=ZC._i_(i.o.z));var s=new CB(n,i.iX+i.I/2-ZC.AO.E1,i.iY+i.F/2-ZC.AO.E2,o);i.iX=s.EB[0]-i.I/2,i.iY=s.EB[1]-i.F/2}}i.iX=ZC._i_(i.iX),i.iY=ZC._i_(i.iY),i.IU=ZC.AK(n.A.K+"-text"),i.Z=n.G.usc()?n.G.mc("top"):ZC.AK(n.K+"-objects-"+(i.JU<0?"bottom":"top")+"-c"),i.C7=n.G.usc()?n.G.mc("top"):ZC.AK(n.K+"-objects-"+(i.JU<0?"bottom":"top")+"-sh-c");var C="";if(null!==ZC._n_(t=i.o.limit)&&("x"===t?C="x":"y"===t?C="y":"xy"===t&&(C="xy")),(""===C||"x"===C&&ZC.DR(i.iX-i.BL,n.P.iX-i.I/2-2,n.P.iX+n.P.I-i.I/2+2)||"y"===C&&ZC.DR(i.iY-i.BH,n.P.iY-i.F/2-2,n.P.iY+n.P.F-i.F/2+2)||"xy"===C&&ZC.DR(i.iX+i.BL,n.P.iX-i.I/2-2,n.P.iX+n.P.I-i.I/2+2)&&ZC.DR(i.iY+i.BH,n.P.iY-i.F/2-2,n.P.iY+n.P.F-i.F/2+2))&&(i.WM=!1,i.paint(),i.EC(ZC.AK(n.K+"-objects-print-c")),!i.KD&&!n.QH&&"normal"===zingchart.OBJECTMODE&&ZC.AK(n.A.K+"-map"))){var A=ZC.AP.OG(n.K,i);"top"===i.o[ZC._[7]]?r.push(A):l.push(A)}}}if(n.G.clearLabelBoxes("label"),n.FD)for(i=0,a=n.FD.length;i<a;i++){var Z=n.FD[i].index;switch(n.FD[i].type){case"arrow":o(Z);break;case"shape":s(Z);break;case"image":C(Z);break;case"label":A(Z)}}for(i=0;i<n.AY.A4.length;i++)n.AY.A4[i].RX=null;if(!e&&"normal"===zingchart.OBJECTMODE&&(r.length>0||l.length>0)&&ZC.AK(n.A.K+"-map")){if(n.A5K){var c=function(e,t){return-1!==e.indexOf("data-map")&&-1!==t.indexOf("data-map")?ZC.AP.NC(t)-ZC.AP.NC(e):ZC.AP.NC(e)-ZC.AP.NC(t)};r.sort(c),l.sort(c)}zingchart.DEV.MAPSONBOTTOM?window.setTimeout(function(){ZC.AK(n.A.K+"-map").innerHTML=r.join("")+ZC.AK(n.A.K+"-map").innerHTML+l.join("")},33):ZC.AK(n.A.K+"-map").innerHTML=r.join("")+ZC.AK(n.A.K+"-map").innerHTML+l.join("")}n.A.D["fire-load"]||ZC.AP.C0("objectsready",n.A,n.I3())},K3.prototype.RF=function(e,t,i,a){var n,l,r,o,s=this;switch(i=i||"hover",e){case"shape":var C=s.FJ[t],A=C instanceof R9?C.BF:C;if(null!==ZC._n_(A.o[i+"-state"])){if(!a&&A.o.group)for(r=0,o=s.FJ.length;r<o;r++)r!==t&&(s.FJ[r].o.group===A.o.group||s.FJ[r].BF&&s.FJ[r].BF.o.group===A.o.group)&&s.RF(e,r,i,!0);if((n=new DW(s)).append(A.o),n.append(A.o[i+"-state"]),l=A.o.id||t,n.H6=l+"-"+i,n.K=s.K+"-shape-"+l+"-"+i,n.parse(),C.D["3d"]&&(n.E=A.E,n.iX=C.iX,n.iY=C.iY),n.AM)if(n.Z=n.C7=ZC.AK(s.K+"-objects-"+i+"-c"),n.o["map-item"]&&(n.Z=n.C7=ZC.AK(s.K+"-objects-maps-"+i+"-c")),n.o["map-item"]&&zingchart.maps.LITE&&"canvas"!==s.A.AB){if("svg"===s.A.AB){var Z=ZC.A5("#"+s.K+"-shape-"+n.H6+"-gshape-path");s.D["map-shape-info"]={fill:Z.attr("fill"),stroke:Z.attr("stroke"),"stroke-width":Z.attr("stroke-width")},"poly"===n.DP?(Z.attr("fill",n.A0),Z.attr("stroke-width",n.AU),Z.attr("stroke",n.BW)):"line"===n.DP&&(Z.attr("stroke-width",n.AZ),Z.attr("stroke",n.B7))}else if("vml"===s.A.AB){var c=ZC.AK(s.K+"-shape-"+n.H6+"-gshape-path"),p=ZC.A5(c.childNodes[1]),u=ZC.A5(c.childNodes[2]);s.D["map-shape-info"]={fill:""+u.attr("color"),stroke:""+p.attr("color"),"stroke-width":""+p.attr("weight")},"poly"===n.DP?(u.attr("color",n.A0),p.attr("weight",n.AU),p.attr("color",n.BW)):"line"===n.DP&&(p.attr("weight",n.AZ),p.attr("color",n.B7))}}else n.paint(),"canvas"===s.A.AB&&zingchart.CANVASTEXT&&C.M&&(C.M.Z=C.M.C7=ZC.AK(s.K+"-objects-"+i+"-c"),C.M.paint())}break;case"label":var h=s.BY[t];if(h&&null!==ZC._n_(h.o[i+"-state"])){if(!a&&h.o.group)for(r=0,o=s.BY.length;r<o;r++)r!==t&&s.BY[r].o.group===h.o.group&&s.RF(e,r,i,!0);var _=zingchart.pool.getInstance("DT",s,s.K+"-label-"+i);_.append(h.o),_.append(h.o[i+"-state"]),l=h.id||t,_.H6=l+"-"+i,_.K=s.K+"-label-"+l+"-"+i,_.GO=s.K+"-label "+s.K+"-label-"+i+" zc-label zc-label-"+i,_.IU=ZC.AK(s.A.K+"-text"),_.parse(),_.AM&&(_.iX=h.iX,_.iY=h.iY,_.I=h.I,_.F=h.F,_.Z=_.C7=ZC.AK(s.K+"-objects-"+i+"-c"),ZC.AK(s.K+"-label-"+l)&&(ZC.AK(s.K+"-label-"+l).style.display="none"),_.paint())}}},K3.prototype.Q9=function(){var e,t,i,a=this;(a.G.O7["objects-top"]||a.G.O7["objects-bottom"])&&(a.A0M=function(e){ZC.mobile&&(a.L2(),ZC.move=!1,a.G.hideCM(),null===a.G.DE||null===ZC._n_(a.G.DE["page-scroll"])||a.G.DE["page-scroll"]||e.preventDefault(),a.A.W8(e));var t=n(e);t.tooltip&&a.A7&&a.A.A7&&a.A7.AM&&a.A.A7.onmouseover(e);var i=ZC.mobile?"mousedown":e.xtype||e.type;t.lowlevel||a.RF("shape",t.shapeindex),a.QR(i,t)},a.A18=function(e){ZC.mobile&&(a.G.A9T||ZC.move||(zingchart.SP(e),a.V2(e)),a.A.P8(e)),a.A7&&a.A.A7&&a.A7.AM&&a.A.A7.onmouseout(e),ZC.mobile||a.L2();var t=ZC.mobile?"mouseup":e.xtype||e.type,i=n(e);if(i.shape&&i.shape.mapItem&&zingchart.maps.LITE&&"canvas"!==a.A.AB)if("svg"===a.A.AB){var l=ZC.A5("#"+a.K+"-shape-"+i.shape.id+"-gshape-path");"poly"===i.shape.type&&l.attr("fill",a.D["map-shape-info"].fill),l.attr("stroke",a.D["map-shape-info"].stroke),l.attr("stroke-width",a.D["map-shape-info"]["stroke-width"])}else if("vml"===a.A.AB){var r=ZC.AK(a.K+"-shape-"+i.shape.id+"-gshape-path"),o=r.childNodes[1],s=r.childNodes[2],C=a.D["map-shape-info"];"poly"===i.shape.type&&ZC.Q.G9(s,{color:C.fill}),ZC.Q.G9(o,{weight:C["stroke-width"],color:C.stroke})}a.QR(t,i)},a.A0N=function(e){var t=n(e);t.tooltip&&a.A7&&a.A.A7&&a.A7.AM&&a.A.A7.onmousemove(e),a.QR(ZC._[48],t)},a.V2=function(e){var t=n(e);if("dblclick"!==e.type){e.ctrlKey||a.L2("click"),a.TP=a.TP||{},a.TP["s_"+t.shapeid]?(a.TP["s_"+t.shapeid]=null,a.L2("click")):(e.ctrlKey||(a.TP={}),a.TP["s_"+t.shapeid]=1,a.RF("shape",t.shapeindex,"click")),a.QR("click",t);var i=a.FJ[t.shapeindex].BF||a.FJ[t.shapeindex];if(ZC.mobile&&(a.D["click-ts"]&&(new Date).getTime()-a.D["click-ts"]<500&&a.QR("dblclick",t),a.D["click-ts"]=(new Date).getTime()),i&&i.E8&&"NULL"!==i.E8)if(i.E8 instanceof Array)for(var l=0;l<i.E8.length;l++)null!==ZC._n_(i.FF[l])&&a.UC(e,i.E8[l],i.FF[l]);else a.UC(e,i.E8,i.FF)}else a.QR("dblclick",t)},ZC.A5("."+a.K+"-shape-area").live(ZC.mobile?"touchstart":"mousedown mouseover",a.A0M).live(ZC.mobile?"touchend":"mouseup mouseout",a.A18).live(ZC.mobile?"touchmove":ZC._[48],a.A0N),ZC.mobile||ZC.A5("."+a.K+"-shape-area").live("click",a.V2).live("dblclick",a.V2),a.A0K=function(e){ZC.mobile&&(a.L2(),ZC.move=!1,a.G.hideCM(),null===a.G.DE||null===ZC._n_(a.G.DE["page-scroll"])||a.G.DE["page-scroll"]||e.preventDefault(),a.A.W8(e));var t=l(e);if(t.tooltip&&a.A7&&a.A.A7&&a.A7.AM&&a.A.A7.onmouseover(e),null!==t&&"label"===t.type){var i=ZC.mobile?"mousedown":e.xtype||e.type;t["data-active"]||a.RF("label",t.labelindex),a.QQ(i,t)}},a.A17=function(e){ZC.mobile&&(a.G.A9T||ZC.move||(zingchart.SP(e),a.V1(e)),a.A.P8(e)),a.A7&&a.A.A7&&a.A7.AM&&a.A.A7.onmouseout(e),ZC.mobile||a.L2();var t=l(e);if(null!==t){var i=ZC.mobile?"mouseup":e.xtype||e.type;ZC.AK(a.K+"-label-"+t.label.id)&&(ZC.AK(a.K+"-label-"+t.label.id).style.display="block"),a.QQ(i,t)}},a.A0L=function(e){var t=l(e);t.tooltip&&a.A7&&a.A.A7&&a.A7.AM&&a.A.A7.onmousemove(e),a.QQ(ZC._[48],t)},a.V1=function(e){var t=l(e);if("dblclick"!==e.type){e.ctrlKey||a.L2("click"),a.TP=a.TP||{},a.TP["l_"+t.labelid]?(a.TP["l_"+t.labelid]=null,a.L2("click")):(e.ctrlKey||(a.TP={}),a.TP["l_"+t.labelid]=1,a.RF("label",t.labelindex,"click")),a.QQ("click",t),ZC.mobile&&(a.D["click-ts"]&&(new Date).getTime()-a.D["click-ts"]<500&&a.QQ("dblclick",t),a.D["click-ts"]=(new Date).getTime());var i=a.BY[t.labelindex];if(!i)switch(t.type){case"graph-title":i={E8:a.J4.E8,FF:a.J4.FF};break;case"graph-subtitle":i={E8:a.KU.E8,FF:a.KU.FF};break;case"graph-source":i={E8:a.N0.E8,FF:a.N0.FF}}if(i&&i.E8&&"NULL"!==i.E8)if(i.E8 instanceof Array)for(var n=0;n<i.E8.length;n++)null!==ZC._n_(i.FF[n])&&(i.E8[n]=i.E8[n].replace("%id",a.A.K),i.E8[n]=i.E8[n].replace("%graphid",a.K.replace(a.A.K+"-graph-","")),a.UC(e,i.E8[n],i.FF[n]));else i.E8=i.E8.replace("%id",a.A.K),i.E8=i.E8.replace("%graphid",a.K.replace(a.A.K+"-graph-","")),a.UC(e,i.E8,i.FF)}else a.QQ("dblclick",t)},ZC.A5("."+a.K+"-label-area").live(ZC.mobile?"touchstart":"mousedown mouseover",a.A0K).live(ZC.mobile?"touchend":"mouseup mouseout",a.A17).live(ZC.mobile?"touchmove":ZC._[48],a.A0L),ZC.mobile||ZC.A5("."+a.K+"-label-area").live("click",a.V1).live("dblclick",a.V1));function n(e){for(var t=(e.targetid||e.target.id).replace(/\-\-\d+/g,"").replace(a.K+"-shape-","").replace("-gshape-area","").replace("-area",""),i=-1,n=null,l=0,r=a.FJ.length;l<r;l++)if(a.FJ[l]&&""+a.FJ[l].H6==""+t){i=l,n=a.FJ[l]instanceof R9?a.FJ[l].BF:a.FJ[l];break}if(!n&&e.target.getAttribute("data-lowlevel"))return{shapeid:e.target.id,lowlevel:!0,ev:e};if(-1===i)return null;var o={shapeid:t,shapeindex:i,tooltip:n.o.tooltip?1:0,shape:{id:t,index:i,cls:n.DI,x:n.iX,y:n.iY,type:n.DP,mapItem:n.o["map-item"],points:n.E,width:n.I,height:n.F,size:n.AI,size2:n.L5,angle:n.A9,zIndex:n.JU},ev:e};for(var s in n.o)n.o.hasOwnProperty(s)&&"data-"===s.substring(0,5)&&(o[s]=n.o[s]);return o}function l(n){var l,r=n.targetid||n.target.id;if(r===a.K+"-title-area"||r===a.K+"-subtitle-area"||r===a.K+"-source-area"){var o=null,s=-1;switch(l=r.replace(a.K+"-","").replace("-area","")){case"title":o=a.J4,s=-1;break;case"subtitle":o=a.KU,s=-2;break;case"source":o=a.N0,s=-3}return{type:"graph-"+l,labelid:o.K,labelindex:s,text:o.AT,label:{id:o.K,index:s,text:o.AT},ev:n}}if(-1===r.indexOf("-scale")||-1===r.indexOf("-item")&&-1===r.indexOf("-marker")){if(-1!==r.indexOf("-value-box-")){e=r.replace(a.K+ZC._[35],"").replace("-value-box-area",""),t=e.split("-node-");var C=a.AY.A4[ZC._i_(t[0])].FM(ZC._i_(t[1]));return C?{type:ZC._[17],labelid:"vb_"+t.join("_"),plotindex:ZC._i_(t[0]),nodeindex:ZC._i_(t[1]),text:C.AD,label:{id:"vb_"+t.join("_"),text:C.AD},ev:n}:null}e=r.replace(a.K+"-label-","").replace("-area","");for(var A=-1,Z=null,c=0,p=a.BY.length;c<p;c++)if(""+a.BY[c].H6==""+e){A=c,Z=a.BY[c];break}if(i=-1===A?"":a.BY[A].AT,-1===A)return null;var u={type:"label",labelid:e,labelindex:A,text:i,tooltip:Z.o.tooltip?1:0,label:{id:e,index:A,cls:Z.DI,x:Z.iX+Z.BL,y:Z.iY+Z.BH,width:Z.I,height:Z.F,text:i},ev:n};for(var h in Z.o)Z.o.hasOwnProperty(h)&&"data-"===h.substring(0,5)&&(u[h]=Z.o[h]);return u}e=r.replace(a.K+"-","").replace("-area","");var _=(t=e.split("-"))[1].split("_"),d=0;2===_.length?d=ZC._i_(_[1]):3===_.length&&(d=ZC._i_(_[2]));var f,g=t[0].replace(/_/g,"-"),B=a.BI(g);return-1!==r.indexOf("-item")?(l="scale-item",f="si_"+t[1].replace("item_",""),i=B.BY[d]||B.V[d],"si_title"===f&&(i=B.M.AT)):(l="scale-marker",f="sm_"+t[1].replace("marker_",""),i=B.D["marker_text_"+d]||""),{type:l,labelid:f,labelindex:d,scale:g,text:i,tooltip:B.o.tooltip||B.o.item&&B.o.item.tooltip?1:0,label:{id:f,index:d,text:i},ev:n}}},K3.prototype.QQ=function(e,t){ZC._cp_(this.I3(),t),t.ev=ZC.A5.BX(t.ev),ZC.AP.C0("label_"+e,this.A,t)},K3.prototype.QR=function(e,t){ZC._cp_(this.I3(),t),t.ev=ZC.A5.BX(t.ev),ZC.AP.C0("shape_"+e,this.A,t)},K3.prototype.OP=function(e){var t,i,a=this;if("string"==typeof e){var n={},l=e.split(":");if(2===l.length){n.type=l[0];for(var r=0,o=(l=l[1].split(/\s|,|;/)).length;r<o;r++){var s=l[r].split("=");n[s[0]]=s[1]}}e=n}var C=[-1,-1];switch(a.D.hooks=!0,e.type){case"scale":var A,Z,c,p="",u=-1,h=null;if(null!==ZC._n_(t=e.name)&&(p=t),null!==ZC._n_(t=e.index)&&(u=ZC._i_(t)),null!==ZC._n_(t=e[ZC._[9]])&&(h=ZC._i_(t)),i=null,""===p&&(p=ZC._[50]),i=a.BI(p))switch(i.H4&&-1!==u?c=i.H4(u):i.AN&&(null!==ZC._n_(h)?c=i.AN(h):-1!==u&&(c=i.AN(i.V[u]))),a.AJ.layout){case"radar":case"gauge":A=c[0],Z=c[1];break;case"xy":"k"===i.AF?(A=c,Z=i.iY,"default"===i.B9&&(Z+=i.F)):"v"===i.AF&&(Z=c,A=i.iX,"opposite"===i.B9&&(A+=i.I));break;case"yx":"k"===i.AF?(Z=c,A=i.iX,"opposite"===i.B9&&(A+=i.I)):"v"===i.AF&&(A=c,Z=i.iY,"default"===i.B9&&(Z+=i.F))}C=[A,Z,{center:!0}];break;case"node":var _=-1,d=null,f=null,g=null,B=null;null!==ZC._n_(t=e.plot)&&(g=t),null!==ZC._n_(t=e.plotindex)&&(g=t),null!==ZC._n_(t=e.plotid)&&(B=t);var v=a.HT(g,B);null!==ZC._n_(t=e.index)&&(_=ZC._i_(t)),null!==ZC._n_(t=e[ZC._[9]])&&(d=t),null!==ZC._n_(t=e.keyvalue)&&(f=t);var m=null;if(v){if(-1!==_&&v.R[_])m=v.FM(_,3);else if(null!==ZC._n_(d)||null!==ZC._n_(f)){var b,D;if(i=v.C.BI(v.BN[0]),null!==f&&null===d&&v.R.length>4096&&i.FI&&"date"===i.FI.o.type&&null!==(b=ZC._nfind_(f,v,0,v.R.length-1))&&(m=v.FM(b,3)),!m)for(b=0,D=v.R.length;b<D;b++)v.R[b]&&(null!==d&&v.R[b].AD==d&&(m=v.FM(b,3)),null!==f&&null!==ZC._n_(v.R[b].BU)&&v.R[b].BU==f&&(m=v.FM(b,3)))}m&&(m.setup(),C=m.OP(e),!m.JJ&&ZC.DR(C[0],a.P.iX,a.P.iX+a.P.I)&&ZC.DR(C[1],a.P.iY,a.P.iY+a.P.F)&&(m.JJ=!0),m.JJ&&m.AM&&m.A.AM&&m.C.D["plot"+m.A.L+".visible"]||(C=[-1,-1])),v.D["z-mid"]&&(C[2].z=v.D["z-mid"])}}return null!==ZC._n_(e.x)&&(C[0]=ZC._i_(e.x)),null!==ZC._n_(e.y)&&(C[1]=ZC._i_(e.y)),null!==ZC._n_(t=e["offset-x"])&&(C[0]+=ZC._i_(t)),null!==ZC._n_(t=e["offset-y"])&&(C[1]+=ZC._i_(t)),C},zingchart.ABH=function(e,t,i){document.getElementById("zc-fullscreen")&&(e="zc-fullscreen"),"string"==typeof(i=i||{})&&(i=JSON.parse(i));var a,n,l,r,o,s,C,A,Z,c,p,u,h,_,d=!(null!==ZC._n_(i.update)&&!ZC._b_(i.update)),f=!!i.dynamic&&ZC._b_(i.dynamic),g=zingchart.getLoader(e);if(g)switch(t){case"addobject":if((a=g.C8(i[ZC._[3]]))&&i.data){if(Z=(A=i.data instanceof Array)?[]:{},ZC._cp_(i.data,Z),n=i.type||"label",A)for(o=0,s=Z.length;o<s;o++)n=i.type||Z[o].objtype||"label",a.o[n+"s"]||(a.o[n+"s"]=[]),f&&(Z[o]["map-item"]=!1),a.o[n+"s"].push(Z[o]);else a.o[n+"s"]||(a.o[n+"s"]=[]),f&&(Z["map-item"]=!1),a.o[n+"s"].push(Z);d&&(a.OB(),a.Q0(f))}i.callback&&"function"==typeof i.callback&&i.callback(i);break;case"removeobject":if(a=g.C8(i[ZC._[3]]),i["class"]&&(i.cls=i["class"]),a&&(i.id||i.cls||i.group)){n=i.type||"label",C=a.o[n+"s"]||[],l=i.id?"string"==typeof i.id?[i.id]:i.id:[],r=i.cls?"string"==typeof i.cls?[i.cls]:i.cls:[],c=!1;var B=[];for(o=C.length-1;o>=0;o--)(null!==ZC._n_(C[o].id)&&-1!==ZC.AV(l,C[o].id)||null!==ZC._n_(C[o].cls)&&-1!==ZC.AV(r,C[o].cls)||null!==ZC._n_(C[o]["class"])&&-1!==ZC.AV(r,C[o]["class"])||i.group&&C[o].group===i.group)&&(null!==ZC._n_(C[o].id)&&B.push(C[o].id),C.splice(o,1),c=!0);for(o=0;o<B.length;o++)ZC.Q.ET([a.K+"-label-"+B[o]+"-gradient",a.K+"-label-"+B[o]+"-top-gradient",a.K+"-shape-"+B[o]+"-gradient",a.K+"-shape-"+B[o]+"-top-gradient",a.K+"-shape-"+B[o]+"-gshape-gradient",a.K+"-shape-"+B[o]+"-gshape-top-gradient"]);c&&d&&(a.OB(),a.Q0(f))}i.callback&&"function"==typeof i.callback&&i.callback(i);break;case"updateobject":if(i["class"]&&(i.cls=i["class"]),(a=g.C8(i[ZC._[3]]))&&i.data){a.D["objects.updates"]=[],n=i.type||"label",C=a.o[n+"s"]||[],_="label"===n?a.BY:a.FJ,Z=(A=i.data instanceof Array)?[]:{},ZC._cp_(i.data,Z),c=!1;var v=!0,m=function(e,t){var i,l,r,o=a.XT[e.id||""],s=!1;if(o&&("label"===o.shape?(r=a.BY[o.idx],Object.keys&&3===Object.keys(e).length&&null!==ZC._n_(e.x)&&null!==ZC._n_(e.y)&&(r.iX=e.x,r.iY=e.y,s=!0)):((r=a.FJ[o.idx]).BF&&r.BF.o["map-item"]&&(v=!1),"circle"===o.shape?Object.keys&&3===Object.keys(e).length&&null!==ZC._n_(e.x)&&null!==ZC._n_(e.y)&&(r.BF?(r.BF.iX=e.x,r.BF.iY=e.y):(r.iX=e.x,r.iY=e.y),s=!0):"line"===o.shape&&Object.keys&&2===Object.keys(e).length&&null!==ZC._n_(e.points)&&(r.BF?r.BF.E=e.points:r.E=e.points,s=!0))),s||a.D["objects.updates"].push(e.id),ZC._cp_(e,t),null!==ZC._n_(e.animation)){var C=null;if("label"===n){for(i=0,l=a.BY.length;i<l;i++)if(a.BY[i].H6===e.id){C=a.BY[i];break}}else if("shape"===n)for(i=0,l=a.FJ.length;i<l;i++)if(a.FJ[i].H6===e.id){C=a.FJ[i]instanceof R9?a.FJ[i].BF:a.FJ[i];break}var A=a.M4,Z={};if(ZC._cp_(e,Z),null!==ZC._n_(Z.x)&&(Z.x+=a.iX),null!==ZC._n_(Z.y)&&(Z.y+=a.iY),null!==ZC._n_(Z.points))for(i=0,l=Z.points.length;i<l;i++)null!==ZC._n_(Z.points[i])&&(Z.points[i][0]+=a.iX,Z.points[i][1]+=a.iY,null!==ZC._n_(Z.points[i][2])&&(Z.points[i][2]+=a.iX),null!==ZC._n_(Z.points[i][3])&&(Z.points[i][3]+=a.iY));Z.animation=null;var p=new EA(C,Z,ZC._i_(e.animation.speed||"300"),ZC._i_(e.animation.delay||"0"),EA.RU[ZC._i_(e.animation.method||"0")],function(){null!==ZC._n_(e.animation.end)&&e.animation.end.call()});a.QH=!0,window.setTimeout(function(){A.add(p)},33)}c=!0};if(A){var b=!1,D=!1;for(o=0,s=Z.length;o<s;o++){if(null!==ZC._n_(Z[o].objtype)&&(C=a.o[Z[o].objtype+"s"]),C)for(p=0,u=C.length;p<u;p++)null!==ZC._n_(Z[o].id)&&null!==ZC._n_(C[p].id)&&C[p].id===Z[o].id&&m(Z[o],C[p]);null!==ZC._n_(Z[o].animation)?b=!0:D=!0,D&&b&&(ZC.SKIPMAPS=v,a.PO())}}else if(i.group)for(p=0,u=C.length;p<u;p++)C[p].group===i.group&&(Z.id=C[p].id,m(Z,C[p]));else if(i.cls)for(p=0,u=C.length;p<u;p++)C[p].cls===i.cls&&(Z.id=C[p].id,m(Z,C[p]));else for(e=Z.id||i.id,p=0,u=C.length;p<u;p++)null!==ZC._n_(C[p].id)&&null!==ZC._n_(e)&&C[p].id===e&&(Z.id=e,m(Z,C[p]));ZC.SKIPMAPS=v,!c||!d&&a.QH||a.QH||(a.OB(),a.Q0(f))}i.callback&&"function"==typeof i.callback&&i.callback(i);break;case"repaintobjects":(a=g.C8(i[ZC._[3]]))&&(a.OB(),a.Q0(f)),i.callback&&"function"==typeof i.callback&&i.callback(i);break;case"getallobjects":if(l=[],a=g.C8(i[ZC._[3]]))for(n=i.type||"label",o=0,s=(C=a.o[n+"s"]||[]).length;o<s;o++)null!==ZC._n_(C[o].id)&&l.push(C[o].id);return l;case"getobjectsbyclass":if(i["class"]&&(i.cls=i["class"]),l=[],(a=g.C8(i[ZC._[3]]))&&i.cls){n=i.type||"label",C=a.o[n+"s"]||[];var K=i.cls instanceof Array?i.cls:[i.cls];for(o=0,s=C.length;o<s;o++)-1===ZC.AV(K,C[o].cls)&&-1===ZC.AV(K,C[o]["class"])||null===ZC._n_(C[o].id)||l.push(C[o].id)}return l;case"getlabelinfo":case"getshapeinfo":var E={x:"iX",y:"iY",width:"I",height:"F",color:"C1",lineColor:"B7",lineWidth:"AZ",borderColor:"BW",borderWidth:"AU",backgroundColor1:"A0",backgroundColor2:"AE",size:"AI",type:"DP",text:"AT",fontSize:"DF",callout:"KW",calloutPosition:"ER",offsetX:"BL",offsetY:"BH"};if(a=g.C8(i[ZC._[3]]),n=i.type||"label","getlabelinfo"===t&&"label"!==n||"getshapeinfo"===t&&"shape"!==n)return null;if(e=i.id||"",a&&""!==e){_=[],"label"===n?_=a.BY:"shape"===n&&(_=a.FJ);var F=null;for(o=0,s=_.length;o<s;o++)_[o].H6===e&&(F=_[o]);if(F){var I={};if("shape"===n){if(F.M)for(h in I.label={},E)I.label[h]=F.M[E[h]];F.BF&&(F=F.BF)}for(h in E)I[h]=F[E[h]];return I}}return null;case"setobjectsmode":zingchart.OBJECTMODE="normal",i.mode&&"flat"===i.mode&&(zingchart.OBJECTMODE="flat");break;case"settweenmode":ZC.objmove=!1,i.mode&&"position"===i.mode&&(ZC.objmove=!0)}return null},K3.prototype.A3U=function(){var e,t,i=this,a=0;for(e=0,t=i.BN.length;e<t;e++)"k"===i.BN[e].AF&&i.o[i.BN[e].BG]&&i.o[i.BN[e].BG][ZC._[5]]&&(a=ZC.BQ(a,i.o[i.BN[e].BG][ZC._[5]].length));for(e=0,t=i.AY.A4.length;e<t;e++)null!==ZC._n_(i.o[ZC._[11]][e])&&i.o[ZC._[11]][e][ZC._[5]]&&(a=ZC.BQ(a,i.o[ZC._[11]][e][ZC._[5]].length));return a},K3.prototype.UQ=function(){var e,t=this;if(t.HW)for(var i=t.A3U(),a=0,n=t.BN.length;a<n;a++)"k"===t.BN[a].AF&&(t.BN[a].CP?(e=(t.BN[a].F-t.BN[a].AA-t.BN[a].BV)/ZC._i_(t.HW["max-ticks"]),t.BN[a].OW=ZC.BQ(0,t.BN[a].F-i*e)):(e=(t.BN[a].I-t.BN[a].AA-t.BN[a].BV)/ZC._i_(t.HW["max-ticks"]),t.BN[a].OW=ZC.BQ(0,t.BN[a].I-i*e)),ZC._b_(t.HW["adjust-scale"])&&(t.BN[a].OW=0),t.BN[a].AA=t.BN[a].A4M+t.BN[a].OW,t.A.D[t.BN[a].BG+"-feed-offset-start"]=t.BN[a].AA,t.BN[a].W=ZC.BQ(0,t.BN[a].A1-t.HW["max-ticks"]+1),t.BN[a].GZ())},K3.prototype.A80=function(){var s=this,H,MX,ws;if(s.D["from-api"]&&(window.clearTimeout(ZC.REFRESH_TICK[s.K]),delete s.D["from-api"]),s.HW){var P3=ZC._i_(s.HW.interval);if(P3=P3>=50?P3:1e3*P3,"full"===s.HW.type)"http"===s.HW.transport?ZC.REFRESH_TICK[s.K]=window.setTimeout(function(){s.A.MT(s),ZC.A07(function(){s.A.load(s.K,s.A9W)})},P3):"websockets"===s.HW.transport&&ZC.websockets&&(s.G.SM[s.K]?"pull"===s.HW.method&&(ZC.REFRESH_TICK[s.K]=window.setTimeout(function(){s.G.SM[s.K].send("zingchart.getdata")},P3)):(ws=new WebSocket(s.HW.url,"zingchart"),ws.onopen=function(){ws.send("zingchart."+s.HW.type),ws.send("zingchart."+s.HW.method),ws.send("zingchart.getdata")},ws.onmessage=function(e){"ready"===s.MI&&(s.A.MT(s),s.MI="full",ZC.A07(function(){zingchart.exec(s.A.K,"setdata",{graphid:s.K,data:e.data,softclear:!0})}))},s.G.SM[s.K]=ws));else if("feed"===s.HW.type&&null!==ZC._n_(s.HW.url)){if(null!==ZC._n_(s.HW.curtain)){var OO=s.BT("k");if(OO.length>0&&(ZC.Q.ET(s.K+"-curtain-t"),OO[0].OW>0)){var M7=new DT(s);s.A.B8.load(M7.o,"("+s.AF+").refresh.curtain"),M7.append(s.HW.curtain),M7.parse(),M7.AM&&(OO[0].CP&&M7.F<=OO[0].OW||!OO[0].CP&&M7.I<=OO[0].OW)&&(M7.K=s.K+"-curtain-t",M7.IU=ZC.AK(s.A.K+"-text-top"),OO[0].CP?(M7.F>OO[0].OW&&(M7.AT="",M7.parse()),M7.iX=s.P.iX,M7.iY=OO[0].AW?s.P.iY:s.P.iY+s.P.F-OO[0].OW,M7.I=s.P.I,M7.F=OO[0].OW):(M7.I>OO[0].OW&&(M7.AT="",M7.parse()),M7.iX=OO[0].AW?s.P.iX+s.P.I-OO[0].OW:s.P.iX,M7.iY=s.P.iY,M7.I=OO[0].OW,M7.F=s.P.F),M7.Z=M7.C7=ZC.AK(s.K+"-scales-ml-0-c"),M7.paint())}}var A1J=s.HW.transport,A4O=ZC._i_(s.HW["reset-timeout"]),A5Q=ZC._i_(s.HW["stop-timeout"]),AA6=ZC._b_(s.HW.storage),A0X=!0;null!==ZC._n_(s.HW["preserve-data"])&&(A0X=ZC._b_(s.HW["preserve-data"]));var A67=function(KN){for(var U6=eval("("+KN+")"),i,A6,A93=U6 instanceof Array?U6:[U6],r=0,rLen=A93.length;r<rLen;r++){var DJ=A93[r];for(i=0,A6=s.BN.length;i<A6;i++)if("k"===s.BN[i].AF){var BG=s.BN[i].BG;null!==ZC._n_(DJ[BG])&&null!==ZC._n_(s.o[BG])&&(null===ZC._n_(s.o[BG][ZC._[5]])&&(s.G.o[ZC._[16]][s.L][BG][ZC._[5]]=[],s.o[BG][ZC._[5]]=[]),s.o[BG][ZC._[5]].push(DJ[BG]),!A0X&&s.o[BG][ZC._[5]].length>ZC._i_(s.HW["max-ticks"])&&s.o[BG][ZC._[5]].splice(0,1),s.G.o[ZC._[16]][s.L][BG][ZC._[5]].push(DJ[BG]),(s.o[BG][ZC._[5]].length>A4O||1===s.MK[1])&&(s.G.o[ZC._[16]][s.L][BG][ZC._[5]]=[],s.o[BG][ZC._[5]]=[],s.G.D["graph"+s.L+".zoom"]&&(s.G.D["graph"+s.L+".zoom"].xmin=null,s.G.D["graph"+s.L+".zoom"].xmax=null),s.IG&&(s.IG.unbind(),ZC.Q.IT(ZC.AK(s.K+"-scroll-x-c"),s.A.AB,s.iX,s.iY,s.I,s.F,s.K),ZC.A5("#"+s.K+"-scroll-x-handle").remove(),ZC.A5("#"+s.K+"-scroll-x-bar").remove()),s.IH&&(s.IH.unbind(),ZC.Q.IT(ZC.AK(s.K+"-scroll-y-c"),s.A.AB,s.iX,s.iY,s.I,s.F,s.K),ZC.A5("#"+s.K+"-scroll-y-handle").remove(),ZC.A5("#"+s.K+"-scroll-y-bar").remove())),ZC.webstorage&&AA6&&ZC.AP.storage.push("zingchart.scale."+s.K+"."+BG,""+DJ[BG]))}for(i=0,A6=s.AY.A4.length;i<A6;i++)if(null!==ZC._n_(s.o[ZC._[11]][i])){var A4E=null;null!==ZC._n_(H=DJ["plot-"+i])?A4E=H:null!==ZC._n_(H=DJ["plot"+i])&&(A4E=H),"xy"===s.AJ.layout||"yx"===s.AJ.layout?(s.G.o[ZC._[16]][s.L][ZC._[11]][i][ZC._[5]].push(A4E),!A0X&&s.G.o[ZC._[16]][s.L][ZC._[11]][i][ZC._[5]].length>ZC._i_(s.HW["max-ticks"])&&s.G.o[ZC._[16]][s.L][ZC._[11]][i][ZC._[5]].splice(0,1)):s.G.o[ZC._[16]][s.L][ZC._[11]][i][ZC._[5]]=[A4E],ZC.webstorage&&AA6&&(H=DJ["plot"+i],"object"==typeof H&&(H=H.join("###")),ZC.AP.storage.push("zingchart.plot."+s.K+".plot"+i,""+H)),(s.o[ZC._[11]][i][ZC._[5]].length>A4O||1===s.MK[1])&&(ZC.AP.C0("feed_clear",s.A,s.I3(),DJ),s.G.o[ZC._[16]][s.L][ZC._[11]][i][ZC._[5]]=[])}MX=s.A3U()}("ready"===s.MI||s.GF)&&(1===s.MK[1]&&(s.MK[1]=0),(MX<=A5Q||0===A5Q)&&(s.MI="feed",ZC.A07(function(){ZC.AK(s.A.K+"-main")&&(ZC.AP.C0("feed_step",s.G,s.I3(),s.o),s.parse(),s.clear(!0),s.UQ(),s.paint(!0,!0))})))};if("http"===A1J||"js"===A1J){var E8=s.HW.url;ZC.REFRESH_TICK[s.K]=window.setTimeout(function(){if(1===s.MK[0]||1===s.MK[1])if(s.A.MT(s),"http"===A1J){var EV=["query-string"===s.A.N9?"zcrandom="+Math.random():"",zingchart.ZCOUTPUT?"zcoutput="+s.G.AB:""].join("&");ZC.A5.ajax({type:"GET",url:E8,beforeSend:function(e){s.A.S5.data||"http-headers"!==s.A.N9||e.setRequestHeader(ZC._[45],"Thu, 01 Jan 1970 00:00:00 GMT")},data:EV,dataType:"text",error:function(){},success:function(e){A67(e)}})}else if("()"===E8.substring(E8.length-2)||"javascript:"===E8.substring(0,11))try{var ED=E8.replace("javascript:","").replace("()","");eval(ED)&&eval(ED).call(s,function(e){A67(e)},s.I3())}catch(e){}},P3)}else"websockets"===A1J&&ZC.websockets&&(s.G.SM[s.K]?"pull"===s.HW.method&&(ZC.REFRESH_TICK[s.K]=window.setTimeout(function(){s.G.SM[s.K].send("zingchart.getdata")},P3)):(ws=new WebSocket(s.HW.url,"zingchart"),ws.onopen=function(){ws.send("zingchart."+s.HW.type),ws.send("zingchart."+s.HW.method),ws.send("zingchart.startfeed"),"pull"===s.HW.method&&ws.send("zingchart.getdata")},ws.onmessage=function(e){1!==s.MK[0]&&1!==s.MK[1]||A67(e.data)},s.G.SM[s.K]=ws))}}},zingchart.AC2=function(e,t,i){var a;document.getElementById("zc-fullscreen")&&(e="zc-fullscreen"),"string"==typeof(i=i||{})&&(i=JSON.parse(i));var n=zingchart.getLoader(e);if(n){var l=n.C8(i[ZC._[3]]);switch(t){case"clearfeed":l.MK[1]=1,0===l.MK[0]&&ZC.A07(function(){l.parse(),l.clear(!0),l.UQ(),l.paint(!0,!0)});break;case"getinterval":return l.HW.interval;case"setinterval":ZC.AP.C0("feed_interval_modify",n,l.I3()),l.o.refresh=l.o.refresh||{},l.o.refresh.interval=i.interval||1;break;case"stopfeed":1===l.MK[0]&&(ZC.AP.C0("feed_stop",n,l.I3()),l.MK[0]=0,null!==ZC._n_(a=n.SM[l.K])&&a.send("zingchart.stopfeed"));break;case"startfeed":0===l.MK[0]&&(ZC.AP.C0("feed_start",n,l.I3()),l.MK[0]=1,null!==ZC._n_(a=n.SM[l.K])&&a.send("zingchart.startfeed"),ZC.A07(function(){l.parse(),l.clear(!0),l.UQ(),l.paint(!0,!0)}))}}return null},ZC.AP.A4Y=function(e){for(var t={},i=[],a=0,n=(i="object"==typeof e?e:JSON.parse(e)).length;a<n;a++)if(null!==ZC._n_(e=i[a])){t["p"+a]={};var l=[];if("object"==typeof e)l=e;else if("string"==typeof e&&/\d+\-\d+/.test(e)){var r=e.split("-");if(2===r.length){l=[];for(var o=ZC._i_(r[0]);o<=ZC._i_(r[1]);o++)l.push(o)}}else l=[e];for(var s=0,C=l.length;s<C;s++)t["p"+a]["n"+l[s]]=!0}return t},K3.prototype.A84=function(){var e,t=this;null!==ZC._n_(e=t.o.selection)&&(t.CG=ZC.AP.A4Y(e),t.o.selection=null)},zingchart.AB6=function(e,t,i){var a,n,l,r,o,s,C,A,Z;document.getElementById("zc-fullscreen")&&(e="zc-fullscreen"),"string"==typeof(i=i||{})&&(i=JSON.parse(i));var c=zingchart.getLoader(e);if(c)switch(t){case"clearselection":if(n=c.C8(i[ZC._[3]])){for(n.CG={},l=0,r=n.AY.A4.length;l<r;l++)n.J0[l]=!1;n.HL=!0,n.clearPreview(),n.JW(!0,!0)}break;case"getselection":if(n=c.C8(i[ZC._[3]])){for(s=[],l=0,r=n.AY.A4.length;l<r;l++)if(s[l]=null,null!==ZC._n_(n.CG["p"+l])){var p=[];for(C in n.CG["p"+l])n.CG["p"+l].hasOwnProperty(C)&&n.CG["p"+l][C]&&p.push(ZC._i_(C.replace("n","")));s[l]=p}return s}return{};case"setselection":var u={};s=[],null!==ZC._n_(a=i.selection)&&(u=ZC.AP.A4Y(a)),(n=c.C8(i[ZC._[3]]))&&(n.CG=u,n.HL=!0,n.clearPreview(),n.JW(!0,!0));break;case"select":case"deselect":var h=[],_=function(e){var i=!1;null!==ZC._n_(a=e.toggle)&&(i=ZC._b_(a));var n=c.C8(e[ZC._[3]]);if(n){for(l=0,r=n.AY.A4.length;l<r;l++)n.J0[l]=!1;var s=null,p=null;if(null!==ZC._n_(a=e.plotindex))if("object"==typeof a)s=a;else if("string"==typeof a&&/\d+\-\d+/.test(a)){if(2===(o=a.split("-")).length)for(s=[],Z=ZC._i_(o[0]);Z<=ZC._i_(o[1]);Z++)s.push(Z)}else s=[a];if(null!==ZC._n_(a=e.plotid)){var u=[];for(u="object"==typeof a?a:[a],Z=0;Z<u.length;Z++){var _=n.HT(null,u[Z]);_&&(s||(s=[]),s.push(_.L))}}if(null!==ZC._n_(a=e.nodeindex))if("object"==typeof a)p=a;else if("string"==typeof a&&/\d+\-\d+/.test(a)){if(2===(o=a.split("-")).length)for(p=[],Z=ZC._i_(o[0]);Z<=ZC._i_(o[1]);Z++)p.push(Z)}else p=[a];if(null===ZC._n_(s))for(s=[],l=0,r=n.AY.A4.length;l<r;l++)s.push(l);for(l=0,r=s.length;l<r;l++){var d=s[l];if(n.AY.A4[d])if(null===ZC._n_(n.CG["p"+d])&&(n.CG["p"+d]={}),null===ZC._n_(p))for(C=0,A=n.AY.A4[d].R.length;C<A;C++)"select"===t?i&&n.CG["p"+d]["n"+C]?delete n.CG["p"+d]["n"+C]:n.CG["p"+d]["n"+C]=!0:"deselect"===t&&delete n.CG["p"+d]["n"+C];else for(C=0,A=p.length;C<A;C++)"select"===t?i&&n.CG["p"+d]["n"+p[C]]?delete n.CG["p"+d]["n"+p[C]]:n.CG["p"+d]["n"+p[C]]=!0:"deselect"===t&&delete n.CG["p"+d]["n"+p[C]]}-1===ZC.AV(h,n)&&h.push(n)}};if(i instanceof Array)for(Z=0;Z<i.length;Z++)_(i[Z]);else _(i);for(Z=0;Z<h.length;Z++)h[Z].HL=!0,h[Z].clearPreview(),h[Z].JW(!0,!0)}return null},K3.prototype.NO=function(){var e=this;e.AJ["3d"]&&typeof ZC.AO!==ZC._[31]&&(ZC.AO.A51=2.5*ZC.BQ(e.I,e.F),ZC.AO.E1=e.P.iX+e.P.I/2,ZC.AO.E2=e.P.iY+e.P.F/2,ZC.AO.FU=ZC._i_(e.EY.depth),ZC.AO.E1+=e.EY["offset-x"],ZC.AO.E2+=e.EY["offset-y"])},K3.prototype.AC5=function(){var e,t,i=this;if(i.AJ["3d"]&&typeof ZC.AO!==ZC._[31]){if(i.A.B8.load(i.EY,"graph.3d-aspect"),i.A.B8.load(i.EY,i.AF+".3d-aspect"),null!==ZC._n_(e=i.o[ZC._[26]])&&ZC._cp_(e,i.EY),"pie3d"===i.AF&&i.o.plot&&i.o.plot.tilt){var a=ZC._l_(ZC._f_(i.o.plot.tilt),1,3);i.EY[ZC._[27]]=25+(a-1)/2*(i.AJ["x-angle-max"]-i.AJ["x-angle-min"])}var n=["angle","depth",ZC._[27],ZC._[28],ZC._[29],"zoom","offset-x","offset-y"];for(t=0;t<n.length;t++)i.EY[n[t]]=ZC._f_(i.EY[n[t]]);var l=["angle",ZC._[27],ZC._[28],ZC._[29]];for(t=0;t<l.length;t++)ZC.DR(i.EY[l[t]],i.AJ[l[t]+"-min"],i.AJ[l[t]+"-max"])||(i.EY[l[t]]=i.AJ[l[t]+"-min"]);i.EY.true3d=ZC._b_(i.EY.true3d)}},K3.prototype.S2=function(){var e,t,i,a,n=this;3!==zingchart.V3D&&(zingchart.V3D=n.EY.true3d?1:2);var l=n.CJ.A54.length;for(e=0;e<l;e++)(t=n.CJ.A54[e]).ABP(),n.EY.true3d?3===zingchart.V3D?n.CJ.X3[e]=[ZC._f_(t.A09.toFixed(1))*t.MJ[2],e]:n.CJ.X3[e]=[[ZC._f_(t.SV.toFixed(1))*t.MJ[0],ZC._f_(t.A53.toFixed(1))*t.MJ[1],ZC._f_(t.A09.toFixed(1))*t.MJ[2],ZC._f_(t.A2K.toFixed(1))],e]:n.CJ.X3[e]=[[ZC._f_(t.SV.toFixed(1))*t.MJ[0],ZC._f_(t.A52.toFixed(1))*t.MJ[1],ZC._f_(t.A3Z.toFixed(1))*t.MJ[2],ZC._i_(t.FY)],e];n.CJ.X3.sort(n.CJ.sortFaces);var r=new DW(n);for(i=n.G.usc()?n.G.mc():ZC.AK(n.K+"-plots-bl-c"),a=ZC.Q.E9(i,n.G.AB),e=0;e<l;e++){var o=[],s=n.CJ.X3[e][1],C=(t=n.CJ.A54[s]).E.length;if(C>0){for(var A=0;A<C;A++)o.push(t.E[A].EB);o.push(t.E[0].EB),r.init(n),r.K=n.K+"-3dshape-"+(""!==t.K?t.K:ZC.SEQ++),r.copy(t.O),r.CY=!1,r.Z=i,r.locate(1),r.E=o,r.DP="poly",r.locate(2),r.paint()}}var Z=[];for(var c in n.CJ.SS)Z.push([c,n.CJ.SS[c].zIndex]);Z.sort(function(e,t){return t[1]-e[1]});for(var p=0;p<Z.length;p++){var u=n.CJ.SS[Z[p][0]];ZC.CR.setup(a,u.style),ZC.CR.paint(a,u.style,u.points)}},K3.prototype.TJ=function(){if(!zingchart.SKIP.LEGEND){var e,t=this;if(t.BC){if(t.BC.Q1&&t.L!==t.A.AG.length-1&&!t.BC.o.force)return;t.BC.Z=t.BC.C7=t.G.usc()?t.G.mc("top"):ZC.AK(t.K+"-legend-c"),t.BC.paint(),-1===ZC.AV(t.G.KV,ZC._[41])&&(t.R4=function(e){var i,a;if(!ZC.move){t.A7&&t.A.A7&&t.A7.AM&&t.A.A7.onmouseover(e);var n=e.targetid||e.target.id,l=ZC._i_(n.replace(t.K,"").replace("-legend-item_","").replace("-legend-marker_","").replace("-area","").replace("-marker","")),r=t.AY.A4[l];if(r.FZ&&(t.BC.XE||r.II)&&r.R.length)for(i=0,a=r.R.length;i<a;i++)if(null!==r.R[i]&&r.R[i].JJ&&(r.FM(i).HU("highlight"),t.BC.Q1))for(var o=0;o<t.A.AG.length;o++)if(t.A.AG[o].BC&&t.A.AG[o].BC.Q1&&t.A.AG[o].AY.A4[r.L]){var s=t.A.AG[o].AY.A4[r.L];s.FM(i)&&s.FM(i).HU("highlight")}ZC.move=!0;var C=r.L;r.o["legend-item"]&&null!==ZC._n_(r.o["legend-item"].order)&&(C=ZC._i_(r.o["legend-item"].order)),t.BC.o["reverse-series"]&&(C=t.AY.A4.length-1-C),t.BC.highlightItem(C),ZC.move=!1;var A=t.AY.A4[l].TF(e);t.D["legend-action-index"]=l,ZC.AP.C0("legend_mouseover",t.A,A)}},t.PY=function(e){ZC.move||t.A7&&t.A.A7&&t.A7.AM&&t.A.A7.onmousemove(e)},t.RL=function(e){if(!ZC.move){if(t.A7&&t.A.A7&&t.A7.AM&&t.A.A7.onmouseout(e),t.L2(),t.BC.Q1)for(var i=0;i<t.A.AG.length;i++)t.A.AG[i].BC&&t.A.AG[i].BC.Q1&&t.A.AG[i].L2();ZC.move=!0,t.BC.highlightItem(-1),ZC.move=!1;var a=ZC._c_(t.D["legend-action-index"],0),n=t.AY.A4[a].TF(e);ZC.AP.C0("legend_mouseout",t.A,n)}},t.zc_legend_mousescroll=function(e){t.BC.DD&&"scroll-y"===t.BC.DD.AF&&(e.preventDefault(),t.BC.DD.A4F(e))},t.SZ=function(i){if(t.D.legend_toggle_action=!0,!(ZC.move||(zingchart.SP(i),i.which>1))){var a,n,l,r=i.targetid||i.target.id,o=ZC._b_(t.BC.BR.o.reorder);ZC.mobile&&t.G.A7&&t.G.A7.hide();var s="item";-1!==r.indexOf("-legend-marker_")&&(s="marker"),t.L2(),i.preventDefault();var C=t.BC.IP;"item"===s?C=t.BC.RC:"marker"===s&&(C=t.BC.Q2),t.A.KD&&(C="remove"),t.D["legend-last-trigger"]=s;var A=ZC._i_(r.replace(t.K+"-legend-item_","").replace(t.K+"-legend-marker_","").replace("-area",""));if(t.o[ZC._[11]]&&t.o[ZC._[11]][A]){if(null!==ZC._n_(e=t.o[ZC._[11]][A]["legend-item"])){var Z=e.url||"",c=e.target||"";""!==Z&&t.UC(i,Z,c)}t.o[ZC._[11]][A].visible=!0}var p,u,h,_=t.AY.A4[A].TF(i);switch(_.visible=ZC._b_(t.D["plot"+A+".visible"]),ZC.AP.C0("legend_"+s+"_click",t.A,_),C){default:break;case"hide":case"remove":if(i.shiftKey){var d=0;for(a=0,n=t.AY.A4.length;a<n;a++)if(a!==A&&(l=++d===n-1,t.PE({"ignore-legend":o,JW:l,plotindex:a,"toggle-action":C}),t.BC.Q1))for(p=0,u=t.G.AG.length;p<u;p++)(h=t.G.AG[p]).BC&&h.BC.Q1&&h.BC.A5I===t.BC.A5I&&h.K!==t.K&&h.PE({"ignore-legend":!0,JW:l,plotindex:a,"toggle-action":C})}else if(t.PE({"ignore-legend":o,JW:1,plotindex:A,"toggle-action":C}),t.BC.Q1)for(p=0,u=t.G.AG.length;p<u;p++)(h=t.G.AG[p]).BC&&h.BC.Q1&&h.BC.A5I===t.BC.A5I&&h.K!==t.K&&h.PE({"ignore-legend":!0,JW:1,plotindex:A,"toggle-action":C})}"hide"===C&&t.D.hooks&&(t.OB(),t.Q0())}},ZC.A5("."+t.K+"-legend-item-area").live("mouseup touchstart",t.SZ).live("DOMMouseScroll",t.zc_legend_mousescroll).live("mousewheel",t.zc_legend_mousescroll),ZC.A5("."+t.K+"-legend-marker-area").live("mouseup touchstart",t.SZ).live("DOMMouseScroll",t.zc_legend_mousescroll).live("mousewheel",t.zc_legend_mousescroll),ZC.A5("#"+t.K+"-legend-frame").live("DOMMouseScroll",t.zc_legend_mousescroll).live("mousewheel",t.zc_legend_mousescroll),ZC.mobile||(ZC.A5("."+t.K+"-legend-item-area").live(ZC.Q.BX("mouseover"),t.R4).live(ZC.Q.BX("mouseout"),t.RL).live(ZC.Q.BX(ZC._[48]),t.PY),ZC.A5("."+t.K+"-legend-marker-area").live(ZC.Q.BX("mouseover"),t.R4).live(ZC.Q.BX("mouseout"),t.RL).live(ZC.Q.BX(ZC._[48]),t.PY)))}}};class AAT extends K3{constructor(e){super(e);var t=this;t.AF="null",t.AJ.clip=!0,t.AJ[ZC._[23]]=!0,t.AJ[ZC._[56]]=!0}}class A9I extends K3{constructor(e){super(e);var t=this;t.AF="null3d",t.CJ=new VP,t.AJ["3d"]=!0,t.AJ["x-angle-min"]=-1800,t.AJ["x-angle-max"]=1800,t.AJ["y-angle-min"]=-1800,t.AJ["y-angle-max"]=1800,t.AJ["z-angle-min"]=-1800,t.AJ["z-angle-max"]=1800,zingchart.V3D=3}clear(){super.clear(),this.CJ.clear()}paint(){var e=this;super.paint(),e.PO(),e.S2(),e.flatten(),e.JV(),-1===ZC.AV(e.G.KV,ZC._[41])&&e.Q9()}}class NT extends K3{constructor(e){super(e);var t=this;t.AF="xy",t.AJ.clip=!0,t.AJ.layout="xy"}FB(e){switch(e){case"x":return new TD(this);case"y":return new TE(this)}}OA(){var e,t=this,i=t.FB("x",ZC._[50]);for(i.BG=ZC._[50],i.K=t.K+"-scale-x",t.BN.push(i),e=2;e<50;e++)if(null!==ZC._n_(t.o["scale-x-"+e])){var a=t.FB("x","scale-x-"+e);a.L=e,a.BG="scale-x-"+e,a.K=t.K+"-scale-x-"+e,t.BN.push(a)}var n=t.FB("y",ZC._[51]);for(n.BG=ZC._[51],n.K=t.K+"-scale-y",t.BN.push(n),e=2;e<50;e++)if(null!==ZC._n_(t.o["scale-y-"+e])){var l=t.FB("y","scale-y-"+e);l.L=e,l.BG="scale-y-"+e,l.K=t.K+"-scale-y-"+e,t.BN.push(l)}super.OA()}}class A6W extends NT{constructor(e){super(e);var t=this;t.AF="line",t.AY=new A4P(t),t.AJ[ZC._[23]]=!0,t.AJ[ZC._[56]]=!0,t.AJ["enable-scroll"]=!0}}class A6X extends NT{constructor(e){super(e);var t=this;t.AF="area",t.AY=new A4Q(t),t.AJ[ZC._[23]]=!0,t.AJ[ZC._[56]]=!0,t.AJ["enable-scroll"]=!0}}class AAG extends NT{constructor(e){super(e);var t=this;t.AF="vline",t.AJ.layout="yx",t.AY=new A8T(t),t.AJ[ZC._[23]]=!0,t.AJ[ZC._[56]]=!0,t.AJ["enable-scroll"]=!0}FB(e){switch(e){case"x":return new VE(this);case"y":return new VF(this)}}}class AAH extends NT{constructor(e){super(e);var t=this;t.AF="varea",t.AJ.layout="yx",t.AY=new A8U(t),t.AJ[ZC._[23]]=!0,t.AJ[ZC._[56]]=!0,t.AJ["enable-scroll"]=!0}FB(e){switch(e){case"x":return new VE(this);case"y":return new VF(this)}}}class A35 extends NT{constructor(e){super(e);var t=this;t.AF="vbar",t.AY=new A10(t),t.AJ[ZC._[23]]=!0,t.AJ[ZC._[56]]=!0,t.AJ["enable-scroll"]=!0}FB(e,t){switch(e){case"x":var i=super.FB(e,t);return i.DQ=!0,i;case"y":return super.FB(e,t)}}}class A36 extends NT{constructor(e){super(e);var t=this;t.AF="hbar",t.AJ.layout="yx",t.AJ[ZC._[23]]=!0,t.AJ[ZC._[56]]=!0,t.AJ["enable-scroll"]=!0,t.AY=new A11(t)}FB(e){switch(e){case"x":var t=new VE(this);return t.DQ=!0,t;case"y":return new VF(this)}}}class A5S extends NT{constructor(e){super(e);var t=this;t.AF="mixed",t.AY=new ZZ(t),t.AJ[ZC._[23]]=!0,t.AJ[ZC._[56]]=!0,t.AJ["enable-scroll"]=!0}FB(e,t){switch(e){case"x":var i=!1;if(this.o[ZC._[11]])for(var a=0;a<this.o[ZC._[11]].length;a++)if(this.o[ZC._[11]][a]&&this.o[ZC._[11]][a].type&&-1!==ZC.AV(["bar","vbar","bullet","vbullet","stock","vbar3d"],this.o[ZC._[11]][a].type)){var n=(this.o[ZC._[11]][a].scales||"scale-x,scale-y").split(",");-1!==ZC.AV(n,t)&&(i=!0)}var l=super.FB(e,t);return l.DQ=i,l;case"y":return super.FB(e,t)}}}class A98 extends NT{constructor(e){super(e);var t=this;t.AF="hmixed",t.AJ.layout="yx",t.AJ[ZC._[23]]=!0,t.AJ[ZC._[56]]=!1,t.AJ["enable-scroll"]=!0,t.AY=new ZZ(t)}FB(e,t){switch(e){case"x":var i=new VE(this),a=!1;if(this.o[ZC._[11]])for(var n=0;n<this.o[ZC._[11]].length;n++)if(this.o[ZC._[11]][n]&&this.o[ZC._[11]][n].type&&-1!==ZC.AV(["hbar","hbullet"],this.o[ZC._[11]][n].type)){var l=(this.o[ZC._[11]][n].scales||"scale-x,scale-y").split(",");-1!==ZC.AV(l,t)&&(a=!0)}return i.DQ=a,i;case"y":return new VF(this)}}}class A3H extends A5S{constructor(e){super(e);var t=this;t.AF="mixed3d",t.AY=new ZZ(t),t.CJ=new VP,t.AJ["3d"]=!0,t.AJ[ZC._[56]]=!1,t.AJ[ZC._[55]]=!1,t.AJ["enable-scroll"]=!0}clear(){super.clear(),this.CJ.clear()}paint(){var e=this;super.paint(),e.S2(),e.flatten(),e.PO(),e.FD.length&&(e.CJ.clear(),e.JV(),e.S2()),e.TJ(),-1===ZC.AV(e.G.KV,ZC._[41])&&e.Q9()}}class A8C extends NT{constructor(e){super(e);var t=this;t.AF="scatter",t.AY=new A76(t),t.AJ[ZC._[23]]=!0,t.AJ[ZC._[56]]=!0,t.AJ["enable-scroll"]=!0}}class A7O extends NT{constructor(e){super(e);var t=this;t.AF="hscatter",t.AJ.layout="yx",t.AJ[ZC._[23]]=!0,t.AJ[ZC._[56]]=!1,t.AJ["enable-scroll"]=!0,t.AY=new A6D(t)}FB(e){switch(e){case"x":return new VE(this);case"y":return new VF(this)}}}class A99 extends NT{constructor(e){super(e);var t=this;t.AF="bubble",t.AY=new A7P(t),t.AJ[ZC._[23]]=!0,t.AJ[ZC._[56]]=!0,t.AJ["enable-scroll"]=!0}}class A8D extends NT{constructor(e){super(e);var t=this;t.AF="hbubble",t.AJ.layout="yx",t.AJ[ZC._[23]]=!0,t.AJ[ZC._[56]]=!1,t.AJ["enable-scroll"]=!0,t.AY=new A77(t)}FB(e){switch(e){case"x":return new VE(this);case"y":return new VF(this)}}}class A4G extends K3{constructor(e){super(e),this.AF="pie",this.AY=new A5T(this)}NP(){return""}FB(e){switch(e){case"m":return new YL(this);case"v":return new A02(this);case"r":return new A96(this)}}OA(){var e=this,t=e.FB("m","scale"),i=e.FB("v",ZC._[52]),a=e.FB("r","scale-r");t.BG="scale",t.K=e.K+"-scale",e.o[ZC._[11]]&&e.o[ZC._[11]].length&&e.o[ZC._[11]][0][ZC._[5]]&&(t.NQ="1x"+e.o[ZC._[11]][0][ZC._[5]].length),i.BG=ZC._[52],i.K=e.K+"-scale-v",a.BG="scale-r",a.K=e.K+"-scale-r",e.BN.push(t,i,a),super.OA()}clear_(){-1!==ZC.AV(["svg","vml"],this.G.AB)&&ZC.A5("#"+this.K+" .zc-layer").each(function(){/\-plot-\d+\-bl\-\d+\-/.test(this.id)&&ZC.A5(this).children().each(function(){/\-connector\-path/.test(this.id)&&ZC.Q.ET(this)})})}}class A75 extends K3{constructor(e){super(e);var t=this;t.AF="nestedpie",t.AY=new A5U(t)}NP(){return""}FB(e){switch(e){case"m":return new YL(this)}}OA(){var e=this,t=e.FB("m","scale");t.BG="scale",t.K=e.K+"-scale",e.BN.push(t),super.OA()}}class AAB extends K3{constructor(e){super(e);var t=this;if(t.AF="radar",t.AJ.layout="radar",t.AY=new A8E(t),-1!==ZC.AV(t.A.K,"polar")){for(var i=1,a=0;a<t.A.MG.series.length;a++)i=ZC.BQ(i,t.A.MG.series[a][ZC._[5]].length);i=Math.round(360/i).toString(),null===ZC._n_(t.A.MG.plot)?t.A.MG.plot={aspect:"area"}:ZC._cp_({aspect:"area"},t.A.MG.plot),null===ZC._n_(t.A.MG["scale-k"])?t.A.MG["scale-k"]={aspect:"circle",format:"%v\xb0",values:"0:330:"+i}:ZC._cp_({aspect:"circle",format:"%v\xb0",values:"0:330:"+i},t.A.MG["scale-k"],!0)}}NP(){return""}FB(e){var t=this;switch(e){case"m":return new YL(t);case"k":return new A8Q(t);case"v":return new A8P(t)}}OA(){var e=this,t=e.FB("k","scale-k");t.BG="scale-k",t.K=e.K+"-scale-k",e.BN.push(t);var i=e.FB("v",ZC._[52]);i.BG=ZC._[52],i.K=e.K+"-scale-v",e.BN.push(i);var a=e.FB("m","scale");a.BG="scale",a.K=e.K+"-scale",e.BN.push(a),super.OA()}}class A8F extends A35{constructor(e){super(e);var t=this;t.AF="vbullet",t.AY=new A79(t),t.AJ[ZC._[55]]=!1}}class A8G extends A36{constructor(e){super(e);var t=this;t.AF="hbullet",t.AJ.layout="yx",t.AY=new A7A(t),t.AJ[ZC._[55]]=!1}}class AAC extends NT{constructor(e){super(e);var t=this;t.AF="piano",t.AY=new A8H(t),t.AJ[ZC._[55]]=!1,t.AJ["enable-scroll"]=!0}UP(e){var t=this;if("v"===e){var i=[];if(t.o[ZC._[11]]&&t.o[ZC._[11]].length)for(var a=0;a<t.o[ZC._[11]].length;a++)i.push(t.o[ZC._[11]][a].text||"Metric "+(a+1));return i}}FB(e){switch(e){case"x":var t=new TD(this);return t.DQ=!0,t;case"y":var i=new TE(this);return i.DQ=!0,i.append({step:1,"fixed-step":!0}),i}}}class A8I extends NT{constructor(e){super(e);var t=this;t.AF="vfunnel",t.AY=new A7B(t),t.AJ[ZC._[55]]=!1,t.AJ["enable-zooming"]=!1,t.AJ["enable-scroll"]=!1}FB(e,t){switch(e){case"x":var i=super.FB(e,t);return i.DQ=!0,i;case"y":var a=super.FB(e,t);return a.DQ=!0,a}}UP(e){if("v"===e){for(var t=[],i=0;i<this.o[ZC._[11]].length;i++)t.push("Step "+(i+1));return t}}paint(){for(var e=this,t=0,i=e.BN.length;t<i;t++)"v"===e.BN[t].AF&&(e.BN[t].AW=!e.BN[t].AW);super.paint()}}class A8J extends NT{constructor(e){super(e);var t=this;t.AF="hfunnel",t.AY=new A7C(t),t.AJ[ZC._[55]]=!1,t.AJ["enable-zooming"]=!1,t.AJ["enable-scroll"]=!1}UP(e){if("v"===e){for(var t=[],i=0;i<this.o[ZC._[11]].length;i++)t.push("Step "+(i+1));return t}}FB(e){switch(e){case"x":var t=new VE(this);return t.DQ=!0,t;case"y":var i=new VF(this);return i.DQ=!0,i}}}class AAD extends NT{constructor(e){super(e);var t=this;t.AF="stock",t.AY=new A8K(t),t.AJ[ZC._[23]]=!0,t.AJ[ZC._[55]]=!1,t.AJ["enable-scroll"]=!0,t.AJ[ZC._[56]]=!0}FB(e,t){switch(e){case"x":var i=super.FB(e,t);return i.DQ=!0,i;case"y":return super.FB(e,t)}}}class AAE extends K3{constructor(e){super(e);var t=this;t.AF="gauge",t.AJ.layout="gauge",t.AY=new A8L(t)}NP(){return""}FB(e){var t=this;switch(e){case"m":return new YL(t);case"r":return new A8M(t);case"v":return new A02(t)}}OA(){var e,t=this,i=t.FB("m","scale");for(i.BG="scale",i.K=t.K+"-scale",t.BN.push(i),e=2;e<10;e++)if(null!==ZC._n_(t.o["scale-"+e])){var a=t.FB("m","scale-"+e);a.L=e,a.BG="scale-"+e,a.K=t.K+"-scale-"+e,t.BN.push(a)}var n=t.FB("r","scale-r");for(n.BG="scale-r",n.K=t.K+"-scale-r",t.BN.push(n),e=2;e<10;e++)if(null!==ZC._n_(t.o["scale-r-"+e])){var l=t.FB("r","scale-r-"+e);l.L=e,l.BG="scale-r-"+e,l.K=t.K+"-scale-r-"+e,t.BN.push(l)}super.OA()}hideLayer_(){var e=this;ZC.A5("#"+e.K+"-plots-bl-2").children().each(function(){ZC.Q.IT(this,e.G.AB,e.iX,e.iY,e.I,e.F,e.K)})}}class AAF extends NT{constructor(e){super(e);var t=this;t.AF="range",t.AY=new A8N(t),t.AJ[ZC._[23]]=!0,t.AJ[ZC._[55]]=!1,t.AJ["enable-scroll"]=!0,t.AJ[ZC._[56]]=!0}}class ZCVRangeGraph extends NT{constructor(e){super(e);var t=this;t.AF="range",t.AJ.layout="yx",t.AY=new ZCVRangePlotSet(t),t.AJ[ZC._[23]]=!0,t.AJ[ZC._[55]]=!1,t.AJ["enable-scroll"]=!0,t.AJ[ZC._[56]]=!1}FB(e){switch(e){case"x":return new VE(this);case"y":return new VF(this)}}}class A5W extends A4G{constructor(e){super(e);var t=this;t.AF="pie3d",t.AY=new A8O(t),t.CJ=new VP,t.AJ["3d"]=!0,t.AJ[ZC._[55]]=!1,t.AJ["x-angle-min"]=15,t.AJ["x-angle-max"]=75,t.AJ["y-angle-min"]=0,t.AJ["y-angle-max"]=0,t.AJ["z-angle-min"]=0,t.AJ["z-angle-max"]=0}clear(){super.clear(),this.CJ.clear()}paint(){var e=this;super.paint(),e.S2(),e.flatten(),e.PO(),e.FD.length&&(e.CJ.clear(),e.JV(),e.S2()),e.TJ(),-1===ZC.AV(e.G.KV,ZC._[41])&&e.Q9()}}class A9C extends A36{constructor(e){super(e);var t=this;t.AF="hbar3d",t.AY=new A7W(t),t.CJ=new VP,t.AJ["3d"]=!0,t.AJ[ZC._[56]]=!1,t.AJ[ZC._[55]]=!1,t.AJ["x-angle-min"]=-20,t.AJ["x-angle-max"]=20,t.AJ["y-angle-min"]=-20,t.AJ["y-angle-max"]=0}clear(){super.clear(),this.CJ.clear()}paint(){var e=this;super.paint(),e.S2(),e.flatten(),e.PO(),e.FD.length&&(e.CJ.clear(),e.JV(),e.S2()),e.TJ(),-1===ZC.AV(e.G.KV,ZC._[41])&&e.Q9()}}class A9D extends A35{constructor(e){super(e);var t=this;t.AF="vbar3d",t.AY=new A7V(t),t.CJ=new VP,t.AJ["3d"]=!0,t.AJ[ZC._[56]]=!0,t.AJ[ZC._[55]]=!1,t.AJ["enable-scroll"]=!0}clear(e,t){super.clear(e,t),this.CJ.clear()}paint(){var e=this;super.paint(),e.S2(),e.flatten(),e.PO(),e.FD.length&&(e.CJ.clear(),e.JV(),e.S2()),e.TJ(),-1===ZC.AV(e.G.KV,ZC._[41])&&e.Q9()}}class A9E extends A6W{constructor(e){super(e);var t=this;t.AF="line3d",t.AY=new A7X(t),t.CJ=new VP,t.AJ["3d"]=!0,t.AJ[ZC._[56]]=!0,t.AJ[ZC._[55]]=!1,t.AJ["enable-scroll"]=!0}clear(e,t){super.clear(e,t),this.CJ.clear()}paint(){var e=this;super.paint(),e.S2(),e.flatten(),e.PO(),e.FD.length&&(e.CJ.clear(),e.JV(),e.S2()),e.TJ(),-1===ZC.AV(e.G.KV,ZC._[41])&&e.Q9()}}class A9F extends A6X{constructor(e){super(e);var t=this;t.AF="area3d",t.AY=new A7Y(t),t.CJ=new VP,t.AJ["3d"]=!0,t.AJ[ZC._[56]]=!0,t.AJ[ZC._[55]]=!1,t.AJ["enable-scroll"]=!0}clear(e,t){super.clear(e,t),this.CJ.clear()}paint(){var e=this;super.paint(),e.S2(),e.flatten(),e.PO(),e.FD.length&&(e.CJ.clear(),e.JV(),e.S2()),e.TJ(),-1===ZC.AV(e.G.KV,ZC._[41])&&e.Q9()}}class AAV extends K3{constructor(e){super(e);var t=this;t.AF="venn",t.AY=new A9H(t)}NP(){return""}FB(e){switch(e){case"m":return new YL(this)}}parse(){var e=this;super.parse(),e.BC&&(e.BC.IP="remove",e.BC.RC="remove",e.BC.Q2="remove")}OA(){var e=this,t=e.FB("m","scale");t.BG="scale",t.K=e.K+"-scale",e.BN.push(t),super.OA()}}class LW extends I2{constructor(e){super(e);var t=this;t.C=e,t.G=t.C.A,t.A4=[],t.HZ=null,t.KH=[],t.K7=[],t.QA=!0,t.F9=null,t.A56=!0,t.ZG=[]}HO(){return new IL(this)}parse(){var e,t,i,a=this;for(a.K=a.A.K+"-plotset",a.F9=null,t=a.o.length-1;t>=0;t--)typeof a.o[t]===ZC._[31]&&a.o.splice(t,1);if(null===ZC._n_(a.D["plot-sort"])&&(a.D["plot-sort"]=!1),a.o.length>1){for(t=0,i=a.o.length;t<i;t++)typeof a.o[t].palette===ZC._[31]&&(a.o[t].palette=t);var n=[],l=[];for(t=0,i=a.o.length;t<i;t++)l[t]=t,n[t]={"z-index":a.o[t]["z-index"]||0};for(var r=!1;!r;)for(r=!0,t=0,i=n.length;t<i-1;t++){if(n[t]["z-index"]>n[t+1]["z-index"]){a.D["plot-sort"]=!0;var o=n[t];n[t]=n[t+1],n[t+1]=o;var s=l[t];l[t]=l[t+1],l[t+1]=s,r=!1}}a.ME=l}else a.ME=[0];for(a.A4=[],t=0,i=a.o.length;t<i;t++){var C="";a.A.o.plot&&null!==ZC._n_(e=a.A.o.plot.type)&&(C=e),null!==ZC._n_(e=a.o[t].type)&&(C=e);var A=a.HO(C,t);A.ON=A.AF+"plot",A.L=t,A.JU=t,a.C.A.B8.load(A.o,["("+A.AF+").plot"]),A.sTypeX&&a.C.A.B8.load(A.o,["("+A.sTypeX+").plot"]),a.C.A.B8.load(A.o,["("+A.AF+").plot.animation"]),null!==ZC._n_(e=a.A.o.plot)&&A.append(e),A.append(a.o[t]),A.CA=a.A.CA,A.parse(),a.A4.push(A)}var Z={},c=[],p=[],u={},h={},_=0,d=0;for(t=0,i=a.A4.length;t<i;t++)if(null!==ZC._n_(a.A.A.D["g-"+a.A.L+"-p-"+t+".visible"])&&(a.C.D["plot"+t+".visible"]=a.A.A.D["g-"+a.A.L+"-p-"+t+".visible"]),!a.A4[t].HS&&(a.C.D["plot"+t+".visible"]||"hide"===a.C.getToggleAction())){a.A4[t].CA?(-1===(d=ZC.AV(p,a.A4[t].DY))&&(p.push(a.A4[t].DY),d=p.length-1),null===ZC._n_(c[d])?c[d]=[t]:c[d].push(t)):(p.push(-1),d=p.length-1,null===ZC._n_(c[d])?c[d]=[t]:c[d].push(t));var f=a.A4[t].AF;if(a.A4[t].o.type&&f!==a.A4[t].o.type){var g=f.indexOf("3d"),B=a.A4[t].o.type.indexOf("3d");(-1===g&&-1!==B||-1===g&&-1===B)&&(f=a.A4[t].o.type)}-1!==ZC.AV(["bar","bar3d","bullet"],f)&&(f="v"+f),-1===ZC.AV(["vbar","hbar","vbullet","hbullet","stock","vbar3d","hbar3d"],f)||a.A4[t].HS||(null===ZC._n_(u[f])&&(u[f]=[]),null===ZC._n_(h[f])&&(h[f]=[]),a.A4[t].CA?(null===ZC._n_(Z[a.A4[t].DY])?Z[a.A4[t].DY]=1:Z[a.A4[t].DY]++,-1===(_=ZC.AV(h[f],a.A4[t].DY))&&(h[f].push(a.A4[t].DY),_=h[f].length-1),null===ZC._n_(u[f][_])?u[f][_]=[t]:u[f][_].push(t)):(h[f].push(-1),_=h[f].length-1,null===ZC._n_(u[f][_])?u[f][_]=[t]:u[f][_].push(t)))}if(a.KH=c,a.K7=u,a.XB)for(var v in a.XB)a.XB[v].sort();for(a.A21=[],t=0;t<a.KH.length;t++)a.A21.push(a.KH[t][a.KH[t].length-1])}paint(){var e=this;function t(i){var a=e.ME[i];(e.A4[a].HX||e.A4[a].E5.length&&e.A.BA||"none"!==e.A4[a].J5)&&(e.G.OH=!1),e.A56=!0;var n=e.C.getToggleAction();e.A4[a].o["skip-paint"]||(e.C.AJ["3d"]?e.C.D["plot"+a+".visible"]&&(e.A4[a].paint(),e.G.Y0()):(e.C.D["plot"+a+".visible"]||"hide"===n)&&(typeof e.C.D["plot-"+a+"-first-run"]!==ZC._[31]&&(e.A4[a].TY=0),e.A4[a].paint(),e.A4[a].TY=0,e.G.Y0(),e.C.D["plot"+a+".visible"]||"hide"!==n||(e.C.D["plot"+a+".visible"]=!0,e.A.PE({plotindex:a,"ignore-legend":!0})))),e.C.D["plot-"+a+"-first-run"]=!1,i<e.A4.length-1?e.C.LV?ZC.ASYNC_TICK[e.C.K]=window.setTimeout(function(){t(i+1)},10):e.A4.length<=100&&t(i+1):(!e.C.LV||e.C.LV&&e.A56)&&e._end_()}if(e.HZ=[],e.A4.length>0)if(e.A4.length>100&&!e.C.LV)for(var i=0;i<e.A4.length;i++)t(i);else t(0);else e._end_()}_end_(){var e,t=this;t.SA=null,t.W6=null;for(var i=0;i<t.C.BN.length;i++)t.C.BN[i].ES=null,t.C.BN[i].XD=null;function a(e){var i=0,a=e.indexOf(ZC._[35]),n=e.indexOf("-node-",a);return-1!==a&&-1!==n&&(i=e.substr(a+14,n-a-14)),typeof t.A4[i].D["z-mid"]!==ZC._[31]?t.A4[i].D["z-mid"]:i}(e=ZC.AK(t.C.A.K+"-map"))&&!t.G.A1M&&(-1===ZC.AV(["bubble","hbubble","vbullet","hbullet","radar","vbar3d","hbar3d","mixed","mixed3d","pie3d","hmixed","hmixed3d"],t.C.AF)&&1!==zingchart.SORTTRACKERS||t.HZ.sort(function(e,i){return"pie3d"===t.C.AF?ZC.AP.NC(e)>ZC.AP.NC(i)?1:ZC.AP.NC(e)<ZC.AP.NC(i)?-1:0:a(e)>a(i)&&t.A.AJ["3d"]?1:a(e)<a(i)&&t.A.AJ["3d"]?-1:ZC.AP.NC(e)>ZC.AP.NC(i)?1:ZC.AP.NC(e)<ZC.AP.NC(i)?-1:0}),zingchart.DEV.DELAYEDTRACKERS?window.setTimeout(function(){e.innerHTML+=t.HZ.join("")},500):e.innerHTML+=t.HZ.join("")),t.F3=null,t.D5=null,t.C.A9X=[],t.A._end_()}}class A4P extends LW{HO(){return new R5(this)}}class A4Q extends LW{HO(){return new R6(this)}}class A8T extends LW{HO(){var e=new R5(this);return e.P0=!0,e}}class A8U extends LW{HO(){var e=new R6(this);return e.P0=!0,e}}class A10 extends LW{HO(){return new R7(this)}}class A11 extends LW{HO(){return new R8(this)}}class ZZ extends LW{HO(e){var t=this;switch(e){default:return new R5(t);case"vline":var i=new R5(t);return i.P0=!0,i;case"poly":var a=new PL(t);return a.bPoly=!0,a.sTypeX="poly",a;case"area":return new R6(t);case"varea":var n=new R6(t);return n.P0=!0,n;case"bar":case"vbar":return new R7(t);case"hbar":return new R8(t);case"scatter":return new PL(t);case"hscatter":return new PL(t,"hscatter");case"bubble":return new SC(t);case"hbubble":return new SC(t,"hbubble");case"stock":return new W0(t);case"range":return new UI(t);case"line3d":return new V4(t);case"area3d":return new V5(t);case"bar3d":case"vbar3d":return new V3(t);case"bullet":case"vbullet":return new TT(t);case"hbullet":return new TU(t)}}}class A76 extends LW{HO(){return new PL(this)}}class ACM extends LW{HO(){var e=new PL(this);return e.bPoly=!0,e.sTypeX="poly",e}}class A6D extends LW{HO(){return new PL(this,"hscatter")}}class A7P extends LW{HO(){return new SC(this)}}class A77 extends LW{HO(){return new SC(this,"hbubble")}}class A5T extends LW{constructor(e){super(e);var t=this;t.KT=[],t.PG=[],t.U2=[]}HO(){return new WU(this)}parseLayout(e){var t,i,a,n,l=this;e&&(l.U2=[],l.PG=[]);var r,o=l.A.BI("scale-r"),s=l.A.BI("scale"),C=.9,A=1;l.A4.length>=10&&(A=1),l.A4.length>=20&&(A=1.25),l.A4.length>=30&&(A=1.5);var Z=o.DG;for(t=0,i=l.A4.length;t<i;t++)null!==ZC._n_(l.A4[t].o["ref-angle"])&&(Z=l.A4[t].DG);for(t=0,i=l.A4.length;t<i;t++)if(l.C.D["plot"+t+".visible"]||"hide"===l.C.getToggleAction())for(var c=0,p=l.A4[t].R.length;c<p;c++)if(l.A4[t].R[c]){l.YV["n"+c]=l.YV["n"+c]||[];var u,h,_=l.A4[t].R[c];null===ZC._n_(l.PG[c])&&(l.PG[c]=Z),u=null!==ZC._n_(n=l.A4[t].o[ZC._[1]])?ZC._f_(n):l.PG[c],h=l.KT[c],null!==ZC._n_(l.A4[t].o.totals)&&null!==ZC._n_(l.A4[t].o.totals[c])&&(h=l.KT[c]=ZC._f_(l.A4[t].o.totals[c])),a=0===h?u+o.EI*(1/i):0===_.AD&&l.A4[t].U3?u+o.EI*(.005*l.KT[c])/h:u+o.EI*_.AD/h,l.PG[c]=a,_.B4=u,_.BJ=a;var d=_.F8(!0);if("out"===d.o[ZC._[7]]&&d.AM){var f=ZC._i_((u+a)/2);l.YV["n"+c][t]=f-Z,r=ZC.CX(s.I/2-A*d.I-d.DS-35,s.F/2-A*d.F-d.DS-15),C=ZC.CX(C,2*r/ZC.CX(s.I,s.F))}}if("pie3d"===l.A.AF&&(C*=.75),C=ZC.BQ(.1,ZC.CX(.9,C)),"auto"===s.o["size-factor"]&&(s.JT=C),e)for(var g in l.YV)l.YV[g]=ZC.AQ.ACN(l.YV[g],Z)}parse(){var e=this;e.A.o.plot&&"auto"===e.A.o.plot.layout&&(null===ZC._n_(e.A.o.plot["ref-angle"])&&(e.A.o.plot["ref-angle"]=-90),e.o.sort(function(e,t){return t[ZC._[5]][0]-e[ZC._[5]][0]})),e.U2=[],e.KT=[],e.PG=[],e.YV={},super.parse();for(var t=0,i=e.A4.length;t<i;t++)for(var a=0,n=e.A4[t].R.length;a<n;a++)e.A4[t].R[a]&&e.A4[t].R[a]&&(e.C.D["plot"+t+".visible"]||"hide"===e.C.getToggleAction())&&0===e.A4[t].R[a].AD&&e.A4[t].U3&&(e.KT[a]+=.005*e.KT[a]);e.parseLayout()}}class A5U extends LW{constructor(e){super(e);this.KT=[],this.PG=[]}HO(){return new U9(this)}parse(){var e=this;e.KT=[],e.PG=[],super.parse();for(var t,i=e.A.BI("scale"),a=i.iX+i.I/2,n=1,l=0,r=e.A4.length;l<r;l++)if(e.C.D["plot"+l+".visible"]||"hide"===e.C.getToggleAction())for(var o=0,s=e.A4[l].R.length;o<s;o++)if(e.A4[l].R[o]){var C=e.A4[l].R[o];null===ZC._n_(e.PG[o])&&(e.PG[o]=e.A4[l].DG);var A=e.PG[o],Z=A+360*C.AD/e.KT[o];e.PG[o]=Z,C.B4=A,C.BJ=Z;var c=C.F8(!0);if(c&&"in"!==c.o[ZC._[7]]){var p=ZC._i_((A+Z)/2);t=((p>=0&&p<=90||p>=270&&p<=360?i.iX+i.I-(c.I+25):i.iX+(c.I+25))-a)/ZC.EH(p),n=ZC.CX(n,2*t/i.I),t=i.F/2-(c.F/2+10),n=ZC.CX(n,2*t/i.F)}}n=ZC.BQ(.15,ZC.CX(.85,n)),"auto"===i.o["size-factor"]&&(i.o["size-factor"]=i.JT=n)}}class A8E extends LW{constructor(e){super(e),this.A2M={}}HO(){return new XV(this)}paint(){this.A2M={},super.paint()}}class A79 extends A10{HO(){return new TT(this)}}class A7A extends A11{HO(){return new TU(this)}}class A8H extends LW{HO(){return new XW(this)}}class A2U extends LW{parse(){var e,t,i,a,n,l=this;for(l.B3=ZC.MAX,l.BK=-ZC.MAX,l.A8A=[],l.SL=[],super.parse(),e=0,t=l.A4.length;e<t;e++)for(i=0,a=l.A4[e].R.length;i<a;i++)l.A4[e].R[i]&&(n=l.A4[e].R[i],null===ZC._n_(l.SL[i])&&(l.SL[i]=ZC.MAX),null===ZC._n_(l.A8A[i])&&(l.A8A[i]=-ZC.MAX),l.SL[i]=ZC.CX(l.SL[i],n.AD),l.A8A[i]=ZC.BQ(l.A8A[i],n.AD));for(e=0,t=l.A4.length;e<t;e++)for(i=0,a=l.A4[e].R.length;i<a;i++)l.A4[e].R[i]&&(n=l.A4[e].R[i],l.B3=ZC.CX(l.B3,n.AD),l.BK=ZC.BQ(l.BK,n.AD))}}class A7B extends A2U{HO(){return new VR(this)}}class A7C extends A2U{HO(){return new VS(this)}}class A8K extends LW{HO(){return new W0(this)}}class A8L extends LW{HO(){return new XX(this)}}class A8N extends LW{HO(){return new UI(this)}}class ZCVRangePlotSet extends LW{HO(){var e=new UI(this);return e.P0=!0,e}}class A8O extends A5T{HO(){return new XY(this)}}class A7V extends A10{HO(){return new V3(this)}}class A7W extends A11{HO(){return new WW(this)}}class A7X extends A4P{HO(){return new V4(this)}}class A7Y extends A4Q{HO(){return new V5(this)}}class A9H extends LW{constructor(e){super(e),this.DZ=[],this.O6=[],this.XR=[]}HO(){return new ZJ(this)}paint(){var e,t,i,a,n,l,r,o,s,C,A=this,Z=A.A.BI("scale"),c=ZC.CX(Z.GG,Z.GM),p=-ZC.MAX,u=ZC.CX(3,A.A4.length);for(e=0,t=u;e<t;e++)for(C=A.A4[e].R,n=ZC.AP.OF(A.A4[e].o[ZC._[17]],A.A4[e].o),i=0,a=C.length;i<a;i++)C[i].setup(),p=ZC.BQ(p,C[i].AD),C[i].X5=ZC.AP.G3(A.A4[e].AC9[i],n);var h=c/(4*Math.sqrt(p/Math.PI));function _(e,t){var i=ZC._a_(e[0]-t[0]),a=ZC._a_(e[1]-t[1]);return Math.sqrt(i*i+a*a)}var d,f,g,B=[],v=[],m=[],b=[],D=null;for(A.O6=[],e=0,t=u;e<t;e++)for(B[e]||(B[e]=[]),v[e]||(v[e]=[],m[e]=[]),A.DZ[e]||(A.DZ[e]=[]),C=A.A4[e].R,b=A.A4[e+1]&&e+1<3?A.A4[e+1].R:A.A4[0].R,i=0,a=C.length;i<a;i++){A.O6[i]||(A.O6[i]=[]),A.XR[i]||(A.XR[i]={}),C[i].X6=b[i].AD,0===e?(d=h*Math.sqrt(C[i].AD/Math.PI),f=h*Math.sqrt(C[i].X6/Math.PI),B[e][i]=h*ZC.AQ.A6Y(C[i].AD,C[i].X6,C[i].X5),v[e][i]=C[i].iX-ZC.BQ(d,f)/2,m[e][i]=C[i].iY+C[i].F/4):1===e?(B[e][i]=h*ZC.AQ.A6Y(C[i].AD,C[i].X6,C[i].X5),v[e][i]=v[0][i]+B[0][i],m[e][i]=m[0][i],2===u&&(g=(v[0][i]-d-(Z.GM-(v[1][i]+f)))/2,A.A4[e-1].R[i].iX-=g,v[1][i]-=g,A.DZ[0][i].x-=g,A.O6[i][0][0]-=g,A.A4[e-1].R[i].iY=Z.iY+Z.GG/2,m[1][i]=Z.iY+Z.GG/2,A.DZ[0][i].y=Z.iY+Z.GG/2)):2===e&&(B[e][i]=h*ZC.AQ.A6Y(C[i].AD,C[i].X6,C[i].X5),r=(B[0][i]*B[0][i]-B[1][i]*B[1][i]+B[2][i]*B[2][i])/(2*B[0][i]),v[e][i]=v[0][i]+r,o=Math.sqrt(B[2][i]*B[2][i]-r*r),m[e][i]=m[0][i]-o,3===u&&(g=(v[0][i]-d-(Z.GM-(v[1][i]+f)))/2,A.A4[0].R[i].iX-=g,A.A4[1].R[i].iX-=g,A.DZ[0][i].x-=g,A.DZ[1][i].x-=g,A.O6[i][0][0]-=g,v[2][i]-=g)),C[i].iX=v[e][i]+Z.iX,C[i].iY=m[e][i],C[i].I=h*Math.sqrt(C[i].AD/Math.PI),C[i].F=h*Math.sqrt(C[i].AD/Math.PI),C[i].AI=h*Math.sqrt(C[i].AD/Math.PI),null===ZC._n_(D)&&(D=C[i].AD/(Math.PI*C[i].AI*C[i].AI));var K=h*Math.sqrt(C[i].AD/Math.PI),E=h*Math.sqrt(C[i].X6/Math.PI),F=K+E-B[e][i],I=(2*F*E-F*F)/(2*(K+E-F)),x=F-I;if(A.DZ[e][i]={x:v[e][i],y:m[e][i],sz:C[i].AI,r1:K,r2:E,dx1:x,dx2:I},0===e?(o=Math.sqrt(K*K-(K-I)*(K-I)),A.O6[i].push([v[0][i]+K-I,m[0][i]-o])):2===e&&(K=A.DZ[1][i].r1,E=A.DZ[1][i].r2,x=A.DZ[1][i].dx1,I=A.DZ[1][i].dx2,l=ZC.UE(Math.asin((m[1][i]-m[2][i])/B[1][i]))-ZC.UE(Math.acos((K-I)/K)),A.O6[i].push([v[1][i]-K*ZC.EH(l)-g,m[1][i]-K*ZC.EN(l)]),K=A.DZ[2][i].r1,E=A.DZ[2][i].r2,x=A.DZ[2][i].dx1,I=A.DZ[2][i].dx2,l=ZC.UE(Math.asin((m[0][i]-m[2][i])/B[2][i]))-ZC.UE(Math.acos((E-x)/E)),A.O6[i].push([v[0][i]+E*ZC.EH(l)-g,m[0][i]-E*ZC.EN(l)])),e===u-1)if(3===u){if(null!==ZC._n_(A.A4[0].AA3[i]))A.XR[i].area=A.A4[0].AA3[i];else{var y=[-1],X=[-1];y[1]=_(A.O6[i][0],A.O6[i][2]),y[2]=_(A.O6[i][0],A.O6[i][1]),y[3]=_(A.O6[i][2],A.O6[i][1]),X[1]=A.DZ[0][i].sz,X[2]=A.DZ[1][i].sz,X[3]=A.DZ[2][i].sz;var G=.25*Math.sqrt((y[1]+y[2]+y[3])*(y[1]+y[2]-y[3])*(y[1]+y[3]-y[2])*(y[2]+y[3]-y[1]));for(s=1;s<=3;s++)G+=X[s]*X[s]*Math.asin(y[s]/(2*X[s]))-y[s]/4*Math.sqrt(4*X[s]*X[s]-y[s]*y[s]);A.XR[i].area=D*G}A.DZ[0][i].intxy=ZC.AQ.A65(A.DZ[0][i].x,A.DZ[0][i].y,A.DZ[1][i].x,A.DZ[1][i].y,A.DZ[0][i].r1-(A.DZ[0][i].dx1+A.DZ[0][i].dx2)/2),A.DZ[1][i].intxy=ZC.AQ.A65(A.DZ[1][i].x,A.DZ[1][i].y,A.DZ[2][i].x,A.DZ[2][i].y,-(A.DZ[1][i].r1-(A.DZ[1][i].dx1+A.DZ[1][i].dx2)/2)),A.DZ[2][i].intxy=ZC.AQ.A65(A.DZ[2][i].x,A.DZ[2][i].y,A.DZ[0][i].x,A.DZ[0][i].y,-(A.DZ[2][i].r1-(A.DZ[2][i].dx1+A.DZ[2][i].dx2)/2)),A.XR[i].xy=[(A.O6[i][0][0]+A.O6[i][1][0]+A.O6[i][2][0])/3,(A.O6[i][0][1]+A.O6[i][1][1]+A.O6[i][2][1])/3]}else A.DZ[0][i].intxy=ZC.AQ.A65(A.DZ[0][i].x,A.DZ[0][i].y,A.DZ[1][i].x,A.DZ[1][i].y,A.DZ[0][i].r1-(A.DZ[0][i].dx1+A.DZ[0][i].dx2)/2),A.DZ[1][i].intxy=[-9999,-9999]}if(3===u)for(e=0,t=u;e<t;e++)for(n=ZC.AP.OF(A.A4[e].o[ZC._[17]],A.A4[e].o),null!==ZC._n_(n[ZC._[12]])&&-1!==n[ZC._[12]]||(n[ZC._[12]]=0),i=0,a=A.A4[e].R.length;i<a;i++)A.XR[i].area=ZC.AP.G3(A.XR[i].area,n);super.paint()}}class IL extends I2{constructor(e){super(e);var t=this;t.C=e.A,t.G=t.C.A,t.A6L={},t.HS=!1,t.T1=3,t.A1S=1,t.V=[],t.KJ={},t.R=[],t.AF="",t.sTypeX=null,t.IJ=null,t.RW=!1,t.J5="none",t.OC="plot",t.VD=!0,t.T4=null,t.TB=null,t.U5={},t.A2=null,t.GB=null,t.PW=null,t.PU=null,t.BP=null,t.L=-1,t.BN=[],t.CA=!1,t.KX="normal",t.DY=0,t.U=null,t.O8=null,t.A7=null,t.JY=null,t.AT=null,t.K4=null,t.A6K=null,t.Z1=null,t.DM=-1,t.I6=-1,t.RM=null,t.S8=null,t.A0F=!1,t.SQ=2,t.A38=!1,t.TX="",t.A0I="standard",t.CV=null,t.A1E=null,t.N1=null,t.S9=null,t.YH=!0,t.Y3=null,t.YU=1,t.R0=!1,t.R1=!0,t.JU=0,t.YF=null,t.T5=null,t.QA=!0,t.K8=null,t.AAQ=1,t.A2Z=1,t.SF=[],t.JC=null,t.EF=!1,t.T6=[],t.A71=-1,t.GF=!1,t.LH=0,t.JK=.6,t.LI=0,t.AC8=0,t.ACA=null,t.TY=0,t.FW=null,t.IE=!1,t.Z5=!0,t.A7J=!1,t.YG=1,t.Z7=0,t.II=!1,t.LK=!1,t.A46="node",t.M1=!1,t.RH=-1,t.RZ=0,t.QO=!1,t.GT=[null,null,null,null],t.PD="line"}applyRGBA(){var e,t=this;null!==ZC._n_(e=t.D["l-alpha"])&&null===ZC._n_(t.JF.alpha)&&(t.C5=e),null!==ZC._n_(e=t.D["bg-alpha"])&&null===ZC._n_(t.JF["alpha-area"])&&(t.o["alpha-area"]=e)}FM(e,t){var i=this;return(typeof t===ZC._[31]||!i.GT[t]&&i.GT[1])&&(t=1),e=parseInt(e,10),!i.IE||"xy"!==i.C.AJ.layout&&"yx"!==i.C.AJ.layout?i.R[e]:i.R[e]&&i.GT[t]?(i.GT[t].K=i.K+"-node-"+e,i.GT[t].o={value:i.V[e]},"string"==typeof i.V[e]&&(i.GT[t].A2L=!0),i.GT[t].L=e,"line"!==i.AF&&"area"!==i.AF&&"vline"!==i.AF&&"varea"!==i.AF||i.U?i.GT[t].parse():null===i.R[e].BU&&typeof i.C.D["plot-"+i.L+"-first-run"]===ZC._[31]||i.GT[t].parse(),"line"===i.AF||"area"===i.AF||"vline"===i.AF||"varea"===i.AF?"xy"===i.C.AJ.layout?(null!==i.R[e].BU?i.GT[t].iX=i.R[e].iX=i.B2.AN(i.R[e].BU):i.GT[t].iX=i.R[e].iX=i.B2.H4(e),i.CA&&"100%"===i.KX?i.GT[t].iY=i.R[e].iY=i.CL.AN(100*i.R[e].CQ/i.A.F9[e]["%total-"+i.DY]):i.GT[t].iY=i.R[e].iY=i.CL.AN(i.R[e].CQ)):(null!==i.R[e].BU?i.GT[t].iY=i.R[e].iY=i.B2.AN(i.R[e].BU):i.GT[t].iY=i.R[e].iY=i.B2.H4(e),i.CA&&"100%"===i.KX?i.GT[t].iX=i.R[e].iX=i.CL.AN(100*i.R[e].CQ/i.A.F9[e]["%total-"+i.DY]):i.GT[t].iX=i.R[e].iX=i.CL.AN(i.R[e].CQ)):i.GT[t].S1(),i.GT[t].JJ=i.R[e].JJ,i.GT[t]):null}TG(e,t){var i=this;i.K8[e]||(i.K8[e]=[]),(!i.IE||i.IE&&-1===ZC.AV(i.K8[e],t))&&i.K8[e].push(t)}G1(){return new MH(this)}A2Y(){return{}}NM(){return this.YX("palette","A71","i"),this.C.A.B8.AAI(-1!==this.A71?this.A71:this.L,this.C.AF)}ND(){var e=this;if(e.BP[4]){var t,i={};for(var a in e.BP[4])-1===(t=a.indexOf("."))?null===ZC._n_(e.o[a])&&(i[a]=!0,e.o[a]=e.BP[4][a]):a.substring(0,t)===e.AF&&(null===ZC._n_(e.o[a.substring(t+1)])||i[a.substring(t+1)])&&(e.o[a.substring(t+1)]=e.BP[4][a])}}I4(e,t){var i,a,n=this,l=!1,r="";if("none"!==n.J5&&(n.C.J0[n.L]||n.C.KO)){var o=!(e.D[ZC._[73]]||e.D[ZC._[72]]);n.C.CG["p"+n.L]&&n.C.CG["p"+n.L]["n"+e.L]?zingchart.DEV.CACHESELECTION&&o&&n.U5[ZC._[73]]?(a=n.U5[ZC._[73]],l=!0):(r=ZC._[73],(a=new DT(n)).copy(t),e.D[ZC._[73]]?a.OV=e.D[ZC._[73]]:a.OV=n.T4?n.T4.o:{}):"none"!==n.OC&&("plot"===n.OC&&n.C.J0[n.L]||"graph"===n.OC&&n.C.KO)&&(zingchart.DEV.CACHESELECTION&&o&&n.U5[ZC._[72]]?(a=n.U5[ZC._[72]],l=!0):(r=ZC._[72],(a=new DT(n)).copy(t),e.D[ZC._[72]]?a.OV=e.D[ZC._[72]]:a.OV=n.TB?n.TB.o:{})),l||(a?(a.QA=!0,a.parse()):(a=new DT(n)).copy(t),zingchart.DEV.CACHESELECTION&&o&&""!==r&&(n.U5[r]=a))}else(a=new DT(n)).copy(t);return null!==ZC._n_(i=n.T6[e.L])&&(0===e.A.E5.length&&(e.A.E5=[{}]),"string"==typeof n.T6[e.L]?a.append({"background-color":ZC.AP.JQ(i,20)+" "+i,"line-color":i,"border-color":ZC.AP.JQ(i,20)}):a.append(n.T6[e.L]),a.parse()),a.Z=t.Z,a.C7=t.C7,a}BT(e){var t=this,i=[];if(null!==ZC._n_(e))for(var a=0,n=t.BN.length;a<n;a++){var l=t.C.BI(t.BN[a]);l&&l.AF===e&&i.push(t.BN[a])}else i=t.BN;return i}LX(){var e=this;return{negation:e.A0I,"thousands-separator":e.RM,"decimals-separator":e.S8,decimals:e.DM,"max-decimals":e.I6,short:e.A38,"short-unit":e.TX,exponent:e.A0F,"exponent-decimals":e.SQ}}parse(){var e,t,i,a,n=this;if(n.UY={},super.parse(),n.K8={},null!==ZC._n_(e=n.o.scales))for(n.BN=e.split(/,|;|\s/),i=0;i<n.BN.length;i++)n.BN[i]=ZC.V6(ZC.GX(n.BN[i]));if(n.C.o.legend&&n.C.o.legend["highlight-plot"]&&(n.II=!0),null!==ZC._n_(n.o.multiplier)&&null===ZC._n_(n.o.short)&&(n.o.short=n.o.multiplier),null!==ZC._n_(n.o["click-marker"])&&null===ZC._n_(n.o["selection-mode"])&&null===ZC._n_(n.o["selected-marker"])&&(n.o["selection-mode"]="multiple",n.o["selected-marker"]={},ZC._cp_(n.o["click-marker"],n.o["selected-marker"])),n.KX=n.C.KX,n.assign_a([["ignore","HS","b"],["exponent","A0F","b"],[ZC._[25],"SQ","ia"],[ZC._[12],"DM","ia"],["max-decimals","I6","i"],["preview","R1","b"],["stacked","CA","b"],["stack-type","KX"],["exact","R0","b"],["text","AT"],["tooltip-text","K4"],["legend-text","A6K"],["description","Z1"],["stack","DY","i"],["z-index","JU","i"],["aspect","CV"],["mode","A1E"],["density","YG","f"],["max-nodes","N1"],["max-trackers","S9"],["segment-trackers","YH","b"],["sampling-step","Y3","i"],["scroll-step-multiplier","YU","i"],["url","E8"],["target","FF"],[ZC._[14],"S8"],[ZC._[13],"RM"],["short","A38","b"],["negation","A0I"],["short-unit","TX"],["fast-rules","A7J","b"],["errors","SF"],["styles","T6"],["monotone","QO","b"],["highlight","II","b"],["highlight-legend","LK","b"],["hover-mode","A46"],["mid-point","VD","b"],["clustered","M1","b"],["cluster-index","RH","i"],["cluster-offset","RZ","i"],["animate","GF","b"],["effect","LH","i"],["speed","JK","f"],["selection-mode","J5"],["group-selections","RW","b"],["background-mode","OC"],["extra-values","Z7","ia"]]),n.AB4=n.R0,!n.D["quick-parse"]){var l;if(ZC._todash_(n.T6),n.II&&(null===ZC._n_(n.C.o.legend)||null===ZC._n_(n.C.o.legend["highlight-legend"]))&&ZC._n_(null===n.o["highlight-legend"])&&(n.LK=n.II),null!==ZC._n_(e=n.o.animation))n.GF=!0,null!==ZC._n_(t=e.effect)&&(0===(t+"").indexOf("ANIMATION_")&&null!==ZC._n_(l=ZC.ANIMATION[(t+"").substring(10)])&&(t=l),n.LH=ZC._i_(t),0===n.LH&&(n.GF=!1)),null!==ZC._n_(t=e.speed)&&(0===(t+"").indexOf("ANIMATION_")&&null!==ZC._n_(l=ZC.ANIMATION[(t+"").substring(10)])&&(t=l),n.JK=ZC._f_(t)),null!==ZC._n_(t=e.delay)&&(n.LF=ZC._f_(t)),null!==ZC._n_(t=e.method)&&(0===(t+"").indexOf("ANIMATION_")&&null!==ZC._n_(l=ZC.ANIMATION[(t+"").substring(10)])&&(t=l),n.LI=ZC._i_(t)),null!==ZC._n_(t=e.sequence)&&(0===(t+"").indexOf("ANIMATION_")&&null!==ZC._n_(l=ZC.ANIMATION[(t+"").substring(10)])&&(t=l),n.TY=ZC._i_(t)),null!==ZC._n_(t=e.attributes)&&(n.FW=t);for(var r in n.JK<10&&(n.JK*=1e3),n.LF<10&&(n.LF*=1e3),typeof PR!==ZC._[31]&&(n.JK=ZC.BQ(PR.UG,n.JK)),("fast"===n.A1E||typeof PR===ZC._[31]||zingchart.SKIP.ANIMATION)&&(n.GF=!1),n.G.A1M&&(n.GF=!1),-1!==ZC.AV(["line","area","vbar","hbar","stock","scatter","bubble","radar","piano"],n.AF)&&("fast"===n.A1E?n.IE=!0:"normal"===n.A1E||n.GF||-1!==JSON.stringify(n.o).indexOf('"rules"')||-1!==JSON.stringify(n.o).indexOf('"js-rule"')||0!==n.T6.length||-1!==n.G.D.json.indexOf('"override"')||-1!==n.G.D.json.indexOf('"errors"')||"none"!==n.J5?n.IE=!1:n.IE=!0),n.o)if("data-"===r.substring(0,5)){var o=r.substring(5);n.KJ[o]=n.o[r]}var s=n.G.B8;if(n.IJ=new D0(n),n.IJ.append(n.o),s.load(n.IJ.o,v(ZC._[71])),n.IJ.append(n.o[ZC._[71]]),null!==ZC._n_(n.o[ZC._[71]])||"line"!==n.AF&&"area"!==n.AF||(n.IJ.AM=!1),n.II&&(n.SI=new D0(n),s.load(n.SI.o,v("highlight-state")),n.SI.append(n.o),null!==ZC._n_(e=n.o["highlight-state"])&&n.SI.append(e),null===ZC._n_(n.SI.o.shadow)&&(n.SI.o.shadow=!0)),null!==ZC._n_(e=n.o[ZC._[73]])&&(n.T4=new D0(n),s.load(n.T4.o,v(ZC._[73])),n.T4.append(e)),null!==ZC._n_(e=n.o[ZC._[72]])&&(n.TB=new D0(n),s.load(n.TB.o,v(ZC._[72])),n.TB.append(e)),n.A2=new D0(n),s.load(n.A2.o,v("marker")),s.load(n.A2.o,v("marker["+n.CV+"]")),n.A2.append(n.o.marker),"auto"===n.A2.o.type){var C=["circle","square","diamond","triangle","star5"];n.A2.o.type=C[n.L%C.length]}if(n.A2.parse(),(n.A2.E5.length>0||n.T6.length>0||n.A2.o["top-state"])&&(n.Z5=!1),n.GB=new D0(n),s.load(n.GB.o,v("hover-marker")),n.GB.append(n.o.marker),n.GB.append(n.o["hover-marker"]),null!==ZC._n_(e=n.o["selected-marker"])&&(n.PW=new D0(n),s.load(n.PW.o,v("selected-marker")),n.PW.append(e)),null!==ZC._n_(e=n.o["background-marker"])&&(n.PU=new D0(n),s.load(n.PU.o,v("background-marker")),n.PU.append(e)),n.II&&(n.VN=new D0(n),n.VN.append(n.o.marker),null!==ZC._n_(e=n.o["highlight-marker"])&&(s.load(n.VN.o,v("highlight-marker")),n.VN.append(e))),"normal"!==n.A1E&&(n.T4||n.PW)&&(n.IE=!1),"fast"===n.A1E&&(n.IE=!0),n.A7=new DT(n),n.o.tooltip&&n.o.tooltip.placement&&n.o.tooltip.placement.indexOf("node")>-1?s.load(n.A7.o,"("+n.AF+").tooltip[dynamic]"):s.load(n.A7.o,n.AF+".tooltip"),n.A7.append(n.o.tooltip),null!==ZC._n_(e=n.o.error)&&(n.JC=new DW(n),s.load(n.JC.o,v("error")),n.JC.append(e),null===ZC._n_(n.JC.o[ZC._[21]])&&(n.JC.o[ZC._[21]]=4)),null!==ZC._n_(e=n.o[ZC._[17]])){if(e instanceof Array)for(n.U=new D0(n),s.load(n.U.o,v(ZC._[17])),null!==ZC._n_(t=n.C.o.plot)&&n.U.append(t[ZC._[17]]),n.U.append(e[0]),e.length>1&&(n.O8=[]),i=1;i<e.length;i++)n.O8[i-1]=new D0(n),s.load(n.O8[i-1].o,v(ZC._[17])),null!==ZC._n_(t=n.C.o.plot)&&n.O8[i-1].append(t[ZC._[17]]),n.O8[i-1].append(e[i]);else n.U=new D0(n),s.load(n.U.o,v(ZC._[17])),null!==ZC._n_(t=n.C.o.plot)&&n.U.append(t[ZC._[17]]),n.U.append(e);n.U.parse()}n.G.QV&&(n.AM=ZC.FSSTATUS["g-"+n.C.L+"-p-"+n.L]);var A=!1;for(typeof n.C.D["plot"+n.L+".visible"]===ZC._[31]&&(A=!0),A?n.C.D["plot"+n.L+".visible"]=!0:n.AM=n.C.D["plot"+n.L+".visible"],n.AM||A&&(n.C.D["plot"+n.L+".visible"]=!1),i=0,a=n.C.BN.length;i<a;i++)null!==ZC._n_(n.C.BN[i].o[ZC._[5]])?n.C.BN[i].TL=!0:-1!==ZC.AV(n.BN,n.C.BN[i].BG)&&("remove"===n.C.getToggleAction()||n.C.A.KD?n.AM&&n.C.D["plot"+n.L+".visible"]&&(n.C.BN[i].TL=!0):n.C.BN[i].TL=!0);var Z,c=null;if(n.K=n.A.K+"-plot-"+n.L,n.R=[],n.A.F9||(n.A.F9={}),-1!==n.AF.indexOf("area")&&-1===n.AF.indexOf("3d")&&n.CA){n.A.XB||(n.A.XB={}),n.A.XB["s"+n.DY]||(n.A.XB["s"+n.DY]=[]);var p=!1;if(null!==ZC._n_(n.o[ZC._[5]]))for(i=0,a=n.o[ZC._[5]].length;i<a;i++)if("object"==typeof n.o[ZC._[5]][i]&&null!==ZC._n_(n.o[ZC._[5]][i])){p=!0;break}p&&(n.GF=!1,n.HX||0!==n.E5.length||(n.IE=!0,-1===zingchart.DEV.STACKINGLOGIC&&(n.C.V0=1)))}if(n.B2=n.C.BI(n.BT("k")[0]),n.CL=n.C.BI(n.BT("v")[0]),null!==ZC._n_(n.o[ZC._[5]])&&""!==n.AF){n.V=n.o[ZC._[5]];var u=null;n.QF=[ZC.MAX,-ZC.MAX];var h=[],_=[],d=0;for(i=0,a=n.V.length;i<a;i++){var f=!1;if(n.o["hint-ts"]||(null!==ZC._n_(n.V[i])&&"object"==typeof n.V[i]&&n.V[i].length>1?(null===ZC._n_(n.V[i][1])||"string"==typeof n.V[i][1]&&"NULL"===n.V[i][1].toUpperCase())&&(f=!0):(null===ZC._n_(n.V[i])||"string"==typeof n.V[i]&&"NULL"===n.V[i].toUpperCase())&&(f=!0),"piano"===n.C.AF&&(f=!1)),f)n.R.push(null);else{!n.IE||"xy"!==n.C.AJ.layout&&"yx"!==n.C.AJ.layout?c=n.G1():n.GT[1]||("bubble"===n.AF||"scatter"===n.AF?n.GT[1]=c=n.G1():(n.GT[0]=n.G1(),n.GT[1]=c=n.G1(),n.GT[2]=n.G1(),n.GT[3]=n.G1())),c.K=n.K+"-node-"+i,"string"==typeof n.V[i]&&zingchart.QUOTEDVALUES&&(n.V[i]=ZC._f_(n.V[i])),c.o={value:n.V[i]},"string"==typeof n.V[i]&&(c.A2L=!0),c.L=i,n.o["hint-ts"]?(c.D.plotidx=n.L,c.D.nodeidx=c.L,c.K=n.K+"-node-"+c.L,c.BU=n.V[i][0],c.AD=n.V[i][1]):c.parse(),(a<256||zingchart.DEV.CHECKDECIMALS)&&null!==ZC._n_(c.AD)&&2===(Z=c.AD.toString().split(".")).length&&(d=ZC.BQ(d,Z[1].length)),c.BU&&(null!==u&&ZC._a_(c.BU-u)>0&&h.push(ZC._a_(c.BU-u)),u=c.BU),n.A.XB=n.A.XB||{};var g=n.A.XB["s"+n.DY];if(g&&(null!==u?-1===ZC.AV(g,c.BU)&&g.push(c.BU):-1===ZC.AV(g,i)&&g.push(i)),!n.IE||"xy"!==n.C.AJ.layout&&"yx"!==n.C.AJ.layout)n.R.push(c);else{var B={iX:c.iX,iY:c.iY,L:c.L,BU:c.BU,AD:c.AD,CQ:c.AD,DL:c.DL,JJ:c.JJ};"bubble"===n.AF&&(B.SX=c.SX),n.R.push(B)}null!==c.BU&&(n.QF[0]=Math.min(n.QF[0],c.BU),n.QF[1]=Math.max(n.QF[1],c.BU)),n.C.D["plot"+n.L+".visible"]&&(zingchart.DEV.PLOTSTATS||"100%"===n.KX)&&n.CA&&(null===ZC._n_(n.A.F9[i])?(n.A.F9[i]={},n.A.F9[i]["%total-"+n.DY]=c.AD):null===ZC._n_(n.A.F9[i]["%total-"+n.DY])?n.A.F9[i]["%total-"+n.DY]=c.AD:n.A.F9[i]["%total-"+n.DY]+=c.AD),zingchart.DEV.PLOTSTATS&&(_.push(c.AD),n.JY?(n.JY["%plot-max-index"]=i,n.JY["%plot-sum"]+=c.AD,a<256&&(n.JY["%plot-values"]+=","+c.AD)):n.JY={"%plot-min-index":i,"%plot-max-index":i,"%plot-sum":c.AD,"%plot-values":c.AD},n.A.F9||(n.A.F9={}),n.AM&&(null===ZC._n_(n.A.F9["%pstack-"+i+"-"+n.DY+"-sum"])?(n.A.F9["%pstack-"+i+"-"+n.DY+"-sum"]=c.AD,n.A.F9["%pstack-"+i+"-"+n.DY+"-stack-length"]=1):(n.A.F9["%pstack-"+i+"-"+n.DY+"-sum"]+=c.AD,n.A.F9["%pstack-"+i+"-"+n.DY+"-stack-length"]+=1)))}}(n.V.length<256||zingchart.DEV.CHECKDECIMALS)&&n.JY&&null!==ZC._n_(n.JY["%plot-sum"])&&2===(Z=n.JY["%plot-sum"].toString().split(".")).length&&ZC._i_(Z[1])>d&&(n.JY["%plot-sum"]=ZC._f_(n.JY["%plot-sum"].toFixed(ZC.CX(20,d)))),zingchart.DEV.PLOTSTATS?(n.JY&&(n.JY["%plot-average"]=n.JY["%plot-sum"]/n.V.length,n.JY["%plot-average"]=ZC._f_(n.JY["%plot-average"].toFixed(ZC.CX(20,d+2)))),_.length>0&&(n.JY["%plot-min-value"]=ZC.YM(_),n.JY["%plot-max-value"]=ZC.A2C(_))):n.JY={"%plot-min-index":0,"%plot-max-index":n.V.length,"%plot-sum":-1,"%plot-values":"","%plot-average":-1,"%plot-min-value":-1,"%plot-max-value":-1},u&&h.length>0&&(n.AAQ=ZC.YM(h),n.A2Z=ZC.A2C(h))}}function v(e){var t=["("+n.AF+").plot."+e];return n.sTypeX&&t.push("("+n.sTypeX+").plot."+e),t}}mapPointsToPreview(e,t){for(var i=this,a=i.C.P,n=i.C.BA.AR,l=[],r=0,o=e.length;r<o;r++)if(e[r]){"vml"===i.G.AB&&t&&(e[r][0]=e[r][0]/10,e[r][1]=e[r][1]/10);var s=(e[r][0]-a.iX)/a.I,C=(e[r][1]-a.iY)/a.F,A=n.iX+n.AU+s*(n.I-2*n.AU),Z=n.iY+n.AU+C*(n.F-2*n.AU);l.push([A,Z])}else l.push(null);return l}paint(){var e=this,t=e.C.P.I;switch(e.C.AF){case"scatter":case"bubble":t=1e6;break;case"hbar":case"hbar3d":t=e.C.P.F}null===ZC._n_(e.N1)&&(e.N1=ZC._i_(t/4)),null===ZC._n_(e.S9)&&(e.S9=ZC._i_(t/4)),e.Z5&&(e.HF=null,e.HM=null,e.RN=null,e.QK=null)}VU(e){var t,i,a,n=this;for(t=0,i=n.R.length;t<i;t++)n.R[t]&&(n.R[t].JJ=!1);var l=n.C.P;if(n.RG=!1,n.FZ=!0,n.UK=!1,a=0,n.C.OJ||typeof n.AB4!==ZC._[31]&&(n.R0=n.AB4),e)n.RG=!0,n.S9<n.R.length&&(n.FZ=!1);else{if(n.B2.EF&&n.EF){for(t=0,i=n.R.length;t<i;t++)n.R[t]&&(n.B2.IX.length>0||ZC.DR(n.R[t].BU,n.B2.V[n.B2.W],n.B2.V[n.B2.A1]))&&a++;n.S9<a&&(n.FZ=!1),a*n.YG>l.I&&(n.UK=!0),n.N1>=a&&(n.RG=!0)}else n.N1>n.B2.A1-n.B2.W&&(n.RG=!0);n.Y=1,n.B2.EF&&n.EF||(a=n.B2.A1-n.B2.W,n.S9<a&&(n.FZ=!1),a*n.YG>l.I&&(n.UK=!0),!n.R0&&a*n.YG>l.I&&(n.Y=ZC.BQ(1,ZC._i_(a*n.YG/l.I)))),n.B2.EF&&n.EF&&(n.R0||a*n.YG>l.I&&(n.Y=ZC.BQ(1,ZC._i_(a*n.YG/l.I)))),n.C.OJ&&(n.R0=!1,n.Y*=n.YU)}null!==ZC._n_(n.Y3)&&n.Y>n.Y3&&(n.Y=n.Y3)}OE(e){var t,i,a,n=this;null!==ZC._n_(e)&&e||(e=!1),n.B2&&"log"===n.B2.C6&&(e=!0),n.VU(e);var l=null;if(e||n.M1)n.A.A56=!1,function u(e,t){for(var i=e;i<ZC.CX(e+t,n.R.length);i++)n.R[i]?((l=n.FM(i)).Z=n.KK,l.paint(),l.JJ=!0,n.R[i].JJ=!0):"radar"===n.C.AF&&(i===n.R.length-1?"line"!==n.CV&&"area"!==n.CV&&"range"!==n.CV||ZC.CR.paint(n.QM,n,n.E):n.E.push(null));e+t<n.R.length?n.C.LV?window.setTimeout(function(){u(e+t,t)},10):u(e+t,t):n.C.LV&&n.L===n.A.A4.length-1&&n.A._end_()}(0,ZC.ie678||ZC.mobile?200:2e3);else{var r="vbar"!==n.AF&&"hbar"!==n.AF;if(n.B2.EF&&n.EF){a=n.GC=n.HJ=n.Y;var o=!0,s=0,C=0;for(t=0,i=n.R.length;t<i;t+=a)r&&(i-t==1?(n.GC=a,n.HJ=1):i-t<n.Y&&(n.GC=n.Y,n.HJ=i-t-1,a=i-t-1)),n.R[t]&&(n.B2.IX.length>0||ZC.DR(n.R[t].BU,n.B2.V[n.B2.W],n.B2.V[n.B2.A1])||r&&o&&n.R[t+a]&&n.R[t+a].BU>=n.B2.V[n.B2.W])&&(r&&o&&n.R[t-a]&&((l=n.FM(t-a)).Z=n.KK,l.paint(),l.JJ=!0,o=!1,C++),(l=n.FM(t)).Z=n.KK,l.paint(),l.JJ=!0,C++,o=!1,s=t);r&&C>0&&n.R[s+a]&&((l=n.FM(s+a)).Z=n.KK,l.paint(),l.JJ=!0)}else{a=n.GC=n.HJ=n.Y;var A=0,Z=1,c=null;if(!r){var p="vbar"===n.AF?n.C.P.I:n.C.P.F;A=4/("vbar"===n.AF?n.C.P.F:n.C.P.I)*(n.CL.BK-n.CL.B3),Z=1+ZC._i_((n.B2.A1-n.B2.W)/(2*p)),a=1}for(t=n.B2.W;t<=n.B2.A1;t+=a)(n.B2.A1-n.B2.W)%n.Y!=0&&r&&(n.B2.A1-t==0?(n.GC=a,n.HJ=1):n.B2.A1-t<=n.Y&&(n.GC=n.Y,n.HJ=n.B2.A1-t,a=n.B2.A1-t)),n.R[t]?(l=n.FM(t),(r||n.R0||!r&&null===c||ZC._a_(l.AD-c)>A||t%Z==0)&&(l.Z=n.KK,l.paint(),l.JJ=!0,n.R[t].JJ=!0),c=l.AD):n.CA&&-1!==ZC.AV(["vbar","hbar","vbar3d","hbar3d"],n.AF)&&n.PT()}}}CN(e,t){var i=this;if(i.UY[e+t])return i.UY[e+t];var a=null;return a=i.G.usc()?ZC.AK(i.G.K+"-main-c"+("fl"===e?"-top":"")):i.G.KD||i.C.AJ["3d"]?ZC.AK(i.C.K+"-plots-"+e+"-c"):ZC.AK(i.C.K+"-plot-"+i.L+"-"+e+"-"+t+"-c"),i.UY[e+t]||(i.UY[e+t]=a),a}TF(e){var t=this;return{id:t.G.K,graphid:t.C.K,graphidx:t.C.L,plotid:t.H6,plotindex:t.L,plottext:t.AT,ev:e?ZC.A5.BX(e):null,xdata:t.KJ}}UO(e,t){ZC.AP.C0("plot_"+t,this.G,this.TF(e))}applyJsRuleSvg(e,t,i){var a;if(a=e.o["js-rule-svg"]){var n=ZC.AK(t),l=ZC.evalFn(a.replace("javascript:","").replace("()",""),window);if(n&&l)try{var r=l.call(this,i);for(var o in r)n.setAttribute(o,r[o])}catch(s){}}}sharedZScale(){var e=this,t=e.C,i=t.P;if(t.o["scale-z"]&&t.D["plot"+e.L+".visible"]){var a,n,l,r,o;if(a=new CB(t,i.iX+i.I-ZC.AO.E1+10,i.iY+i.F-ZC.AO.E2,e.D["z-mid"]),(n=new DT(e)).GO=t.K+"-scale-z-item "+t.K+"-scale-item zc-scale-item",n.K=t.K+"-scale-z-item_"+e.L,n.AT=t.o["scale-z"][ZC._[5]][e.L],n.Z=n.C7=e.G.usc()?e.G.mc():ZC.AK(t.K+"-scales-ml-0-c"),o=ZC.Q.E9(n.Z,e.G.AB),n.IU=e.G.usc()?ZC.AK(e.G.K+"-main"):ZC.AK(e.G.K+"-text"),n.append(t.o["scale-z"].item),n.parse(),n.A9+=n.VQ?0:ZC.DH.A3V(t,n),n.iX=a.EB[0],n.iY=a.EB[1],n.o["auto-align"]&&n.VQ&&(n.iY-=n.F/2),n.paint(),null===ZC._n_(e.D["scale-z-item-max-width"])&&(e.D["scale-z-item-max-width"]=0),e.D["scale-z-item-max-width"]=ZC.BQ(e.D["scale-z-item-max-width"],n.I),e.D["z-cnt"]===e.D["z-plots"]-1&&t.o["scale-z"].label){var s,C;a=new CB(t,i.iX+i.I-ZC.AO.E1+20+e.D["scale-z-item-max-width"],i.iY+i.F-ZC.AO.E2,ZC.AO.FU/2),(n=new DT(e)).GO=t.K+"-scale-z-label "+t.K+"-scale-label zc-scale-label",n.K=t.K+"-scale-z-label",n.Z=n.C7=e.G.usc()?e.G.mc():ZC.AK(t.K+"-scales-ml-0-c"),o=ZC.Q.E9(n.Z,e.G.AB),n.IU=e.G.usc()?ZC.AK(e.G.K+"-main"):ZC.AK(e.G.K+"-text"),n.append(t.o["scale-z"].label),n.parse(),s=new CB(t,i.iX+i.I-ZC.AO.E1,i.iY+i.F-ZC.AO.E2,0),C=new CB(t,i.iX+i.I-ZC.AO.E1,i.iY+i.F-ZC.AO.E2,ZC.AO.FU);var A=ZC.UE(Math.atan((C.EB[1]-s.EB[1])/(C.EB[0]-s.EB[0])));n.A9+=n.VQ?0:A,n.iX=a.EB[0],n.iY=a.EB[1],n.paint()}if(t.o["scale-z"].tick&&((r=new DW(e)).B7="#cccccc",r.AZ=1,r.AI=6,r.append(t.o["scale-z"].tick),r.parse(),r.AM&&r.AZ>0)){r.K=t.K+"-scale-z-tick-"+e.L;for(var Z=[],c=[[i.iX+i.I,i.iY+i.F],[i.iX+i.I+r.AI,i.iY+i.F]],p=0;p<c.length;p++)a=new CB(t,c[p][0]-ZC.AO.E1,c[p][1]-ZC.AO.E2,e.D["z-mid"]),Z.push([a.EB[0],a.EB[1]]);ZC.CR.paint(o,r,Z)}if(0===e.D["z-cnt"]&&((r=new D0(e)).B7="#cccccc",r.AZ=1,r.append(t.o["scale-z"].axis),r.parse(),r.AZ>0&&r.AM&&(r.A0=r.AE=r.B7,(l=ZC.DH.D9(r,t,i.iX+i.I-ZC.AO.E1-r.AZ,i.iX+i.I-ZC.AO.E1,i.iY+i.F-ZC.AO.E2,i.iY+i.F-ZC.AO.E2,0,ZC.AO.FU,"x")).K=t.K+"-scale-z-axis",t.CJ.add(l))),e.D["z-cnt"]>0&&t.o["scale-z"].guide&&((r=new D0(e)).B7="#cccccc",r.AZ=1,r.append(t.o["scale-z"].guide),r.parse(),r.AZ>0&&r.AM&&(r.A0=r.AE=r.B7,(l=ZC.DH.D9(r,t,i.iX-ZC.AO.E1,i.iX+i.I-ZC.AO.E1,i.iY+i.F-ZC.AO.E2,i.iY+i.F-ZC.AO.E2+r.AZ,e.D["z-cnt"]*e.D["z-depth"],e.D["z-cnt"]*e.D["z-depth"],"y")).K=t.K+"-scale-z-guideh-"+e.L,t.CJ.add(l),(l=ZC.DH.D9(r,t,i.iX-ZC.AO.E1,i.iX-ZC.AO.E1,i.iY-ZC.AO.E2,i.iY+i.F-ZC.AO.E2,e.D["z-cnt"]*e.D["z-depth"],e.D["z-cnt"]*e.D["z-depth"]+r.AZ,"y")).K=t.K+"-scale-z-guidev-"+e.L,t.CJ.add(l))),t.o["scale-z"].items&&t.o["scale-z"].items.length){(r=new D0(e)).A0=r.AE="#ff9900",r.C5=.25;var u=e.D["z-cnt"]%t.o["scale-z"].items.length;r.append(t.o["scale-z"].items[u]),r.parse(),(l=ZC.DH.D9(r,t,i.iX-ZC.AO.E1,i.iX+i.I-ZC.AO.E1,i.iY+i.F-ZC.AO.E2,i.iY+i.F-ZC.AO.E2,e.D["z-cnt"]*e.D["z-depth"],e.D["z-cnt"]*e.D["z-depth"]+e.D["z-depth"],"z")).K=e.K+"-item-",t.CJ.add(l)}}}gc(){if(this.R)for(var e=0;e<this.R.length;e++)this.R[e]&&this.R[e].A&&ZC.AP.gc(this.R[e],["Z","C7","o","JF","I9","A","C","G","O","NH"]);ZC.AP.gc(this,["V","R","GT","K8","VM","A7","Z","C7","UY","A2","U4","HF","GB","IJ","KK","QM","B2","CL","R","GT","K8","JY","o","JF","I9","A","C","G"])}}class WT extends IL{constructor(e){super(e);var t=this;t.bXY=!0,t.AF="xy",t.BN=[ZC._[50],ZC._[51]]}paint(){super.paint()}}class R5 extends WT{constructor(e){super(e);var t=this;t.AF="line",t.CV="segmented",t.Y=1,t.SY="middle",t.VM=[],t.NA=!0,t.P0=!1}G1(){return new A3I(this)}parse(){var e=this;e.BP=e.NM(),e.C1=e.BP[0],e.B7=e.BP[1],e.ND(),super.parse(),e.assign_a([["step-start","SY"],["smart-sampling","NA","b"]]),e.B2=e.C.BI(e.BT("k")[0]),e.CL=e.C.BI(e.BT("v")[0])}paint(){var e,t,i,a,n,l,r,o=this;super.paint(),o.VM=[];var s=o.P0;if(o.KK=o.CN("bl",0),o.QM=ZC.Q.E9(o.CN("bl",1),o.G.AB),!o.IE||o.C.AJ["3d"])o.OE(),o.E=null;else{o.VU(),o.C7=o.CN("bl",0);var C=!0;(null!==ZC._n_(o.A2.o.visible)&&!ZC._b_(o.A2.o.visible)||null!==ZC._n_(o.A.o.type)&&"none"===o.A2.o.type)&&(C=!1);var A=[],Z=[],c=[],p=!0,u=0,h=null;a=0;var _=-1,d=-1,f=o.A.A4[0].SF&&o.A.A4[0].SF.length,g=o.Y,B=o.CV;if(o.Y>1&&"spline"===B&&(B="segmented"),o.B2.EF&&o.EF){for(i=o.Y,o.NA&&(i=1),e=0,t=o.R.length;e<t;e+=i)d-e<=o.Y&&(i=ZC.BQ(1,d-e)),o.R[e]&&(o.B2.IX.length>0||ZC.DR(o.R[e].BU,o.B2.V[o.B2.W],o.B2.V[o.B2.A1])||p&&o.R[e+i]&&o.R[e+i].BU>=o.B2.V[o.B2.W])&&(p&&o.R[e-i]&&(-1===_&&(_=e-i),d=e-i,p=!1,u++),-1===_&&(_=e),d=e,u++,p=!1,a=e);u>0&&o.R[a+i]&&(-1===_&&(_=a+i),d=a+i,o.R[a+i].JJ=!0)}else _=o.B2.W,d=o.M1?o.R.length:o.B2.A1;o.Y=g;var v=-1;i=o.Y,o.NA&&(i=1);var m=null,b=null,D=0,K=1;a=_,s?d-_>o.C.P.F&&(D=4/o.C.P.I*(o.CL.BK-o.CL.B3),K=ZC._f_((d-_)/(4*o.C.P.F))):d-_>o.C.P.I&&(D=4/o.C.P.F*(o.CL.BK-o.CL.B3),K=ZC._f_((d-_)/(4*o.C.P.I))),o.o["sampling-threshold"]&&(D*=Math.max(1,(d-_)/ZC._i_(o.o["sampling-threshold"])),K*=Math.max(1,(d-_)/ZC._i_(o.o["sampling-threshold"])));for(o.E=[],e=_;e<=d;e+=i){var E=!1;if(((d-_)%o.Y!=0||o.B2.EF&&o.EF)&&d-e<=o.Y&&(i=ZC.BQ(1,d-e),E=!0),o.NA&&!E&&o.R[e])if(null===ZC._n_(m))m=o.R[e].CQ,a=e,b=0;else{if(Math.abs(o.R[e].CQ-m)<D&&e-a<K&&(!o.EF||o.R[e].BU-b<4*o.B2.SR))continue;m=o.R[e].CQ,b=o.R[e].BU,a=e}if(0,h=o.FM(e)){switch(o.R[e].JJ=!0,(o.FZ||o.M1)&&h.paint(!0),-1===v&&(v=h.iX),B){default:A.push([h.iX,h.iY]);break;case"spline":s?(Z.push(h.iX),c.push(h.iY),1===Z.length&&(Z.push(h.iX),c.push(h.iY))):(Z.push(h.iY),c.push(h.iX),1===Z.length&&(Z.push(h.iY),c.push(h.iX)));break;case"stepped":switch(o.SY){default:(l=o.FM(e-i,0))&&(l.setup(),n=ZC.AQ.K0(o.R[e-i].iX,o.R[e-i].iY,h.iX,h.iY),A.push(s?[h.iX,n[1]]:[n[0],h.iY])),A.push([h.iX,h.iY]),(r=o.FM(e+i,0))&&(r.setup(),n=ZC.AQ.K0(h.iX,h.iY,o.R[e+i].iX,o.R[e+i].iY),A.push(s?[h.iX,n[1]]:[n[0],h.iY]));break;case"before":(l=o.FM(e-i,0))&&(l.setup(),A.push([o.R[e-i].iX,o.R[e-i].iY],[o.R[e-i].iX,h.iY])),A.push([h.iX,h.iY]);break;case"after":A.push([h.iX,h.iY]),(r=o.FM(e+i,0))&&(r.setup(),A.push([o.R[e+i].iX,h.iY],[o.R[e+i].iX,o.R[e+i].iY]))}break;case"jumped":(l=o.FM(e-i,0))?(l.setup(),n=ZC.AQ.K0(o.R[e-i].iX,o.R[e-i].iY,h.iX,h.iY),A.push(s?[h.iX,n[1]]:[n[0],h.iY])):A.push(s?[h.iX,h.iY-o.B2.AC/2]:[h.iX-o.B2.AC/2,h.iY]),A.push([h.iX,h.iY]),(r=o.FM(e+i,0))?(r.setup(),n=ZC.AQ.K0(h.iX,h.iY,o.R[e+i].iX,o.R[e+i].iY),A.push(s?[h.iX,n[1]]:[n[0],h.iY])):A.push(s?[h.iX,h.iY+o.B2.AC/2]:[h.iX+o.B2.AC/2,h.iY]),A.push(null)}f&&h.MU(ZC.Q.E9(o.CN("fl",0),o.G.AB)),(o.RG&&C||o.FZ||o.U)&&h.OU(),h.JJ=!0}else null!==ZC._n_(o.o["connect-nulls"])&&ZC._b_(o.o["connect-nulls"])||(A.push(null),Z.push(null),c.push(null))}if("spline"===B){Z.push(Z[Z.length-1]),c.push(c[c.length-1]),A=[];for(var F=1;F<Z.length-1;F++){var I=[Z[F-1],Z[F],Z[F+1],Z[F+2]],x=ZC._a_(c[F+1]-c[F]);x=Math.min(x,Math.max(o.C.I,o.C.F));var y=ZC.AQ.YW(o.QO,I,x);for(e=0;e<y.length;e++)null!==ZC._n_(y[e][0])&&null!==ZC._n_(y[e][1])?s?A.push([y[e][1],c[F]+(o.B2.AW?1:-1)*y[e][0]*x]):A.push([c[F]+(o.B2.AW?-1:1)*y[e][0]*x,y[e][1]]):A.push(null)}}o.CY=!1;var X=o.G.OH;if(o.G.OH=!1,o.D["fast-vector-path"]=!0,ZC.CR.setup(o.QM,o),ZC.CR.paint(o.QM,o,A),o.G.OH=X,o.C.BA&&o.C.BA.IO&&o.R1){var G=o.mapPointsToPreview(A,!0),Y=ZC.Q.E9(o.C.BA.Z,o.G.AB),w=new D0(o);w.copy(o),w.K=o.K+"-preview",w.DI=o.K+"-preview",w.AZ=1;var M=o.o["preview-state"];M&&(w.append(M),w.parse()),ZC.CR.paint(Y,w,G,null,3)}}}}class R6 extends WT{constructor(e){super(e);var t=this;t.AF="area",t.Y=1,t.CV="segmented",t.T1=3,t.I0=t.C.AJ["3d"]?1:.5,t.SY="middle",t.A4N=!0,t.VM=[],t.NA=!0,t.XS=!1,t.P0=!1}G1(){return new A3J(this)}parse(){var e=this;e.BP=e.NM(),e.C1=e.BP[0],e.B7=e.BP[1],e.C.AJ["3d"]||"solid"===e.o["background-color-style"]?e.A0=e.AE=e.BP[1]:(e.A0=e.BP[0],e.AE=e.BP[1]),e.ND(),super.parse(),e.applyRGBA(),e.assign_a([["alpha-area","I0","f",0,1],["step-start","SY"],["active-area","XS","b"],["contour-on-top","A4N","b"],["smart-sampling","NA","b"]]),e.B2=e.C.BI(e.BT("k")[0]),e.CL=e.C.BI(e.BT("v")[0])}paint(){var e,t,i,a,n,l,r,o,s,C,A,Z=this;super.paint(),Z.VM=[];var c=Z.P0;if(-1===ZC.AV(["segmented","spline","stepped"],Z.CV)&&(Z.CV="segmented"),Z.KK=Z.CN("bl",0),Z.A5D=ZC.Q.E9(Z.CN("bl",1),Z.G.AB),Z.QM=ZC.Q.E9(Z.CN("bl",Z.A4N?2:1),Z.G.AB),C=Z.C.P,!Z.IE||Z.C.AJ["3d"]){var p=ZC.MAX,u=-ZC.MAX;for(e=0,t=Z.R.length;e<t;e++)Z.R[e]&&(p=ZC.CX(p,Z.R[e].CQ),u=ZC.BQ(u,Z.R[e].CQ));var h=Z.CL.AN(p),_=Z.CL.AN(u),d=Z.CL.AN(Z.CL.H9);if(ZC.DR(d,h,_)&&(Z.CL.AW?d<h&&(h=d):d>_&&(_=d)),Z.D["min-y"]=Math.min(h,_),Z.D["max-y"]=Math.max(h,_),Z.CA&&Z.A.F3){var f=ZC.MAX,g=-ZC.MAX;for(e=0,t=Z.A.F3.length;e<t;e++)if(Z.A.F3[e])for(var B=0,v=Z.A.F3[e].length;B<v;B++)f=ZC.CX(f,Z.A.F3[e][B][1]),g=ZC.BQ(g,Z.A.F3[e][B][1]);Z.CL.AW?Z.D["min-y"]=f:Z.D["max-y"]=g}Z.D["max-y"]-Z.D["min-y"]<100&&(Z.D["max-y"]+=50,Z.D["min-y"]-=50),Z.OE(),Z.E=null,Z.D5=null,Z.AH=null}else{Z.VU(),Z.C7=Z.CN("bl",0);var m=!0;(null!==ZC._n_(Z.A2.o.visible)&&!ZC._b_(Z.A2.o.visible)||null!==ZC._n_(Z.A.o.type)&&"none"===Z.A2.o.type)&&(m=!1);var b=Z.CA&&0===Z.C.V0,D=[],K=[],E=[],F=[],I=[],x=Z.CL.H9;Z.o["ref-value"]&&(x=ZC._f_(Z.o["ref-value"]));var y=Z.CL.AN(x);c?"xy"===Z.C.AJ.layout?(y=Z.B2.AN(x),y=ZC._l_(y,Z.B2.iX,Z.B2.iX+Z.B2.I)):y=ZC._l_(y,Z.CL.iX,Z.CL.iX+Z.CL.I):"yx"===Z.C.AJ.layout?(y=Z.B2.AN(x),y=ZC._l_(y,Z.B2.iY,Z.B2.iY+Z.B2.F)):y=ZC._l_(y,Z.CL.iY,Z.CL.iY+Z.CL.F);var X=!0,G=0,Y=null;i=0;var w=-1,M=-1,L=Z.A.A4[0].SF&&Z.A.A4[0].SF.length,P=Z.Y,O=Z.CV;if(Z.Y>1&&"spline"===O&&(O="segmented"),Z.B2.EF&&Z.EF){for(a=Z.Y,Z.NA&&(a=1),e=0,t=Z.R.length;e<t;e+=a)M-e<=Z.Y&&(a=ZC.BQ(1,M-e)),Z.R[e]&&(Z.B2.IX.length>0||ZC.DR(Z.R[e].BU,Z.B2.V[Z.B2.W],Z.B2.V[Z.B2.A1])||X&&Z.R[e+a]&&Z.R[e+a].BU>=Z.B2.V[Z.B2.W])&&(X&&Z.R[e-a]&&(-1===w&&(w=e-a),M=e-a,X=!1,G++),-1===w&&(w=e),M=e,G++,X=!1,i=e);G>0&&Z.R[i+a]&&(-1===w&&(w=i+a),M=i+a,Z.R[i+a].JJ=!0)}else w=Z.B2.W,M=Z.M1?Z.R.length:Z.B2.A1;Z.Y=P,b||Z.A.D5&&(K=Z.A.D5.reverse());var R=null,Q=null,T=0,k=1;i=w,c?M-w>Z.C.P.F&&(T=4/Z.C.P.I*(Z.CL.BK-Z.CL.B3),k=ZC._f_((M-w)/(4*Z.C.P.F))):M-w>Z.C.P.I&&(T=4/Z.C.P.F*(Z.CL.BK-Z.CL.B3),k=ZC._f_((M-w)/(4*Z.C.P.I)));var N=!1,H=!1,z=-1;a=Z.Y,Z.NA&&(a=1),N=!0,!Z.A.SA&&b&&(Z.A.SA={},Z.A.W6={});var V=null,J=null;if(Z.A.SA&&!Z.A.SA["s"+Z.DY]&&b){Z.A.SA["s"+Z.DY]={},Z.A.W6["s"+Z.DY]={};var S=Z.A.XB["s"+Z.DY];for(e=0;e<=S.length;e++)null!==ZC._n_(S[e])&&(n=Z.B2.EF?ZC._i_(Z.B2.AN(S[e])):ZC._i_(Z.B2.H4(S[e])),Z.A.SA["s"+Z.DY][n]=y,Z.A.W6["s"+Z.DY][n]=y)}for(b&&(V=Z.A.SA["s"+Z.DY],J=Z.A.W6["s"+Z.DY]),e=w;e<=M;e+=a){var W=!1;if(((M-w)%Z.Y!=0||Z.B2.EF&&Z.EF)&&M-e<=Z.Y&&(a=ZC.BQ(1,M-e),W=!0),Z.NA&&!W&&Z.R[e])if(null===ZC._n_(R))R=Z.R[e].CQ,i=e,Q=0;else{if(Math.abs(Z.R[e].CQ-R)<T&&e-i<k&&(!Z.EF||Z.R[e].BU-Q<4*Z.B2.SR))continue;R=Z.R[e].CQ,Q=Z.R[e].BU,i=e}if(Y=Z.FM(e)){switch(Z.R[e].JJ=!0,(Z.FZ||Z.M1)&&Y.paint(!0),(H||("segmented"===O||"stepped"===O)&&e===w&&0===K.length)&&(b||(K.push(c?[y,Y.iY]:[Y.iX,y]),H&&E.push(c?[y,Y.iY]:[Y.iX,y]))),H=!1,-1===z&&(z=Y.iX),O){default:b||N&&(c?Y.iY>Z.B2.iY&&(E.push([y,Z.B2.iY]),E.push([y,Y.iY]),K.push([y,Y.iY])):Y.iX>Z.B2.iX&&(E.push([Z.B2.iX,y]),E.push([Y.iX,y]),K.push([Y.iX,y])),N=!1),D.push([Y.iX,Y.iY]),b?c?J[ZC._i_(Y.iY)]=Y.iX:J[ZC._i_(Y.iX)]=Y.iY:(E.push([Y.iX,Y.iY]),K.push([Y.iX,Y.iY]));break;case"spline":c?(F.push(Y.iX),I.push(Y.iY),1===F.length&&(F.push(Y.iX),I.push(Y.iY))):(F.push(Y.iY),I.push(Y.iX),1===F.length&&(F.push(Y.iY),I.push(Y.iX)));break;case"stepped":var U=Z.B2.AW?-1:1;switch(Z.SY){default:(r=Z.FM(e-a,0))&&(r.setup(),l=ZC.AQ.K0(Z.R[e-a].iX,Z.R[e-a].iY,Y.iX,Y.iY),D.push(c?[Y.iX,l[1]]:[l[0],Y.iY]),b?c?J[ZC._i_(l[1])-U]=Y.iX:J[ZC._i_(l[0])+U]=Y.iY:(E.push(c?[Y.iX,l[1]]:[l[0],Y.iY]),K.push(c?[Y.iX,l[1]]:[l[0],Y.iY]))),D.push([Y.iX,Y.iY]),b?c?J[ZC._i_(Y.iY)]=Y.iX:J[ZC._i_(Y.iX)]=Y.iY:(E.push([Y.iX,Y.iY]),K.push([Y.iX,Y.iY])),(o=Z.FM(e+a,0))&&(o.setup(),l=ZC.AQ.K0(Y.iX,Y.iY,Z.R[e+a].iX,Z.R[e+a].iY),D.push(c?[Y.iX,l[1]]:[l[0],Y.iY]),b?c?J[ZC._i_(l[1])+U]=Y.iX:J[ZC._i_(l[0])-U]=Y.iY:(E.push(c?[Y.iX,l[1]]:[l[0],Y.iY]),K.push(c?[Y.iX,l[1]]:[l[0],Y.iY])));break;case"before":(r=Z.FM(e-a,0))&&(r.setup(),D.push([Z.R[e-a].iX,Z.R[e-a].iY],[Z.R[e-a].iX,Y.iY]),b?c?(J[ZC._i_(Y.iY)+U]=Z.R[e-a].iX,J[ZC._i_(Y.iY)]=Z.R[e-a].iX):(J[ZC._i_(Z.R[e-a].iX)]=Z.R[e-a].iY,J[ZC._i_(Z.R[e-a].iX)+U]=Y.iY):(E.push([Z.R[e-a].iX,Z.R[e-a].iY],[Z.R[e-a].iX,Y.iY]),K.push([Z.R[e-a].iX,Z.R[e-a].iY],[Z.R[e-a].iX,Y.iY]))),D.push([Y.iX,Y.iY]),b?c?J[ZC._i_(Y.iY)]=Y.iX:J[ZC._i_(Y.iX)]=Y.iY:(E.push([Y.iX,Y.iY]),K.push([Y.iX,Y.iY]));break;case"after":D.push([Y.iX,Y.iY]),b?c?J[ZC._i_(Y.iY)]=Y.iX:J[ZC._i_(Y.iX)]=Y.iY:(E.push([Y.iX,Y.iY]),K.push([Y.iX,Y.iY])),(o=Z.FM(e+a,0))&&(o.setup(),D.push([Z.R[e+a].iX,Y.iY],[Z.R[e+a].iX,Z.R[e+a].iY]),b?c?(J[ZC._i_(Y.iY)-U]=Z.R[e+a].iX,J[ZC._i_(Z.R[e+a].iY)]=Z.R[e+a].iX):(J[ZC._i_(Z.R[e+a].iX)-U]=Y.iY,J[ZC._i_(Z.R[e+a].iX)]=Z.R[e+a].iY):(E.push([Z.R[e+a].iX,Y.iY],[Z.R[e+a].iX,Z.R[e+a].iY]),K.push([Z.R[e+a].iX,Y.iY],[Z.R[e+a].iX,Z.R[e+a].iY])))}}L&&Y.MU(ZC.Q.E9(Z.CN("fl",0),Z.G.AB)),(Z.RG&&m||Z.FZ||Z.U)&&Y.OU(),Y.JJ=!0}else null!==ZC._n_(Z.o["connect-nulls"])&&ZC._b_(Z.o["connect-nulls"])||(D.push(null),F.push(null),I.push(null),b||(K.length-1>=0&&K.push(c?[y,K[K.length-1][1]]:[K[K.length-1][0],y]),E.length-1>=0&&E.push(c?[y,K[K.length-1][1]]:[K[K.length-1][0],y]),H=!0))}if("segmented"!==O&&"stepped"!==O||b||K.length-1>=0&&(c?K.push([y,K[K.length-1][1]]):K.push([K[K.length-1][0],y])),"spline"===O){F.push(F[F.length-1]),I.push(I[I.length-1]),D=[],b||K.push(c?[y,I[0]]:[I[0],y]);for(var j=1;j<F.length-1;j++){var q=[F[j-1],F[j],F[j+1],F[j+2]],$=ZC._a_(I[j+1]-I[j]);$=Math.min($,Math.max(Z.C.I,Z.C.F));var ee=ZC.AQ.YW(Z.QO,q,$);for(e=0;e<ee.length;e++)null!==ZC._n_(ee[e][0])&&null!==ZC._n_(ee[e][1])?(s=c?[ee[e][1],I[j]+(Z.B2.AW?1:-1)*ee[e][0]*$]:[I[j]+(Z.B2.AW?-1:1)*ee[e][0]*$,ee[e][1]],D.push(s),b?c?J[ZC._i_(s[1])]=s[0]:J[ZC._i_(s[0])]=s[1]:(K.push(s),E.push(s))):D.push(null)}b||K.push(c?[y,K[K.length-1][1]]:[K[K.length-1][0],y])}if(!b&&E.length>0){var te=E[E.length-1];c||te[0]<Z.B2.iX+Z.B2.I&&(E.push(c?[y,te[1]]:[te[0],y]),E.push(c?[y,Z.B2.iY]:[Z.B2.iX+Z.B2.I,y]))}if(b){var ie=[],ae=[],ne=[],le=[];for(A in J)ne.push([A,J[A]]);for(A in ne.sort(function(e,t){return e[0]-t[0]}),V)le.push([A,V[A]]);for(le.sort(function(e,t){return e[0]-t[0]}),e=0;e<ne.length;e++)c?ie.push([ne[e][1],ne[e][0]]):ie.push([ne[e][0],ne[e][1]]);for(e=0;e<le.length;e++)c?ae.push([le[e][1],le[e][0]]):ae.push([le[e][0],le[e][1]]);for(A in(K=ie.concat(ae.reverse()))[0]&&K.push(K[0]),V=Z.A.SA["s"+Z.DY]={},J)V[A]=J[A]}var re=new DW(Z);if(re.copy(Z),re.CY=!0,re.LE=!0,re.AZ=0,re.AU=0,re.EW=0,re.GA=0,re.NE=Z.P0?180:90,re.parse(),re.C5=Z.I0,re.Z=Z.CN("bl",Z.C.CA?0:1),re.E=K,re.ZN(),re.K=Z.K+"-area",re.paint(),Z.CY=!1,ZC.CR.setup(Z.QM,Z),ZC.CR.paint(Z.QM,Z,D),Z.C.BA&&Z.C.BA.IO&&Z.R1){var oe,se=Z.C.BA,Ce=Z.mapPointsToPreview(K),Ae=new DW(Z.A);Ae.copy(Z),Ae.CY=!0,Ae.LE=!0,Ae.AZ=0,Ae.AU=0,Ae.EW=0,Ae.GA=0,Ae.C5=Z.I0,Ae.CZ=[C.iX,C.iY,C.iX+C.I,C.iY+C.F],Ae.K=Z.K+"-area-preview",Ae.DI=Z.K+"-preview",Ae.Z=se.Z;var Ze=Z.o["preview-state"];Ze&&(null!==ZC._n_(Ze["alpha-area"])?(oe=Ze.alpha,Ze.alpha=Z.o["preview-state"]["alpha-area"]):Ze.alpha=Ae.C5,Ae.append(Ze),Ae.parse(),null!==ZC._n_(oe)?Ze.alpha=oe:delete Ze.alpha),Ae.E=Ce,Ae.paint();var ce=Z.mapPointsToPreview(D),pe=ZC.Q.E9(se.Z,Z.G.AB),ue=new D0(Z);ue.copy(Z),ue.CY=!0,ue.LE=!0,ue.K=Z.K+"-line-preview",ue.DI=Z.K+"-preview",ue.AZ=1,Ze&&(ue.append(Ze),ue.parse()),ZC.CR.paint(pe,ue,ce,null,3)}Z.CA&&(Z.A.D5=E)}}}class A2T extends WT{constructor(e){super(e);var t=this;t.AF="bar",t.sMetaType="bar",t.F4=.1,t.D1=0,t.bKeyWidth=!1,t.ZF=-1,t.CC=.1,t.CS=.1,t.EZ=0,t.U3=!1,t.M6=[],t.PD="bg",t.A49=!0,t.NA=!1}parse(){var e=this;if(e.BP=e.NM(),e.C1=e.BP[0],e.B7=e.BP[1],e.BW=e.BP[1],e.A0=e.BP[1],e.AE=e.BP[2],e.ND(),super.parse(),"histogram"===e.CV&&(e.F4=e.CC=e.CS=0),e.assign_a([["group-bars","A49","b"],["show-zero","U3","b"],["offset-values","M6"],["bar-space","F4","fp"],["bar-width","D1","fp"],["key-width","bKeyWidth","b"],["bar-max-width","ZF","fp"],["bars-space-left","CC","fp"],["bars-space-right","CS","fp"],["bars-overlap","EZ","fp"],["smart-sampling","NA","b"]]),e.A49||(e.EZ=1),0===e.F4&&0===e.CC&&0===e.CS&&(e.FG=!1),e.B2=e.C.BI(e.BT("k")[0]),e.CL=e.C.BI(e.BT("v")[0]),null!==ZC._n_(e.o.column)){var t=e.o.column.split("/");if(2===t.length){var i=ZC._i_(t[0]),a=ZC._i_(t[1]),n=e.CC;e.CC>=1&&(n=e.CC/e.B2.AC);var l=e.CS;e.CS>=1&&(l=e.CS/e.B2.AC);var r=1-n-l,o=ZC._x_(r/(3*a+1));e.CC=n+o+3*(i-1)*o,e.CS=1-e.CC-2*o}}}PT(){var e,t=this;if(t.RX)return t.RX;if(t.o["fast-dimensions"]&&t.A.A4[0].RX)return t.A.A4[0].RX;t.bKeyWidth&&(t.assign_a([["bar-width","D1","fp"]]),t.D1=((t.B2.CP?t.B2.F:t.B2.I)-t.B2.AA-t.B2.BV)*(t.D1/(t.B2.BK-t.B2.B3)));var i,a=t.B2.AC*t.Y,n=0;for(t.A.K7[t.AF]=t.A.K7[t.AF]||[],e=0;e<t.A.K7[t.AF].length;e++){var l=t.A.K7[t.AF][e][0];t.A.A4[l].BN[0]===t.BN[0]&&n++}if(t.M1)for(n=0,e=0;e<t.A.A4.length;e++)"bar"===t.A.A4[e].sMetaType&&(n=ZC.BQ(n,t.A.A4[e].R.length));if(null===ZC._n_(t.B2.ES)&&(t.B2.ES=0,t.B2.XD={}),t.CA&&null!==ZC._n_(t.B2.XD["stack-"+t.DY]))i=t.B2.XD["stack-"+t.DY];else{for(i=t.B2.ES,e=0;e<t.L;e++)if((t.A.A4[e].AM||"hide"===t.C.getToggleAction())&&t.BN[0]===t.A.A4[e].BN[0]&&t.A.A4[e].AF===t.AF&&(!t.CA||t.A.A4[e].DY!==t.DY)&&!t.A.A4[e].HS){i++;break}t.B2.ES=i,t.B2.XD["stack-"+t.DY]=i}for(var r=!0,o=0,s=[],C=0;C<t.A.A4.length;C++)t.A.A4[C].D1<=1?r=!1:null!==ZC._n_(t.A.A4[C].D1)&&(t.A.A4[C].CA&&-1!==ZC.AV(s,t.A.A4[C].DY)||(s.push(t.A.A4[C].DY),o+=t.A.A4[C].D1));var A=t.CC;A<=1&&(A*=a);var Z,c=t.CS;c<=1&&(c*=a),A=ZC._i_(A),c=ZC._i_(c);var p,u,h,_,d=t.EZ;return r?(Z=o,0===t.EZ||n<=1?((p=t.F4)<=1&&(p*=Z/n),c=(h=a-Z-(p=ZC.BQ(0,p))*(n-1))-(A=h*(_=0===c?1:A/c)/(1+_)),A<1&&(A=c=0,p=a-Z,n>1&&(p/=n-1),p<0&&(Z=a-A-c-(p=0)*(n-1))),u=(Z=ZC.BQ(Z,1*n))/n):n>1&&(p=0,u=Z/n,d<=1&&(d*=u),c=(h=a-(Z=n*(u-(d=ZC.CX(d,u)))+d)-p*(n-1))-(A=h*(_=0===c?1:A/c)/(1+_)),A<1&&(Z-=1-A))):(Z=a-A-c,0===t.EZ||n<=1?((p=t.F4)<=1&&(p*=Z/n),c=(h=a-Z-(p=ZC.BQ(0,p))*(n-1))-(A=h*(_=0===c?1:A/c)/(1+_)),A<1&&(A=c=0,p=a-Z,n>1&&(p/=n-1),p<0&&(Z=a-A-c-(p=0)*(n-1))),u=(Z=ZC.BQ(Z,1*n))/n):n>1&&(p=0,u=Z/n,d>1&&(d=u/d),d*=u=Z/(n-n*d+d),c=(h=a-Z-p*(n-1))-(A=h*(_=0===c?1:A/c)/(1+_)),A<1&&(Z-=1-A))),-1!==t.ZF&&u>t.ZF&&!t.D.bw&&(t.D1=t.ZF,t.D.bw=!0,t.PT(),t.D.bw=null),t.RX={AC:a,ES:i,CC:A,CS:c,F4:p,D1:u,EZ:d},{AC:a,ES:i,CC:A,CS:c,F4:p,D1:u,EZ:d}}paint(){var e=this;super.paint(),e.KK=e.CN("bl",0);var t=e.FG;e.A34=!1,e.SN=null;var i=1;e.B2.EF&&(i=e.R.length/(e.B2.DU-e.B2.DA)),0!==e.E5.length||e.HX||e.C.KO||"svg"!==e.G.AB||!(e.B2.A1-e.B2.W>2048||e.B2.EF&&i*(e.B2.A1-e.B2.W)>2048)||(e.A34=!0,null===ZC._n_(e.o["rect-shortcut"])&&(e.FG=!0)),e.FG||(e.A34=!1),e.OE(),e.FG=t,e.RefNode=null,e.WO=null}}class R7 extends A2T{constructor(e){super(e),this.AF="vbar"}G1(){return new A00(this)}}class R8 extends A2T{constructor(e){super(e),this.AF="hbar"}G1(){return new A01(this)}}class PL extends WT{constructor(e,t){super(e),this.AF=t||"scatter",this.PD="markerbg",this.bPoly=!1,this.I0=.5}G1(){return new A6E(this)}parse(){var e=this;e.BP=e.NM(),e.C1=e.BP[0],e.A0=e.BP[1],e.AE=e.BP[1],e.B7=e.BP[2],e.BW=e.BP[2],e.ND(),super.parse(),e.assign_a([["alpha-area","I0","f",0,1]]),e.B2=e.C.BI(e.BT("k")[0]),e.CL=e.C.BI(e.BT("v")[0])}paint(){var e,t,i,a=this;if(super.paint(),a.KK=a.CN("bl",0),a._oCtxNode=ZC.Q.E9(a.CN("bl",0),a.G.AB),!a.IE||a.C.AJ["3d"]||"fast"!==a.A1E||0!==a.S9)a.OE(!0);else{var n=null,l=a.B2,r=a.CL;a.VU(!0);var o=new DW(a.A);for(o.Z=a.CN("bl",1),o.C7=a.CN("bl",0),o.B7=a.BP[3],o.BW=a.BP[3],o.A0=a.BP[2],"bubble"===a.AF||"hbubble"===a.AF?o.AE=a.BP[1]:o.AE=a.BP[2],o.append(a.A2.o),o.parse(),t=0;t<=a.R.length;t++)if(n=a.FM(t)){var s=!1;l.CP?ZC.DR(n.iX,r.iX+(r.AW?r.BV:r.AA)-1,r.iX+r.I-(r.AW?r.AA:r.BV)+1)&&ZC.DR(n.iY,l.iY+(l.AW?l.BV:l.AA)-1,l.iY+l.F-(l.AW?l.AA:l.BV)+1)&&(s=!0):ZC.DR(n.iX,l.iX+(l.AW?l.BV:l.AA)-1,l.iX+l.I-(l.AW?l.AA:l.BV)+1)&&ZC.DR(n.iY,r.iY+(r.AW?r.AA:r.BV)-1,r.iY+r.F-(r.AW?r.BV:r.AA)+1)&&(s=!0),s&&(n.JJ=!0,a.R[t].JJ=!0,o.K=n.K+"-marker",o.iX=n.iX,o.iY=n.iY,"circle"!==o.DP&&o.parse(),"none"!==a.J5&&(a.C.J0[a.L]||a.C.KO)&&(o.o={},o.OV={},a.C.CG["p"+a.L]&&a.C.CG["p"+a.L]["n"+t]?o.OV=a.PW?a.PW.o:{}:"none"!==a.OC&&("plot"===a.OC&&a.C.J0[t]||"graph"===a.OC&&a.C.KO)&&(o.OV=a.PU?a.PU.o:{}),o.B7=a.BP[3],o.BW=a.BP[3],o.A0=a.BP[2],"bubble"===a.AF||"hbubble"===a.AF?o.AE=a.BP[1]:o.AE=a.BP[2],o.append(a.A2.o),o.parse()),o.paint())}}if(a.bPoly){for(e=[],t=0,i=a.R.length;t<i;t++)e.push([a.R[t].iX,a.R[t].iY]);e.length&&e.push(e[0]);var C=new DW(a);C.copy(a),C.C5=a.I0,C.CY=!0,C.LE=!0,C.AZ=0,C.AU=0,C.EW=0,C.GA=0,C.Z=a.KK,C.E=e,C.ZN(),C.K=a.K+"-area",C.paint(),a.CY=!1,ZC.CR.setup(a._oCtxNode,a),ZC.CR.paint(a._oCtxNode,a,e)}}}class SC extends WT{constructor(e,t){super(e),this.AF=t||"bubble",this.WN=null,this.WK=null,this.A1V=1,this.JT=1,this.AA4="area",this.PD="markerbg"}G1(){return new A78(this)}parse(){var e=this;e.BP=e.NM(),e.C1=e.BP[0],e.A0=e.BP[2],e.AE=e.BP[1],e.B7=e.BP[2],e.BW=e.BP[2],e.ND(),super.parse(),e.assign_a([["min-size","WN","i"],["max-size","WK","i"],["scaling","AA4"],["sizing-group","A1V","i"],["size-factor","JT","f"]]),e.B2=e.C.BI(e.BT("k")[0]),e.CL=e.C.BI(e.BT("v")[0]),null===ZC._n_(e.WN)&&(e.WN=15),null===ZC._n_(e.WK)&&(e.WK=.75*Math.min(e.B2.AA,e.B2.BV,e.CL.AA,e.CL.BV),e.WK=ZC.BQ(25,ZC.CX(50,e.WK)))}getSize(e){var t,i=this,a=null;switch(e=ZC.BQ(e,i.RV),t=i.X8===i.RV?e-i.RV:(e-i.RV)/(i.X8-i.RV),i.AA4){case"radius":a=i.WN+i.JT*(i.WK-i.WN)*t;break;case"area":case"sqrt":a=i.WN+i.JT*(i.WK-i.WN)*Math.sqrt(t)}return ZC.BQ(i.WN,a)}paint(){var e=this;if(super.paint(),e.KK=e.CN("bl",0),null!==ZC._n_(e.WK)){e.X8=-ZC.MAX,e.RV=ZC.MAX;for(var t=e.A.A4,i=0,a=t.length;i<a;i++)if(t[i].A1V===e.A1V)for(var n=0,l=t[i].R.length;n<l;n++)e.X8=ZC.BQ(e.X8,ZC._a_(t[i].R[n].SX)),e.RV=ZC.CX(e.RV,ZC._a_(t[i].R[n].SX))}e.OE(!0)}}class WU extends IL{constructor(e){super(e);var t=this;t.AF="pie",t.BN=["scale",ZC._[52],"scale-r"],t.Q6=0,t.DG=0,t.U3=!1,t.A8B=!0,t.C2=null,t.PD="bg"}G1(){return new A9A(this)}parse(){var e,t,i=this;null===ZC._n_(i.o[ZC._[17]])&&(i.o[ZC._[17]]={}),"ring"!==i.A.A.o.type&&"ring3d"!==i.A.A.o.type||(i.Q6=.35),i.BP=i.NM(),i.C1=i.BP[0],i.A0=i.BP[1],i.AE=i.BP[2],i.BW=i.BP[0],i.B7=i.BP[0],i.ND(),super.parse(),i.C2=new D0(i),i.C.A.B8.load(i.C2.o,["graph.plot.value-box.connector",i.AF+".plot.value-box.connector"]),null!==ZC._n_(e=i.C.o.plot)&&null!==ZC._n_(e[ZC._[17]])&&null!==ZC._n_(t=e[ZC._[17]].connector)&&i.C2.append(t),i.C2.append(i.o[ZC._[17]].connector),i.assign_a([["offset","DS","fp"],[ZC._[8],"Q6","fp"],["show-zero","U3","b"],["detach","A8B","b"],["ref-angle","DG","i"]]),i.DG%=360;for(var a=0,n=i.R.length;a<n;a++)i.R[a]&&(i.R[a].CM=i.Q6,i.R[a]&&(i.C.D["plot"+i.L+".visible"]||"hide"===i.C.getToggleAction())&&(null===ZC._n_(i.A.KT[a])&&(i.A.KT[a]=0),i.A.KT[a]+=ZC._f_(i.R[a].AD)))}paint(){var e=this;super.paint(),e.KK=e.CN("bl",0),e.OE(!0)}}class U9 extends IL{constructor(e){super(e);var t=this;t.AF="nestedpie",t.BN=["scale"],t.UH=0,t.SW=0,t.DG=0,t.C2=null,t.PD="bg",t.aBandWidths=null}G1(){return new A4X(this)}parse(){var e,t,i=this;i.BP=i.NM(),i.C1=i.BP[0],i.A0=i.BP[1],i.AE=i.BP[2],i.BW=i.BP[0],i.B7=i.BP[0],i.ND(),super.parse(),i.U&&(i.C2=new D0(i),i.C.A.B8.load(i.C2.o,["graph.plot.value-box.connector",i.AF+".plot.value-box.connector"]),null!==ZC._n_(e=i.C.o.plot)&&null!==ZC._n_(e[ZC._[17]])&&null!==ZC._n_(t=e[ZC._[17]].connector)&&i.C2.append(t),i.C2.append(i.o[ZC._[17]].connector)),i.assign_a([["slice-start","UH","fp"],["offset","UH","fp"],[ZC._[8],"UH","fp"],["band-space","SW","fp"],["ref-angle","DG","i"],["band-widths","aBandWidths"]]),i.DG%=360;for(var a=0,n=i.R.length;a<n;a++)i.R[a]&&(i.C.D["plot"+i.L+".visible"]||"hide"===i.C.getToggleAction())&&(null===ZC._n_(i.A.KT[a])&&(i.A.KT[a]=0),i.A.KT[a]+=ZC._f_(i.R[a].AD))}paint(){var e=this;super.paint(),e.KK=e.CN("bl",0),e.OE(!0)}}class XV extends IL{constructor(e){super(e);var t=this;t.AF="radar",t.T1=3,t.BN=["scale-k",ZC._[52],"scale"],t.I0=.5,t.CV="line",t.A6N=null,t.XS=!1,t.E=[],t.AH=[]}G1(){return new A7Q(this)}parse(){var e=this;e.BP=e.NM(),e.C1=e.BP[0],e.B7=e.BP[1],e.A0=e.BP[3],e.AE=e.BP[3],e.ND(),super.parse(),e.applyRGBA(),e.assign_a([["active-area","XS","b"],["alpha-area","I0","f",0,1],["angle-space","A6N","f"]]),e.B2=e.C.BI("scale-k"),e.CL=e.C.BI(ZC._[52]),"range"===e.CV&&(e.A1E="normal",e.IE=!1)}paint(){var e=this;super.paint(),e.B2.V.length===e.V.length&&-1===ZC.AV(e.V,null)||(e.A1E="normal",e.IE=!1),e.KK=ZC.AK(e.C.K+"-plot-"+e.L+"-bl-0-c"),e.A5D=ZC.Q.E9(e.CN("bl",0),e.G.AB),e.QM=ZC.Q.E9(e.CN("bl",2),e.G.AB),e.OE(!0)}}class A5V extends A2T{constructor(e){super(e);var t=this;t.F4=.2,t.CC=.28,t.CS=.28,t.EZ=0,t.FK=null,t.A39=[],t.QB=[],t.A9Y=!0,t.PD="bg"}A2Y(e){var t;if("goal"===e){if(null!==ZC._n_(t=this.FK.o.tooltip))return t;if(null!==ZC._n_(t=this.FK.o["tooltip-text"]))return{text:t}}return{}}parse(){var e,t=this;if(t.BP=t.NM(),super.parse(),null!==ZC._n_(t.A39=t.o.goals))for(var i=0,a=t.A39.length;i<a;i++)null!==ZC._n_(t.A39[i])?"string"==typeof t.A39[i]?t.QB[i]=ZC.AV(t.CL.JP,t.A39[i]):t.QB[i]=ZC._f_(t.A39[i]):t.QB[i]=null;t.FK=new I2(t),t.FK.copy(t),t.FK.append({"background-color":t.BP[3]}),t.FK.o["tooltip-text"]="%node-goal-value",t.G.B8.load(t.FK.o,["("+t.AF+").plot.goal"],!0,!0),null!==ZC._n_(e=t.o.goal)&&t.FK.append(e),t.FK.parse()}}class TT extends A5V{constructor(e){super(e),this.AF="vbullet"}G1(){return new A6F(this)}}class TU extends A5V{constructor(e){super(e),this.AF="hbullet"}G1(){return new A6G(this)}}class XW extends WT{constructor(e){super(e);var t=this;t.AF="piano",t.CV="alpha",t.A7I="plot-max",t.QJ=.2,t.VB=1,t.PD="bg"}G1(){return new A7R(this)}parse(){var e=this;e.BP=e.NM(),e.C1=e.BP[0],e.B7=e.BP[1],e.BW=e.BP[1],e.A0=e.BP[2],e.AE=e.BP[1],e.ND(),super.parse(),e.assign_a([["min-ratio","QJ","f",0,1],["max-ratio","VB","f",0,1],["reference","A7I",""]]),e.QJ>=e.VB&&(e.QJ=.2,e.VB=1),e.B2=e.C.BI(e.BT("k")[0]),e.CL=e.C.BI(e.BT("v")[0])}paint(){var e=this;super.paint(),e.KK=e.CN("bl",0),e.A5E=e.A45=-ZC.MAX,e.YQ=e.X4=ZC.MAX,e.A6O=e.A5F=0;for(var t=0,i=e.A.A4.length;t<i;t++)for(var a=e.A.A4[t],n=0,l=a.R.length;n<l;n++)if(a.R[n]){var r=ZC._f_(a.R[n].AD);a.L===e.L&&(e.A5E=ZC.BQ(e.A5E,r),e.YQ=ZC.CX(e.YQ,r),e.A6O+=r),e.A45=ZC.BQ(e.A45,r),e.X4=ZC.CX(e.X4,r),e.A5F+=r}e.OE()}}class WV extends WT{constructor(e){super(e);var t=this;t.L8=.1,t.OK=.1,t.M5=0,t.A31="dynamic",t.P5=[],t.W4=[],t.PD="bg"}parse(){var e,t,i,a,n=this;if(n.BP=n.NM(),n.C1=n.BP[0],n.B7=n.BP[1],n.BW=n.BP[1],n.A0=n.BP[2],n.AE=n.BP[1],n.ND(),super.parse(),n.assign_a([["start-width","A31"],["min-exit","M5","fp"],["space-entry","L8","fp"],["offset","L8","fp"],["offset","OK","fp"]]),null!==ZC._n_(i=n.o.entry))for(i instanceof Array||(i=[i]),e=0,t=i.length;e<t;e++){var l=new DW(n);l.o=i[e],l.parse(),n.P5.push(l)}if(null!==ZC._n_(a=n.o.exit))for(a instanceof Array||(a=[a]),e=0,t=a.length;e<t;e++){var r=new DW(n);r.o=a[e],r.parse(),n.W4.push(r)}n.B2=n.C.BI(n.BT("k")[0]),n.CL=n.C.BI(n.BT("v")[0])}paint(){var e=this;super.paint(),e.KK=e.CN("bl",0),e.OE()}}class VR extends WV{constructor(e){super(e),this.AF="vfunnel"}G1(){return new A6H(this)}}class VS extends WV{constructor(e){super(e),this.AF="hfunnel"}G1(){return new A6I(this)}}class W0 extends A2T{constructor(e){super(e);var t=this;t.AF="stock",t.CV="candlestick",t.N4={size:0},t.PD="bg"}G1(){return new A7S(this)}parse(){super.parse()}paint(){super.paint(),this.paintPreview()}paintPreview(){var e=this,t=e.C.BI(e.BT("v")[0]),i=t.AN(t.H9);if(e.C.BA&&e.C.BA.IO&&e.R1){for(var a=e.C.P,n=e.C.BA,l=[],r=[],o=!0,s=0,C=e.R.length;s<C;s++)if(null!==ZC._n_(e.R[s])&&null!==ZC._n_(e.R[s].DL[2])){var A=t.AN(e.R[s].DL[2]);o&&(r.push([e.R[s].iX,i]),o=!1),l.push([e.R[s].iX,A]),r.push([e.R[s].iX,A])}r.length&&r.push([r[r.length-1][0],i]);var Z=e.mapPointsToPreview(r),c=e.o.preview||{};if("area"===(c.type||"area")){var p=new DW(e.A);p.copy(e),p.append({"background-color":e.BW,"alpha-area":.2}),p.append(c),p.parse(),p.CY=!0,p.LE=!0,p.AZ=0,p.AU=0,p.EW=0,p.GA=0,p.C5=ZC._f_(p.o["alpha-area"]),p.CZ=[a.iX,a.iY,a.iX+a.I,a.iY+a.F],p.K=e.K+"-area-preview",p.Z=n.Z,p.E=Z,p.paint()}var u=e.mapPointsToPreview(l),h=ZC.Q.E9(n.Z,e.G.AB),_=new D0(e);_.copy(e),_.append({"line-color":e.BW,"line-width":1}),_.append(c),_.parse(),ZC.CR.paint(h,_,u,null,3)}}}class XX extends IL{constructor(e){super(e);var t=this;t.AF="gauge",t.T1=3,t.BN=["scale-r",ZC._[52],"scale"],t.I0=.5,t.I1=[10,0,0,0,0],t.PD="bg"}G1(){return new A7T(this)}parse(){var e,t=this;t.BP=t.NM(),t.C1=t.BP[0],t.B7=t.BP[1],t.A0=t.BP[3],t.AE=t.BP[3],t.ND(),super.parse(),t.assign_a([["alpha-area","I0","f",0,1],["indicator","I1"]]),null!==ZC._n_(e=t.o.csize)&&(t.I1[0]=ZC._i_(e)),t.I1=[ZC._f_(t.I1[0]||"10"),ZC._f_(t.I1[1]||"0"),ZC._f_(t.I1[2]||"0"),ZC._f_(t.I1[3]||"0"),ZC._f_(t.I1[4]||"0")]}paint(){var e=this;super.paint(),e.KK=e.CN("bl",0),e.OE(!0)}}class UI extends WT{constructor(e){super(e);var t=this;t.AF="range",t.Y=1,t.CV="segmented",t.T1=3,t.I0=.5}G1(){return new A7U(this)}parse(){var e=this;e.BP=e.NM(),e.C1=e.BP[0],e.B7=e.BP[1],e.A0=e.BP[0],e.AE=e.BP[1],e.ND(),super.parse(),e.applyRGBA(),e.YX("alpha-area","I0","f",0,1),e.B2=e.C.BI(e.BT("k")[0]),e.CL=e.C.BI(e.BT("v")[0])}OE(){var e,t,i=this,a=i.P0;i.VU(!1);var n=i.C.P;i.Y=1;var l=a?n.F:n.I;i.B2.EF||!i.R0&&5*(i.B2.A1-i.B2.W)>l&&(i.Y=ZC._i_(5*(i.B2.A1-i.B2.W)/l));var r=i.B2.EF;if(r&&i.QF[0]===ZC.MAX&&i.QF[1]===-ZC.MAX&&(r=!1),r)for(e=0,t=i.R.length;e<t;e++)i.R[e]&&ZC.DR(i.R[e].BU,i.B2.V[i.B2.W],i.B2.V[i.B2.A1])&&(i.R[e].Z=i.KK,i.R[e].MW="min",i.R[e].paint(),i.R[e].MW="max",i.R[e].paint(),delete i.R[e].D["intersect.index"]);else for(e=i.B2.W;e<=i.B2.A1;e+=i.Y)i.R[e]&&(i.R[e].MW="min",i.R[e].paint(),i.R[e].MW="max",i.R[e].paint(),delete i.R[e].D["intersect.index"])}paint(){var e=this;super.paint(),e.KK=e.CN("bl",0),e.A5D=ZC.Q.E9(e.CN("bl",1),e.G.AB),e.QM=ZC.Q.E9(e.CN("bl",2),e.G.AB),e.OE(),e.E=null,e.D5=null,e.A0A=null,e.SG=null}}class XY extends WU{constructor(e){super(e);this.AF="pie3d",this.NV=-1}parse(){super.parse(),this.assign_a([["thickness","NV","ia"]])}G1(){return new A7Z(this)}}class V3 extends R7{constructor(e){super(e),this.AF="vbar3d"}G1(){return new A7D(this)}parse(){var e=this;super.parse(),null===ZC._n_(e.o[ZC._[61]])&&(e.BW=e.BP[0]),null===ZC._n_(e.o["line-color"])&&(e.B7=e.BP[0])}paint(){super.paint(),this.sharedZScale()}}class WW extends R8{constructor(e){super(e),this.AF="hbar3d"}G1(){return new A7E(this)}parse(){var e=this;super.parse(),null===ZC._n_(e.o[ZC._[61]])&&(e.BW=e.BP[0]),null===ZC._n_(e.o["line-color"])&&(e.B7=e.BP[0])}}class V4 extends R5{constructor(e){super(e),this.AF="line3d"}G1(){return new A7F(this)}parse(){var e=this;super.parse(),null===ZC._n_(e.o[ZC._[61]])&&(e.BW=e.BP[1])}paint(){super.paint(),this.sharedZScale()}}class V5 extends R6{constructor(e){super(e),this.AF="area3d"}G1(){return new A7G(this)}parse(){var e=this;super.parse(),null===ZC._n_(e.o[ZC._[61]])&&(e.BW=e.BP[1])}paint(){super.paint(),this.sharedZScale()}}class ZJ extends IL{constructor(e){super(e);var t=this;t.AF="venn",t.AC9=[],t.AA3=[],t.BN=["scale"],t.PD="bg"}G1(){return new A8S(this)}parse(){var e=this;e.BP=e.NM(),e.C1=e.BP[0],e.BW=e.BP[1],e.A0=e.BP[3],e.AE=e.BP[3],e.ND(),super.parse(),e.assign_a([["join","AC9"],["share","AA3"]])}paint(){var e=this;super.paint(),e.KK=e.CN("bl",0),e.OE(!0)}}class MH extends DT{constructor(e){super(e);var t=this;t.C=e.A.A,t.G=t.C.A,t.L=-1,t.AD=null,t.DL=[],t.CQ=null,t.BU=null,t.CI=null,t.JR=[],t.IO=!1,t.QA=!0,t.O=t,t.JJ=!1,t.A2L=!1}GN(e,t){super.GN(this.A,e,t,this.LL(null,!1),this.A.MR)}OP(){return[this.iX,this.iY,{reference:this,center:!0}]}A8W(){return[this.iX,this.iY]}getTooltipPosition(e,t,i){var a,n,l,r,o=this;switch(o.paint(!0),a=o.iX,n=o.iY,l=o.I,r=o.F,t){case"center":a=o.iX+l/2,n=o.iY+r/2;break;case"top":a=o.iX+l/2,n=o.iY,n=i?n-i:n;break;case"bottom":a=o.iX+l/2,n=o.iY+r,n=i?n+i:n;break;case"left":a=o.iX,n=o.iY+r/2,a=i?a-i:a;break;case"right":a=o.iX+l,n=o.iY+r/2,a=i?a+i:a;break;default:a+=o.BL,n+=o.BH}return{x:a,y:n}}setNodeData(e){var t=this;for(var i in e)e.hasOwnProperty(i)&&(t.A.IE?t.A.R[t.L][i]=e[i]:t.D[i]=e[i])}getNodeData(e){return this.A.IE?this.A.R[this.L][e]:this.D[e]}XG(){var e,t,i=this,a=i.C.D,n=i.A.L;null===ZC._n_(a.update)&&(a.update={});var l=a.update,r=""+i.AD,o=i.A.LX();for(ZC.PN(r)&&ZC._f_(r)<0&&"currency"===o.negation&&(r=ZC._a_(ZC._f_(r))),o.utc=i.C.UX,o.timezone=i.C.NI,r=ZC.AP.G3(r,o,i.A),l["plot-"+n+"-value"]=r,l["plot-"+n+"-value-0"]=r,e=0,t=i.DL.length;e<t;e++)l["plot-"+n+"-value-"+(e+1)]=i.DL[e];for(l["plot-value"]=l["plot-value-0"]=r,e=0,t=i.DL.length;e<t;e++)l["plot-value-"+(e+1)]=i.DL[e];for(var s in i.A.KJ){var C=null;C="object"==typeof i.A.KJ[s]&&i.A.KJ[s].length?i.A.KJ[s][i.L]:i.A.KJ[s],l["plot-"+n+"-data-"+s]=C}}S1(){var e,t,i=this,a=i.A.B2,n=i.A.CL,l=[a.W,a.A1,n.W,n.A1];if(i.A.IE&&(i.CQ=i.A.R[i.L].CQ),i.JR!==l){a.CP?(null!==i.BU?i.iY=a.AN(i.BU):i.iY=a.H4(i.L),i.A.CA&&"100%"===i.A.KX?i.A.A.F9[i.L]["%total-"+i.A.DY]>0?i.iX=n.AN(100*i.CQ/i.A.A.F9[i.L]["%total-"+i.A.DY]):i.iX=n.AN(100*i.CQ):i.iX=n.AN(i.CQ+0)):(null!==i.BU?i.iX=a.AN(i.BU):i.A.M1?"bar"===i.A.sMetaType?i.iX=a.H4(i.A.RH):i.iX=a.H4(i.A.RH)+i.A.RZ+i.L*(a.AC-2*i.A.RZ)/(i.A.R.length-1)-a.AC/2:i.iX=a.H4(i.L),i.A.CA&&"100%"===i.A.KX?i.A.A.F9[i.L]["%total-"+i.A.DY]>0?i.iY=n.AN(100*i.CQ/i.A.A.F9[i.L]["%total-"+i.A.DY]):i.iY=n.AN(100*i.CQ):i.iY=n.AN(i.CQ+0)),i.A.IE&&(i.A.R[i.L].iX=i.iX,i.A.R[i.L].iY=i.iY),i.JR=l}i.IO||(0!==i.A.E5.length||-1===ZC.AV(["line","area","vbar","hbar","line3d","area3d","vbar3d","hbar3d"],i.A.AF)||i.A.o.override?ZC.A5.browser.mozilla?(i.copy(i.A),i.E5=i.A.E5,i.DC(),i.parse(!1),i.O=i):i.A.o.override?(i.copy(i.A),i.E5=i.A.E5,i.DC(),i.parse(!1),i.O=i):(e=i.A9K(i.A.E5),null===ZC._n_(t=i.A.A6L[e])?(i.copy(i.A),i.E5=i.A.E5,i.DC(),i.parse(!1),i.O=i,i.A.A6L[e]=i):i.O=t):i.O=i.A,i.A.o.override&&(i.O.D.plotidx=i.A.L,i.O.D.nodeidx=i.L,i.O.parse(!1)),i.IO=!0)}HC(){var e,t=this;if(t.o[ZC._[9]]instanceof Array&&(t.CI=t.o[ZC._[9]].join(" "),"string"==typeof t.o[ZC._[9]][0]?-1!==(e=ZC.AV(t.A.B2.IX,t.o[ZC._[9]][0]))?t.BU=e:(t.A.B2.IX.push(t.o[ZC._[9]][0]),t.BU=t.A.B2.IX.length-1):t.BU=parseFloat(t.o[ZC._[9]][0]),"string"==typeof t.o[ZC._[9]][1]?-1!==(e=ZC.AV(t.A.CL.JP,t.o[ZC._[9]][1]))?t.AD=e:(t.A.CL.JP.push(t.o[ZC._[9]][1]),t.AD=t.A.CL.JP.length-1):t.AD=parseFloat(t.o[ZC._[9]][1]),null!==t.BU&&t.A.TG(t.BU,t.L),t.A.Z7>0&&t.o[ZC._[9]].length>t.A.Z7))for(var i=t.o[ZC._[9]].length-t.A.Z7;i<t.o[ZC._[9]].length;i++)t.DL.push(t.o[ZC._[9]][i])}parse(e){var t=this;if(t.D.plotidx=t.A.L,t.D.nodeidx=t.L,t.K=t.A.K+"-node-"+t.L,null===ZC._n_(e)&&(e=!0),e){if(t.o[ZC._[9]]instanceof Array||t.A.A9Y)t.HC();else if(t.CI=t.o[ZC._[9]],"string"==typeof t.o[ZC._[9]]){var i=ZC.AV(t.A.CL.JP,t.o[ZC._[9]]);-1!==i?t.AD=i:(t.A.CL.JP.push(t.o[ZC._[9]]),t.AD=t.A.CL.JP.length-1)}else t.AD=t.o[ZC._[9]];null===t.CQ&&(t.CQ=t.AD)}else super.parse()}J2(e){return this.F0(e,{})}getFormatValue(){return this.AD}F0(AT,EQ,M0,bUrl){var s=this,H,CI,BE,i,A6,D3,oRE;typeof M0===ZC._[31]&&(M0=!1);var oPPI=s.A.JY,oPS=s.A.A,EX,PQ;if(!bUrl&&"javascript:"===AT.substring(0,11))try{var ED=AT.replace("javascript:","").replace("()","");eval(ED)&&(H=0===s.DL.length?s.AD:[s.AD].concat(s.DL),AT=eval(ED).call(s,H,{nodeindex:s.L,plotindex:s.A.L,plotid:s.A.H6,nodeinfo:s.LL(null,!1),plotinfo:s.A.TF()})||AT)}catch(e){}if(AT+="",s.A.A7J){for(EX in CI=s.getFormatValue(),null!==ZC._n_(s.A.CL.JP[CI])&&s.A2L&&(CI=s.A.CL.JP[CI]),AT=AT.replace(/%node-numeric-value/g,s.AD).replace(/%node-value/g,CI).replace(/%previous-node-value/g,s.A.R[s.L-1]?s.A.R[s.L-1].AD:null).replace(/%next-node-value/g,s.A.R[s.L+1]?s.A.R[s.L+1].AD:null).replace(/%node-index/g,s.L).replace(/%plot-text/g,s.A.AT).replace(/%plot-index/g,s.A.L).replace(/%plot-count/g,oPS.A4.length).replace(/%p/g,s.A.L).replace(/%P/g,oPS.A4.length).replace(/%v/g,CI).replace(/%V/g,s.AD).replace(/%i/g,s.L).replace(/%n/g,s.L),s.A.KJ)PQ="",PQ=s.A.KJ[EX]instanceof Array?null!==s.A.KJ[EX][s.L]?s.A.KJ[EX][s.L]:"":null!==s.A.KJ[EX]?s.A.KJ[EX]:"",oRE=new RegExp("%data-"+EX,"g"),AT=AT.replace(oRE,PQ);return AT}var PX="",SB="",RY="",WQ="",S=s.C.BI(s.A.BT("k")[0]),X=s.C.BI(s.A.BT("v")[0]);S&&(null!==s.BU?PX=SB=RY=s.BU:(null!==ZC._n_(S.V[s.L])&&(PX=SB=RY=S.V[s.L]),null!==ZC._n_(S.BY[s.L])&&(RY=SB=S.BY[s.L]))),null!==ZC._n_(H=s.A.B2.IX[PX])&&"number"==typeof PX&&(PX=H),null!==ZC._n_(H=s.A.B2.IX[SB])&&"number"==typeof SB&&(SB=H),null!==ZC._n_(H=s.A.B2.IX[RY])&&"number"==typeof RY&&(RY=H),WQ=null!==ZC._n_(s.A.AT)?s.A.AT:"Series "+(s.A.L+1),s.A.M1&&s.A.A.A4[s.L]&&(WQ=s.A.A.A4[s.L].AT||"Series "+s.L);var U7=(WQ+"").split(/\s+/),A6U=PX;S&&(BE=S.LX(),EQ&&EQ[ZC._[68]]&&ZC._cp_({"transform-date":!0,"transform-date-format":EQ[ZC._[67]]},BE),BE.utc=s.C.UX,BE.timezone=s.C.NI,RY=SB=ZC.AP.G3(PX,BE,S,!0),null===ZC._n_(S.BY[s.BU])&&null===ZC._n_(S.BY[s.L])||(SB=RY=S.BY[s.BU]||S.BY[s.L]),BE[ZC._[68]]&&(RY=ZC.AP.G3(RY,BE,S,!0)));var A5O=(SB+"").split(/\s+/),A74=(RY+"").split(/\s+/),A2P=(PX+"").split(/\s+/);CI=s.getFormatValue(),s.A.CL&&null!==ZC._n_(s.A.CL.JP[CI])&&s.A2L&&(CI=s.A.CL.JP[CI]);var P1=ZC.PN(CI)&&ZC._f_(CI)<0;if(BE=s.A.LX(),ZC._cp_(EQ,BE),P1&&"currency"===BE.negation&&(CI=ZC._a_(ZC._f_(CI))),BE.utc=s.C.UX,BE.timezone=s.C.NI,CI=ZC.AP.G3(CI,BE,s.A,!(!X||!X.FI)&&X.FI),"%v"===AT&&"%vv"!==AT||"%node-value"===AT)return CI;if("%t"===AT||"%plot-text"===AT)return WQ;var CU=s.CU||[],oNode_,Z8,A6R,oPlot_,p,pLen;if(X&&X.L1){var ZB=X.LX();null===ZC._n_(ZB[ZC._[12]])&&(ZB[ZC._[12]]=0);var ABB=X.CP?X.L1(this.iX,!0,"piano"===s.A.AF):X.L1(this.iY,!0,"piano"===s.A.AF),XC=X.FC(0,ABB,ZB);CU.push(["%scale-value-value",XC],["%vv",XC]),null!==ZC._n_(H=X.BY[s.L])?CU.push(["%scale-value-label",H],["%vl",H]):CU.push(["%scale-value-label",XC],["%vl",XC])}if(X&&(-1!==AT.indexOf("%scale-value-text")||-1!==AT.indexOf("%vt")))for(-1!==(H=ZC.AV(X.V,s.AD))&&null!==ZC._n_(X.BY)&&null!==ZC._n_(X.BY[H])?CU.push(["%scale-value-text",X.BY[H]],["%vt",X.BY[H]]):CU.push(["%scale-value-text",s.AD],["%vt",s.AD]),oRE=-1!==AT.indexOf("%vt(")?new RegExp("(%vt)\\(([0-9]*)\\)"):new RegExp("(%scale-value-text)\\(([0-9]*)\\)");D3=oRE.exec(AT);)Z8="",""!==(H=D3[2])&&(A6R=ZC._i_(H),null!==ZC._n_(oPlot_=s.A.A.A4[A6R])&&(oNode_=oPlot_.FM(s.L),null!==oNode_&&(Z8=oNode_.F0(D3[1])))),AT=AT.replace(D3[0],Z8),""!==Z8&&CU.push([D3[0],Z8]);for(EX in null!==ZC._n_(s.A.M6)&&null!==ZC._n_(s.A.M6[s.L])&&CU.push(["%offset-values",s.A.M6[s.L]]),s.A.A.A21&&CU.push(["%stack-top",-1!==ZC.AV(s.A.A.A21,s.A.L)?1:0]),s.A.KJ)PQ="",PQ=s.A.KJ[EX]instanceof Array?null!==s.A.KJ[EX][s.L]?s.A.KJ[EX][s.L]:"":null!==s.A.KJ[EX]?s.A.KJ[EX]:"","number"==typeof PQ&&(PQ=ZC.AP.G3(PQ,BE,s.A,!(!X||!X.FI)&&X.FI)),CU.push(["%data-"+EX,PQ]);for(i=0;i<A5O.length;i++)CU.push(["%scale-key-label-"+i,A5O[i]],["%kl"+i,A5O[i]]);for(i=0;i<A74.length;i++)CU.push(["%scale-key-text-"+i,A74[i]],["%kt"+i,A74[i]]);for(i=0;i<A2P.length;i++)CU.push(["%scale-key-value-"+i,A2P[i]],["%kv"+i,A2P[i]],["%k"+i,A2P[i]]);for(p=0,pLen=oPS.A4.length;p<pLen;p++)null!==ZC._n_(oPS.A4[p].R[s.L])&&CU.push(["%plot-"+p+"-value",oPS.A4[p].R[s.L].AD]);CU.push(["%scale-key-label",SB],["%scale-key-text",RY],["%scale-key-value",PX],["%scale-key-value-ts",A6U],["%kvts",A6U],["%kt",RY],["%kl",SB],["%kv",PX],["%k",PX],["%node-value",CI],["%v",CI],["%node-numeric-value",s.AD],["%previous-node-value",s.A.R[s.L-1]?s.A.R[s.L-1].AD:null],["%next-node-value",s.A.R[s.L+1]?s.A.R[s.L+1].AD:null],["%V",s.AD],["%node-index",s.L],["%node-x",s.iX],["%node-y",s.iY],["%chart-width",s.G.I],["%chart-height",s.G.F],["%i",s.L],["%n",s.L],["%node-count",s.A.R.length],["%N",s.A.R.length]);var ABZ=oPPI["%plot-sum"],A4A=ABZ+"",ABY=oPPI["%plot-average"],A4B=ABY+"",A94=ZC._f_(oPS.F9["%pstack-"+s.L+"-"+s.A.DY+"-sum"]||"0"),A5P=A94+"",ABM=ZC._f_(A94/oPS.F9["%pstack-"+s.L+"-"+s.A.DY+"-stack-length"]),A5N=String(ABM),AA5=String(oPS.F9["%pstack-"+s.L+"-"+s.A.DY+"-stack-length"]),A7M=0;null!==ZC._n_(oPS.F9)&&null!==ZC._n_(oPS.F9[s.L])&&(A7M=ZC._f_(oPS.F9[s.L]["%total-"+s.A.DY]||"0"));var A4C=A7M+"";A4A=ZC.AP.G3(A4A,BE),A4B=ZC.AP.G3(A4B,BE),A4C=ZC.AP.G3(A4C,BE),A5P=ZC.AP.G3(A5P,BE),A5N=ZC.AP.G3(A5N,BE),CU.push(["%node-error-plus",s.D["node-error-plus"]],["%node-error-minus",s.D["node-error-minus"]],["%stack-total",A5P],["%stack-average",A5N],["%stack-length",AA5],["%total",A4C],["%plot-min-index",oPPI["%plot-min-index"]],["%pmi",oPPI["%plot-min-index"]],["%plot-max-index",oPPI["%plot-max-index"]],["%pxi",oPPI["%plot-max-index"]],["%plot-min-value",oPPI["%plot-min-value"]],["%pmv",oPPI["%plot-min-value"]],["%plot-max-value",oPPI["%plot-max-value"]],["%pxv",oPPI["%plot-max-value"]],["%plot-sum",A4A],["%psum",A4A],["%plot-average",A4B],["%pavg",A4B],["%plot-values",oPPI["%plot-values"]],["%pv",oPPI["%plot-values"]]);var AA9=100*s.AD/oPPI["%plot-sum"],ZD=AA9+"";null!==ZC._n_(BE[ZC._[12]])&&(ZD=ZC.AP.G3(ZD,BE)),CU.push(["%plot-percent",ZD],["%pper",ZD]);var bNpv=!1,WP,AX,J,BZ;for(i=0,A6=CU.length;i<A6;i++)if("%npv"===CU[i][0]){bNpv=!0;break}if(!bNpv&&null!==ZC._n_(s.A.A.F9)&&null!==ZC._n_(s.A.A.F9[s.L])){var JS=100*s.AD/s.A.A.F9[s.L]["%total-"+s.A.DY],HV=JS+"";null!==ZC._n_(BE[ZC._[12]])&&(HV=ZC.AP.G3(HV,BE)),CU.push(["%node-percent-value",HV],["%npv",HV])}for(i=0;i<U7.length;i++)CU.push(["%plot-text-"+i,U7[i]],["%t"+i,U7[i]]);for(CU.push(["%plot-text",WQ],["%t",WQ],["%plot-description",s.A.Z1],["%plot-index",s.A.L],["%p",s.A.L],["%plot-count",oPS.A4.length],["%P",oPS.A4.length],["%id",s.G.K],["%graphid",s.C.K.replace(s.G.K+"-graph-","")]),-1!==AT.indexOf("%negation")&&(P1&&"currency"===BE.negation?(CU.push(["%negation","-"]),P1=!1):CU.push(["%negation",""])),CU.push(["%node-x",s.iX],["%node-y",s.iY],["%node-width",s.I],["%node-height",s.F],["%node-size",s.D["marker.size"]||1]),zingchart.DEV.SORTTOKENS&&CU.sort(ZC.A27),oRE=new RegExp("\\(([^(]+?)\\)\\(([0-9]*)\\)(\\(*)([0-9]*)(\\)*)");D3=oRE.exec(AT);){WP="";var CO=s.A.L,D7=s.L;""!==(H=D3[2])&&(CO=ZC._i_(H)),""!==(H=D3[4])&&(D7=ZC._i_(H)),null!==(J=oPS.A4[CO])&&(AX=J.FM(D7,3),null!==AX&&(WP=AX.F0(D3[1],EQ))),AT=AT.replace(D3[0],WP)}if(-1!==AT.indexOf("%prop-")){oRE=new RegExp("%prop-([a-zA-Z0-9-]+)");for(var oMap=s.getPMap();D3=oRE.exec(AT);)null!==ZC._n_(oMap[D3[1]])&&null!==ZC._n_(s[oMap[D3[1]]])&&(AT=AT.replace(D3[0],s[oMap[D3[1]]]))}if(-1!==AT.indexOf("%linecolor"))for(oRE=new RegExp("%linecolor([0-9]*)");D3=oRE.exec(AT);)""===D3[1]?(BZ=s.O||s,BZ.B7||(BZ=s.A)):BZ=oPS.A4[D3[1]],AT=AT.replace(D3[0],BZ&&BZ.B7||"#000");if(-1!==AT.indexOf("%backgroundcolor"))for(oRE=new RegExp("%backgroundcolor([0-9]*)");D3=oRE.exec(AT);)""===D3[1]?(BZ=s.O||s,BZ.B7||(BZ=s.A)):BZ=oPS.A4[D3[1]],AT="markerbg"===s.A.PD?AT.replace(D3[0],BZ&&BZ.A2&&BZ.A2.A0||"#000"):AT.replace(D3[0],BZ&&BZ.A0||"#000");if(-1!==AT.indexOf("%color"))for(oRE=new RegExp("%color([0-9]*)");D3=oRE.exec(AT);)""===D3[1]?(BZ=s.O||s,BZ.B7&&"line"!==s.A.PD||(BZ=s.A)):BZ=oPS.A4[D3[1]],AT="line"===s.A.PD?AT.replace(D3[0],BZ&&BZ.B7||"#000"):"markerbg"===s.A.PD?AT.replace(D3[0],BZ&&BZ.A2&&BZ.A2.A0||"#000"):AT.replace(D3[0],BZ&&BZ.A0||"#000");for(AT=ZC.AP.ZP(AT,this),i=0,A6=CU.length;i<A6;i++)oRE=new RegExp(CU[i][0],"g"),AT=typeof CU[i][1]===ZC._[31]?AT.replace(oRE,""):M0?AT.replace(oRE,encodeURIComponent(CU[i][1])):AT.replace(oRE,CU[i][1]);return AT=AT.replace(new RegExp("%data-([a-zA-Z0-9]+)","g"),""),P1&&"currency"===BE.negation&&(AT="-"+AT),AT}paint(){}paint_(){}JB(){return{color:this.O.A0}}KC(){return{"border-color":this.O.A0,"background-color":this.O.AE,color:this.O.C1}}A04(){return this.KC()}F8(e,t){var i,a,n,l=this;if(t||(t=1),l.A.O8&&l.A.O8.length>0&&l.A.O8.length>t-1&&l.F8(e,t+1),l.AM||"pie"===l.A.AF||"pie3d"===l.A.AF){var r,o=1===t?l.A.U:l.A.O8[t-2];if(o){if(l.A.A7K)(r=l.A.A7K).K=l.K+"-value-box-"+t,r.Z=r.C7=l.G.usc()?l.G.mc("top"):l.C.AJ["3d"]||l.G.KD?ZC.AK(l.C.K+"-plots-vb-c"):ZC.AK(l.C.K+"-plot-"+l.A.L+"-vb-c"),r.IU=l.G.usc()?ZC.AK(l.C.A.K+"-top"):ZC.AK(l.C.A.K+"-text"),r.D.plotidx=l.A.L,r.D.nodeidx=l.L,n=ZC.AP.OF(r.o,l.A.o),r.F0=function(e){return l.F0(e,n)},r.parse();else{r=new DT(l.A),o.o.rules||l.A.U.HX||(a="all",null!==ZC._n_(i=o.o.type)&&(a=i),"pie"===l.C.AF||"nestedpie"===l.C.AF||"pie3d"===l.C.AF||"all"!==a||l.A.O8&&0!==l.A.O8.length||(l.A.A7K=r)),r.append(o.o),l.appendToValueBox&&!e&&(r.parse(),r.append(l.appendToValueBox(r))),r.GO=l.C.K+"-value-box "+l.C.K+"-plot-"+l.A.L+"-value-box zc-value-box",r.K=l.K+"-value-box-"+t,r.Z=r.C7=l.G.usc()?l.G.mc("top"):l.C.AJ["3d"]||l.G.KD?ZC.AK(l.C.K+"-plots-vb-c"):ZC.AK(l.C.K+"-plot-"+l.A.L+"-vb-c"),r.IU=l.G.usc()?ZC.AK(l.C.A.K+"-top"):ZC.AK(l.C.A.K+"-text"),n=ZC.AP.OF(r.o,l.A.o),r.F0=function(e){return l.F0(e,n)};var s=l.JB(r);if(null!==ZC._n_(i=s.color)&&(r.C1=i),null!==ZC._n_(i=s[ZC._[0]])&&(r.A0=r.AE=i),r.D.plotidx=l.A.L,r.D.nodeidx=l.L,l.A.U.HX&&(l.A.U.GN(l.A.U,r,null,l.LL(null,!1)),r.parse()),r.parse(),r.J2=function(e){return l.J2(e)},r.DC()&&r.parse(),!l.A.Z6){var C=new DT(l.A);C.copy(r),l.A.Z6=C}if(a="all",null!==ZC._n_(i=o.o.type)&&(a=i),r.AM){r.AM=!1;var A=l.A.o[ZC._[17]].text||"";if("values("===a.substring(0,7)){var Z=a.substring(7,a.length).replace(")","").split(",");-1!==ZC.AV(Z,l.AD)&&(r.AM=!0)}else{var c=a.split(","),p={min:"%plot-min-value",max:"%plot-max-value",first:"%plot-min-index",last:"%plot-max-index"};for(var u in p)-1!==ZC.AV(c,u)&&(("first"!==u&&"last"!==u||l.L!==l.A.JY[p[u]])&&("min"!==u&&"max"!==u||l.AD!==l.A.JY[p[u]])||("object"==typeof A&&null!==ZC._n_(A[u])&&(r.o.text=A[u],r.parse()),r.AM=!0));-1!==ZC.AV(c,"all")&&(r.AM=!0)}}}if(l.C.D["plot"+l.A.L+".visible"]||(r.D["css-display"]="none"),e)return r;if(r.AM&&null!==ZC._n_(r.AT)&&""!==r.AT){var h=l.HG(r);r.D.positioninfo=h,r.iX=h[0],r.iY=h[1];var _={};if(-1!==r.iX&&-1!==r.iY){var d=!1;if(null!==ZC._n_(r.o.overlap)&&!ZC._b_(r.o.overlap)){_={x:r.iX,y:r.iY,width:r.I,height:r.F};for(var f=0,g=l.A.A.ZG.length;f<g;f++)if(ZC.AQ.YD(_,l.A.A.ZG[f])){d=!0;break}}d||(l.C.D["plot"+l.A.L+".visible"]||(r.D["css-display"]="none"),r.D.lbltype="vb"+l.C.L,r.paint(),r.EC(),l.A.A.ZG.push(_),!r.KD&&ZC.AK(l.G.K+"-map")&&l.A.A.HZ.push(ZC.AP.OG(l.C.K,r)))}}return r}}}setupValueBoxWH(e){if(null!==ZC._n_(e.o[ZC._[19]])){var t=ZC.IR(e.o[ZC._[19]]);t<=1&&(t=this.I*t),e.I=t}if(null!==ZC._n_(e.o[ZC._[20]])){var i=ZC.IR(e.o[ZC._[20]]);i<=1&&(i=this.I*i),e.F=i}return e}HG(e){var t,i=this,a=i.C.BI(i.A.BT("v")[0]),n=i.AD>=a.LJ&&!a.AW||i.AD<a.LJ&&a.AW?-1:1,l="auto";if(null!==ZC._n_(t=e.o[ZC._[7]])&&(l=t),"auto"===l){var r=null!==ZC._n_(i.A.R[i.L-1])?i.A.R[i.L-1].AD:i.AD,o=null!==ZC._n_(i.A.R[i.L+1])?i.A.R[i.L+1].AD:i.AD;r>=i.AD&&i.AD<=o?l="bottom":r<=i.AD&&i.AD>=o?l="top":r>=i.AD&&i.AD>=o?l=r/i.AD>i.AD/o?"bottom":"top":r<=i.AD&&i.AD<=o&&(l=i.AD/r>o/i.AD?"top":"bottom")}var s=e.I,C=e.F,A=i.iX-s/2,Z=i.iY-C/2;switch(l){case"top":Z-=n*(C/2+4);break;case"bottom":Z+=n*(C/2+4);break;case"left":A-=s/2+4;break;case"right":A+=s/2+4}return i.C.AJ["3d"]||(A=ZC.BQ(i.C.P.iX-s/2,A),A=ZC.CX(i.C.P.iX+i.C.P.I-s/2,A),Z=ZC.BQ(i.C.P.iY-C,Z),Z=ZC.CX(i.C.P.iY+i.C.P.F,Z)),null!==ZC._n_(e.o.x)&&(A=e.iX),null!==ZC._n_(e.o.y)&&(Z=e.iY),[ZC._i_(A),ZC._i_(Z)]}OU(e,t){var i,a,n,l,r,o=this;if(typeof o.A.bBS===ZC._[31]&&(o.A.bBS=-1===ZC.AV(["bubble","hbubble","scatter","hscatter"],o.A.AF)),null!==ZC._n_(o.A.o["markers-on-top"])&&(o.A.bBS=ZC._b_(o.A.o["markers-on-top"])),!o.C.OJ||!o.A.bBS){null===ZC._n_(e)&&(e=!1),null===ZC._n_(t)&&(t=!1);var s=o.C.P.D.tolerance||2;if(ZC.DR(o.iX,o.C.P.iX-s,o.C.P.iX+o.C.P.I+s)&&ZC.DR(o.iY,o.C.P.iY-s,o.C.P.iY+o.C.P.F+s)){var C=o.C.K+ZC._[34]+o.C.K+ZC._[35]+o.A.L+ZC._[6];if(-1===ZC.AV(o.G.KV,ZC._[39])&&o.A.FZ){if(o.A.YH&&!zingchart.DEV.SKIPTRACKERS){var A=o.getNodeData("points");-1!==ZC.AV(o.G.KV,ZC._[42])&&-1!==ZC.AV(["line","area"],o.A.AF)&&typeof A===ZC._[31]&&o.paint(!0),""!==(n=typeof o.D.polypoints===ZC._[31]?ZC.AQ.Q8(ZC.AQ.ZK(A,ZC.BQ(6,o.A.AZ/2)),4):ZC.AQ.Q8(A,4))&&o.A.A.HZ.push(ZC.Q.GJ("poly",o.A.E8,o.O.IZ)+'class="'+C+'" id="'+o.K+ZC._[30]+n+'" />')}if(("area"===o.A.AF||"area3d"===o.A.AF||"radar"===o.A.AF&&("area"===o.A.CV||"range"===o.A.CV))&&o.A.XS){var Z=o.getNodeData("pointsarea");""!==(n=ZC.AQ.Q8(Z,4))&&o.A.A.HZ.push(ZC.Q.GJ("poly",o.A.E8,o.A.IZ)+'class="'+C+'" id="'+o.K+'--area" coords="'+n+'" />')}}if(o.A.U||!o.A.IE||!o.A.A2.o||"none"!==o.A.A2.o.type&&(null===ZC._n_(o.A.A2.o.visible)||ZC._b_(o.A.A2.o.visible))){if(t||o.A.RG){if(o.A.HF)l=o.A.HF,"svg"!==o.G.AB&&(e?(r=new CB(o.C,o.iX-ZC.AO.E1,o.iY-ZC.AO.E2,o.A.D["z-start"]||0),l.iX=ZC._x_(r.EB[0]),l.iY=ZC._x_(r.EB[1]),o.D["3dxy"]=[l.iX,l.iY]):(l.iX=ZC._x_(o.iX),l.iY=ZC._x_(o.iY)),l.D.plotidx=o.A.L,l.D.nodeidx=o.L,l.K=o.K+"-marker",l.parse(!0));else{if(o.IE?o.A._oMarker?l=o.A._oMarker:o.A._oMarker=l=new DW(o.A):l=new DW(o.A),l.K=o.K+"-marker",l.D["p-width"]=o.A.B2.AC,l.D["p-height"]=o.A.CL.AC,o.A.bBS)l.Z=o.A.CN("fl",0),l.C7=o.A.CN("fl",0);else if(l.Z=o.A.CN("bl",1),l.C7=o.A.CN("bl",0),Object&&Object.keys&&Object.keys(o.C.CG).length>0){var c=o.C.CG["p"+o.A.L];"none"!==o.A.J5&&c&&c["n"+o.L]&&(l.Z=o.A.CN("bl",2))}e?(r=new CB(o.C,o.iX-ZC.AO.E1,o.iY-ZC.AO.E2,o.A.D["z-start"]||0),l.iX=ZC._x_(r.EB[0]),l.iY=ZC._x_(r.EB[1]),o.D["3dxy"]=[l.iX,l.iY]):(l.iX=ZC._x_(o.iX),l.iY=ZC._x_(o.iY)),l.B7=o.A.BP[3],l.BW=o.A.BP[3],l.A0=o.A.BP[2],"bubble"===o.A.AF||"hbubble"===o.A.AF?l.AE=o.A.BP[1]:l.AE=o.A.BP[2],l.append(o.A.A2.o),null!==ZC._n_(o.D["marker.size"])&&(l.AI=o.D["marker.size"]),l.D.plotidx=o.A.L,l.D.nodeidx=o.L,"none"!==o.A.J5&&(o.C.J0[o.A.L]||o.C.KO)&&(o.C.CG["p"+o.A.L]&&o.C.CG["p"+o.A.L]["n"+o.L]?l.OV=o.A.PW?o.A.PW.o:{}:"none"!==o.A.OC&&("plot"===o.A.OC&&o.C.J0[o.A.L]||"graph"===o.A.OC&&o.C.KO)&&(l.OV=o.A.PU?o.A.PU.o:{})),null!==ZC._n_(i=o.A.o.marker)&&null!==ZC._n_(i.styles)&&null!==ZC._n_(a=i.styles[o.L])&&("string"==typeof a?l.append({"background-color":ZC.AP.RB(a,20),"line-color":ZC.AP.JQ(a,20),"border-color":ZC.AP.JQ(a,20)}):l.append(a)),l.parse(),l.J2=function(e){return o.J2(e)},l.DC()&&l.parse()}if(o.D["marker.size"]=ZC.BQ(2.02,o.D["marker.size"]||l.AI),l.DI=C,!(e||ZC.DR(l.iX,o.C.P.iX-2,o.C.P.iX+o.C.P.I+2)&&ZC.DR(l.iY,o.C.P.iY-2,o.C.P.iY+o.C.P.F+2)))return;if(l.HX&&(o.A.Z5=!1,l.GN(l,l,null,o.LL(null,!1)),l.parse()),o.NH=l,l.AM&&"none"!==l.AF){var p=function(){if(o.A.bBS||o.MU(ZC.Q.E9(o.A.CN("bl",0),o.G.AB)),o.D["marker.type"]=l.DP,o.A.FZ&&-1===ZC.AV(o.G.KV,ZC._[40])&&!zingchart.DEV.SKIPTRACKERS){var e=o.D["3dxy"]?o.D["3dxy"][0]:o.iX,t=o.D["3dxy"]?o.D["3dxy"][1]:o.iY,i=parseInt(e+l.BL+ZC.MAPTX,10),a=parseInt(t+l.BH+ZC.MAPTX,10),n=parseInt(ZC.BQ(ZC.mobile?6:3,o.D["marker.size"]+1)*(ZC.mobile?1.25:1.05),10),r=!0;if(typeof o.A.aLastMarkerXY!==ZC._[31])Math.sqrt((i-o.A.aLastMarkerXY[0])*(i-o.A.aLastMarkerXY[0])+(a-o.A.aLastMarkerXY[1])*(a-o.A.aLastMarkerXY[1]))<zingchart.DEV.MINTRACKERDIFF&&(r=!1);else o.A.aLastMarkerXY=[i,a];r&&(o.A.aLastMarkerXY=[i,a],-1!==ZC.AV(["pie","square","rect","rectangle"],l.DP)?o.A.A.HZ.push(ZC.Q.GJ("poly",o.A.E8,o.A.IZ)+'class="'+C+'" id="'+o.K+"--marker"+ZC._[30]+l.F1()+'" />'):o.A.A.HZ.push(ZC.Q.GJ("circle",o.A.E8,o.A.IZ)+'class="'+C+'" id="'+o.K+"--marker"+ZC._[30]+i+","+a+","+n+'" />'))}if(o.A.U&&(o.A.D.vboxid=o.K,o.F8()),!o.A.bBS&&o.C.BA&&o.C.BA.IO&&o.A.R1&&o.C.BA.AM){var s=o.C.P,A=o.C.BA,Z=A.AR,c=o.A.HF||l,p=new DW(o.A);p.copy(c);var u=(o.iX-s.iX)/s.I,h=(o.iY-s.iY)/s.F,_=Math.min(Z.F/s.F,Z.I/s.I);p.iX=Z.iX+Z.AU+u*(Z.I-2*Z.AU),p.iY=Z.iY+Z.AU+h*(Z.F-2*Z.AU),p.K=o.K+"-marker-preview",p.DI=o.A.K+"-preview";var d=c.AI;null!==ZC._n_(o.D["marker.size"])&&(d=o.D["marker.size"]),p.AI=ZC.BQ(2.02,.9*_*d),p.Z=p.C7=A.Z,p.parse(),p.paint()}},u=!1;if((!o.A.bBS||"radar"===o.A.AF&&"dots"===o.A.CV)&&(u=!0),o.A.GF&&u&&!o.C.HL){var h=l,_={},d=l.C5,f=l.AI,g=l.iX,B=l.iY;h.iX=g,h.iY=B,_.x=g,_.y=B;var v,m=o.A.LH,b=o.C.P;for(v in h.C5=0,_.alpha=d,3===m?(h.AI=2,_.size=f):8===m?(h.iX=g-b.iX,_.x=g):9===m?(h.iX=g+b.iX,_.x=g):10===m?(h.iY=B-b.iY,_.y=B):11===m&&(h.iY=B+b.iY,_.y=B),o.A.FW)h[EA.GP[ZC.EE(v)]]=o.A.FW[v],_[ZC.EE(v)]=o.O[EA.GP[ZC.EE(v)]];if(null===ZC._n_(o.C.EL)&&(o.C.EL={}),null!==ZC._n_(o.C.EL[o.A.L+"-"+o.L]))for(v in o.C.EL[o.A.L+"-"+o.L])h[EA.GP[ZC.EE(v)]]=o.C.EL[o.A.L+"-"+o.L][v];o.C.EL[o.A.L+"-"+o.L]={},ZC._cp_(_,o.C.EL[o.A.L+"-"+o.L]);var D=new EA(h,_,o.A.JK,o.A.LF,EA.RU[o.A.LI],function(){p()});D.AX=o,D.OL=function(){o.MU(ZC.Q.E9(o.A.CN("bl",0),o.G.AB))},o.LA(D)}else{var K="circle"===l.DP?"circle":"path";if(o.A.HM){var E=function(t,i){var a=t.cloneNode(!1),n=o.iX,r=o.iY;if(e){var s=new CB(o.C,n-ZC.AO.E1,r-ZC.AO.E2,o.A.D["z-start"]||0);n=ZC._x_(s.EB[0]),r=ZC._x_(s.EB[1]),o.D["3dxy"]=[n,r]}a.setAttribute("transform","translate("+ZC._i_(n-l.iX)+","+ZC._i_(r-l.iY)+") "+(a.getAttribute("transform")||"")),a.setAttribute("id",i),"bubble"!==o.A.AF&&"hbubble"!==o.A.AF||a.setAttribute("r",o.D["marker.size"]),t.parentNode.appendChild(a)};l.MF&&E(o.A.RN,o.K+"-marker-sh-"+K),E(o.A.HM,o.K+"-marker-"+K),l.D8&&E(o.A.QK,o.K+"-marker-imgfill")}else{l.paint();var F=l.A0!==l.AE;if(!o.C.J0[o.A.L]&&o.A.Z5&&!F)if("svg"===o.G.AB){if(-1===ZC.AV(["pie","square","rect","rectangle","cross","plus","custom"],l.DP))if(o.A.HF=l,zingchart.DEV.DOMFRAGMENTS&&document.querySelector){for(var I in o.G.G2)o.A.HM||(o.A.HM=o.G.G2[I].querySelector("#"+o.K+"-marker-"+K)),l.MF&&!o.A.RN&&(o.A.RN=o.G.G2[I].querySelector("#"+o.K+"-marker-sh-"+K)),l.D8&&!o.A.QK&&(o.A.QK=o.G.G2[I].querySelector("#"+o.K+"-marker-imgfill")||o.G.G2[I].querySelector("#"+o.K+"-marker-path-imgfill"));o.A.HM||(o.A.HM=ZC.AK(o.K+"-marker-"+K),l.MF&&(o.A.RN=ZC.AK(o.K+"-marker-sh-"+K)),l.D8&&(o.A.QK=ZC.AK(o.K+"-marker-imgfill")))}else o.A.HM=ZC.AK(o.K+"-marker-"+K),l.MF&&(o.A.RN=ZC.AK(o.K+"-marker-sh-"+K)),l.D8&&(o.A.QK=ZC.AK(o.K+"-marker-imgfill")||ZC.AK(o.K+"-marker-path-imgfill"))}else"bubble"!==o.A.AF&&"hbubble"!==o.A.AF&&(e||(o.A.HF=l))}"svg"===o.G.AB&&o.A.applyJsRuleSvg(o.A.A2,o.K+"-marker-"+K,o.LL()),p()}}else o.A.U&&o.F8()}else o.A.U&&o.F8()}}}}LA(e,t){var i,a=this,n=a.C.M4,l=n.PP,r=a.A.TY;switch(r){default:t&&n.add(t),n.add(e);break;case 1:case 2:case 3:if(t){var o="all";if(1===r?o="plots-group-"+a.L+"-area":2===r&&(o="nodes-group-"+a.A.L+"-area"),null===ZC._n_(l[o])){var s=new A2V(o);n.A60(s,t.XQ)}l[o].add(t)}if(i="all",1===r?i="plots-group-"+a.L:2===r&&(i="nodes-group-"+a.A.L),null===ZC._n_(l[i])){var C=new A2V(i);n.A60(C,e.XQ)}l[i].add(e)}}SD(e){var t=this;t.A.IE&&t.A.bXY&&(t.S1(),e&&("scatter"!==t.A.AF&&"hscatter"!==t.A.AF&&"bubble"!==t.A.AF&&"hbubble"!==t.A.AF||t.paint(!0)));var i=t.A.BP;t.LO({layer:e,type:"shape",id:"marker",marker:!0,initcb:function(){this.DP=t.D["marker.type"],this.iX=t.iX,this.iY=t.iY,"bubble"===t.A.AF||"hbubble"===t.A.AF?(this.AE=i[3],this.A0=i[2]):(this.B7=i[3],this.BW=i[3],this.A0=i[2],this.AE=i[1]),this.AI=t.D["marker.size"]}})}YN(e){var t=this;t.LO({layer:e,type:"line",id:"line",initcb:function(){this.B7=t.A.BP[3]}})}LO(e){if(!ZC.move){var t,i,a,n,l,r,o=this,s=e.layer||"hover",C=e.id||"",A=!1;switch(o.GL=null,null!==ZC._n_(t=e.marker)&&(A=ZC._b_(t)),s){case"hover":null!==ZC._n_(o.C.CG["p"+o.A.L])&&null!==ZC._n_(o.C.CG["p"+o.A.L]["n"+o.L])||(a=A?o.A.GB:o.A.IJ,n="hover");break;case"highlight":a=A?o.A.VN:o.A.SI,n="hover"}if(null!==ZC._n_(e.state)&&(a=e.state),a&&o.C.D["plot"+o.A.L+".visible"]&&a.AM){switch(e.type){case"box":(r=new I2(o.A)).QA=!0;break;case"line":r=new DW(o.A),l=ZC.Q.E9(o.C.K+"-"+n+"-c",o.G.AB),r.CY=!1;break;case"shape":r=new DW(o.A);break;case"area":r=new DW(o.A),l=ZC.Q.E9(o.C.K+"-"+n+"-c",o.G.AB)}if(A&&(r.D["p-width"]=o.A.B2.AC,r.D["p-height"]=o.A.CL.AC),zingchart.DEV.PLOTSHLAYER&&"hover"===n?r.Z=r.C7=ZC.AK(o.C.K+"-plots-hover-c"):r.Z=r.C7=ZC.AK(o.C.K+"-"+n+"-c"),r.K=o.K+"-"+(""!==C?C+"-":"")+s,r.D.plotidx=o.A.L,r.D.nodeidx=o.L,"hover"!==s&&(r.A2I=!0),e.initcb&&e.initcb.call(r),r.append(a.o),e.parsecb&&e.parsecb.call(r),"hover"===s&&null!==ZC._n_(t=o.A.o)&&null!==ZC._n_(t.styles)&&null!==ZC._n_(i=t.styles[o.L])&&("string"==typeof i?r.append({"background-color":i,"line-color":i,"border-color":i}):r.append(i)),null!==ZC._n_(t=o.A.o[s+"-state"])&&null!==ZC._n_(t.styles)&&null!==ZC._n_(i=t.styles[o.L])&&("string"==typeof i?r.append({"background-color":i,"line-color":i,"border-color":i}):r.append(i)),o.A.HX&&o.GN(r,s),"hover"===s&&o.A.A2&&o.A.A2.HX&&(o.A.A2.GN(o.A.A2,r,null,o.LL(null,!1)),r.parse()),r.parse(),r.J2=function(e){return o.J2(e)},r.DC()&&r.parse(),r.AM){switch(e.setupcb&&e.setupcb.call(r),e.type){case"box":case"shape":r.locate(2),r.paint();break;case"line":ZC.CR.setup(l,r),"plot"===o.A.A46?ZC.CR.paint(l,r,o.A.VM):ZC.CR.paint(l,r,o.getNodeData("points"));break;case"area":"spline"!==o.A.CV&&(null!==ZC._n_(t=a.o["alpha-area"])&&(r.C5=ZC._f_(t)),ZC.CR.setup(l,r),r.paint())}o.GL=r}}}}MU(){}setup(){}HU(){}L2(){var e=this;ZC.Q.ET([e.K+"-hover-gradient",e.K+"-marker-hover-gradient",e.G.K+"-tooltip-text-gradient",e.G.K+"-tooltip-text-sh-gradient"])}LL(e,t){var i=this;typeof t===ZC._[31]&&(t=!0);var a=!1;"none"!==i.A.J5&&i.C.CG&&i.C.CG["p"+i.A.L]&&i.C.CG["p"+i.A.L]["n"+i.L]&&(a=!0);var n={id:i.C.A.K,graphid:i.C.K,graphindex:i.C.L,plotid:i.A.H6,plotindex:i.A.L,nodeindex:i.L,key:null===i.BU?i.L:i.BU,scaleval:i.A.B2?i.A.B2.V[null===i.BU?i.L:i.BU]:null,scaletext:i.A.B2?i.A.B2.FC(i.L,null===i.BU?null:i.A):null,value:i.AD,text:t?i.F0(i.A.K4):i.A.K4,ev:e?ZC.A5.BX(e):null,x:i.iX,y:i.iY,width:i.I,height:i.F,size:i.D["marker.size"]||1,selected:a};for(var l in i.A.KJ)i.A.KJ[l]instanceof Array?null!==ZC._n_(i.A.KJ[l][i.L])&&(n["data-"+l]=i.A.KJ[l][i.L]):n["data-"+l]=i.A.KJ[l];return n}P2(e,t){ZC.AP.C0("node_"+t,this.G,this.LL(e))}}class A3I extends MH{setup(){this.S1()}JB(){return{color:this.A.IE?this.A.B7:this.O.B7}}KC(){return{"background-color":this.O.B7,"border-color":this.O.B7,color:this.O.C1}}getTooltipPosition(e,t){super.getTooltipPosition(e,t,this.NH.AI)}paint(e){var t=this;typeof e===ZC._[31]&&(e=!1),super.paint();var i=t.A.P0,a=t.A.QM,n=t.A.B2,l=t.A.R;if(t.setup(),!t.A.IE||t.C.AJ["3d"]||t.A.FZ){t.O.CY=t.CY=!1,t.O.C7=t.A.CN("bl",0);var r=[],o=t.A.CV;(t.C.OJ||t.A.UK)&&"spline"===t.A.CV&&(o="segmented");var s=typeof t.A.GC!==ZC._[31]?t.A.GC:t.A.Y,C=typeof t.A.HJ!==ZC._[31]?t.A.HJ:t.A.Y,A=!0,Z=!0;(null===ZC._n_(l[t.L-s])||"log"!==n.C6&&!n.EF&&t.L<=n.W)&&(A=!1);var c,p,u,h,_=t.A.M1?t.A.R.length:n.A1;switch((null===ZC._n_(l[t.L+C])||"log"!==n.C6&&!n.EF&&t.L>=_)&&(Z=!1),o){default:A&&(t.A.FM(t.L-s,0).setup(),t.A.VD&&(c=ZC.AQ.K0(t.A.R[t.L-s].iX,t.A.R[t.L-s].iY,t.A.R[t.L].iX,t.A.R[t.L].iY),r.push(c))),r.push([t.iX,t.iY]),Z&&(t.A.FM(t.L+C,2).setup(),c=t.A.VD?ZC.AQ.K0(t.A.R[t.L].iX,t.A.R[t.L].iY,t.A.R[t.L+C].iX,t.A.R[t.L+C].iY,t.O.C5):[l[t.L+C].iX,l[t.L+C].iY],r.push(c));break;case"spline":if(t.A.E&&(r=t.A.E),t.A.E=[],l[t.L+1]){var d=[],f=[];for(p=-1;p<3;p++)l[t.L+p]?(t.A.FM(t.L+p,2).setup(),i?(d.push(l[t.L+p].iX),f.push(l[t.L+p].iY)):(d.push(l[t.L+p].iY),f.push(l[t.L+p].iX))):0===d.length?i?(f.push(t.iY),d.push(t.iX)):(f.push(t.iX),d.push(t.iY)):(d.push(d[d.length-1]),f.push(f[f.length-1]));var g=ZC._a_(f[2]-f[1]);g=Math.min(g,Math.max(t.C.I,t.C.F));var B=ZC.AQ.YW(t.A.QO,d,g);if(t.A.VD){for(p=0;p<ZC._i_(B.length/2)+(1===t.O.C5?1:0);p++)B[p]&&(i?r.push([B[p][1],t.iY+(n.AW?1:-1)*B[p][0]*g]):r.push([t.iX+(n.AW?-1:1)*B[p][0]*g,B[p][1]]));for(p=ZC._i_(B.length/2)-1,u=B.length;p<u;p++)B[p]&&(i?t.A.E.push([B[p][1],t.iY+(n.AW?1:-1)*B[p][0]*g]):t.A.E.push([t.iX+(n.AW?-1:1)*B[p][0]*g,B[p][1]]))}else for(p=0;p<ZC._i_(B.length);p++)i?r.push([B[p][1],t.iY+(n.AW?1:-1)*B[p][0]*g]):r.push([t.iX+(n.AW?-1:1)*B[p][0]*g,B[p][1]])}break;case"stepped":if(A)switch(t.A.FM(t.L-s,0).setup(),c=ZC.AQ.K0(t.A.R[t.L-s].iX,t.A.R[t.L-s].iY,t.A.R[t.L].iX,t.A.R[t.L].iY),t.A.SY){default:i?r.push([l[t.L-s].iX,c[1]],[t.iX,c[1]]):r.push([c[0],l[t.L-s].iY],[c[0],t.iY]);break;case"before":r.push([t.A.R[t.L-s].iX,l[t.L-s].iY],[t.A.R[t.L-s].iX,t.iY]);break;case"after":}if(r.push([t.iX,t.iY]),Z)switch(t.A.FM(t.L+C,0).setup(),c=ZC.AQ.K0(t.A.R[t.L+s].iX,t.A.R[t.L+s].iY,t.A.R[t.L].iX,t.A.R[t.L].iY),t.A.SY){default:r.push(i?[t.iX,c[1]]:[c[0],t.iY]);break;case"before":break;case"after":r.push([t.A.R[t.L+s].iX,t.iY],[t.A.R[t.L+s].iX,l[t.L+C].iY])}break;case"jumped":A?(t.A.FM(t.L-s,0).setup(),c=ZC.AQ.K0(t.A.R[t.L-s].iX,t.A.R[t.L-s].iY,t.A.R[t.L].iX,t.A.R[t.L].iY),r.push(i?[t.iX,c[1]]:[c[0],t.iY])):r.push(i?[t.iX,t.iY-n.AC/2]:[t.iX-n.AC/2,t.iY]),r.push([t.iX,t.iY]),Z?(t.A.FM(t.L+C,0).setup(),c=ZC.AQ.K0(t.A.R[t.L+s].iX,t.A.R[t.L+s].iY,t.A.R[t.L].iX,t.A.R[t.L].iY),r.push(i?[t.iX,c[1]]:[c[0],t.iY])):r.push(i?[t.iX,t.iY+n.AC/2]:[t.iX+n.AC/2,t.iY])}if(t.setNodeData({points:r}),"ready"!==t.C.MI&&(t.A.VM=t.A.VM.concat(r)),!e&&!t.C.AJ["3d"]){var v=t.O=t.A.I4(t,t.O),m=t.C.K+ZC._[34]+t.C.K+ZC._[35]+t.A.L+ZC._[6];if(v.DI=m,v.K=t.K,t.A.HX&&t.GN(v),ZC.CR.setup(a,v),t.paintPreview(v,r),t.A.GF&&!t.C.HL){var b=new DW(t),D={};b.copy(v),b.K=t.K,b.Z=t.A.CN("bl",1),b.C7=t.A.CN("bl",0),b.E=r,D.points=r;var K=[],E=t.A.LH,F=t.C.P;for(b.C5=0,D.alpha=v.C5,p=0;p<r.length;p++)2===E?K[p]=[r[p][0],F.iY+F.F/2]:3===E?K[p]=[r[p][0],F.iY-5]:4===E?K[p]=[r[p][0],F.iY+F.F+5]:5===E?K[p]=[F.iX-5,r[p][1]]:6===E?K[p]=[F.iX+F.I+5,r[p][1]]:7===E?K[p]=[F.iX+F.I/2,r[p][1]]:8===E?K[p]=[r[p][0]-F.I,r[p][1]]:9===E?K[p]=[r[p][0]+F.I,r[p][1]]:10===E?K[p]=[r[p][0],r[p][1]-F.F]:11===E?K[p]=[r[p][0],r[p][1]+F.F]:12===E?K[p]=[(r[0][0]+r[r.length-1][0])/2,r[0][1]]:13===E&&(K[p]=[r[0][0],(r[0][1]+r[r.length-1][1])/2]),E>1&&(b.E=K,D.points=r);for(h in t.A.FW)b[EA.GP[ZC.EE(h)]]=t.A.FW[h],D[ZC.EE(h)]=v[EA.GP[ZC.EE(h)]];if(t.C.EL||(t.C.EL={}),null!==ZC._n_(t.C.EL[t.A.L+"-"+t.L]))for(h in t.C.EL[t.A.L+"-"+t.L])b[EA.GP[ZC.EE(h)]]=t.C.EL[t.A.L+"-"+t.L][h];t.C.EL[t.A.L+"-"+t.L]={},ZC._cp_(D,t.C.EL[t.A.L+"-"+t.L]);var I=new EA(b,D,t.A.JK,t.A.LF,EA.RU[t.A.LI],function(){x()});I.AX=t,I.OL=function(){t.MU(ZC.Q.E9(t.A.CN("bl",1),t.G.AB))},I.IQ=a,t.LA(I)}else ZC.CR.paint(a,v,r),x()}}function x(){!t.C.OJ&&ZC.DR(t.iX,n.iX-1,n.iX+n.I+1)&&ZC.DR(t.iY,n.iY-1,n.iY+n.F+1)&&(t.OU(),t.MU(ZC.Q.E9(t.A.CN("bl",1),t.G.AB)),t.A.U&&t.A.U.AM&&t.A.D.vboxid!==t.K&&t.F8())}}paintPreview(e,t){var i=this;if(i.C.BA&&i.C.BA.IO&&i.A.R1){var a,n=i.A.mapPointsToPreview(t);i.A.WI?a=i.A.WI:(a=new D0(i),i.A.WI=a),a.copy(e),a.K=i.K+"-line-preview",a.DI=i.A.K+"-preview";var l=ZC.Q.E9(i.C.BA.Z,i.G.AB);a.AZ=1;var r=i.o["preview-state"];r&&(a.append(r),a.parse()),ZC.CR.paint(l,a,n,null,3)}}HU(e){var t=this;ZC.move||(t.YN(e),t.A.RG&&t.SD(e))}}class A3J extends MH{setup(){this.S1()}JB(){return{color:this.A.IE?this.A.B7:this.O.B7}}KC(){return{"background-color":this.O.B7,"border-color":this.O.B7,color:this.O.C1}}getTooltipPosition(e,t){return super.getTooltipPosition(e,t,this.NH.AI)}paint(e){var t,i,a,n,l,r,o,s,C=this;typeof e===ZC._[31]&&(e=!1),super.paint();var A=C.A.P0,Z=C.A.QM,c=C.A.B2,p=C.A.CL,u=C.A.R;if(C.setup(),!C.A.IE||C.C.AJ["3d"]||C.A.FZ){C.O.CY=C.CY=!1,C.O.C7=C.A.CN("bl",1);var h=p.H9,_=p.AN(h);_=A?ZC._l_(_,p.iX,p.iY+p.I):ZC._l_(_,p.iY,p.iY+p.F);var d=c.DQ?c.AC/2:0,f=[],g=[],B=[],v=null;null!==ZC._n_(C.A.A.F3)&&null!==ZC._n_(C.A.A.F3[C.L])&&(v=C.A.A.F3[C.L]);var m=C.A.CV;(C.C.OJ||C.A.UK)&&"spline"===C.A.CV&&(m="segmented"),i=C.O.AZ/2-1,a="svg"===C.G.AB&&ZC.mobile?C.O.I0/4:0,"vml"===C.G.AB&&C.A.GF&&(a=.5),C.C.AJ["3d"]&&(1===C.A.I0?a=1:(a=C.A.I0/3,"canvas"===C.G.AB&&(ZC.A5.browser.msie||ZC.A5.browser.opera)&&(a=.5)),c.AW&&(a=-a));var b,D=typeof C.A.GC!==ZC._[31]?C.A.GC:C.A.Y,K=typeof C.A.HJ!==ZC._[31]?C.A.HJ:C.A.Y,E=!0,F=!0;(!u[C.L-D]||"log"!==c.C6&&!c.EF&&C.L<=c.W)&&(E=!1);var I=C.A.M1?C.A.R.length:c.A1;switch((!u[C.L+K]||"log"!==c.C6&&!c.EF&&C.L>=I)&&(F=!1),m){default:if(E)C.A.FM(C.L-D,0).setup(),C.A.VD?(l=ZC.AQ.K0(u[C.L-D].iX,u[C.L-D].iY,u[C.L].iX,u[C.L].iY),B.push([ZC._i_(l[0])-a,l[1]-i]),C.A.CA&&null!==ZC._n_(v)||g.push([ZC._i_(l[0])-a,_]),g.push([ZC._i_(l[0])-a,l[1]+i]),f.push([l[0],l[1]])):g.push([ZC._i_(C.iX),_]);else if(c.EF||C.L!==c.W)C.A.CA&&null!==ZC._n_(v)?(b=C.A.A.A4[C.A.L-1])&&b.R[C.L]&&g.push([ZC._i_(C.iX),b.R[C.L].iY+i]):(g.push([ZC._i_(C.iX),_]),B.push([ZC._i_(C.iX-c.AC/2),_]),B.push([ZC._i_(C.iX),_]));else if(c.AW)C.A.CA&&null!==ZC._n_(v)||g.push([ZC._i_(c.iX+c.I-c.BV-d),_]),g.push([ZC._i_(c.iX+c.I-c.BV-d),C.iY+i]);else{var x=ZC._i_(c.iX+c.AA+d);C.A.M1&&(x=c.H4(C.A.RH)-c.AC/2),C.A.CA&&null!==ZC._n_(v)||g.push([x,_]),g.push([x,C.iY+i])}B.push([ZC._i_(C.iX),C.iY-i]),g.push([ZC._i_(C.iX),C.iY+i]),f.push([C.iX,C.iY]),F?(C.A.FM(C.L+K,2).setup(),n=C.A.VD?ZC.AQ.K0(u[C.L].iX,u[C.L].iY,u[C.L+K].iX,u[C.L+K].iY):[u[C.L+K].iX,u[C.L+K].iY],B.push([ZC._i_(n[0]),n[1]-i]),g.push([ZC._i_(n[0]),n[1]+i]),C.A.CA&&null!==ZC._n_(v)||g.push([ZC._i_(n[0]),_]),l=C.A.VD?ZC.AQ.K0(u[C.L].iX,u[C.L].iY,u[C.L+K].iX,u[C.L+K].iY,C.O.C5):[u[C.L+K].iX,u[C.L+K].iY],f.push([l[0],l[1]])):C.L===c.A1?c.AW?(g.push([c.iX+c.AA-d,C.iY+i]),C.A.CA&&null!==ZC._n_(v)||g.push([ZC._i_(c.iX+c.AA-d),_])):(g.push([c.iX+c.I-c.BV-d,C.iY+i]),C.A.CA&&null!==ZC._n_(v)||g.push([ZC._i_(c.iX+c.I-c.BV-d),_])):C.A.CA&&null!==ZC._n_(v)?(b=C.A.A.A4[C.A.L-1])&&b.R[C.L]&&g.push([ZC._i_(C.iX),b.R[C.L].iY+i]):(g.push([ZC._i_(C.iX),_]),B.push([ZC._i_(C.iX),_]),B.push([ZC._i_(C.iX+c.AC/2),_]));break;case"spline":if(null!==ZC._n_(C.A.D5)&&(B=C.A.D5),null!==ZC._n_(C.A.AH)&&(g=C.A.AH),C.A.D5=[],C.A.AH=[],null!==ZC._n_(C.A.E)&&(f=C.A.E),C.A.E=[],u[C.L+1]){var y=[],X=[];for(r=-1;r<3;r++)u[C.L+r]?(C.A.FM(C.L+r,2).setup(),A?(y.push(u[C.L+r].iX),X.push(u[C.L+r].iY)):(y.push(u[C.L+r].iY),X.push(u[C.L+r].iX))):0===y.length?A?(X.push(C.iY),y.push(C.iX)):(X.push(C.iX),y.push(C.iY)):(y.push(y[y.length-1]),X.push(X[X.length-1]));var G=ZC._a_(X[2]-X[1]);G=Math.min(G,Math.max(C.C.I,C.C.F));var Y=ZC.AQ.YW(C.A.QO,y,G);if(C.A.VD){for(0===g.length&&(C.A.CA&&null!==ZC._n_(v)||g.push([ZC._i_(C.iX+(c.AW?-1:1)*Y[0][0]*G),_])),r=0;r<ZC._i_(Y.length/2)+(1===C.O.C5?1:0);r++)Y[r]&&(A?f.push([Y[r][1],C.iY+(c.AW?1:-1)*Y[r][0]*G]):f.push([C.iX+(c.AW?-1:1)*Y[r][0]*G,Y[r][1]]));for(r=0;r<ZC._i_(Y.length/2)+(1===C.O.I0?1:0);r++)B.push([ZC._i_(C.iX+(c.AW?-1:1)*Y[r][0]*G),Y[r][1]-i]),g.push([ZC._i_(C.iX+(c.AW?-1:1)*Y[r][0]*G),Y[r][1]]);for(C.A.CA&&null!==ZC._n_(v)||g.push([ZC._i_(g[g.length-1][0]),_]),s=1===C.I0?ZC.CX(2,ZC._i_(Y.length/2)):1,r=ZC._i_(Y.length/2)-1,o=Y.length;r<o;r++)Y[r]&&(A?C.A.E.push([Y[r][1],C.iY+(c.AW?1:-1)*Y[r][0]*G]):C.A.E.push([C.iX+(c.AW?-1:1)*Y[r][0]*G,Y[r][1]]));for(r=ZC._i_(Y.length/2)-s,o=Y.length;r<o;r++)0===C.A.AH.length&&(C.A.CA&&null!==ZC._n_(v)||C.A.AH.push([ZC._i_(C.iX+(c.AW?-1:1)*Y[r][0]*G),_])),C.A.AH.push([ZC._i_(C.iX+(c.AW?-1:1)*Y[r][0]*G),Y[r][1]]),C.A.D5.push([ZC._i_(C.iX+(c.AW?-1:1)*Y[r][0]*G),Y[r][1]-i])}else{for(0===g.length&&(C.A.CA&&null!==ZC._n_(v)||g.push([ZC._i_(C.iX+(c.AW?-1:1)*Y[0][0]*G),_])),r=0;r<Y.length;r++)A?f.push([Y[r][1],C.iY+(c.AW?1:-1)*Y[r][0]*G]):f.push([C.iX+(c.AW?-1:1)*Y[r][0]*G,Y[r][1]]);for(r=0;r<Y.length;r++)B.push([ZC._i_(C.iX+(c.AW?-1:1)*Y[r][0]*G),Y[r][1]-i]),g.push([ZC._i_(C.iX+(c.AW?-1:1)*Y[r][0]*G),Y[r][1]]);for(C.A.CA&&null!==ZC._n_(v)||g.push([ZC._i_(g[g.length-1][0]),_]),s=1===C.I0?ZC.CX(2,ZC._i_(Y.length/2)):1,r=Y.length,o=Y.length;r<o;r++)A?C.A.E.push([Y[r][1],C.iY+(c.AW?1:-1)*Y[r][0]*G]):C.A.E.push([C.iX+(c.AW?-1:1)*Y[r][0]*G,Y[r][1]]);for(r=Y.length-s,o=Y.length;r<o;r++)0===C.A.AH.length&&(C.A.CA&&null!==ZC._n_(v)||C.A.AH.push([ZC._i_(C.iX+(c.AW?-1:1)*Y[r][0]*G),_])),C.A.AH.push([ZC._i_(C.iX+(c.AW?-1:1)*Y[r][0]*G),Y[r][1]]),C.A.D5.push([ZC._i_(C.iX+(c.AW?-1:1)*Y[r][0]*G),Y[r][1]-i])}}else g.length>0&&g.push([g[g.length-1][0],_]);break;case"stepped":if(E)switch(C.A.FM(C.L-D,0).setup(),l=ZC.AQ.K0(u[C.L-D].iX,u[C.L-D].iY,u[C.L].iX,u[C.L].iY),C.A.SY){default:B.push([ZC._i_(l[0])-a,C.iY-i]),C.A.CA&&null!==ZC._n_(v)||g.push([ZC._i_(l[0])-a,_]),g.push([ZC._i_(l[0])-a,C.iY+i]),f.push(A?[u[C.L-D].iX,l[1]]:[l[0],u[C.L-D].iY]),f.push(A?[C.iX,l[1]]:[l[0],C.iY]);break;case"before":B.push([ZC._i_(u[C.L-D].iX)-a,C.iY-i]),C.A.CA&&null!==ZC._n_(v)||g.push([ZC._i_(u[C.L-D].iX)-a,_]),g.push([ZC._i_(u[C.L-D].iX)-a,C.iY+i]),f.push([u[C.L-D].iX,u[C.L-D].iY]),f.push([u[C.L-D].iX,C.iY]);break;case"after":B.push([ZC._i_(C.iX)-a,C.iY-i]),C.A.CA&&null!==ZC._n_(v)||g.push([ZC._i_(C.iX)-a,_]),g.push([ZC._i_(C.iX)-a,C.iY+i])}else c.EF||C.L!==c.W?C.A.CA&&null!==ZC._n_(v)?(b=C.A.A.A4[C.A.L-1])&&b.R[C.L]&&g.push([ZC._i_(C.iX),b.R[C.L].iY+i]):(g.push([ZC._i_(C.iX),_]),B.push([ZC._i_(C.iX-c.AC/2),_]),B.push([ZC._i_(C.iX),_])):c.AW?(C.A.CA&&null!==ZC._n_(v)||g.push([ZC._i_(c.iX+c.I-c.BV-d),_]),g.push([ZC._i_(c.iX+c.I-c.BV-d),C.iY+i])):(C.A.CA&&null!==ZC._n_(v)||g.push([ZC._i_(c.iX+c.AA+d),_]),g.push([ZC._i_(c.iX+c.AA+d),C.iY+i]));if(B.push([ZC._i_(C.iX),C.iY-i]),g.push([ZC._i_(C.iX),C.iY+i]),f.push([C.iX,C.iY]),F)switch(C.A.FM(C.L+K,2).setup(),l=ZC.AQ.K0(u[C.L].iX,u[C.L].iY,u[C.L+K].iX,u[C.L+K].iY,C.O.C5),C.A.SY){default:B.push([ZC._i_(l[0]),C.iY-i]),g.push([ZC._i_(l[0]),C.iY+i]),C.A.CA&&null!==ZC._n_(v)||g.push([ZC._i_(l[0]),_]),f.push(A?[C.iX,l[1]]:[l[0],C.iY]);break;case"before":B.push([ZC._i_(C.iX),C.iY-i]),g.push([ZC._i_(C.iX),C.iY+i]),C.A.CA&&null!==ZC._n_(v)||g.push([ZC._i_(C.iX),_]);break;case"after":B.push([ZC._i_(u[C.L+K].iX),C.iY-i]),g.push([ZC._i_(u[C.L+K].iX),C.iY+i]),C.A.CA&&null!==ZC._n_(v)||g.push([ZC._i_(u[C.L+K].iX),_]),f.push([u[C.L+K].iX,C.iY]),f.push([u[C.L+K].iX,u[C.L+K].iY])}else C.L===c.A1?c.AW?(g.push([c.iX+c.AA-d,C.iY+i]),C.A.CA&&null!==ZC._n_(v)||g.push([ZC._i_(c.iX+c.AA-d),_])):(g.push([c.iX+c.I-c.BV-d,C.iY+i]),C.A.CA&&null!==ZC._n_(v)||g.push([ZC._i_(c.iX+c.I-c.BV-d),_])):C.A.CA&&null!==ZC._n_(v)?(b=C.A.A.A4[C.A.L-1])&&b.R[C.L]&&g.push([ZC._i_(C.iX),b.R[C.L].iY+i]):(g.push([ZC._i_(C.iX),_]),B.push([ZC._i_(C.iX),_]),B.push([ZC._i_(C.iX+c.AC/2),_]))}if(C.A.CA&&null!==ZC._n_(v))for(r=v.length-1;r>=0;r--)g.push(v[r]);if(C.setNodeData({points:f,pointsarea:g}),"ready"!==C.C.MI&&(C.A.VM=C.A.VM.concat(f)),null===ZC._n_(C.A.A.F3)&&(C.A.A.F3=[]),C.A.A.F3[C.L]=B,!e&&!C.C.AJ["3d"]){var w=C.O=C.A.I4(C,C.O),M=C.C.K+ZC._[34]+C.C.K+ZC._[35]+C.A.L+ZC._[6];w.DI=M,w.K=C.K,C.A.HX&&C.GN(w);var L,P=C.C.P;if(0!==C.A.E5.length||C.A.HX||typeof C.A.AA0===ZC._[31]||C.O.o.override||C.C.KO?((L=new DW(C.A)).copy(w),L.C5=C.A.I0):L=C.A.AA0,C.GN(L),L.C5=ZC._f_(L.o["alpha-area"]||"1"),L.CY=!1,L.LE=!0,L.AZ=0,L.AU=0,L.EW=0,L.GA=0,L.Z=C.A.CN("bl",C.C.CA?0:1),L.E=g,L.CZ=[P.iX,P.iY,P.iX+P.I,P.iY+P.F],null!==ZC._n_(t=C.A.D["min-y"])&&(L.D["bound-1"]=t,L.CZ[1]=t),null!==ZC._n_(t=C.A.D["max-y"])&&(L.D["bound-3"]=t,L.CZ[3]=t),L.K=C.K+"-area",C.A.GF||(L.D.areanode=!0),ZC.CR.setup(Z,w),C.paintPreview(w,f,g),C.A.GF&&!C.C.HL){var O=new DW(C),R={};O.copy(w),O.K=C.K,O.Z=C.A.CN("bl",2),O.C7=C.A.CN("bl",1),O.E=f;var Q=L,T={},k=[],N=[];O.E=f,R.points=f,Q.E=g,T.points=g;var H=C.A.LH,z=C.C.P;O.C5=0,R.alpha=w.C5,Q.C5=0,T.alpha=C.A.I0;var V,J=function(e){for(var t=e?g:f,i=e?N:k,a=0;a<t.length;a++)2===H?i[a]=[t[a][0],z.iY+C.C.P.F/2]:3===H?i[a]=[t[a][0],z.iY-5]:4===H?i[a]=[t[a][0],z.iY+z.F+5]:5===H?i[a]=[z.iX-5,t[a][1]]:6===H?i[a]=[z.iX+z.I+5,t[a][1]]:7===H?i[a]=[z.iX+z.I/2,t[a][1]]:8===H?i[a]=[t[a][0]-z.I,t[a][1]]:9===H?i[a]=[t[a][0]+z.I,t[a][1]]:10===H?i[a]=[t[a][0],t[a][1]-z.F]:11===H?i[a]=[t[a][0],t[a][1]+z.F]:12===H?i[a]=[(t[0][0]+t[t.length-1][0])/2,t[0][1]]:13===H&&(i[a]=[t[0][0],(t[0][1]+t[t.length-1][1])/2]),H>1&&(e?(Q.E=N,T.points=g):(O.E=k,R.points=f))};for(V in J(),J(!0),C.A.FW)O[EA.GP[ZC.EE(V)]]=C.A.FW[V],R[ZC.EE(V)]=w[EA.GP[ZC.EE(V)]],Q[EA.GP[ZC.EE(V)]]=C.A.FW[V],T[ZC.EE(V)]=w[EA.GP[ZC.EE(V)]];if(null===ZC._n_(C.C.EL)&&(C.C.EL={}),null===ZC._n_(C.C.T2)&&(C.C.T2={}),null!==ZC._n_(C.C.EL[C.A.L+"-"+C.L])){for(V in C.C.EL[C.A.L+"-"+C.L])O[EA.GP[ZC.EE(V)]]=C.C.EL[C.A.L+"-"+C.L][V];for(V in C.C.T2[C.A.L+"-"+C.L])Q[EA.GP[ZC.EE(V)]]=C.C.T2[C.A.L+"-"+C.L][V]}C.C.EL[C.A.L+"-"+C.L]={},ZC._cp_(R,C.C.EL[C.A.L+"-"+C.L]),C.C.T2[C.A.L+"-"+C.L]={},ZC._cp_(T,C.C.T2[C.A.L+"-"+C.L]);var S=new EA(O,R,C.A.JK,C.A.LF,EA.RU[C.A.LI],function(){U()});S.AX=C,S.OL=function(){C.MU(ZC.Q.E9(C.A.CN("bl",1),C.G.AB))},S.IQ=Z;var W=new EA(Q,T,C.A.JK,C.A.LF,EA.RU[C.A.LI],function(){});W.AX=C,C.LA(S,W)}else L.paint(),0!==C.A.E5.length||typeof C.A.AA0!==ZC._[31]||C.O.o.override||C.C.KO||C.C.HL||(C.A.AA0=L),ZC.CR.paint(Z,w,f),U()}}function U(){!C.C.OJ&&ZC.DR(C.iX,c.iX-1,c.iX+c.I+1)&&ZC.DR(C.iY,c.iY-1,c.iY+c.F+1)&&(C.OU(),C.MU(ZC.Q.E9(C.A.CN("bl",1),C.G.AB)),C.A.U&&C.A.U.AM&&C.A.D.vboxid!==C.K&&C.F8())}}paintPreview(e,t,i){var a=this;if(a.C.BA&&a.C.BA.IO&&a.A.R1){var n,l=a.C.P,r=a.C.BA,o=a.A.mapPointsToPreview(i),s=new DW(a.A);s.copy(e),s.CY=!0,s.LE=!0,s.AZ=0,s.AU=0,s.EW=0,s.GA=0,s.C5=a.A.I0,s.CZ=[l.iX,l.iY,l.iX+l.I,l.iY+l.F],s.K=a.K+"-area-preview",s.DI=a.A.K+"-preview",s.Z=r.Z;var C,A=a.A.o["preview-state"];A&&(null!==ZC._n_(A["alpha-area"])?(n=A.alpha,A.alpha=A["alpha-area"]):A.alpha=s.C5,s.append(A),s.parse(),null!==ZC._n_(n)?A.alpha=n:delete A.alpha),s.E=o,s.paint();var Z=a.A.mapPointsToPreview(t);a.A.WI?C=a.A.WI:(C=new D0(a),a.A.WI=C),C.copy(e),C.K=a.K+"-line-preview",C.DI=a.A.K+"-preview";var c=ZC.Q.E9(r.Z,a.G.AB);C.AZ=1,A&&(C.append(A),C.parse()),ZC.CR.paint(c,C,Z,null,3)}}HU(e){var t=this;ZC.move||(t.A.P0||t.LO({layer:e,type:"area",initcb:function(){this.A0=t.A.BP[2],this.AE=t.A.BP[2],this.E=t.getNodeData("pointsarea")||[]},setupcb:function(){this.AZ=0,this.AU=0,this.C5=t.A.I0;var e=t.C.P;this.CZ=[e.iX,e.iY,e.iX+e.I,e.iY+e.F]}}),t.YN(e),t.A.RG&&t.SD(e))}}class A00 extends MH{setup(){this.S1()}OP(){var e=this;e.paint(!0);var t=e.C.BI(e.A.BT("v")[0]);return[e.iX+e.I/2,e.iY+(t.AW?e.F:0),{reference:e,center:!0}]}HG(e){var t=this,i="top-out",a=t.C.BI(t.A.BT("v")[0]),n=t.AD>=a.H9&&!a.AW||t.AD<a.H9&&a.AW?1:-1;e=t.setupValueBoxWH(e),null!==ZC._n_(e.o[ZC._[7]])&&(i=e.o[ZC._[7]]);var l=e.I,r=e.F,o=t.iX+t.I/2-l/2,s=t.iYVal-r/2,C=e.A9%180==90,A=C?l/2:r/2,Z=C?l/2-r/2:0;switch(i){case"top-out":case"top":s-=n*(A+5);break;case"top-in":s+=n*(A+5);break;case"middle":s+=n*(t.F/2);break;case"bottom-in":s+=n*(t.F-A-5);break;case"bottom-out":case"bottom":s+=n*(t.F+r/2+5)}if(null!==ZC._n_(e.o.x)||null!==ZC._n_(e.o.y))null!==ZC._n_(e.o.x)&&(o=e.iX),null!==ZC._n_(e.o.y)&&(s=e.iY);else{var c=ZC._c_(t.A.o.tolerance,5);if(!ZC.AQ._boxoverlap2_(t,t.C.P,c))return[-1,-1]}var p=e.o.tolerance||[t.C.P.E7,t.C.P.E6,t.C.P.DN,t.C.P.DV];return t.C.AJ["3d"]||(o=ZC.BQ(t.C.P.iX+0-p[3],o),o=ZC.CX(t.C.P.iX+t.C.P.I-l-0+p[1],o),s-Z<t.C.P.iY+5-p[0]&&(s=t.C.P.iY+5-p[0]+Z),s+Z>t.C.P.iY+t.C.P.F-r-5+p[2]&&(s=t.C.P.iY+t.C.P.F-r-5+p[2]-Z)),[ZC._i_(o),ZC._i_(s)]}getPMap(){var e=super.getPMap();return this.addPMap(e,"barWidth","I"),e}paint(e){var t,i=this;if(super.paint(),!i.C.AJ["3d"]){typeof e===ZC._[31]&&(e=!1);var a=i.A.B2,n=i.A.CL;i.setup();var l,r,o,s,C,A=n.H9,Z=n.AN(A),c=i.A.PT(),p=c.AC,u=c.ES,h=c.CC,_=c.CS,d=c.F4,f=c.D1,g=c.EZ;if(e?u=i.A.D["node-"+i.L+"-bar-index"]:i.A.D["node-"+i.L+"-bar-index"]=c.ES,i.A.CA){l=0;for(var B=i.A.A.KH[u],v=0;v<B.length;v++){var m=i.A.A.A4[B[v]].R[i.L];m&&(l+=m.AD)}}var b=1,D=1;if(i.A.CA&&(i.CQ!==i.AD&&(b=(l-i.CQ+i.AD)/l),D=(l-i.CQ)/l),n.AW){var K=b;b=D,D=K}i.A.M1&&(u=i.L);var E=i.iX-p/2+h+u*(f+d)-u*g;if(E=ZC._l_(E,i.iX-p/2+h,i.iX+p/2-_),i.A.D1>0){var F=f;(f=i.A.D1)<=1&&(f*=F),E+=(F-f)/2}var I=f,x=i.iY,y=null!==ZC._n_(i.A.M6[i.L])?i.A.M6[i.L]:0;if(x=i.A.CA&&"100%"===i.A.KX?n.AN(100*(i.CQ+y)/i.A.A.F9[i.L]["%total-"+i.A.DY]):n.AN(i.CQ+y),i.A.CA){r="100%"===i.A.KX?n.AN(100*(i.CQ-i.AD+y)/i.A.A.F9[i.L]["%total-"+i.A.DY]):n.AN(i.CQ-i.AD+y),x=ZC._i_(x),r=ZC._i_(r);var X=!n.AW&&i.AD>=0||n.AW&&i.AD<=0?-1:1,G=0,Y=0;""!==i.A.QC?(G=i.V9(i.A.QC)[0],Y=0):G=i.A.AU,""!==i.A.O0?(Y=i.V9(i.A.O0)[0],G=0):Y=i.A.AU,G!==Y&&(X=0),o=x-r+X*G,i.AD<0&&(x=r),n.AW?o>0&&(o=ZC._a_(o),x=r):o<0&&(o=ZC._a_(o),x=r-o),n.AW&&i.AD<0&&(o+=Y)}else r=n.AN(y),(o=x-r)<0?(o=ZC._a_(o),x=r-o):x=r;if(i.A.U3&&i.A.CA&&i.A.L>0&&i.A.A.A4[i.A.L-1].R[i.L]&&0===i.A.A.A4[i.A.L-1].R[i.L].AD&&(o-=1,x+=n.AW?1:-1),o<2&&(i.AD>0||i.A.U3)&&(o=1,n.AW?i.A.CA&&i.A.L>0&&(x-=1):i.A.CA?0===i.A.L&&(x-=1):x=y?r-1:Z-2),i.I=I,i.F=o,i.iX=E,i.iY=x,n.AW?i.AD>=n.H9?i.iYVal=x+i.F:i.iYVal=x:i.AD>=n.H9?i.iYVal=x:i.iYVal=x+i.F,i.C.CW){var w="middle";i.C.CW.o.marker&&null!==ZC._n_(t=i.C.CW.o.marker.alignment)&&(w=t),null!==ZC._n_(i.A.o["guide-marker"])&&null!==ZC._n_(t=i.A.o["guide-marker"].alignment)&&(w=t),"node"===w&&(i.D.A68=i.iX+i.I/2)}if(!e){var M;i.setNodeData({x:E,y:x,w:I,h:o});var L=!0;if("none"!==i.A.J5||i.C.J0[i.A.L]||i.C.KO||i.A.T6&&i.A.T6[i.L]?(M=i.O=i.A.I4(i,i.O),L=!1):M=i.O,(0!==i.A.E5.length||i.A.HX||i.O.o.override||i.C.KO)&&(L=!1),i.AM){var P;switch(i.A.CV){default:0!==i.A.E5.length||i.A.HX||typeof i.A.U1===ZC._[31]||i.O.o.override||i.C.KO?(P=new I2(i.A)).copy(M):P=i.A.U1,i.A.HX&&(i.GN(P),P.parse()),P.FG=i.A.FG,P.K=i.K,P.iX=E,P.iY=x,P.I=i.I,P.F=i.F,a.AC<5&&P.I<5?(P.I=ZC.BQ(1,P.I)+1,P.N7=!1,P.CY=!1):P.N7=!0,P.I<5&&a.A1!==a.W&&i.C.P.I/(a.A1-a.W)<1&&(P.R3=!0);break;case"pyramid":case"cone":0!==i.A.E5.length||i.A.HX||typeof i.A.U1===ZC._[31]||i.O.o.override||i.C.KO?(P=new DW(i.A)).copy(M):P=i.A.U1,i.A.HX&&(i.GN(P),P.parse()),P.K=i.K,n.AW&&!i.A.CA?(C=i.AD>=0?0:i.F,s=i.AD>=0?i.F:0):(C=i.AD>=0?i.F:0,s=i.AD>=0?0:i.F),P.E=[],P.E.push([E+i.I/2-b*i.I/2,x+C],[E+i.I/2+b*i.I/2,x+C]),i.A.CA&&0!==D?P.E.push([E+i.I/2+D*i.I/2,x+s],[E+i.I/2-D*i.I/2,x+s]):P.E.push([E+i.I/2,x+s]),P.E.push([P.E[0][0],P.E[0][1]]),i.setNodeData({points:P.E}),P.iX=E,P.iY=x,P.locate(2)}P.Z=i.A.CN("bl",1),P.C7=i.A.CN("bl",0),i.paintPreview(M,L);var O=i.C.K+ZC._[34]+i.C.K+ZC._[35]+i.A.L+ZC._[6];P.DI=O;var R=ZC._c_(i.A.o.tolerance,5),Q=function(){if(typeof i.paint_!==ZC._[31]&&i.paint_(),i.MU(ZC.Q.E9(P.Z,i.G.AB)),ZC.AQ._boxoverlap2_(i,i.C.P,R)&&i.A.FZ&&-1===ZC.AV(i.G.KV,ZC._[39])){var e=I<5?.5:-.5,t=o<3?.5:-.5,a=ZC.Q.GJ("rect",i.A.E8,P.IZ)+'class="'+O+'" id="'+i.K+ZC._[30]+ZC._i_(E+i.A.BL+ZC.MAPTX-e)+","+ZC._i_(x+i.A.BH+ZC.MAPTX-t)+","+ZC._i_(E+i.A.BL+I+ZC.MAPTX+e)+","+ZC._i_(x+i.A.BH+o+ZC.MAPTX+t)+'" />';i.A.A.HZ.push(a)}i.A.U&&i.A.U.AM&&i.F8()};if(i.A.GF&&!i.C.HL){var T=P,k={};T.iX=E,T.iY=x,T.I=I,T.F=o,k.x=E,k.y=x,k.width=I,k.height=o;var N,H=i.A.LH,z=i.C.P;for(N in T.C5=0,k.alpha=M.C5,2===H?(T.iY=z.iY+z.F/2,T.F=1,k.height=i.F,k.y=x):3===H?(T.iY=z.iY,T.F=1,k.height=i.F,k.y=x):4===H?(T.iY=z.iY+z.F,T.F=1,k.height=i.F,k.y=x):5===H?(T.iX=z.iX,T.I=1,k.width=i.I,k.x=E):6===H?(T.iX=z.iX+z.I,T.I=1,k.width=i.I,k.x=E):7===H?(T.iX=z.iX+z.I/2,T.I=1,k.width=i.I,k.x=E):8===H?(T.iX=E-z.I,k.x=E):9===H?(T.iX=E+z.I,k.x=E):10===H?(T.iY=x-z.F,k.y=x):11===H?(T.iY=x+z.F,k.y=x):12===H?(T.I=1,k.width=i.I):13===H&&(T.F=1,k.height=i.F),i.A.FW)T[EA.GP[ZC.EE(N)]]=i.A.FW[N],k[ZC.EE(N)]=M[EA.GP[ZC.EE(N)]];if(null===ZC._n_(i.C.EL)&&(i.C.EL={}),null!==ZC._n_(i.C.EL[i.A.L+"-"+i.L]))for(N in i.C.EL[i.A.L+"-"+i.L])T[EA.GP[ZC.EE(N)]]=i.C.EL[i.A.L+"-"+i.L][N];if(i.C.EL[i.A.L+"-"+i.L]={},ZC._cp_(k,i.C.EL[i.A.L+"-"+i.L]),ZC.AQ._boxoverlap2_(i,i.C.P,R)){var V=new EA(T,k,i.A.JK,i.A.LF,EA.RU[i.A.LI],function(){Q()});V.AX=i,V.OL=function(){i.MU(ZC.Q.E9(P.Z,i.G.AB))},i.LA(V)}}else{if(P.AM||0===i.A.E5.length&&!i.A.HX)if(i.A.WO||(i.A.WO={iX:P.iX,iY:P.iY,F:P.F}),i.A.A34)if(i.A.SN)if(i.A.SN.el&&"RECT"===i.A.SN.el.tagName.toUpperCase()){var J=!1;if(i.A.NA&&i.A.WO&&ZC._a_(P.iX-i.A.WO.iX)<.75&&ZC._a_(P.iY-i.A.WO.iY)<1.5&&ZC._a_(P.F-i.A.WO.F)<1.5&&(J=!0),!J){i.A.WO={iX:P.iX,iY:P.iY,F:P.F};var S=i.A.SN.el.cloneNode(!1);S.setAttribute("id",i.K),S.setAttribute("x",i.iX),S.setAttribute("y",i.iY),S.setAttribute(ZC._[20],i.F),i.A.SN.df?i.G.G2[P.Z.id].appendChild(S):i.A.SN.el.parentNode.appendChild(S)}}else P.paint();else P.paint(),i.A.SN={id:P.K+"-path"},zingchart.DEV.DOMFRAGMENTS&&document.querySelector&&i.G.G2&&i.G.G2[P.Z.id]?(i.A.SN.df=!0,i.A.SN.el=i.G.G2[P.Z.id].querySelector("#"+P.K+"-path")):(i.A.SN.df=!1,i.A.SN.el=ZC.AK(i.A.SN.id));else ZC.AQ._boxoverlap2_(i,i.C.P,R)&&P.paint();P.AM&&Q()}"svg"===i.G.AB&&i.A.applyJsRuleSvg(i.A,i.K+"-path",i.LL()),0!==i.A.E5.length||i.A.HX||typeof i.A.U1!==ZC._[31]||i.O.o.override||i.C.KO||i.A.GF||(i.A.U1=P)}}}}paintPreview(e,t){var i,a,n=this;if(n.C.BA&&n.C.BA.IO&&n.A.R1){var l=n.C.P,r=n.C.BA,o=r.AR,s=(n.iX-l.iX)/l.I,C=(n.iY-l.iY)/l.F;n.A.WJ?i=n.A.WJ:(i=new I2(n.A),n.A.WJ=i,i.copy(e),(a=n.A.o["preview-state"])&&(i.append(a),i.parse())),t||(i.copy(e),(a=n.A.o["preview-state"])&&(i.append(a),i.parse())),i.K=n.K+"-preview",i.DI=n.A.K+"-preview",i.iX=o.iX+o.AU+s*(o.I-2*o.AU),i.iY=o.iY+o.AU+C*(o.F-2*o.AU),i.I=n.I/l.I*(o.I-2*o.AU),i.F=n.F/l.F*(o.F-2*o.AU),o.I/n.A.R.length<10?(i.I=i.I+.5,i.N7=!1,i.CY=!1):(i.N7=!0,i.CY=!0),i.Z=i.C7=r.Z,i.paint()}}HU(e){var t=this;if(e=e||"hover",!ZC.move){var i="";switch(t.A.CV){default:i="box";break;case"pyramid":i="shape"}t.LO({layer:e,type:i,initcb:function(){this.A0=t.A.BP[3],this.B7=t.A.BP[1],this.BW=t.A.BP[1],this.AE=t.A.BP[2]},setupcb:function(){switch(t.A.CV){default:this.iX=t.getNodeData("x"),this.iY=t.getNodeData("y"),this.I=t.getNodeData("w"),this.F=t.getNodeData("h");var e=t.C.P;this.iY<e.iY&&(this.F=this.F-(e.iY-this.iY),this.iY=e.iY),this.iY+this.F>e.iY+e.F&&(this.F=e.iY+e.F-this.iY);break;case"pyramid":case"cone":this.E=t.getNodeData("points")}}}),t.MU(ZC.Q.E9(t.C.K+ZC._[22],t.G.AB),!0),t.A.RX=null}}}class A01 extends MH{setup(){this.S1()}OP(){var e=this;e.paint(!0);var t=e.C.BI(e.A.BT("v")[0]);return[e.iX+(t.AW?0:e.I),e.iY+e.F/2,{reference:e,center:!0}]}HG(e){var t=this,i="top-out",a=t.C.BI(t.A.BT("v")[0]),n=t.AD>=a.H9&&!a.AW||t.AD<a.H9&&a.AW?-1:1;null!==ZC._n_(e.o[ZC._[7]])&&(i=e.o[ZC._[7]]);var l=e.I,r=e.F,o=t.iXVal-l/2,s=t.iY+t.F/2-r/2,C=e.A9%180==90?r/2:l/2;switch(i){case"top-out":case"top":o-=n*(C+5);break;case"top-in":o+=n*(C+5);break;case"middle":o+=n*(t.I/2);break;case"bottom-in":o+=n*(t.I-C-5);break;case"bottom-out":case"bottom":o+=n*(t.I+C+5)}if(null!==ZC._n_(e.o.x)||null!==ZC._n_(e.o.y))null!==ZC._n_(e.o.x)&&(o=e.iX),null!==ZC._n_(e.o.y)&&(s=e.iY);else{var A=ZC._c_(t.A.o.tolerance,5);if(!ZC.AQ._boxoverlap2_(t,t.C.P,A))return[-1,-1]}var Z=e.o.tolerance||[t.C.P.E7,t.C.P.E6,t.C.P.DN,t.C.P.DV];return t.C.AJ["3d"]||(o=ZC.BQ(t.C.P.iX+5-Z[3],o),o=ZC.CX(t.C.P.iX+t.C.P.I-l-5+Z[1],o),s=ZC.BQ(t.C.P.iY+0-Z[0],s),s=ZC.CX(t.C.P.iY+t.C.P.F-r/2-0+Z[2],s)),[ZC._i_(o),ZC._i_(s)]}paint(e){var t=this;if(super.paint(),!t.C.AJ["3d"]){typeof e===ZC._[31]&&(e=!1);var i=t.A.B2,a=t.A.CL;t.setup();var n,l,r,o,s,C=t.A.PT(),A=C.AC,Z=C.ES,c=C.CC,p=C.CS,u=C.F4,h=C.D1,_=C.EZ;if(e?Z=t.A.D["node-"+t.L+"-bar-index"]:t.A.D["node-"+t.L+"-bar-index"]=C.ES,t.A.CA){n=0;for(var d=t.A.A.KH[Z],f=0;f<d.length;f++){var g=t.A.A.A4[d[f]].R[t.L];g&&(n+=g.AD)}}var B=1,v=1;if(t.A.CA&&(t.CQ!==t.AD&&(B=(n-t.CQ+t.AD)/n),v=(n-t.CQ)/n),a.AW){var m=B;B=v,v=m}t.A.M1&&(Z=t.L);var b=t.iY-A/2+c+Z*(h+u)-Z*_;if(b=ZC._l_(b,t.iY-A/2+c,t.iY+A/2-p),t.A.D1>0){var D=h;(h=t.A.D1)<=1&&(h*=D),b+=(D-h)/2}var K=h,E=t.iX,F=null!==ZC._n_(t.A.M6[t.L])?t.A.M6[t.L]:0;if(E=t.A.CA&&"100%"===t.A.KX?a.AN(100*(t.CQ+F)/t.A.A.F9[t.L]["%total-"+t.A.DY]):a.AN(t.CQ+F),t.A.CA){l="100%"===t.A.KX?a.AN(100*(t.CQ-t.AD+F)/t.A.A.F9[t.L]["%total-"+t.A.DY]):a.AN(t.CQ-t.AD+F),E=ZC._i_(E),l=ZC._i_(l);var I=!a.AW&&t.AD>=0||a.AW&&t.AD<=0?1:-1,x=0,y=0;""!==t.A.OS?(x=t.V9(t.A.OS)[0],y=0):x=t.A.AU,""!==t.A.PJ?(y=t.V9(t.A.PJ)[0],x=0):y=t.A.AU,x!==y&&(I=0),r=E-l+I*x,t.AD>0?E=l:r=ZC._a_(r),a.AW?r>0?(r=ZC._a_(r),E=l):(r=ZC._a_(r),E-=r):r<0&&(r=ZC._a_(r),E=l-r)}else l=a.AN(F),(r=E-l)<0?(r=ZC._a_(r),E=l-r):E=l;if(t.A.U3&&t.A.CA&&t.A.L>0&&t.A.A.A4[t.A.L-1].R[t.L]&&0===t.A.A.A4[t.A.L-1].R[t.L].AD&&(r-=1,E+=a.AW?-1:1),r<1&&(t.AD>0||t.A.U3)&&(r=1,a.AW?t.A.CA?0===t.A.L&&(E-=1):E-=2:t.A.L>0&&t.A.CA&&(E-=1)),t.I=r,t.F=K,t.iX=E,t.iY=b,a.AW?t.AD>=a.H9?t.iXVal=E:t.iXVal=E+t.I:t.AD>=a.H9?t.iXVal=E+t.I:t.iXVal=E,!e){var X;t.setNodeData({x:E,y:b,w:r,h:K});var G=!0;if("none"!==t.A.J5||t.C.J0[t.A.L]||t.C.KO||t.A.T6&&t.A.T6[t.L]?(X=t.O=t.A.I4(t,t.O),G=!1):X=t.O,(0!==t.A.E5.length||t.A.HX||t.O.o.override||t.C.KO)&&(G=!1),t.AM){var Y;switch(t.A.CV){default:0!==t.A.E5.length||t.A.HX||typeof t.A.U1===ZC._[31]||t.O.o.override||t.C.KO?(Y=new I2(t.A)).copy(X):Y=t.A.U1,t.A.HX&&(t.GN(Y),Y.parse()),Y.FG=t.A.FG,Y.K=t.K,Y.iX=E,Y.iY=b,Y.I=t.I,Y.F=t.F,i.AC<5&&Y.F<5?(Y.F=ZC.BQ(1,Y.F)+1,Y.N7=!1,Y.CY=!1):Y.N7=!0,Y.F<5&&i.A1!==i.W&&t.C.P.F/(i.A1-i.W)<1&&(Y.R3=!0);break;case"pyramid":case"cone":0!==t.A.E5.length||t.A.HX||typeof t.A.U1===ZC._[31]||t.O.o.override||t.C.KO?(Y=new DW(t.A)).copy(X):Y=t.A.U1,t.A.HX&&(t.GN(Y),Y.parse()),Y.K=t.K,a.AW&&!t.A.CA?(s=t.AD>=0?t.I:0,o=t.AD>=0?0:t.I):(s=t.AD>=0?0:t.I,o=t.AD>=0?t.I:0),Y.E=[],Y.E.push([E+s,b+t.F/2-B*t.F/2],[E+s,b+t.F/2+B*t.F/2]),t.A.CA&&0!==v?Y.E.push([E+o,b+t.F/2+v*t.F/2],[E+o,b+t.F/2-v*t.F/2]):Y.E.push([E+o,b+t.F/2]),Y.E.push([Y.E[0][0],Y.E[0][1]]),t.D.points=Y.E,Y.iX=E,Y.iY=b,Y.locate(2)}Y.Z=t.A.CN("bl",1),Y.C7=t.A.CN("bl",0),t.paintPreview(X,G);var w=t.C.K+ZC._[34]+t.C.K+ZC._[35]+t.A.L+ZC._[6];Y.DI=w;var M=ZC._c_(t.A.o.tolerance,5),L=function(){if(typeof t.paint_!==ZC._[31]&&t.paint_(),t.MU(ZC.Q.E9(Y.Z,t.G.AB)),ZC.AQ._boxoverlap2_(t,t.C.P,M)&&t.A.FZ&&-1===ZC.AV(t.G.KV,ZC._[39])){var e=r<3?.5:-.5,i=K<5?.5:-.5,a=ZC.Q.GJ("rect",t.A.E8,Y.IZ)+'class="'+w+'" id="'+t.K+ZC._[30]+ZC._i_(E+t.A.BL+ZC.MAPTX-e)+","+ZC._i_(b+t.A.BH+ZC.MAPTX-i)+","+ZC._i_(E+t.A.BL+r+ZC.MAPTX+e)+","+ZC._i_(b+t.A.BH+K+ZC.MAPTX+i)+'" />';t.A.A.HZ.push(a)}t.A.U&&t.A.U.AM&&t.F8()};if(t.A.GF&&!t.C.HL){var P=Y,O={};P.iX=E,P.iY=b,P.I=r,P.F=K,O.x=E,O.y=b,O.width=r,O.height=K;var R,Q=t.A.LH,T=t.C.P;for(R in P.C5=0,O.alpha=X.C5,2===Q?(P.iX=T.iX+T.I/2,P.I=1,O.width=t.I,O.x=E):3===Q?(P.iX=T.iX+T.I,P.I=1,O.width=t.I,O.x=E):4===Q?(P.iX=T.iX,P.I=1,O.width=t.I,O.x=E):5===Q?(P.iY=T.iY+T.F,P.F=1,O.height=t.F,O.y=b):6===Q?(P.iY=T.iY,P.F=1,O.height=t.F,O.y=b):7===Q?(P.iY=T.iY+T.F/2,P.F=1,O.height=t.F,O.y=b):8===Q?(P.iY=b+T.F,O.y=b):9===Q?(P.iY=b-T.F,O.y=b):10===Q?(P.iX=E+T.I,O.x=E):11===Q?(P.iX=E-T.I,O.x=E):12===Q?(P.F=1,O.height=t.F):13===Q&&(P.I=1,O.width=t.I),t.A.FW)P[EA.GP[ZC.EE(R)]]=t.A.FW[R],O[ZC.EE(R)]=t.O[EA.GP[ZC.EE(R)]];if(null===ZC._n_(t.C.EL)&&(t.C.EL={}),null!==ZC._n_(t.C.EL[t.A.L+"-"+t.L]))for(R in t.C.EL[t.A.L+"-"+t.L])P[EA.GP[ZC.EE(R)]]=t.C.EL[t.A.L+"-"+t.L][R];if(t.C.EL[t.A.L+"-"+t.L]={},ZC._cp_(O,t.C.EL[t.A.L+"-"+t.L]),ZC.AQ._boxoverlap2_(t,t.C.P,M)){var k=new EA(P,O,t.A.JK,t.A.LF,EA.RU[t.A.LI],function(){L()});k.AX=t,k.OL=function(){t.MU(ZC.Q.E9(Y.Z,t.G.AB))},t.LA(k)}}else(Y.AM||0===t.A.E5.length&&!t.A.HX)&&ZC.AQ._boxoverlap2_(t,t.C.P,M)&&Y.paint(),Y.AM&&L();"svg"===t.G.AB&&t.A.applyJsRuleSvg(t.A,t.K+"-path",t.LL()),0!==t.A.E5.length||t.A.HX||typeof t.A.U1!==ZC._[31]||t.O.o.override||t.C.KO||t.A.GF||(t.A.U1=Y)}}}}paintPreview(e,t){var i,a,n=this;if(n.C.BA&&n.C.BA.IO&&n.A.R1){var l=n.C.P,r=n.C.BA,o=r.AR,s=(n.iX-l.iX)/l.I,C=(n.iY-l.iY)/l.F;n.A.WJ?i=n.A.WJ:(i=new I2(n.A),n.A.WJ=i,i.copy(e),(a=n.A.o["preview-state"])&&(i.append(a),i.parse())),t||(i.copy(e),(a=n.A.o["preview-state"])&&(i.append(a),i.parse())),i.K=n.K+"-preview",i.DI=n.A.K+"-preview",i.iX=o.iX+o.AU+s*(o.I-2*o.AU),i.iY=o.iY+o.AU+C*(o.F-2*o.AU),i.I=n.I/l.I*(o.I-2*o.AU),i.F=n.F/l.F*(o.F-2*o.AU),o.I/n.A.R.length<10?(i.I=i.I+.5,i.N7=!1,i.CY=!1):(i.N7=!0,i.CY=!0),i.Z=i.C7=r.Z,i.paint()}}HU(e){var t=this;if(!ZC.move){var i="";switch(t.A.CV){default:i="box";break;case"pyramid":i="shape"}t.LO({layer:e,type:i,initcb:function(){this.B7=t.A.BP[1],this.BW=t.A.BP[1],this.A0=t.A.BP[3],this.AE=t.A.BP[2]},setupcb:function(){switch(t.A.CV){default:this.iX=t.getNodeData("x"),this.iY=t.getNodeData("y"),this.I=t.getNodeData("w"),this.F=t.getNodeData("h");var e=t.C.P;this.iX<e.iX&&(this.I=this.I-(e.iX-this.iX),this.iX=e.iX),this.iX+this.I>e.iX+e.I&&(this.I=e.iX+e.I-this.iX);break;case"pyramid":case"cone":this.E=t.getNodeData("points")}}}),t.MU(ZC.Q.E9(t.C.K+ZC._[22],t.G.AB),!0),t.A.RX=null}}}class A6E extends MH{setup(){var e=this,t=e.A.B2,i=e.A.CL,a=[t.W,t.A1,i.W,i.A1];if(e.JR!==a){if("scatter"===e.A.AF){if(e.A.M1&&e.A.QF){var n=ZC.AQ.X0(e.A.QF[0],e.A.QF[1]),l=(e.BU-n[0])/(n[1]-n[0]);e.iX=t.H4(e.A.RH)-t.AC/2+e.A.RZ+l*(t.AC-2*e.A.RZ)}else e.iX=t.AN(e.BU);e.iY=i.AN(e.AD)}else e.iY=t.AN(e.BU),e.iX=i.AN(e.AD);e.JR=a}e.IO||(e.copy(e.A),e.E5=e.A.E5,e.DC()&&e.parse(!1),e.IO=!0)}parse(){super.parse(),this.o[ZC._[9]]instanceof Array||(this.BU=this.L)}JB(){return{color:"-1"===this.A.A2.A0?this.O.A0:this.A.A2.A0}}getTooltipPosition(e,t){return super.getTooltipPosition(e,t,this.NH.AI)}KC(){return{"background-color":"-1"===this.A.A2.AE?this.O.AE:this.A.A2.AE,"border-color":"-1"===this.A.A2.AE?this.O.AE:this.A.A2.AE,color:this.O.C1}}paint(e){var t=this;super.paint();var i=t.A.B2,a=t.A.CL;t.setup(),e||(i.CP?ZC.DR(t.iX,a.iX+(a.AW?a.BV:a.AA)-1,a.iX+a.I-(a.AW?a.AA:a.BV)+1)&&ZC.DR(t.iY,i.iY+(i.AW?i.BV:i.AA)-1,i.iY+i.F-(i.AW?i.AA:i.BV)+1)&&t.OU(!1,!0):ZC.DR(t.iX,i.iX+(i.AW?i.BV:i.AA)-1,i.iX+i.I-(i.AW?i.AA:i.BV)+1)&&ZC.DR(t.iY,a.iY+(a.AW?a.AA:a.BV)-1,a.iY+a.F-(a.AW?a.BV:a.AA)+1)&&t.OU(!1,!0))}HU(e){ZC.move||this.SD(e)}}class A78 extends MH{constructor(e){super(e),this.SX=null}parse(){super.parse(),this.o[ZC._[9]]instanceof Array||(this.BU=this.L),this.o[ZC._[9]]instanceof Array&&null!==ZC._n_(this.o[ZC._[9]][2])?this.SX=ZC._f_(this.o[ZC._[9]][2]):this.SX=2}JB(){return{color:"-1"===this.A.A2.A0?this.O.A0:this.A.A2.A0}}getTooltipPosition(e,t){var i=this.A.getSize(ZC._a_(this.SX));return super.getTooltipPosition(e,t,i)}KC(){return{"background-color":"-1"===this.A.A2.AE?this.O.AE:this.A.A2.AE,"border-color":"-1"===this.A.A2.AE?this.O.AE:this.A.A2.AE,color:this.O.C1}}F0(e,t,i,a){var n=this,l=n.A.LX();ZC._cp_(t,l);var r=ZC.AP.G3(n.SX,l);return n.CU=[["%v0",n.BU],["%v1",n.AD],["%v2",r],["%node-size-value",r]],e=super.F0(e,t,i,a)}setup(){var e=this,t=e.A.B2,i=e.A.CL,a=[t.W,t.A1,i.W,i.A1];if(e.JR!==a){if("bubble"===e.A.AF){if(e.A.M1&&e.A.QF){var n=ZC.AQ.X0(e.A.QF[0],e.A.QF[1]),l=(e.BU-n[0])/(n[1]-n[0]);e.iX=t.H4(e.A.RH)-t.AC/2+e.A.RZ+l*(t.AC-2*e.A.RZ)}else e.iX=t.AN(e.BU);e.iY=i.AN(e.AD)}else e.iY=t.AN(e.BU),e.iX=i.AN(e.AD);e.JR=a}e.IO||(e.copy(e.A),e.E5=e.A.E5,e.DC()&&e.parse(!1),e.IO=!0)}HG(e){var t,i=this,a="auto";null!==ZC._n_(t=e.o[ZC._[7]])&&(a=t);var n=e.I,l=e.F,r=i.D["marker.size"],o=i.iX-n/2,s=i.iY-l/2,C=0,A=0;switch(a){case"top":s-=l/2+r,A=i.iY-i.C.P.iY+r;break;case"bottom":s+=l/2+r,A=i.C.P.iY+i.C.P.F-i.iY+r;break;case"left":o-=n/2+r,C=i.iX-i.C.P.iX+r;break;case"right":o+=n/2+r,C=i.C.P.iX+i.C.P.I-i.iX+r}return null!==ZC._n_(e.o.x)&&(o=e.iX),null!==ZC._n_(e.o.y)&&(s=e.iY),o<i.C.P.iX&&(o=i.C.P.iX+C),o+n>i.C.P.iX+i.C.P.I&&(o=i.C.P.iX+i.C.P.I-n-C),s<i.C.P.iY&&(s=i.C.P.iY+A),s+l>i.C.P.iY+i.C.P.F&&(s=i.C.P.iY+i.C.P.F-l-A),[ZC._i_(o),ZC._i_(s)]}paint(e){var t=this;typeof e===ZC._[31]&&(e=!1),super.paint();var i=t.A.B2,a=t.A.CL;t.setup(),t.D["marker.size"]=t.A.getSize(ZC._a_(t.SX)),e||(i.CP?ZC.DR(t.iX,a.iX+(a.AW?a.BV:a.AA)-1,a.iX+a.I-(a.AW?a.AA:a.BV)+1)&&ZC.DR(t.iY,i.iY+(i.AW?i.BV:i.AA)-1,i.iY+i.F-(i.AW?i.AA:i.BV)+1)&&t.OU(!1,!0):ZC.DR(t.iX,i.iX+(i.AW?i.BV:i.AA)-1,i.iX+i.I-(i.AW?i.AA:i.BV)+1)&&ZC.DR(t.iY,a.iY+(a.AW?a.AA:a.BV)-1,a.iY+a.F-(a.AW?a.BV:a.AA)+1)&&t.OU(!1,!0))}HU(e){ZC.move||this.SD(e)}}class A9A extends MH{constructor(e){super(e),this.U=null}parse(){super.parse()}XG(){super.XG();var e=this.C.D;e.update.npv=e.update["node-percent-value"]=this.F0("%npv")}F0(e,t,i,a){var n=this,l=n.A.LX();ZC._cp_(t,l),-1===e.indexOf("%npv")&&-1===e.indexOf("%node-percent-value")||null!==ZC._n_(l[ZC._[12]])&&-1!==l[ZC._[12]]||(l[ZC._[12]]=1);var r=0,o="0";if(n.A.A.KT[n.L]>0&&(o=""+(r=100*n.AD/n.A.A.KT[n.L])),n.A.A.A4.length>1&&n.A.L===n.A.A.A4.length-1){var s=0;if(null===ZC._n_(n.A.o.totals)){for(var C=0;C<n.A.A.A4.length-1;C++)if(n.A.A.A4[C].AM&&null!==ZC._n_(n.A.A.A4[C].R[n.L])){var A=0,Z="0";n.A.A.KT[n.L]>0&&(Z=""+(A=100*n.A.A.A4[C].R[n.L].AD/n.A.A.KT[n.L])),null!==ZC._n_(l[ZC._[12]])&&(Z=A.toFixed(ZC.BQ(0,ZC._i_(l[ZC._[12]])))),s+=ZC._f_(Z)}o=""+(r=Math.max(0,100-s))}}null!==ZC._n_(l[ZC._[12]])&&(o=r.toFixed(ZC.BQ(0,ZC._i_(l[ZC._[12]]))));var c,p=ZC._f_(n.A.A.KT[n.L]||"0");return c=ZC.AP.G3(p,l,n.A),n.CU=[["%node-percent-value",o],["%npv",o],["%pie-total-value",c]],e=super.F0(e,t,i,a)}getTooltipPosition(e,t){var i,a,n,l=this,r=(l.B4+l.BJ)/2%360;switch(t){case"out":a=(i=ZC.AQ.BM(l.iX,l.iY,l.AI+l.DS+e.DS,r))[0]+l.BL,n=i[1]+l.BH,r>270&&r<=360?n-=e.F:r>90&&r<=180?a-=e.I:r>180&&r<=270&&(a-=e.I,n-=e.F);break;case"center":a=(i=ZC.AQ.BM(l.iX,l.iY,l.CM+.5*(l.AI-l.CM)+l.DS,r))[0]+l.BL,n=i[1]+l.BH;break;default:a=l.iX+l.BL,n=l.iY+l.BH}return{x:a,y:n}}OP(e){var t,i=this,a=(i.B4+i.BJ)/2%360,n=0;null!==ZC._n_(t=e["offset-r"])&&(n=ZC._f_(ZC._p_(t))),n<1&&(n*=i.AI);var l=ZC.AQ.BM(i.iX,i.iY,i.CM+.6*(i.AI-i.CM)+i.DS+n,a);return[l[0],l[1],{reference:i,center:!0}]}A8W(){var e=this,t=(e.B4+e.BJ)/2%360,i=ZC.AQ.BM(e.iX,e.iY,e.CM+.5*(e.AI-e.CM)+e.DS,t);return[i[0],i[1]]}setup(){var e=this,t=e.C.BI(e.A.BT("k")[0]),i=e.L%t.H3,a=Math.floor(e.L/t.H3);e.iX=t.iX+i*t.GM+t.GM/2+t.BL,e.iY=t.iY+a*t.GG+t.GG/2+t.BH,e.IO||(e.copy(e.A),e.E5=e.A.E5,e.DC()&&e.parse(!1),e.IO=!0)}JB(e){var t,i={},a="out";return null!==ZC._n_(t=e.o[ZC._[7]])&&(a=t),i.color="out"===a?this.A0:this.C1,i}HG(e){var t,i=this,a="out";null!==ZC._n_(t=e.o[ZC._[7]])&&(a=t);var n,l,r,o,s,C=e.I,A=e.F,Z=(i.B4+i.BJ)/2%360,c=Z;if("out"===a){Z=c=i.A.A.YV["n"+i.L][i.A.L];var p=function(t,a){a<0&&(a=360+a),a%=360;var n=(s=ZC.AQ.BM(i.iX,i.iY,t+i.DS+e.DS+20,a))[0]+e.BL-C/2,l=s[1]+e.BH-A/2;return a>=0&&a<=90||a>=270&&a<=360?n+=C/2+10:n-=C/2+10,[n,l]},u=p(i.AI,c);n=u[0],l=u[1],i.U=e;var h={x:n,y:l,width:C,height:A},_=zingchart.DEV.SPREADTYPE;o=!0;for(var d=0,f=0,g=-1,B=0,v=0;o&&v<1024;){o=!1;for(var m=0,b=i.A.A.U2.length;m<b;m++)r=i.A.A.U2[m],(ZC.AQ.YD(h,r)||h.x+e.I>i.C.P.iX+i.C.P.I||h.x<i.C.P.iX||h.y+e.F>i.C.P.iY+i.C.P.F||h.y<i.C.P.iY)&&(o=!0,0===_?(d+=.4,g*=-1):1===_&&(f+=2),u=p(i.AI+f,c+d*g),h.x=u[0],h.y=u[1],v++,++B>100&&(B=0,0===_?(d=0,f+=2):1===_&&(f=0,d+=.4,g*=-1)))}n=h.x,l=h.y,Z=c+d,r={text:i.A.AT,x:h.x,y:h.y,width:C,height:A,plotindex:i.A.L,nodeindex:i.L},i.A.A.U2.push(r)}else if("in"===a||"radial"===a){var D=i.CM<30?.65:.5;n=(s=i.B4%360==i.BJ%360?0===i.CM?[i.iX,i.iY]:ZC.AQ.BM(i.iX,i.iY,i.CM+.3*(i.AI-i.CM)+i.DS+e.DS,270):ZC.AQ.BM(i.iX,i.iY,i.CM+D*(i.AI-i.CM)+i.DS+e.DS,Z))[0]-C/2+i.BL,l=s[1]-A/2+i.BH}else if(-1!==a.indexOf("fixed=")){var K=a.split(/=|;|,/),E=(i.AI+i.CM)/2,F=Z;K[1]&&(E=(E=ZC.IR(K[1],!0))>=-1&&E<=1||-1!==K[1].indexOf("%")?i.CM+i.DS+E*(i.AI-i.CM):i.CM+i.DS+E),K[2]&&(F=(F=ZC.IR(K[2],!0))>=-1&&F<=1||-1!==K[2].indexOf("%")?i.B4+F*(i.BJ-i.B4):i.B4+F),K[3]&&("+"===K[3].charAt(0)||"-"===K[3].charAt(0)?(F%=360,e.A9=F+ZC._f_(K[3]),e.A9>90&&e.A9<270&&(e.A9+=180)):e.A9=ZC._f_(K[3])),n=(s=ZC.AQ.BM(i.iX,i.iY,E,F))[0]-C/2,l=s[1]-A/2}else"center"===a&&(n=i.iX-C/2+i.BL,l=i.iY-A/2+i.BH);return o&&(n=-9999,l=-9999,e.AM=!1),null!==ZC._n_(e.o.x)&&(n=e.iX),null!==ZC._n_(e.o.y)&&(l=e.iY),n>=-2&&(n=ZC._a_(n)),l>=-2&&(l=ZC._a_(l)),[ZC._i_(n),ZC._i_(l),Z]}appendToValueBox(e){var t=this,i={};if("radial"===e.o[ZC._[7]]){var a=.9*ZC._a_(t.AI-t.CM),n=Math.PI*(t.AI+t.CM)*.9*ZC._a_(t.BJ-t.B4)/360,l=ZC._i_(Math.max(a,n)/(.75*e.DF));if(null===ZC._n_(e.o.visible)?i.visible=1===t.A.A.A4.length||n>1.25*e.DF:i.visible=e.JF.visible,null===ZC._n_(e.o["max-chars"])&&(i["max-chars"]=l),null===ZC._n_(e.o.angle)){var r=(t.B4+t.BJ)/2%360;t.A.A.A4.length>1?n>a?r>0&&r<180?r-=90:r+=90:r>90&&r<270&&(r+=180):r=0,i.angle=r}}return i}F8(e,t){var i,a=this,n=super.F8(e,t);if(e)return n;if(a.AM&&n.AM&&null!==ZC._n_(n.AT)&&""!==n.AT){var l="out";if(null!==ZC._n_(i=n.o[ZC._[7]])&&(l=i),"out"===l){var r=!0;if(null!==ZC._n_(i=n.o.connected)&&(r=ZC._b_(i)),r){var o=new DW(a.A);o.Z=o.C7=a.A.CN("bl",0),o.append(a.A.C2.o),o.K=a.K+"-connector",o.B7=a.A0,o.DP="line",o.E=[];var s=n.D.positioninfo,C=(a.B4+a.BJ)/2%360,A=ZC.AQ.BM(a.iX,a.iY,a.AI+a.DS,C);A[0]+=a.BL,A[1]+=a.BH,o.E.push(A);var Z=ZC.AQ.BM(a.iX,a.iY,a.AI+a.DS+10,C);Z[0]+=a.BL,Z[1]+=a.BH,n.iX>=a.iX?"vml"===a.G.AB?o.E.push([s[0],s[1]+n.F/2]):o.E.push([Z[0],Z[1],s[0],s[1]+n.F/2]):"vml"===a.G.AB?o.E.push([s[0]+n.I+2,s[1]+n.F/2]):o.E.push([Z[0],Z[1],s[0]+n.I+2,s[1]+n.F/2]),o.parse(),o.J2=function(e){return a.J2(e)},o.DC()&&o.parse(),o.AM&&o.paint()}}}}paint(){var e,t=this;if(super.paint(),!(t.AD<0)){var i=t.C.BI(t.A.BT("k")[0]);t.setup();var a="pie-sel-"+t.A.L+"-"+t.L;if(t.o.detached&&typeof t.C.D[a]===ZC._[31]&&(t.C.D[a]=!0),t.AI=ZC.CX(i.GG,i.GM)/2,null!==ZC._n_(t.A.o[ZC._[21]])){var n=ZC.IR(t.A.o[ZC._[21]],!1);t.AI=n<=1?t.AI*n:n}else t.AI=i.JT*t.AI;t.CM<=1&&(t.CM*=t.AI),t.CM=Math.max(0,t.CM),t.o[ZC._[8]]=t.CM,t.DS<=1&&(t.DS*=t.AI),t.o["offset-r"]=t.DS,t.C.D[a]&&(t.DS+=ZC._i_(.15*t.AI));var l=t.O=t.A.I4(t,t);if(t.GN(l),t.AD>=0||0===t.A.A.KT[t.L]){var r=new DW(t.A);r.K=t.K,r.Z=t.A.CN("bl",1),r.C7=t.A.CN("bl",0),r.copy(l);var o=t.iX,s=t.iY;t.DS>0&&(o=(e=ZC.AQ.BM(t.iX,t.iY,t.DS,(t.B4+t.BJ)/2))[0],s=e[1]),r.iX=o,r.iY=s,r.AI=t.AI,r.o[ZC._[21]]=t.AI,r.DP="pie",r.B4=ZC._f_(t.B4),r.BJ=ZC._f_(t.BJ),r.CM=t.CM,r.D.plotidx=t.A.L,r.D.nodeidx=t.L,r.parse(),t.G4=r;var C=function(){if(!t.A.KD&&t.AM){var e=r.F1(),i=t.C.K+ZC._[34]+t.C.K+ZC._[35]+t.A.L+ZC._[6],a=ZC.Q.GJ("poly",t.A.E8,t.A.IZ)+'class="'+i+'" id="'+t.K+ZC._[30]+e+'" />';t.A.A.HZ.push(a)}t.A.U&&t.F8()};if(t.AM)if(t.A.GF&&!t.C.HL){var A=r,Z={};A.iX=o,A.iY=s,A.B4=t.B4,A.BJ=t.BJ,Z.angleStart=t.B4,Z.angleEnd=t.BJ,Z.x=o,Z.y=s;var c,p=t.A.LH;for(c in A.C5=0,Z.alpha=l.C5,2===p?(A.BJ=t.B4,Z.angleEnd=t.BJ):3===p?(A.AI=t.CM,Z.size=t.AI):4===p?(e=ZC.AQ.BM(t.iX,t.iY,1.2*t.AI,(t.B4+t.BJ)/2),A.iX=e[0],A.iY=e[1],Z.x=o,Z.y=s):5===p&&(A.B4=A.BJ=(t.B4+t.BJ)/2,Z.angleStart=t.B4,Z.angleEnd=t.BJ),t.A.FW)A[EA.GP[ZC.EE(c)]]=t.A.FW[c],Z[ZC.EE(c)]=l[EA.GP[ZC.EE(c)]];if(null===ZC._n_(t.C.EL)&&(t.C.EL={}),null!==ZC._n_(t.C.EL[t.A.L+"-"+t.L]))for(c in t.C.EL[t.A.L+"-"+t.L])A[EA.GP[ZC.EE(c)]]=t.C.EL[t.A.L+"-"+t.L][c];t.C.EL[t.A.L+"-"+t.L]={},ZC._cp_(Z,t.C.EL[t.A.L+"-"+t.L]);var u=new EA(A,Z,t.A.JK,t.A.LF,EA.RU[t.A.LI],function(){C()});u.AX=t,t.LA(u)}else r.paint(),C()}else t.A.U&&t.F8()}}HU(e){var t=this;ZC.move||t.LO({layer:e,type:"shape",initcb:function(){if(this.copy(t),this.iX=t.iX,this.iY=t.iY,t.DS>0){var e=ZC.AQ.BM(t.iX,t.iY,t.DS,(t.B4+t.BJ)/2);this.iX=e[0],this.iY=e[1]}this.AI=t.AI,this.DP="pie",this.A0=t.A.BP[3],this.AE=t.A.BP[2],this.B4=ZC._f_(t.B4),this.BJ=ZC._f_(t.BJ),this.CM=t.CM},parsecb:function(){this.o[ZC._[21]]=t.AI,this.o[ZC._[8]]=t.CM,this.o["offset-r"]=t.DS}})}P2(e,t){var i=this;if(super.P2(e,t),"click"===t&&e.which<=1&&i.A.A8B){zingchart.SKIP.ANIMATION=!0,zingchart.SKIP.EVENT=!0;var a="pie-sel-"+i.A.L+"-"+i.L;i.C.D[a]=typeof i.C.D[a]===ZC._[31]||!i.C.D[a],i.C.JW(),zingchart.SKIP.EVENT=!1,zingchart.SKIP.ANIMATION=!1}}}class A4X extends MH{setup(){var e=this,t=e.C.BI(e.A.BT("k")[0]);e.iX=t.iX+t.I/2+t.BL,e.iY=t.iY+t.F/2+t.BH,e.IO||(e.copy(e.A),e.o[ZC._[8]]=null,e.E5=e.A.E5,e.DC()&&e.parse(!1),e.IO=!0)}A8W(){var e=this,t=(e.B4+e.BJ)/2%360,i=ZC.AQ.BM(e.iX,e.iY,e.CM+e.D.bandwidth/2+e.DS,t);return[i[0],i[1]]}F0(e,t,i,a){var n=this,l=n.A.LX();ZC._cp_(t,l);var r=100*n.AD/n.A.A.KT[n.L],o=""+r;return null!==ZC._n_(l[ZC._[12]])&&(o=r.toFixed(ZC.BQ(0,ZC._i_(l[ZC._[12]])))),n.CU=[["%node-percent-value",o],["%npv",o]],e=super.F0(e,t,i,a)}JB(e){var t={},i="in";return null!==ZC._n_(e.o[ZC._[7]])&&(i=e.o[ZC._[7]]),t.color="out"===i?this.A0:this.C1,t}HG(e){var t=this,i="in";null!==ZC._n_(e.o[ZC._[7]])&&(i=e.o[ZC._[7]]);var a,n,l,r=e.I,o=e.F,s=(t.B4+t.BJ)/2%360;return"out"===i?t.L===t.A.R.length-1?(l=ZC.AQ.BM(t.iX,t.iY,t.A.UH+t.A.R.length*(t.D.bandwidth+t.D.bandspace)+15+e.DS,s),a=s>=0&&s<90||s>=270&&s<360?l[0]+10+t.BL:l[0]-r-10+t.BL,n=l[1]-o/2+t.BH):(a=-1,n=-1):(a=(l=ZC.AQ.BM(t.iX,t.iY,t.CM+t.D.bandwidth/2+e.DS,s))[0]-r/2+t.BL,n=l[1]-o/2+t.BH),null!==ZC._n_(e.o.x)&&(a=e.iX),null!==ZC._n_(e.o.y)&&(n=e.iY),[ZC._i_(a),ZC._i_(n),s]}F8(e){var t=this,i=super.F8(e);if(e)return i;if(i.AM&&null!==ZC._n_(i.AT)&&""!==i.AT){var a="in";if(null!==ZC._n_(i.o[ZC._[7]])&&(a=i.o[ZC._[7]]),"out"===a&&t.L===t.A.R.length-1){var n=new DW(t.A);n.Z=n.C7=t.G.usc()?t.G.mc("top"):t.C.AJ["3d"]||t.G.KD?ZC.AK(t.C.K+"-plots-vb-c"):ZC.AK(t.C.K+"-plot-"+t.A.L+"-vb-c"),n.append(t.A.C2.o),n.B7=t.A0,n.DP="line",n.E=[];var l=(t.B4+t.BJ)/2%360,r=ZC.AQ.BM(t.iX,t.iY,t.CM+t.D.bandwidth+i.DS,l),o=ZC.AQ.BM(t.iX,t.iY,t.A.UH+t.A.R.length*(t.D.bandwidth+t.D.bandspace)+15+i.DS,l);r[0]+=t.BL,o[0]+=t.BL,r[1]+=t.BH,o[1]+=t.BH,n.E.push(r),l>=0&&l<90||l>=270&&l<360?n.E.push([o[0],o[1],o[0]+10,o[1]]):n.E.push([o[0],o[1],o[0]-10,o[1]]),n.parse(),n.J2=function(e){return t.J2(e)},n.DC()&&n.parse(),n.AM&&n.paint()}}}paint(){var e,t=this;super.paint();var i=t.C.BI(t.A.BT("k")[0]);t.setup(),t.AI=ZC.CX(i.I,i.F)/2,t.AI=i.JT*t.AI,t.CM=t.A.UH,t.CM<1&&(t.CM=t.A.UH*t.AI);var a=t.A.SW;a<1&&(a=t.A.SW*t.AI);var n=2,l=t.AI-t.CM;if(null!==ZC._n_(t.A.aBandWidths)&&null!==ZC._n_(t.A.aBandWidths[t.L])){(n=ZC._f_(t.A.aBandWidths[t.L]))>1&&(n/=100),n=ZC._i_(l*n),n=ZC.BQ(n,2);for(var r=0,o=0;o<t.L;o++)r+=ZC._f_(t.A.aBandWidths[o]);r>1&&(r/=100),r=ZC._i_(l*r),t.CM+=r,t.AI=t.CM+n}else n=(l-(t.A.R.length-1)*a)/t.A.R.length,n=ZC.BQ(n,2),t.CM+=t.L*(n+a),t.AI=t.CM+n;var s=t.O=t.A.I4(t,t);t.GN(s);var C=new DW(t.A);C.K=t.K,C.Z=t.A.CN("bl",1),C.C7=t.A.CN("bl",0),C.copy(s),C.iX=t.iX,C.iY=t.iY,C.DP="pie",C.B4=t.B4,C.BJ=t.BJ,C.CM=t.CM,C.AI=t.AI,C.parse();var A=C.CM;function Z(){var e=C.F1(),i=t.C.K+ZC._[34]+t.C.K+ZC._[35]+t.A.L+ZC._[6],a=ZC.Q.GJ("poly",t.A.E8,t.A.IZ)+'class="'+i+'" id="'+t.K+ZC._[30]+e+'" />';t.A.A.HZ.push(a),t.A.U&&t.A.U.AM&&t.F8()}if(t.D.bandwidth=n,t.D.bandspace=a,t.A.GF&&!t.C.HL){var c=C,p={};c.B4=t.B4,c.BJ=t.BJ,p.angleStart=t.B4,p.angleEnd=t.BJ;var u=t.A.LH;if(c.C5=0,p.alpha=s.C5,2===u)c.BJ=t.B4,p.angleEnd=t.BJ;else if(3===u)c.CM=A+t.D.bandwidth,p.slice=A;else if(4===u){var h=ZC.AQ.BM(t.iX,t.iY,t.AI,(t.B4+t.BJ)/2);c.iX=h[0],c.iY=h[1],p.x=t.iX,p.y=t.iY}else 5===u&&(c.B4=c.BJ=(t.B4+t.BJ)/2,p.angleStart=t.B4,p.angleEnd=t.BJ);for(e in t.A.FW)c[EA.GP[ZC.EE(e)]]=t.A.FW[e],p[ZC.EE(e)]=s[EA.GP[ZC.EE(e)]];if(t.C.EL||(t.C.EL={}),null!==ZC._n_(t.C.EL[t.A.L+"-"+t.L]))for(e in t.C.EL[t.A.L+"-"+t.L])c[EA.GP[ZC.EE(e)]]=t.C.EL[t.A.L+"-"+t.L][e];t.C.EL[t.A.L+"-"+t.L]={},ZC._cp_(p,t.C.EL[t.A.L+"-"+t.L]);var _=new EA(c,p,t.A.JK,t.A.LF,EA.RU[t.A.LI],function(){Z()});_.AX=t,t.LA(_)}else C.paint(),Z()}HU(e){var t=this;ZC.move||t.LO({layer:e,type:"shape",initcb:function(){this.copy(t),this.iX=t.iX,this.iY=t.iY,this.DP="pie",this.A0=t.A.BP[3],this.AE=t.A.BP[2],this.B4=t.B4,this.BJ=t.BJ,this.CM=t.CM,this.AI=t.AI},parsecb:function(){this.o[ZC._[8]]=null}})}}class A7Q extends MH{constructor(e){super(e);var t=this;t.CD=null,t.CK=null,t.MW="max"}F0(e,t,i,a){var n=this;return"range"===n.A.CV&&(n.CU=[["%node-min-value",n.CD],["%node-max-value",n.CK]]),e=super.F0(e,t,i,a)}HC(){var e=this;if("range"===e.A.CV&&e.o[ZC._[9]]instanceof Array){var t=e.o[ZC._[9]].length;t>2&&(e.BU=ZC._f_(e.o[ZC._[9]][0])),e.CD=ZC._f_(e.o[ZC._[9]][t-2]),e.CK=ZC._f_(e.o[ZC._[9]][t-1]),e.AD=e.CQ=e.CK,e.DL.push(e.CD)}else super.HC()}setup(){var e=this,t=e.A.B2,i=e.A.CL,a=[t.W,t.A1,i.W,i.A1];if(e.JR!==a){var n;n="range"===e.A.CV?i.ST("min"===e.MW?e.CD:e.CK):i.ST(e.CQ);var l=null!==ZC._n_(e.BU),r=t.A4J(l?e.BU:e.L,n,l);e.iX=r[0],e.iY=r[1],e.JR=a}e.IO||(e.copy(e.A),e.E5=e.A.E5,e.DC()&&e.parse(!1),e.IO=!0)}HG(e){var t,i=this,a=i.A.B2,n=i.A.CL,l=i.C.BI("scale"),r=l.iX+l.I/2,o=l.iY+l.F/2,s=e.I,C=e.F,A="out";null!==ZC._n_(e.o[ZC._[7]])&&(A=e.o[ZC._[7]]);var Z=1.15;switch(A){case"out":Z=1.15;break;case"over":Z=1;break;case"in":Z=.85;break;case"middle":Z=.5}var c,p,u=a.EI/(a.V.length-(360===a.EI||a.DQ?0:1)),h=n.ST(i.CQ);switch(i.A.CV){case"matrix":case"piano":var _=(ZC.CX(l.I/2,l.F/2)*l.JT-n.AA)/i.A.A.A4.length;c=n.AA+i.A.L*_,p=n.AA+(i.A.L+1)*_,t=ZC.AQ.BM(r,o,(c+p)/2*Z+e.DS,a.DG+(a.DQ?u/2:0)+i.L*u);break;default:if(null!==ZC._n_(i.BU)){var d=a.DG+a.EI*(i.BU-a.B3)/(a.BK-a.B3);t=ZC.AQ.BM(r,o,n.AA+h*Z+e.DS,d)}else t=ZC.AQ.BM(r,o,n.AA+h*Z+e.DS,a.DG+(a.DQ?u/2:0)+i.L*u)}return t[0]-=s/2,t[1]-=C/2,null!==ZC._n_(e.o.x)&&(t[0]=e.iX),null!==ZC._n_(e.o.y)&&(t[1]=e.iY),[ZC._i_(t[0]),ZC._i_(t[1])]}JB(){return{color:"rose"===this.A.CV?this.A0:this.B7}}KC(){return{"background-color":"rose"===this.A.CV?this.A0:this.B7,"border-color":"rose"===this.A.CV?this.A0:this.B7,color:this.C1}}paint(){var e,t,i=this;super.paint();var a,n,l=i.A.QM,r=i.A.A5D,o=i.A.B2,s=i.A.CL,C=i.A.R;i.setup(),i.CY=!1,i.C7=i.A.CN("bl",0);var A,Z=[],c=[],p=[],u=[],h="range"===i.A.CV;function _(){if(i.A.S9>=i.A.R.length&&i.A.YH){var e=i.C.K+ZC._[34]+i.C.K+ZC._[35]+i.A.L+ZC._[6],t="",n="";-1!==ZC.AV(["line","area","range"],i.A.CV)?""!==(n="range"!==i.A.CV||i.A.XS?ZC.AQ.Q8(ZC.AQ.ZK(i.D.points),4):ZC.AQ.Q8(c,4))&&(t=ZC.Q.GJ("poly",i.A.E8,i.A.IZ)+'class="'+e+'" id="'+i.K+ZC._[30]+n+'" />'):-1!==ZC.AV(["rose","column","bar","matrix","piano"],i.A.CV)&&(n=a.F1(),t=ZC.Q.GJ("poly",i.A.E8,i.A.IZ)+'class="'+e+'" id="'+i.K+ZC._[30]+n+'" data-z-sort="'+(i.A.A.A4.length-i.A.L)+'" />'),i.A.A.HZ.push(t)}i.A.U&&i.A.D.vboxid!==i.K&&i.F8()}var d,f,g,B,v,m=i.O=i.A.I4(i,i);if(i.A.HX&&i.GN(m),-1!==ZC.AV(["line","area","range"],i.A.CV)){Z=[],c=[],p=[],u=[];var b=i.iX,D=i.iY,K=i.iX,E=i.iY;h&&(i.MW="max",i.setup(),b=i.iX,D=i.iY,i.MW="min",i.setup(),K=i.iX,E=i.iY),i.A.IE&&(i.A.E.push([b,D]),i.A.AH.push([b,D])),i.L>0?(A=C[i.L-1])&&(A.MW="max",A.setup(),n=ZC.AQ.K0(A.iX,A.iY,b,D),Z.push(n),c.push(n),h&&(A.MW="min",A.setup(),n=ZC.AQ.K0(A.iX,A.iY,K,E),p.push(n),u.push(n))):(A=C[i.A.R.length-1])&&(A.MW="max",A.setup(),n=ZC.AQ.K0(A.iX,A.iY,b,D),Z.push(n),c.push(n),h&&(A.MW="min",A.setup(),n=ZC.AQ.K0(A.iX,A.iY,K,E),p.push(n),u.push(n))),Z.push([b,D]),c.push([b,D]),h&&(p.push([K,E]),u.push([K,E])),i.L<i.A.R.length-1?(A=C[i.L+1])&&(A.MW="max",A.setup(),n=ZC.AQ.K0(b,D,A.iX,A.iY),Z.push(n),c.push(n),h&&(A.MW="min",A.setup(),n=ZC.AQ.K0(K,E,A.iX,A.iY),p.push(n),u.push(n))):(A=C[0])&&(A.MW="max",A.setup(),n=ZC.AQ.K0(b,D,A.iX,A.iY),Z.push(n),c.push(n),h&&(A.MW="min",A.setup(),n=ZC.AQ.K0(K,E,A.iX,A.iY),p.push(n),u.push(n))),ZC.CR.setup(l,m)}h&&(Z.push(null),Z=Z.concat(p.reverse()),c=c.concat(u.reverse()));var F,I,x,y,X,G,Y,w,M,L,P,O=i.C.P;if(d=i.C.BI("scale"),"area"!==i.A.CV&&"range"!==i.A.CV||(f=d.iX+d.I/2,g=d.iY+d.F/2,B=360/o.V.length,"area"===i.A.CV&&c.push([f,g]),i.A.IE||((v=new DW(i.A)).K=i.K+"-area",v.Z=i.A.CN("bl",0),v.copy(m),v.LE=!0,v.E=c,v.parse(),v.C5=i.A.I0,1===v.C5&&0===v.AU&&(v.A0=ZC.AP.RB(ZC.AP.GD(v.A0),20),v.AE=ZC.AP.RB(ZC.AP.GD(v.AE),20),v.AU=2,v.BW=v.A0),v.CZ=[O.iX,O.iY,O.iX+O.I,O.iY+O.F],ZC.CR.setup(r,v))),i.D.points=Z,i.D.pointsarea=c,i.setNodeData({points:Z,pointsarea:c}),i.A.IE&&i.L===o.A1&&("area"===i.A.CV&&((v=new DW(i.A)).K=i.K+"-area",v.Z=i.A.CN("bl",0),v.copy(i.A),v.LE=!0,v.E=i.A.AH,v.parse(),v.C5=i.A.I0,v.CZ=[O.iX,O.iY,O.iX+O.I,O.iY+O.F],v.paint()),"line"!==i.A.CV&&"area"!==i.A.CV&&"range"!==i.A.CV||(i.A.E[0]&&i.A.E.push([i.A.E[0][0],i.A.E[0][1]]),ZC.CR.paint(l,m,i.A.E))),-1!==ZC.AV(["dots","scatter","area","line"],i.A.CV))i.OU(!1,!0);else if(-1!==ZC.AV(["rose","column","bar","piano","matrix"],i.A.CV)){(a=new DW(i.A)).K=i.K+"-pie",a.copy(m),a.Z=i.A.CN("bl",1),a.C7=i.A.CN("bl",0),f=(d=i.C.BI("scale")).iX+d.I/2,g=d.iY+d.F/2;var R=.1*(B=o.EI/(o.V.length-(360===o.EI||o.DQ?0:1)));i.A.CA||(R=.1*B+.4*B*i.A.L/i.A.A.A4.length),null!==ZC._n_(e=i.A.A6N)&&(R=e<1?B*e:e),G=s.AA;var Q=i.A.A;i.A.CA&&null!==ZC._n_(Q.A2M["stack"+i.L])&&(G+=Q.A2M["stack"+i.L]);var T=ZC._i_(s.ST(i.CQ));if(i.A.CA&&(Q.A2M["stack"+i.L]=T),null===ZC._n_(i.BU))x=o.DG+i.L*B-B/2+R+(o.DQ?B/2:0),y=o.DG+(i.L+1)*B-B/2-R+(o.DQ?B/2:0);else{var k=o.DG+o.EI*(i.BU-o.B3)/(o.BK-o.B3);x=k-B/2+R,y=k+B/2-R}if(X=T+s.AA,"piano"===i.A.CV||"matrix"===i.A.CV){var N=(ZC.CX(d.I/2,d.F/2)*d.JT-s.AA)/i.A.A.A4.length;X=s.AA+i.A.L*N,G=s.AA+(i.A.L+1)*N}i.setNodeData({x:f,y:g,sz:X,sl:G,as:x,ae:y}),a.iX=f,a.iY=g,a.DP="pie",a.B4=x,a.BJ=y,a.AI=X,a.CM=G,a.parse(),a.J2=function(e){return i.J2(e)},a.DC()&&a.parse()}if(i.A.GF&&-1!==ZC.AV(["line","area","rose","column","bar","matrix","piano"],i.A.CV)){switch(i.A.CV){case"line":case"area":I={},(F=new DW(i)).copy(m),F.K=i.K,F.Z=i.A.CN("bl",1),F.C7=i.A.CN("bl",0),F.E=Z,F.C5=0,I.alpha=m.C5,I.points=Z;var H=[];"area"===i.A.CV&&(M={},Y=[],(w=v).E=c,w.C5=0,M.points=c,M.alpha=i.A.I0);break;case"rose":case"column":case"bar":case"matrix":case"piano":I={},(F=a).iX=f,F.iY=g,F.B4=x,F.BJ=y,F.C5=0,I.angleStart=x,I.angleEnd=y,I.x=f,I.y=g,I.size=X,I.alpha=m.C5}var z,V=i.A.LH,J=i.C.P;switch(V){case 1:break;case 7:switch(i.A.CV){case"line":case"area":for(t=0;t<Z.length;t++)H[t]=[Z[t][0],J.iY+J.F/2];if(F.E=H,I.points=Z,"area"===i.A.CV){for(t=0;t<c.length;t++)Y[t]=[c[t][0],J.iY+J.F/2];w.E=Y,M.points=c}}break;case 2:switch(i.A.CV){case"line":case"area":for(t=0;t<Z.length;t++)H[t]=[J.iX+J.I/2,Z[t][1]];if(F.E=H,I.points=Z,"area"===i.A.CV){for(t=0;t<c.length;t++)Y[t]=[J.iX+J.I/2,c[t][1]];w.E=Y,M.points=c}break;case"rose":case"column":case"bar":case"matrix":case"piano":F.BJ=x,I.angleEnd=y}break;case 3:switch(i.A.CV){case"line":case"area":for(t=0;t<Z.length;t++)H[t]=[J.iX+J.I/2,J.iY+J.F/2];if(F.E=H,I.points=Z,"area"===i.A.CV){for(t=0;t<c.length;t++)Y[t]=[J.iX+J.I/2,J.iY+J.F/2];w.E=Y,M.points=c}break;case"rose":case"column":case"bar":case"matrix":case"piano":F.AI=s.AA,I.size=X}break;case 4:switch(i.A.CV){case"line":case"area":for(t=0;t<Z.length;t++)L=J.iX+J.I/2-Z[t][0],P=J.iY+J.F/2-Z[t][1],H[t]=[J.iX+J.I/2-2.5*L,J.iY+J.F/2-2.5*P];if(F.E=H,I.points=Z,"area"===i.A.CV){for(t=0;t<c.length;t++)L=J.iX+J.I/2-c[t][0],P=J.iY+J.F/2-c[t][1],Y[t]=[J.iX+J.I/2-2.5*L,J.iY+J.F/2-2.5*P];w.E=Y,M.points=c}break;case"rose":case"column":case"bar":case"matrix":case"piano":F.AI=2*X,I.size=X}break;case 5:switch(i.A.CV){case"rose":case"column":case"bar":case"matrix":case"piano":F.B4=F.BJ=(x+y)/2,I.angleStart=x,I.angleEnd=y}}for(z in i.A.FW)F[EA.GP[ZC.EE(z)]]=i.A.FW[z],I[ZC.EE(z)]=m[EA.GP[ZC.EE(z)]];if(null===ZC._n_(i.C.EL)&&(i.C.EL={},"area"===i.A.CV&&(i.C.T2={})),null!==ZC._n_(i.C.EL[i.A.L+"-"+i.L])){for(z in i.C.EL[i.A.L+"-"+i.L])F[EA.GP[ZC.EE(z)]]=i.C.EL[i.A.L+"-"+i.L][z];if("area"===i.A.CV)for(z in i.C.T2[i.A.L+"-"+i.L])w[EA.GP[ZC.EE(z)]]=i.C.T2[i.A.L+"-"+i.L][z]}i.C.EL[i.A.L+"-"+i.L]={},ZC._cp_(I,i.C.EL[i.A.L+"-"+i.L]),"area"===i.A.CV&&(i.C.T2[i.A.L+"-"+i.L]={},ZC._cp_(M,i.C.T2[i.A.L+"-"+i.L]));var S=new EA(F,I,i.A.JK,i.A.LF,EA.RU[i.A.LI],function(){_()});S.AX=i,-1!==ZC.AV(["line","area"],i.A.CV)&&(S.IQ=l);var W=null;"area"===i.A.CV&&((W=new EA(w,M,i.A.JK,i.A.LF,EA.RU[i.A.LI],function(){})).AX=i),i.LA(S,W)}else{switch(i.A.CV){case"line":case"area":case"range":i.A.IE||(ZC.CR.paint(l,m,Z),"area"!==i.A.CV&&"range"!==i.A.CV||v.paint());break;case"rose":case"column":case"bar":case"matrix":case"piano":a.paint()}_()}}HU(e){var t=this;ZC.move||(t.A.IJ&&t.A.AM&&(-1!==ZC.AV(["line","area","range"],t.A.CV)?(t.YN(e),"area"!==t.A.CV&&"range"!==t.A.CV||t.LO({layer:e,type:"area",initcb:function(){this.E=t.D.pointsarea},setupcb:function(){this.AZ=0,this.AU=0,this.C5=t.A.I0;var e=t.C.P;this.CZ=[e.iX,e.iY,e.iX+e.I,e.iY+e.F]}})):-1!==ZC.AV(["rose","column","bar","matrix","piano"],t.A.CV)&&t.LO({layer:e,type:"shape",initcb:function(){this.copy(t),this.B7=t.A.BP[1],this.BW=t.A.BP[1],this.A0=t.A.BP[3],this.AE=t.A.BP[2],this.iX=t.getNodeData("x"),this.iY=t.getNodeData("y"),this.CM=t.getNodeData("sl"),this.B4=t.getNodeData("as"),this.BJ=t.getNodeData("ae"),this.DP="pie",this.AI=t.getNodeData("sz")}})),-1!==ZC.AV(["dots","scatter","line"],t.A.CV)&&t.SD(e))}}class A6F extends A00{constructor(e){super(e),this.FK=null}F0(e,t,i,a){var n=this,l=n.A.LX();ZC._cp_(t,l);var r=ZC.AP.G3(n.A.QB[n.L],l);return n.CU=[["%node-goal-value",r],["%g",r]],e=super.F0(e,t,i,a)}HG(e){var t=this;return"goal"===ZC._n_(e.o[ZC._[7]])?[t.FK.iX+t.FK.I/2-e.I/2,t.FK.iY-e.F]:super.HG(e)}HC(){var e,t=this;if(t.DL=[],t.CI=t.o[ZC._[9]],"string"==typeof t.o[ZC._[9]]){var i=ZC.AV(t.A.CL.JP,t.o[ZC._[9]]);-1!==i?t.AD=i:(t.A.CL.JP.push(t.o[ZC._[9]]),t.AD=t.A.CL.JP.length-1)}else t.AD=ZC._f_(t.o[ZC._[9]]);t.A.o.goals&&null!==ZC._n_(e=t.A.o.goals[t.L])&&t.DL.push(ZC._f_(e))}paint(){super.paint()}paint_(){var e,t,i=this;if(null!==ZC._n_(i.A.QB[i.L])&&i.AM){var a=i.A.CL.AN(i.A.QB[i.L]);i.FK=new I2(i.A),i.FK.K=i.K+"-goal",i.FK.copy(i.A.FK),i.FK.Z=i.A.CN("fl",0),i.FK.C7=i.A.CN("fl",0),i.FK.J2=function(e){return i.J2(e)},i.FK.DC()&&i.FK.parse(),null!==ZC._n_(e=i.FK.o)&&null!==ZC._n_(e.styles)&&null!==ZC._n_(t=e.styles[i.L])&&("string"==typeof t?i.FK.append({"background-color":t}):i.FK.append(t),i.FK.parse());var n=.2;if(null!==ZC._n_(e=i.FK.o.extension)&&(n=ZC._f_(e)),i.FK.iX=i.getNodeData("x")-i.I*n,i.FK.I=i.I*(1+2*n),null===ZC._n_(i.A.FK.o[ZC._[20]])&&(i.FK.F=ZC.CX(5,i.C.P.F/30)),i.FK.iY=a-i.FK.F/2,i.FK.AM){i.FK.paint();var l=i.C.K+ZC._[34]+i.C.K+ZC._[35]+i.A.L+ZC._[6];i.A.A.HZ.push(ZC.Q.GJ("rect",i.A.E8,i.A.IZ)+'class="'+l+'" id="'+i.K+"--goal"+ZC._[30]+ZC._i_(i.FK.iX+i.A.BL+ZC.MAPTX)+","+ZC._i_(i.FK.iY+i.A.BH+ZC.MAPTX)+","+ZC._i_(i.FK.iX+i.A.BL+i.FK.I+ZC.MAPTX)+","+ZC._i_(i.FK.iY+i.A.BH+i.FK.F+ZC.MAPTX)+'" />')}}}HU(e){var t=this;if(!ZC.move&&(super.HU(e),t.FK&&t.FK.AM)){var i=new I2(t.A);i.copy(t.FK),i.Z=ZC.AK(t.C.K+ZC._[22]),i.MF=!1,i.iX=t.FK.iX,i.iY=t.FK.iY,i.paint()}}}class A6G extends A01{constructor(e){super(e),this.FK=null}F0(e,t,i,a){var n=this,l=n.A.LX();ZC._cp_(t,l);var r=ZC.AP.G3(n.A.QB[n.L],l);return n.CU=[["%node-goal-value",r],["%g",r]],e=super.F0(e,t,i,a)}HG(e){var t=this;return"goal"===ZC._n_(e.o[ZC._[7]])?[t.FK.iX+t.FK.I,t.FK.iY+t.FK.F/2-e.F/2]:super.HG(e)}HC(){var e,t=this;if(t.DL=[],t.CI=t.o[ZC._[9]],"string"==typeof t.o[ZC._[9]]){var i=ZC.AV(t.A.CL.JP,t.o[ZC._[9]]);-1!==i?t.AD=i:(t.A.CL.JP.push(t.o[ZC._[9]]),t.AD=t.A.CL.JP.length-1)}else t.AD=ZC._f_(t.o[ZC._[9]]);t.A.o.goals&&null!==ZC._n_(e=t.A.o.goals[t.L])&&t.DL.push(ZC._f_(e))}paint(){super.paint()}paint_(){var e,t,i=this;if(null!==ZC._n_(i.A.QB[i.L])&&i.AM){var a=i.A.CL.AN(i.A.QB[i.L]);i.FK=new I2(i.A),i.FK.K=i.K+"-goal",i.FK.copy(i.A.FK),i.FK.Z=i.A.CN("fl",0),i.FK.C7=i.A.CN("fl",0),i.FK.J2=function(e){return i.J2(e)},i.FK.DC()&&i.FK.parse(),null!==ZC._n_(e=i.FK.o)&&null!==ZC._n_(e.styles)&&null!==ZC._n_(t=e.styles[i.L])&&("string"==typeof t?i.FK.append({"background-color":t}):i.FK.append(t),i.FK.parse());var n=.2;if(null!==ZC._n_(e=i.FK.o.extension)&&(n=ZC._f_(e)),i.FK.iY=i.getNodeData("y")-i.F*n,i.FK.F=i.F*(1+2*n),null===ZC._n_(i.A.FK.o[ZC._[19]])&&(i.FK.I=ZC.CX(5,i.C.P.I/30)),i.FK.iX=a-i.FK.I/2,i.FK.AM){i.FK.paint();var l=i.C.K+ZC._[34]+i.C.K+ZC._[35]+i.A.L+ZC._[6];i.A.A.HZ.push(ZC.Q.GJ("rect",i.A.E8,i.A.IZ)+'class="'+l+'" id="'+i.K+"--goal"+ZC._[30]+ZC._i_(i.FK.iX+i.A.BL+ZC.MAPTX)+","+ZC._i_(i.FK.iY+i.A.BH+ZC.MAPTX)+","+ZC._i_(i.FK.iX+i.A.BL+i.FK.I+ZC.MAPTX)+","+ZC._i_(i.FK.iY+i.A.BH+i.FK.F+ZC.MAPTX)+'" />')}}}HU(e){var t=this;if(!ZC.move&&(super.HU(e),t.FK&&t.FK.AM)){var i=new I2(t.A);i.copy(t.FK),i.Z=ZC.AK(t.C.K+ZC._[22]),i.MF=!1,i.iX=t.FK.iX,i.iY=t.FK.iY,i.paint()}}}class A7R extends MH{HC(){var e,t=this;t.o[ZC._[9]]instanceof Array&&null!==ZC._n_(t.o[ZC._[9]][1])&&(t.CI=t.o[ZC._[9]][1],"string"==typeof t.o[ZC._[9]][0]?-1!==(e=ZC.AV(t.A.B2.IX,t.o[ZC._[9]][0]))?t.BU=e:(t.A.B2.IX.push(t.o[ZC._[9]][0]),t.BU=t.A.B2.IX.length-1):t.BU=ZC._f_(t.o[ZC._[9]][0]),"string"==typeof t.o[ZC._[9]][1]?-1!==(e=ZC.AV(t.A.CL.JP,t.o[ZC._[9]][1]))?t.AD=e:(t.A.CL.JP.push(t.o[ZC._[9]][1]),t.AD=t.A.CL.JP.length-1):t.AD=ZC._f_(t.o[ZC._[9]][1]),null!==t.BU&&t.A.TG(t.BU,t.L))}setup(){var e=this,t=e.A.B2,i=e.A.CL,a=[t.W,t.A1,i.W,i.A1];e.JR!==a&&(t.AW?e.iX=t.iX+t.I-t.AA-(e.L-t.W+1)*t.AC:e.iX=t.iX+t.AA+(e.L-t.W)*t.AC,i.AW?e.iY=i.iY+i.AA+(e.A.L-i.B3)*i.AC:e.iY=i.iY+i.F-i.AA-(e.A.L-i.B3+1)*i.AC,e.JR=a),e.IO||(e.copy(e.A),e.E5=e.A.E5,e.DC()&&e.parse(!1),e.IO=!0),e.GN(e)}HG(e){var t=this,i="over";null!==ZC._n_(e.o[ZC._[7]])&&(i=e.o[ZC._[7]]);var a=e.I,n=e.F,l=t.iX+t.I/2-a/2,r=t.iY+t.F/2-n/2;switch(i){case"top":r-=t.F/2+n/2+2;break;case"left":l-=t.I/2+a/2+2;break;case"bottom":r+=t.F/2+n/2+2;break;case"right":l+=t.I/2+a/2+2}return null!==ZC._n_(e.o.x)&&(l=e.iX),null!==ZC._n_(e.o.y)&&(r=e.iY),[ZC._i_(l),ZC._i_(r)]}JB(){return{color:"#000"}}getFormatValue(){return this.CI}F0(e,t,i,a){var n,l=this,r=l.A.CL,o=l.A.L;return n=null!==ZC._n_(r.BY[o])?r.BY[o]:r.V[o],l.CU=[["%y",n],["%scale-value-label",n]],e=super.F0(e,t,i,a)}S1(){var e=this;e.setup();var t,i=e.A.B2,a=e.A.CL;switch(e.A.A7I){case"plot-max":t=(ZC._f_(e.AD)-e.A.YQ)/(e.A.A5E-e.A.YQ);break;case"plot-total":t=(ZC._f_(e.AD)-e.A.YQ)/(e.A.A6O-e.A.YQ);break;case"chart-max":t=(ZC._f_(e.AD)-e.A.X4)/(e.A.A45-e.A.X4);break;case"chart-total":t=(ZC._f_(e.AD)-e.A.X4)/(e.A.A5F-e.A.X4)}switch(ZC.PN(t)||(t=.5),e.I=i.AC,e.F=a.AC,e.A.CV){case"alpha":case"brightness":e.C5=e.A.QJ+t*(e.A.VB-e.A.QJ);break;case"horizontal":e.I=1.01+e.A.QJ*i.AC+t*i.AC*(e.A.VB-e.A.QJ),i.AW&&(e.iX=e.iX+i.AC-e.I);break;case"vertical":e.F=1.01+e.A.QJ*a.AC+t*a.AC*(e.A.VB-e.A.QJ),a.AW||(e.iY=e.iY+a.AC-e.F);break;case"size":e.I=1.01+e.A.QJ*i.AC+t*i.AC*(e.A.VB-e.A.QJ),e.F=1.01+e.A.QJ*a.AC+t*a.AC*(e.A.VB-e.A.QJ),e.iX+=(i.AC-e.I)/2,e.iY+=(a.AC-e.F)/2}e.iX-=e.AU/2,e.iY-=e.AU/2,e.I+=e.AU,e.F+=e.AU}paint(){var e=this;super.paint(),e.S1();var t=e.C.P;if(!(e.iY+5<t.iY||e.iY+5>=t.iY+t.F)){if(e.AM){var i=zingchart.pool.getInstance("I2",e,e.A.K+"-piano-box");if(i.K=e.K,i.copy(e),("none"!==e.A.J5||e.C.J0[e.A.L]||e.C.KO||e.A.T6&&e.A.T6[e.L])&&i.copy(e.A.I4(e,i)),i.iX=e.iX,i.iY=e.iY,i.I=e.I,i.F=e.F,i.Z=e.A.CN("bl",1),i.C7=e.A.CN("bl",0),(-1!==i.BW&&i.AU>0||i.QC+i.OS+i.O0+i.PJ!==""||-1!==i.A0||-1!==i.AE||""!==i.D8||""!==i.GU||""!==i.HQ)&&(i.paint(),!i.KD)){var a=e.C.K+ZC._[34]+e.C.K+ZC._[35]+e.A.L+ZC._[6];e.A.A.HZ.push(ZC.Q.GJ("rect",e.A.E8,e.A.IZ)+'class="'+a+'" id="'+e.K+ZC._[30]+ZC._i_(e.iX+ZC.MAPTX)+","+ZC._i_(e.iY+ZC.MAPTX)+","+ZC._i_(e.iX+e.I+ZC.MAPTX)+","+ZC._i_(e.iY+e.F+ZC.MAPTX)+'" />')}}e.A.U&&e.A.U.AM&&e.F8()}}HU(e){var t=this;ZC.move||t.LO({layer:e,type:"box",initcb:function(){this.AE=t.A.BP[3],this.B7=t.A.BP[1],this.BW=t.A.BP[1],this.A0=t.A.BP[2]},setupcb:function(){this.iX=t.iX,this.iY=t.iY,this.I=t.I,this.F=t.F}})}}class A6H extends MH{setup(){var e=this,t=e.A.B2,i=e.A.CL,a=[t.W,t.A1,i.W,i.A1];e.JR!==a&&(t.AW?e.iX=t.iX+t.I-t.AA-(e.L+1)*t.AC:e.iX=t.iX+t.AA+e.L*t.AC,i.AW?e.iY=i.iY+i.AA+e.A.L*i.AC:e.iY=i.iY+i.F-i.AA-(e.A.L+1)*i.AC,e.JR=a),e.IO||(e.copy(e.A),e.E5=e.A.E5,e.DC()&&e.parse(!1),e.IO=!0)}F0(e,t,i,a){var n,l,r=this,o=ZC._f_(r.A.A.F9["%pstack-"+r.L+"-0-sum"]||"0"),s=r.A.LX();if(ZC._cp_(t,s),r.CU=[],r.A.L>0&&r.A.A.A4[r.A.L-1]&&r.A.A.A4[r.A.L-1].R[r.L]?l=""+(n=100*r.AD/r.A.A.A4[r.A.L-1].R[r.L].AD):(n=100,l="100"),null!==ZC._n_(s[ZC._[12]])&&(l=n.toFixed(ZC.BQ(0,ZC._i_(s[ZC._[12]])))),r.CU.push(["%output-percent-value",l]),o>0){var C=100*r.AD/o,A=""+C;null!==ZC._n_(s[ZC._[12]])&&(A=C.toFixed(ZC.BQ(0,ZC._i_(s[ZC._[12]])))),r.CU.push(["%node-percent-value",A]),r.CU.push(["%npv",A])}return e=super.F0(e,t,i,a)}paint(){var e,t,i,a,n,l,r,o,s,C,A,Z,c,p=this;super.paint();var u=p.A.B2,h=p.A.CL;p.setup(),"static"===p.A.A31?(p.C.AY.SL[p.L],e=p.C.AY.A8A[p.L]):(p.C.AY.B3,e=p.C.AY.BK);var _=p.A.L8;_<=1&&(_*=u.AC);var d=p.A.OK;d<=1&&(d*=u.AC);var f=p.A.M5;f<=1&&(f*=u.AC);var g=u.AC-_-d-f,B=f+g*(p.AD/e),v=0;p.A.L+1<p.A.A.A4.length&&p.A.A.A4[p.A.L+1].R[p.L]&&(v=p.A.A.A4[p.A.L+1].R[p.L].AD);var m=f+g*(v/e);p.D["entry-exit"]=[B,m];var b=p.iX+(u.AW?d:_)+g/2+f/2;if(a=[],h.AW?a.push([b-B/2,p.iY],[b+B/2,p.iY],[b+m/2,p.iY+h.AC],[b-m/2,p.iY+h.AC],[b-B/2,p.iY]):a.push([b-B/2,p.iY+h.AC],[b+B/2,p.iY+h.AC],[b+m/2,p.iY],[b-m/2,p.iY],[b-B/2,p.iY+h.AC]),p.D.points=a,p.AM){var D=new DW(p.A);D.K=p.K+"-trapeze",D.copy(p),D.E=a,D.parse(),D.Z=p.A.CN("bl",1),D.C7=p.A.CN("bl",0),D.paint();var K=D.F1(),E=p.C.K+ZC._[34]+p.C.K+ZC._[35]+p.A.L+ZC._[6];p.A.A.HZ.push(ZC.Q.GJ("poly",p.A.E8,p.A.IZ)+'class="'+E+'" id="'+p.K+ZC._[30]+K+'" />')}for(t=0,i=p.A.P5.length;t<i;t++){var F=p.A.P5[t];F&&null!==ZC._n_(F.o[ZC._[5]])&&null!==ZC._n_(F.o[ZC._[5]][p.L])&&(null===ZC._n_(F.o[ZC._[19]])&&null===ZC._n_(F.o[ZC._[20]])||((n=new I2(p.A)).append(F.o),n.parse()),l=0,r=0,null!==ZC._n_(F.o[ZC._[19]])&&(l=n.I),null!==ZC._n_(F.o[ZC._[20]])&&(r=n.F),0===l&&(l=ZC.BQ(20,u.AC/10)),0===r&&(r=ZC.BQ(16,h.AC/10)),(o=new DW(p.A)).K=p.K+"-arrow-entry",o.copy(p),o.append(F.o),o.parse(),a=[],1===p.A.P5.length?C=p.iY+h.AC/2:(A=h.AC/(p.A.P5.length+1),C=p.iY+A+t*A),u.AW?(s=p.iX+u.AC+l-_-g/2+(B+m)/4-f/2+2,a.push([s,C-2*r/6],[s-2*l/3,C-r/6],[s-2*l/3,C-3*r/6],[s-l,C],[s-2*l/3,C+3*r/6],[s-2*l/3,C+r/6],[s,C+2*r/6],[s,C-2*r/6])):(s=p.iX+_-l+g/2-(B+m)/4+f/2-2,a.push([s,C-2*r/6],[s+2*l/3,C-r/6],[s+2*l/3,C-3*r/6],[s+l,C],[s+2*l/3,C+3*r/6],[s+2*l/3,C+r/6],[s,C+2*r/6],[s,C-2*r/6])),o.E=a,o.parse(),o.Z=p.A.CN("bl",1),o.C7=p.A.CN("bl",0),o.paint(),null!==ZC._n_(F.o[ZC._[10]])&&null!==ZC._n_(F.o[ZC._[10]][p.L])&&""!==F.o[ZC._[10]][p.L]&&(Z=F.o[ZC._[10]][p.L],(c=new DT(p.A)).K=p.K+"-entry-label-"+t,c.GO=p.K+"-entry-label "+p.A.K+"-entry-label zc-entry-label",c.copy(p),c.o.text=Z,c.append(F.o),null!==ZC._n_(F.o.label)&&c.append(F.o.label),c.Z=p.A.CN("fl",0),c.parse(),u.AW?c.iX=s+2:c.iX=s-c.I-2,c.iY=C-c.F/2,c.paint(),c.EC()))}for(t=0,i=p.A.W4.length;t<i;t++){var I=p.A.W4[t];I&&null!==ZC._n_(I.o[ZC._[5]])&&null!==ZC._n_(I.o[ZC._[5]][p.L])&&(null===ZC._n_(I.o[ZC._[19]])&&null===ZC._n_(I.o[ZC._[20]])||((n=new I2(p.A)).append(I.o),n.parse()),l=0,r=0,null!==ZC._n_(I.o[ZC._[19]])&&(l=n.I),null!==ZC._n_(I.o[ZC._[20]])&&(r=n.F),0===l&&(l=ZC.BQ(20,u.AC/10)),0===r&&(r=ZC.BQ(16,h.AC/10)),(o=new DW(p.A)).K=p.K+"-arrow-exit",o.copy(p),o.append(I.o),o.parse(),a=[],1===p.A.W4.length?C=p.iY+h.AC/2:(A=h.AC/(p.A.W4.length+1),C=p.iY+A+t*A),u.AW?(s=p.iX+d+g/2-(B+m)/4+f/2-2,a.push([s,C-2*r/6],[s-2*l/3,C-r/6],[s-2*l/3,C-3*r/6],[s-l,C],[s-2*l/3,C+3*r/6],[s-2*l/3,C+r/6],[s,C+2*r/6],[s,C-2*r/6])):(s=p.iX+u.AC-d-g/2+(B+m)/4-f/2+2,a.push([s,C-2*r/6],[s+2*l/3,C-r/6],[s+2*l/3,C-3*r/6],[s+l,C],[s+2*l/3,C+3*r/6],[s+2*l/3,C+r/6],[s,C+2*r/6],[s,C-2*r/6])),o.E=a,o.parse(),o.Z=p.A.CN("bl",1),o.C7=p.A.CN("bl",0),o.paint(),null!==ZC._n_(I.o[ZC._[10]])&&null!==ZC._n_(I.o[ZC._[10]][p.L])&&""!==I.o[ZC._[10]][p.L]&&(Z=I.o[ZC._[10]][p.L],(c=new DT(p.A)).K=p.K+"-exit-label-"+t,c.GO=p.K+"-exit-label "+p.A.K+"-exit-label zc-exit-label",c.copy(p),c.o.text=Z,c.append(I.o),null!==ZC._n_(I.o.label)&&c.append(I.o.label),c.parse(),c.Z=p.A.CN("fl",0),u.AW?c.iX=s-l-c.I-2:c.iX=s+l+2,c.iY=C-c.F/2,c.paint(),c.EC()))}p.A.U&&p.F8()}HG(e){var t,i=this,a=i.A.B2,n=i.A.CL;null!==ZC._n_(e.o[ZC._[7]])&&(t=e.o[ZC._[7]]);var l=i.iX+a.AC/2-e.I/2,r=i.iY+n.AC/2-e.F/2,o=i.D["entry-exit"],s=(o[0]+o[1])/2;switch(t){case"in":case"auto":break;case"top":r=i.iY+5;break;case"bottom":r=i.iY+n.AC-e.F-5;break;case"left":l=i.iX+a.AC/2-s/2+5;break;case"left-out":l=i.iX+a.AC/2-s/2-e.I-5;break;case"right":l=i.iX+a.AC/2+s/2-e.I-5;break;case"right-out":l=i.iX+a.AC/2+s/2+5}return null!==ZC._n_(e.o.x)&&(l=e.iX),null!==ZC._n_(e.o.y)&&(r=e.iY),[ZC._i_(l),ZC._i_(r)]}HU(){var e=this;if(!ZC.move&&e.A.IJ&&e.A.AM){super.HU();var t=new DW(e.A);t.K=e.K+"-trapeze-hover",t.Z=ZC.AK(e.C.K+ZC._[22]),t.E=e.D.points,t.parse(),t.B7=e.A.BP[1],t.BW=e.A.BP[1],t.A0=e.A.BP[2],t.AE=e.A.BP[3],t.append(e.A.IJ.o),t.parse(),t.J2=function(t){return e.J2(t)},t.DC()&&t.parse(),t.AM&&t.paint()}}}class A6I extends MH{setup(){var e=this,t=e.A.B2,i=e.A.CL,a=[t.W,t.A1,i.W,i.A1];e.JR!==a&&(t.AW?e.iY=t.iY+t.AA+e.L*t.AC:e.iY=t.iY+t.F-t.AA-(e.L+1)*t.AC,i.AW?e.iX=i.iX+i.I-i.AA-(e.A.L+1)*i.AC:e.iX=i.iX+i.AA+e.A.L*i.AC,e.JR=a),e.IO||(e.copy(e.A),e.E5=e.A.E5,e.DC()&&e.parse(!1),e.IO=!0)}F0(e,t,i,a){var n,l,r=this,o=ZC._f_(r.A.A.F9["%pstack-"+r.L+"-0-sum"]||"0"),s=r.A.LX();if(ZC._cp_(t,s),r.CU=[],r.A.L>0&&r.A.A.A4[r.A.L-1]&&r.A.A.A4[r.A.L-1].R[r.L]?l=""+(n=100*r.AD/r.A.A.A4[r.A.L-1].R[r.L].AD):(n=100,l="100"),null!==ZC._n_(s[ZC._[12]])&&(l=n.toFixed(ZC.BQ(0,ZC._i_(s[ZC._[12]])))),r.CU.push(["%output-percent-value",l]),o>0){var C=100*r.AD/o,A=""+C;null!==ZC._n_(s[ZC._[12]])&&(A=C.toFixed(ZC.BQ(0,ZC._i_(s[ZC._[12]])))),r.CU.push(["%node-percent-value",A]),r.CU.push(["%npv",A])}return e=super.F0(e,t,i,a)}HG(e){var t,i=this,a=i.A.B2,n=i.A.CL;null!==ZC._n_(e.o[ZC._[7]])&&(t=e.o[ZC._[7]]);var l=i.iX+n.AC/2-e.I/2,r=i.iY+a.AC/2-e.F/2,o=i.D["entry-exit"],s=(o[0]+o[1])/2;switch(t){case"in":case"auto":break;case"top":l=i.iX+n.AC-e.I-5;break;case"bottom":l=i.iX+5;break;case"left":r=i.iY+a.AC/2-s/2+5;break;case"left-out":r=i.iY+a.AC/2-s/2-e.F-5;break;case"right":r=i.iY+a.AC/2+s/2-e.F-5;break;case"right-out":r=i.iY+a.AC/2+s/2+5}return null!==ZC._n_(e.o.x)&&(l=e.iX),null!==ZC._n_(e.o.y)&&(r=e.iY),[ZC._i_(l),ZC._i_(r)]}paint(){var e,t,i,a,n,l,r,o,s,C,A,Z,c,p=this;super.paint();var u=p.A.B2,h=p.A.CL;p.setup(),"static"===p.A.A31?(p.C.AY.SL[p.L],e=p.C.AY.A8A[p.L]):(p.C.AY.B3,e=p.C.AY.BK);var _=p.A.L8;_<=1&&(_*=u.AC);var d=p.A.OK;d<=1&&(d*=u.AC);var f=p.A.M5;f<=1&&(f*=u.AC);var g=u.AC-_-d-f,B=f+g*(p.AD/e),v=0;p.A.L+1<p.A.A.A4.length&&p.A.A.A4[p.A.L+1].R[p.L]&&(v=p.A.A.A4[p.A.L+1].R[p.L].AD);var m=f+g*(v/e);p.D["entry-exit"]=[B,m];var b=p.iY+(u.AW?_:d)+g/2+f/2;if(r=[],h.AW?r.push([p.iX+h.AC,b-B/2],[p.iX+h.AC,b+B/2],[p.iX,b+m/2],[p.iX,b-m/2],[p.iX+h.AC,b-B/2]):r.push([p.iX,b-B/2],[p.iX,b+B/2],[p.iX+h.AC,b+m/2],[p.iX+h.AC,b-m/2],[p.iX,b-B/2]),p.D.points=r,p.AM){var D=new DW(p.A);D.K=p.K+"-trapeze",D.copy(p),D.E=r,D.parse(),D.Z=p.A.CN("bl",1),D.C7=p.A.CN("bl",0),D.paint();var K=D.F1(),E=p.C.K+ZC._[34]+p.C.K+ZC._[35]+p.A.L+ZC._[6];p.A.A.HZ.push(ZC.Q.GJ("poly",p.A.E8,p.A.IZ)+'class="'+E+'" id="'+p.K+ZC._[30]+K+'" />')}for(t=0,i=p.A.P5.length;t<i;t++){var F=p.A.P5[t];F&&null!==ZC._n_(F.o[ZC._[5]])&&null!==ZC._n_(F.o[ZC._[5]][p.L])&&(null===ZC._n_(F.o[ZC._[19]])&&null===ZC._n_(F.o[ZC._[20]])||((l=new I2(p.A)).append(F.o),l.parse()),a=0,n=0,null!==ZC._n_(F.o[ZC._[19]])&&(a=l.I),null!==ZC._n_(F.o[ZC._[20]])&&(n=l.F),0===n&&(n=ZC.BQ(20,u.AC/10)),0===a&&(a=ZC.BQ(16,h.AC/10)),(o=new DW(p.A)).K=p.K+"-arrow-entry",o.copy(p),o.append(F.o),o.parse(),r=[],1===p.A.P5.length?s=p.iX+h.AC/2:(A=h.AC/(p.A.P5.length+1),s=p.iX+A+t*A),u.AW?(C=p.iY+_-n+g/2-(B+m)/4+f/2-2,r.push([s-2*a/6,C],[s+2*a/6,C],[s+a/6,C+2*n/3],[s+3*a/6,C+2*n/3],[s,C+n],[s-3*a/6,C+2*n/3],[s-a/6,C+2*n/3])):(C=p.iY+u.AC+n-_-g/2+(B+m)/4-f/2+2,r.push([s-2*a/6,C],[s+2*a/6,C],[s+a/6,C-2*n/3],[s+3*a/6,C-2*n/3],[s,C-n],[s-3*a/6,C-2*n/3],[s-a/6,C-2*n/3])),o.E=r,o.parse(),o.Z=p.A.CN("bl",1),o.C7=p.A.CN("bl",0),o.paint(),null!==ZC._n_(F.o[ZC._[10]])&&null!==ZC._n_(F.o[ZC._[10]][p.L])&&""!==F.o[ZC._[10]][p.L]&&(Z=F.o[ZC._[10]][p.L],(c=new DT(p.A)).K=p.K+"-entry-label-"+t,c.GO=p.K+"-entry-label "+p.A.K+"-entry-label zc-entry-label",c.copy(p),c.o.text=Z,c.append(F.o),null!==ZC._n_(F.o.label)&&c.append(F.o.label),c.AT=Z,c.Z=p.A.CN("fl",0),c.parse(),c.iX=s-c.I/2,u.AW?c.iY=C-c.F-2:c.iY=C+2,c.paint(),c.EC()))}for(t=0,i=p.A.W4.length;t<i;t++){var I=p.A.W4[t];I&&null!==ZC._n_(I.o[ZC._[5]])&&null!==ZC._n_(I.o[ZC._[5]][p.L])&&(null===ZC._n_(I.o[ZC._[19]])&&null===ZC._n_(I.o[ZC._[20]])||((l=new I2(p.A)).append(I.o),l.parse()),a=0,n=0,null!==ZC._n_(I.o[ZC._[19]])&&(a=l.I),null!==ZC._n_(I.o[ZC._[20]])&&(n=l.F),0===n&&(n=ZC.BQ(20,u.AC/10)),0===a&&(a=ZC.BQ(16,h.AC/10)),(o=new DW(p.A)).K=p.K+"-arrow-exit",o.copy(p),o.append(I.o),o.parse(),r=[],1===p.A.P5.length?s=p.iX+h.AC/2:(A=h.AC/(p.A.P5.length+1),s=p.iX+A+t*A),u.AW?(C=p.iY+_+g/2+(B+m)/4+f/2+2,r.push([s-2*a/6,C],[s+2*a/6,C],[s+a/6,C+2*n/3],[s+3*a/6,C+2*n/3],[s,C+n],[s-3*a/6,C+2*n/3],[s-a/6,C+2*n/3])):(C=p.iY+u.AC-_-g/2-(B+m)/4-f/2-2,r.push([s-2*a/6,C],[s+2*a/6,C],[s+a/6,C-2*n/3],[s+3*a/6,C-2*n/3],[s,C-n],[s-3*a/6,C-2*n/3],[s-a/6,C-2*n/3])),o.E=r,o.parse(),o.Z=p.A.CN("bl",1),o.C7=p.A.CN("bl",0),o.paint(),null!==ZC._n_(I.o[ZC._[10]])&&null!==ZC._n_(I.o[ZC._[10]][p.L])&&""!==I.o[ZC._[10]][p.L]&&(Z=I.o[ZC._[10]][p.L],(c=new DT(p.A)).K=p.K+"-exit-label-"+t,c.GO=p.K+"-exit-label "+p.A.K+"-exit-label zc-exit-label",c.copy(p),c.o.text=Z,c.append(I.o),null!==ZC._n_(I.o.label)&&c.append(I.o.label),c.AT=Z,c.Z=p.A.CN("fl",0),c.parse(),c.iX=s-c.I/2,u.AW?c.iY=C+n+2:c.iY=C-n-c.F-2,c.paint(),c.EC()))}p.A.U&&p.F8()}HU(){var e=this;if(!ZC.move&&e.A.IJ&&e.A.AM){super.HU();var t=new DW(e.A);t.K=e.K+"-trapeze-hover",t.Z=ZC.AK(e.C.K+ZC._[22]),t.E=e.D.points,t.parse(),t.B7=e.A.BP[1],t.BW=e.A.BP[1],t.A0=e.A.BP[2],t.AE=e.A.BP[3],t.append(e.A.IJ.o),t.parse(),t.J2=function(t){return e.J2(t)},t.DC()&&t.parse(),t.AM&&t.paint()}}}class A7S extends MH{constructor(e){super(e),this.J6=null}setup(){var e=this,t=e.A.B2,i=e.A.CL,a=[t.W,t.A1,i.W,i.A1];if(e.JR!==a&&(null!==e.BU?e.iX=t.AN(e.BU):e.iX=t.H4(e.L),e.iY=i.AN(e.AD),e.D.XP=i.AN(e.AD),e.D.A9Z=i.AN(e.DL[0]),e.D.AB9=i.AN(e.DL[1]),e.D.VW=i.AN(e.DL[2]),e.JR=a),(!e.IO||e.A.IE&&e.A.N4[ZC._[21]]<3)&&(e.copy(e.A),e.E5=e.A.E5,e.DC()&&e.parse(!1),e.J6=new DT(e.A),e.J6.copy(e),e.DL[2]<e.AD&&(e.J6.A0=e.J6.AE=e.C1,e.J6.BW=e.B7),e.DL[2]<e.AD?(e.A.o["trend-down"]&&(e.J6.append(e.A.o["trend-down"]),e.J6.parse()),e.A.N4.down||(e.A.N4.down=new DT(e.A),e.A.N4.down.copy(e.J6),e.A.N4[ZC._[21]]++)):e.DL[2]>e.AD?(e.A.o["trend-up"]&&(e.J6.append(e.A.o["trend-up"]),e.J6.parse()),e.A.N4.up||(e.A.N4.up=new DT(e.A),e.A.N4.up.copy(e.J6),e.A.N4[ZC._[21]]++)):(e.A.o["trend-equal"]&&(e.J6.append(e.A.o["trend-equal"]),e.J6.parse()),e.A.N4.equal||(e.A.N4.equal=new DT(e.A),e.A.N4.equal.copy(e.J6),e.A.N4[ZC._[21]]++)),e.IO=!0),e.A.IE){e.DL[2]<e.AD?e.J6=e.A.N4.down:e.DL[2]>e.AD?e.J6=e.A.N4.up:e.J6=e.A.N4.equal;var n=ZC.CX(e.D.XP,e.D.VW),l=ZC.BQ(e.D.XP,e.D.VW)-ZC.CX(e.D.XP,e.D.VW);l<2&&(l=2),e.D.A88=n+l/2}}F0(e,t,i,a){var n=this,l=n.A.LX();function r(e){return ZC.AP.G3(e,l)}return ZC._cp_(t,l),n.CU=[["%node-value-stock-open",r(n.AD)],["%open",r(n.AD)],["%v0",r(n.AD)],["%node-value-stock-high",r(n.DL[0])],["%high",r(n.DL[0])],["%v1",r(n.DL[0])],["%node-value-stock-low",r(n.DL[1])],["%low",r(n.DL[1])],["%v2",r(n.DL[1])],["%node-value-stock-close",r(n.DL[2])],["%close",r(n.DL[2])],["%v3",r(n.DL[2])]],e=super.F0(e,t,i,a)}HC(){var e,t,i=this;if(i.DL=[],i.o[ZC._[9]]instanceof Array&&5===i.o[ZC._[9]].length)i.BU=ZC._f_(i.o[ZC._[9]][0]),null!==i.BU&&(null!==ZC._n_(i.A.K8[i.BU])&&-1!==ZC.AV(i.A.K8[i.BU],i.L)||i.A.TG(i.BU,i.L)),t=[i.o[ZC._[9]][1],i.o[ZC._[9]][2],i.o[ZC._[9]][3],i.o[ZC._[9]][4]];else if(i.o[ZC._[9]][1]instanceof Array){if("string"==typeof i.o[ZC._[9]][0]){var a=ZC.AV(i.A.B2.IX,i.o[ZC._[9]][0]);-1!==a?i.BU=a:(i.A.B2.IX.push(i.o[ZC._[9]][0]),i.BU=i.A.B2.IX.length-1)}else i.BU=ZC._f_(i.o[ZC._[9]][0]);null!==i.BU&&(null!==ZC._n_(i.A.K8[i.BU])&&-1!==ZC.AV(i.A.K8[i.BU],i.L)||i.A.TG(i.BU,i.L)),t=i.o[ZC._[9]][1]}else t=i.o[ZC._[9]];i.CI=t.join(" "),i.AD=ZC._f_(t[0]),null!==ZC._n_(e=t[1])&&i.DL.push(ZC._f_(e)),null!==ZC._n_(e=t[2])&&i.DL.push(ZC._f_(e)),null!==ZC._n_(e=t[3])&&i.DL.push(ZC._f_(e))}JB(){var e=this,t={};return e.DL[2]<e.AD?t[ZC._[0]]=e.J6.B7:t[ZC._[0]]=e.J6.A0,t.color=e.J6.C1,t}KC(){var e=this,t={};return e.DL[2]<e.AD?t[ZC._[0]]=e.J6.B7:t[ZC._[0]]=e.J6.A0,t[ZC._[61]]=t[ZC._[0]],t.color=e.J6.C1,t}A04(){return this.KC()}paint(){var e,t=this;super.paint();var i=t.A.B2;t.setup();for(var a=i.AC*t.A.Y,n=t.A.L,l=0,r=0;r<t.A.A.K7.stock.length;r++)l++,-1!==ZC.AV(t.A.A.K7[t.A.AF][r],t.A.L)&&(n=r);var o=t.A.CC;o<=1&&(o*=a);var s=t.A.CS;s<=1&&(s*=a);var C=a-o-s,A=t.A.F4;A<=1&&(A*=C),C<1&&(C=.8*a,o=.1*a,s=.1*a);var Z=C,c=t.A.EZ;0!==c&&(A=0),l>1&&(c>1?Z=(C-(l-1)*A+(l-1)*c)/l:c*=Z=(C-(l-1)*A)/(l-(l-1)*c)),Z=ZC._l_(Z,1,C);var p=t.iX-a/2+o+n*(Z+A)-n*c;p=ZC._l_(p,t.iX-a/2+o,t.iX+a/2-s);var u,h=Z,_=ZC.CX(t.D.XP,t.D.VW),d=ZC.BQ(t.D.XP,t.D.VW)-ZC.CX(t.D.XP,t.D.VW);if(d<2&&(d=2),o+s===0&&(p-=.5,h+=1),t.I=h,t.F=d,t.iX=p,t.D.A88=_+d/2,t.setNodeData({x:p,y:_,w:h,h:d}),t.AM){u=ZC.Q.E9(t.G.usc()?t.G.K+"-main-c":t.G.KD?t.C.K+"-plots-bl-c":t.C.K+"-plot-"+t.A.L+"-bl-1-c",t.G.AB);var f,g=t.iX+t.I/2;t.DL[2]<t.AD&&(e=t.A.o["trend-down"])?(t.D[ZC._[73]]=e[ZC._[73]],t.D[ZC._[72]]=e[ZC._[72]]):t.DL[2]>t.AD&&(e=t.A.o["trend-up"])?(t.D[ZC._[73]]=e[ZC._[73]],t.D[ZC._[72]]=e[ZC._[72]]):t.DL[2]===t.AD&&(e=t.A.o["trend-equal"])&&(t.D[ZC._[73]]=e[ZC._[73]],t.D[ZC._[72]]=e[ZC._[72]]);var B=t.A.I4(t,t.J6);switch(t.A.CV){default:var v,m;(f=[]).push([g,t.D.A9Z],[g,ZC.CX(t.D.XP,t.D.VW)],null,[g,t.D.AB9],[g,ZC.BQ(t.D.XP,t.D.VW)]),ZC.CR.paint(u,B,f),m=t.DL[2]<t.AD?t.A.ABW:t.DL[2]>t.AD?t.A.ACQ:t.A.ABK,0!==t.A.E5.length||typeof m===ZC._[31]||t.O.o.override||t.C.KO?(v=new I2(t.A)).copy(B):v=m,t.GN(v),v.Z=t.A.CN("bl",1),v.C7=t.A.CN("bl",0),v.K=t.K,v.iX=p,v.iY=_,v.I=t.I,v.F=t.F,v.paint(),0!==t.A.E5.length||typeof m!==ZC._[31]||t.O.o.override||t.C.KO||(t.DL[2]<t.AD?t.A.ABW=v:t.DL[2]>t.AD?t.A.ACQ=v:t.A.ABK=v);break;case"whisker":case"ohlc":f=[];var b=Math.max(t.I/4,4);f.push([g,t.D.A9Z],[g,t.D.AB9],null,[g-b,t.D.XP],[g,t.D.XP],null,[g+b,t.D.VW],[g,t.D.VW]),t.GN(B),ZC.CR.paint(u,B,f)}if(t.A.FZ){var D=t.C.K+ZC._[34]+t.C.K+ZC._[35]+t.A.L+ZC._[6];t.A.A.HZ.push(ZC.Q.GJ("rect",t.A.E8,t.A.IZ)+'class="'+D+'" id="'+t.K+ZC._[30]+ZC._i_(p+ZC.MAPTX)+","+ZC._i_(t.D.A9Z+ZC.MAPTX)+","+ZC._i_(p+h+ZC.MAPTX)+","+ZC._i_(t.D.AB9+ZC.MAPTX)+'" />')}t.A.U&&t.A.U.AM&&t.F8()}}HU(){var e=this;if(!ZC.move&&e.A.IJ&&e.A.AM)switch(super.HU(),e.A.CV){case"candlestick":var t=new I2(e.A);t.K=e.K+"-hover",t.Z=ZC.AK(e.C.K+ZC._[22]),t.C1=e.A.BP[0],t.AE=e.A.BP[3],t.B7=e.A.BP[1],t.BW=e.A.BP[1],t.A0=e.A.BP[2],t.append(e.A.IJ.o),t.QA=!0,t.parse(),t.J2=function(t){return e.J2(t)},t.DC()&&t.parse(),e.DL[2]<e.AD&&(t.A0=t.AE=t.C1,t.BW=t.B7),e.DL[2]<e.AD&&e.A.o["trend-down"]?(t.append(e.A.o["trend-down"]),t.append(e.A.o[ZC._[71]]),e.A.o["trend-down"][ZC._[71]]&&t.append(e.A.o["trend-down"][ZC._[71]]),t.parse()):e.DL[2]>e.AD&&e.A.o["trend-up"]?(t.append(e.A.o["trend-up"]),t.append(e.A.o[ZC._[71]]),e.A.o["trend-up"][ZC._[71]]&&t.append(e.A.o["trend-up"][ZC._[71]]),t.parse()):e.DL[2]===e.AD&&e.A.o["trend-equal"]&&(t.append(e.A.o["trend-equal"]),t.append(e.A.o[ZC._[71]]),e.A.o["trend-equal"][ZC._[71]]&&t.append(e.A.o["trend-equal"][ZC._[71]]),t.parse()),t.iX=e.getNodeData("x"),t.iY=e.getNodeData("y"),t.I=e.getNodeData("w"),t.F=e.getNodeData("h");var i=e.C.P;t.iY<i.iY&&(t.F=t.F-(i.iY-t.iY),t.iY=i.iY),t.iY+t.F>i.iY+i.F&&(t.F=i.iY+i.F-t.iY),t.AM&&t.paint()}}}class A7T extends MH{setup(){var e=this,t=e.C.BI(e.A.BT("k")[0]),i=e.C.BI(e.A.BT("v")[0]),a=e.L%t.H3,n=Math.floor(e.L/t.H3),l=i.EI/(i.BK-i.B3);e.iX=t.iX+a*t.GM+t.GM/2,e.iY=t.iY+n*t.GG+t.GG/2,e.D.angle=i.DG-i.EI/2+l*(e.AD-i.B3),i.AW&&(e.D.angle=i.DG+i.EI/2-l*(e.AD-i.B3)),e.IO||(e.copy(e.A),e.E5=e.A.E5,e.DC()&&e.parse(!1),e.IO=!0)}HG(e){var t,i,a,n=e.I,l=e.F,r=this,o=r.C.BI(r.A.BT("k")[0]),s=ZC.CX(o.GM/2,o.GG/2)*o.JT,C=r.L%o.H3,A=Math.floor(r.L/o.H3),Z=o.iX+C*o.GM+o.GM/2+o.BL,c=o.iY+A*o.GG+o.GG/2+o.BH;switch(e.o[ZC._[7]]){case"center":i=Z-n/2+r.BL,a=c-l/2+r.BH;break;case"edge":i=(t=ZC.AQ.BM(Z,c,s+e.DS,r.D.angle))[0]-n/2+r.BL,a=t[1]-l/2+r.BH;break;case"tip":i=(t=ZC.AQ.BM(Z,c,r.D[ZC._[21]]+e.DS,r.D.angle))[0]-n/2+r.BL,a=t[1]-l/2+r.BH;break;default:i=(t=ZC.AQ.BM(Z,c,s/2+e.DS,r.D.angle))[0]-n/2+r.BL,a=t[1]-l/2+r.BH}return null!==ZC._n_(e.o.x)&&(i=e.iX),null!==ZC._n_(e.o.y)&&(a=e.iY),[ZC._i_(i),ZC._i_(a)]}JB(){return{color:this.A0}}KC(){return{"background-color":this.A0,"border-color":this.B7,color:this.C1}}paint(){var e,t=this;super.paint(),t.setup(),t.CY=!1;var i=t.C.BI(t.A.BT("k")[0]),a=ZC.CX(i.GM/2,i.GG/2)*i.JT,n=t.L%i.H3,l=Math.floor(t.L/i.H3),r=i.iX+n*i.GM+i.GM/2+i.BL,o=i.iY+l*i.GG+i.GG/2+i.BH,s=ZC.IR(t.A.o[ZC._[21]]||"0.9",!1);s>0&&s<=1&&(s*=a),t.D[ZC._[21]]=s;var C=t.O=t.A.I4(t,t),A=new DW(t.A);function Z(i){var n=[],l=t.A.I1;l[4]>-1&&l[4]<1&&(l[4]=ZC._i_(l[4]*a));var C=ZC.AQ.BM(r,o,l[4],i);if(l[0]>=0)for(e=-l[2];e<=180+l[2];e+=5)n.push(ZC.AQ.BM(C[0],C[1],l[0],i+270-e));else n.push(ZC.AQ.BM(C[0],C[1],ZC._a_(l[0]),i-90)),n.push(ZC.AQ.BM(C[0],C[1],ZC._a_(l[0]),i+90));if(0===l[1])n.push(ZC.AQ.BM(r,o,s>0?s:.9*a,i));else if(l[1]>0)for(C=ZC.AQ.BM(r,o,s>0?s:.9*a,i),e=-l[3];e<=180+l[3];e+=5)n.push(ZC.AQ.BM(C[0],C[1],l[1],i-270-e));else C=ZC.AQ.BM(r,o,(s>0?s:.9*a)+l[1],i),n.push(ZC.AQ.BM(C[0],C[1],ZC._a_(l[1]/(90/l[3])),i+90),ZC.AQ.BM(C[0],C[1],ZC._a_(l[1]),i+90),ZC.AQ.BM(r,o,s>0?s:.9*a,i),ZC.AQ.BM(C[0],C[1],ZC._a_(l[1]),i+270),ZC.AQ.BM(C[0],C[1],ZC._a_(l[1]/(90/l[3])),i+270));return n.push([n[0][0],n[0][1]]),n}function c(){var e=A.F1(),i=t.C.K+ZC._[34]+t.C.K+ZC._[35]+t.A.L+ZC._[6],a=ZC.Q.GJ("poly",t.A.E8,t.A.IZ)+'class="'+i+'" id="'+t.K+ZC._[30]+e+'" />';t.A.A.HZ.push(a)}A.copy(C),A.Z=t.A.CN("bl",1),A.C7=t.A.CN("bl",0),A.K=t.K+"-arrow";var p=t.C.BI(t.A.BT("v")[0]),u=p.DG-p.EI/2,h=Z(t.D.angle);if(t.D.points=h,A.DP="poly",A.E=h,A.parse(),A.J2=function(e){return t.J2(e)},A.DC()&&A.parse(),t.A.GF&&!t.C.HL){var _,d=A,f={},g=t.A.LH;for(_ in d.C5=0,f.alpha=C.C5,2===g&&(d.A30=u,f.A30=t.D.angle),t.A.FW)d[EA.GP[ZC.EE(_)]]=t.A.FW[_],f[ZC.EE(_)]=C[EA.GP[ZC.EE(_)]];if(t.C.EL||(t.C.EL={}),null!==ZC._n_(t.C.EL[t.A.L+"-"+t.L]))for(_ in t.C.EL[t.A.L+"-"+t.L]){var B=EA.GP[ZC.EE(_)];null===ZC._n_(B)&&(B=_),d[B]=t.C.EL[t.A.L+"-"+t.L][_]}t.C.EL[t.A.L+"-"+t.L]={},ZC._cp_(f,t.C.EL[t.A.L+"-"+t.L]);var v=new EA(d,f,t.A.JK,t.A.LF,EA.RU[t.A.LI],function(){c()});v.AX=t,v.A0T=function(e,t){null!==ZC._n_(t.A30)&&(e.E=Z(t.A30))},t.LA(v),t.A.U&&t.F8()}else A.paint(),t.A.U&&t.F8(),c()}HU(e){var t=this;ZC.move||t.LO({layer:e,type:"shape",initcb:function(){this.copy(t),this.B7=t.A.BP[1],this.BW=t.A.BP[1],this.A0=t.A.BP[3],this.AE=t.A.BP[2],this.E=t.D.points,this.Z=this.C7=t.A.CN("bl",2)}})}}class A7U extends MH{constructor(e){super(e);var t=this;t.CD=null,t.CK=null,t.MW="min"}F0(e,t,i,a){var n=this;return n.CU=[["%range-set",n.MW],["%node-min-value",n.CD],["%node-max-value",n.CK]],e=super.F0(e,t,i,a)}HC(){var e,t,i=this;i.o[ZC._[9]][1]instanceof Array?("string"==typeof i.o[ZC._[9]][0]?-1!==(t=ZC.AV(i.A.B2.IX,i.o[ZC._[9]][0]))?i.BU=t:(i.A.B2.IX.push(i.o[ZC._[9]][0]),i.BU=i.A.B2.IX.length-1):i.BU=ZC._f_(i.o[ZC._[9]][0]),null!==i.BU&&(null!==ZC._n_(i.A.K8[i.BU])&&-1!==ZC.AV(i.A.K8[i.BU],i.L)||i.A.TG(i.BU,i.L)),e=i.o[ZC._[9]][1]):e=i.o[ZC._[9]],"string"==typeof e[0]?-1!==(t=ZC.AV(i.A.CL.JP,e[0]))?i.CD=t:(i.A.CL.JP.push(e[0]),i.CD=i.A.CL.JP.length-1):i.CD=ZC._f_(e[0]),i.DL.push(i.CD),"string"==typeof e[1]?-1!==(t=ZC.AV(i.A.CL.JP,e[1]))?i.CK=t:(i.A.CL.JP.push(e[1]),i.CK=i.A.CL.JP.length-1):i.CK=ZC._f_(e[1]),i.CI=e.join(" "),i.AD=i.CK}setup(){var e=this,t=e.A.P0,i=e.A.B2,a=e.A.CL,n=[i.W,i.A1,a.W,a.A1,e.MW];null===ZC._n_(e.AH)&&(e.AH=[]),e.JR!==n&&(t?(null!==e.BU?e.iY=i.AN(e.BU):e.iY=i.H4(e.L),e.iX=a.AN("min"===e.MW?e.CD:e.CK)):(null!==e.BU?e.iX=i.AN(e.BU):e.iX=i.H4(e.L),e.iY=a.AN("min"===e.MW?e.CD:e.CK)),e.JR=n),e.IO||(e.copy(e.A),e.E5=e.A.E5,e.DC()&&e.parse()),e.D.NK=a.AN(e.CD),e.D.RI=a.AN(e.CK),e.IO=!0}JB(){return{color:this.B7}}KC(){return{"background-color":this.B7,"border-color":this.B7,color:this.C1}}paint(){var e,t=this;super.paint();var i=t.A.B2,a=t.A.QM,n=t.A.P0,l=t.A.R;t.setup(),null!==ZC._n_(t.A.o[t.MW+"-line"])&&(t.append(t.A.o[t.MW+"-line"]),t.parse()),t.CY=!1,t.C7=t.A.CN("bl",1);var r,o,s,C,A,Z,c,p,u,h,_,d,f,g=[],B=[];switch(t.A.CV){default:var v=!0;!i.EF&&t.L<=i.W&&(v=!1),l[t.L-t.A.Y]||(v=!1),v&&(l[t.L-t.A.Y].MW=t.MW,l[t.L-t.A.Y].setup(),n?(o=[t.D.NK,t.iY],s=[l[t.L-t.A.Y].D.NK,l[t.L-t.A.Y].iY],C=[t.D.RI,t.iY],A=[l[t.L-t.A.Y].D.RI,l[t.L-t.A.Y].iY],Z=ZC.AQ.A64(o,s,C,A),r=ZC.DR(Z[1],l[t.L-t.A.Y].iY,t.iY)?Z:ZC.AQ.K0(l[t.L-t.A.Y].iX,l[t.L-t.A.Y].iY,l[t.L].iX,l[t.L].iY),B.push([r[0],ZC._i_(r[1])]),g.push([r[0],r[1]])):(o=[t.iX,t.D.NK],s=[l[t.L-t.A.Y].iX,l[t.L-t.A.Y].D.NK],C=[t.iX,t.D.RI],A=[l[t.L-t.A.Y].iX,l[t.L-t.A.Y].D.RI],Z=ZC.AQ.A64(o,s,C,A),r=ZC.DR(Z[0],l[t.L-t.A.Y].iX,t.iX)?Z:ZC.AQ.K0(l[t.L-t.A.Y].iX,l[t.L-t.A.Y].iY,l[t.L].iX,l[t.L].iY),B.push([ZC._i_(r[0]),r[1]]),g.push([r[0],r[1]]))),n?B.push([t.iX,ZC._i_(t.iY)]):B.push([ZC._i_(t.iX),t.iY]),g.push([t.iX,t.iY]);var m=!0;!i.EF&&t.L>=i.A1&&(m=!1),l[t.L+t.A.Y]||(m=!1),m&&(l[t.L+t.A.Y].MW=t.MW,l[t.L+t.A.Y].setup(),n?(o=[t.D.NK,t.iY],s=[l[t.L+t.A.Y].D.NK,l[t.L+t.A.Y].iY],C=[t.D.RI,t.iY],A=[l[t.L+t.A.Y].D.RI,l[t.L+t.A.Y].iY],Z=ZC.AQ.A64(o,s,C,A),r=ZC.DR(Z[1],l[t.L+t.A.Y].iY,t.iY)?Z:ZC.AQ.K0(l[t.L].iX,l[t.L].iY,l[t.L+t.A.Y].iX,l[t.L+t.A.Y].iY),B.push([r[0],ZC._i_(r[1])]),g.push([r[0],r[1]])):(o=[t.iX,t.D.NK],s=[l[t.L+t.A.Y].iX,l[t.L+t.A.Y].D.NK],C=[t.iX,t.D.RI],A=[l[t.L+t.A.Y].iX,l[t.L+t.A.Y].D.RI],Z=ZC.AQ.A64(o,s,C,A),r=ZC.DR(Z[0],l[t.L+t.A.Y].iX,t.iX)?Z:ZC.AQ.K0(l[t.L].iX,l[t.L].iY,l[t.L+t.A.Y].iX,l[t.L+t.A.Y].iY),B.push([ZC._i_(r[0]),r[1]]),g.push([r[0],r[1]])));break;case"spline":if(typeof t.D["intersect.index"]===ZC._[31]&&(t.D["intersect.index"]=-1,l[t.L+t.A.Y])){var b=[],D=[],K=[];for(c=-1;c<3;c++)l[t.L+c]?(l[t.L+c].setup(),b.push(l[t.L+c].D.NK),K.push(l[t.L+c].D.RI),n?D.push(l[t.L+c].iY):D.push(l[t.L+c].iX)):(b.push(t.D.NK),K.push(t.D.RI),n?D.push(t.iY):D.push(t.iX));u=ZC._a_(D[2]-D[1]);var E=ZC.AQ.YW(t.A.QO,b,ZC._i_(u)),F=ZC.AQ.YW(t.A.QO,K,ZC._i_(u));if(l[t.L+t.A.Y].CD===l[t.L+t.A.Y].CK)t.D["intersect.index"]=E.length;else{var I=E[0][1]-F[0][1];for(c=1,p=E.length;c<p;c++)if(Math.round(I*(E[c][1]-F[c][1]),2)<=0){t.D["intersect.index"]=c+1;break}}t.D["spline.points.min"]=E,t.D["spline.points.max"]=F,t.D["spline.xdiff"]=u}u=t.D["spline.xdiff"]||i.AC,null===ZC._n_(t.A.A0A)&&(t.A.A0A={}),null===ZC._n_(t.A.SG)&&(t.A.SG={});var x=[],y=[];if("min"===t.MW){if(null!==ZC._n_(e=t.A.SG.max))for(c=e.length-1;c>=0;c--)t.AH.push(t.A.SG.max[c]);if(null!==ZC._n_(e=t.A.SG.min))for(c=0,p=e.length;c<p;c++)t.AH.push(e[c])}if(null!==ZC._n_(e=t.A.A0A[t.MW]))for(g=[],c=0,p=e.length;c<p;c++)g.push(e[c]);if(l[t.L+t.A.Y]&&t.L<i.A1){"min"===t.MW?h=t.D["spline.points.min"]:"max"===t.MW&&(h=t.D["spline.points.max"]),_=-1===t.D["intersect.index"]?ZC._i_(h.length/2):t.D["intersect.index"];var X=n?i.AW?1:-1:i.AW?-1:1;for(c=0;c<_;c++)n?(g.push([h[c][1],t.iY+X*h[c][0]*u]),B.push([h[c][1],ZC._i_(t.iY+X*h[c][0]*u)])):(g.push([t.iX+X*h[c][0]*u,h[c][1]]),B.push([ZC._i_(t.iX+X*h[c][0]*u),h[c][1]]));var G=1===t.I0?ZC.CX(2,_):1;for(c=_-1,p=h.length;c<p;c++)n?x.push([h[c][1],t.iY+X*h[c][0]*u]):x.push([t.iX+X*h[c][0]*u,h[c][1]]);for(c=_-G,p=h.length;c<p;c++)n?y.push([h[c][1],ZC._i_(t.iY+X*h[c][0]*u)]):y.push([ZC._i_(t.iX+X*h[c][0]*u),h[c][1]])}else g.push([l[t.L].iX,l[t.L].iY]),n?(x.push([l[t.L].iX,ZC._i_(l[t.L].iY)]),B.push([l[t.L].iX,ZC._i_(l[t.L].iY)]),y.push([l[t.L].iX,ZC._i_(l[t.L].iY)])):(x.push([ZC._i_(l[t.L].iX),l[t.L].iY]),B.push([ZC._i_(l[t.L].iX),l[t.L].iY]),y.push([ZC._i_(l[t.L].iX),l[t.L].iY]));t.A.A0A[t.MW]=x,t.A.SG[t.MW]=y}if("min"===t.MW)for(c=0,p=B.length;c<p;c++)t.AH.push(B[c]);else for(c=B.length-1;c>=0;c--)t.AH.push(B[c]);if("max"===t.MW){var Y=new DW(t.A);Y.K=t.K+"-area",Y.Z=t.A.CN("bl",0),Y.copy(t),Y.AZ=0,Y.AU=0,Y.EW=0,Y.GA=0,Y.parse(),Y.E=t.AH,Y.C5=t.A.I0;var w=t.C.P;for(Y.CZ=[w.iX,w.iY,w.iX+w.I,w.iY+w.F],Y.paint(),t.D.pointsarea=[],c=0,p=t.AH.length;c<p;c++)t.D.pointsarea.push(t.AH[c]);t.AH=[],t.A.FZ&&(f=Y.F1(),d=t.C.K+ZC._[34]+t.C.K+"-plot-"+t.A.L+ZC._[6],t.A.A.HZ.push(ZC.Q.GJ("poly",t.A.E8,t.A.IZ)+'class="'+d+'" id="'+t.K+"--area"+ZC._[30]+f+'" />'))}"min"===t.MW?t.D.points=g:(t.D.points.push(null),t.D.points=t.D.points.concat(g));var M=new D0(t);M.copy(t),M.append(t.A.o[t.MW+"-line"]),M.parse(),ZC.CR.setup(a,M),ZC.CR.paint(a,M,g),"max"===t.MW&&t.paintPreview(t,t.D.points,t.D.pointsarea);if(n?ZC.DR(t.iY,i.iY-1,i.iY+i.F+1)&&ZC.DR(t.iX,i.iX-1,i.iX+i.I+1):ZC.DR(t.iX,i.iX-1,i.iX+i.I+1)&&ZC.DR(t.iY,i.iY-1,i.iY+i.F+1)){var L=new DW(t.A);L.K=t.K+"-marker-"+t.MW,L.Z=L.C7=t.A.CN("fl",0),L.iX=t.iX,L.iY=t.iY,L.B7=t.A.BP[3],L.BW=t.A.BP[3],L.A0=t.A.BP[2],L.AE=t.A.BP[2],L.append(t.A.A2.o),t.A.o[t.MW+"-marker"]&&L.append(t.A.o[t.MW+"-marker"]),L.parse(),L.J2=function(e){return t.J2(e)},L.DC()&&L.parse(),L.AM&&"none"!==L.AF&&(t.A.N1>i.A1-i.W&&L.paint(),t.D["marker.type"]=L.DP,d=t.C.K+ZC._[34]+t.C.K+ZC._[35]+t.A.L+ZC._[6],i.AW&&g.reverse(),t.A.FZ&&(""!==(f=ZC.AQ.Q8(ZC.AQ.ZK(t.D.points),4))?t.A.A.HZ.push(ZC.Q.GJ("poly",t.A.E8,t.A.IZ)+'class="'+d+'" id="'+t.K+"--"+t.MW+ZC._[30]+f+'" />'):t.A.A.HZ.push(ZC.Q.GJ("circle",t.A.E8,t.A.IZ)+'class="'+d+'" id="'+t.K+"--"+t.MW+ZC._[30]+ZC._i_(L.iX+ZC.MAPTX)+","+ZC._i_(L.iY+ZC.MAPTX)+","+ZC._i_(1.5*ZC.BQ(3,L.AI))+'" />'))),t.A.U&&t.A.U.AM&&t.F8()}}paintPreview(e,t,i){var a=this;if(a.C.BA&&a.C.BA.IO&&a.A.R1){var n,l=a.C.P,r=a.C.BA,o=a.A.mapPointsToPreview(i),s=new DW(a.A);s.copy(e),s.CY=!0,s.LE=!0,s.AZ=0,s.AU=0,s.EW=0,s.GA=0,s.C5=a.A.I0,s.CZ=[l.iX,l.iY,l.iX+l.I,l.iY+l.F],s.K=a.K+"-area-preview",s.Z=r.Z,s.E=o,s.paint();var C=a.A.mapPointsToPreview(t);a.A.WI?n=a.A.WI:(n=new D0(a),a.A.WI=n),n.copy(e);var A=ZC.Q.E9(r.Z,a.G.AB);n.AZ=1,ZC.CR.paint(A,n,C,null,3)}}HU(){var e=this,t=e.A.P0;if(!ZC.move){var i=e.A.B2;if(e.A.GB&&e.A.AM){var a=ZC.Q.E9(e.C.K+ZC._[22],e.G.AB),n=new DW(e.A);if(n.K=e.K+"-area-hover",n.Z=ZC.AK(e.C.K+ZC._[22]),n.LE=!0,n.copy(e),n.append(e.A.IJ.o),n.E=e.D.pointsarea,n.parse(),n.AM){n.C5=e.A.I0;var l=e.C.P;n.CZ=[l.iX,l.iY,l.iX+l.I,l.iY+l.F],ZC.CR.setup(a,n),n.paint()}var r=ZC.Q.E9(e.C.K+ZC._[22],e.G.AB),o=new D0(e.A);o.K=e.K+"-line-hover",o.CY=!1,o.B7=e.A.BP[3],o.append(e.A.IJ.o),o.parse(),o.J2=function(t){return e.J2(t)},o.DC()&&o.parse(),o.AM&&(ZC.CR.setup(r,o),ZC.CR.paint(r,o,e.D.points))}if(e.A.N1>i.A1-i.W&&e.A.GB&&e.A.AM){super.HU();var s=new DW(e.A);s.K=e.K+"-marker-max-hover",s.Z=ZC.AK(e.C.K+ZC._[22]),s.DP=e.D["marker.type"],t?(s.iY=e.iY,s.iX=e.D.RI):(s.iX=e.iX,s.iY=e.D.RI),s.B7=e.A.BP[3],s.BW=e.A.BP[3],s.A0=e.A.BP[2],s.AE=e.A.BP[2],s.append(e.A.GB.o),s.parse(),s.J2=function(t){return e.J2(t)},s.DC()&&s.parse(),s.AM&&"none"!==s.AF&&s.paint(),s.K=e.K+"-marker-min-hover",t?s.iX=e.D.NK:s.iY=e.D.NK,s.AM&&"none"!==s.AF&&s.paint()}}}}class A7Z extends MH{constructor(e){super(e),this.U=null}parse(){super.parse()}XG(){super.XG();var e=this.C.D;e.update.npv=e.update["node-percent-value"]=this.F0("%npv")}F0(e,t,i,a){var n=this,l=n.A.LX();ZC._cp_(t,l),-1===e.indexOf("%npv")&&-1===e.indexOf("%node-percent-value")||null!==ZC._n_(l[ZC._[12]])&&-1!==l[ZC._[12]]||(l[ZC._[12]]=1);var r=0,o="0";if(n.A.A.KT[n.L]>0&&(o=""+(r=100*n.AD/n.A.A.KT[n.L])),n.A.A.A4.length>1&&n.A.L===n.A.A.A4.length-1){var s=0;if(null===ZC._n_(n.A.o.totals)){for(var C=0;C<n.A.A.A4.length-1;C++)if(n.A.A.A4[C].AM&&null!==ZC._n_(n.A.A.A4[C].R[n.L])){var A=0,Z="0";n.A.A.KT[n.L]>0&&(Z=""+(A=100*n.A.A.A4[C].R[n.L].AD/n.A.A.KT[n.L])),null!==ZC._n_(l[ZC._[12]])&&(Z=A.toFixed(ZC.BQ(0,ZC._i_(l[ZC._[12]])))),s+=ZC._f_(Z)}o=""+(r=Math.max(0,100-s))}}null!==ZC._n_(l[ZC._[12]])&&(o=r.toFixed(ZC.BQ(0,ZC._i_(l[ZC._[12]]))));var c,p=ZC._f_(n.A.A.KT[n.L]||"0");return c=ZC.AP.G3(p,l,n.A),n.CU=[["%node-percent-value",o],["%npv",o],["%pie-total-value",c]],e=super.F0(e,t,i,a)}OP(e){var t,i=this,a=(i.B4+i.BJ)/2%360,n=0;null!==ZC._n_(t=e["offset-r"])&&(n=ZC._f_(ZC._p_(t))),n<1&&(n*=i.AI);var l=new CB(i.C,(i.CM+.5*(i.AI-i.CM)+i.DS+n)*ZC.EH(a),(i.CM+.5*(i.AI-i.CM)+i.DS+n)*ZC.EN(a),0).EB;return[l[0],l[1],{reference:i,center:!0}]}setup(){var e=this,t=e.C.BI(e.A.BT("k")[0]),i=e.L%t.H3,a=Math.floor(e.L/t.H3);e.iX=t.iX+i*t.GM+t.GM/2+t.BL,e.iY=t.iY+a*t.GG+t.GG/2+t.BH,e.IO||(e.copy(e.A),e.E5=e.A.E5,e.DC()&&e.parse(),e.IO=!0)}JB(e){var t={},i="out";return null!==ZC._n_(e.o[ZC._[7]])&&(i=e.o[ZC._[7]]),t.color="out"===i?this.A0:this.C1,t}HG(e){var t,i=this,a="out";null!==ZC._n_(t=e.o[ZC._[7]])&&(a=t);var n,l,r,o,s,C=e.I,A=e.F,Z=(i.B4+i.BJ)/2%360,c=Z;if("out"===a){Z=c=i.A.A.YV["n"+i.L][i.A.L];var p=function(t,a){a<0&&(a=360+a),a%=360;var n=ZC.AQ.BM(i.iX,i.iY,t+i.DS+e.DS+20,a),l=i.C.EY[ZC._[27]];l>45&&i.A.A.A4.length>10&&(i.C.EY[ZC._[27]]=45+(l-45)/3),s=new CB(i.C,n[0]-ZC.AO.E1,n[1]-ZC.AO.E2,0),i.C.EY[ZC._[27]]=l,n[0]=s.EB[0],n[1]=s.EB[1];var r=n[0]+e.BL-C/2,o=n[1]+e.BH-A/2;return a>=0&&a<=90||a>=270&&a<=360?r+=C/2+10:r-=C/2+10,[r,o]},u=p(i.AI,c);n=u[0],l=u[1],i.U=e;var h={x:n,y:l,width:C,height:A},_=zingchart.DEV.SPREADTYPE;o=!0;for(var d=0,f=0,g=-1,B=0,v=0;o&&v<1024;){o=!1;for(var m=0,b=i.A.A.U2.length;m<b;m++)r=i.A.A.U2[m],(ZC.AQ.YD(h,r,i.A.A.A4.length>10?-8:-2)||h.x+e.I>i.C.P.iX+i.C.P.I||h.x<i.C.P.iX||h.y+e.F>i.C.P.iY+i.C.P.F||h.y<i.C.P.iY)&&(o=!0,0===_?(d+=.4,g*=-1):1===_&&(f+=1),u=p(i.AI+f,c+d*g),h.x=u[0],h.y=u[1],v++,++B>100&&(B=0,0===_?(d=0,f+=4):1===_&&(f=0,d+=1,g*=-1)))}n=h.x,l=h.y,Z=c+d,r={text:i.A.AT,x:h.x,y:h.y,width:C,height:A,plotindex:i.A.L,nodeindex:i.L},i.A.A.U2.push(r)}else if("in"===a){var D=i.CM<30?.65:.5,K=ZC.AQ.BM(i.iX,i.iY,i.CM+D*(i.AI-i.CM)+i.DS+e.DS,Z);s=new CB(i.C,K[0]-ZC.AO.E1,K[1]-ZC.AO.E2,0),K[0]=s.EB[0],K[1]=s.EB[1],n=K[0]+e.BL-C/2,l=K[1]+e.BH-A/2}else"center"===a&&(n=(s=new CB(i.C,i.iX-ZC.AO.E1,i.iY-ZC.AO.E2,0)).EB[0]+e.BL-C/2,l=s.EB[1]+e.BH-A/2);return o&&(n=-9999,l=-9999,e.AM=!1),null!==ZC._n_(e.o.x)&&(n=e.iX),null!==ZC._n_(e.o.y)&&(l=e.iY),n>=-2&&(n=ZC._a_(n)),l>=-2&&(l=ZC._a_(l)),[ZC._i_(n),ZC._i_(l),Z]}F8(e,t){var i,a=this,n=super.F8(e,t);if(e)return n;if(a.AM&&n.AM&&null!==ZC._n_(n.AT)&&""!==n.AT){var l="out";if(null!==ZC._n_(n.o[ZC._[7]])&&(l=n.o[ZC._[7]]),"out"===l){var r=!0;if(null!==ZC._n_(i=n.o.connected)&&(r=ZC._b_(i)),r){var o=new DW(a.A);o.Z=o.C7=a.A.CN("bl",0),o.append(a.A.C2.o),o.B7=a.A0,o.DP="line",o.E=[];var s=n.D.positioninfo,C=(a.B4+a.BJ)/2%360,A=0;C>=0&&C<=180&&(A=a.D.thickness/2);var Z=ZC.AQ.BM(a.iX,a.iY,a.AI+a.DS+n.DS,C);(Z=new CB(a.C,Z[0]-ZC.AO.E1,Z[1]-ZC.AO.E2,A).EB)[0]+=a.BL,Z[1]+=a.BH,o.E.push(Z);var c=ZC.AQ.BM(a.iX,a.iY,a.AI+a.DS+n.DS+20,C);(c=new CB(a.C,c[0]-ZC.AO.E1,c[1]-ZC.AO.E2,A).EB)[0]+=a.BL,c[1]+=a.BH,n.iX>=a.iX?o.E.push([c[0],c[1],s[0],s[1]+n.F/2]):o.E.push([c[0],c[1],s[0]+n.I+2,s[1]+n.F/2]),o.parse(),o.J2=function(e){return a.J2(e)},o.DC()&&o.parse(),o.AM&&o.paint()}}}}paint(){var e,t,i,a,n,l,r,o,s,C=this,A=C.C.CJ,Z=C.C.BI(C.A.BT("k")[0]),c=C.C.EY[ZC._[27]],p=C.C.EY[ZC._[28]];C.setup();var u="pie-sel-"+C.A.L+"-"+C.L;if(C.o.detached&&typeof C.C.D[u]===ZC._[31]&&(C.C.D[u]=!0),!(C.AD<0)){var h=ZC.BQ(.7,ZC.EH(c));C.AI=ZC.CX(Z.GG/h,Z.GM)/2,null!==ZC._n_(C.A.o[ZC._[21]])?C.AI=C.A.AI:C.AI=Z.JT*C.AI,C.CM<1&&(C.CM*=C.AI),C.CM=Math.max(0,C.CM),C.o[ZC._[8]]=C.CM,C.DS<1&&(C.DS*=C.AI),C.o["offset-r"]=C.DS;var _=C.A.NV;-1===_&&(_=C.AI/5),C.D.thickness=_;var d=C.iX-ZC.AO.E1,f=C.iY-ZC.AO.E2;C.B4=ZC._i_(C.B4),C.BJ=ZC._i_(C.BJ);var g=(C.B4+C.BJ)/2;C.C.D[u]&&(C.DS+=ZC._i_(.15*C.AI)),C.DS>0&&(d+=C.DS*ZC.EH(g),f+=C.DS*ZC.EN(g));var B=C.O=C.A.I4(C,C);B.DI=C.K+"-3dfacet";var v=new D0(C);if(v.copy(B),v.A0=ZC.AP.JQ(ZC.AP.GD(v.A0)),v.AE=ZC.AP.JQ(ZC.AP.GD(v.AE)),C.AD>=0||0===C.A.A.KT[C.L]){for(r=[],e=C.B4,r.push([d+C.CM*ZC.EH(e),f+C.CM*ZC.EN(e),0]),e=C.B4;e<=C.BJ;e+=1)r.push([d+C.AI*ZC.EH(e),f+C.AI*ZC.EN(e),0]);for(e=C.BJ,r.push([d+C.CM*ZC.EH(e),f+C.CM*ZC.EN(e),0]),e=C.BJ;e>=C.B4;e-=1)r.push([d+C.CM*ZC.EH(e),f+C.CM*ZC.EN(e),0]);if((t=ZC.DH.D6(B,C.C,r)).K=C.K+"-facet1",A.add(t),i=null,C.B4%360>=0+p&&C.B4%360<180+p||C.BJ%360>0+p){o=C.B4,s=C.BJ;var m=function(e,t,a){var n,l=[];for(n=e,l.push([d+C.AI*ZC.EH(n),f+C.AI*ZC.EN(n),0]),n=e;n<=t;n+=1)l.push([d+C.AI*ZC.EH(n),f+C.AI*ZC.EN(n),0]);for(n=t,l.push([d+C.AI*ZC.EH(n),f+C.AI*ZC.EN(n),_]),n=t;n>=e;n-=1)l.push([d+C.AI*ZC.EH(n),f+C.AI*ZC.EN(n),_]);(i=ZC.DH.D6(v,C.C,l)).MJ=[.01,1,1,1],i.K=C.K+"-facet2"+a,A.add(i)};o<180&&s>360?(m(o=o<0?o+360:o,180,1),m(360,s,2)):(o=ZC.BQ(o,s>360?365:5),(s=ZC.CX(s,s>360?535:175))>o&&m(o,s,1))}if(l=null,C.CM>0+p&&C.BJ>180+p){for(r=[],e=C.B4,o=C.B4,C.B4<180+p&&C.BJ>180+p&&(e=180+p,o=180+p),r.push([d+C.CM*ZC.EH(e),f+C.CM*ZC.EN(e),0]),e=o;e<=C.BJ;e+=1)r.push([d+C.CM*ZC.EH(e),f+C.CM*ZC.EN(e),0]);for(e=C.BJ,r.push([d+C.CM*ZC.EH(e),f+C.CM*ZC.EN(e),_]),e=C.BJ;e>=o;e-=1)r.push([d+C.CM*ZC.EH(e),f+C.CM*ZC.EN(e),_]);(l=ZC.DH.D6(v,C.C,r)).K=C.K+"-facet3",A.add(l)}var b=function(e,t,i){return[[d+e*ZC.EH(i),f+e*ZC.EN(i),0],[d+e*ZC.EH(i),f+e*ZC.EN(i),_],[d+t*ZC.EH(i),f+t*ZC.EN(i),_],[d+t*ZC.EH(i),f+t*ZC.EN(i),0]]};(a=ZC.DH.D6(v,C.C,{points:b(C.CM,C.AI,C.B4),mathpoints:b(C.CM+1,C.AI+1,C.B4-1)})).K=C.K+"-facet4",A.add(a),(n=ZC.DH.D6(v,C.C,{points:b(C.CM,C.AI,C.BJ),mathpoints:b(C.CM+1,C.AI+1,C.BJ+1)})).K=C.K+"-facet5",A.add(n);var D=C.C.K+ZC._[34]+C.C.K+ZC._[35]+C.A.L+ZC._[6],K=ZC.Q.GJ("poly",C.A.E8)+'class="'+D+'" id="'+C.K,E=C.A.A.HZ;E.push(K+'--top" data-z-sort="1" coords="'+t.F1()+'" />'),i&&E.push(K+'--outer" data-z-sort="1" coords="'+i.F1()+'" />'),(C.CM>0||C.DS>0)&&(l&&E.push(K+'--inner" data-z-sort="2" coords="'+l.F1()+'" />'),E.push(K+'--start" data-z-sort="2" coords="'+a.F1()+'" />',K+'--end" data-z-sort="2" coords="'+n.F1()+'" />'))}C.A.U&&C.F8()}}P2(e,t){var i=this;if(super.P2(e,t),"click"===t&&e.which<=1&&i.A.A8B){var a="pie-sel-"+i.A.L+"-"+i.L;i.C.D[a]=typeof i.C.D[a]===ZC._[31]||!i.C.D[a],i.C.JW()}}}class A7D extends A00{setup(){this.S1()}OP(){var e=this;e.paint(!0);var t=e.C.BI(e.A.BT("v")[0]),i=e.iX+e.I/2,a=e.iY+(t.AW?e.F:0),n=new CB(e.C,i-ZC.AO.E1,a-ZC.AO.E2,e.A.D["z-start"]);return[ZC._i_(n.EB[0]),ZC._i_(n.EB[1]),{reference:e,center:!0}]}HG(e){var t=super.HG(e);if("-1/-1"!==t.join("/")){var i=new CB(this.C,t[0]+e.I/2-ZC.AO.E1,t[1]+e.F/2-ZC.AO.E2,this.A.D["z-mid"]);return[ZC._i_(i.EB[0])-e.I/2,ZC._i_(i.EB[1])-e.F/2]}return t}paint(e){var t,i=this;super.paint(),typeof e===ZC._[31]&&(e=!1);var a=i.C.CJ,n=i.A.B2,l=i.A.CL;i.setup();var r,o,s,C,A,Z,c,p,u,h,_,d,f,g,B,v,m=i.A.PT(),b=m.AC,D=m.ES,K=m.CC,E=m.CS,F=m.F4,I=m.D1,x=m.EZ;if(e?D=i.A.D["node-"+i.L+"-bar-index"]:i.A.D["node-"+i.L+"-bar-index"]=m.ES,i.A.CA){s=0;var y=i.A.A.KH[D];for(r=0;r<y.length;r++){var X=i.A.A.A4[y[r]].R[i.L];X&&(s+=X.AD)}}var G=1,Y=1;if(i.A.CA&&s>0&&(i.CQ!==i.AD&&(G=(s-i.CQ+i.AD)/s),Y=(s-i.CQ)/s),l.AW){var w=G;G=Y,Y=w}i.A.M1&&(D=i.L);var M=i.iX-b/2+K+D*(I+F)-D*x;if(M=ZC._l_(M,i.iX-b/2+K,i.iX+b/2-E),i.A.D1>0){var L=I;(I=i.A.D1)<=1&&(I*=L),M+=(L-I)/2}var P=I,O=i.iY,R=null!==ZC._n_(i.A.M6[i.L])?i.A.M6[i.L]:0;if(O=i.A.CA&&"100%"===i.A.KX?l.AN(100*(i.CQ+R)/i.A.A.F9[i.L]["%total-"+i.A.DY]):l.AN(i.CQ+R),i.A.CA?(A=O-(C="100%"===i.A.KX?l.AN(100*(i.CQ-i.AD+R)/i.A.A.F9[i.L]["%total-"+i.A.DY]):l.AN(i.CQ-i.AD+R)),i.AD<0&&(O=C),l.AW?A>0&&(A=ZC._a_(A),O=C):A<0&&(O=C-(A=ZC._a_(A)))):O=(A=O-(C=l.AN(R)))<0?C-(A=ZC._a_(A)):C,K+E===0&&(M-=.5,P+=1),i.I=P,i.F=A,i.iX=M,i.iY=O,l.AW?i.AD>=l.H9?i.iYVal=O+i.F:i.iYVal=O:i.AD>=l.H9?i.iYVal=O:i.iYVal=O+i.F,i.C.CW){var Q="middle";i.C.CW.o.marker&&null!==ZC._n_(t=i.C.CW.o.marker.alignment)&&(Q=t),null!==ZC._n_(i.A.o["guide-marker"])&&null!==ZC._n_(t=i.A.o["guide-marker"].alignment)&&(Q=t),"node"===Q&&(i.D.A68=i.iX+i.I/2)}if(!e){var T,k,N,H=M-ZC.AO.E1,z=O-ZC.AO.E2,V=0,J=ZC.AO.FU,S=0,W=J;if(i.A.A49){if(k=V,"mixed3d"===i.C.AF||"mixed"===i.C.AF){for(T=1,r=0,o=i.A.A.A4.length;r<o;r++)"vbar3d"!==i.A.A.A4[r].AF&&T++;k=(T-1)*(ZC.AO.FU/T),J=ZC._i_(.9*J/T)}N=k+J}else{if(T=0,S=-1,W=ZC.AO.FU,"hide"===i.C.getToggleAction())T=i.A.A.A4.length,S=i.A.L,W/=T;else if(i.A.CA)S=0;else{for(r=0;r<i.A.A.A4.length;r++)i.C.D["plot"+r+".visible"]&&S++;for(r=0;r<i.A.A.A4.length;r++)i.C.D["plot"+r+".visible"]&&(T++,i.A.L>r&&S--);W/=T,S=T-S-1}k=S*W+.2*W,N=(S+1)*W-.2*W}if(null!==ZC._n_(i.A.o["z-start"])&&(k=ZC._i_(i.A.o["z-start"])),null!==ZC._n_(i.A.o["z-end"])&&(N=ZC._i_(i.A.o["z-end"])),null!==ZC._n_(i.A.o.depth)){var U=ZC._i_(i.A.o.depth);k=S*W+W/2-U,N=S*W+W/2+U}V=k,J=N-k,i.A.D["z-plots"]=T,i.A.D["z-cnt"]=S,i.A.D["z-depth"]=W,i.A.D["z-start"]=k,i.A.D["z-mid"]=(k+N)/2;var j=i.O=i.A.I4(i,i.O);if(j.DI=i.K+"-3dfacet",i.A.HX&&(i.GN(j),j.parse()),j.AM){var q=new D0(i);q.copy(j),q.A0=ZC.AP.JQ(ZC.AP.GD(q.A0)),q.AE=ZC.AP.JQ(ZC.AP.GD(q.AE)),q.BW=ZC.AP.JQ(ZC.AP.GD(q.BW));var $=new D0(i);$.copy(j),$.A0=ZC.AP.JQ(ZC.AP.GD($.A0),15),$.AE=ZC.AP.JQ(ZC.AP.GD($.AE),15),$.BW=ZC.AP.JQ(ZC.AP.GD($.BW),15);var ee=new D0(i);ee.copy(j);var te=i.C.K+ZC._[34]+i.C.K+ZC._[35]+i.A.L+ZC._[6],ie=ZC.Q.GJ("poly",i.A.E8,i.O.IZ)+'class="'+te+'" id="'+i.K,ae=i.C.EY.true3d,ne=i.I/2,le=J/2,re=G*ne,oe=Y*ne,se=Y*le,Ce=G*le;l.AW&&!i.A.CA?(Z=i.AD>=0?0:i.F,c=i.AD>=0?i.F:0):(Z=i.AD>=0?i.F:0,c=i.AD>=0?0:i.F);var Ae=i.A.A.HZ,Ze=ZC.CX(le,ne),ce=i.C.EY[ZC._[28]],pe=i.C.EY.angle,ue=ZC.EH(pe)*le,he=ZC.EN(pe)*le;ae||(Ze=ZC.CX(2*ue,ne));var _e=function(e){var t=0,a=i.A.L,r=i.L,o=i.A.A.A4.length,s=i.A.R.length;switch((i.A.CA?"s":"")+(n.AW?"k":"")+(l.AW?"v":"")){case"":case"v":t=10*a+1e4*r+e;break;case"sv":t=10*(o-a)+1e4*r+e;break;case"k":t=10*a+1e4*(s-r)+e;break;case"skv":t=10*(o-a)+1e4*(s-r)+e;break;case"kv":t=10*a+1e4*(s-r)+e;break;case"s":t=10*a+1e4*r+e;break;case"sk":t=10*a+1e4*(s-r)+e}return t},de=ZC.MAX,fe=-ZC.MAX,ge=ZC.MAX,Be=-ZC.MAX,ve=ZC.MAX,me=-ZC.MAX,be=ZC.MAX,De=-ZC.MAX;if("cylinder"===i.A.CV)for(v=0;v<=360;v+=4)(u=new CB(i.C,H+ZC.EN(v)*Ze+ne,z,V+ZC.EH(v)*Ze+le)).EB[0]<ge&&(ge=u.EB[0],de=v),u.EB[0]>Be&&(Be=u.EB[0],fe=v),(u=new CB(i.C,H+ZC.EN(v)*Ze+ne,z+i.F,V+ZC.EH(v)*Ze+le)).EB[0]<be&&(be=u.EB[0],ve=v),u.EB[0]>De&&(De=u.EB[0],me=v);var Ke=i.A.o.facets||{};switch(i.A.CV){default:Ke.bottom?((p=new D0(i)).copy(q),p.append(Ke.bottom),p.parse(),f=ZC.DH.D9(p,i.C,H+.1,H+i.I-.1,z+i.F-.1,z+i.F-.1,V+.1,V+J-.1,"x")):f=ZC.DH.D9(q,i.C,H+.1,H+i.I-.1,z+i.F-.1,z+i.F-.1,V+.1,V+J-.1,"x"),f.K=i.K+"-facet1",f.FY=_e(1),a.add(f),Ke.top?((p=new D0(i)).copy(q),p.append(Ke.top),p.parse(),d=ZC.DH.D9(p,i.C,H+.1,H+i.I-.1,z+.1,z+.1,V+.1,V+J-.1,"x")):d=ZC.DH.D9(q,i.C,H+.1,H+i.I-.1,z+.1,z+.1,V+.1,V+J-.1,"x"),d.K=i.K+"-facet2",d.FY=_e(3),a.add(d),Ke.left?((p=new D0(i)).copy($),p.append(Ke.left),p.parse(),g=ZC.DH.D9(p,i.C,H+.1,H+.1,z+.1,z+i.F-.1,V+.1,V+J-.1,"z")):g=ZC.DH.D9($,i.C,H+.1,H+.1,z+.1,z+i.F-.1,V+.1,V+J-.1,"z"),g.K=i.K+"-facet3",g.FY=_e(2),a.add(g),Ke.right?((p=new D0(i)).copy($),p.append(Ke.right),p.parse(),B=ZC.DH.D9(p,i.C,H+i.I-.1,H+i.I-.1,z+.1,z+i.F-.1,V+.1,V+J-.1,"z")):B=ZC.DH.D9($,i.C,H+i.I-.1,H+i.I-.1,z+.1,z+i.F-.1,V+.1,V+J-.1,"z"),B.K=i.K+"-facet4",B.FY=_e(4),a.add(B),Ke.front?((p=new D0(i)).copy(ee),p.append(Ke.front),p.parse(),_=ZC.DH.D9(p,i.C,H+.1,H+i.I-.1,z+.1,z+i.F-.1,V+.1,V+.1,"y")):_=ZC.DH.D9(ee,i.C,H+.1,H+i.I-.1,z+.1,z+i.F-.1,V+.1,V+.1,"y"),_.K=i.K+"-facet5",_.FY=_e(5),a.add(_),i.A.FZ&&(1===Y&&Ae.push(ie+"--top"+ZC._[30]+d.F1()+'" />'),Ae.push(ie+"--left"+ZC._[30]+g.F1()+'" />',ie+"--right"+ZC._[30]+B.F1()+'" />',ie+"--front"+ZC._[30]+_.F1()+'" data-z-sort="-100" />'));break;case"pyramid":Ke.bottom?((p=new D0(i)).copy(q),p.append(Ke.bottom),p.parse(),f=ZC.DH.D9(p,i.C,H+ne-re,H+ne+re,z+Z,z+Z,V+le-Ce,V+le+Ce,"x")):f=ZC.DH.D9(q,i.C,H+ne-re,H+ne+re,z+Z,z+Z,V+le-Ce,V+le+Ce,"x"),f.K=i.K+"-facet1",f.FY=_e(l.AW&&!i.A.CA?6:1),a.add(f),h=[[H+ne-re,z+Z,V+le-Ce],[H+ne+re,z+Z,V+le-Ce]],i.A.CA&&0!==Y?h.push([H+ne+oe,z+c,V+le-se],[H+ne-oe,z+c,V+le-se]):h.push([H+ne,z+c,V+le]),Ke.front?((p=new D0(i)).copy(j),p.append(Ke.front),p.parse(),_=ZC.DH.D6(p,i.C,h)):_=ZC.DH.D6(j,i.C,h),_.K=i.K+"-facet2",_.FY=_e(3),a.add(_),h=[[H+ne-re,z+Z,V+le-Ce],[H+ne-re,z+Z,V+le+Ce]],i.A.CA&&0!==Y?h.push([H+ne-oe,z+c,V+le+se],[H+ne-oe,z+c,V+le-se]):h.push([H+ne,z+c,V+le]),Ke.left?((p=new D0(i)).copy($),p.append(Ke.left),p.parse(),g=ZC.DH.D6(p,i.C,h)):g=ZC.DH.D6($,i.C,h),g.K=i.K+"-facet3",g.FY=_e(2),a.add(g),h=[[H+ne+re,z+Z,V+le-Ce],[H+ne+re,z+Z,V+le+Ce]],i.A.CA&&0!==Y?h.push([H+ne+oe,z+c,V+le+se],[H+ne+oe,z+c,V+le-se]):h.push([H+ne,z+c,V+le]),Ke.right?((p=new D0(i)).copy($),p.append(Ke.right),p.parse(),B=ZC.DH.D6(p,i.C,h)):B=ZC.DH.D6($,i.C,h),B.K=i.K+"-facet4",B.FY=_e(4),a.add(B),i.A.CA&&0!==Y&&(h=[[H+ne-oe,z+c,V+le-se],[H+ne-oe,z+c,V+le+se],[H+ne+oe,z+c,V+le+se],[H+ne+oe,z+c,V+le-se]],Ke.top?((p=new D0(i)).copy(q),p.append(Ke.top),p.parse(),d=ZC.DH.D6(p,i.C,h)):d=ZC.DH.D6(q,i.C,h),d.K=i.K+"-facet5",d.FY=_e(5),a.add(d)),i.A.FZ&&Ae.push(ie+"--left"+ZC._[30]+g.F1()+'" />',ie+"--right"+ZC._[30]+B.F1()+'" />',ie+"--front"+ZC._[30]+_.F1()+'" data-z-sort="-100" />');break;case"cylinder":if(h=[],ae)for(v=0;v<=360;v+=5)h.push([H+ZC.EN(v)*Ze+ne,z+i.F,V+ZC.EH(v)*Ze+le]);else for(v=0;v<=360;v+=5)(u=new CB(i.C,0,0,0)).EB=[M+ZC.EH(v)*Ze+ne+ue,O+i.F+ZC.EN(v)*(Ze/2)-he],h.push(u);if(Ke.bottom?((p=new D0(i)).copy(q),p.append(Ke.bottom),p.parse(),f=ZC.DH.D6(p,i.C,h,!ae)):f=ZC.DH.D6(q,i.C,h,!ae),f.K=i.K+"-facet1",f.FY=_e(1),a.add(f),h=[],ae)for(v=0;v<=360;v+=5)h.push([H+ZC.EN(v)*Ze+ne,z,V+ZC.EH(v)*Ze+le]);else for(v=0;v<=360;v+=5)(u=new CB(i.C,0,0,0)).EB=[M+ZC.EH(v)*Ze+ne+ue,O+ZC.EN(v)*(Ze/2)-he],h.push(u);if(Ke.top?((p=new D0(i)).copy(q),p.append(Ke.top),p.parse(),d=ZC.DH.D6(p,i.C,h,!ae)):d=ZC.DH.D6(q,i.C,h,!ae),d.K=i.K+"-facet2",d.FY=_e(3),a.add(d),h=[],ae){for(v=ZC.CX(de,fe);v<=ZC.BQ(de,fe);v+=1)h.push([H+ZC.EN(v)*Ze+ne,z,V+ZC.EH(v)*Ze+le]);for(h.push([H+ZC.EN(v)*Ze+ne,z+i.F,V+ZC.EH(v)*Ze+le]),v=ZC.BQ(ve,me);v>=ZC.CX(ve,me);v-=1)h.push([H+ZC.EN(v)*Ze+ne,z+i.F,V+ZC.EH(v)*Ze+le])}else{for(v=0;v<=180;v+=5)(u=new CB(i.C,0,0,0)).EB=[M+ZC.EH(v)*Ze+ne+ue,O+i.F+ZC.EN(v)*(Ze/2)-he],h.push(u);for(v=180;v>=0;v-=5)(u=new CB(i.C,0,0,0)).EB=[M+ZC.EH(v)*Ze+ne+ue,O+ZC.EN(v)*(Ze/2)-he],h.push(u)}Ke.front?((p=new D0(i)).copy(j),p.append(Ke.front),p.parse(),_=ZC.DH.D6(p,i.C,h,!ae)):_=ZC.DH.D6(j,i.C,h,!ae),_.K=i.K+"-facet3",_.FY=_e(2),a.add(_),i.A.FZ&&Ae.push(ie+"--front"+ZC._[30]+_.F1()+'" data-z-sort="-100" />',ie+"--top"+ZC._[30]+d.F1()+'" />');break;case"cone":if(h=[],ae)for(v=0;v<=360;v+=5)h.push([H+ZC.EN(v)*Ze*G+ne,z+Z,V+ZC.EH(v)*Ze*G+le]);else for(v=0;v<=360;v+=5)(u=new CB(i.C,0,0,0)).EB=[M+ZC.EH(v)*Ze*G+ne+ue,O+Z+ZC.EN(v)*(Ze/2)*G-he],h.push(u);if(Ke.bottom?((p=new D0(i)).copy(q),p.append(Ke.bottom),p.parse(),f=ZC.DH.D6(p,i.C,h,!ae)):f=ZC.DH.D6(q,i.C,h,!ae),f.K=i.K+"-facet1",f.FY=_e(1),a.add(f),h=[],ae){for(v=90+ce;v<=270+ce;v+=5)h.push([H+ZC.EN(v)*Ze*G+ne,z+Z,V+ZC.EH(v)*Ze*G+le]);if(i.A.CA&&0!==Y)for(v=270+ce;v>=90+ce;v-=5)h.push([H+ZC.EN(v)*Ze*Y+ne,z+c,V+ZC.EH(v)*Ze*Y+le]);else h.push([H+ne,z+c,V+le])}else{for(v=0;v<=180;v+=5)(u=new CB(i.C,0,0,0)).EB=[M+ZC.EH(v)*Ze*G+ne+ue,O+Z+ZC.EN(v)*(Ze/2)*G-he],h.push(u);if(i.A.CA&&0!==Y)for(v=180;v>=0;v-=5)(u=new CB(i.C,0,0,0)).EB=[M+ZC.EH(v)*Ze*Y+ne+ue,O+c+ZC.EN(v)*(Ze/2)*Y-he],h.push(u);else(u=new CB(i.C,0,0,0)).EB=[M+ne+ue,O+c-he],h.push(u)}if(Ke.front?((p=new D0(i)).copy(j),p.append(Ke.front),p.parse(),_=ZC.DH.D6(p,i.C,h,!ae)):_=ZC.DH.D6(j,i.C,h,!ae),_.K=i.K+"-facet2",_.FY=_e(2),a.add(_),i.A.CA&&0!==Y){if(h=[],ae)for(v=0;v<=360;v+=5)h.push([H+ZC.EN(v)*Ze*Y+ne,z+c,V+ZC.EH(v)*Ze*Y+le]);else for(v=0;v<=360;v+=5)(u=new CB(i.C,0,0,0)).EB=[M+ZC.EH(v)*Ze*Y+ne+ue,O+c+ZC.EN(v)*(Ze/2)*Y-he],h.push(u);Ke.top?((p=new D0(i)).copy(q),p.append(Ke.top),p.parse(),d=ZC.DH.D6(p,i.C,h,!ae)):d=ZC.DH.D6(q,i.C,h,!ae),d.K=i.K+"-facet3",a.add(d),d.FY=_e(3)}i.A.FZ&&Ae.push(ie+"--front"+ZC._[30]+_.F1()+'" data-z-sort="-100" />')}i.A.U&&i.A.U.AM&&i.F8()}i.paintPreview(j)}}HU(){}}class A7E extends A01{setup(){this.S1()}OP(){var e=this;e.paint(!0);var t=e.C.BI(e.A.BT("v")[0]),i=e.iX+(t.AW?0:e.I),a=e.iY+e.F/2,n=new CB(e.C,i-ZC.AO.E1,a-ZC.AO.E2,e.A.D["z-start"]);return[ZC._i_(n.EB[0]),ZC._i_(n.EB[1]),{reference:e,center:!0}]}HG(e){var t=super.HG(e);if("-1/-1"!==t.join("/")){var i=new CB(this.C,t[0]-ZC.AO.E1,t[1]-ZC.AO.E2,this.A.D["z-start"]);return[ZC._i_(i.EB[0]),ZC._i_(i.EB[1])]}return t}paint(e){var t=this;super.paint(),typeof e===ZC._[31]&&(e=!1);var i=t.C.CJ,a=t.A.B2,n=t.A.CL;t.setup();var l,r,o,s,C,A,Z,c,p,u,h,_,d,f,g=t.A.PT(),B=g.AC,v=g.ES,m=g.CC,b=g.CS,D=g.F4,K=g.D1,E=g.EZ;if(e?v=t.A.D["node-"+t.L+"-bar-index"]:t.A.D["node-"+t.L+"-bar-index"]=g.ES,t.A.CA){l=0;for(var F=t.A.A.KH[v],I=0;I<F.length;I++){var x=t.A.A.A4[F[I]].R[t.L];x&&(l+=x.AD)}}var y=1,X=1;if(t.A.CA&&(t.CQ!==t.AD&&(y=(l-t.CQ+t.AD)/l),X=(l-t.CQ)/l),n.AW){var G=y;y=X,X=G}t.A.M1&&(v=t.L);var Y=t.iY-B/2+m+v*(K+D)-v*E;if(Y=ZC._l_(Y,t.iY-B/2+m,t.iY+B/2-b),t.A.D1>0){var w=K;(K=t.A.D1)<=1&&(K*=w),Y+=(w-K)/2}var M=K,L=t.iX,P=null!==ZC._n_(t.A.M6[t.L])?t.A.M6[t.L]:0;if(L=t.A.CA&&"100%"===t.A.KX?n.AN(100*(t.CQ+P)/t.A.A.F9[t.L]["%total-"+t.A.DY]):n.AN(t.CQ+P),t.A.CA?(o=L-(r="100%"===t.A.KX?n.AN(100*(t.CQ-t.AD+P)/t.A.A.F9[t.L]["%total-"+t.A.DY]):n.AN(t.CQ-t.AD+P)),t.AD>0?L=r:o=ZC._a_(o),n.AW?o>0?(o=ZC._a_(o),L=r):L-=o=ZC._a_(o):o<0&&(L=r-(o=ZC._a_(o)))):L=(o=L-(r=n.AN(P)))<0?r-(o=ZC._a_(o)):r,m+b===0&&(Y-=.5,M+=1),t.I=o,t.F=M,t.iX=L,t.iY=Y,n.AW?t.AD>=n.H9?t.iXVal=L:t.iXVal=L+t.I:t.AD>=n.H9?t.iXVal=L+t.I:t.iXVal=L,!e){var O=L+o-ZC.AO.E1,R=Y-ZC.AO.E2,Q=0,T=ZC.AO.FU;null!==ZC._n_(t.A.o["z-start"])&&(Q=ZC._i_(t.A.o["z-start"])),null!==ZC._n_(t.A.o["z-end"])&&(T=ZC._i_(t.A.o["z-end"])-Q),t.A.D["z-start"]=Q,t.A.D["z-mid"]=Q+T/2;var k=t.O=t.A.I4(t,t.O);if(k.DI=t.K+"-3dfacet",t.A.HX&&(t.GN(k),k.parse()),k.AM){var N=new D0(t);N.copy(k),N.A0=ZC.AP.JQ(ZC.AP.GD(N.A0)),N.AE=ZC.AP.JQ(ZC.AP.GD(N.AE)),N.BW=ZC.AP.JQ(ZC.AP.GD(N.BW));var H=new D0(t);H.copy(k),H.A0=ZC.AP.JQ(ZC.AP.GD(H.A0),15),H.AE=ZC.AP.JQ(ZC.AP.GD(H.AE),15),H.BW=ZC.AP.JQ(ZC.AP.GD(H.BW),15);var z=new D0(t);z.copy(k);var V=t.C.K+ZC._[34]+t.C.K+ZC._[35]+t.A.L+ZC._[6],J=ZC.Q.GJ("poly",t.A.E8,t.O.IZ)+'class="'+V+'" id="'+t.K,S=t.C.EY.true3d,W=t.F/2,U=T/2,j=y*W,q=X*W,$=X*U,ee=y*U;n.AW&&!t.A.CA?(C=t.AD>=0?0:t.I,s=t.AD>=0?t.I:0):(C=t.AD>=0?t.I:0,s=t.AD>=0?0:t.I);var te=t.A.A.HZ,ie=ZC.CX(U,W),ae=t.C.EY[ZC._[27]],ne=t.C.EY.angle,le=ZC.EH(ne)*U,re=ZC.EN(ne)*U;S||(ie=ZC.CX(2*re,W));var oe=function(e){var i=-1,l=t.A.L,r=t.L,o=t.A.A.A4.length,s=t.A.R.length;switch((t.A.CA?"s":"")+(a.AW?"k":"")+(n.AW?"v":"")){case"":case"v":case"sv":i=10*(o-l)+1e4*r+e;break;case"k":case"skv":case"kv":i=10*(o-l)+1e4*(s-r)+e;break;case"s":i=10*l+1e4*r+e;break;case"sk":i=10*l+1e4*(s-r)+e}return ZC._i_(i)},se=t.A.o.facets||{};switch(t.A.CV){default:se.left?((A=new D0(t)).copy(H),A.append(se.left),A.parse(),Z=ZC.DH.D9(A,t.C,O-t.I+.1,O-.1,R+.1,R+.1,Q+.1,Q+T-.1,"x")):Z=ZC.DH.D9(H,t.C,O-t.I+.1,O-.1,R+.1,R+.1,Q+.1,Q+T-.1,"x"),Z.K=t.K+"-facet1",Z.FY=oe(5),i.add(Z),se.right?((A=new D0(t)).copy(H),A.append(se.right),A.parse(),h=ZC.DH.D9(A,t.C,O-t.I+.1,O-.1,R+t.F-.1,R+t.F-.1,Q+.1,Q+T-.1,"x")):h=ZC.DH.D9(H,t.C,O-t.I+.1,O-.1,R+t.F-.1,R+t.F-.1,Q+.1,Q+T-.1,"x"),h.K=t.K+"-facet2",h.FY=oe(1),i.add(h),se.bottom?((A=new D0(t)).copy(N),A.append(se.bottom),A.parse(),c=ZC.DH.D9(A,t.C,O-t.I+.1,O-t.I+.1,R+t.F-.1,R+.1,Q+.1,Q+T-.1,"z")):c=ZC.DH.D9(N,t.C,O-t.I+.1,O-t.I+.1,R+t.F-.1,R+.1,Q+.1,Q+T-.1,"z"),c.K=t.K+"-facet3",c.FY=oe(2),i.add(c),se.top?((A=new D0(t)).copy(N),A.append(se.top),A.parse(),p=ZC.DH.D9(A,t.C,O-.1,O-.1,R+t.F-.1,R+.1,Q+.1,Q+T-.1,"z")):p=ZC.DH.D9(N,t.C,O-.1,O-.1,R+t.F-.1,R+.1,Q+.1,Q+T-.1,"z"),p.K=t.K+"-facet4",p.FY=oe(3),i.add(p),se.front?((A=new D0(t)).copy(z),A.append(se.front),A.parse(),u=ZC.DH.D9(A,t.C,O-t.I+.1,O-.1,R+t.F-.1,R+.1,Q+.1,Q+.1,"y")):u=ZC.DH.D9(z,t.C,O-t.I+.1,O-.1,R+t.F-.1,R+.1,Q+.1,Q+.1,"y"),u.K=t.K+"-facet5",u.FY=oe(4),i.add(u),t.A.FZ&&(t.A.CA||te.push(J+"--top"+ZC._[30]+p.F1()+'" />'),te.push(J+"--left"+ZC._[30]+Z.F1()+'" />',J+"--right"+ZC._[30]+h.F1()+'" />',J+"--front"+ZC._[30]+u.F1()+'" data-z-sort="-100" />'));break;case"pyramid":se.bottom?((A=new D0(t)).copy(N),A.append(se.bottom),A.parse(),c=ZC.DH.D9(A,t.C,O-C,O-C,R+W-j,R+W+j,U-ee,U+ee,"z")):c=ZC.DH.D9(N,t.C,O-C,O-C,R+W-j,R+W+j,U-ee,U+ee,"z"),c.K=t.K+"-facet1",c.FY=oe(n.AW&&!t.A.CA?6:1),i.add(c),f=[[O-C,R+W-j,U-ee],[O-C,R+W+j,U-ee]],t.A.CA&&0!==X?f.push([O-s,R+W+q,U-$],[O-s,R+W-q,U-$]):f.push([O-s,R+W,T/2]),se.front?((A=new D0(t)).copy(k),A.append(se.front),A.parse(),u=ZC.DH.D6(A,t.C,f)):u=ZC.DH.D6(k,t.C,f),u.K=t.K+"-facet2",u.FY=oe(3),i.add(u),f=[[O-C,R+W-j,U-ee],[O-C,R+W-j,U+ee]],t.A.CA&&0!==X?f.push([O-s,R+W-q,U+$],[O-s,R+W-q,U-$]):f.push([O-s,R+t.F/2,T/2]),se.left?((A=new D0(t)).copy(H),A.append(se.left),A.parse(),Z=ZC.DH.D6(A,t.C,f)):Z=ZC.DH.D6(H,t.C,f),Z.K=t.K+"-facet3",Z.FY=oe(4),i.add(Z),f=[[O-C,R+W+j,U-ee],[O-C,R+W+j,U+ee]],t.A.CA&&0!==X?f.push([O-s,R+W+q,U+$],[O-s,R+W+q,U-$]):f.push([O-s,R+W,T/2]),se.right?((A=new D0(t)).copy(H),A.append(se.right),A.parse(),h=ZC.DH.D6(A,t.C,f)):h=ZC.DH.D6(H,t.C,f),h.K=t.K+"-facet4",h.FY=oe(2),i.add(h),t.A.CA&&0!==X&&(se.top?((A=new D0(t)).copy(N),A.append(se.top),A.parse(),p=ZC.DH.D9(A,t.C,O-s,O-s,R+W-q,R+W+q,U-$,U+$,"z")):p=ZC.DH.D9(N,t.C,O-s,O-s,R+W-q,R+W+q,U-$,U+$,"z"),p.K=t.K+"-facet5",p.FY=oe(5),i.add(p)),t.A.FZ&&te.push(J+"--left"+ZC._[30]+Z.F1()+'" />',J+"--right"+ZC._[30]+h.F1()+'" />',J+"--front"+ZC._[30]+u.F1()+'" data-z-sort="-100" />');break;case"cylinder":if(f=[],S)for(_=0;_<=360;_+=5)f.push([O-t.I,R+ZC.EN(_)*ie+W,Q+ZC.EH(_)*ie+U]);else for(_=0;_<=360;_+=5)(d=new CB(t.C,0,0,0)).EB=[L+ZC.EH(_)*(ie/2)+le,Y+W+ZC.EN(_)*ie-re],f.push(d);if(se.bottom?((A=new D0(t)).copy(N),A.append(se.bottom),A.parse(),c=ZC.DH.D6(A,t.C,f,!S)):c=ZC.DH.D6(N,t.C,f,!S),c.K=t.K+"-facet1",c.FY=oe(1),i.add(c),f=[],S){for(_=90-ae;_<=270-ae;_+=5)f.push([O-t.I,R+ZC.EN(_)*ie+W,Q+ZC.EH(_)*ie+U]);for(f.push([O,R+ZC.EN(_)*ie+W,Q+ZC.EH(_)*ie+U]),_=270-ae;_>=90-ae;_-=5)f.push([O,R+ZC.EN(_)*ie+W,Q+ZC.EH(_)*ie+U])}else{for(_=90;_<=270;_+=5)(d=new CB(t.C,0,0,0)).EB=[L+ZC.EH(_)*(ie/2)+le,Y+W+ZC.EN(_)*ie-re],f.push(d);for(_=270;_>=90;_-=5)(d=new CB(t.C,0,0,0)).EB=[L+ZC.EH(_)*(ie/2)+t.I+le,Y+W+ZC.EN(_)*ie-re],f.push(d)}if(se.front?((A=new D0(t)).copy(k),A.append(se.front),A.parse(),u=ZC.DH.D6(A,t.C,f,!S)):u=ZC.DH.D6(k,t.C,f,!S),u.K=t.K+"-facet2",u.FY=oe(2),i.add(u),f=[],S)for(_=0;_<=360;_+=5)f.push([O,R+ZC.EN(_)*ie+W,Q+ZC.EH(_)*ie+U]);else for(_=0;_<=360;_+=5)(d=new CB(t.C,0,0,0)).EB=[L+ZC.EH(_)*(ie/2)+t.I+le,Y+W+ZC.EN(_)*ie-re],f.push(d);se.top?((A=new D0(t)).copy(N),A.append(se.top),A.parse(),p=ZC.DH.D6(A,t.C,f,!S)):p=ZC.DH.D6(N,t.C,f,!S),p.K=t.K+"-facet3",p.FY=oe(3),i.add(p),t.A.FZ&&te.push(J+"--front"+ZC._[30]+u.F1()+'" data-z-sort="-100" />',J+"--top"+ZC._[30]+p.F1()+'" />');break;case"cone":if(f=[],S)for(_=0;_<=360;_+=5)f.push([O-C,R+ZC.EN(_)*ie*y+W,ZC.EH(_)*ie*y+U]);else for(_=0;_<=360;_+=5)(d=new CB(t.C,0,0,0)).EB=[L+s+ZC.EH(_)*(ie/2)*y+le,Y+W+ZC.EN(_)*ie*y-re],f.push(d);if(se.bottom?((A=new D0(t)).copy(N),A.append(se.bottom),A.parse(),c=ZC.DH.D6(A,t.C,f,!S)):c=ZC.DH.D6(N,t.C,f,!S),c.K=t.K+"-facet1",c.FY=oe(1),i.add(c),f=[],S){for(_=90-ae;_<=270-ae;_+=5)f.push([O-C,R+ZC.EN(_)*ie*y+W,ZC.EH(_)*ie*y+U]);if(t.A.CA&&0!==X)for(_=270-ae;_>=90-ae;_-=5)f.push([O-s,R+ZC.EN(_)*ie*X+W,ZC.EH(_)*ie*X+U]);else f.push([O-s,R+W,ie])}else{for(_=90;_<=270;_+=5)(d=new CB(t.C,0,0,0)).EB=[L+s+ZC.EH(_)*(ie/2)*y+le,Y+W+ZC.EN(_)*ie*y-re],f.push(d);if(t.A.CA&&0!==X)for(_=270;_>=90;_-=5)(d=new CB(t.C,0,0,0)).EB=[L+C+ZC.EH(_)*(ie/2)*X+le,Y+W+ZC.EN(_)*ie*X-re],f.push(d);else(d=new CB(t.C,0,0,0)).EB=[L+C+le,Y+W-re],f.push(d)}if(se.front?((A=new D0(t)).copy(k),A.append(se.front),A.parse(),u=ZC.DH.D6(A,t.C,f,!S)):u=ZC.DH.D6(k,t.C,f,!S),u.K=t.K+"-facet2",u.FY=oe(2),i.add(u),t.A.CA&&0!==X){if(f=[],S)for(_=0;_<=360;_+=5)f.push([O-s,R+ZC.EN(_)*ie*X+W,ZC.EH(_)*ie*X+U]);else for(_=0;_<=360;_+=5)(d=new CB(t.C,0,0,0)).EB=[L+C+ZC.EH(_)*(ie/2)*X+le,Y+W+ZC.EN(_)*ie*X-re],f.push(d);se.top?((A=new D0(t)).copy(N),A.append(se.top),A.parse(),p=ZC.DH.D6(A,t.C,f,!S)):p=ZC.DH.D6(N,t.C,f,!S),p.K=t.K+"-facet3",p.FY=oe(3),i.add(p)}t.A.FZ&&te.push(J+"--front"+ZC._[30]+u.F1()+'" data-z-sort="-100" />')}}t.A.U&&t.A.U.AM&&t.F8()}}HU(){}}class A7F extends A3I{setup(){this.S1()}JB(){return{color:this.O.B7}}KC(){return{"background-color":this.O.B7,"border-color":this.O.B7,color:this.O.C1}}HG(e){var t=super.HG(e);return new CB(this.C,t[0]-ZC.AO.E1,t[1]-ZC.AO.E2,this.A.D["z-start"]).EB}paint(){var e,t,i=this;super.paint();var a,n=i.D.points;(a="none"!==i.A.J5?i.O=i.A.I4(i,i.O):i.O).DI=i.K+"-3dfacet",i.A.HX&&i.GN(a);var l=0,r=-1,o=ZC.AO.FU;if("hide"===i.C.getToggleAction())i.A.CA?r=0:(l=i.A.A.A4.length,r=i.A.L,o/=l);else if(i.A.CA)r=0;else{for(e=0;e<i.A.A.A4.length;e++)i.C.D["plot"+e+".visible"]&&r++;for(e=0;e<i.A.A.A4.length;e++)i.C.D["plot"+e+".visible"]&&(l++,i.A.L>e&&r--);o/=l,r=l-r-1}a.A0=a.AE=a.B7,"spline"===i.A.CV&&(a.BW=a.B7);var s=i.A.A.HZ,C=i.C.K+ZC._[34]+i.C.K+ZC._[35]+i.A.L+ZC._[6],A=ZC.Q.GJ("poly",i.A.E8,i.O.IZ)+'class="'+C+'" id="'+i.K,Z=r*o,c=(r+1)*o;if(null!==ZC._n_(i.A.o["z-start"])&&(Z=ZC._i_(i.A.o["z-start"])),null!==ZC._n_(i.A.o["z-end"])&&(c=ZC._i_(i.A.o["z-end"])),null!==ZC._n_(i.A.o.depth)){var p=ZC._i_(i.A.o.depth);Z=r*o+o/2-p,c=r*o+o/2+p}i.A.D["z-plots"]=l,i.A.D["z-cnt"]=r,i.A.D["z-depth"]=o,i.A.D["z-start"]=Z,i.A.D["z-mid"]=(Z+c)/2;var u,h,_,d=[],f=[],g=a;ZC._a_(Z-c)<=2&&(i.C.CJ.SS[i.A.K]||(i.C.CJ.SS[i.A.K]={zIndex:i.A.L,style:a,points:[]},i.C.CJ.SS[i.A.K].style.MF=!1,i.C.CJ.SS[i.A.K].style.AZ=ZC.BQ(1,ZC._i_(ZC._a_(Z-c)/1))));for(var B=0;B<n.length-1;B++){if(ZC._a_(Z-c)>2){var v=-ZC._i_(ZC.UE(Math.atan((n[B+1][1]-n[B][1])/(n[B+1][0]-n[B][0]))));(g=new D0(i)).copy(a),g.A0=ZC.AP.JQ(ZC.AP.GD(g.A0),v),g.AE=ZC.AP.JQ(ZC.AP.GD(g.AE),v),g.BW=ZC.AP.JQ(ZC.AP.GD(g.BW),v)}var m,b,D,K;if(i.A.oP0&&ZC._a_(Z-c)<=2?((m=i.A.oP0).parse(i.C,n[B][0]-ZC.AO.E1,n[B][1]-ZC.AO.E2,Z),(b=i.A.oP1).parse(i.C,n[B+1][0]-ZC.AO.E1,n[B+1][1]-ZC.AO.E2,Z),(D=i.A.oP2).parse(i.C,n[B+1][0]-ZC.AO.E1,n[B+1][1]-ZC.AO.E2,c-1),(K=i.A.oP3).parse(i.C,n[B][0]-ZC.AO.E1,n[B][1]-ZC.AO.E2,c-1)):(m=i.A.oP0=new CB(i.C,n[B][0]-ZC.AO.E1,n[B][1]-ZC.AO.E2,Z),b=i.A.oP1=new CB(i.C,n[B+1][0]-ZC.AO.E1,n[B+1][1]-ZC.AO.E2,Z),D=i.A.oP2=new CB(i.C,n[B+1][0]-ZC.AO.E1,n[B+1][1]-ZC.AO.E2,c-1),K=i.A.oP3=new CB(i.C,n[B][0]-ZC.AO.E1,n[B][1]-ZC.AO.E2,c-1)),ZC._a_(Z-c)>2?((u=new A03(g,i.C)).K=i.K+"-facet"+B,u.add(m),u.add(b),u.add(D),u.add(K),i.C.CJ.add(u)):(i.C.CJ.SS[i.A.K].points.push(m.EB),B===n.length-2&&i.C.CJ.SS[i.A.K].points.push(b.EB),"spline"===i.A.CV&&(m=new CB(i.C,n[B][0]-ZC.AO.E1,n[B][1]-ZC.AO.E2,Z-10),K=new CB(i.C,n[B][0]-ZC.AO.E1,n[B][1]-ZC.AO.E2,c-1+10))),d.push(m.EB),f.push(K.EB),i.A.FZ&&"spline"!==i.A.CV)if(ZC._a_(Z-c)>2)t=u.F1();else{for(h=ZC.AQ.ZK([m.EB,b.EB],4),_=0;_<h.length;_++)h[_][0]=Math.round(h[_][0]),h[_][1]=Math.round(h[_][1]);t=h.join(",")}"spline"!==i.A.CV&&i.A.FZ&&s.push(A+"--face"+B+ZC._[30]+t+'" />')}"spline"===i.A.CV?(i.D.polypoints=!0,i.D.points=d.concat(f.reverse())):i.D.points=null,i.A.A2.o&&("spline"===i.A.CV||"none"===i.A.A2.o.type||null!==ZC._n_(i.A.A2.o.visible)&&!ZC._b_(i.A.A2.o.visible))&&"spline"!==i.A.CV||i.OU(!0),i.A.U&&i.A.U.AM&&i.F8(),i.paintPreview(a,n)}HU(){}}class A7G extends A3J{setup(){this.S1()}JB(){return{color:this.O.B7}}KC(){return{"background-color":this.O.B7,"border-color":this.O.B7,color:this.O.C1}}HG(e){var t=super.HG(e);return new CB(this.C,t[0]-ZC.AO.E1,t[1]-ZC.AO.E2,this.A.D["z-start"]).EB}paint(){var e,t,i=this;super.paint();var a=i.A.CL,n=a.H9,l=a.AN(n);l=ZC._l_(l,a.iY,a.iY+a.F);var r,o=i.D.points,s=i.D.pointsarea;(r="none"!==i.A.J5?i.O=i.A.I4(i,i.O):i.O).DI=i.K+"-3dfacet",i.A.HX&&i.GN(r);var C=0,A=-1,Z=ZC.AO.FU;if("hide"===i.C.getToggleAction())i.A.CA?A=0:(C=i.A.A.A4.length,A=i.A.L,Z/=C);else if(i.A.CA)A=0;else{for(e=0;e<i.A.A.A4.length;e++)i.C.D["plot"+e+".visible"]&&A++;for(e=0;e<i.A.A.A4.length;e++)i.C.D["plot"+e+".visible"]&&(C++,i.A.L>e&&A--);Z/=C,A=C-A-1}var c=new D0(i);c.copy(r),c.A0=c.AE=r.B7,"spline"===i.A.CV&&(c.BW=r.B7);var p=new D0(i);p.copy(r),p.LE=!0,p.AU=0,p.C5=i.A.I0,p.A0=ZC.AP.RB(ZC.AP.GD(p.A0),30),p.AE=ZC.AP.RB(ZC.AP.GD(p.AE),30);var u,h,_=i.A.A.HZ,d=i.C.K+ZC._[34]+i.C.K+ZC._[35]+i.A.L+ZC._[6],f=ZC.Q.GJ("poly",i.A.E8,i.O.IZ)+'class="'+d+'" id="'+i.K,g=[],B=[],v=A*Z,m=(A+1)*Z;if(null!==ZC._n_(i.A.o["z-start"])&&(v=ZC._i_(i.A.o["z-start"])),null!==ZC._n_(i.A.o["z-end"])&&(m=ZC._i_(i.A.o["z-end"])),null!==ZC._n_(i.A.o.depth)){var b=ZC._i_(i.A.o.depth);v=A*Z+Z/2-b,m=A*Z+Z/2+b}i.A.D["z-plots"]=C,i.A.D["z-cnt"]=A,i.A.D["z-depth"]=Z,i.A.D["z-start"]=v,i.A.D["z-mid"]=(v+m)/2;var D=new A03(p,i.C);for(u=0,h=s.length;u<h;u++){var K=new CB(i.C,s[u][0]-ZC.AO.E1,s[u][1]-ZC.AO.E2,v);D.add(K)}i.C.CJ.add(D),i.D.pointsarea=s,i.L===i.A.R.length-1&&((D=new A03(p,i.C)).add(new CB(i.C,i.iX-.5-ZC.AO.E1,i.iY-ZC.AO.E2,v)),D.add(new CB(i.C,i.iX-.5-ZC.AO.E1,l-ZC.AO.E2,v)),D.add(new CB(i.C,i.iX-.5-ZC.AO.E1,l-ZC.AO.E2,m-1)),D.add(new CB(i.C,i.iX-.5-ZC.AO.E1,i.iY-ZC.AO.E2,m-1)),D.K=i.K+"-facet99",i.C.CJ.add(D));var E=r;for(ZC._a_(v-m)<=2&&(i.C.CJ.SS[i.A.K]||(i.C.CJ.SS[i.A.K]={zIndex:i.A.L,style:r,points:[]},i.C.CJ.SS[i.A.K].style.MF=!1,i.C.CJ.SS[i.A.K].style.AZ=ZC.BQ(1,ZC._i_(ZC._a_(v-m)/1)))),u=0;u<o.length-1;u++){if(ZC._a_(v-m)>2){var F=-ZC._i_(ZC.UE(Math.atan((o[u+1][1]-o[u][1])/(o[u+1][0]-o[u][0]))));(E=new D0(i)).copy(c),E.A0=ZC.AP.JQ(ZC.AP.GD(E.A0),F),E.AE=ZC.AP.JQ(ZC.AP.GD(E.AE),F),E.BW=ZC.AP.JQ(ZC.AP.GD(E.BW),F)}var I=new CB(i.C,o[u][0]-ZC.AO.E1,o[u][1]-ZC.AO.E2,v),x=new CB(i.C,o[u+1][0]-ZC.AO.E1,o[u+1][1]-ZC.AO.E2,v),y=new CB(i.C,o[u+1][0]-ZC.AO.E1,o[u+1][1]-ZC.AO.E2,m-1),X=new CB(i.C,o[u][0]-ZC.AO.E1,o[u][1]-ZC.AO.E2,m-1);if(ZC._a_(v-m)>2?((D=new A03(E,i.C)).K=i.K+"-facet"+u,D.add(I),D.add(x),D.add(y),D.add(X),i.C.CJ.add(D)):(i.C.CJ.SS[i.A.K].points.push(I.EB),u===o.length-2&&i.C.CJ.SS[i.A.K].points.push(x.EB),"spline"===i.A.CV&&(I=new CB(i.C,o[u][0]-ZC.AO.E1,o[u][1]-ZC.AO.E2,v-10),X=new CB(i.C,o[u][0]-ZC.AO.E1,o[u][1]-ZC.AO.E2,m-1+10))),g.push(I.EB),B.push(X.EB),i.A.FZ&&"spline"!==i.A.CV)if(ZC._a_(v-m)>2)t=D.F1();else{for(var G=ZC.AQ.ZK([D.E[0].EB,D.E[1].EB],4),Y=0;Y<G.length;Y++)G[Y][0]=Math.round(G[Y][0]),G[Y][1]=Math.round(G[Y][1]);t=G.join(",")}"spline"!==i.A.CV&&i.A.FZ&&_.push(f+"--face"+u+ZC._[30]+t+'" />')}"spline"===i.A.CV?(i.D.polypoints=!0,i.D.points=g.concat(B.reverse())):i.D.points=null,i.A.A2.o&&("none"===i.A.A2.o.type||null!==ZC._n_(i.A.A2.o.visible)&&!ZC._b_(i.A.A2.o.visible))&&"spline"!==i.A.CV||i.OU(!0),i.A.U&&i.A.U.AM&&i.F8(),i.paintPreview(r,o,s)}HU(){}}class A8S extends MH{constructor(e){super(e),this.X6=0,this.X5=0}F0(e,t,i,a){var n=this,l=null;return l=n.A.L<n.A.A.A4.length-1?n.A.A.A4[n.A.L+1]:n.A.A.A4[0],n.CU=[["%paired-plot-text",l.AT],["%paired-node-value",l.R[n.L].AD],["%joined-value",n.X5],["%shared-value",null===ZC._n_(n.A.A.XR[n.L])?0:n.A.A.XR[n.L].area]],e=super.F0(e,t,i,a)}setup(){var e=this,t=e.C.BI("scale"),i=e.L%t.H3,a=Math.floor(e.L/t.H3);e.iX=t.iX+i*t.GM+t.GM/2+t.BL,e.iY=t.iY+a*t.GG+t.GG/2+t.BH,e.IO||(e.copy(e.A),e.E5=e.A.E5,e.DC()&&e.parse(!1),e.IO=!0),e.I=t.GM/2,e.F=t.GG/2}HG(e){var t=this,i=e.I,a=e.F,n=t.iX-i/2,l=t.iY-a/2;if(3===t.A.A.A4.length)switch(t.A.L){case 0:n-=t.AI/4,l+=t.AI/8;break;case 1:n+=t.AI/4,l+=t.AI/8;break;case 2:l-=t.AI/4}else switch(t.A.L){case 0:n-=t.AI/4;break;case 1:n+=t.AI/4}return null!==ZC._n_(e.o.x)&&(n=e.iX),null!==ZC._n_(e.o.y)&&(l=e.iY),n+=e.BL,l+=e.BH,[ZC._i_(n),ZC._i_(l)]}F8(){var e,t,i=this,a=super.F8(),n=i.C.K+"-value-box "+i.C.K+"-plot-"+i.A.L+"-value-box zc-value-box",l=i.G.usc()?i.G.mc("top"):i.C.AJ["3d"]||i.G.KD?ZC.AK(i.C.K+"-plots-vb-c"):ZC.AK(i.C.K+"-plot-"+i.A.L+"-vb-c"),r=i.G.usc()?ZC.AK(i.C.A.K+"-top"):ZC.AK(i.C.A.K+"-text");if(null!==ZC._n_(a.o.joined)){if(0===i.A.L&&!i.C.D["plot1.visible"]||1===i.A.L&&!i.C.D["plot2.visible"]||2===i.A.L&&!i.C.D["plot0.visible"])return;i.A.L<i.A.A.A4.length-1?i.A.A.A4[i.A.L+1]:i.A.A.A4[0],e=i.A.A.DZ[i.A.L][i.L].intxy,(t=new DT(i)).copy(a),t.o.text=""+i.X5,t.append(a.o.joined),t.F0=function(e){return i.F0(e,{})},t.parse(),t.GO=n,t.K=i.K+"-value-box-join",t.Z=a.C7=l,t.IU=r,t.iX=e[0]-t.I/2,t.iY=e[1]-t.F/2,t.AM&&(t.paint(),t.EC())}if(null!==ZC._n_(a.o.shared)&&2===i.A.L){if(!i.C.D["plot0.visible"]||!i.C.D["plot1.visible"]||!i.C.D["plot2.visible"])return;e=i.A.A.XR[i.L].xy,(t=new DT(i)).copy(a),t.o.text=""+i.A.A.HZ[i.A.L],t.append(a.o.shared),t.F0=function(e){return i.F0(e,{})},t.parse(),t.GO=n,t.K=i.K+"-value-box-shared",t.Z=a.C7=l,t.IU=r,t.iX=e[0]-t.I/2,t.iY=e[1]-t.F/2,t.AM&&(t.paint(),t.EC())}}JB(){return{color:this.B7}}KC(){return{"background-color":this.BW,"border-color":this.BW,color:this.C1}}paint(){var e,t=this;if(t.A.L>=3)t.A.U&&t.F8();else{super.paint();var i=t.O=t.A.I4(t,t),a=new DW(t.A);a.K=t.K,a.Z=t.A.CN("bl",1),a.C7=t.A.CN("bl",0),a.copy(i);var n=t.iX,l=t.iY;if(a.iX=n,a.iY=l,a.AI=t.AI,a.DP="circle",a.D.plotidx=t.A.L,a.D.nodeidx=t.L,a.parse(),t.FR=a,t.A.GF&&!t.C.HL){var r=a,o={};r.iX=n,r.iY=l,o.x=n,o.y=l;var s=t.A.LH;if(r.C5=0,o.alpha=i.C5,3===s)r.AI=2,o.size=t.AI;else if(4===s){switch(t.A.L){case 0:r.iX=n-3*t.AI,r.iY=l;break;case 1:r.iX=n+3*t.AI,r.iY=l;break;case 2:r.iX=n,r.iY=l-3*t.AI}o.x=n,o.y=l}for(e in t.A.FW)r[EA.GP[ZC.EE(e)]]=t.A.FW[e],o[ZC.EE(e)]=i[EA.GP[ZC.EE(e)]];if(t.C.EL||(t.C.EL={}),null!==ZC._n_(t.C.EL[t.A.L+"-"+t.L]))for(e in t.C.EL[t.A.L+"-"+t.L])r[EA.GP[ZC.EE(e)]]=t.C.EL[t.A.L+"-"+t.L][e];t.C.EL[t.A.L+"-"+t.L]={},ZC._cp_(o,t.C.EL[t.A.L+"-"+t.L]);var C=new EA(r,o,t.A.JK,t.A.LF,EA.RU[t.A.LI],function(){A()});C.AX=t,t.LA(C)}else a.paint(),A()}function A(){var e=t.C.K+ZC._[34]+t.C.K+ZC._[35]+t.A.L+ZC._[6],i=ZC.Q.GJ("circle",t.A.E8,t.A.IZ)+'class="'+e+'" id="'+t.K+ZC._[30]+ZC._i_(t.iX+ZC.MAPTX)+","+ZC._i_(t.iY+ZC.MAPTX)+","+ZC._i_(ZC.BQ(ZC.mobile?6:3,t.AI)*(ZC.mobile?2:1.2))+'" />';t.A.A.HZ.push(i),t.A.U&&t.F8()}}HU(e){var t=this;ZC.move||t.LO({layer:e,type:"shape",initcb:function(){this.DP="circle",this.A0=t.A.BP[3],this.AE=t.A.BP[3]},setupcb:function(){this.iX=t.iX,this.iY=t.iY,this.AI=t.AI}})}}MH.prototype.MU=function(e,t){var i,a,n=this;if(typeof t===ZC._[31]&&(t=!1),t)typeof n.D.pointserror!==ZC._[31]&&((i=new D0(n)).copy(n.A),n.A.JC&&(i.copy(n.A.JC),i.append(n.A.JC.o[ZC._[71]])),i.parse(),i.K=n.K+"--error-hover",i.AM&&ZC.CR.paint(e,i,n.D.pointserror));else{var l=n.A.CL,r=n.A.B2;if(0!==n.A.SF.length){var o=null,s=null,C=!0;n.A.SF.length<=2?(null!==ZC._n_(n.A.SF[0])&&n.A.SF[0]instanceof Array&&(C=!1),null!==ZC._n_(n.A.SF[1])&&n.A.SF[1]instanceof Array&&(C=!1)):C=!1,C?(o=n.A.SF[0],s=n.A.SF[1]):null!==ZC._n_(a=n.A.SF[n.L])&&a instanceof Array&&(o=s=a[0],2===a.length&&(s=a[1])),n.D["node-error-plus"]=o,n.D["node-error-minus"]=s,-1!==(o+"").indexOf("%")&&(o=ZC.IR(o))<=1&&(o*=n.AD),-1!==(s+"").indexOf("%")&&(s=ZC.IR(s))<=1&&(s*=n.AD);var A=[],Z=ZC.IR(n.A.JC&&n.A.JC.o[ZC._[21]]||.5);Z<=1&&(Z="vbar"===n.A.AF?ZC._i_(Z*n.I):"hbar"===n.A.AF?ZC._i_(Z*n.F):ZC._i_(Z*r.AC));var c,p=0;if(p=r.CP?n.F:n.I,null!==ZC._n_(o)){var u=l.AN(n.CQ+o);r.CP?(c=l.AW?n.AD<0?n.iX+n.I:n.iX:n.AD>0?n.iX+n.I:n.iX,A.push([u,n.iY+p/2-Z/2],[u,n.iY+p/2+Z/2],null,[u,n.iY+p/2],[c,n.iY+p/2])):(c=l.AW?n.AD>0?n.iY+n.F:n.iY:n.AD<0?n.iY+n.F:n.iY,A.push([n.iX+p/2-Z/2,u],[n.iX+p/2+Z/2,u],null,[n.iX+p/2,u],[n.iX+p/2,c]))}if(null!==ZC._n_(s)){var h=l.AN(n.CQ-s);r.CP?(c=l.AW?n.AD<0?n.iX+n.I:n.iX:n.AD>0?n.iX+n.I:n.iX,A.push(null,[h,n.iY+p/2-Z/2],[h,n.iY+p/2+Z/2],null,[h,n.iY+p/2],[c,n.iY+p/2])):(c=l.AW?n.AD>0?n.iY+n.F:n.iY:n.AD<0?n.iY+n.F:n.iY,A.push(null,[n.iX+p/2-Z/2,h],[n.iX+p/2+Z/2,h],null,[n.iX+p/2,h],[n.iX+p/2,c]))}(i=new D0(n)).copy(n.A),n.A.JC&&i.copy(n.A.JC),i.parse(),i.K=n.K+"--error",i.CY=!1,ZC.CR.paint(e,i,A),n.D.pointserror=A}}};class HD extends I2{constructor(e){super(e);var t=this;t.G=t.A.A,t.BG="",t.V=[],t.BY=[],t.A5J=[],t.DQ=!1,t.M=null,t.BR=null,t.IY=null,t.D4=null,t.FV=0,t.IC=null,t.G5=null,t.H9=0,t.PB=null,t.L=1,t.AA=0,t.A4M=0,t.BV=0,t.AW=!1,t.CP=!1,t.AC=0,t.iStepMultiplier=1,t.DM=-1,t.RM=ZC.HN[ZC._[13]]||"",t.S8=ZC.HN[ZC._[14]]||".",t.A0F=!1,t.SQ=2,t.A38=!1,t.TX="",t.A0I="standard",t.CH=null,t.AF="",t.EG=ZC.MAX,t.M9=ZC.MAX,t.GQ=!1,t.YO=!1,t.KS=null,t.NZ=null,t.QG=[],t.E3=1,t.B3=-1,t.BK=-1,t.SR=-1,t.FX=-1,t.H2=-1,t.C6="lin",t.E4=10,t.FI=null,t.PC=1,t.QA=!0,t.A0U=!1,t.aAutoFit=[!1,!1],t.M3=null,t.X7=null,t.TL=!1,t.I6=-1,t.Z3=!1,t.B9="default",t.QE=!1,t.VX=!1,t.RD=1,t.sMaster="",t.bNormalize=!0}parse(){super.parse();var e,t=this;if(null!==ZC._n_(e=t.o.step))if(ZC.PN(e))t.E3=ZC._f_(e);else{var i=e.replace(/[0-9]/gi,""),a=parseInt(e.replace(/[^0-9]/gi,""),10);switch(a=a||1,i){case"second":t.E3=1e3*a;break;case"minute":t.E3=1e3*a*60;break;case"hour":t.E3=1e3*a*60*60;break;case"day":t.E3=1e3*a*60*60*24;break;case"week":t.E3=1e3*a*60*60*24*7;break;case"month":t.E3=2629743e3*a;break;case"year":t.E3=31556926e3*a}}if(null!==ZC._n_(t.o.multiplier)&&null===ZC._n_(t.o.short)&&(t.o.short=t.o.multiplier),t.assign_a([[ZC._[10],"BY"],["tooltip-text","A5J"],["format","CH"],["offset-start","AA","i"],["offset-start","A4M","i"],["offset-end","BV","i"],["minor-ticks","FV","i"],["step-multiplier","iStepMultiplier","i"],["index","L","i"],["mirrored","AW","b"],["zooming","GQ","b"],["zoom-snap","YO","b"],["fixed-step","QE","b"],["zoom-to","KS"],["force-view","Z3","b"],["zoom-to-values","NZ"],["items-overlap","A0U","b"],["used","TL","b"],["max-labels","EG","i"],["max-items","EG","i"],["ref-value","H9","f"],[ZC._[12],"DM","ia"],[ZC._[14],"S8"],[ZC._[13],"RM"],["short","A38","b"],["short-unit","TX"],["negation","A0I"],["exponent","A0F","b"],[ZC._[25],"SQ","ia"],["progression","C6"],["log-base","E4","fa"],["scale-factor","PC","fa"],["show-labels","M3"],["max-decimals","I6","i"],[ZC._[7],"B9"],["factor","RD","f"],["master","sMaster"],["blended","VX","b"],["ranged","DQ","b"],["normalize","bNormalize","b"]]),"log"===t.C6&&(null===ZC._n_(t.o["minor-ticks"])&&(t.FV=Math.max(0,t.E4-2)),null!==ZC._n_(t.KS)&&"v"===t.AF&&(t.KS[0]=ZC.G6(t.KS[0],t.E4),t.KS[1]=ZC.G6(t.KS[1],t.E4))),null!==ZC._n_(e=t.o["auto-fit"])&&(e.length?(t.aAutoFit[0]=ZC._b_(e[0]),t.aAutoFit[1]=ZC._b_(e[e.length-1])):t.aAutoFit[0]=t.aAutoFit[1]=ZC._b_(e)),"string"==typeof t.BY){var n=t.BY.split(":"),l=1;3===n.length&&(l=ZC._f_(n[2])),t.BY=[];for(var r=ZC._f_(n[0]);r<ZC._f_(n[1]);r+=l)t.BY.push(""+r);t.BY.push(""+n[1])}null!==ZC._n_(t.o["fixed-items"])&&(t.EG=ZC.MAX),t.EG=ZC.BQ(t.EG,2),null!==ZC._n_(e=t.o.offset)&&(t.AA=t.BV=ZC._i_(e),0!==ZC._i_(e)||"mixed"!==t.A.AF&&"mixed3d"!==t.A.AF||(t.DQ=!1)),null!==ZC._n_(e=t.o["max-ticks"])?t.M9=ZC._i_(e):t.M9=t.EG,t.M9=ZC.BQ(2,t.M9),null!==ZC._n_(e=t.o.transform)&&(t.FI=new D0,t.FI.append(e));var o=t.A.A.B8,s="("+t.A.AF+")",C=t.BG.replace(/\-[0-9]/,""),A=t.BG.replace(/\-[0-9]/,"-n");function Z(e){var i=[s+".SCALE."+e,s+"."+t.BG+"."+e,s+"."+C+"."+e,s+"."+C+"["+t.B9+"]."+e,s+"."+A+"."+e];return t.A.AJ["3d"]&&(i=i.concat([s+".SCALE[3d]."+e,s+"."+t.BG+"[3d]."+e,s+"."+C+"[3d]."+e,s+"."+A+"[3d]."+e])),i}if(null===ZC._n_(t.o[ZC._[7]])&&t.L>1&&(t.B9="opposite"),null!==ZC._n_(e=t.o.markers))for(var c=0,p=e.length;c<p;c++){var u=new A9B(t);u.L=c,u.K=t.K+"-marker-"+c,o.load(u.o,Z("marker")),u.append(e[c]),u.parse(),t.QG.push(u)}t.PB=new D0(t),o.load(t.PB.o,Z("ref-line")),t.PB.append(t.o["ref-line"]),"k"===t.AF&&(t.PB.AM=!1),t.PB.parse(),t.M=new DT(t),o.load(t.M.o,Z("label")),t.M.append(t.o.label),t.M.K=t.K+"-label",t.M.parse(),t.BR=new DT(t),o.load(t.BR.o,Z("item")),t.BR.append(t.o.item),t.BR.K=t.K+"-item",t.BR.parse(),t.IY=new D0(t),o.load(t.IY.o,Z("tick")),t.IY.append(t.o.tick),t.IY.parse(),t.D4=new D0(t),o.load(t.D4.o,Z("guide")),t.D4.append(t.o.guide),t.D4.parse(),null===ZC._n_(t.D4.o.items)&&"-1"!==t.D4.A0&&"-1"!==t.D4.AE&&t.D4.A0!==t.D4.AE&&(t.D4.o.items=[{alpha:t.D4.C5,"background-color":t.D4.A0},{alpha:t.D4.C5,"background-color":t.D4.AE}]),t.IC=new D0(t),o.load(t.IC.o,Z("minor-tick")),t.IC.append(t.o["minor-tick"]),t.IC.parse(),t.G5=new D0(t),o.load(t.G5.o,Z("minor-guide")),t.G5.append(t.o["minor-guide"]),t.G5.parse(),t.WX()}WX(){var e,t=this,i={x:"iX",y:"iY",width:"I",height:"F"};for(var a in i){var n=t.A.P[i[a]];null!==ZC._n_(t.o[a])&&(n=ZC.IR(t.o[a]))>=0&&n<=1&&(n="x"===a||"y"===a?t.A.P["x"===a?"iX":"iY"]+ZC._i_(n*t.A.P["x"===a?"I":"F"]):ZC._i_(n*t.A.P[i[a]])),t[i[a]]=n}null!==ZC._n_(e=t.o.offset)&&(t.AA=t.BV=ZC._f_(ZC._p_(e))),null!==ZC._n_(e=t.o["offset-start"])&&(t.AA=ZC._f_(ZC._p_(e))),null!==ZC._n_(e=t.o["offset-end"])&&(t.BV=ZC._f_(ZC._p_(e)));var l="k"===t.AF&&!t.CP||"v"===t.AF&&t.CP?t.I:t.F;t.AA<1&&(t.AA*=l),t.BV<1&&(t.BV*=l)}WA(e){var t=this;null!==ZC._n_(t.o.rules)&&(t.X7||(t.X7=new HD(t.A)),t.X7.append(t.o),t.X7.parse(),t.X7.J2=e,t.X7.DC()&&(t.X7.parse(),t.DM=t.X7.DM,t.CH=t.X7.CH))}GZ(){}T8(){}A05(){}HC(){}clear(){}build(){}LX(){var e,t=this,i={negation:t.A0I,"thousands-separator":t.RM,"decimals-separator":t.S8,decimals:t.DM,"max-decimals":t.I6,short:t.A38,"short-unit":t.TX,exponent:t.A0F,"exponent-decimals":t.SQ};if(t.FI)switch(t.FI.o.type){case"date":i[ZC._[68]]=!0,null!==ZC._n_(e=t.FI.o.text)&&(t.FI.o.all=e);var a=t.V[t.A1]-t.V[t.W],n="",l="",r={},o=["msecond","second","minute","hour","day","month","year"];for(var s in o)r[o[s]]=ZC.HN["date-formats"][o[s]];l=0<=a&&a<=1e3?"msecond":1e3<a&&a<=36e5?"second":36e5<a&&a<=864e5?"minute":864e5<a&&a<=26784e5?"hour":26784e5<a&&a<=316224e5?"day":316224e5<a&&a<=632448e6?"month":"year",n=null!==ZC._n_(t.FI.o[l])?t.FI.o[l]:null!==ZC._n_(t.FI.o.all)?t.FI.o.all:r[l],t.D.dateformat=n,i[ZC._[67]]=t.D.dateformat}return i}YC(){for(var e=this,t=e.A.AY.A4,i=-1,a=0,n=t.length;a<n;a++){var l=t[a].BT(e.AF);if(-1!==ZC.AV(l,e.BG)){switch(t[a].AF){case"pie":case"pie3d":case"nestedpie":case"vbar":case"vbar3d":case"hbar":case"hbar3d":case"vbullet":case"hbullet":case"area":case"area3d":case"gauge":case"vfunnel":case"hfunnel":case"venn":i=t[a].A0;break;case"scatter":case"bubble":i=-1!==t[a].A2.A0?t[a].A2.A0:t[a].A0;break;default:i=t[a].B7}break}}return i}paint(){this.build(),this.A.AJ["3d"]||super.paint()}MB(e,t,i,a){var n=this;if(null===ZC._n_(a)&&(a=5),n.A.AJ["3d"]){var l=new CB(n.A,e.iX+e.I/2-ZC.AO.E1,e.iY+e.F/2-ZC.AO.E2,0+e.A9Q);e.iX=l.EB[0]-e.I/2+("v"===i?"default"===n.B9?-a:a:0),e.iY=l.EB[1]-e.F/2+("h"===i?"default"===n.B9?a:-a:0);var r=ZC.DH.A3V(n.A,e);null===ZC._n_(t)&&(t=e.A9,e.A9%90==0&&(t+=e.VQ?0:r)),e.A9=t}return t}UR(e,t,i){var a=this,n=(i.items,i.lcoords),l=i.lstep,r=i.tdim,o=i.mdim,s=i.dim,C=i.html,A=[e.iX+e.BL,e.iY+e.BH,e.I,e.F],Z=ZC._a_(e.A9%180),c=!1;Z%360!=0&&(c=!0),c&&(A=[e.iX+e.BL+e.I/2-e.F/2,e.iY+e.BH+e.F/2-e.I/2,e.F,e.I]);var p=!0;if(e.AM){if(!a.A0U)if("log"===a.C6||t!==a.W&&t!==a.A1){t%l==0&&(p=!0);for(var u=0,h=n.length;u<h;u++)if(ZC.AQ.YD({x:A[0],y:A[1],width:A[2],height:A[3]},{x:n[u][0],y:n[u][1],width:n[u][2],height:n[u][3]})){p=!1;break}}else p=!0;p&&(n.push(A),e.paint(),0,o=ZC.BQ(o,1.5*e.DF*(e.AT||"").split("<br>").length),"h"===s?(r+=e.F,o=ZC.BQ(o,ZC._a_(ZC.EN(Z))*ZC.BQ(e.I,e.F))):"w"===s&&(r+=e.I,o=ZC.BQ(o,ZC._a_(ZC.EH(Z))*ZC.BQ(e.I,e.F))),e.EC(),null===ZC._n_(a.o.tooltip)&&e.KD||(null!==ZC._n_(a.o.tooltip)&&(a.o.tooltip.text=a.o.tooltip.text||"%scale-value"),C.push(ZC.AP.OG(a.A.K,e))))}return{tdim:r,mdim:o,overlaps:!p}}TM(e,t){var i=this;if("v"===i.AF&&(i.H9!==i.B3&&i.H9!==i.BK||(null===ZC._n_(i.o["ref-line"])||null!==ZC._n_(i.o["ref-line"])&&null===ZC._n_(i.o["ref-line"].visible))&&(i.PB.AM=!1)),i.PB.K=i.K+"-ref-line",i.V.length>0&&i.PB.AM&&!i.A.AJ["3d"]&&i.PB.AZ>0){"inherit"===i.PB.o["line-color"]&&-1!==t&&(i.PB.B7=t);var a=i.H9;if("k"===i.AF&&!i.CP||"v"===i.AF&&i.CP){var n=i.AN(a);n>=i.iX&&n<=i.iX+i.I&&ZC.CR.paint(e,i.PB,[[n,i.iY],[n,i.iY+i.F]])}else{var l=i.AN(a);l>=i.iY&&l<=i.iY+i.F&&ZC.CR.paint(e,i.PB,[[i.iX,l],[i.iX+i.I,l]])}}}paint_(){}VV(){for(var e=this,t=0,i=e.QG.length;t<i;t++)e.V.length>0&&e.QG[t].paint()}gc(){ZC.AP.gc(this,["V","BY","Z","C7","D4","BR","M","G5","IC","PB","IY","J2","o","I9","JF","A","G"])}}class A4H extends HD{constructor(e){super(e);var t=this;t.EF=!1,t.AF="k",t.DA=-1,t.DU=-1,t.W=-1,t.A1=-1,t.VJ=1,t.DM=null,t.OW=0,t.A57=!1,t.O4=!1,t.UL={},t.IX=[],t.iMinOffset=0}zoomTo(e,t){var i=this;if(i.GQ){null!==ZC._n_(e)?i.W=e:i.W=i.DA,null!==ZC._n_(t)?i.A1=t:i.A1=i.DU;var a=i.IX;if(a.length>0?(i.B3=ZC.AV(a,i.V[i.W]),i.BK=ZC.AV(a,i.V[i.A1])):(i.B3=i.V[i.W],i.BK=i.V[i.A1]),i.G.HE.C||(i.G.HE.C=i.A),i.A.HE&&null!==ZC._n_(i.A.HE.o.shared)&&ZC._b_(i.A.HE.o.shared)&&i.A.K===i.G.HE.C.K)for(var n=0,l=i.G.AG.length;n<l;n++){var r=i.G.AG[n];if(r.K!==i.A.K&&null!==ZC._n_(r.HE.o.shared)&&ZC._b_(r.HE.o.shared)){var o=r.BI(i.BG);o&&o.GQ&&(e=Math.max(o.DA,Math.min(o.DU,i.W)),t=Math.max(o.DA,Math.min(o.DU,i.A1)),o.zoomTo(e,t),ZC.AK(r.K)&&(r.clear(!0),r.D["shared-zoom"]=!0,r.paint(),r.BA&&r.BA.update(e,t,null,null,!0)))}}i.GZ()}}zoomToV(e,t){var i=this;null!==ZC._n_(e)?i.B3=e:i.B3=i.FX,null!==ZC._n_(t)?i.BK=t:i.BK=i.H2,i.Q7(i.B3,i.BK,null===ZC._n_(e)&&null===ZC._n_(t))}FC(L,J,EQ,bKeep,AD){var s=this,CT="";J?(CT=J.R[L].BU,s.FI&&"date"===s.FI.o.type||"number"==typeof CT||(null!==ZC._n_(s.BY[CT])?CT=s.BY[CT]:null!==ZC._n_(s.V[CT])&&(CT=s.V[CT]))):CT="log"===s.C6&&bKeep?L+1:null!==ZC._n_(s.BY[L])?s.BY[L]:s.V[L],"number"==typeof CT&&null!==ZC._n_(s.IX[CT])&&(CT=s.IX[CT]),null!==ZC._n_(AD)&&(CT=AD);var P1=ZC.PN(CT)&&ZC._f_(CT)<0,BE=s.LX();if(ZC._cp_(EQ,BE),P1&&"currency"===BE.negation&&(CT=ZC._a_(ZC._f_(CT))),BE.utc=s.A.UX,BE.timezone=s.A.NI,CT=ZC.AP.G3(CT,BE,s,!0),s.CH)if("()"===s.CH.substring(s.CH.length-2)||"javascript:"===s.CH.substring(0,11))try{var ED=s.CH.replace("javascript:","").replace("()","");eval(ED)&&(CT=eval(ED).call(s,CT))}catch(e){}else CT=P1&&"currency"===BE.negation?"-"+s.CH.replace(/%v|%scale-value/g,CT):s.CH.replace(/%v|%scale-value/g,CT);return CT}F0(e,t,i,a,n){var l=this,r=l.FC(t,i,a,n),o=[];o.push(["%scale-label",r],["%scale-index",t],["%scale-position",t]),l.FI&&"date"===l.FI.o.type?o.push(["%scale-value",r],["%v",r]):"log"===l.C6&&n?o.push(["%scale-value",Math.pow(l.E4,t)],["%v",Math.pow(l.E4,t)]):o.push(["%scale-value",ZC._c_(l.V[t],"")],["%v",ZC._c_(l.V[t],"")]),o.push(["%l",r],["%t",r],["%i",t],["%c",t]),o.sort(ZC.A27);for(var s=0,C=o.length;s<C;s++){var A=new RegExp(o[s][0],"g");e=e.replace(A,o[s][1])}return e}T8(){var e=this,t=ZC.BQ(e.V.length,e.BY.length),i=0;if(t>0&&e.BR.A9%180==0){for(var a=ZC.BQ(1,ZC._i_(t/20)),n=0,l=0;l<t;l+=a){for(var r=((e.BY[l]||e.V[l])+"").split(/<br>|<br\/>|<br \/>|\n/),o=0,s=0,C=r.length;s<C;s++)o=ZC.BQ(o,10*r[s].replace(/<.+?>/gi,"").replace(/<\/.+?>/gi,"").length);i+=o,n++}i=.75*i/Math.max(1,n)}else i=15;e.CP?e.EG=ZC._i_((e.F-e.AA-e.BV)/15):e.EG=ZC._i_((e.I-e.AA-e.BV)/i),e.EG=ZC.CX(e.EG,10),(e.BK-e.B3)/e.E3+1<e.EG?e.EG=ZC.BQ(e.EG,ZC._i_((e.BK-e.B3)/e.E3)+1):(e.BK-e.B3)/(2*e.E3)+1<e.EG&&(e.EG=ZC.BQ(e.EG,ZC._i_((e.BK-e.B3)/(2*e.E3))+1)),e.EG=ZC.BQ(2,e.EG)}A05(){var e=this;null===ZC._n_(e.o["max-ticks"])&&(e.M9=e.EG)}HC(e){var t,i,a,n,l,r=this;if(1===e&&r.o.transform&&"date"===r.o.transform.type&&(null===ZC._n_(r.o.transform.uniform)||ZC._b_(r.o.transform.uniform)||(r.O4=!0)),1===e&&null!==ZC._n_(r.o[ZC._[5]]))if(r.V=[],"object"==typeof r.o[ZC._[5]])for(r.V=r.o[ZC._[5]],0===r.BY.length&&(r.BY=r.V),a=0,n=r.V.length;a<n;a++)"string"==typeof r.V[a]&&(r.A57=!0,r.IX.push(r.V[a]));else{var o=r.o[ZC._[5]].split(":"),s=r.E3;if(3===o.length&&(s=ZC._f_(o[2])),r.E3=r.SR=s,ZC._f_(o[0])>ZC._f_(o[1])){var C=o[0];o[0]=o[1],o[1]=C}if(s<=0&&(s=1),o.length>1){for(var A=0,Z=0,c=0,p=(""+s).split("."),u=ZC._f_(o[0]);u<=ZC._f_(o[1]);u+=s){var h=(""+u).split(".");p.length>1&&h.length>1&&p[1].length>0&&h[1].length>=9&&ZC._a_(h[1].length-p[1].length)>2?(A+=p[1].length,Z=ZC.BQ(Z,p[1].length),c++,null!==(l=ZC._n_(r.o[ZC._[12]]))?r.V.push(ZC._f_(Number(u).toFixed(ZC._i_(l)))):r.V.push(ZC._f_(ZC._fixed_(Number(u),p[1].length))),u=ZC._f_(ZC._fixed_(Number(u),p[1].length))):(A+=h[1]?h[1].length:0,Z=ZC.BQ(Z,h[1]?h[1].length:0),c++,null!==(l=ZC._n_(r.o[ZC._[12]]))?r.V.push(ZC._f_(Number(u).toFixed(ZC._i_(l)))):r.V.push(u))}null===ZC._n_(r.o[ZC._[12]])&&(A=Math.ceil(A/c),r.DM=ZC._a_(Z-A)<=1?Z:A)}}if(2===e){var _=0,d=[];0===r.V.length?(t=ZC.MAX,i=-ZC.MAX):(t=r.V[0],i=r.V[r.V.length-1]);var f,g,B=r.A.AY.A4,v=!1;for(a=0,n=B.length;a<n;a++){var m=B[a].BT();if(-1!==ZC.AV(m,r.BG)){for(var b=0===d.length,D=0,K=B[a].R.length;D<K;D++)if(B[a].R[D])if(null!==B[a].R[D].BU){var E=B[a].R[D].BU;t=ZC.CX(t,E),i=ZC.BQ(i,E),r.O4&&b&&d.push(E),r.EF=!0,B[a].EF=!0}else v=!0;else r.O4&&b&&d.push("");B[a].EF||(_=ZC.BQ(_,B[a].R.length))}}if(null!==ZC._n_(r.o[ZC._[5]]))for(a=0;a<r.V.length;a++)null===r.V[a]&&(r.V[a]="");if(null!==ZC._n_(r.o[ZC._[10]]))for(a=0;a<r.BY.length;a++)null===r.BY[a]&&(r.BY[a]="");if(_>r.V.length&&r.V.length>0&&!r.EF)for(a=r.V.length;a<_;a++);var F=0;for(a=0;a<B.length;a++)B[a].M1&&(-1===B[a].RH&&(B[a].RH=F),F++,r.DQ=!0);if(0===r.V.length)for(a=0;a<F;a++)r.V.push(a),r.BY.push(a);if(0===r.V.length)if(r.EF)v&&t>0&&(t=0),v&&i<_-1&&(i=_-1),null!==ZC._n_(r.o["min-value"])&&(t=ZC._f_(r.o["min-value"])),null!==ZC._n_(r.o["max-value"])&&(i=ZC._f_(r.o["max-value"])),i-t<r.E3&&i-t>0&&(r.E3=Math.pow(10,Math.floor(ZC.G6(i-t)/Math.LN10))),r.O4||r.Q7(t,i,!0),0===t&&0===i&&"0,1"===r.V.join(",")&&(r.V=[0]);else if(null!==ZC._n_(r.o["max-value"])){f=0,g=0,null!==ZC._n_(r.o["min-value"])&&(f=ZC._f_(r.o["min-value"])),g=ZC._f_(r.o["max-value"]),a=0;var I=f;if(r.FI&&null!==ZC._n_(r.FI.o.type))switch(r.FI.o.type){case"date":r.E3=r.XI(f,g)}else(g-f)/r.E3>1e4&&(r.E3=Math.pow(10,ZC.BQ(1,ZC._i_(ZC.G6(ZC._a_(g-f),10)-4))));for(;I<g;)I=r.A.NP(a*r.E3+f),null===ZC._n_(r.V[a])&&(r.V[a]=I),a++}else if(g=(f=null!==ZC._n_(r.o["min-value"])?ZC._f_(r.o["min-value"]):0)+(_-1)*r.E3,"log"===r.C6)r.Q7(f,g,!0);else for(a=0;a<_;a++)null===ZC._n_(r.V[a])&&(r.V[a]=r.A.NP(a*r.E3+f));r.O4&&r.EF&&(r.V=[].concat(d),r.BY=[].concat(d))}if(r.O4)for(r.UL={},a=0,n=r.BY.length;a<n;a++)r.UL[r.BY[a]]=a;if(r.W=0,r.A1=r.V.length-1,r.DA=0,r.DU=r.V.length-1,r.IX.length>0?(r.B3=r.W,r.BK=r.A1):(r.B3=ZC._f_(r.V[r.W]),r.BK=ZC._f_(r.V[r.A1])),r.NZ){-1===ZC.AV(r.V,r.NZ[0])&&ZC.PN(r.NZ[0])&&null!==ZC._n_(r.V[0])&&-1!==r.SR&&(r.NZ[0]=r.V[0]+r.SR*Math.floor((r.NZ[0]-r.V[0])/r.SR)),-1===ZC.AV(r.V,r.NZ[1])&&ZC.PN(r.NZ[1])&&null!==ZC._n_(r.V[0])&&-1!==r.SR&&(r.NZ[1]=r.V[0]+r.SR*Math.ceil((r.NZ[1]-r.V[0])/r.SR));var x=ZC.AV(r.V,r.NZ[0]),y=ZC.AV(r.V,r.NZ[1]);r.KS=[-1===x?0:x,-1===y?r.V.length-1:y]}r.KS&&-1!==r.W&&-1!==r.A1&&((r.KS[0]>r.A1||r.KS[0]<r.W)&&(r.KS[0]=r.W),(r.KS[1]>r.A1||r.KS[1]<r.W)&&(r.KS[1]=r.A1));var X=r.G.D["graph"+r.A.L+".zoom"];if(null===ZC._n_(r.G.D[ZC._[53]])||r.G.D[ZC._[53]]){var G=1===r.L?"":"-"+r.L;typeof X!==ZC._[31]&&null!==ZC._n_(X["xmin"+G])&&null!==ZC._n_(X["xmax"+G])&&(r.KS=[X["xmin"+G],X["xmax"+G]])}else r.G.D["graph"+r.A.L+".zoom"]={};r.KS&&(r.A.A1O=!0)}Q7(e,t,i){var a,n,l,r,o=this,s=!1,C=null!==ZC._n_(o.o.step)&&-1!==(""+o.o.step).indexOf("month");if(o.FI&&null!==ZC._n_(o.FI.o.type))switch(o.FI.o.type){case"date":var A=o.XI(e,t);(t-e)%A!=0&&(C||(t+=A-(t-e)%A)),a=[e,t,A,1,A],s=!0}else if("log"===o.C6)a=[e,t,1,1,1];else{var Z=null!==ZC._n_(o.o.step)||null!==ZC._n_(o.o["min-value"])||null!==ZC._n_(o.o["max-value"]);a=e!==t?ZC.AQ.X0(e,t,o.E3,o.PC,Z):[e,t,o.E3,1,o.E3]}-1===o.SR&&(o.SR=a[4]);var c=a[0],p=a[1];r=a[2],i&&"log"===o.C6&&(c=Math.floor(ZC.G6(c,o.E4)),p=Math.ceil(ZC.G6(p,o.E4))),null===ZC._n_(o.o.step)&&(p-c)/r>1e4&&(r=(p-c)/1e4,l=Math.ceil(ZC.G6(r)/Math.LN10),r=Math.pow(10,l)),null===ZC._n_(o.o["min-value"])&&c!==p&&(s&&C||(c-=c%r)),null===ZC._n_(o.o["max-value"])&&c!==p&&(s&&C||(p=p-p%r+(p%r==0?0:r))),l=Math.floor(ZC.G6(r)/Math.LN10);var u,h=a[3];if(l<h&&l<0&&(h=l),"log"===o.C6&&(h=ZC.BQ(1,h)),o.V=[],s&&C){var _=ZC.AP.YY(c,"%Y-%n-%d-%H-%i-%s",!1,0).split("-"),d=new Date(c).getTimezoneOffset(),f=!0,g=ZC._i_((""+o.o.step).replace("month",""));0===g&&(g=1);var B=ZC._i_(_[1]),v=ZC._i_(_[0]);for(o.V.push(c);f&&c!==p;){f=!1;var m=ZC._i_(_[2]);B+g>=12&&v++,B=(B+g)%12,(31===m&&(3===B||5===B||8===B||10===B)||m>28&&1===B)&&(m=1===B?v%4==0&&v%100!=0||v%400==0?29:28:30);var b=new Date(v,B,m,ZC._i_(_[3]),ZC._i_(_[4]),ZC._i_(_[5])),D=b.getTimezoneOffset(),K=b.getTime()+6e4*(d-D);o.V.push(K),K<p&&K<=t&&(f=!0)}}else if(i){o.FX=e,o.H2=t,o.VJ=ZC._i_((p-c)/r);var E=(""+r).split("."),F=new String(E[1]||"0").length;for((p-c)%r!=0&&(p-=(p-c)%r)<t&&(p=p-(p-c)%r+r),n=c;n<=p+1e-4;n+=r){var I,x;u=n;var y=o.DM;if("log"===o.C6)for(var X=!0;X;)X=!1,x=I=Math.pow(o.E4,u),I=ZC._f_(ZC._fixed_(I,y)),x<1&&x!==I&&ZC.BQ(x,I)/ZC.CX(x,I)>1.005&&(X=!0,++y>ZC.CX(20,-1===o.I6?99:o.I6)&&(X=!1));else I=null!==y?ZC._f_(ZC._fixed_(u,Math.max(y,F))):ZC._f_(ZC._fixed_(u,F));o.V.push(I)}}else for(r=ZC._f_((t-e)/o.VJ),n=0;n<=o.VJ;n++)u=e+r*n,h<0&&(u=ZC._f_(u.toFixed(-h))),o.V.push(u);o.W=0,o.A1=o.V.length-1,o.DA=0,o.DU=o.V.length-1,o.B3=ZC._f_(o.V[o.W]),o.BK=ZC._f_(o.V[o.A1])}XI(e,t,i){typeof i===ZC._[31]&&(i=!1);var a=t-e,n=Math.floor(ZC.G6(a)/Math.LN10);return null===ZC._n_(this.o.step)||i?n<=3?1:4===n?1e3:5===n?1e4:6===n?2e4:7===n?3e4:8===n?6e4:9===n?6e5:10===n?12e5:11===n?18e5:36e5:this.E3}parse(){super.parse()}clear(){super.clear()}build(){super.build()}paint(){super.paint(),null!==ZC._n_(this.o[ZC._[5]])&&(this.TL=!0)}}class A02 extends HD{constructor(e){super(e);var t=this;t.AF="v",t.W=-1,t.A1=-1,t.VJ=0,t.DM=null,t.KX="normal",t.JP=[]}zoomTo(e,t){var i,a,n=this;if(n.GQ){null!==ZC._n_(e)?n.B3=e:n.B3=n.FX,null!==ZC._n_(t)?n.BK=t:n.BK=n.H2,("piano"===n.A.AF||n.QE)&&(n.B3=ZC._i_(n.B3),n.BK=ZC._i_(n.BK)),n.Q7(n.B3,n.BK,!1);var l=n.A.BT("v");for(i=0;i<l.length;i++)l[i].BG!==n.BG&&l[i].sMaster===n.BG&&l[i].zoomTo(e,t);if(""===n.sMaster){if(n.G.HE.C||(n.G.HE.C=n.A),n.A.HE&&null!==ZC._n_(n.A.HE.o.shared)&&ZC._b_(n.A.HE.o.shared)&&n.A.K===n.G.HE.C.K)for(i=0,a=n.G.AG.length;i<a;i++){var r=n.G.AG[i];if(r.K!==n.A.K&&null!==ZC._n_(r.HE.o.shared)&&ZC._b_(r.HE.o.shared)){var o=r.BI(n.BG);o&&o.GQ&&(e=Math.max(o.FX,Math.min(o.H2,n.B3)),t=Math.max(o.FX,Math.min(o.H2,n.BK)),o.zoomTo(e,t),ZC.AK(r.K)&&(r.clear(!0),r.D["shared-zoom"]=!0,r.paint(),r.BA&&r.BA.update(null,null,e,t,!0)))}}n.GZ()}}}FC(L,CT,EQ){var s=this;typeof CT===ZC._[31]&&(CT="",CT=null!==ZC._n_(s.BY[L])?s.BY[L]:s.V[L]),"number"==typeof CT&&null!==ZC._n_(s.JP[CT])&&(CT=s.JP[CT]);var P1=ZC.PN(CT)&&ZC._f_(CT)<0,BE=s.LX();if(ZC._cp_(EQ,BE),null!==ZC._n_(s.D["max-power"])&&(BE["max-power"]=s.D["max-power"]),P1&&"currency"===BE.negation&&(CT=ZC._a_(ZC._f_(CT))),BE.utc=s.A.UX,BE.timezone=s.A.NI,CT=ZC.AP.G3(CT,BE,s,!0),s.CH)if("()"===s.CH.substring(s.CH.length-2)||"javascript:"===s.CH.substring(0,11))try{var ED=s.CH.replace("javascript:","").replace("()","");eval(ED)&&(CT=eval(ED).call(s,CT))}catch(e){}else CT=P1&&"currency"===BE.negation?"-"+s.CH.replace(/%v|%scale-value/g,CT):s.CH.replace(/%v|%scale-value/g,CT);return CT}T8(){var e=this,t=ZC.BQ(e.V.length,e.BY.length);if(0===t&&(t=10),"log"===e.C6)e.EG=999;else{var i=Math.max(15,10*ZC.BQ(e.V.join("").length,e.BY.join("").length)/t);e.CP?e.EG=ZC._i_((e.I-e.AA-e.BV)/i):e.EG=ZC._i_((e.F-e.AA-e.BV)/10),e.EG=ZC.CX(e.EG,10),e.EG=ZC.BQ(2,e.EG)}}A05(){var e=this;null===ZC._n_(e.o["max-ticks"])&&(e.M9=e.EG)}HC(e){var t,i,a,n,l,r,o,s=this;if(""!==s.sMaster&&2===e){var C=s.A.BI(s.sMaster);if(C)return s.B3=C.B3,s.FX=C.FX,s.BK=C.BK,s.H2=C.H2,s.E3=C.E3,s.SR=C.SR,s.W=C.W,s.A1=C.A1,s.DA=C.DA,s.DU=C.DU,s.V=[].concat(C.V),void(s.BY=[].concat(C.BY))}1===e&&null===ZC._n_(s.o[ZC._[5]])&&null!==ZC._n_(t=s.A.UP("v"))&&(s.o[ZC._[5]]=t);var A,Z=0,c=s.JP;if(1===e&&null!==ZC._n_(s.o[ZC._[5]])){if(s.V=[],"object"==typeof s.o[ZC._[5]]){var p=s.o[ZC._[5]],u=ZC.YM(p),h=ZC.A2C(p),_=!0;for(i=0,a=p.length-2;i<a;i++)if("number"==typeof p[i+2]&&"number"==typeof p[i+1]&&"number"==typeof p[i]&&ZC._f_(p[i+2])-ZC._f_(p[i+1])!=ZC._f_(p[i+1])-ZC._f_(p[i])){_=!1;break}if(!_&&(s.o[ZC._[5]]=u+":"+h,!s.M3))for(s.M3=[],i=0,a=p.length;i<a;i++)s.M3.push(""+p[i])}if("object"==typeof s.o[ZC._[5]]){for(ZC._cpa_(s.o[ZC._[5]],s.V),0===s.BY.length&&ZC._cpa_(s.BY,s.V),i=0,a=s.V.length;i<a;i++)if("string"==typeof s.V[i]){var d=s.V[i],f=ZC.AV(c,s.V[i]);-1===f?(c.push(s.V[i]),s.V[i]=c.length-1):s.V[i]=f,null===ZC._n_(s.BY[i])&&(s.BY[i]=d)}}else{var g=s.o[ZC._[5]].split(":");if(o=1,3===g.length&&(o=ZC._f_(g[2])),ZC._f_(g[0])>ZC._f_(g[1])){var B=g[0];g[0]=g[1],g[1]=B}if(o<=0&&(o=1),null!==ZC._n_(s.o["fixed-items"])&&(o=(ZC._f_(g[1])-ZC._f_(g[0]))/ZC.BQ(1,ZC._i_(s.o["fixed-items"])-1),s.VJ=ZC.BQ(1,ZC._i_(s.o["fixed-items"])-1)),g.length>1){for(var v=0,m=0,b=0,D=(""+o).split("."),K=ZC._f_(g[0]);K<=ZC._f_(g[1]);K+=o)n=(""+K).split("."),D.length>1&&n.length>1&&D[1].length>0&&n[1].length>=9&&ZC._a_(n[1].length-D[1].length)>2?(v+=D[1].length,m=ZC.BQ(m,D[1].length),b++,s.V.push(ZC._f_(ZC._fixed_(Number(K),D[1].length)))):(v+=ZC._i_(n[1]?n[1].length:0),m=ZC.BQ(m,n[1]?n[1].length:0),b++,s.V.push(K));K-ZC._f_(g[1])!=0&&ZC._a_(K-ZC._f_(g[1]))/o<1e-8&&s.V.push(ZC._f_(g[1])),null===ZC._n_(s.o[ZC._[12]])&&(v=(n=(""+o).split("."))[1]?n[1].length:Math.ceil(v/b),s.DM=ZC._a_(m-v)<=1?m:v)}}s.W=0,s.A1=s.V.length-1,s.E3=o,c.length>1?(Z=ZC.YM(s.V,!0),s.B3=ZC.YM(s.V),s.BK=ZC.A2C(s.V)):(s.B3=s.V[0],s.BK=s.V[s.V.length-1]),"log"===s.C6&&(0===s.B3&&(A=Math.floor(ZC.G6(Z,s.E4)),s.B3=Math.pow(s.E4,Math.min(-1,A))),s.Q7(ZC.G6(s.B3,s.E4),ZC.G6(s.BK,s.E4),!1))}if(2===e){var E={};null===ZC._n_(s.o[ZC._[5]])&&(s.V=[],l=ZC.MAX,r=-ZC.MAX);var F=[],I=s.A.AY.A4;for(i=0,a=I.length;i<a;i++)if(s.A.D["plot"+i+".visible"]||"hide"===s.A.getToggleAction()){var x=I[i].BT();if(-1!==ZC.AV(x,s.BG))for(var y=-1!==ZC.AV(["vbar","hbar","vbar3d","hbar3d"],I[i].AF),X=[],G=0,Y=I[i].V.length;G<Y;G++)if(I[i].R[G]){var w=null===I[i].R[G].BU?G:I[i].R[G].BU;if(I[i].CA&&-1!==ZC.AV(X,w))continue;X.push(w);var M=I[i].M6&&null!==ZC._n_(I[i].M6[G])?ZC._f_(I[i].M6[G]):0;if(I[i].CA)null===ZC._n_(E[I[i].DY])&&(E[I[i].DY]=[]),null===ZC._n_(E[I[i].DY][w])?I[i].R[G].AD>=0||!y?E[I[i].DY][w]=[I[i].R[G].AD,0]:E[I[i].DY][w]=[0,I[i].R[G].AD]:I[i].R[G].AD>=0||!y?E[I[i].DY][w][0]+=I[i].R[G].AD:E[I[i].DY][w][1]+=I[i].R[G].AD,I[i].R[G].AD>=0||!y?I[i].R[G].CQ=E[I[i].DY][w][0]:I[i].R[G].CQ=E[I[i].DY][w][1],null===ZC._n_(s.o[ZC._[5]])&&F.push(E[I[i].DY][w][0]+M,E[I[i].DY][w][1]+M);else if(null===ZC._n_(s.o[ZC._[5]])){F.push(I[i].R[G].AD+M),0!==M&&F.push(M);for(var L=0,P=I[i].R[G].DL.length;L<P;L++)F.push(I[i].R[G].DL[L]+M)}}}F.length>0&&(Z=ZC.YM(F,!0),l=ZC.YM(F),r=ZC.A2C(F)),0!==s.V.length||l!==Number.MAX_VALUE&&r!==Number.MIN_VALUE||(s.V=[0,1],l=0,r=1),null===ZC._n_(s.o[ZC._[5]])&&(null!==ZC._n_(s.o["min-value"])&&"auto"!==s.o["min-value"]?l=ZC._f_(s.o["min-value"]):l>0&&"auto"!==s.o["min-value"]&&"log"!==s.C6&&(l=0),null!==ZC._n_(s.o["max-value"])&&(r=ZC._f_(s.o["max-value"])),l===ZC.MAX&&r===-ZC.MAX?(s.W=0,s.A1=0,s.B3=0,s.BK=0):"log"===s.C6?(0===l&&(A=Math.floor(ZC.G6(Z,s.E4)),l=Math.pow(s.E4,Math.min(-1,A))),s.Q7(ZC.G6(l,s.E4),ZC.G6(r,s.E4),!1)):s.Q7(l,r,!0))}2===e&&(-1===s.FX&&-1===s.H2&&(s.FX=s.B3,s.H2=s.BK),-1===s.SR&&(s.SR=s.E3)),"auto"===s.o["min-value"]&&null===ZC._n_(s.o["ref-value"])&&(s.H9=s.B3),0===s.VJ&&(s.VJ=ZC._i_((s.BK-s.B3)/s.E3));var O=s.G.D["graph"+s.A.L+".zoom"];if(null===ZC._n_(s.G.D[ZC._[53]])||s.G.D[ZC._[53]]){var R=1===s.L?"":"-"+s.L;2===e&&typeof O!==ZC._[31]&&null!==ZC._n_(O["ymin"+R])&&null!==ZC._n_(O["ymax"+R])&&(ZC.DR(O["ymin"+R],s.B3,s.BK)||(O["ymin"+R]=s.B3),ZC.DR(O["ymax"+R],s.B3,s.BK)||(O["ymax"+R]=s.BK),s.KS=[O["ymin"+R],O["ymax"+R]])}else s.G.D["graph"+s.A.L+".zoom"]={};s.KS&&(s.A.A1O=!0)}Q7(e,t,i){var a,n,l,r,o=this;"piano"!==o.A.AF&&!o.QE&&o.JP.length>1&&(e=0),o.TX.length&&null===ZC._n_(o.o["scale-factor"])&&(l=Math.floor(ZC.G6(ZC._a_(t),ZC._f_(o.TX[0]))),o.PC=Math.pow(ZC._f_(o.TX[0]),l)/Math.pow(1e3,l),o.D["max-power"]=l);var s=(r=o.FI&&"date"===o.FI.o.type?ZC.AQ.X0(e,t,"lin"===o.C6?o.E3:null,o.PC,o.bNormalize,o.EG):ZC.AQ.X0(e,t,"lin"===o.C6?o.o.step:null,o.PC,o.bNormalize,o.EG))[0],C=r[1],A=!1;n=Math.floor(r[0]),"log"===o.C6&&(l=Math.ceil(r[1]),r[1]-r[0]>=.5?A=!0:r=ZC.AQ.X0(Math.pow(o.E4,r[0]),Math.pow(o.E4,r[1]),null,o.PC,o.bNormalize));var Z,c,p=r[0],u=r[1],h=r[2];if(null!==ZC._n_(o.o["fixed-items"])&&(h=(u-p)/ZC.BQ(1,ZC._i_(o.o["fixed-items"])-1)),o.QE&&t===e&&(t+h<=o.BK?t+=h:e-=h),1!==o.RD&&(p*=o.RD,u*=o.RD,h*=o.RD),null!==ZC._n_(o.D["o-decimals"])?o.DM=o.D["o-decimals"]:o.D["o-decimals"]=o.DM,null===ZC._n_(o.o[ZC._[12]]))if("log"===o.C6&&A)o.DM=n<0?null:0;else if(o.bNormalize)o.A38||(o.DM=0);else{var _=ZC.G6(t-e,10);o.DM=r[3],o.DM>9&&(_>=1?o.DM=1:_>0&&_<1&&(o.DM=2))}var d,f,g,B=!0;if(A){var v,m;n=Math.floor(p),l=Math.ceil(u),d=Math.pow(o.E4,e),f=Math.pow(o.E4,t),o.V=[];var b=[0,2,5];for(m=[0,1,2,3,4,5,6,7,8,9,10],a=n;a<=l;a++){var D=r[3];if(D=a<0?Math.max(ZC._a_(a),D):0,a===l)for(v=0;v<b.length;v++)g=Math.pow(o.E4,a)+b[v]*Math.pow(o.E4,a-1),g=ZC._f_(g.toFixed(D)),-1===ZC.AV(o.V,g)&&o.V.push(g);for(v=0;v<m.length;v++)g=m[v]*Math.pow(o.E4,a),g=ZC._f_(g.toFixed(D)),-1===ZC.AV(o.V,g)&&o.V.push(g)}o.V.sort(function(e,t){return e-t});for(var K=-1,E=-1,F=0;F<o.V.length-1;F++)o.V[F]<=d&&d<=o.V[F+1]&&(K=F),o.V[F]===f?E=F:o.V[F]<=f&&f<=o.V[F+1]&&(E=F+1);o.V=o.V.slice(K,E+1),0===o.V[0]&&o.V.shift(),s=ZC.G6(o.V[0],o.E4),C=ZC.G6(o.V[o.V.length-1],o.E4)}else{for("log"===o.C6&&(d=Math.pow(o.E4,e),f=Math.pow(o.E4,t));B;){B=!1,o.V=[],Z=c=p;do{c=Z,c=ZC._f_(c.toFixed(o.DM)),-1!==ZC.AV(o.V,c)&&(B=!0),"log"===o.C6?c>=p&&c<=u&&o.V.push(c):o.V.push(c),Z+=h,Z=ZC._f_(Z.toFixed(r[3]))}while(Z<=u);B&&(o.DM+=1)}"log"===o.C6&&(s=ZC.G6(p,o.E4),C=ZC.G6(u,o.E4),o.V.push(p),o.V.push(u),o.V.sort(function(e,t){return e-t}))}o.E3=h,o.W=0,o.A1=o.V.length-1,i?(o.B3=s,o.BK=C):(o.B3=e,o.BK=t)}parse(){var e=this;e.assign_a([["stack-type","KX"]]),(e.A.CA&&"100%"===e.A.KX||"100%"===e.KX)&&null===ZC._n_(e.o[ZC._[5]])&&(e.o[ZC._[5]]="0:100:20",e.o.format="%v%"),super.parse()}clear(){super.clear()}build(){super.build()}paint(){super.paint(),null===ZC._n_(this.D[ZC._[12]])&&(this.D[ZC._[12]]=null!==ZC._n_(this.DM)?this.DM:-1),null!==ZC._n_(this.o[ZC._[5]])&&(this.TL=!0)}}class TD extends A4H{constructor(e){super(e)}parse(){super.parse()}GZ(){var e=this;e.A1===e.W?e.AC=e.I-e.AA-e.BV:e.AC=(e.I-e.AA-e.BV)/(e.A1-e.W+(e.DQ?1:0))}HC(e){super.HC(e),this.GZ()}zoomTo(e,t){super.zoomTo(e,t);this.GZ()}clear(){}build(){super.build()}L1(e){var t,i=this;return t=i.AW?(i.iX+i.I-i.AA-e)/(i.I-i.AA-i.BV):(e-i.iX-i.AA)/(i.I-i.AA-i.BV),i.B3+ZC._f_((i.BK-i.B3)*t)}MZ(e,t,i){var a,n,l,r=this;typeof i===ZC._[31]&&(i=!1);var o=r.DQ?r.AC:0;l=r.AW?(r.iX+r.I-e-r.AA-o/2)/(r.I-r.AA-r.BV-o):(e-r.iX-r.AA-o/2)/(r.I-r.AA-r.BV-o);var s,C=!1;if(t)for(s in t.K8){C=!0;break}if(t&&!r.O4&&C){var A=r.V[r.W];"string"==typeof A&&(A=ZC.AV(r.IX,A)),"log"===r.C6&&(A=ZC.G6(A,r.E4));var Z=r.V[r.A1];"string"==typeof Z&&(Z=ZC.AV(r.IX,Z)),"log"===r.C6&&(Z=ZC.G6(Z,r.E4));var c=A+ZC._f_((Z-A)*l);"log"===r.C6&&(c=Math.pow(r.E4,c));var p=ZC.MAX;for(s in n=null,t.K8)(a=Math.abs(s-c))<p&&(p=a,n=t.K8[s]);if(null===ZC._n_(n)&&(n=c),p>t.A2Z){var u=Math.ceil((Z-A)/(r.I-r.AA-r.BV));if(t.V.length<2&&(u*=100),p>u)return null}return n}var h=r.W,_=r.A1;return r.EF&&(null!==ZC._n_(a=r.V[h])&&(h=a),null!==ZC._n_(a=r.V[_])&&(_=a)),"log"===r.C6&&(h=ZC.G6(h,r.E4),_=ZC.G6(_,r.E4)),n=i?r.DQ?h+(_-h+1)*l:h+(_-h)*l:r.DQ?r.W+(r.A1-r.W+1)*l:r.W+(r.A1-r.W)*l,"log"===r.C6?(n=Math.pow(r.E4,n),n=Math.floor(n)-1):(n=r.DQ?Math.floor(n):ZC._i_(n),n=ZC.BQ(0,n),n=ZC.CX(r.DU,n)),n}H4(e){var t=this;t.W,t.A1;return t.EF&&!t.O4&&(t.B3,t.BK),"log"===t.C6&&(e=ZC.G6(e+1,t.E4)),t.AW?t.iX+t.I-t.AA-(e-t.W+(t.DQ?1:0))*t.AC+(t.DQ?t.AC/2:0):t.iX+t.AA+(e-t.W)*t.AC+(t.DQ?t.AC/2:0)}AN(e){var t,i,a,n,l,r=this;if("log"===r.C6&&(e=ZC.G6(e,r.E4)),r.O4){var o=r.UL[e];return r.H4(o)}if(-1!==(t=ZC.AV(r.IX,e)))return r.H4(t);if(!r.A57&&(r.EF||r.FI&&"date"===r.FI.o.type)){n=r.V[r.W],l=r.V[r.A1];var s=r.I;return"log"===r.C6&&(n=ZC.G6(n,r.E4),l=ZC.G6(l,r.E4),r.W===r.DA&&r.A1===r.DU&&(s=(r.A1-r.W)*r.AC)),l===n?i=0:(a=l-n,i=(s-r.AA-r.BV-(r.DQ?r.AC:0))/a),r.AW?r.iX+r.I-r.AA-(e-n)*i-(r.DQ?r.AC/2:0)+r.iMinOffset:r.iX+r.AA+(e-n)*i+(r.DQ?r.AC/2:0)-r.iMinOffset}return n=r.B3,l=r.BK,"log"===r.C6&&(n=ZC.G6(n,r.E4),l=ZC.G6(l,r.E4)),l===n?i=0:(a=l-n+(r.DQ?1:0),i=(r.I-r.AA-r.BV)/a),r.AW?r.iX+r.I-r.AA-(e-n)*i-(r.DQ?r.AC/2:0):r.iX+r.AA+(e-n)*i+(r.DQ?r.AC/2:0)}paint(){var e,t,i,a,n,l,r,o,s,C,A,Z,c,p,u,h,_,d=this;super.paint(),null!==ZC._n_(d.A.A.D[d.BG+"-feed-offset-start"])&&(d.AA=d.A.A.D[d.BG+"-feed-offset-start"]),"bubble"!==d.A.AF&&"scatter"!==d.A.AF||(-1===d.AA&&-1===d.BV||1===d.V.length)&&(d.AA=d.BV=d.I/(d.V.length+1),d.GZ());var f=d.BK,g=d.B3;if("log"===d.C6&&(null!==ZC._n_(d.o["max-value"])&&(f=ZC._f_(d.o["max-value"])),null!==ZC._n_(d.o["min-value"])&&(g=ZC._f_(d.o["min-value"])),(f!==d.BK||g!==d.B3)&&d.W===d.DA&&d.A1===d.DU)){var B=d.AC;d.AC=(d.I-d.AA-d.BV)/(ZC.G6(f,d.E4)-ZC.G6(g,d.E4))-.1;var v=ZC.G6(g,d.E4)-ZC.G6(d.B3,d.E4),m=ZC.G6(d.BK,d.E4)-ZC.G6(f,d.E4);d.iMinOffset=v*(d.AC-B)*(d.V.length-1)/(m+v)}var b=d.YC(),D=0,K=1,E=1,F={};for(t=0,i=d.A.BN.length;t<i;t++)d.A.BN[t].BG.substring(0,7)===ZC._[50]&&d.A.BN[t].B9===d.B9&&D++,d.A.BN[t].BG.substring(0,7)===ZC._[50]&&("default"===d.A.BN[t].B9?(F[d.A.BN[t].BG]=K,K++):(F[d.A.BN[t].BG]=E,E++));var I=F[d.BG],x="default"===d.B9,y=null,X=null;for(t=0,i=d.A.AY.A4.length;t<i;t++){var G=d.A.AY.A4[t],Y=G.BT();if(-1!==ZC.AV(Y,d.BG)){var w=d.A.BI(G.BT("v")[0]);y=w.AN(w.H9),X=G;break}}var M=8;null!==ZC._n_(d.IY.o[ZC._[21]])&&(M=ZC._i_(d.IY.o[ZC._[21]]));var L=4;null!==ZC._n_(d.IC.o[ZC._[21]])&&(L=ZC._i_(d.IC.o[ZC._[21]]));var P=ZC._i_(d.A.D[d.BG+"-distance"]||-1);d.VX&&(P=0),"default"===d.B9?(C=ZC._i_(d.A.P.DN/D),n=d.iY+d.F+(I-1)*C,-1!==P&&(n=d.iY+d.F+P)):(C=ZC._i_(d.A.P.E7/D),n=d.iY-(I-1)*C,-1!==P&&(n=d.iY-P));var O=n;if(d.A.IG&&(d.A.IG.AM=!0,d.DA===d.W&&d.DU===d.A1&&(d.A.IG.AM=!1),d.A.IG.AM&&0===d.A.IG.B0.BH&&"default"===d.B9&&(n+=d.A.IG.B0.F+d.AZ/2)),d.D.iY=n,d.AM&&d.TL){null!==ZC._n_(d.o["fixed-items"])&&(d.M9=d.EG=ZC._i_(d.o["fixed-items"]));var R=ZC.BQ(1,Math.ceil((d.A1-d.W)/(d.M9-1))),Q=ZC.BQ(1,Math.ceil((d.A1-d.W)/(d.EG-1)));null===ZC._n_(d.o["fixed-items"])&&ZC._b_(d.o.normalize)&&(R=ZC.AQ.A15(R),Q=ZC.AQ.A15(Q));for(var T=d.iStepMultiplier,k=3;k>0;k--)d.iStepMultiplier>k&&d.A1-d.W<=k*d.iStepMultiplier&&(T=k);R*=T,Q*=T;var N,H,z,V=0,J=d.AC*R/(d.FV+1),S=d.AW?d.iX+d.BV:d.iX+d.AA,W=d.AW?d.iX+d.I-d.AA:d.iX+d.I-d.BV;if(null===ZC._n_(y)&&(y=n),l=d.G.usc()?d.G.mc():ZC.AK(d.A.K+"-scales-ml-0-c"),o=ZC.Q.E9(l,d.G.AB),r=d.G.usc()?d.G.mc():ZC.AK(d.A.K+"-scales-bl-0-c"),s=ZC.Q.E9(r,d.G.AB),"inherit"===d.o["line-color"]&&-1!==b&&(d.B7=b),d.A.AJ["3d"]){if((u=ZC.DH.D9(d,d.A,d.iX-ZC.AO.E1,d.iX-ZC.AO.E1+d.I,n-ZC.AO.E2,n-ZC.AO.E2,-1,ZC.AO.FU+1,"x")).K=d.K+"-line",d.A.EY.true3d&&(d.A.EY[ZC._[27]]>0?u.MJ=[1===d.L?-100:100,1,1]:u.MJ=[1===d.L?100:-100,1,1]),d.A.CJ.add(u),null!==ZC._n_(d.o.axis)){var U=new D0(d);U.append(d.o.axis),U.parse(),U.A0=U.AE=U.B7,(u=ZC.DH.D9(U,d.A,d.iX-ZC.AO.E1,d.iX-ZC.AO.E1+d.I,n-ZC.AO.E2,n-ZC.AO.E2,-U.AZ/2,U.AZ/2,"x")).K=d.K+"-axis",d.A.CJ.add(u)}}else{A=[[d.iX-1,O],[d.iX+d.I+1,O]];var j=d.K;d.K+="-line",ZC.CR.paint(o,d,A),d.K=j}if(d.V.length>0&&d.D4.AM){var q=null===ZC._n_(d.D4.o["offset-start"])?0:ZC._i_(d.D4.o["offset-start"]),$=null===ZC._n_(d.D4.o["offset-end"])?0:ZC._i_(d.D4.o["offset-end"]);if(d.D4.o.items&&d.D4.o.items.length>0&&!d.A.AJ["3d"])for(h=new I2(d),t=d.W;t<d.A1+(d.DQ?1:0);t++)Z=t-d.W,_=t%d.D4.o.items.length,h.append(d.D4.o.items[_]),h.K=d.K+"-guide-"+t,h.Z=r,h.parse(),d.AW?h.iX=d.iX+d.I-d.AA-Z*d.AC-d.AC:h.iX=d.iX+d.AA+Z*d.AC,h.iY=d.iY+q,h.I=d.AC,h.F=d.F-q-$,h.paint();if(d.D4.AZ>0)for(d.GV=0,t=d.W;t<=d.A1+(d.DQ?1:0);t++)if(d.K9=t,t===d.W||t===d.A1+(d.DQ?1:0)||(t-d.W)%R==0){(d.D4.E5.length>0||t===d.W)&&((p=new D0(d)).Z=p.C7=r,p.copy(d.D4),p.J2=Ye,p.DC()&&p.parse()),A=[],Z=t-d.W,c="log"===d.C6?d.AN(d.V[t]):d.AW?d.iX+d.I-d.AA-Z*d.AC:d.iX+d.AA+Z*d.AC;var ee=d.iY+q,te=d.F-q-$;if(p.AM)if(d.A.AJ["3d"]){var ie=new D0(d);ie.copy(p),null!==ZC._n_(d.o["scale-z"])&&null!==ZC._n_(e=d.o["scale-z"].guide)&&(ie.append(e),ie.parse()),ie.A0=ie.AE=ie.B7,u=ZC.DH.D9(ie,d.A,c-ZC.AO.E1-ie.AZ/2,c-ZC.AO.E1+ie.AZ/2,n-ZC.AO.E2,n-ZC.AO.E2,0,ZC.AO.FU,"z"),d.A.CJ.add(u),p.A0=p.AE=p.B7,(u=ZC.DH.D9(p,d.A,c-ZC.AO.E1-p.AZ/2,c-ZC.AO.E1+p.AZ/2,ee-ZC.AO.E2,ee+te-ZC.AO.E2,ZC.AO.FU+2,ZC.AO.FU+2,"y")).K=d.K+"-guide-"+t,d.A.CJ.add(u)}else A.push([c,ee],[c,ee+te]),p.K=d.K+"-guide-"+t,ZC.CR.paint(s,p,A);d.GV++}}if(d.V.length>0&&d.G5.AM&&!d.A.AJ["3d"]&&d.G5.o.items&&d.G5.o.items.length>0)for(h=new I2(d),t=d.W;t<d.A1+(d.DQ?1:0);t++)for(d.K9=t,Z=t-d.W,d.GV=0,a=1;a<=d.FV;a++)_=d.GV%d.G5.o.items.length,h.append(d.G5.o.items[_]),h.K=d.K+"-guide-"+t+"-"+a,h.Z=d.G.usc()?d.G.mc():ZC.AK(d.A.K+"-scales-bl-0-c"),h.parse(),d.AW?h.iX=d.iX+d.I-d.AA-Z*d.AC-(a+1)*J:h.iX=d.iX+d.AA+Z*d.AC+a*J,h.iY=d.iY,h.I=J,h.F=d.F,h.paint(),d.GV++;if(d.G5.AZ>0)for(t=d.W;t<d.A1+(d.DQ?1:0);t++)if(d.K9=t,t%R==0)for(Z=t-d.W,d.GV=0,a=1;a<=d.FV;a++)A=[],(p=new D0(d)).copy(d.G5),p.J2=Ye,p.DC()&&p.parse(),c="log"===d.C6?d.AN(d.V[t]+a*(d.V[t+1]-d.V[t])/(d.FV+1)):d.AW?d.iX+d.I-d.AA-Z*d.AC-a*J:d.iX+d.AA+Z*d.AC+a*J,ZC.DR(c,S,W)&&(A.push([c,d.iY],[c,d.iY+d.F]),p.AM&&(p.K=d.K+"-minor-guide-"+a,ZC.CR.paint(s,p,A))),d.GV++;if(d.TM(s,b),d.V.length>0&&d.IY.AM){switch(d.IY.o[ZC._[7]]){case"inner":break;case"outer":V+=M;break;default:V+=M/2}if(!zingchart.DEV.SMARTDATELABELS||!d.FI||"date"!==d.FI.o.type)for(d.GV=0,t=d.W;t<=d.A1+(d.DQ?1:0);t++)if(t===d.W||t===d.A1+(d.DQ?1:0)||(t-d.W)%R==0){d.K9=t;var ae=M;if(A=[],Z=t-d.W,(d.IY.E5.length>0||t===d.W)&&((p=new DW(d)).copy(d.IY),"inherit"===d.IY.o["line-color"]&&-1!==b&&(p.B7=b),p.J2=Ye,p.DC()&&p.parse(),p.AI>1&&(ae=p.AI)),c="log"===d.C6?d.AN(d.V[t]):d.AW?d.iX+d.I-d.AA-Z*d.AC:d.iX+d.AA+Z*d.AC,ZC.DR(c,S,W)){switch(p.o[ZC._[7]]){case"ref-auto":A.push([c,y+ae/2],[c,y-ae/2]);break;case"ref-top":A.push([c,y-ae],[c,y]);break;case"ref-bottom":A.push([c,y+ae],[c,y]);break;case"inner":A.push([c,n-(x?ae:-ae)],[c,n]);break;case"outer":A.push([c,n],[c,n+(x?ae:-ae)]);break;default:A.push([c,n+ae/2],[c,n-ae/2])}if(p.AM){for(H=ZC._i_(p.o["offset-x"]||"0"),z=ZC._i_(p.o["offset-y"]||"0"),N=0;N<A.length;N++)A[N][0]+=H,A[N][1]+=z;if(p.K=d.K+"-tick-"+t,d.A.AJ["3d"]&&d.A.EY.true3d){var ne,le=[];for(N=0;N<A.length;N++)ne=new CB(d.A,A[N][0]-ZC.AO.E1,A[N][1]-ZC.AO.E2,0),le.push([ne.EB[0],ne.EB[1]]);ZC.CR.paint(o,p,le)}else ZC.CR.paint(o,p,A)}}d.GV++}}var re=[];if(d.V.length>0&&d.FV>0&&d.IC.AM&&!d.A.AJ["3d"])for(t=d.W;t<d.A1+(d.DQ?1:0);t++)if(d.K9=t,t%R==0)for(Z=t-d.W,d.GV=0,a=1;a<=d.FV;a++){if(A=[],(p=new D0(d)).copy(d.IC),"inherit"===d.IC.o["line-color"]&&-1!==b&&(p.B7=b),p.J2=Ye,p.DC()&&p.parse(),"log"===d.C6){var oe=Math.round(ZC.G6(d.V[t],d.E4)),se=d.V[t]+a*(d.V[t+1]-d.V[t])/(d.FV+1);se=oe<0?ZC._f_(se.toFixed(-oe)):ZC._f_(se.toFixed(oe)),re.push(se),c=d.AN(se)}else c=d.AW?d.iX+d.I-d.AA-Z*d.AC-a*J:d.iX+d.AA+Z*d.AC+a*J;if(ZC.DR(c,S,W)){switch(p.o[ZC._[7]]){case"ref-auto":A.push([c,y+L/2],[c,y-L/2]);break;case"ref-top":A.push([c,y],[c,y-L]);break;case"ref-bottom":A.push([c,y],[c,y+L]);break;case"inner":A.push([c,n-(x?L:-L)],[c,n]);break;case"outer":A.push([c,n],[c,n+(x?L:-L)]);break;default:A.push([c,n+L/2],[c,n-L/2])}if(p.AM){for(H=ZC._i_(p.o["offset-x"]||"0"),z=ZC._i_(p.o["offset-y"]||"0"),N=0;N<A.length;N++)A[N][0]+=H,A[N][1]+=z;p.K=d.K+"-minor-tick-"+t,ZC.CR.paint(o,p,A)}}d.GV++}d.VV();var Ce=null,Ae=null,Ze=d.CH,ce=d.DM,pe=[],ue=new DW(d);ue.copy(d.IY);var he,_e=0,de=0,fe=0,ge=[],Be=[];if(d.o["custom-items"])for(t=0;t<d.o["custom-items"].length;t++)we(d.o["custom-items"][t][0],!1,!0,d.o["custom-items"][t][1]);if(d.V.length>0&&d.BR.AM)if(zingchart.DEV.SMARTDATELABELS&&d.FI&&"date"===d.FI.o.type){var ve=d.getOptimalDateInterval(d.V[d.A1]-d.V[d.W]),me=ve[0];he=ve[1];var be=ve[2],De=ve[3];fe=ve[4];var Ke=be*Math.ceil(d.V[d.W]/be),Ee=be*Math.floor(d.V[d.A1]/be),Fe="";d.GV=0;var Ie=!0;for(t=Ke;t<=Ee;t+=be){Ie=!0;var xe=ZC.AP.YY(t,me,d.A.UX,d.A.NI);if(xe!==Fe){switch(De){case"yr":fe>15&&(Ie=ZC._i_(xe)%2==0);break;case"mon":fe>15&&(Ie=ZC._i_(xe)%3==0);break;case"day":fe>45?Ie=1===ZC._i_(xe)||15===ZC._i_(xe):fe>30?Ie=1===ZC._i_(xe)||10===ZC._i_(xe)||20===ZC._i_(xe):fe>15&&(Ie=1===ZC._i_(xe)||10===ZC._i_(xe)||15===ZC._i_(xe)||20===ZC._i_(xe)||25===ZC._i_(xe));break;case"hr":fe>45?Ie=ZC._i_(xe)%12==0:fe>30?Ie=ZC._i_(xe)%6==0:fe>15&&(Ie=ZC._i_(xe)%3==0);break;case"min":case"sec":fe>45?Ie=ZC._i_(xe)%30==0:fe>30?Ie=ZC._i_(xe)%10==0:fe>15&&(Ie=ZC._i_(xe)%5==0)}Ie&&(we(t,!0),Fe=xe)}}ue.AM&&(ue.K=d.K+"-ticks",ZC.CR.paint(o,ue,pe))}else for(d.GV=0,we(d.W),d.GV=d.A1-d.W,we(d.A1),d.GV=1,t=d.W+1;t<d.A1;t++)(t-d.W)%Q==0&&we(t);for(t=0;t<re.length;t++){var ye=d.FC(t,null,null,!1,re[t]);we(ye,!1,!0,ye)}if(d.M.AM&&d.M.AT&&""!==d.M.AT){(Ce=new DT(d)).copy(d.M),Ce.K=d.A.K+"-"+d.BG.replace(/\-/g,"_")+"-item_title",Ce.GO=d.K+"-label "+d.A.K+"-scale-label zc-scale-label",Ce.AT=d.M.AT,Ce.Z=d.G.usc()?d.G.mc():ZC.AK(d.A.K+"-scales-ml-0-c"),Ce.IU=d.G.usc()?ZC.AK(d.G.K+"-main"):ZC.AK(d.G.K+"-text"),Ce.parse(),"inherit"!==d.M.o["font-color"]&&"inherit"!==d.M.o.color||-1===b||(Ce.C1=b);var Xe=d.iX+(d.AW?d.BV:d.AA),Ge=d.I-d.AA-d.BV;switch("chart"===Ce.o["center-point"]&&(Xe=d.A.iX,Ge=d.A.I),Ce.OI){case"left":Ce.iX=Xe;break;case"center":Ce.iX=Xe+Ge/2-Ce.I/2;break;case"right":Ce.iX=Xe+Ge-Ce.I}Ce.iY=x?n+V+de:n-Ce.F-V-de,d.M.iX=Ce.iX,d.M.iY=Ce.iY,Ce.AM&&(d.MB(Ce,null,"h"),Ce.paint(),Ce.EC(),null===ZC._n_(Ce.o.tooltip)&&Ce.KD||Be.push(ZC.AP.OG(d.A.K,Ce)))}Be.length>0&&ZC.AK(d.A.A.K+"-map")&&(ZC.AK(d.A.A.K+"-map").innerHTML+=Be.join("")),null!==ZC._n_(d.o.transform)&&"date"===d.o.transform.type&&d.paintTransformDate()}function Ye(e){return e=(e=(e=(e=(e=(e=e.replace(/%scale-last-position/g,d.A1-d.W)).replace(/(%c)|(%scale-position)/g,d.GV)).replace(/(%i)|(%scale-index)/g,d.K9)).replace(/(%v)|(%scale-value)/g,null!==ZC._n_(d.V[d.K9])?d.V[d.K9]:"")).replace(/(%l)|(%scale-label)/g,null!==ZC._n_(d.BY[d.K9])?d.BY[d.K9]:"")).replace(/%scale-day-of-week/g,ZC.AP.YY(d.V[d.K9],"%w",d.A.UX,d.A.NI))}function we(e,t,i,a){var l;if(d.K9=e,Z=e-d.W,(d.BR.E5.length>0||e===d.W||!Ce||d.BR.HX||i)&&(Ce=new DT(d)),Ce.copy(d.BR),Ce.GO=d.K+"-item "+d.A.K+"-scale-item zc-scale-item",Ce.K=d.A.K+"-"+d.BG.replace(/\-/g,"_")+"-item_"+(a?"c"+a:e),Ce.D["p-width"]=d.AC,d.CH=Ze,d.DM=ce,i||d.WA(Ye),l=t?ZC.AP.YY(e,he,d.A.UX,d.A.NI):a||d.FC(e,null,null),!i&&d.BR.HX&&d.GN(d.BR,Ce,null,{index:e,cnt:Z,text:l},d.BR.MR),!(null!==ZC._n_(d.M3)&&-1===ZC.AV(d.M3,l)||(Ce.AT=l,Ce.Z=Ce.C7=d.G.usc()?d.G.mc():ZC.AK(d.A.K+"-scales-ml-0-c"),Ce.IU=d.G.usc()?ZC.AK(d.G.K+"-main"):ZC.AK(d.G.K+"-text"),Ce.D.nodeidx=e,Ce.parse(),d.BR.A2N&&d.BR.A9%180==0&&(Ce.o[ZC._[19]]=ZC._i_(.9*d.AC),Ce.parse()),"inherit"!==d.BR.o["font-color"]&&"inherit"!==d.BR.o.color||-1===b||(Ce.C1=b),i||(Ce.J2=Ye,Ce.DC()&&Ce.parse()),Ce.o["auto-fit"]&&(Ce.I=ZC._i_(d.AC)),t?(c=d.AN(e),Ce.iX=c-Ce.I/2-(d.DQ?d.AC/2:0)):i?(c=d.AN(e),Ce.iX=c-Ce.I/2):"log"===d.C6?(c=d.AN(d.V[e]),Ce.iX=c-Ce.I/2+(d.DQ?d.AC/2:0)*(d.AW?-1:1)):d.AW?(c=d.iX+d.I-d.AA-Z*d.AC,Ce.iX=c-Ce.I/2-(d.DQ?d.AC/2:0)):(c=d.iX+d.AA+Z*d.AC,Ce.iX=c-Ce.I/2+(d.DQ?d.AC/2:0)),c<d.iX-1||c>d.iX+d.I+1))){if(d.A.BA&&d.A.BA.BY&&d.A.BA.IO){for(var r=!1,o=0;o<d.A.BA.BY.length;o++)d.A.BA.BY[o].text===Ce.AT&&(r=!0);r||d.A.BA.BY.push({x:ZC._i_(c),text:Ce.AT})}switch(Ce.o[ZC._[7]]){case"inner":Ce.iY=x?n-Ce.F-M:n+M;break;case"ref-top":Ce.iY=y-Ce.F-M;break;case"ref-bottom":Ce.iY=y+M;break;case"ref-auto":X&&X.R[e]?(X.FM(e).setup(),X.FM(e).iY<y?Ce.iY=y+M:Ce.iY=y-Ce.F-M):Ce.iY=y+M;break;default:Ce.iY=x?n+M:n-Ce.F-M}if(Ae=d.MB(Ce,Ae,"h",0),d.BR.o["auto-align"]&&d.BR.A9%180!=0){var s=ZC.DR(d.BR.A9,0,180)?x?1:-1:x?-1:1;Ce.iX+=s*Ce.I*ZC.EH(d.BR.A9)/2,Ce.iY+=s*(Ce.I*ZC.EN(d.BR.A9)/2-Ce.F*ZC.EN(d.BR.A9)/2)}var C=d.UR(Ce,e,{items:fe,lcoords:ge,lstep:Q,tdim:_e,mdim:de,dim:"h",html:Be});if(_e=C.tdim,de=C.mdim,!C.overlaps&&t&&d.IY.AM)switch(ue.o[ZC._[7]]){case"ref-auto":pe.push([c,y+M/2],[c,y-M/2],null);break;case"ref-top":pe.push([c,y-M],[c,y],null);break;case"ref-bottom":pe.push([c,y+M],[c,y],null);break;case"inner":pe.push([c,n-(x?M:-M)],[c,n],null);break;case"outer":pe.push([c,n],[c,n+(x?M:-M)],null);break;default:pe.push([c,n+M/2],[c,n-M/2],null)}d.GV++}}}getOptimalDateInterval(e){var t,i,a,n,l;return 0<=e&&e<=3*ZC.SEC?(t="%q",i="%q ms",a=10,n="ms",l=ZC._i_(e/10)):3*ZC.SEC<e&&e<=3*ZC.MIN?(t="%s",i="%h:%i:%s %A",a=ZC.SEC,n="sec",l=ZC._i_(e/ZC.SEC)):3*ZC.MIN<e&&e<=3*ZC.HR?(t="%i",i="%h:%i %A",a=ZC.MIN,n="min",l=ZC._i_(e/ZC.MIN)):3*ZC.HR<e&&e<=3*ZC.DAY?(t="%h:%i",i="%M %d, %h %A",a=ZC.HR,n="hr",l=ZC._i_(e/ZC.HR)):3*ZC.DAY<e&&e<=3*ZC.MON?(t="%d",i="%M %d",a=ZC.DAY,n="day",l=ZC._i_(e/ZC.DAY)):3*ZC.MON<e&&e<=3*ZC.YR?(t="%m",i="%M %Y",a=ZC.DAY,n="mon",l=ZC._i_(e/ZC.MON)):(t="%Y",i="%Y",a=ZC.DAY,n="yr",l=ZC._i_(e/ZC.YR)),[t,i,a,n,l]}paintTransformDate(){var e,t,i,a,n=this;t=ZC.Q.E9(n.G.usc()?n.G.K+"-main-c":n.A.K+"-scales-bl-0-c",n.G.AB);var l=[],r=1;function o(e,t){typeof t===ZC._[31]&&(t=!1),0<=e&&e<=2*ZC.SEC?(i="%q",a="%q ms",t&&o(60*e)):2*ZC.SEC<e&&e<=2*ZC.MIN?(i="%s",a="%h:%i:%s %A",t&&o(60*e),e>10*ZC.SEC&&(r=2),e>30*ZC.SEC&&(r=5),e>60*ZC.SEC&&(r=10)):2*ZC.MIN<e&&e<=2*ZC.HR?(i="%i",a="%h:%i %A",t&&o(24*e),e>10*ZC.MIN&&(r=2),e>30*ZC.MIN&&(r=5),e>60*ZC.MIN&&(r=10)):2*ZC.HR<e&&e<=2*ZC.DAY?(i="%h",a="%M %d, %h %A",t&&o(30*e),e>6*ZC.HR&&(r=2),e>12*ZC.HR&&(r=4),e>24*ZC.HR&&(r=6)):2*ZC.DAY<e&&e<=2*ZC.MON?(i="%d",a="%M %d",t&&o(366*e),e>12*ZC.DAY&&(l=[1,5,9,13,17,21,25,29]),e>24*ZC.DAY&&(l=[1,6,11,16,21,26])):2*ZC.MON<e&&e<=2*ZC.YR?(i="%m",a="%M %Y",t&&o(10*e),e>9*ZC.MON&&(l=[1,4,7,10])):(i="%Y",a="%Y",e>9*ZC.YR&&(r=3),e>16*ZC.YR&&(r=4),e>25*ZC.YR&&(r=5))}o(n.V[n.A1]-n.V[n.W]);var s=null,C=null,A=[],Z=!1,c=!1;function p(e){var c,p;if(null!==ZC._n_(n.V[e])&&""!==n.V[e]){if(n.O4&&e!==n.W&&e!==n.A1&&null!==ZC._n_(n.V[e-1])&&""!==n.V[e-1]&&null!==ZC._n_(n.V[e])&&""!==n.V[e]){var u=n.V[e]-n.V[e-1];null!==ZC._n_(C)&&C!==u&&o(C,!0),C=u}var h=ZC.AP.YY(n.V[e],i,n.A.UX,n.A.NI);if(h!==s&&ZC._i_(h)%r==0&&(0===l.length||-1!==ZC.AV(l,ZC._i_(h)))){var _,d=!0,f=e-n.W;c=n.AW?n.iX+n.I-n.AA-f*n.AC:n.iX+n.AA+f*n.AC+(n.DQ?n.AC/2:0);var g=new DT(n);n.G.B8.load(g.o,"graph.SCALE.transform[date].item"),null!==ZC._n_(_=n.o.transform.item)&&g.append(_),g.GO=n.K+"-item "+n.A.K+"-scale-item zc-scale-item",g.K=n.K+"-date-item-"+e;var B=ZC.AP.YY(n.V[e],a,n.A.UX,n.A.NI);g.AT=B,g.Z=g.C7=n.G.usc()?n.G.mc():ZC.AK(n.A.K+"-scales-ml-0-c"),g.IU=n.G.usc()?ZC.AK(n.G.K+"-main"):ZC.AK(n.G.K+"-text"),g.parse(),n.AW?g.iX=c-g.I/2-(n.DQ?n.AC/2:0):g.iX=c,g.iY=n.iY,n.A.AJ["3d"]&&(n.A.NO(),p=new CB(n.A,g.iX+g.I/2-ZC.AO.E1,g.iY+g.F/2-ZC.AO.E2,0),g.iX=p.EB[0]-g.I/2,g.iY=p.EB[1]-g.F/2);var v=[g.iX+g.BL,g.iY+g.BH,g.I,g.F];if(g.A9%180==90&&(v=[g.iX+g.BL+g.I/2-g.F/2,g.iY+g.BH+g.F/2-g.I/2,g.F,g.I]),n.A.BA&&n.A.BA.IO){for(var m=!1,b=0;b<n.A.BA.BY.length;b++)n.A.BA.BY[b].text===g.AT&&(m=!0);m||g.iX>=n.iX&&g.iX+g.I<=n.iX+n.I&&n.A.BA.BY.push({x:ZC._i_(g.iX),text:g.AT})}if(g.AM&&Z){if(d=!0,!n.A0U){if(e===n.W||e===n.A1)d=!0;else for(var D=0,K=A.length;D<K;D++)if(ZC.DR(v[0],A[D][0],A[D][0]+A[D][2])||ZC.DR(v[0]+v[2],A[D][0],A[D][0]+A[D][2])){d=!1;break}g.iX+g.BL+g.I>n.iX+n.BL+n.I&&(d=!1)}if(d){A.push(v),g.paint(),g.EC();var E=new D0(n);null!==ZC._n_(_=n.o.transform.guide)&&E.append(_),E.AZ=1,E.B7="#ccc",E.parse();var F=[];if(F.push([c,n.iY],[c,n.iY+n.F]),n.A.AJ["3d"]){n.A.NO();for(var I=0,x=F.length;I<x;I++)p=new CB(n.A,F[I][0]-ZC.AO.E1,F[I][1]-ZC.AO.E2,0),F[I][0]=p.EB[0],F[I][1]=p.EB[1]}E.AM&&ZC.CR.paint(t,E,F)}}0}s=h}}if(n.A.BA&&n.A.BA.IO&&(n.A.BA.BY=[]),n.V.length>0&&(Z=!1,null!==ZC._n_(e=n.o.transform.item)&&(Z=!(null!==ZC._n_(e.visible)&&!ZC._b_(e.visible))),c=!1,n.A.BA&&n.A.BA.BY&&(c=!0),Z||c)){p(n.W),p(n.A1);for(var u=n.W+1;u<n.A1;u++)p(u)}}}class TE extends A02{constructor(e){super(e)}parse(){super.parse()}GZ(){var e=this;e.A1===e.W?e.AC=e.F-e.AA-e.BV:e.AC=(e.F-e.AA-e.BV)/(e.A1-e.W+(e.DQ?1:0))}HC(e){super.HC(e),this.GZ()}clear(){}build(){super.build()}zoomTo(e,t){super.zoomTo(e,t),this.GZ()}L1(e,t,i){var a,n=this;a=n.AW?(e-n.iY-n.AA)/(n.F-n.AA-n.BV):(n.iY+n.F-n.AA-e)/(n.F-n.AA-n.BV);var l=n.B3+ZC._f_((n.BK-n.B3)*a);return i&&(l=ZC._a_(n.AW?Math.ceil(l):Math.floor(l))),"log"===n.C6&&t&&(l=Math.pow(n.E4,l)),l}AN(e){var t=this,i=t.BK-t.B3,a=0===i?0:(t.F-t.AA-t.BV)/i;return"log"===t.C6&&(e=0===e?t.FX:ZC.G6(e,t.E4)),t.AW?t.iY+t.AA+(e-t.B3)*a:t.iY+t.F-t.AA-(e-t.B3)*a}paint(){var e,t,i,a,n,l,r,o,s,C,A,Z,c,p,u,h,_,d,f,g=this;super.paint(),"bubble"!==g.A.AF&&"scatter"!==g.A.AF||1!==g.V.length||(g.AA=g.F/2);var B=g.YC(),v=0,m=1,b=1,D={};for(t=0,i=g.A.BN.length;t<i;t++)g.A.BN[t].AM&&g.A.BN[t].TL&&(g.A.BN[t].BG.substring(0,7)===ZC._[51]&&g.A.BN[t].B9===g.B9&&v++,g.A.BN[t].BG.substring(0,7)===ZC._[51]&&("default"===g.A.BN[t].B9?(D[g.A.BN[t].BG]=m,m++):(D[g.A.BN[t].BG]=b,b++)));var K=D[g.BG],E="default"===g.B9,F=null,I=null;for(t=0,i=g.A.AY.A4.length;t<i;t++){var x=g.A.AY.A4[t],y=x.BT();if(-1!==ZC.AV(y,g.BG)){var X=g.A.BI(x.BT("k")[0]);F=X.AN(X.H9),I=x;break}}var G=8;null!==ZC._n_(g.IY.o[ZC._[21]])&&(G=ZC._i_(g.IY.o[ZC._[21]]));var Y=4;null!==ZC._n_(g.IC.o[ZC._[21]])&&(Y=ZC._i_(g.IC.o[ZC._[21]]));var w=ZC._i_(g.A.D[g.BG+"-distance"]||-1);g.VX&&(w=0),"default"===g.B9?(f=ZC._i_(g.A.P.DV/v),a=g.iX-(K-1)*f,-1!==w&&(a=g.iX-w)):(f=ZC._i_(g.A.P.E6/v),a=g.iX+g.I+(K-1)*f,-1!==w&&(a=g.iX+g.I+w));var M=a;if(g.A.IH&&g.BG===ZC._[51]&&(g.A.IH.AM=!0,g.FX===g.B3&&g.H2===g.BK&&(g.A.IH.AM=!1),g.A.IH.AM&&0===g.A.IH.B0.BL&&"default"===g.B9&&(a-=g.A.IH.B0.I+g.AZ/2)),g.D.iX=a,g.AM&&g.TL){for(var L=Math.ceil((g.A1-g.W)/(g.EG-1)),P=Math.ceil((g.A1-g.W)/(g.M9-1)),O=g.iStepMultiplier,R=3;R>0;R--)g.iStepMultiplier>R&&g.A1-g.W<=R*g.iStepMultiplier&&(O=R);P*=O,L*=O;var Q=0,T=g.AC*P/(g.FV+1);if(n=g.G.usc()?g.G.mc():ZC.AK(g.A.K+"-scales-ml-0-c"),l=ZC.Q.E9(n,g.G.AB),r=g.G.usc()?g.G.mc():ZC.AK(g.A.K+"-scales-bl-0-c"),o=ZC.Q.E9(r,g.G.AB),g.TL||g.Z3||null!==ZC._n_(g.A.o[g.BG])){if("inherit"===g.o["line-color"]&&-1!==B&&(g.B7=B),g.A.AJ["3d"]){if((c=ZC.DH.D9(g,g.A,a-ZC.AO.E1,a-ZC.AO.E1,g.iY-ZC.AO.E2,g.iY-ZC.AO.E2+g.F,-1,ZC.AO.FU+1,"y")).K=g.K+"-line",g.A.EY.true3d&&(g.A.EY[ZC._[28]]>0?c.MJ=[1===g.L?-100:100,1,1]:c.MJ=[1===g.L?100:-100,1,1]),g.A.CJ.add(c),null!==ZC._n_(g.o.axis)){var k=new D0(g);k.append(g.o.axis),k.parse(),k.A0=k.AE=k.B7,(c=ZC.DH.D9(k,g.A,a-ZC.AO.E1,a-ZC.AO.E1,g.iY-ZC.AO.E2,g.iY-ZC.AO.E2+g.F,-k.AZ/2,k.AZ/2,"y")).K=g.K+"-axis",g.A.CJ.add(c)}}else{C=[[M,g.iY+g.F],[M,g.iY]];var N=g.K;g.K+="-line",ZC.CR.paint(l,g,C),g.K=N}var H=0,z=0,V=[],J=[];if(g.TL||g.Z3){if(g.V.length>0&&g.D4.AM){var S=null===ZC._n_(g.D4.o["offset-start"])?0:ZC._i_(g.D4.o["offset-start"]),W=null===ZC._n_(g.D4.o["offset-end"])?0:ZC._i_(g.D4.o["offset-end"]);if(g.D4.o.items&&g.D4.o.items.length>0&&!g.A.AJ["3d"])for(g.GV=0,p=new I2(g),t=g.W;t<g.A1+(g.DQ?1:0);t++)g.K9=t,t%P==0&&(A=t-g.W,u=g.GV%g.D4.o.items.length,p.append(g.D4.o.items[u]),p.K=g.K+"-guide-"+t,p.Z=r,p.parse(),p.iX=g.iX+S,s="log"===g.C6?g.AN(g.V[t]):g.AN(g.V[t])-(g.AW?0:g.AC*P),p.iY=s,p.I=g.I-S-W,p.F=g.AC*P,p.paint(),g.GV++);if(g.D4.AZ>0)for(g.GV=0,t=g.W;t<=g.A1+(g.DQ?1:0);t++)if(g.K9=t,t===g.W||t===g.A1||t%P==0){(g.D4.E5.length>0||t===g.W||"log"===g.C6)&&((Z=new D0(g)).Z=Z.C7=r,"log"===g.C6?ZC.AQ._int_(ZC.G6(g.V[t],g.E4))?Z.copy(g.D4):Z.copy(g.G5):Z.copy(g.D4),Z.J2=ce,Z.DC()&&Z.parse()),C=[],A=t-g.W;var U=g.iX+S,j=g.I-S-W;if(s=(g.C6,g.AN(g.V[t])),Z.AM)if(g.A.AJ["3d"]){var q=new D0(g);q.copy(Z),null!==ZC._n_(g.o["scale-z"])&&null!==ZC._n_(e=g.o["scale-z"].guide)&&(q.append(e),q.parse()),q.A0=q.AE=q.B7,c=ZC.DH.D9(q,g.A,a-ZC.AO.E1,a-ZC.AO.E1,s-ZC.AO.E2-q.AZ/2,s-ZC.AO.E2+q.AZ/2,0,ZC.AO.FU,"y"),g.A.CJ.add(c),Z.A0=Z.AE=Z.B7,(c=ZC.DH.D9(Z,g.A,U-ZC.AO.E1,U-ZC.AO.E1+j,s-ZC.AO.E2-Z.AZ/2,s-ZC.AO.E2+Z.AZ/2,ZC.AO.FU+2,ZC.AO.FU+2,"x")).K=g.K+"-guide-"+t,g.A.CJ.add(c)}else C.push([U,s],[U+j,s]),Z.K=g.K+"-guide-"+t,ZC.CR.paint(o,Z,C);g.GV++}}if(g.V.length>0&&g.G5.AM&&T>2&&!g.A.AJ["3d"]){if(g.G5.o.items&&g.G5.o.items.length>0)for(p=new I2(g),t=g.W;t<g.A1+(g.DQ?1:0);t++)if(g.K9=t,t%P==0)for(A=t-g.W,g.GV=0,h=1;h<=g.FV;h++)u=g.GV%g.G5.o.items.length,p.append(g.G5.o.items[u]),p.K=g.K+"-guide-"+t+"-"+h,p.Z=g.G.usc()?g.G.mc():ZC.AK(g.A.K+"-scales-bl-0-c"),p.parse(),p.iX=g.iX,s=g.AW?g.iY+g.AA+A*g.AC+h*T:g.iY+g.F-g.AA-A*g.AC-(h+1)*T,p.iY=s,p.I=g.I,p.F=T,p.paint(),g.GV++;if(g.G5.AZ>0&&"log"!==g.C6)for(t=g.W;t<g.A1+(g.DQ?1:0);t++)if(g.K9=t,t===g.W||t===g.A1||t%P==0)for(A=t-g.W,g.GV=0,h=1;h<=g.FV;h++)C=[],(Z=new D0(g)).copy(g.G5),Z.J2=ce,Z.DC()&&Z.parse(),s="log"===g.C6?g.AN(g.V[t]+h*(g.V[t+1]-g.V[t])/(g.FV+1)):g.AN(g.V[t]+h*L*(g.V[t+1]-g.V[t])/(g.FV+1)),ZC.DR(s,g.iY,g.iY+g.F)&&(C.push([g.iX,s],[g.iX+g.I,s]),Z.AM&&(Z.K=g.K+"-minor-guide-"+h,ZC.CR.paint(o,Z,C))),g.GV++}var $,ee,te;if(g.TM(o,B),g.V.length>0&&g.IY.AM){switch(g.IY.o[ZC._[7]]){case"inner":break;case"outer":Q+=G;break;default:Q+=G/2}for(g.GV=0,_=ZC.AV(g.V,0),t=g.W;t<=g.A1+(g.DQ?1:0);t++){g.K9=t;var ie=-1;if((t===g.W||t===g.A1||t%P==0||ZC._b_(g.o["show-zero"])&&t===_)&&(C=[],A=t-g.W,(g.IY.E5.length>0||t===g.W||"log"===g.C6)&&(Z=new D0(g),"log"===g.C6?ZC.AQ._int_(ZC.G6(g.V[t],g.E4))?Z.copy(g.IY):(Z.copy(g.IC),ie=G,G=Y):Z.copy(g.IY),"inherit"===g.IY.o["line-color"]&&-1!==B&&(Z.B7=B),Z.J2=ce,Z.DC()&&Z.parse()),s=(g.C6,g.AN(g.V[t])),ZC.DR(s,g.A.P.iY,g.A.P.iY+g.A.P.F))){switch(Z.o[ZC._[7]]){case"ref-right":C.push([F,s],[F+G,s]);break;case"ref-left":C.push([F,s],[F-G,s]);break;case"ref-auto":C.push([F-G/2,s],[F+G/2,s]);break;case"inner":C.push([a,s],[a+(E?G:-G),s]);break;case"outer":C.push([a,s],[a-(E?G:-G),s]);break;default:C.push([a+G/2,s],[a-G/2,s])}if(-1!==ie&&(G=ie,ie=-1),Z.AM){for(ee=ZC._i_(Z.o["offset-x"]||"0"),te=ZC._i_(Z.o["offset-y"]||"0"),$=0;$<C.length;$++)C[$][0]+=ee,C[$][1]+=te;if(Z.K=g.K+"-tick-"+t,g.A.AJ["3d"]&&g.A.EY.true3d){var ae,ne=[];for($=0;$<C.length;$++)ae=new CB(g.A,C[$][0]-ZC.AO.E1,C[$][1]-ZC.AO.E2,0),ne.push([ae.EB[0],ae.EB[1]]);ZC.CR.paint(l,Z,ne)}else ZC.CR.paint(l,Z,C)}g.GV++}}}if(g.V.length>0&&g.IC.AM&&g.FV>0&&T>5&&!g.A.AJ["3d"]&&"log"!==g.C6)for(t=g.W;t<g.A1+(g.DQ?1:0);t++)if(g.K9=t,t===g.W||t===g.A1||t%P==0)for(A=t-g.W,g.GV=0,h=1;h<=g.FV;h++){if(C=[],(Z=new D0(g)).copy(g.IC),"inherit"===g.IC.o["line-color"]&&-1!==B&&(Z.B7=B),Z.J2=ce,Z.DC()&&Z.parse(),s="log"===g.C6?g.AN(g.V[t]+h*(g.V[t+1]-g.V[t])/(g.FV+1)):g.AN(g.V[t]+h*L*(g.V[t+1]-g.V[t])/(g.FV+1)),ZC.DR(s,g.iY,g.iY+g.F)){switch(Z.o[ZC._[7]]){case"ref-right":C.push([F,s],[F+Y,s]);break;case"ref-left":C.push([F,s],[F-Y,s]);break;case"ref-auto":C.push([F-Y/2,s],[F+Y/2,s]);break;case"inner":C.push([a,s],[a+(E?Y:-Y),s]);break;default:C.push([a,s],[a-(E?Y:-Y),s]);break;case"cross":C.push([a+Y/2,s],[a-Y/2,s])}if(Z.AM){for(ee=ZC._i_(Z.o["offset-x"]||"0"),te=ZC._i_(Z.o["offset-y"]||"0"),$=0;$<C.length;$++)C[$][0]+=ee,C[$][1]+=te;Z.K=g.K+"-minor-tick-"+t,ZC.CR.paint(l,Z,C)}}g.GV++}g.VV();var le=null,re=g.CH,oe=g.DM,se=function(e){var t;if(g.K9=e,A=e-g.W,(g.BR.E5.length>0||e===g.W||!d||g.BR.HX)&&(d=new DT(g)),d.copy(g.BR),d.GO=g.K+"-item "+g.A.K+"-scale-item zc-scale-item",d.K=g.A.K+"-"+g.BG.replace(/\-/g,"_")+"-item_"+e,g.CH=re,g.DM=oe,g.WA(ce),t=("piano"===g.A.AF||g.QE)&&g.BY.length?g.FC(e+g.B3):g.FC(e),g.BR.HX&&g.GN(g.BR,d,null,{index:e,cnt:A,text:t},g.BR.MR),null===ZC._n_(g.M3)||-1!==ZC.AV(g.M3,t)){switch(d.AT=t,d.Z=d.C7=g.G.usc()?g.G.mc():ZC.AK(g.A.K+"-scales-ml-0-c"),d.IU=g.G.usc()?ZC.AK(g.G.K+"-main"):ZC.AK(g.G.K+"-text"),d.parse(),"inherit"!==g.BR.o["font-color"]&&"inherit"!==g.BR.o.color||-1===B||(d.C1=B),d.J2=ce,d.DC()&&d.parse(),d.o[ZC._[7]]){case"ref-left":d.iX=F-d.I-G;break;case"ref-right":d.iX=F+G;break;case"ref-auto":I&&I.R[e]?(I.FM(e).setup(),I.FM(e).iX<F?d.iX=F+G:d.iX=F-d.I-G):d.iX=F+G;break;case"middle":d.iX=a-d.I/2;break;case"inner":d.iX=E?a+G:a-d.I-G;break;default:d.iX=E?a-d.I-G:a+G}if(g.C6,d.iY=g.AN(g.V[e])-d.F/2,le=g.MB(d,le,"v"),g.BR.o["auto-align"]&&g.BR.A9%180!=0){var i=E?1:-1;90===g.BR.A9||270===g.BR.A9?d.iX+=i*(d.I/2-d.F/2):ZC.DR(g.BR.A9,0,90)||ZC.DR(g.BR.A9,270,360)?(d.iX+=i*(d.I-d.I*ZC.EH(g.BR.A9))/2,d.iY-=i*d.I*ZC.EN(g.BR.A9)/2):ZC.DR(g.BR.A9,90,270)&&(d.iX+=i*(d.I+d.I*ZC.EH(g.BR.A9))/2,d.iY+=i*d.I*ZC.EN(g.BR.A9)/2)}if(ZC.DR(d.iY+d.F/2,g.A.P.iY,g.A.P.iY+g.A.P.F)){var n=g.UR(d,e,{items:0,lcoords:V,lstep:L,tdim:H,mdim:z,dim:"w",html:J});H=n.tdim,z=n.mdim,g.GV++}}};if(g.V.length>0&&g.BR.AM)if("log"===g.C6){var Ce=[];for(t=g.W;t<=g.A1;t++)ZC.AQ._int_(ZC.G6(g.V[t],g.E4))&&(g.GV=t,se(t),Ce.push(t));for(t=g.W;t<=g.A1;t++)-1===ZC.AV(Ce,t)&&(g.GV=t,se(t))}else for(g.GV=0,se(g.W),g.GV=g.A1-g.W,se(g.A1),-1!==(_=ZC.AV(g.V,0))&&ZC._b_(g.o["show-zero"])&&(g.GV=_,se(_)),g.GV=1,t=g.W+1;t<g.A1;t++)t%L==0&&se(t)}if(g.M.AM&&g.M.AT&&""!==g.M.AT){(d=new DT(g)).copy(g.M),d.K=g.A.K+"-"+g.BG.replace(/\-/g,"_")+"-item_title",d.GO=g.K+"-label "+g.A.K+"-scale-label zc-scale-label",d.AT=g.M.AT,d.Z=g.G.usc()?g.G.mc():ZC.AK(g.A.K+"-scales-ml-0-c"),d.IU=g.G.usc()?ZC.AK(g.G.K+"-main"):ZC.AK(g.G.K+"-text"),d.parse(),"inherit"!==g.M.o["font-color"]&&"inherit"!==g.M.o.color||-1===B||(d.C1=B);var Ae=g.iY+(g.AW?g.AA:g.BV),Ze=g.F-g.BV-g.AA;switch("chart"===d.o["center-point"]&&(Ae=g.A.iY,Ze=g.A.F),d.K1){case"top":d.iY=Ae+d.I/2-d.F/2;break;case"middle":d.iY=Ae+Ze/2-d.F/2;break;case"bottom":d.iY=Ae+Ze-d.I/2-d.F/2}d.iX=E?a-d.I/2-d.F/2-Q-z:a+z+d.F/2+Q-d.I/2,g.M.iX=d.iX,g.M.iY=d.iY,d.AM&&(g.MB(d,null,"v",10),d.paint(),d.EC(),null===ZC._n_(d.o.tooltip)&&d.KD||J.push(ZC.AP.OG(g.A.K,d)))}J.length>0&&ZC.AK(g.A.A.K+"-map")&&(ZC.AK(g.A.A.K+"-map").innerHTML+=J.join(""))}}function ce(e){return e=(e=(e=(e=(e=e.replace(/%scale-last-position/g,g.A1-g.W)).replace(/(%c)|(%scale-position)/g,g.GV)).replace(/(%i)|(%scale-index)/g,g.K9)).replace(/(%v)|(%scale-value)/g,null!==ZC._n_(g.V[g.K9])?g.V[g.K9]:"")).replace(/(%l)|(%scale-label)/g,null!==ZC._n_(g.BY[g.K9])?g.BY[g.K9]:"")}}}class VE extends A4H{constructor(e){super(e),this.CP=!0}parse(){super.parse()}GZ(){var e=this;e.A1===e.W?e.AC=e.F-e.AA-e.BV:e.AC=(e.F-e.AA-e.BV)/(e.A1-e.W+(e.DQ?1:0))}HC(e){super.HC(e),this.GZ()}clear(){}build(){super.build()}zoomTo(e,t){super.zoomTo(e,t),this.GZ()}L1(e){var t,i=this;return t=i.AW?(e-i.iY-i.AA)/(i.F-i.AA-i.BV):(i.iY+i.F-i.AA-e)/(i.F-i.AA-i.BV),i.B3+ZC._f_((i.BK-i.B3)*t)}MZ(e,t,i){var a,n,l,r,o=this;typeof i===ZC._[31]&&(i=!1);var s=o.DQ?o.AC:0;l=o.AW?(e-o.iY-o.AA-s/2)/(o.F-o.AA-o.BV-s):(o.iY+o.F-e-o.AA-s/2)/(o.F-o.AA-o.BV-s);var C=!1;if(t)for(r in t.K8){C=!0;break}if(t&&!o.O4&&C){var A=o.V[o.W];"string"==typeof A&&(A=ZC.AV(o.IX,A)),"log"===o.C6&&(A=ZC.G6(A,o.E4));var Z=o.V[o.A1];"string"==typeof Z&&(Z=ZC.AV(o.IX,Z)),"log"===o.C6&&(Z=ZC.G6(Z,o.E4));var c=A+ZC._f_((Z-A)*l);"log"===o.C6&&(c=Math.pow(o.E4,c));var p=ZC.MAX;for(r in n=null,t.K8)(a=Math.abs(r-c))<p&&(p=a,n=t.K8[r]);if(null===ZC._n_(n)&&(n=c),p>t.A2Z){var u=Math.ceil((Z-A)/(o.I-o.AA-o.BV));if(t.V.length<2&&(u*=100),p>u)return null}return n}var h=o.W,_=o.A1;return o.EF&&(null!==ZC._n_(a=o.V[h])&&(h=a),null!==ZC._n_(a=o.V[_])&&(_=a)),"log"===o.C6&&(h=ZC.G6(h,o.E4),_=ZC.G6(_,o.E4)),n=i?o.DQ?h+(_-h+1)*l:h+(_-h)*l:o.DQ?o.W+(o.A1-o.W+1)*l:o.W+(o.A1-o.W)*l,"log"===o.C6?(n=Math.pow(o.E4,n),n=Math.floor(n)-1):(n=o.DQ?Math.floor(n):ZC._i_(n),n=ZC.BQ(0,n),n=ZC.CX(o.DU,n)),n}H4(e){var t=this;t.W,t.A1;return t.EF&&!t.O4&&(t.B3,t.BK),"log"===t.C6&&(e=ZC.G6(e+1,t.E4)),t.AW?t.iY+t.AA+(e-t.W)*t.AC+(t.DQ?t.AC/2:0):t.iY+t.F-t.AA-(e-t.W)*t.AC-(t.DQ?t.AC/2:0)}AN(e){var t,i,a,n,l,r=this;if("log"===r.C6&&(e=ZC.G6(e,r.E4)),r.O4){var o=r.UL[e];return r.H4(o)}return-1!==(t=ZC.AV(r.IX,e))?r.H4(t):!r.A57&&(r.EF||r.FI&&"date"===r.FI.o.type)?(n=r.V[r.W],l=r.V[r.A1],"log"===r.C6&&(n=ZC.G6(n,r.E4),l=ZC.G6(l,r.E4)),l===n?a=0:(i=l-n,a=(r.F-r.AA-r.BV-(r.DQ?r.AC:0))/i),r.AW?r.iY+r.AA+(e-n)*a+(r.DQ?r.AC/2:0):r.iY+r.F-r.AA-(e-n)*a-(r.DQ?r.AC/2:0)):(n=r.B3,l=r.BK,"log"===r.C6&&(n=ZC.G6(n,r.E4),l=ZC.G6(l,r.E4)),l===n?a=0:(i=l-n+(r.DQ?1:0),a=(r.F-r.AA-r.BV)/i),r.AW?r.iY+r.AA+(e-n)*a+(r.DQ?r.AC/2:0):r.iY+r.F-r.AA-(e-n)*a-(r.DQ?r.AC/2:0))}paint(){var e,t,i,a,n,l,r,o,s,C,A,Z,c,p,u,h,_,d=this;if(d.AM){super.paint(),null!==ZC._n_(d.A.A.D[d.BG+"-feed-offset-start"])&&(d.AA=d.A.A.D[d.BG+"-feed-offset-start"]),"hbubble"!==d.A.AF&&"hscatter"!==d.A.AF||(-1===d.AA&&-1===d.BV||1===d.V.length)&&(d.AA=d.BV=d.F/(d.V.length+1),d.GZ());var f=d.YC(),g=0,B=1,v=1,m={};for(t=0,i=d.A.BN.length;t<i;t++)d.A.BN[t].BG.substring(0,7)===ZC._[50]&&d.A.BN[t].B9===d.B9&&g++,d.A.BN[t].BG.substring(0,7)===ZC._[50]&&("default"===d.A.BN[t].B9?(m[d.A.BN[t].BG]=B,B++):(m[d.A.BN[t].BG]=v,v++));var b=m[d.BG],D="default"===d.B9,K=null,E=null;for(t=0,i=d.A.AY.A4.length;t<i;t++){var F=d.A.AY.A4[t],I=F.BT();if(-1!==ZC.AV(I,d.BG)){var x=d.A.BI(F.BT("v")[0]);K=x.AN(x.H9),E=F;break}}var y=8;null!==ZC._n_(d.IY.o[ZC._[21]])&&(y=ZC._i_(d.IY.o[ZC._[21]]));var X=4;null!==ZC._n_(d.IC.o[ZC._[21]])&&(X=ZC._i_(d.IC.o[ZC._[21]]));var G=ZC._i_(d.A.D[d.BG+"-distance"]||-1);d.VX&&(G=0),"default"===d.B9?(a=ZC._i_(d.A.P.DV/g),n=d.iX-(b-1)*a,-1!==G&&(n=d.iX-G)):(a=ZC._i_(d.A.P.E6/g),n=d.iX+d.I+(b-1)*a,-1!==G&&(n=d.iX+d.I+G));var Y=n;if(d.A.IG&&d.BG===ZC._[50]&&(d.A.IG.AM=!0,d.DA===d.W&&d.DU===d.A1&&(d.A.IG.AM=!1),d.A.IG.AM&&0===d.A.IG.B0.BL&&"default"===d.B9&&(n-=d.A.IG.B0.I+d.AZ/2)),d.D.iX=n,d.AM&&d.TL){null!==ZC._n_(d.o["fixed-items"])&&(d.M9=d.EG=ZC._i_(d.o["fixed-items"]));var w=Math.ceil((d.A1-d.W)/(d.M9-1)),M=Math.ceil((d.A1-d.W)/(d.EG-1));null===ZC._n_(d.o["fixed-items"])&&ZC._b_(d.o.normalize)&&(w=ZC.AQ.A15(w),M=ZC.AQ.A15(M));for(var L=d.iStepMultiplier,P=3;P>0;P--)d.iStepMultiplier>P&&d.A1-d.W<=P*d.iStepMultiplier&&(L=P);w*=L,M*=L;var O,R,Q,T=0,k=d.AC*w/(d.FV+1);if(null===ZC._n_(K)&&(K=n),l=d.G.usc()?d.G.mc():ZC.AK(d.A.K+"-scales-ml-0-c"),r=ZC.Q.E9(l,d.G.AB),o=d.G.usc()?d.G.mc():ZC.AK(d.A.K+"-scales-bl-0-c"),s=ZC.Q.E9(o,d.G.AB),"inherit"===d.o["line-color"]&&-1!==f&&(d.B7=f),d.A.AJ["3d"])(p=ZC.DH.D9(d,d.A,n-ZC.AO.E1,n-ZC.AO.E1,d.iY-ZC.AO.E2,d.iY-ZC.AO.E2+d.F,-1,ZC.AO.FU+1,"y")).K=d.K+"-line",d.A.EY.true3d&&(d.A.EY[ZC._[27]]>0?p.MJ=[1===d.L?-100:100,1,1]:p.MJ=[1===d.L?100:-100,1,1]),d.A.CJ.add(p);else{A=[[Y,d.iY+d.F],[Y,d.iY]];var N=d.K;d.K+="-line",ZC.CR.paint(r,d,A),d.K=N}if(d.V.length>0&&d.D4.AM){var H=null===ZC._n_(d.D4.o["offset-start"])?0:ZC._i_(d.D4.o["offset-start"]),z=null===ZC._n_(d.D4.o["offset-end"])?0:ZC._i_(d.D4.o["offset-end"]);if(d.D4.o.items&&d.D4.o.items.length>0&&!d.A.AJ["3d"])for(u=new I2(d),t=d.W;t<d.A1+(d.DQ?1:0);t++)C=t-d.W,_=t%d.D4.o.items.length,u.append(d.D4.o.items[_]),u.K=d.K+"-guide-"+t,u.Z=o,u.parse(),u.iX=d.iX+H,d.AW?u.iY=d.iY+d.AA+C*d.AC:u.iY=d.iY+d.F-d.AA-(C+1)*d.AC,u.I=d.I-H-z,u.F=d.AC,u.paint();if(d.D4.AZ>0)for(d.GV=0,t=d.W;t<=d.A1+(d.DQ?1:0);t++)if(d.K9=t,t===d.W||t===d.A1+(d.DQ?1:0)||(t-d.W)%w==0){(d.D4.E5.length>0||t===d.W)&&((c=new D0(d)).Z=c.C7=o,c.copy(d.D4),c.J2=Ae,c.DC()&&c.parse()),C=t-d.W,A=[],Z=d.AW?d.iY+d.AA+C*d.AC:d.iY+d.F-d.AA-C*d.AC;var V=d.iX+H,J=d.I-H-z;if(c.AM)if(d.A.AJ["3d"]){var S=new D0(d);S.copy(c),null!==ZC._n_(d.o["scale-z"])&&null!==ZC._n_(e=d.o["scale-z"].guide)&&(S.append(e),S.parse()),S.A0=S.AE=S.B7,p=ZC.DH.D9(S,d.A,n-ZC.AO.E1,n-ZC.AO.E1,Z-ZC.AO.E2-S.AZ/2,Z-ZC.AO.E2+S.AZ/2,0,ZC.AO.FU,"z"),d.A.CJ.add(p),c.A0=c.AE=c.B7,(p=ZC.DH.D9(c,d.A,V-ZC.AO.E1,V-ZC.AO.E1+J,Z-ZC.AO.E2-S.AZ/2,Z-ZC.AO.E2+S.AZ/2,ZC.AO.FU+2,ZC.AO.FU+2,"x")).K=d.K+"-guide-"+t,d.A.CJ.add(p)}else A.push([V,Z],[V+J,Z]),c.K=d.K+"-guide-"+t,ZC.CR.paint(s,c,A);d.GV++}}if(d.V.length>0&&d.G5.AM&&!d.A.AJ["3d"]){if(d.G5.o.items&&d.G5.o.items.length>0)for(u=new I2(d),t=d.W;t<d.A1+(d.DQ?1:0);t++)for(d.K9=t,C=t-d.W,d.GV=0,h=1;h<=d.FV;h++)_=d.GV%d.G5.o.items.length,u.append(d.G5.o.items[_]),u.K=d.K+"-guide-"+t+"-"+h,u.Z=d.G.usc()?d.G.mc():ZC.AK(d.A.K+"-scales-bl-0-c"),u.parse(),u.iX=d.iX,d.AW?u.iY=d.iY+d.AA+(C+1)*d.AC-(h+1)*k:u.iY=d.iY+d.F-d.AA-(C+1)*d.AC+h*k,u.I=d.I,u.F=k,u.paint(),d.GV++;if(d.G5.AZ>0)for(t=d.W;t<d.A1+(d.DQ?1:0);t++)if(d.K9=t,t%w==0)for(C=t-d.W,d.GV=0,h=1;h<=d.FV;h++)A=[],(c=new D0(d)).copy(d.G5),c.J2=Ae,c.DC()&&c.parse(),Z="log"===d.C6?d.AN(d.V[t]+h*(d.V[t+1]-d.V[t])/(d.FV+1)):d.AW?d.iY+d.AA+C*d.AC+h*k:d.iY+d.F-d.AA-C*d.AC-h*k,ZC.DR(Z,d.iY,d.iY+d.F)&&(A.push([d.iX,Z],[d.iX+d.I,Z]),c.AM&&(c.K=d.K+"-minor-guide-"+h,ZC.CR.paint(s,c,A))),d.GV++}if(d.TM(s,f),d.V.length>0&&d.IY.AM&&(!d.A.AJ["3d"]||!d.A.EY.true3d)){switch(d.IY.o[ZC._[7]]){case"inner":break;case"outer":T+=y;break;default:T+=y/2}for(d.GV=0,t=d.W;t<=d.A1+(d.DQ?1:0);t++)if(d.K9=t,t===d.W||t===d.A1+(d.DQ?1:0)||(t-d.W)%w==0){switch(A=[],C=t-d.W,(d.IY.E5.length>0||t===d.W)&&((c=new D0(d)).copy(d.IY),"inherit"===d.IY.o["line-color"]&&-1!==f&&(c.B7=f),c.J2=Ae,c.DC()&&c.parse()),Z=d.AW?d.iY+d.AA+C*d.AC:d.iY+d.F-d.AA-C*d.AC,c.o[ZC._[7]]){case"ref-auto":A.push([K-y/2,Z],[K+y/2,Z]);break;case"ref-left":A.push([K-y,Z],[K,Z]);break;case"ref-right":A.push([K+y,Z],[K,Z]);break;case"inner":A.push([n,Z],[n+(D?y:-y),Z]);break;case"outer":A.push([n,Z],[n-(D?y:-y),Z]);break;default:A.push([n+y/2,Z],[n-y/2,Z])}if(c.AM){for(R=ZC._i_(c.o["offset-x"]||"0"),Q=ZC._i_(c.o["offset-y"]||"0"),O=0;O<A.length;O++)A[O][0]+=R,A[O][1]+=Q;c.K=d.K+"-tick-"+t,ZC.CR.paint(r,c,A)}d.GV++}}var W,U=[];if(d.V.length>0&&d.FV>0&&d.IC.AM&&!d.A.AJ["3d"])for(t=d.W;t<d.A1+(d.DQ?1:0);t++)if(t===d.W||t===d.A1+(d.DQ?1:0)||t%w==0)for(C=t-d.W,h=1;h<=d.FV;h++){if(A=[],(c=new D0(d)).copy(d.IC),"inherit"===d.IC.o["line-color"]&&-1!==f&&(c.B7=f),c.J2=Ae,c.DC()&&c.parse(),"log"===d.C6){Z=d.AN(d.V[t]+h*(d.V[t+1]-d.V[t])/(d.FV+1));var j=Math.round(ZC.G6(d.V[t],d.E4)),q=d.V[t]+h*(d.V[t+1]-d.V[t])/(d.FV+1);q=j<0?ZC._f_(q.toFixed(-j)):ZC._f_(q.toFixed(j)),U.push(q),Z=d.AN(q)}else Z=d.AW?d.iY+d.AA+C*d.AC+h*k:d.iY+d.F-d.AA-C*d.AC-h*k;if(ZC.DR(Z,d.iY,d.iY+d.F)){switch(c.o[ZC._[7]]){case"ref-auto":A.push([K-X/2,Z],[K+X/2,Z]);break;case"ref-left":A.push([K-X,Z],[K,Z]);break;case"ref-right":A.push([K+X,Z],[K,Z]);break;case"inner":A.push([n,Z],[n+(D?X:-X),Z]);break;case"outer":A.push([n,Z],[n-(D?X:-X),Z]);break;default:A.push([n+X/2,Z],[n-X/2,Z])}if(c.AM){for(R=ZC._i_(c.o["offset-x"]||"0"),Q=ZC._i_(c.o["offset-y"]||"0"),O=0;O<A.length;O++)A[O][0]+=R,A[O][1]+=Q;c.K=d.K+"-minor-tick-"+t,ZC.CR.paint(r,c,A)}}d.GV++}d.VV();var $=null,ee=d.CH,te=d.DM,ie=0,ae=0,ne=0,le=[],re=[];if(1===d.V.length&&d.BR.AM)d.GV=0,Ze(d.W);else if(d.V.length>1&&d.BR.AM)for(d.GV=0,Ze(d.W),d.GV=d.A1-d.W,Ze(d.A1),d.GV=1,t=d.W+1;t<d.A1;t++)(t-d.W)%M==0&&Ze(t);for(t=0;t<U.length;t++){var oe=d.FC(t,null,null,!1,U[t]);Ze(oe,!0,oe)}if(d.M.AM&&d.M.AT&&""!==d.M.AT){(W=new DT(d)).copy(d.M),W.K=d.A.K+"-"+d.BG.replace(/\-/g,"_")+"-item_title",W.GO=d.K+"-label "+d.A.K+"-scale-label zc-scale-label",W.AT=d.M.AT,W.Z=d.G.usc()?d.G.mc():ZC.AK(d.A.K+"-scales-ml-0-c"),W.IU=d.G.usc()?ZC.AK(d.G.K+"-main"):ZC.AK(d.G.K+"-text"),W.parse(),"inherit"!==d.M.o["font-color"]&&"inherit"!==d.M.o.color||-1===f||(W.C1=f);var se=d.iY+(d.AW?d.AA:d.BV),Ce=d.F-d.AA-d.BV;switch("chart"===W.o["center-point"]&&(se=d.A.iY,Ce=d.A.F),W.K1){case"top":W.iY=se+W.I/2-W.F/2;break;case"middle":W.iY=se+Ce/2-W.F/2;break;case"bottom":W.iY=se+Ce-W.I/2-W.F/2}W.iX=D?n-W.I/2-W.F/2-T-ae:n+W.F/2+ae+T-W.I/2,d.M.iX=W.iX,d.M.iY=W.iY,W.AM&&(d.MB(W,null,"v"),W.paint(),W.EC(),null===ZC._n_(W.o.tooltip)&&W.KD||re.push(ZC.AP.OG(d.A.K,W)))}re.length>0&&ZC.AK(d.A.A.K+"-map")&&(ZC.AK(d.A.A.K+"-map").innerHTML+=re.join(""))}}function Ae(e){return e=(e=(e=(e=(e=e.replace(/%scale-last-position/g,d.A1-d.W)).replace(/(%c)|(%scale-position)/g,d.GV)).replace(/(%i)|(%scale-index)/g,d.K9)).replace(/(%v)|(%scale-value)/g,null!==ZC._n_(d.V[d.K9])?d.V[d.K9]:"")).replace(/(%l)|(%scale-label)/g,null!==ZC._n_(d.BY[d.K9])?d.BY[d.K9]:"")}function Ze(e,t,i){d.K9=e,C=e-d.W,(d.BR.E5.length>0||e===d.W||!W||d.BR.HX)&&(W=new DT(d)),W.copy(d.BR),W.K=d.A.K+"-"+d.BG.replace(/\-/g,"_")+"-item_"+(i?"c"+i:e),W.GO=d.K+"-item "+d.A.K+"-scale-item zc-scale-item",W.D["p-height"]=d.AC,d.CH=ee,d.DM=te,d.WA(Ae);var a="";if(a=i||d.FC(e),d.BR.HX&&d.GN(d.BR,W,null,{index:e,cnt:C,text:a},d.BR.MR),null===ZC._n_(d.M3)||-1!==ZC.AV(d.M3,a)){switch(W.AT=a,W.Z=W.C7=d.G.usc()?d.G.mc():ZC.AK(d.A.K+"-scales-ml-0-c"),W.IU=d.G.usc()?ZC.AK(d.G.K+"-main"):ZC.AK(d.G.K+"-text"),W.D.nodeidx=e,W.parse(),"inherit"!==d.BR.o["font-color"]&&"inherit"!==d.BR.o.color||-1===f||(W.C1=f),W.J2=Ae,W.DC()&&W.parse(),W.o["auto-fit"]&&(W.F=ZC._i_(d.AC)),W.o[ZC._[7]]){case"inner":W.iX=D?n+y:n-W.I-y;break;case"ref-left":W.iX=K-W.I-y;break;case"ref-right":W.iX=K+y;break;case"ref-auto":E&&E.R[e]?(E.R[e].setup(),E.R[e].iX<K?W.iX=K+y:W.iX=K-W.I-y):W.iX=K+y;break;default:W.iX=D?n-W.I-y:n+y}if(t?(Z=d.AN(e),W.iY=Z-W.F/2-(d.DQ?d.AC/2:0)):d.AW?W.iY=d.iY+d.AA+C*d.AC-W.F/2+(d.DQ?d.AC/2:0):W.iY=d.iY+d.F-d.AA-C*d.AC-W.F/2-(d.DQ?d.AC/2:0),$=d.MB(W,$,"v"),d.BR.o["auto-align"]&&d.BR.A9%180!=0){var l=D?1:-1;90===d.BR.A9||270===d.BR.A9?W.iX+=l*(W.I/2-W.F/2):ZC.DR(d.BR.A9,0,90)||ZC.DR(d.BR.A9,270,360)?(W.iX+=l*(W.I-W.I*ZC.EH(d.BR.A9))/2,W.iY-=l*W.I*ZC.EN(d.BR.A9)/2):ZC.DR(d.BR.A9,90,270)&&(W.iX+=l*(W.I+W.I*ZC.EH(d.BR.A9))/2,W.iY+=l*W.I*ZC.EN(d.BR.A9)/2)}var r=d.UR(W,e,{items:ne,lcoords:le,lstep:M,tdim:ie,mdim:ae,dim:"w",html:re});ie=r.tdim,ae=r.mdim,d.GV++}}}}class VF extends A02{constructor(e){super(e),this.CP=!0}parse(){super.parse()}GZ(){var e=this;e.A1===e.W?e.AC=e.I-e.AA-e.BV:e.AC=(e.I-e.AA-e.BV)/(e.A1-e.W+(e.DQ?1:0))}HC(e){super.HC(e),this.GZ()}zoomTo(e,t){super.zoomTo(e,t),this.GZ()}clear(){}build(){super.build()}L1(e,t){var i,a=this;i=a.AW?(a.iX+a.I-a.AA-e)/(a.I-a.AA-a.BV):(e-a.iX-a.AA)/(a.I-a.AA-a.BV);var n=a.B3+ZC._f_((a.BK-a.B3)*i);return"log"===a.C6&&t&&(n=Math.pow(a.E4,n)),n}AN(e){var t=this,i=t.BK-t.B3,a=0===i?0:(t.I-t.AA-t.BV)/i;return"log"===t.C6&&(e=0===e?t.FX:ZC.G6(e,t.E4)),t.AW?t.iX+t.I-t.AA-(e-t.B3)*a:t.iX+t.AA+(e-t.B3)*a}paint(){var e,t,i,a,n,l,r,o,s,C,A,Z,c,p,u,h,_,d,f,g=this;if(g.AM&&0!==g.V.length){super.paint(),"hbubble"!==g.A.AF&&"hscatter"!==g.A.AF||1!==g.V.length||(g.AA=g.I/2);var B=g.YC(),v=0,m=1,b=1,D={};for(t=0,i=g.A.BN.length;t<i;t++)g.A.BN[t].BG.substring(0,7)===ZC._[51]&&g.A.BN[t].B9===g.B9&&v++,g.A.BN[t].BG.substring(0,7)===ZC._[51]&&("default"===g.A.BN[t].B9?(D[g.A.BN[t].BG]=m,m++):(D[g.A.BN[t].BG]=b,b++));var K=D[g.BG],E="default"===g.B9;for(t=0,i=g.A.AY.A4.length;t<i;t++){var F=g.A.AY.A4[t],I=F.BT();if(-1!==ZC.AV(I,g.BG)){var x=g.A.BI(F.BT("k")[0]);x.AN(x.H9),F;break}}var y=8;null!==ZC._n_(g.IY.o[ZC._[21]])&&(y=ZC._i_(g.IY.o[ZC._[21]]));var X=4;null!==ZC._n_(g.IC.o[ZC._[21]])&&(X=ZC._i_(g.IC.o[ZC._[21]]));var G=ZC._i_(g.A.D[g.BG+"-distance"]||-1);g.VX&&(G=0),"default"===g.B9?(u=ZC._i_(g.A.P.DN/v),a=g.iY+g.F+(K-1)*u,-1!==G&&(a=g.iY+g.F+G)):(u=ZC._i_(g.A.P.E7/v),a=g.iY-(K-1)*u,-1!==G&&(a=g.iY-G));var Y=a;if(g.A.IH&&(g.A.IH.AM=!0,g.FX===g.B3&&g.H2===g.BK&&(g.A.IH.AM=!1),g.A.IH.AM&&0===g.A.IH.B0.BH&&"default"===g.B9&&(a+=g.A.IH.B0.F+g.AZ/2)),g.D.iY=a,g.AM&&g.TL){for(var w=Math.ceil((g.A1-g.W)/(g.EG-1)),M=Math.ceil((g.A1-g.W)/(g.M9-1)),L=g.iStepMultiplier,P=3;P>0;P--)g.iStepMultiplier>P&&g.A1-g.W<=P*g.iStepMultiplier&&(L=P);M*=L,w*=L;var O=0,R=g.AC*M/(g.FV+1);if(n=g.G.usc()?g.G.mc():ZC.AK(g.A.K+"-scales-ml-0-c"),l=ZC.Q.E9(n,g.G.AB),r=g.G.usc()?g.G.mc():ZC.AK(g.A.K+"-scales-bl-0-c"),o=ZC.Q.E9(r,g.G.AB),g.TL||g.Z3||null!==ZC._n_(g.A.o[g.BG])){if("inherit"===g.o["line-color"]&&-1!==B&&(g.B7=B),g.A.AJ["3d"])(c=ZC.DH.D9(g,g.A,g.iX-ZC.AO.E1,g.iX-ZC.AO.E1+g.I,a-ZC.AO.E2,a-ZC.AO.E2,-1,ZC.AO.FU+1,"x")).K=g.K+"-line",g.A.EY.true3d&&(g.A.EY[ZC._[28]]>0?c.MJ=[1===g.L?-100:100,1,1]:c.MJ=[1===g.L?100:-100,1,1]),g.A.CJ.add(c);else{s=[[g.iX,Y],[g.iX+g.I,Y]];var Q=g.K;g.K+="-line",ZC.CR.paint(l,g,s),g.K=Q}var T=[],k=0,N=0,H=[];if(g.TL||g.Z3){if(g.V.length>0&&g.D4.AM){var z=null===ZC._n_(g.D4.o["offset-start"])?0:ZC._i_(g.D4.o["offset-start"]),V=null===ZC._n_(g.D4.o["offset-end"])?0:ZC._i_(g.D4.o["offset-end"]);if(g.D4.o.items&&g.D4.o.items.length>0&&!g.A.AJ["3d"])for(g.GV=0,_=new I2(g),t=g.W;t<g.A1+(g.DQ?1:0);t++)g.K9=t,t%M==0&&(C=t-g.W,h=g.GV%g.D4.o.items.length,_.append(g.D4.o.items[h]),_.K=g.K+"-guide-"+t,_.Z=r,_.parse(),A="log"===g.C6?g.AN(g.V[t]):g.AN(g.V[t])-(g.AW?g.AC*M:0),_.iX=A,_.iY=g.iY+z,_.I=g.AC*M,_.F=g.F-z-V,_.paint(),g.GV++);if(g.D4.AZ>0)for(g.GV=0,t=g.W;t<=g.A1+(g.DQ?1:0);t++)if(g.K9=t,t===g.W||t===g.A1||t%M==0){(g.D4.E5.length>0||t===g.W||"log"===g.C6)&&((Z=new D0(g)).Z=Z.C7=r,"log"===g.C6?ZC.AQ._int_(ZC.G6(g.V[t],g.E4))?Z.copy(g.D4):Z.copy(g.G5):Z.copy(g.D4),Z.J2=oe,Z.DC()&&Z.parse()),s=[],C=t-g.W;var J=g.iY+z,S=g.F-z-V;if(A=(g.C6,g.AN(g.V[t])),Z.AM)if(g.A.AJ["3d"]){var W=new D0(g);W.copy(Z),null!==ZC._n_(g.o["scale-z"])&&null!==ZC._n_(e=g.o["scale-z"].guide)&&(W.append(e),W.parse()),W.A0=W.AE=W.B7,c=ZC.DH.D9(W,g.A,A-ZC.AO.E1-W.AZ/2,A-ZC.AO.E1+W.AZ/2,a-ZC.AO.E2,a-ZC.AO.E2,0,ZC.AO.FU,"z"),g.A.CJ.add(c),Z.A0=Z.AE=Z.B7,(c=ZC.DH.D9(Z,g.A,A-ZC.AO.E1-Z.AZ/2,A-ZC.AO.E1+Z.AZ/2,J-ZC.AO.E2,J-ZC.AO.E2+S,ZC.AO.FU+2,ZC.AO.FU+2,"y")).K=g.K+"-guide-"+t,g.A.CJ.add(c)}else s.push([A,J],[A,J+S]),Z.K=g.K+"-guide-"+t,ZC.CR.paint(o,Z,s);g.GV++}}if(g.V.length>0&&g.G5.AM&&R>2&&!g.A.AJ["3d"]){if(g.G5.o.items&&g.G5.o.items.length>0)for(_=new I2(g),t=g.W;t<g.A1+(g.DQ?1:0);t++)if(g.K9=t,t%M==0)for(C=t-g.W,g.GV=0,p=0;p<=g.FV;p++)h=g.GV%g.G5.o.items.length,_.append(g.G5.o.items[h]),_.K=g.K+"-guide-"+t+"-"+p,_.Z=g.G.usc()?g.G.mc():ZC.AK(g.A.K+"-scales-bl-0-c"),_.parse(),A=g.AW?g.iX+g.I-g.AA-C*g.AC-(p+1)*R:g.iX+g.AA+C*g.AC+p*R,_.iX=A,_.iY=g.iY,_.I=R,_.F=g.F,_.paint(),g.GV++;if(g.G5.AZ>0&&"log"!==g.C6)for(t=g.W;t<g.A1+(g.DQ?1:0);t++)if(g.K9=t,t===g.W||t===g.A1||t%M==0)for(C=t-g.W,g.GV=0,p=1;p<=g.FV;p++)s=[],(Z=new D0(g)).copy(g.G5),Z.J2=oe,Z.DC()&&Z.parse(),A="log"===g.C6?g.AN(g.V[t]+p*(g.V[t+1]-g.V[t])/(g.FV+1)):g.AN(g.V[t]+p*w*(g.V[t+1]-g.V[t])/(g.FV+1)),ZC.DR(A,g.iX,g.iX+g.I)&&(s.push([A,g.iY],[A,g.iY+g.F]),Z.AM&&(Z.K=g.K+"-minor-guide-"+p,ZC.CR.paint(o,Z,s))),g.GV++}var U,j,q;if(g.TM(o,B),g.V.length>0&&g.IY.AM&&(!g.A.AJ["3d"]||!g.A.EY.true3d)){switch(g.IY.o[ZC._[7]]){case"inner":break;case"outer":O+=y;break;default:O+=y/2}for(g.GV=0,d=ZC.AV(g.V,0),t=g.W;t<=g.A1+(g.DQ?1:0);t++){g.K9=t;var $=-1;if((t===g.W||t===g.A1||t%M==0||ZC._b_(g.o["show-zero"])&&t===d)&&(s=[],C=t-g.W,(g.IY.E5.length>0||t===g.W||"log"===g.C6)&&(Z=new D0(g),"log"===g.C6?ZC.AQ._int_(ZC.G6(g.V[t],g.E4))?Z.copy(g.IY):(Z.copy(g.IC),$=y,y=X):Z.copy(g.IY),"inherit"===g.IY.o["line-color"]&&-1!==B&&(Z.B7=B),Z.J2=oe,Z.DC()&&Z.parse()),A=(g.C6,g.AN(g.V[t])),ZC.DR(A,g.A.P.iX,g.A.P.iX+g.A.P.I))){switch(Z.o[ZC._[7]]){case"inner":s.push([A,a-(E?y:-y)],[A,a]);break;case"outer":s.push([A,a],[A,a+(E?y:-y)]);break;default:s.push([A,a+y/2],[A,a-y/2])}if(-1!==$&&(y=$,$=-1),Z.AM){for(j=ZC._i_(Z.o["offset-x"]||"0"),q=ZC._i_(Z.o["offset-y"]||"0"),U=0;U<s.length;U++)s[U][0]+=j,s[U][1]+=q;Z.K=g.K+"-tick-"+t,ZC.CR.paint(l,Z,s)}g.GV++}}}if(g.V.length>0&&g.IC.AM&&g.FV>0&&R>5&&!g.A.AJ["3d"]&&"log"!==g.C6)for(t=g.W;t<g.A1+(g.DQ?1:0);t++)if(g.K9=t,t===g.W||t===g.A1||t%M==0)for(C=t-g.W,g.GV=0,p=1;p<=g.FV;p++){if(s=[],(Z=new D0(g)).copy(g.IC),"inherit"===g.IC.o["line-color"]&&-1!==B&&(Z.B7=B),Z.J2=oe,Z.DC()&&Z.parse(),A="log"===g.C6?g.AN(g.V[t]+p*(g.V[t+1]-g.V[t])/(g.FV+1)):g.AN(g.V[t]+p*w*(g.V[t+1]-g.V[t])/(g.FV+1)),ZC.DR(A,g.iX,g.iX+g.I)){switch(Z.o[ZC._[7]]){case"inner":s.push([A,a-(E?X:-X)],[A,a]);break;default:s.push([A,a],[A,a+(E?X:-X)]);break;case"cross":s.push([A,a+X/2],[A,a-X/2])}if(Z.AM){for(j=ZC._i_(Z.o["offset-x"]||"0"),q=ZC._i_(Z.o["offset-y"]||"0"),U=0;U<s.length;U++)s[U][0]+=j,s[U][1]+=q;Z.K=g.K+"-minor-tick-"+t,ZC.CR.paint(l,Z,s)}}g.GV++}g.VV();var ee=null,te=g.CH,ie=g.DM,ae=function(e){var t;if(g.K9=e,C=e-g.W,(g.BR.E5.length>0||e===g.W||!f||g.BR.HX)&&(f=new DT(g)),f.copy(g.BR),f.GO=g.K+"-item "+g.A.K+"-scale-item zc-scale-item",f.K=g.A.K+"-"+g.BG.replace(/\-/g,"_")+"-item_"+e,g.CH=te,g.DM=ie,g.WA(oe),t=("piano"===g.A.AF||g.QE)&&g.BY.length?g.FC(e+g.B3):g.FC(e),g.BR.HX&&g.GN(g.BR,f,null,{index:e,cnt:C,text:t},g.BR.MR),null===ZC._n_(g.M3)||-1!==ZC.AV(g.M3,t)){switch(f.AT=t,f.Z=f.C7=g.G.usc()?g.G.mc():ZC.AK(g.A.K+"-scales-ml-0-c"),f.IU=g.G.usc()?ZC.AK(g.G.K+"-main"):ZC.AK(g.G.K+"-text"),f.parse(),"inherit"!==g.BR.o["font-color"]&&"inherit"!==g.BR.o.color||-1===B||(f.C1=B),f.J2=oe,f.E5=g.BR.E5,f.DC()&&f.parse(),f.o[ZC._[7]]){case"inner":f.iY=E?a-f.KG-y:a+y;break;default:f.iY=E?a+y:a-f.KG-y}if(g.C6,f.iX=g.AN(g.V[e])-f.I/2,ee=g.MB(f,ee,"h"),g.BR.o["auto-align"]&&g.BR.A9%180!=0){var i=ZC.DR(g.BR.A9,0,180)?E?1:-1:1===E?-1:1;f.iX+=i*f.I*ZC.EH(g.BR.A9)/2,f.iY+=i*(f.I*ZC.EN(g.BR.A9)/2-f.F*ZC.EN(g.BR.A9)/2)}if(ZC.DR(f.iX+f.I/2,g.A.P.iX,g.A.P.iX+g.A.P.I)){var n=g.UR(f,e,{items:0,lcoords:T,lstep:w,tdim:k,mdim:N,dim:"h",html:H});k=n.tdim,N=n.mdim,g.GV++}}};if(g.V.length>0&&g.BR.AM)if("log"===g.C6){var ne=[];for(t=g.W;t<=g.A1;t++)ZC.AQ._int_(ZC.G6(g.V[t],g.E4))&&(g.GV=t,ae(t),ne.push(t));for(t=g.W;t<=g.A1;t++)-1===ZC.AV(ne,t)&&(g.GV=t,ae(t))}else for(g.GV=0,ae(g.W),g.GV=g.A1-g.W,ae(g.A1),-1!==(d=ZC.AV(g.V,0))&&ZC._b_(g.o["show-zero"])&&(g.GV=d,ae(d)),g.GV=1,t=g.W+1;t<g.A1;t++)t%w==0&&ae(t)}if(g.M.AM&&g.M.AT&&""!==g.M.AT){(f=new DT(g)).copy(g.M),f.K=g.A.K+"-"+g.BG.replace(/\-/g,"_")+"-item_title",f.GO=g.K+"-label "+g.A.K+"-scale-label zc-scale-label",f.AT=g.M.AT,f.Z=g.G.usc()?g.G.mc():ZC.AK(g.A.K+"-scales-ml-0-c"),f.IU=g.G.usc()?ZC.AK(g.G.K+"-main"):ZC.AK(g.G.K+"-text"),f.parse(),"inherit"!==g.M.o["font-color"]&&"inherit"!==g.M.o.color||-1===B||(f.C1=B);var le=g.iX+(g.AW?g.BV:g.AA),re=g.I-g.AA-g.BV;switch("chart"===f.o["center-point"]&&(le=g.A.iX,re=g.A.I),f.OI){case"left":f.iX=le;break;case"center":f.iX=le+re/2-f.I/2;break;case"right":f.iX=le+re-f.I}f.iY=E?a+O+N:a-N-f.F-O,g.M.iX=f.iX,g.M.iY=f.iY,f.AM&&(g.MB(f,null,"h"),f.paint(),f.EC(),null===ZC._n_(f.o.tooltip)&&f.KD||H.push(ZC.AP.OG(g.A.K,f)))}H.length>0&&ZC.AK(g.A.A.K+"-map")&&(ZC.AK(g.A.A.K+"-map").innerHTML+=H.join(""))}}}function oe(e){return e=(e=(e=(e=(e=e.replace(/%scale-last-position/g,g.A1-g.W)).replace(/(%c)|(%scale-position)/g,g.GV)).replace(/(%i)|(%scale-index)/g,g.K9)).replace(/(%v)|(%scale-value)/g,null!==ZC._n_(g.V[g.K9])?g.V[g.K9]:"")).replace(/(%l)|(%scale-label)/g,null!==ZC._n_(g.BY[g.K9])?g.BY[g.K9]:"")}}}class YL extends A4H{constructor(e){super(e);var t=this;t.NQ="",t.KY=1,t.H3=1,t.GM=0,t.GG=0,t.JT=.6}parse(){var e=this;super.parse(),e.iX+=e.DV,e.iY+=e.E7,e.I-=e.DV+e.E6,e.F-=e.E7+e.DN,e.YX("layout","NQ"),null!==ZC._n_(e.o["size-factor"])&&(e.JT=ZC._f_(ZC._p_(e.o["size-factor"])))}HC(e){var t=this;super.HC(e),0===t.V.length&&(t.V=[""]);var i=ZC.AQ.A2X(t.NQ,t.V.length,!1);t.KY=i[0],t.H3=i[1],t.GM=t.I/t.H3,t.GG=t.F/t.KY}WX(){var e=this;super.WX(),e.GM=e.I/e.H3,e.GG=e.F/e.KY}clear(){}build(){super.build()}paint(){var e,t,i,a,n,l=this;if(l.AM){if(super.paint(),e=ZC.Q.E9(l.G.usc()?l.G.K+"-main-c":l.A.K+"-scales-ml-0-c",l.G.AB),t=ZC.Q.E9(l.G.usc()?l.G.K+"-main-c":l.A.K+"-scales-bl-0-c",l.G.AB),(i=[]).push([l.iX,l.iY],[l.iX+l.I,l.iY],[l.iX+l.I,l.iY+l.F],[l.iX,l.iY+l.F],[l.iX,l.iY]),ZC.CR.paint(e,l,i),l.D4.AM){if(l.D4.o.items&&l.D4.o.items.length>0)for(a=0,n=l.V.length;a<n;a++){var r=a%l.H3,o=Math.floor(a/l.H3),s=new I2(l),C=a%l.D4.o.items.length;s.o=l.D4.o.items[C],s.K=l.K+"-guide-"+a,s.Z=l.G.usc()?l.G.mc():ZC.AK(l.A.K+"-scales-bl-0-c"),s.parse(),s.iX=l.iX+r*l.GM,s.iY=l.iY+o*l.GG,s.I=l.GM,s.F=l.GG,s.paint()}if(l.D4.AZ>0){for(i=[],a=0;a<=l.H3;a++)i.push([l.iX+a*l.GM,l.iY],[l.iX+a*l.GM,l.iY+l.F],null);for(a=0;a<=l.KY;a++)i.push([l.iX,l.iY+a*l.GG],[l.iX+l.I,l.iY+a*l.GG],null);ZC.CR.paint(t,l.D4,i)}}var A,Z=[];if(l.BR.AM){for(a=0,n=l.V.length;a<n;a++)c(a);Z.length>0&&ZC.AK(l.A.A.K+"-map")&&(ZC.AK(l.A.A.K+"-map").innerHTML+=Z.join(""))}}function c(e){(l.BR.E5.length>0||0===e)&&(A=new DT(l)),A.copy(l.BR);var t=e%l.H3,i=Math.floor(e/l.H3);A.GO=l.K+"-item "+l.A.K+"-scale-item zc-scale-item",A.K=l.A.K+"-"+l.BG.replace(/\-/g,"_")+"-item_"+e;var a=l.FC(e);if((null===ZC._n_(l.M3)||-1!==ZC.AV(l.M3,a))&&(A.AT=a,A.Z=l.G.usc()?l.G.mc():ZC.AK(l.A.K+"-scales-ml-0-c"),A.parse(),A.J2=function(t){return t=(t=(t=t.replace(/%i/g,e)).replace(/%v/g,null!==ZC._n_(l.V[e])?l.V[e]:"")).replace(/%l/g,null!==ZC._n_(l.BY[e])?l.BY[e]:"")},A.E5=l.BR.E5,A.DC()&&A.parse(),A.AM)){var n="bottom";null!==ZC._n_(l.BR.o[ZC._[7]])&&(n=l.BR.o[ZC._[7]]);var r=l.iX+t*l.GM,o=l.iY+i*l.GG;switch(n){case"top-left":A.iX=r,A.iY=o;break;case"top-right":A.iX=r+l.GM-A.I,A.iY=o;break;case"bottom-left":A.iX=r,A.iY=o+l.GG-A.F;break;case"bottom-right":A.iX=r+l.GM-A.I,A.iY=o+l.GG-A.F;break;case"top":A.iX=r+l.GM/2-A.I/2,A.iY=o;break;case"right":A.iX=r+l.GM-A.I,A.iY=o+l.GG/2-A.F/2;break;case"left":A.iX=r,A.iY=o+l.GG/2-A.F/2;break;default:A.iX=r+l.GM/2-A.I/2,A.iY=o+l.GG-A.F}A.paint(),A.EC(),null===ZC._n_(l.o.tooltip)&&A.KD||Z.push(ZC.AP.OG(l.A.K,A))}}}}class A96 extends A4H{constructor(e){super(e);this.DG=0,this.EI=360}parse(){var e,t=this;super.parse(),null!==ZC._n_(e=t.o["ref-angle"])&&(t.DG=ZC._i_(e)%360),null!==ZC._n_(e=t.o.aperture)&&(t.EI=ZC._i_(e)%360,0===t.EI&&(t.EI=360))}}class ABO extends A02{constructor(e){super(e)}parse(){super.parse()}GZ(){}HC(e){super.HC(e),this.GZ()}clear(){super.clear()}build(){super.build()}paint(){super.paint()}}class A8M extends ABO{constructor(e){super(e);var t=this;t.DG=-90,t.EI=180,t.QL=null,t.J1=null,t.CV="circle"}parse(){var e,t=this;super.parse(),null!==ZC._n_(e=t.o["ref-angle"])&&(t.DG=ZC._i_(e)%360),null!==ZC._n_(e=t.o.aperture)&&(t.EI=ZC._i_(e)),null!==ZC._n_(e=t.o.center)&&(t.QL=new DW(t),t.QL.append(e),t.QL.parse()),null!==ZC._n_(e=t.o.ring)&&(t.J1=new DW(t),t.G.B8.load(t.J1.o,[t.A.AF+"."+t.BG+".ring"]),t.J1.append(e),t.J1.parse())}HC(e){super.HC(e)}clear(){}build(){super.build()}AN(e){var t=this,i=t.A.BI("scale"),a=i.iX+i.I/2,n=i.iY+i.F/2,l=t.A.BI("scale-"+t.L);l||(l=t.A.BI("scale"));var r=ZC.CX(l.GM/2,l.GG/2)*l.JT,o=t.BK-t.B3,s=t.EI/o;return ZC.AQ.BM(a,n,r,t.DG-t.EI/2+s*(e-t.B3))}H4(e){return this.AN(this.V[e])}paintMarker(e){var t,i=this;if(e.FA){var a,n=i.A.BI("scale-"+i.L);if(n||(n=i.A.BI("scale")),e.AM){var l=i.A.K+"-scales-"+("top"===e.B9?"f":"b")+"l-0-c";e.Z=e.C7=ZC.AK(i.G.usc()?n.G.K+"-main-c":l),a=ZC.Q.E9(e.Z,i.G.AB);var r=ZC.CX(n.GM/2,n.GG/2)*n.JT,o=ZC.IR(e.o["offset-start"]||"0");o>0&&o<1&&(o*=r);var s=ZC.IR(e.o["offset-end"]||"0");s>0&&s<1&&(s*=r),e.M&&(e.M.Z=i.G.usc()?i.G.mc():ZC.AK(i.A.K+"-scales-ml-0-c"),e.M.K=e.A.A.K+"-"+e.A.BG.replace(/\-/g,"_")+"-marker_"+e.L,e.M.GO=e.A.K+"-marker-label "+e.A.A.K+"-scale-marker-label zc-scale-marker-label");for(var C=0;C<n.V.length;C++){var A,Z=C%n.H3,c=Math.floor(C/n.H3),p=n.iX+Z*n.GM+n.GM/2+n.BL,u=n.iY+c*n.GG+n.GG/2+n.BH;switch(e.AF){case"line":if(e.FA.length>0){var h=i.DG-i.EI/2+i.EI*(e.FA[0]-i.B3)/(i.BK-i.B3);A=h;var _=[];_.push(ZC.AQ.BM(p,u,o,h)),_.push(ZC.AQ.BM(p,u,r-s,h)),2===_.length&&(ZC.CR.setup(a,e),ZC.CR.paint(a,e,_))}break;case"area":if(e.FA.length>1){var d=i.DG-i.EI/2+i.EI*(e.FA[0]-i.B3)/(i.BK-i.B3),f=i.DG-i.EI/2+i.EI*(e.FA[1]-i.B3)/(i.BK-i.B3);A=(d+f)/2;var g=new DW(e);g.Z=e.Z,g.append(e.o),g.append({size:r-s,slice:o,type:"pie","angle-start":d,"angle-end":f}),g.K=n.K+"-marker-"+e.L,g.iX=p,g.iY=u,g.parse(),g.paint()}}if(e.M){var B;null!==ZC._n_(t=e.M.o["offset-r"])?B=ZC._f_(ZC._p_(t)):B<1?B*=r-s-o:B=0;var v=ZC.AQ.BM(p,u,(r-s-o)/2+B,A);e.M.iX=v[0]-e.M.I/2,e.M.iY=v[1]-e.M.F/2,e.M.paint()}}}}}paint(){var e,t,i,a,n,l,r,o,s,C=this;if(C.AM&&0!==C.V.length){C.AW&&C.V.reverse(),e=ZC.Q.E9(C.G.usc()?C.G.K+"-main-c":C.A.K+"-scales-bl-0-c",C.G.AB);var A=ZC._i_(C.IY.o[ZC._[21]]||8),Z=ZC._i_(C.IC.o[ZC._[21]]||4),c=0,p=ZC.BQ(1,Math.ceil((C.A1-C.W)/(C.M9-1))),u=ZC.BQ(1,Math.ceil((C.A1-C.W)/(C.EG-1))),h=C.A.BI("scale-"+C.L);h||(h=C.A.BI("scale"));for(var _,d,f,g=ZC.CX(h.GM/2,h.GG/2)*h.JT,B=C.EI/(C.V.length-1),v=0;v<h.V.length;v++){var m=v%h.H3,b=Math.floor(v/h.H3),D=h.iX+m*h.GM+h.GM/2+h.BL,K=h.iY+b*h.GG+h.GG/2+h.BH,E=new DW(C);if(E.Z=C.G.usc()?C.G.mc():ZC.AK(C.A.K+"-scales-bl-0-c"),E.copy(C),E.K=C.K+"-"+v,E.iX=D,E.iY=K,E.AI=g-.5,E.DP=360===C.EI?"circle":"pie",E.B4=C.DG-C.EI/2+360,E.BJ=C.DG+C.EI/2+360,E.CM=0,E.parse(),E.paint(),C.D4.AM){if(C.D4.o.items&&C.D4.o.items.length>0)for(t=0;t<C.V.length-1;t++)E=new DW(C),r=t%C.D4.o.items.length,E.append(C.D4.o.items[r]),E.Z=C.G.usc()?C.G.mc():ZC.AK(C.A.K+"-scales-bl-0-c"),E.iX=D,E.iY=K,E.K=C.K+"-pie-"+t,E.o.type="pie",E.o[ZC._[21]]=g-C.BV,E.CM=C.AA,E.B4=C.DG-C.EI/2+t*B+360,E.BJ=C.DG-C.EI/2+(t+1)*B+360,E.parse(),E.paint();if(C.D4.AZ>0)for(t=0,i=C.V.length;t<i;t++)(_=new D0(C)).copy(C.D4),_.J2=G,_.E5=C.D4.E5,_.DC()&&_.parse(),(l=[]).push(ZC.AQ.BM(D,K,g-C.BV,C.DG-C.EI/2+t*B)),l.push(ZC.AQ.BM(D,K,C.AA,C.DG-C.EI/2+t*B)),ZC.CR.paint(e,_,l)}if(C.G5.AM&&C.G5.AZ>0&&C.FV>0)for(t=0,i=C.V.length;t<i-1;t++)for(o=C.DG-C.EI/2+t*B,d=B/(C.FV+1),f=1;f<=C.FV;f++)(_=new D0(C)).copy(C.G5),_.J2=G,_.E5=C.G5.E5,_.DC()&&_.parse(),(l=[]).push(ZC.AQ.BM(D,K,g-C.BV,C.DG-C.EI/2+t*B+f*d)),l.push(ZC.AQ.BM(D,K,C.AA,C.DG-C.EI/2+t*B+f*d)),ZC.CR.paint(e,_,l);if(C.VV(),C.G.Y0(),C.J1&&((n=new DW(C)).append(C.J1.o),n.Z=C.G.usc()?C.G.mc():ZC.AK(C.A.K+"-scales-bl-0-c"),n.K=C.K+"-ring",n.iX=D,n.iY=K,360!==C.EI?(n.o.type="pie",a=ZC._i_(n.o[ZC._[21]]),a=ZC.BQ(1,ZC.CX(a,g)),n.CM=g-a,n.o[ZC._[21]]=g,n.B4=C.DG-C.EI/2+360,n.BJ=C.DG+C.EI/2+360):(n.o.type="circle",a=ZC._i_(n.o[ZC._[21]]),a=ZC.BQ(1,ZC.CX(a,g)),n.o[ZC._[21]]=g),n.parse(),n.AM&&a+n.AU>0&&(n.paint(),360===C.EI&&(n.K=C.K+"-ring-inner",n.o[ZC._[21]]=g-a,n.parse(),n.paint())),C.J1.o.items&&C.J1.o.items.length>0||C.J1.o.rules))for(t=0;t<C.V.length-1;t++)(n=new DW(C)).append(C.J1.o),C.J1.o.items&&(r=t%C.J1.o.items.length,n.append(C.J1.o.items[r])),n.Z=C.G.usc()?C.G.mc():ZC.AK(C.A.K+"-scales-bl-0-c"),n.K=C.K+"-ring-"+t,n.iX=D,n.iY=K,n.o.type="pie",a=ZC._i_(n.o[ZC._[21]]),a=ZC.BQ(0,ZC.CX(a,g)),n.CM=g-a,n.o[ZC._[21]]=g,n.B4=C.DG-C.EI/2+t*B+360,n.BJ=C.DG-C.EI/2+(t+1)*B+360+.25,n.parse(),n.J2=G,n.E5=C.J1.E5,n.DC()&&n.parse(),n.AM&&a+n.AU>0&&n.paint();if(C.IY.AM){switch(C.IY.o[ZC._[7]]){case"outer":c+=A;break;default:c+=A/2}for(l=[],t=0,i=C.V.length;t<i;t++)if(t===C.W||t===C.A1||t%p==0){switch(o=C.DG-C.EI/2+t*B,s=[0,0],C.IY.o[ZC._[7]]){case"inner":s=[-A,0];break;case"outer":s=[0,A];break;default:s=[-A/2,A/2]}l.push(ZC.AQ.BM(D,K,g+s[0],o),ZC.AQ.BM(D,K,g+s[1],o),null)}ZC.CR.paint(e,C.IY,l)}if(C.IC.AM&&C.FV>0){for(l=[],t=0,i=C.V.length;t<i-1;t++)for(o=C.DG-C.EI/2+t*B,d=B/(C.FV+1),f=1;f<=C.FV;f++){switch(s=[0,0],C.IC.o[ZC._[7]]){case"inner":s=[-Z,0];break;case"outer":s=[0,Z];break;default:s=[-Z/2,Z/2]}l.push(ZC.AQ.BM(D,K,g+s[0],o+f*d),ZC.AQ.BM(D,K,g+s[1],o+f*d),null)}ZC.CR.paint(e,C.IC,l)}if(C.BR.AM){var F=[];for(t=0,i=C.V.length;t<i;t++)if(t===C.W||t===C.A1||t%u==0){var I=new DT(C);I.append(C.BR.o),I.GO=C.K+"-item "+C.A.K+"-scale-item zc-scale-item",I.K=C.A.K+"-"+C.BG.replace(/\-/g,"_")+"-item_"+v+"_"+t;var x=C.FC(t);if(I.AT=x,I.Z=I.C7=C.G.usc()?C.G.mc():ZC.AK(C.A.K+"-scales-ml-0-c"),I.parse(),"auto"===I.o.angle&&(I.A9=C.DG-C.EI/2+t*B+90),I.J2=G,I.E5=C.BR.E5,I.DC()&&I.parse(),I.AM){I.F=I.KG;var y,X=1.15*Math.sqrt(I.I*I.I/4+I.F*I.F/4);switch(C.BR.o[ZC._[7]]){case"inner":y=ZC.AQ.BM(D,K,g+C.BR.DS-X-5+c,C.DG-C.EI/2+t*B);break;default:y=ZC.AQ.BM(D,K,g+C.BR.DS+X+c,C.DG-C.EI/2+t*B)}I.iX=y[0]-I.I/2,I.iY=y[1]-I.F/2,I.paint(),I.EC(),null===ZC._n_(C.o.tooltip)&&I.KD||(null!==ZC._n_(C.o.tooltip)&&(C.o.tooltip.text=C.o.tooltip.text||"%scale-value"),F.push(ZC.AP.OG(C.A.K,I)))}}F.length>0&&ZC.AK(C.A.A.K+"-map")&&(ZC.AK(C.A.A.K+"-map").innerHTML+=F.join(""))}}}function G(e){return e=(e=(e=(e=e.replace(/%i/g,t)).replace(/%k/g,t)).replace(/%v/g,null!==ZC._n_(C.V[t])?C.V[t]:"")).replace(/%l/g,null!==ZC._n_(C.BY[t])?C.BY[t]:"")}}paint_(){var e=this,t=e.A.BI("scale-"+e.L);t||(t=e.A.BI("scale"));for(var i=0;i<t.V.length;i++){var a=i%t.H3,n=Math.floor(i/t.H3),l=t.iX+a*t.GM+t.GM/2+t.BL,r=t.iY+n*t.GG+t.GG/2+t.BH;if(e.QL){var o=new DW(e);o.append(e.QL.o),o.Z=o.C7=e.G.usc()?e.G.mc("top"):ZC.AK(e.A.K+"-scales-ml-0-c"),o.K=e.K+"-"+i+"-center",o.iX=l,o.iY=r,o.o.type=o.o.type||"circle",o.parse(),o.AM&&o.paint()}}}}class A8Q extends A96{constructor(e){super(e);var t=this;t.DG=0,t.CV="star",t.DQ=!1}parse(){super.parse(),this.assign_a([["aspect","CV"],["ref-angle","DG","i"],["ranged","DQ","b"]])}T8(){var e=this,t=ZC.BQ(e.V.length,e.BY.length);e.EG=ZC.CX(30,t)}HC(e){super.HC(e)}clear(){}build(){super.build()}A4J(e,t,i){var a=this,n=a.A.BI("scale"),l=n.iX+n.I/2,r=n.iY+n.F/2,o=a.A.BI(ZC._[52]);if(i){var s=a.DG+a.EI*(e-a.B3)/(a.BK-a.B3);return ZC.AQ.BM(l,r,t+o.AA,s)}var C=a.EI/(a.V.length-(360===a.EI||a.DQ?0:1));return ZC.AQ.BM(l,r,t+o.AA,a.DG+e*C)}H4(e){var t=this.A.BI("scale"),i=ZC.CX(t.I/2,t.F/2)*t.JT;return this.A4J(e,i)}AN(e){var t=this,i=ZC.AV(t.V,e);-1===i&&(i=0);var a=t.A.BI("scale"),n=ZC.CX(a.I/2,a.F/2)*a.JT;return t.A4J(i,n)}paint(){var e,t,i,a,n,l,r,o,s=this;if(s.AM&&0!==s.V.length){super.paint();var C=ZC.BQ(1,Math.floor((s.A1-s.W)/(s.M9-1))),A=ZC.BQ(1,Math.floor((s.A1-s.W)/(s.EG-1)));e=ZC.Q.E9(s.G.usc()?s.G.K+"-main-c":s.A.K+"-scales-ml-0-c",s.G.AB),t=ZC.Q.E9(s.G.usc()?s.G.K+"-main-c":s.A.K+"-scales-bl-0-c",s.G.AB);var Z,c=ZC._i_(s.IY.o[ZC._[21]]||8),p=0,u=s.A.BI("scale"),h=ZC.CX(u.I/2,u.F/2)*u.JT,_=s.A.BI(ZC._[52]),d=u.iX+u.I/2,f=u.iY+u.F/2,g=s.EI/(s.V.length-(360===s.EI||s.DQ?0:1));if(s.D4.AM){if(s.D4.o.items&&s.D4.o.items.length>0){var B=0;for(i=0,a=s.V.length-(360===s.EI||s.DQ?0:1);i<a;i+=C){if(o=s.DG+i*g,"circle"===s.CV){var v=new DW(s);n=B%s.D4.o.items.length,v.append(s.D4.o.items[n]),v.Z=s.G.usc()?s.G.mc():ZC.AK(s.A.K+"-scales-bl-0-c"),v.iX=d,v.iY=f,v.o.type="pie",v.o[ZC._[21]]=h,v.CM=_.AA,v.B4=o,v.BJ=o+C*g,v.parse(),v.paint()}else{var m=new DW(s);n=B%s.D4.o.items.length,m.o=s.D4.o.items[n],m.Z=s.G.usc()?s.G.mc():ZC.AK(s.A.K+"-scales-bl-0-c"),m.AZ=0,m.AU=0,m.EW=0,m.GA=0,(l=[]).push(ZC.AQ.BM(d,f,_.AA,o),ZC.AQ.BM(d,f,h,o),ZC.AQ.BM(d,f,h,o+C*g),ZC.AQ.BM(d,f,_.AA,o+C*g)),m.E=l,m.parse();var b=s.A.P;m.CZ=[b.iX,b.iY,b.iX+b.I,b.iY+b.F],m.paint()}B++}}if(s.D4.AZ>0)for(i=0,a=s.V.length+(s.DQ?1:0);i<a;i+=C)o=s.DG+i*g,(r=new D0(s)).copy(s.D4),r.K=s.K+"-guide-"+i,r.J2=x,r.E5=s.D4.E5,r.DC()&&r.parse(),(l=[]).push(ZC.AQ.BM(d,f,h,o),ZC.AQ.BM(d,f,_.AA,o)),ZC.CR.paint(t,r,l)}if(s.IY.AM){switch(s.IY.o[ZC._[7]]){case"inner":break;case"outer":p+=c;break;default:p+=c/2}for(l=[],i=0,a=s.V.length+(s.DQ?1:0);i<a;i+=C){switch(o=s.DG+i*g,(r=new D0(s)).copy(s.IY),r.o[ZC._[7]]){case"inner":l=[ZC.AQ.BM(d,f,h-c,o),ZC.AQ.BM(d,f,h,o)];break;case"outer":l=[ZC.AQ.BM(d,f,h,o),ZC.AQ.BM(d,f,h+c,o)];break;default:l=[ZC.AQ.BM(d,f,h-c/2,o),ZC.AQ.BM(d,f,h+c/2,o)]}for(var D=ZC._i_(r.o["offset-x"]||"0"),K=ZC._i_(r.o["offset-y"]||"0"),E=0;E<l.length;E++)l[E]&&(l[E][0]+=D,l[E][1]+=K);r.K=s.K+"-tick-"+i,ZC.CR.paint(e,r,l)}}var F,I=[];if(s.BR.AM){for(i=0,a=s.V.length;i<a;i+=A)y(i);I.length>0&&ZC.AK(s.A.A.K+"-map")&&(ZC.AK(s.A.A.K+"-map").innerHTML+=I.join(""))}}function x(e){return e=(e=(e=e.replace(/(%i)|(%scale-index)/g,i)).replace(/(%v)|(%scale-value)/g,null!==ZC._n_(s.V[i])?s.V[i]:"")).replace(/(%l)|(%scale-label)/g,null!==ZC._n_(s.BY[i])?s.BY[i]:"")}function y(e){(s.BR.E5.length>0||0===e)&&(Z=new DT(s)),Z.copy(s.BR),Z.GO=s.K+"-item "+s.A.K+"-scale-item zc-scale-item",Z.K=s.A.K+"-"+s.BG.replace(/\-/g,"_")+"-item_"+e;var t=s.FC(e);if(null===ZC._n_(s.M3)||-1!==ZC.AV(s.M3,t)){Z.AT=t,Z.Z=Z.C7=s.G.usc()?s.G.mc():ZC.AK(s.A.K+"-scales-ml-0-c"),Z.parse(),Z.J2=function(t){return t=(t=(t=t.replace(/(%i)|(%scale-index)/g,e)).replace(/(%v)|(%scale-value)/g,null!==ZC._n_(s.V[e])?s.V[e]:"")).replace(/(%l)|(%scale-label)/g,null!==ZC._n_(s.BY[e])?s.BY[e]:"")},Z.E5=s.BR.E5,Z.DC()&&Z.parse();var i=ZC.IR(Z.DS,!0);if(i>-1&&i<1&&(i*=h),o=s.DG+e*g+(s.DQ?g/2:0),s.BR.o["auto-align"]){var a=1.25;1-ZC._a_(ZC.EH(o))>.7&&(a=2.5*(1-ZC._a_(ZC.EH(o))));var n=(1-ZC._a_(ZC.EH(o)))*Z.DF*a;F=ZC.AQ.BM(d,f,h+i+p+n,o),ZC.EH(o)>0?(Z.iX=F[0],Z.iY=F[1]-Z.F/2):(Z.iX=F[0]-Z.I,Z.iY=F[1]-Z.F/2)}else s.BR.o["auto-rotate"]?(F=ZC.AQ.BM(d,f,h+i+p+Z.F/2,o),Z.iX=F[0]-Z.I/2,Z.iY=F[1]-Z.F/2,Z.A9=o+90):(F=ZC.AQ.BM(d,f,h+i+p+ZC._a_(10*ZC.EN(o))+ZC._a_(Z.I/2*ZC.EH(o)),o),Z.iX=F[0]-Z.I/2,Z.iY=F[1]-Z.F/2);Z.AM&&(Z.paint(),Z.EC(),null===ZC._n_(s.o.tooltip)&&Z.KD||(null!==ZC._n_(s.o.tooltip)&&(s.o.tooltip.text=s.o.tooltip.text||"%scale-value"),I.push(ZC.AP.OG(s.A.K,Z))))}}}}class A8P extends A02{constructor(e){super(e)}HU(e){super.parse()}GZ(){var e=this,t=e.A.BI("scale"),i=ZC.CX(t.I/2,t.F/2)*t.JT;e.AC=(i-e.AA-e.BV)/(e.A1-e.W)}HC(e){super.HC(e),this.GZ()}T8(){var e=this,t=e.A.BI("scale"),i=ZC.CX(t.I/2,t.F/2)*t.JT;e.EG=ZC.BQ(2,ZC._i_((i-e.AA-e.BV)/20))}ST(e){var t=this,i=t.A.BI("scale"),a=ZC.CX(i.I/2,i.F/2)*i.JT,n=t.BK-t.B3,l=(a-t.AA-t.BV)/n;return(e-t.B3)*l}AN(e){var t=this,i=t.ST(e),a=t.A.BI("scale-k"),n=t.A.BI("scale"),l=n.iX+n.I/2+n.BL,r=n.iY+n.F/2+n.BH;return ZC.AQ.BM(l,r,i,a.DG)}clear(){}build(){super.build()}paint(){var e,t,i,a,n,l,r,o=this;if(o.AM&&0!==o.V.length){super.paint(),e=ZC.Q.E9(o.G.usc()?o.G.K+"-main-c":o.A.K+"-scales-ml-0-c",o.G.AB),t=ZC.Q.E9(o.G.usc()?o.G.K+"-main-c":o.A.K+"-scales-bl-0-c",o.G.AB);var s,C,A=o.A.BI("scale-k"),Z=ZC._i_(o.IY.o[ZC._[21]]||8),c=Math.ceil((o.A1-o.W)/(o.EG-1)),p=Math.ceil((o.A1-o.W)/(o.M9-1)),u=o.A.BI("scale"),h=ZC.CX(u.I/2,u.F/2)*u.JT,_=u.iX+u.I/2+u.BL,d=u.iY+u.F/2+u.BH,f=A.EI/(A.V.length-(360===A.EI||A.DQ?0:1));if(o.D4.AM){if(o.D4.o.items&&o.D4.o.items.length>0)for(i=0,a=o.V.length;i<a-1;i++){var g=i%o.D4.o.items.length;if("circle"===A.CV){var B=new DW(o);B.Z=o.G.usc()?o.G.mc():ZC.AK(o.A.K+"-scales-bl-0-c"),B.append(o.D4.o.items[g]),B.o.type="pie",B.o[ZC._[21]]=o.AA+(i+1)*o.AC,B.iX=_,B.iY=d,B.CM=o.AA+i*o.AC,360===A.EI?(B.B4=0,B.BJ=360):(B.B4=A.DG,B.BJ=A.DG+A.EI),B.parse(),B.paint()}else{var v=new DW(o);for(v.append(o.D4.o.items[g]),v.Z=o.G.usc()?o.G.mc():ZC.AK(o.A.K+"-scales-bl-0-c"),r=[],n=0,l=A.V.length;n<l;n++)r.push(ZC.AQ.BM(_,d,o.AA+i*o.AC,A.DG+n*f));for(360===A.EI&&r.push(ZC.AQ.BM(_,d,o.AA+i*o.AC,A.DG),ZC.AQ.BM(_,d,o.AA+(i+1)*o.AC,A.DG)),n=A.V.length-1;n>=0;n--)r.push(ZC.AQ.BM(_,d,o.AA+(i+1)*o.AC,A.DG+n*f));v.E=r,v.parse(),v.AZ=0,v.AU=0,v.EW=0,v.GA=0;var m=o.A.P;v.CZ=[m.iX,m.iY,m.iX+m.I,m.iY+m.F],v.paint()}}if(o.D4.AZ>0)for(i=0,a=o.V.length;i<a;i++)if(i===o.W||i===o.A1||i%p==0)if("circle"===A.CV){var b=new DW(o);b.Z=o.G.usc()?o.G.mc():ZC.AK(o.A.K+"-scales-bl-0-c"),b.append(o.D4.o);var D=A.EI;360===D&&(D=359),b.append({type:"arc",size:o.AA+i*o.AC,angleStart:A.DG-.25,angleEnd:A.DG+D+.25}),b.K=o.K+"-guide-"+i,b.iX=_,b.iY=d,b.parse(),b.J2=y,b.E5=o.D4.E5,b.DC()&&b.parse(),b.paint()}else{var K=new D0(o);for(K.copy(o.D4),K.K=o.K+"-guide-"+i,K.J2=y,K.E5=o.D4.E5,K.DC()&&K.parse(),r=[],n=0,l=A.V.length-(360===A.EI||A.DQ?0:1);n<l;n++)r.push(ZC.AQ.BM(_,d,o.AA+i*o.AC,A.DG+n*f),ZC.AQ.BM(_,d,o.AA+i*o.AC,A.DG+(n+1)*f));ZC.CR.paint(t,K,r)}}if(o.PB.AM&&o.PB.AZ>0&&((r=[]).push(ZC.AQ.BM(_,d,o.AA,A.DG),ZC.AQ.BM(_,d,h-o.BV,A.DG)),ZC.CR.paint(e,o.PB,r)),o.IY.AM){switch(o.IY.o[ZC._[7]]){case"inner":break;case"outer":Z;break;default:Z/2}for(r=[],i=0,a=o.V.length;i<a;i++)if(i===o.W||i===o.A1||i%p==0){var E=ZC.AQ.BM(_,d,o.AA+i*o.AC,A.DG);switch(o.IY.o[ZC._[7]]){case"inner":r.push([E[0],E[1]]),A.DG%180==0?r.push([E[0],E[1]-Z]):r.push([E[0]-Z,E[1]]),r.push(null);break;case"outer":r.push([E[0],E[1]]),A.DG%180==0?r.push([E[0],E[1]+Z]):r.push([E[0]+Z,E[1]]),r.push(null);break;default:A.DG%180==0?r.push([E[0],E[1]-Z/2],[E[0],E[1]+Z/2]):r.push([E[0]-Z/2,E[1]],[E[0]+Z/2,E[1]]),r.push(null)}}for(var F=ZC._i_(o.IY.o["offset-x"]||"0"),I=ZC._i_(o.IY.o["offset-y"]||"0"),x=0;x<r.length;x++)r[x]&&(r[x][0]+=F,r[x][1]+=I);ZC.CR.paint(e,o.IY,r)}if(C=[],o.V.length>0&&o.BR.AM)for(o.GV=0,G(o.W),o.GV=o.A1-o.W,G(o.A1),o.GV=1,i=o.W+1;i<o.A1;i++)i%c==0&&G(i);C.length>0&&ZC.AK(o.A.A.K+"-map")&&(ZC.AK(o.A.A.K+"-map").innerHTML+=C.join(""))}function y(e){return e=(e=(e=e.replace(/(%i)|(%scale-index)/g,i)).replace(/(%v)|(%scale-value)/g,null!==ZC._n_(o.V[i])?o.V[i]:"")).replace(/(%l)|(%scale-label)/g,null!==ZC._n_(o.BY[i])?o.BY[i]:"")}function X(e){return e=(e=(e=(e=e.replace(/(%c)|(%scale-position)/g,o.GV)).replace(/(%i)|(%scale-index)/g,o.K9)).replace(/(%v)|(%scale-value)/g,null!==ZC._n_(o.V[o.K9])?o.V[o.K9]:"")).replace(/(%l)|(%scale-label)/g,null!==ZC._n_(o.BY[o.K9])?o.BY[o.K9]:"")}function G(e){o.K9=e,(s=new DT(o)).copy(o.BR),s.K=o.A.K+"-"+o.BG.replace(/\-/g,"_")+"-item_"+e,s.GO=o.K+"-item "+o.A.K+"-scale-item zc-scale-item";var t=o.FC(e);if(s.AT=t,null===ZC._n_(o.M3)||-1!==ZC.AV(o.M3,t)){s.Z=s.C7=o.G.usc()?o.G.mc():ZC.AK(o.A.K+"-scales-fl-0-c"),s.parse(),s.J2=X,s.DC()&&s.parse();var i=ZC.AQ.BM(_,d,o.AA+e*o.AC,A.DG);switch(s.F=s.KG,s.I=s.NU,A.DG%180==0?(s.iX=i[0]-s.I/2,s.iY=i[1]):(s.iX=i[0],s.iY=i[1]-s.F/2),o.IY.o[ZC._[7]]){case"inner":break;case"outer":A.DG%180==0?s.iY+=Z:s.iX+=Z;break;default:A.DG%180==0?s.iY+=Z/2:s.iX+=Z/2}s.AM&&(s.paint(),s.EC(),null===ZC._n_(o.o.tooltip)&&s.KD||(null!==ZC._n_(o.o.tooltip)&&(o.o.tooltip.text=o.o.tooltip.text||"%scale-value"),C.push(ZC.AP.OG(o.A.K,s))))}}}}class A9B extends DW{constructor(e){super(e);var t=this;t.C5=.95,t.L=0,t.AF=null,t.M=null,t.FA=null,t.A6M=!1,t.B9="bottom",t.AA=0,t.BV=0,t.MQ="normal",t.OD="normal",t.KF=[5,5],t.A0R=[0,0],t.Z9=""}parse(){super.parse();var e,t=this;t.assign_a([["type","AF"],["value-range","A6M","b"],["offset-start","AA","i"],["offset-end","BV","i"],[ZC._[7],"B9"],["pair-scale","Z9"],["label-placement","MQ"],["label-alignment","OD"],["range","FA"]]),null===ZC._n_(t.o.alpha)&&(t.o.alpha="area"===t.AF?.25:.95),null!==ZC._n_(e=t.o["label-tolerance"])&&("object"==typeof e&&e.length?(t.KF[0]=ZC._i_(e[0]||"5"),t.KF[1]=ZC._i_(e[1]||"5")):t.KF[0]=t.KF[1]=ZC._i_(e||"5")),t.assign_a([["alpha","C5","f",0,1]]),null===ZC._n_(e=t.o.label)&&null===ZC._n_(t.o.text)||(t.M=new DT(t),t.A.A.A.B8.load(t.M.o,["("+t.A.AF+").SCALE.marker.label"]),null!==ZC._n_(t.o.text)&&t.M.append({text:t.o.text}),t.M.append(e),t.M.parse(),t.A0R=[t.M.BL,t.M.BH])}paint(){var e,t,i,a,n,l,r,o=this;if(o.FA)if(-1===o.A.BG.indexOf("scale-r")){if(o.AM){var s,C,A,Z,c=o.A,p=o.A.A.P.AU,u=c.A.K+"-scales-"+("top"===o.B9?"f":"b")+"l-0-c";o.Z=o.C7=ZC.AK(c.G.usc()?c.G.K+"-main-c":u),e=ZC.Q.E9(o.Z,c.G.AB),n=[];var h,_=0,d=0;o.BL>-1&&o.BL<1&&(o.BL=Math.ceil(o.BL*c.AC)),o.BH>-1&&o.BH<1&&(o.BH=Math.ceil(o.BH*c.AC)),o.M&&(o.M.Z=c.G.usc()?c.G.mc():ZC.AK(c.A.K+"-scales-ml-0-c"),o.M.K=o.A.A.K+"-"+o.A.BG.replace(/\-/g,"_")+"-marker_"+o.L,o.M.GO=o.A.K+"-marker-label "+o.A.A.K+"-scale-marker-label zc-scale-marker-label");var f=o.A.A,g=function(e,t){var i;return-1!==(t+"").indexOf("%")?(i=ZC._f_(t.replace("%","")),i="k"===e.AF?ZC._i_(i*(e.DU-e.DA)/100):i*(e.H2-e.FX)/100):i=t,o.A6M||"v"===e.AF?e.AN(i):e.H4(i)};if("poly"===o.AF){var B,v,m,b;for(f=o.A.A,"k"===c.AF?(B=c,v=""===o.Z9?f.BT("v")[0]:f.BI(o.Z9)||f.BT("v")[0]):"v"===c.AF&&(v=c,B=""===o.Z9?f.BT("k")[0]:f.BI(o.Z9)||f.BT("k")[0]),l=0,r=o.FA.length;l<r;l++)m=g(B,o.FA[l][0]),b=v.AN(o.FA[l][1]),n.push([m,b]),_+=m,d+=b;if(_/=n.length,d/=n.length,n.length>=3){if(n[0].join("/")!==n[n.length-1].join("/")&&n.push([n[0][0],n[0][1]]),c.A.AJ["3d"])for(c.A.NO(),t=0,i=n.length;t<i;t++)a=new CB(c.A,n[t][0]-ZC.AO.E1,n[t][1]-ZC.AO.E2,ZC.AO.FU),n[t][0]=a.EB[0],n[t][1]=a.EB[1];(h=new DW(o.A)).K=c.K+"-marker-"+o.L,h.Z=h.C7=c.G.usc()?c.G.mc():ZC.AK(u),h.copy(o),h.AZ=0,h.AU=0,h.EW=0,h.GA=0,h.E=n,h.parse(),h.paint()}}else if("line"===o.AF){if(-1!==c.BG.indexOf(ZC._[50])?1===o.FA.length?s=C=g(c,o.FA[0]):2===o.FA.length&&(s=g(c,o.FA[0]),C=g(c,o.FA[1])):-1!==c.BG.indexOf(ZC._[51])&&(1===o.FA.length?s=C=g(c,o.FA[0]):2===o.FA.length&&(s=g(c,o.FA[0]),C=g(c,o.FA[1]))),-1!==c.BG.indexOf(ZC._[50])&&c.CP||-1!==c.BG.indexOf(ZC._[51])&&!c.CP?(n.push([c.iX+o.AA,s],[c.iX+c.I-o.BV,C]),o.o&&o.o.tooltip&&(f.o[ZC._[10]]=f.o[ZC._[10]]||[],f.o[ZC._[10]].push({x:c.iX,y:s-o.AZ,width:c.I,height:2*o.AZ,alpha:0,tooltip:o.o.tooltip})),o.M&&("opposite"===o.MQ?o.M.iX=c.iX+c.I-o.M.I-o.BV:o.M.iX=c.iX+o.AA,"opposite"===o.MQ?o.M.iY=C-(c.AW?0:o.M.F):o.M.iY=s-(c.AW?0:o.M.F))):(n.push([s,c.iY+c.F-o.AA],[C,c.iY+o.BV]),o.o&&o.o.tooltip&&(f.o[ZC._[10]]=f.o[ZC._[10]]||[],f.o[ZC._[10]].push({x:s-o.AZ,y:c.iY,width:2*o.AZ,height:c.F,alpha:0,tooltip:o.o.tooltip})),o.M&&("opposite"===o.MQ?o.M.iX=C-(c.AW?o.M.I:0):o.M.iX=s-(c.AW?o.M.I:0),"opposite"===o.MQ?o.M.iY=c.iY+o.M.I-o.M.F+o.BV:o.M.iY=c.iY+c.F-o.M.F-o.AA)),c.A.AJ["3d"])for(c.A.NO(),t=0,i=n.length;t<i;t++)a=new CB(c.A,n[t][0]-ZC.AO.E1,n[t][1]-ZC.AO.E2,ZC.AO.FU),n[t][0]=a.EB[0],n[t][1]=a.EB[1];2===n.length&&(ZC.CR.setup(e,o),ZC.CR.paint(e,o,n))}else if("area"===o.AF&&(-1!==c.BG.indexOf(ZC._[50])?2===o.FA.length?(s=A=g(c,o.FA[0]),C=Z=g(c,o.FA[1])):4===o.FA.length&&(s=g(c,o.FA[0]),C=g(c,o.FA[1]),A=g(c,o.FA[2]),Z=g(c,o.FA[3])):-1!==c.BG.indexOf(ZC._[51])&&(2===o.FA.length?(s=A=c.AN(o.FA[0]),C=Z=c.AN(o.FA[1])):4===o.FA.length&&(s=c.AN(o.FA[0]),C=c.AN(o.FA[1]),A=c.AN(o.FA[2]),Z=c.AN(o.FA[3]))),C=s===C?C+1:C,Z=A===Z?Z+1:Z,-1!==c.BG.indexOf(ZC._[50])&&c.CP||-1!==c.BG.indexOf(ZC._[51])&&!c.CP?(n.push([c.iX+p,s],[c.iX+c.I-p,A],[c.iX+c.I-p,Z],[c.iX+p,C],[c.iX+p,s]),o.M&&("opposite"===o.MQ?o.M.iX=c.iX+c.I-o.M.I-o.BV:o.M.iX=c.iX+o.AA,"opposite"===o.MQ?o.M.iY=C-(c.AW?0:o.M.F):o.M.iY=s-(c.AW?0:o.M.F))):(n.push([s,c.iY+c.F-p],[A,c.iY+p],[Z,c.iY+p],[C,c.iY+c.F-p],[s,c.iY+c.F-p]),o.M&&("opposite"===o.MQ?o.M.iX=C-(c.AW?o.M.I:0):o.M.iX=s-(c.AW?o.M.I:0),"opposite"===o.MQ?o.M.iY=c.iY+o.M.I-o.M.F+o.BV:o.M.iY=c.iY+c.F-o.M.F-o.AA)),n.length>=4)){if(c.A.AJ["3d"])for(c.A.NO(),t=0,i=n.length;t<i;t++)a=new CB(c.A,n[t][0]-ZC.AO.E1,n[t][1]-ZC.AO.E2,ZC.AO.FU),n[t][0]=a.EB[0],n[t][1]=a.EB[1];(h=new DW(o.A)).K=c.K+"-marker-"+o.L,h.Z=h.C7=c.G.usc()?c.G.mc():ZC.AK(u),h.copy(o),h.AZ=0,h.AU=0,h.EW=0,h.GA=0,h.E=n,h.parse(),h.BL=o.BL,h.BH=o.BH,h.paint()}var D=!0,K=c.A.P;2===n.length&&(-1!==c.BG.indexOf(ZC._[50])&&c.CP||-1!==c.BG.indexOf(ZC._[51])&&!c.CP?ZC.DR(n[0][1],K.iY-o.KF[1],K.iY+K.F+o.KF[1])&&ZC.DR(n[1][1],K.iY-o.KF[1],K.iY+K.F+o.KF[1])||(D=!1):ZC.DR(n[0][0],K.iX-o.KF[0],K.iX+K.I+o.KF[0])&&ZC.DR(n[1][0],K.iX-o.KF[0],K.iX+K.I+o.KF[0])||(D=!1));var E=o.OD;if(o.M&&D&&("poly"===o.AF?(o.M.iX=ZC._i_(_-o.M.I/2),o.M.iY=ZC._i_(d-o.M.F/2)):("auto"===o.OD&&(E=-1!==c.BG.indexOf(ZC._[50])&&!c.CP||-1!==c.BG.indexOf(ZC._[51])&&c.CP?s<c.iX+c.I/2?"normal":"opposite":s>c.iY+c.F/2?"normal":"opposite"),o.M.BL=o.M.BH=0,(-1!==c.BG.indexOf(ZC._[50])&&!c.CP||-1!==c.BG.indexOf(ZC._[51])&&c.CP)&&null===ZC._n_(o.M.o.angle)&&(o.M.A9=270),-1!==c.BG.indexOf(ZC._[50])&&!c.CP||-1!==c.BG.indexOf(ZC._[51])&&c.CP?(o.M.A9%180==90&&(o.M.BL-=(c.AW?-1:1)*(o.M.I/2-o.M.F/2),o.M.BH-=o.M.I/2-o.M.F/2,"opposite"===o.MQ&&(o.M.BH=-o.M.I/2+o.M.F/2),"opposite"===E&&(o.M.BL-=o.M.F)),o.M.A9%180==0&&("opposite"===o.MQ&&(o.M.BH=-o.M.I+o.M.F),"opposite"===E&&(o.M.BL-=o.M.I))):(o.M.A9%180==90&&(o.M.BL-=o.M.I/2-o.M.F/2,o.M.BH-=(c.AW?-1:1)*(o.M.I/2-o.M.F/2),"opposite"===o.MQ&&(o.M.BL=o.M.I/2-o.M.F/2),"opposite"===E&&(o.M.BH+=o.M.I)),o.M.A9%180==0&&"opposite"===E&&(o.M.BH+=o.M.F)),o.M.BL+=o.A0R[0]+o.BL,o.M.BH+=o.A0R[1]+o.BH),c.A.AJ["3d"]&&(a=new CB(c.A,o.M.iX-ZC.AO.E1,o.M.iY-ZC.AO.E2,ZC.AO.FU),o.M.iX=a.EB[0],o.M.iY=a.EB[1]),ZC.DR(o.M.iX+o.M.BL+(o.M.A9%180==0?o.M.I/2:o.M.F/2),o.A.A.P.iX-o.KF[0],o.A.A.P.iX+o.A.A.P.I+o.KF[0])&&ZC.DR(o.M.iY+o.M.BH+(o.M.A9%180==0?o.M.F/2:o.M.I/2),o.A.A.P.iY-o.KF[1],o.A.A.P.iY+o.A.A.P.F+o.KF[1])&&(o.M.paint(),o.M.EC(),!o.M.KD&&"normal"===zingchart.OBJECTMODE&&(c.D["marker_text_"+o.L]=o.M.AT,ZC.AK(f.A.K+"-map"))))){var F=ZC.AP.OG(f.K,o.M);ZC.AK(f.A.K+"-map").innerHTML=ZC.AK(f.A.K+"-map").innerHTML+F}}}else o.A.paintMarker(o)}}class A2V extends ZCClass{constructor(e){super();var t=this;t.M4=null,t.A58=0,t.P9=[],t.BG=e,t.A43=!0}add(e){var t=this;t.P9.push(e),e.K6=t,e.M4=t.M4,e.BZ.TV=!0,e.XJ=t.P9.length-1,t.A43=!1}}class EA extends ZCClass{constructor(e,t,i,a,n,l){super();var r=this;for(var o in r.M4=null,r.BZ=e,r.AX=null,r.A59=0,r.IQ=null,r.N=t||{},r.A5A=i||500,r.XQ=a||-1,r.A0T=null,r.TC=null,r.OL=null,null!==ZC._n_(l)&&(r.TC=l),r.A5B=EA.linear,null!==ZC._n_(n)&&""!==n&&(r.A5B=n),r.ADJ={},r.C4={},r.ACP=[],r.RO=ZC._i_(r.A5A/PR.UG),r.RO>100&&(r.RO=100),(ZC.vml||ZC.mobile)&&(r.RO=ZC._i_(r.RO/4)),r.RO<5&&(r.RO=5),r.N)null!==ZC._n_(EA.GP[o])?r.C4[o]=r.BZ[EA.GP[o]]:r.C4[o]=r.BZ[o];r.Y=0,r.K6=null,r.XJ=-1}status(){return this.Y+1>this.RO?0:1}step(){var e,t,i,a,n,l,r=this,o=1,s=r.M4.C.G.AB;if(r.Y++,r.Y>r.RO&&(r.Y===r.RO+1&&-1!==r.XJ&&(r.K6.A58++,r.K6.A58===r.K6.P9.length&&(r.K6.A43=!0)),o=0),o){var C={};if(r.Y===r.RO)C=r.N,r.A59=1;else for(var A in r.A59=r.A5B(r.Y,0,1,r.RO),r.N)switch(A){case"points":var Z=[];for(n=0,l=r.N[A].length;n<l;n++)if(null!==ZC._n_(r.C4[A][n])){Z[n]=[];for(var c=0,p=r.N[A][n].length;c<p;c++)Z[n][c]=r.A5B(r.Y,r.C4[A][n][c],r.N[A][n][c]-r.C4[A][n][c],r.RO)}C[A]=Z;break;case"lineColor":case"borderColor":case"backgroundColor1":case"backgroundColor2":var u=r.C4[A].replace("#",""),h=ZC.AP.GD(r.N[A]).replace("#",""),_=ZC.RA(u.slice(0,2)),d=ZC.RA(u.slice(2,4)),f=ZC.RA(u.slice(4,6)),g=ZC.RA(h.slice(0,2)),B=ZC.RA(h.slice(2,4)),v=ZC.RA(h.slice(4,6)),m=ZC.P7(ZC._i_(r.A5B(r.Y,_,g-_,r.RO)));1===m.length&&(m="0"+m);var b=ZC.P7(ZC._i_(r.A5B(r.Y,d,B-d,r.RO)));1===b.length&&(b="0"+b);var D=ZC.P7(ZC._i_(r.A5B(r.Y,f,v-f,r.RO)));1===D.length&&(D="0"+D),C[A]="#"+m+b+D;break;default:C[A]=r.A5B(r.Y,r.C4[A],r.N[A]-r.C4[A],r.RO)}if(r.BZ.append(C),r.BZ.TV=!0,r.BZ.parse(),r.AX&&(null!==ZC._n_(e=r.BZ.D["bound-1"])&&(r.BZ.CZ[1]=e),null!==ZC._n_(e=r.BZ.D["bound-3"])&&(r.BZ.CZ[3]=e),"vml"===s&&1===r.Y&&(typeof r.AX.A.I0!==ZC._[31]?r.BZ.D.opacity2=r.AX.A.I0:r.BZ.D.opacity2=r.AX.A.C5),r.AX.G&&(r.AX.G.D[r.AX.K+"-bounds"]=[r.AX.iX,r.AX.iY,r.AX.iX+r.AX.I,r.AX.iY+r.AX.F])),r.A0T)try{r.A0T(r.BZ,C)}catch(Y){}if(r.AX){var K={id:r.AX.G.K,graphid:r.AX.C.K,plotindex:r.AX.A.L,nodeindex:r.AX.L,stage:r.A59,value:r.AX.AD*r.A59};ZC.AP.C0("animation_step",r.AX.G,K)}}if(r.AX){if(1===r.Y||"canvas"===s)-1!==ZC.AV(["svg","vml"],s)?0===ZC.A5("#"+r.BZ.K+"-path").length&&r.paint():r.paint();else if(r.Y<=r.RO){switch(s){case"svg":r.BZ.TN(!0);break;case"vml":r.BZ.TO(null,!0)}r.BZ.UD&&r.BZ.UD(),"vml"===s&&/\-plotset\-plot-\d+\-node\-\d+\-area/.test(r.BZ.K)&&(r.BZ.AZ=0),t=null,typeof r.BZ.DP!==ZC._[31]&&"box"===r.BZ.DP&&(t=r.BZ.AZ,r.BZ.AZ=r.BZ.AU);var E=!1;if("svg"===s&&ZC.AK(r.BZ.K+"-path")&&"rect"===ZC.AK(r.BZ.K+"-path").tagName&&(E=!0),E)i=[],a=[];else if(i=ZC.Q.A3O(r.BZ.E,s,r.BZ,!1,!0),r.BZ.MF){var F=ZC.Q._sh_(r.BZ.E,r.BZ);a=ZC.Q.A3O(F,s,r.BZ,!1,!0)}null!==ZC._n_(t)&&(r.BZ.AZ=t);var I=r.BZ.C5,x=r.BZ.O9,y=r.BZ.TA,X=r.BZ.JX,G=r.BZ.AI;switch(s){case"svg":ZC.A5("#"+r.BZ.K+"-path").attr("d",i.join(" ")).attr("stroke-opacity",x).attr("fill-opacity",I),r.BZ.MF&&ZC.A5("#"+r.BZ.K+"-sh-path").attr("d",a.join(" ")).attr("stroke-opacity",x*y).attr("fill-opacity",I*y),E&&(ZC.A5("#"+r.BZ.K+"-path").attr("x",r.BZ.iX).attr("y",r.BZ.iY).attr(ZC._[19],ZC.BQ(0,r.BZ.I)).attr(ZC._[20],ZC.BQ(0,r.BZ.F)),r.BZ.MF&&ZC.A5("#"+r.BZ.K+"-sh-path").attr("x",r.BZ.iX+X*ZC.EH(r.BZ.OR)).attr("y",r.BZ.iY+X*ZC.EN(r.BZ.OR)).attr(ZC._[19],ZC.BQ(0,r.BZ.I)).attr(ZC._[20],ZC.BQ(0,r.BZ.F))),ZC.A5("#"+r.BZ.K+"-circle").attr("stroke-opacity",x).attr("cx",r.BZ.iX).attr("cy",r.BZ.iY).attr("r",G).attr("fill-opacity",I),r.BZ.MF&&ZC.A5("#"+r.BZ.K+"-sh-circle").attr("stroke-opacity",x*y).attr("cx",r.BZ.iX+X).attr("r",G).attr("cy",r.BZ.iY+X).attr("fill-opacity",I*y),""!==r.BZ.D8&&ZC.A5("#"+r.BZ.K+"-path-imgfill").attr("stroke-opacity",x).attr("fill-opacity",I),ZC.A5("#"+r.BZ.K+"-goal-path").remove();break;case"vml":ZC.A5("#"+r.BZ.K+"-path").children().each(function(){this.v=i.join(" "),this.opacity=I}),r.BZ.MF&&ZC.A5("#"+r.BZ.K+"-sh-path").children().each(function(){this.v=a.join(" "),this.opacity=I*y}),ZC.A5("#"+r.BZ.K+"-circle").children().each(function(){this.opacity=I}),ZC.A5("#"+r.BZ.K+"-circle").each(function(){this.style.left=r.BZ.iX-G+"px",this.style.top=r.BZ.iY-G+"px",this.style.width=2*G+"px",this.style.height=2*G+"px"}),r.BZ.MF&&(ZC.A5("#"+r.BZ.K+"-sh-circle").children().each(function(){this.opacity=I*y}),ZC.A5("#"+r.BZ.K+"-sh-circle").each(function(){this.style.left=r.BZ.iX-G+X+"px",this.style.top=r.BZ.iY-G+X+"px",this.style.width=2*G+"px",this.style.height=2*G+"px"})),ZC.A5("#"+r.BZ.K+"-goal-path").remove()}}}else r.M4.C.QH=!0,r.M4.C.YB(),r.M4.C.JV();return r.Y===r.RO+1&&null!==ZC._n_(r.TC)&&r.TC(),o}paint(){var e=this;if(null!==ZC._n_(e.IQ)?ZC.CR.paint(e.IQ,e.BZ,e.BZ.E):e.BZ.paint(),e.OL)try{1===e.A59&&e.OL()}catch(t){}}}EA.GP={angleStart:"B4",angleEnd:"BJ",slice:"CM",size:"AI",x:"iX",y:"iY",width:"I",height:"F",alpha:"C5",angle:"A9",fillAngle:"NE",points:"E",lineWidth:"AZ",lineColor:"B7",borderWidth:"AU",borderColor:"BW",backgroundColor1:"A0",backgroundColor2:"AE"},EA.linear=function(e,t,i,a){return i*e/a+t},EA.backEaseOut=function(e,t,i,a){var n=(e/=a)*e;return t+i*(4*(n*e)+-9*n+6*e)},EA.elasticEaseOut=function(e,t,i,a){var n=(e/=a)*e,l=n*e;return t+i*(37.045*l*n+-116.2825*n*n+134.08*l+-68.59*n+14.7475*e)},EA.bounceEaseOut=function(e,t,i,a){return(e/=a)<1/2.75?i*(7.5625*e*e)+t:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+t:i*(7.5625*(e-=2.625/2.75)*e+.984375)+t},EA.regularEaseOut=function(e,t,i,a){var n=(e/=a)*e;return t+i*(n*e+-3*n+3*e)},EA.strongEaseOut=function(e,t,i,a){var n=(e/=a)*e,l=n*e;return t+i*(l*n+-5*n*n+10*l+-10*n+5*e)},EA.RU=[EA.linear,EA.backEaseOut,EA.elasticEaseOut,EA.bounceEaseOut,EA.strongEaseOut,EA.regularEaseOut],ZC.ANIMATION={SLOW:4e3,FAST:1e3,LINEAR:0,BACK_EASE_OUT:1,ELASTIC_EASE_OUT:2,BOUNCE_EASE_OUT:3,STRONG_EASE_OUT:4,REGULAR_EASE_OUT:5,NO_SEQUENCE:0,BY_PLOT:1,BY_NODE:2,BY_PLOT_AND_NODE:3,FADE_IN:1,EXPAND_VERTICAL:2,EXPAND_TOP:3,EXPAND_BOTTOM:4,EXPAND_LEFT:5,EXPAND_RIGHT:6,EXPAND_HORIZONTAL:7,SLIDE_LEFT:8,SLIDE_RIGHT:9,SLIDE_TOP:10,SLIDE_BOTTOM:11,UNFOLD_HORIZONTAL:12,UNFOLD_VERTICAL:13,EXPAND:2,GROW:3,FLY_IN:4,UNFOLD:5};class PR extends ZCClass{constructor(e){super();var t=this;t.C=e,t.S3=!1,t.C3=null,t.P9=[],t.PP={},t.onStop=null}A60(e,t){var i=this;null===ZC._n_(i.PP[e.BG])&&(i.PP[e.BG]=e,e.M4=i,i.S3||(null!==ZC._n_(t)&&t>0?window.setTimeout(function(){i.start()},t+1):i.start()))}add(e){var t=this;e.M4=t,e.XQ>0?(t.P9.push(e),window.setTimeout(function(){e.BZ.TV=!0,t.S3||t.start()},e.XQ+1)):(e.BZ.TV=!0,t.P9.push(e),t.S3||t.start())}start(){var e=this;e.S3=!0,ZC.AP.C0("animation_start",e.C.A,{id:e.C.A.K,graphid:e.C.K});var t=!0;!function i(){t||e.step(),t=!1,e.S3&&(e.C3=window.requestAnimFrame(i))}()}step(){var e,t=this,i=0;if(t.S3){for(var a=0,n=t.P9.length;a<n;a++)i+=t.P9[a].status();if("canvas"===t.C.G.AB)if(t.C.G.KD)null!==ZC._n_(e=ZC.AK(t.C.K+"-plots-bl-c"))&&e.getContext("2d").clearRect(t.C.iX,t.C.iY,t.C.I,t.C.F);else for(a=0,n=t.C.AY.A4.length;a<n;a++)for(var l=0;l<t.C.AY.A4[a].T1;l++)null!==ZC._n_(e=ZC.AK(t.C.K+"-plot-"+a+"-bl-"+l+"-c"))&&e.getContext("2d").clearRect(t.C.iX,t.C.iY,t.C.I,t.C.F);for(a=0,n=t.P9.length;a<n;a++)0===t.P9[a].step()&&(t.P9[a].BZ.TV=!1);for(var r in t.PP)for(t.PP[r].A43||(i+=1),a=0,n=t.PP[r].P9.length;a<n;a++)t.PP[r].P9[a].XJ===t.PP[r].A58?0===t.PP[r].P9[a].step()&&(t.PP[r].P9[a].BZ.TV=!1):"canvas"===t.C.G.AB&&t.PP[r].P9[a].paint();0===i&&(t.PP={},t.P9=[],t.stop())}}stop(e){null===ZC._n_(e)&&(e=!1);var t,i=this;if(e&&(i.bDead=!0),window.clearAnimFrame(i.C3),i.C.YB(),i.C.QH=!1,ZC.AK(i.C.G.K)){i.C.JV(),window.setTimeout(function(){(t=ZC.AK(i.C.A.K+"-map"))&&i.C.AY.HZ&&(-1===ZC.AV(["bubble","mixed","vbullet","hbullet","radar"],i.C.AF)&&1!==zingchart.SORTTRACKERS||i.C.AY.HZ.sort(function(e,t){return ZC.AP.NC(e)>ZC.AP.NC(t)?1:-1}),t.innerHTML+=i.C.AY.HZ.join(""))},33),i.C.A2F(),i.S3=!1;for(var a=0,n=i.P9.length;a<n;a++)i.P9[a].TC=null;if(i.P9=[],i.PP={},e||ZC.AP.C0("animation_end",i.C.A,{id:i.C.A.K,graphid:i.C.K}),null!==ZC._n_(i.onStop))try{i.onStop()}catch(l){}}}}PR.UG=33,function(){for(var e=["ms","moz","webkit","o"],t=0,i=e.length;t<i&&!window.requestAnimFrame;++t)window.requestAnimFrame=window.requestAnimationFrame||window[e[t]+"RequestAnimationFrame"],window.cancelAnimFrame=window.cancelAnimationFrame||window[e[t]+"CancelAnimationFrame"]||window[e[t]+"CancelRequestAnimationFrame"];window.requestAnimFrame||(window.requestAnimFrame=function(e){return window.setTimeout(e,PR.UG)}),window.clearAnimFrame||(window.clearAnimFrame=function(e){window.clearTimeout(e)})}(),zingchart.bind(null,"dataparse",function(e,t){for(var i,a,n=0,l=t[ZC._[16]].length;n<l;n++)if(t[ZC._[16]][n].type&&-1!==ZC.AV(["pie","line","vline","area","varea","bar","vbar","hbar","line3d","area3d","bar3d","vbar3d","hbar3d"],t[ZC._[16]][n].type)&&t[ZC._[16]][n].nav){var r=t[ZC._[16]][n];ZC._todash_(r);var o=r.nav||{};ZC._todash_(o);var s,C,A,Z=ZC.IR(o.threshold||"10%"),c=o.others||{text:"Others"},p=o.back||{},u=o[ZC._[8]]||"0.3",h=r[ZC._[11]]||[],_=[];if("pie"===t[ZC._[16]][n].type){var d=0;for(i=0;i<h.length;i++)h[i][ZC._[5]]&&null!==ZC._n_(h[i][ZC._[5]][0])&&(d+=h[i][ZC._[5]][0]);Z>0&&Z<1&&(Z*=d),s=[].concat(h);var f=0,g="";for(C=1,i=h.length-1;i>=0;i--)h[i][ZC._[5]]&&null!==ZC._n_(h[i][ZC._[5]][0])&&h[i][ZC._[5]][0]<Z&&(f+=h[i][ZC._[5]][0],g+=(h[i].text||"Item no."+C)+":"+h[i][ZC._[5]][0]+"<br>",h[i][ZC._[8]]=u,_.push(h[i]),h.splice(i,1),C++);f>0&&(C>2?(A={values:[f],detach:!1,"data-group":[1],"tooltip-text":g=g.substring(0,g.length-4)},ZC._cp_(c,A),h.push(A),zingchart.bind(e.id,"plot_click",function(t){if(t.xdata.group){var i=zingchart.getLoader(t.id);if(!i)return;var a=zingchart.getGraph(i,t.graphid);for(var n in a.getAttributes())"pie-sel-"===n.substring(0,8)&&a.setAttribute(n,null);zingchart.exec(e.id,"setseriesdata",{data:_}),window.setTimeout(function(){var t=zingchart.exec(e.id,"getobjectinfo",{object:"node",plotindex:0,nodeindex:0}),i={id:"navpie_btnback",x:t.x,y:t.y,text:"< Back",anchor:"c",cursor:"hand"};ZC._cp_(p,i),zingchart.exec(e.id,"addobject",{type:"label",data:i})},1)}}),zingchart.bind(e.id,"label_click",function(t){if("navpie_btnback"===t.label.id){var i=zingchart.getLoader(t.id);if(!i)return;var a=zingchart.getGraph(i,t.graphid);for(var n in a.getAttributes())"pie-sel-"===n.substring(0,8)&&a.setAttribute(n,null);zingchart.exec(e.id,"removeobject",{type:"label",id:"navpie_btnback"}),zingchart.exec(e.id,"setseriesdata",{data:h})}})):r[ZC._[11]]=[].concat(s))}else{var B=0,v=[];for(i=0;i<h.length;i++){if(v[i]=0,h[i][ZC._[5]]&&h[i][ZC._[5]].length)for(a=0;a<h[i][ZC._[5]].length;a++)v[i]+=ZC._a_(h[i][ZC._[5]][a]);B=ZC.BQ(B,v[i])}Z>0&&Z<1&&(Z*=B),s=[].concat(h);var m=[],b=[];for(C=1,i=h.length-1;i>=0;i--)if(v[i]<Z){if(h[i][ZC._[5]]&&h[i][ZC._[5]].length)for(a=0;a<h[i][ZC._[5]].length;a++)m[a]=ZC._f_(m[a]||"0"),m[a]+=h[i][ZC._[5]][a],b[a]=b[a]||"",b[a]+=(h[i].text||"Item no."+C)+":"+h[i][ZC._[5]][a]+"<br>";_.push(h[i]),h.splice(i,1),C++}if(m.length)if(C>2){for(a=0;a<b.length;a++)b[a]=b[a].substring(0,b[a].length-4);A={values:m,detach:!1,"data-group":[1],"data-tt-text":b,"tooltip-text":"%data-tt-text"},ZC._cp_(c,A),h.push(A),zingchart.bind(e.id,"plot_click",function(t){if(t.xdata.group){if(!zingchart.getLoader(t.id))return;zingchart.exec(e.id,"setseriesdata",{data:_}),window.setTimeout(function(){var t=zingchart.exec(e.id,"getobjectinfo",{object:"plotarea"}),i={id:"navxy_btnback",x:t.x+t.width/2,y:t.y,text:"< Back",anchor:"c",cursor:"hand"};ZC._cp_(p,i),zingchart.exec(e.id,"addobject",{type:"label",data:i})},1)}}),zingchart.bind(e.id,"label_click",function(t){if("navxy_btnback"===t.label.id){if(!zingchart.getLoader(t.id))return;zingchart.exec(e.id,"removeobject",{type:"label",id:"navxy_btnback"}),zingchart.exec(e.id,"setseriesdata",{data:h})}})}else r[ZC._[11]]=[].concat(s)}}return t});}
export default zingchart;