From cadbc26ae367165784d07a0b0da36ae0cf84b3c6 Mon Sep 17 00:00:00 2001 From: taoteh1221 Date: Tue, 10 Sep 2024 17:51:02 -0400 Subject: [PATCH] v6.00.39-dev-pre-rev-23 (#166) * TODO TODO * zingchart upgrade, refactoring / optimizations zingchart upgrade, refactoring / optimizations * UX UX * fixes fixes * fixes / notes fixes / notes --- CONTRIBUTING.txt | 11 +++--- DOCUMENTATION-ETC/CONFIG-EXAMPLE.txt | 4 +- DOCUMENTATION-ETC/TODO.txt | 17 ++++++--- DOCUMENTATION-ETC/changelog.txt | 6 ++- README.txt | 2 +- TROUBLESHOOTING.txt | 2 +- app-lib/js/functions.js | 4 +- .../js/jquery/jquery-javascript-combined.php | 8 +++- app-lib/js/root-javascript-combined.php | 16 +++++++- app-lib/js/zingchart.min.js | 4 +- app-lib/php/classes/core/api.php | 29 +-------------- app-lib/php/classes/core/asset.php | 6 +-- app-lib/php/classes/core/cache.php | 27 ++++++++++++++ app-lib/php/classes/core/general.php | 25 ++++--------- .../php/inline/ajax/jstree/asset-markets.php | 4 +- .../markets-add/add-markets-step-3.php | 3 +- .../remove-selected-assets.php | 2 +- .../remove-selected-markets.php | 8 ++-- .../php/inline/config/config-auto-adjust.php | 11 ++---- config.php | 4 +- .../plug-lib/plug-class.php | 10 ++--- templates/back-end/main-config.template | 4 +- templates/interface/css/root-css-combined.php | 8 +++- templates/interface/css/style.css | 24 ++++++++---- .../admin-sections/apis/webhook-int-api.php | 1 - .../wrap/wrap-elements/head-tag-contents.php | 37 ++++++++++--------- .../php/wrap/wrap-elements/help-faq-modal.php | 2 +- 27 files changed, 152 insertions(+), 127 deletions(-) diff --git a/CONTRIBUTING.txt b/CONTRIBUTING.txt index d7b9158d1..5f9fecebe 100644 --- a/CONTRIBUTING.txt +++ b/CONTRIBUTING.txt @@ -98,7 +98,11 @@ CONTRIBUTION GUIDELINES (FOR DEVELOPERS): ---------------------------------------------------------------------- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!!!! +!!!! +===> Keep an eye out for EFFECTS ON any 3rd party libraries using the 'unload' eventListener, +===> as it's being FULLY DEPRECIATED / DISABLED in chrome by the end of 2024: +===> https://developer.chrome.com/docs/web-platform/deprecating-unload +!!!! ===> WHEN DEBUGGING PHP, LEAVE "$ct['dev']['debug_php_errors']" IN "developer-config.php" SET ===> LIKE SO, TO ALWAYS LOG ALL PARSE / FATAL PHP ERRORS DURING TESTING: (E_ERROR | E_PARSE) !!!! @@ -114,10 +118,7 @@ CONTRIBUTION GUIDELINES (FOR DEVELOPERS): !!!! ===> config.php (and plug-conf.php for plugins) MUST only contain STATIC VALUES, ===> as all configs are saved to / run from the cache file: /cache/secured/ct_conf_XXXXXXXXX.dat -!!!! -===> DO *NOT* UPGRADE ZingCart, as it can be BUGGY occasionally for auto-resizing on page showing, -===> AND we FORCE the BRANDING LINK to show EVEN IN A LOCALHOST environment (with custom tweaks) -!!!! +!!!! ===> May come in handy for writing PHP unit tests (in /app-lib/php/inline/debugging/): ===> https://stackoverflow.com/questions/861254/iterate-over-properties-of-a-php-class !!!! diff --git a/DOCUMENTATION-ETC/CONFIG-EXAMPLE.txt b/DOCUMENTATION-ETC/CONFIG-EXAMPLE.txt index 012bedcb4..ae1afced8 100644 --- a/DOCUMENTATION-ETC/CONFIG-EXAMPLE.txt +++ b/DOCUMENTATION-ETC/CONFIG-EXAMPLE.txt @@ -844,7 +844,7 @@ $ct['conf']['charts_alerts']['tracked_markets'] = array( // MANA 'mana-2||binance||btc||both', 'mana-3||kucoin||btc||none', - 'mana-4||ethfinex||usd||none', + 'mana-4||bitfinex||usd||none', 'mana-5||binance||eth||none', @@ -2670,7 +2670,7 @@ $ct['conf']['assets'] = array( 'usd' => array( 'coinbase' => 'MANA-USD', - 'ethfinex' => 'tMNAUSD', + 'bitfinex' => 'tMNAUSD', 'presale_usd_value' => 'mana', ), diff --git a/DOCUMENTATION-ETC/TODO.txt b/DOCUMENTATION-ETC/TODO.txt index 833659232..2a2379871 100644 --- a/DOCUMENTATION-ETC/TODO.txt +++ b/DOCUMENTATION-ETC/TODO.txt @@ -34,7 +34,11 @@ GENERAL REMINDERS ---------------------------------------------------------------------- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!!!! +!!!! +===> Keep an eye out for EFFECTS ON any 3rd party libraries using the 'unload' eventListener, +===> as it's being FULLY DEPRECIATED / DISABLED in chrome by the end of 2024: +===> https://developer.chrome.com/docs/web-platform/deprecating-unload +!!!! ===> WHEN DEBUGGING PHP, LEAVE "$ct['dev']['debug_php_errors']" IN "developer-config.php" SET ===> LIKE SO, TO ALWAYS LOG ALL PARSE / FATAL PHP ERRORS DURING TESTING: (E_ERROR | E_PARSE) !!!! @@ -50,9 +54,6 @@ GENERAL REMINDERS !!!! ===> config.php (and plug-conf.php for plugins) MUST only contain STATIC VALUES, ===> as all configs are saved to / run from the cache file: /cache/secured/ct_conf_XXXXXXXXX.dat -!!!! -===> DO *NOT* UPGRADE ZingCart, as it can be BUGGY occasionally for auto-resizing on page showing, -===> AND we FORCE the BRANDING LINK to show EVEN IN A LOCALHOST environment (with custom tweaks) !!!! ===> May come in handy for writing PHP unit tests (in /app-lib/php/inline/debugging/): ===> https://stackoverflow.com/questions/861254/iterate-over-properties-of-a-php-class @@ -194,7 +195,7 @@ P̵̫̊h̴̪̑ì̶̯s̵̫̀h̸̠̆i̶̔͜n̸̞͒g̶̳̏ ̸̺͐a̴͎̓n̷̜̕d̴ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -Test LINUX Desktop Edition FIRST, as Windows 11 forced updates have been borking up dual boot / bitlocker setups a ton the past few months (lol) +Test LINUX Desktop Edition FIRST, as Windows 11 forced updates have been borking up dual boot / bitlocker setups a ton the past few months (lol) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~DO AN APP RELEASE AT THIS POINT IN THIS LIST~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -203,6 +204,12 @@ Test LINUX Desktop Edition FIRST, as Windows 11 forced updates have been borking Do a bitcoin opentimestamp of the v6.00.39 release. +Add any other 'required api key' notices, near the top of the external data function. This is a VERY RELIABLE PLACE to have ALL of the checks, as we ALWAYS use the external data function to get API data. + + +Fix EVERYTHING in ALL documentation, where we moved settings over to different sections. + + Add bitcoin as a 'primary currency' option (like we can do for eth / sol). diff --git a/DOCUMENTATION-ETC/changelog.txt b/DOCUMENTATION-ETC/changelog.txt index 9b8db591d..9b5b11b19 100644 --- a/DOCUMENTATION-ETC/changelog.txt +++ b/DOCUMENTATION-ETC/changelog.txt @@ -6785,9 +6785,9 @@ AND MIGRATE YOUR EXISTING CUSTOM SETTINGS TO THE NEW FORMAT. -BUG FIX: Miscellaneous fixes --Refactoring / optimization of ENTIRE markets API data parsing logic (for 'Add New Asset' feature, in admin 'Portfolio Assets' WEB INTERFACE) +-Upgraded Jupiter Aggregator exchange API, including case-sensitive support for asset IDs, addition of market trade volume data, and asset search --Upgraded Jupiter Aggregator exchange API, including case-sensitive support for asset IDs, and the addition of market trade volume data +-Refactoring / optimization of ENTIRE markets API data parsing logic (for 'Add New Asset' feature, in admin 'Portfolio Assets' WEB INTERFACE) -Added Admin Config settings for: Portfolio Assets (adding / removing assets and markets is FINALLY available in the interface now) @@ -6801,6 +6801,8 @@ AND MIGRATE YOUR EXISTING CUSTOM SETTINGS TO THE NEW FORMAT. -Upgraded Idex exchange API to v4 +-Upgraded ZingChart to v2.9.15 + -Upgraded Kraken exchange API IMPORTANT *UPGRADE* NOTICES: diff --git a/README.txt b/README.txt index cbe74358d..985520643 100644 --- a/README.txt +++ b/README.txt @@ -355,7 +355,7 @@ AED / ARS / AUD / BDT / BRL / BTC / CAD / CHF / CLP / CZK / DAI / DKK / ETH / EU Support for over 70 exchanges (contact me to request more): -aevo_futures / alphavantage_stock / binance / binance_us / bit2c / bitbns / bitfinex / bitflyer / bitmart / bitmex / bitmex_u20 / bitmex_z20 / bitso / bitstamp / btcmarkets / btcturk / buyucoin / bybit / cex / coinbase / coindcx / coinex / coingecko_aed / coingecko_ars / coingecko_bdt / coingecko_btc / coingecko_clp / coingecko_czk / coingecko_dkk / coingecko_eth / coingecko_gel / coingecko_hkd / coingecko_huf / coingecko_idr / coingecko_inr / coingecko_kwd / coingecko_lkr / coingecko_myr / coingecko_ngn / coingecko_nis / coingecko_nok / coingecko_nzd / coingecko_php / coingecko_pkr / coingecko_pln / coingecko_rmb / coingecko_rub / coingecko_sar / coingecko_sek / coingecko_sgd / coingecko_terminal / coingecko_thb / coingecko_twd / coingecko_uah / coingecko_usd / coingecko_vnd / coinspot / crypto.com / ethfinex / gateio / gemini / hitbtc / huobi / idex / jupiter_ag / korbit / kraken / kucoin / loopring_amm / luno / okcoin / okex / poloniex / presale_usd_value / unocoin / upbit / wazirx / zebpay +aevo_futures / alphavantage_stock / binance / binance_us / bit2c / bitbns / bitfinex / bitflyer / bitmart / bitmex / bitmex_u20 / bitmex_z20 / bitso / bitstamp / btcmarkets / btcturk / buyucoin / bybit / cex / coinbase / coindcx / coinex / coingecko_aed / coingecko_ars / coingecko_bdt / coingecko_btc / coingecko_clp / coingecko_czk / coingecko_dkk / coingecko_eth / coingecko_gel / coingecko_hkd / coingecko_huf / coingecko_idr / coingecko_inr / coingecko_kwd / coingecko_lkr / coingecko_myr / coingecko_ngn / coingecko_nis / coingecko_nok / coingecko_nzd / coingecko_php / coingecko_pkr / coingecko_pln / coingecko_rmb / coingecko_rub / coingecko_sar / coingecko_sek / coingecko_sgd / coingecko_terminal / coingecko_thb / coingecko_twd / coingecko_uah / coingecko_usd / coingecko_vnd / coinspot / crypto.com / gateio / gemini / hitbtc / huobi / idex / jupiter_ag / korbit / kraken / kucoin / loopring_amm / luno / okcoin / okex / poloniex / presale_usd_value / unocoin / upbit / wazirx / zebpay Nearly Unlimited Assets Supported (whatever assets exist on supported exchanges). diff --git a/TROUBLESHOOTING.txt b/TROUBLESHOOTING.txt index afdb10fac..988426990 100644 --- a/TROUBLESHOOTING.txt +++ b/TROUBLESHOOTING.txt @@ -189,7 +189,7 @@ AED / ARS / AUD / BDT / BRL / BTC / CAD / CHF / CLP / CZK / DAI / DKK / ETH / EU Support for over 70 exchanges (contact me to request more): -aevo_futures / alphavantage_stock / binance / binance_us / bit2c / bitbns / bitfinex / bitflyer / bitmart / bitmex / bitmex_u20 / bitmex_z20 / bitso / bitstamp / btcmarkets / btcturk / buyucoin / bybit / cex / coinbase / coindcx / coinex / coingecko_aed / coingecko_ars / coingecko_bdt / coingecko_btc / coingecko_clp / coingecko_czk / coingecko_dkk / coingecko_eth / coingecko_gel / coingecko_hkd / coingecko_huf / coingecko_idr / coingecko_inr / coingecko_kwd / coingecko_lkr / coingecko_myr / coingecko_ngn / coingecko_nis / coingecko_nok / coingecko_nzd / coingecko_php / coingecko_pkr / coingecko_pln / coingecko_rmb / coingecko_rub / coingecko_sar / coingecko_sek / coingecko_sgd / coingecko_terminal / coingecko_thb / coingecko_twd / coingecko_uah / coingecko_usd / coingecko_vnd / coinspot / crypto.com / ethfinex / gateio / gemini / hitbtc / huobi / idex / jupiter_ag / korbit / kraken / kucoin / loopring_amm / luno / okcoin / okex / poloniex / presale_usd_value / unocoin / upbit / wazirx / zebpay +aevo_futures / alphavantage_stock / binance / binance_us / bit2c / bitbns / bitfinex / bitflyer / bitmart / bitmex / bitmex_u20 / bitmex_z20 / bitso / bitstamp / btcmarkets / btcturk / buyucoin / bybit / cex / coinbase / coindcx / coinex / coingecko_aed / coingecko_ars / coingecko_bdt / coingecko_btc / coingecko_clp / coingecko_czk / coingecko_dkk / coingecko_eth / coingecko_gel / coingecko_hkd / coingecko_huf / coingecko_idr / coingecko_inr / coingecko_kwd / coingecko_lkr / coingecko_myr / coingecko_ngn / coingecko_nis / coingecko_nok / coingecko_nzd / coingecko_php / coingecko_pkr / coingecko_pln / coingecko_rmb / coingecko_rub / coingecko_sar / coingecko_sek / coingecko_sgd / coingecko_terminal / coingecko_thb / coingecko_twd / coingecko_uah / coingecko_usd / coingecko_vnd / coinspot / crypto.com / gateio / gemini / hitbtc / huobi / idex / jupiter_ag / korbit / kraken / kucoin / loopring_amm / luno / okcoin / okex / poloniex / presale_usd_value / unocoin / upbit / wazirx / zebpay Nearly Unlimited Assets Supported (whatever assets exist on supported exchanges). diff --git a/app-lib/js/functions.js b/app-lib/js/functions.js index 7fa494e2d..ab0609de6 100644 --- a/app-lib/js/functions.js +++ b/app-lib/js/functions.js @@ -2541,7 +2541,7 @@ $(elm_id).html("
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,i=!1;e&&(i="function"==typeof document.createElement("canvas").getContext("2d").fillText);ZC.canvas=e&&i,ZC.svg=document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1");var t=document.body.appendChild(document.createElement("div")),n=document.createElement("zcv:shape");n.className="zcvml",n.setAttribute("id","vml_flag1"),n.setAttribute("adj",new Object),t.appendChild(n),n.style.behavior="url(#default#VML)",ZC.vml=!n||"object"==typeof n.adj,t.parentNode.removeChild(t);var a=!1;navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"]?a=navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin:document.all&&-1===navigator.appVersion.indexOf("Mac")&&(a=new Function('try { var xObj = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if (xObj) { xObj = null; return true; } } catch (e) { return false; }')()),ZC.flash=a?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)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>0||"iPad"===navigator.platform,ipad:/iPad/.test(navigator.userAgent),iphone:/iPhone/.test(navigator.userAgent),websockets:"WebSocket"in window,webstorage:"sessionStorage"in window,RK:[],WG:[],E2:[0,0],ACK:null,_cp_:function(e,i,t,n,a,l){null===ZC._n_(t)&&(t=!0),null===ZC._n_(n)&&(n=!0),null===ZC._n_(a)&&(a=!1),l=l||[],0===zingchart.DEV.COPYVALUES&&l.push("values");var o=l.length;for(var r in e)if(0===o||o>0&&-1===ZC.AV(l,r))if(e[r]instanceof Array){if(n){(null===ZC._n_(i[r])||"override"!==r&&!a)&&(i[r]=[]);for(var s=0,C=e[r].length;s0&&-1===ZC.AV(t,o))){var r=o.substring(0,1);if("."!==r&&"#"!==r)if(e[o]instanceof Array)if(ZC.UN(o)!==o){for(e[ZC.UN(o)]=[],n=0,a=e[o].length;n=(e=e.charCodeAt(0)+13)?e:e-26)})},AC8:function(e,i){var t=ZC.X2(ZC.AC0(e)),n=ZC.X2(ZC.A2E(i)),a=t.length;if(0===a)return"";for(var l,o,r=t[a-1],s=t[0],C=2654435769,A=Math.floor(6+52/a)*C;0!==A;){o=A>>>2&3;for(var c=a-1;c>0;c--)l=((r=t[c-1])>>>5^s<<2)+(s>>>3^r<<4)^(A^s)+(n[3&c^o]^r),s=t[c]-=l;l=((r=t[a-1])>>>5^s<<2)+(s>>>3^r<<4)^(A^s)+(n[3&c^o]^r),s=t[0]-=l,A-=C}return decodeURIComponent(ZC.AC1(ZC.A5Z(t)))},AG2:function(e,i){e=encodeURIComponent(e);var t=ZC.X2(ZC.A2E(e)),n=ZC.X2(ZC.A2E(i)),a=t.length;if(0===a)return"";1===a&&(t[a++]=0);for(var l,o,r=t[a-1],s=t[0],C=Math.floor(6+52/a),A=0;C-- >0;){o=(A+=2654435769)>>>2&3;for(var c=0;c>>5^(s=t[c+1])<<2)+(s>>>3^r<<4)^(A^s)+(n[3&c^o]^r),r=t[c]+=l;l=(r>>>5^(s=t[0])<<2)+(s>>>3^r<<4)^(A^s)+(n[3&c^o]^r),r=t[a-1]+=l}return ZC.ABZ(ZC.A5Z(t))},X2:function(e){for(var i=new Array(Math.ceil(e.length/4)),t=0;t>>8&255,e[t]>>>16&255,e[t]>>>24&255);return i},ABZ:function(e){for(var i="",t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=0;n>4]+t[15&e[n]];return i},AC0:function(e){for(var i=[],t="0x"===e.substr(0,2)?2:0;tt?t:e},DP:function(e,i,t,n){return n?ii[0].length?-1:0},ZP:function(e){window.setTimeout(e,zingchart.TIMEOUT)},_fixed_:function(e,i){return i>=0&&i<=20?e.toFixed(i):""+e},_nfind_:function(e,i,t,n){var a=i.R[t].BV,l=i.R[n].BV;if(e==a)return t;if(e==l)return n;var o=ZC._i_((t+n)/2);if(!i.R[o]){for(;!i.R[o]&&ot;)o--;if(o===t)return null}}var r=i.R[o].BV;return o!==t&&o!==n?e==r?o:e>r?ZC._nfind_(e,i,o,n):ZC._nfind_(e,i,t,o):e==r?o:null},_tx_:function(e){var i,t,n,a,l=[1,1,0,0];if(zingchart.DEV.LOOKUPCSSTRANSFORM&&!ZC.vml&&ZC.AL(e)){var o=ZC.AL(e);for(i="";o&&(""===i||"none"===i);)i=ZC.A5(o).css("transform")||"",o=o.parentNode;-1!==(t=i.indexOf("matrix("))&&(n=i.indexOf(")",t),a=i.substring(t+7,n-t).split(","),l=[ZC._f_(a[0]),ZC._f_(a[3]),ZC._f_(a[4]),ZC._f_(a[5])])}return l},Utils_SetupFormat:function(e,i){return ZC.AQ.O5(e,i)},Utils_Format:function(e,i,t,n){return ZC.AQ.G4(e,i,t,n)},Loader_Api_Loader_Info:function(e){return e.FF()}},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 i=typeof e;if("object"!==i||null===e)return"string"===i&&(e='"'+e.replace("\\","\\\\").replace('"','"')+'"'),String(e);var t,n,a=[],l=e&&e.constructor===Array;for(t in e)"function"!=typeof e[t]&&("string"===(i=typeof(n=e[t]))?n='"'+n.replace("\\","\\\\").replace('"','\\"')+'"':"object"===i&&null!==n&&(n=JSON.stringify(n)),a.push((l?"":'"'+t+'":')+String(n)));return(l?"[":"{")+String(a)+(l?"]":"}")},JSON.parse=JSON.parse||function(KX){return""===KX&&(KX='""'),eval("("+KX+")")},function(){var e=!1,i=/xyz/.test(function(){xyz})?/\bb\b/:/.*/;ZC.C9=function(){},ZC.C9.CC=function(t){var n=this.prototype;e=!0;var a=new this;for(var l in e=!1,t)a[l]="function"==typeof a[l]&&"function"==typeof n[l]&&i.test(t[l])?function(e,i){return function(){var t=this.b;this.b=n[e];var a=i.apply(this,arguments);return this.b=t,a}}(l,t[l]):t[l];function o(){!e&&this.$i&&this.$i.apply(this,arguments)}return o.prototype=a,o.constructor=o,o.CC=arguments.callee,o}}(),ZC.AAZ=function(e){this.H=e,this.AA0=function(e,i){var t,n=this,a=n.B8.palette;if(null!==ZC._n_(i)&&null!==ZC._n_(a[i])&&(a=a[i]),null!==ZC._n_(a[e])){var l=a[e];return null===ZC._n_(l[2])&&(l[2]=ZC.AQ.R0(l[1],10)),null===ZC._n_(l[3])&&(l[3]=ZC.AQ.R0(l[1],10)),l}var o=["#00BAF2","#E80C60","#E2D51A","#9B26AF","#FB301E","#00AE4D","#20398B"];t=null!==ZC._n_(o[e-n.B8.palette.length])?o[e-n.B8.palette.length]:"#"+ZC.XQ.md5(e).substr(e%20,6);var r=ZC.AQ.R0(t,10),s=ZC.AQ.R0(t,20),C="#FFF";return n.B8.palette&&n.B8.palette[0]&&n.B8.palette[0][0]&&(C=n.B8.palette[0][0]),[C,t,r,s]},this.A92=function(e){e&&ZC._cp_(e,this.B8,!0)},this.AB1=function(e){var i=this;null!==ZC._n_(i.NR[e])&&(ZC._todash_(i.NR[e]),ZC._cp_(i.NR[e],i.B8))},this.NR={},ZC._cp_(zingchart.THEMES,this.NR),this.NR.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:"outer","line-width":2,"line-color":"#3e6c7b"},"minor-tick":{visible:1,size:4,placement:"outer","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:{angle:270}},"scale-x-n":{label:{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:{angle:0},item:{"text-align":"center"},guide:{alpha:.25,"background-color":"#58595B -1"}},"scale-y-n":{label:{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.NR.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:"outer","line-width":1,"line-color":"#8C8C8C"},"minor-tick":{visible:1,size:3,placement:"outer","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:{angle:270}},"scale-x-n":{label:{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:{angle:0},item:{"text-align":"center"}},"scale-y-n":{label:{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:{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.NR.light.graph["crosshair-x"]=this.NR.light.graph["crosshair-y"]=this.NR.light.graph.guide,this.NR.dark={},ZC._cp_(this.NR.light,this.NR.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.NR.dark,!0,!0),this.NR.dark.graph["crosshair-x"]=this.NR.dark.graph["crosshair-y"]=this.NR.dark.graph.guide,this.NR.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.NR.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:"outer","line-width":2,"line-color":"#ccc"},"minor-tick":{visible:1,size:4,placement:"outer","line-width":1,"line-color":"#ccc"},label:{color:"#fff"},item:{color:"#fff"}}},radar:{"scale-k":{guide:{alpha:.5,"background-color":"#222 #333"}}},"-":""},this.NR.spark=this.NR.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:"60 auto 65 20"},plotarea:{width:"100%",height:"100%",margin:"60 50 65 50"},"plotarea[preview]":{margin:"60 50 105 50"},"plotarea[preview[yx]]":{margin:"60 50 65 105"},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:{angle:270},item:{"text-align":"right"}},"scale-y[opposite]":{label:{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:'%plot-text: %node-value',padding:10,"background-color":"#fff #eee","border-width":1,"border-color":"#999",color:"#000","text-align":"left"},"plot-label[multiple]":{text:'%plot-text: %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:{angle:0},item:{"text-align":"center"}},"scale-y-n":{label:{angle:0},item:{"text-align":"center"}},"scale-x[default]":{label:{angle:270}},"scale-x[opposite]":{label:{angle:90}},plot:{"value-box":{placement:"top-out"}}},vline:{"scale-y":{label:{angle:0},item:{"text-align":"center"}},"scale-y-n":{label:{angle:0},item:{"text-align":"center"}},"scale-x[default]":{label:{angle:270}},"scale-x[opposite]":{label:{angle:90}}},varea:{plot:{"fill-angle":0},"scale-y":{label:{angle:0},item:{"text-align":"center"}},"scale-y-n":{label:{angle:0},item:{"text-align":"center"}},"scale-x[default]":{label:{angle:270}},"scale-x[opposite]":{label:{angle:90}}},hbar3d:{"scale-y":{label:{angle:0}},"scale-x":{label:{angle:270}},"scale-y-n":{label:{angle:0}},"scale-x-n":{label:{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:{angle:0},item:{"text-align":"center"}},"scale-x":{label:{angle:270}},"scale-y-n":{label:{angle:0},item:{"text-align":"center"}},"scale-x-n":{label:{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:{angle:0},item:{"text-align":"center"}},"scale-x":{label:{angle:270}},"scale-y-n":{label:{angle:0},item:{"text-align":"center"}},"scale-x-n":{label:{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:{angle:0},item:{"text-align":"center"}},"scale-x":{label:{angle:270}},"scale-y-n":{label:{angle:0},item:{"text-align":"center"}},"scale-x-n":{label:{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:{angle:0},item:{"text-align":"center"}},"scale-x":{label:{angle:270}},"scale-y-n":{label:{angle:0},item:{"text-align":"center"}},"scale-x-n":{label:{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
High: $%high
Low: $%low
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.PP=function(e,i){var t,n=this,a=!1;return null!==ZC._n_(t=n.B8.graph[e])&&null!==ZC._n_(t.enabled)&&(a=a||ZC._b_(t.enabled)),null!==ZC._n_(n.B8[i])&&null!==ZC._n_(t=n.B8[i][e])&&null!==ZC._n_(t.enabled)&&(a=a||ZC._b_(t.enabled)),a},this.load=function(e,i,t,n){var a,l,o,r=this;t=null===ZC._n_(t)||ZC._b_(t),n=null!==ZC._n_(n)&&ZC._b_(n),i instanceof Array||(i=new Array(i));var s=[],C="";for(l=0,o=i.length;l'}return ZC.Q.FS("rect",i.EA,i.IK)+'class="'+e+'-label-area zc-label-area" id="'+i.K+'-area" coords="'+ZC._i_(i.iX+i.BK+ZC.MAPTX)+","+ZC._i_(i.iY+i.BI+ZC.MAPTX)+","+ZC._i_(i.iX+i.BK+i.I+ZC.MAPTX)+","+ZC._i_(i.iY+i.BI+i.F+ZC.MAPTX)+'" />'},N8:function(e){var i,t="",n=e.indexOf('id="');if(-1!==n){var a=e.indexOf('"',n+4);-1!==a&&(t=e.substring(n+4,a))}if(ZC.cache.data["area-score-"+t])return ZC.cache.data["area-score-"+t];var l=0;if(-1!==e.indexOf('shape="rect"')?(l+=1e4,5===(i=/coords=\"(\-*\d+),(\-*\d+),(\-*\d+),(\-*\d+)\"/.exec(e)).length&&(l+=(ZC._i_(i[3])-ZC._i_(i[1]))*(ZC._i_(i[4])-ZC._i_(i[2])))):-1!==e.indexOf('shape="circle"')?(l+=100,i=/coords=\"(\-*\d+),(\-*\d+),(\-*\d+)\"/.exec(e),null!==ZC._n_(i[3])&&(l+=ZC._i_(i[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 o=/data-z-sort=\"(\-*\d+)\"/.exec(e);o&&2===o.length&&(l*=ZC._i_(Math.pow(10,ZC._i_(o[1]))))}return""!==t&&ZC.cache.add("area-score-"+t,l),l},A5L:function(e,i,t){for(var n=[],a=0,l=e.length;a=9&&(o=null!==ZC._n_(i.decimals)&&-1!==i.decimals?""+ZC._x_(o,i.decimals):""+ZC._x_(o))}}else{var d=ZC.FT(ZC._a_(Number(o)))/Math.LN10;switch(ZC._a_(Number(o))){case 1e3:d=3;break;case 1e6:d=6;break;case 1e9:d=9}if(null!==ZC._n_(i["max-power"])&&(d=3*i["max-power"]),"KB"===s.toUpperCase())o=""+Number(o)/1024,a="KB";else if("MB"===s.toUpperCase())o=""+Number(o)/1048576,a="MB";else if("GB"===s.toUpperCase())o=""+Number(o)/1073741824,a="GB";else if("TB"===s.toUpperCase())o=""+Number(o)/1099511627776,a="TB";else if("PB"===s.toUpperCase())o=""+Number(o)/0x4000000000000,a="PB";else if(d>=0&&d<3)switch(s){default:o=o,a="";break;case"K":o=""+Number(o)/1e3,a="K";break;case"M":o=""+Number(o)/1e6,a="M";break;case"B":o=""+Number(o)/1e9,a="B"}else d>=3&&d<6&&""===s||"K"===s.toUpperCase()?(o=""+Number(o)/1e3,a="K"):d>=6&&d<9&&""===s||"M"===s.toUpperCase()?(o=""+Number(o)/1e6,a="M"):(d>=9&&""===s||"B"===s.toUpperCase())&&(o=""+Number(o)/1e9,a="B")}if(ZC.PC(o))if(null!==ZC._n_(i.decimals)&&-1!==i.decimals)o=ZC._fixed_(Number(o),ZC.BQ(0,ZC._i_(i.decimals)));else{var f=o.split(".")[1]||"";-1!==i["max-decimals"]&&i["max-decimals"]0)for(var n=0;n=100)return"#000000";e=ZC.AQ.GC(e),void 0===i&&(i=10);var t=ZC.QY(e.substring(1,3)),n=ZC.QY(e.substring(3,5)),a=ZC.QY(e.substring(5,7)),l=ZC.AQ.AD4(t,n,a);l[2]=i>0?Math.max(0,l[2]-l[2]*i/100):Math.min(1,l[2]-l[2]*i/100);var o=ZC.AQ.AD5(l[0],l[1],l[2]);return o[0]=ZC._i_(o[0])<16?"0"+ZC.OU(o[0]):ZC.OU(o[0]),o[1]=ZC._i_(o[1])<16?"0"+ZC.OU(o[1]):ZC.OU(o[1]),o[2]=ZC._i_(o[2])<16?"0"+ZC.OU(o[2]):ZC.OU(o[2]),e="#"+o[0]+o[1]+o[2]},R0:function(e,i){if(-1===e)return-1;if(i>=100)return"#ffffff";e=ZC.AQ.GC(e),void 0===i&&(i=10);var t=parseInt(e.substr(1,2),16),n=parseInt(e.substr(3,2),16),a=parseInt(e.substr(5,2),16);return"#"+(0|256+t+(256-t)*i/100).toString(16).substr(1)+(0|256+n+(256-n)*i/100).toString(16).substr(1)+(0|256+a+(256-a)*i/100).toString(16).substr(1)},_hex2rgb_:function(e,i){var t=parseInt(e.substr(1,2),16),n=parseInt(e.substr(3,2),16),a=parseInt(e.substr(5,2),16);return ZC._n_(i)?"rgb("+t+","+n+","+a+")":{r:t,g:n,b:a}},_rgb2hex_:function(e,i,t){return"#"+((1<<24)+(e<<16)+(i<<8)+t).toString(16).slice(1)},AAC:function(e,i,t){var n=ZC.AQ._hex2rgb_(e);return(299*n.r+587*n.g+114*n.b)/1e3>=128?t:i},_colorAlpha_:function(e,i,t){e=ZC.AQ.GC(e),i=ZC.AQ.GC(i);var n=ZC.AQ._hex2rgb_(e),a=ZC.AQ._hex2rgb_(i),l={};for(var o in n)l[o]=Math.floor(t*n[o]+(1-t)*a[o]);return ZC.AQ._rgb2hex_(l.r,l.g,l.b)},A3W:function(){},ABN:function(){},gc:function(e,i){var t;for(t=0;t")}catch(r){i=document.createElement("iframe")}else i=document.createElement("iframe");i.id=e.id+"-iframe",i.style.visibility="hidden",e.appendChild(i);var t=null,n=i.contentWindow||i.contentDocument;if(!(t=n.document?n.document:n).body){var a=t.createElement("HTML");t.appendChild(a);var l=t.createElement("HEAD");a.appendChild(l);var o=t.createElement("BODY");a.appendChild(o)}return t},C1:function(e){var i;if("undefined"==typeof ZC.TOUCHEVENTS){if(ZC.ie678)i=!1;else{i=!0;try{document.createEvent("TouchEvent")}catch(t){i=!1}}i&&!ZC.mobile&&(i=!1),i&&(i="ontouchstart"in document.documentElement),ZC.TOUCHEVENTS=i}else i=ZC.TOUCHEVENTS;if(i)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,i){var t,n,a,l=[],o=i.JU,r=i.OI,s=i.P5,C=o-s/2;if(e.length>0){var A=0,c=0;for(0!==o&&(A=ZC._i_(C*ZC.EI(r)+s),c=ZC._i_(C*ZC.EP(r)+s)),t=0,n=e.length;t=4&&(r[2]=e[2],r[3]=e[3]),e.length>=6&&(r[4]=e[4],r[5]=e[5]),7===e.length&&(r[6]=e[6]),i){case"canvas":case"svg":var s,C;if(t.D0)s=C=t.B1%2==1?.5:0,ZC.A5.browser.msie&&ZC.quirks&&"svg"===i&&(s=t.B1%2==1?.5:0,C=t.B1%2==1?0:.5),r[0]=Math.round(r[0])-s,r[1]=Math.round(r[1])-C,4===r.length&&(r[2]=Math.round(r[2])-s,r[3]=Math.round(r[3])-C);"svg"===i&&(r[0]=parseFloat(r[0].toFixed(4)),r[1]=parseFloat(r[1].toFixed(4)),4===r.length&&(r[2]=parseFloat(r[2].toFixed(4)),r[3]=parseFloat(r[3].toFixed(4)))),"canvas"!==i||n||"undefined"!=typeof t.BK&&"undefined"!=typeof t.BI&&(r[0]+=t.BK,r[1]+=t.BI,4===r.length&&(r[2]+=t.BK,r[3]+=t.BI));break;case"vml":t.AA%360==0?(l=10,o=t.B1%2==1?0:l/2):(l=1,o=0),t.D0?(r[0]=l*ZC._i_(ZC._i_(l*r[0])/l)-o,r[1]=l*ZC._i_(ZC._i_(l*r[1])/l)-o,4!==r.length&&7!==r.length||(r[2]=l*ZC._i_(ZC._i_(l*r[2])/l)-o,r[3]=l*ZC._i_(ZC._i_(l*r[3])/l)-o),7===r.length&&(r[4]=l*ZC._i_(ZC._i_(l*r[4])/l)-o,r[5]=l*ZC._i_(ZC._i_(l*r[5])/l)-o)):(r[0]=ZC._i_(l*r[0]),r[1]=ZC._i_(l*r[1]),4!==r.length&&7!==r.length||(r[2]=ZC._i_(l*r[2]),r[3]=ZC._i_(l*r[3])),7===r.length&&(r[4]=ZC._i_(l*r[4]),r[5]=ZC._i_(l*r[5])))}return r},A33:function(e,i,t,n,a){var l,o,r,s,C,A,c;if(t.QS&&(t.E["fast-vector-path"]=!0),!t.E["fast-vector-path"]){for(l=0,o=e.length;l=r[3]?.001:-.001),s=ZC.AO.BN(r[0],r[1],r[2],r[3]+d),C=ZC.AO.BN(r[0],r[1],r[2],r[4]-d),A="0 0",0===r[5]?r[4]-r[3]>360?(A="0 1",C[0]=s[0],C[1]=s[1]):A=r[4]-r[3]<=180?"0 1":"1 1":r[3]-r[4]>360?(A="0 0",C[0]=s[0],C[1]=s[1]):A=r[3]-r[4]<=180?"0 0":"1 0",p.push("a "+r[2]+","+r[2]+" 0 "+A+" "+(C[0]-s[0])+","+(C[1]-s[1]))}else"vml"===i&&(r[2]*=10,s=ZC.AO.BN(r[0],r[1],r[2],r[3]),C=ZC.AO.BN(r[0],r[1],r[2],r[4]),A=1===r[5]?"at":"wa",p.push(A+" "+ZC._i_(r[0]-r[2])+","+ZC._i_(r[1]-r[2])+","+ZC._i_(r[0]+r[2])+","+ZC._i_(r[1]+r[2])+" "+ZC._i_(s[0])+","+ZC._i_(s[1])+" "+ZC._i_(C[0])+","+ZC._i_(C[1])));else 7===r.length&&p.push(("svg"===i?"C ":"c ")+r[0]+" "+r[1]+" "+r[2]+" "+r[3]+" "+r[4]+" "+r[5])}else Z=!0;return t.E["fast-vector-path"]||t.O7&&ZC.cache.add("path-points-"+c,p.join("#")),t.H&&o<=20&&n&&(t.H.E[t.K+"-bounds"]=u),p},MH:function(e,i){var t,n,a=e.originalEvent||e.originalEventZC;return i=ZC._i_(i||"0"),a&&a.touches?a.touches.length>0?(t=a.touches[i].pageX,n=a.touches[i].pageY):a.changedTouches.length>0&&(t=a.changedTouches[i].pageX,n=a.changedTouches[i].pageY):(t=e.pageX,n=e.pageY),[ZC._i_(t||"0"),ZC._i_(n||"0")]},F7:function(e,i,t){var n;return t=t||document,null!==ZC._n_(i)?t.createElementNS?n=t.createElementNS(i,e):(n=t.createElement(e)).setAttribute("xmlns",i):n=t.createElement(e),"zcv:"===e.substring(0,4)&&(n.className="zcvml"),n},EV:function(e){var i;e instanceof Array||(e=[e]);for(var t=0,n=e.length;t1024&&"undefined"!=typeof e.innerHTML)return void(e.innerHTML="");if(s>0)for(var C=s-1;C>=0;C--)""===o?e.removeChild(e.childNodes[C]):0===e.childNodes[C].id.indexOf(o+"-")&&e.removeChild(e.childNodes[C])}},EC:function(e,i){switch("string"==typeof e&&(e=ZC.AL(e)),i){case"canvas":return e.getContext("2d");case"svg":case"vml":return e}},K1:function(e,i){switch(i){case"svg":return ZC.Q.ABO(e);case"vml":case"canvas":return ZC.Q.I4(e)}},HI:function(e,i){switch(i){case"svg":return ZC.Q.ABO(e);case"vml":return ZC.Q.I4(e);case"canvas":return ZC.Q.ADB(e)}},ABO:function(e){var i;if(ZC.AL(e.id))return ZC.AL(e.id);var t=ZC.Q.F7("g","http://www.w3.org/2000/svg");return null!==ZC._n_(i=e.id)&&t.setAttribute("id",i),null!==ZC._n_(i=e.cls)&&t.setAttribute("class",i),null!==ZC._n_(i=e.zidx)&&t.setAttribute("z-index",i),null!==ZC._n_(i=e["clip-path"])&&t.setAttribute("clip-path",i),e.after?e.p.insertBefore(t,e.after.nextSibling):e.p.appendChild(t),t},XJ:function(e){var i;ZC.Q.EV(e.id);var t=ZC.Q.F7("clipPath","http://www.w3.org/2000/svg");return t.id=e.id,null!==ZC._n_(e.cx)?((i=ZC.Q.F7("circle","http://www.w3.org/2000/svg")).id=e.id+"-shape",ZC.Q.G5(i,{cx:e.cx,cy:e.cy,r:e.r})):((i=ZC.Q.F7("polygon","http://www.w3.org/2000/svg")).id=e.id+"-shape",ZC.Q.G5(i,{points:e.path})),t.appendChild(i),t},ADB:function(e){var i;if(ZC.AL(e.id))return ZC.AL(e.id);var t=document.createElement("canvas"),n=t.style;if(null!==ZC._n_(i=e.id)&&(t.id=i),null!==ZC._n_(i=e.cls)&&(t.className=i),null!==ZC._n_(i=e.wh)){var a=(""+i).split("/");e.width=a[0],e.height=a[1]}if(null!==ZC._n_(i=e.tl)){var l=(""+i).split("/");e.top=l[0],e.left=l[1]}return t.width=e.width,t.height=e.height,null!==ZC._n_(i=e.left)&&(n.left=i+"px"),null!==ZC._n_(i=e.top)&&(n.top=i+"px"),null!==ZC._n_(i=e.display)&&(n.display=i),null!==ZC._n_(i=e.position)&&(n.position=i),null!==ZC._n_(i=e.zidx)&&(n.zIndex=i),e.p.appendChild(t),t},I4:function(e){var i,t,n,a,l,o;if(ZC.AL(e.id))return n=ZC.AL(e.id),null!==ZC._n_(i=e.wh)&&(l=(""+i).split("/"),n.style.width=l[0]+"px",n.style.height=l[1]+"px"),null!==ZC._n_(i=e.tl)&&(o=(""+i).split("/"),n.style.top=o[0]+"px",n.style.left=o[1]+"px"),n;(a=(n=document.createElement("div")).style).whiteSpace="nowrap",null!==ZC._n_(i=e.wh)&&(l=(""+i).split("/"),e.width=l[0],e.height=l[1]),null!==ZC._n_(i=e.tl)&&(o=(""+i).split("/"),e.top=o[0],e.left=o[1]),null!==ZC._n_(i=e.id)&&(n.id=i),null!==ZC._n_(i=e.cls)&&""!==i&&(n.className=i);for(var r=[["top","","px"],["left","","px"],["width","","px"],["height","","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,c=0,u=r.length;c")&&ZC.A5(n).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&&(n.style.unicodeBidi="bidi-override",n.style.direction="rtl"),e.cursor&&"hand"===e.cursor&&(n.style.cursor="pointer"),n},VS:null,A47:function(e,i,t,n,a,l,o){var r,s,C,A;null===ZC._n_(o)&&(o=!1);var c=!1;"[HTMLMODE]"===i.substring(0,10)&&(c=!0,i=i.substring(10)),A=e+"-text-ruler",-1!==e.indexOf("-fullscreen")&&(A="zc-text-ruler");var u="{{"+i+"}}"+t.replace(/[^a-z]/gi,"").toLowerCase()+n+l+a;if(ZC.cache.data["text-width-"+u]&&!o)return ZC.cache.data["text-width-"+u];if(ZC.cache.data["text-height-"+u]&&o)return ZC.cache.data["text-height-"+u];var p,Z=i;return Z=Z.replace(/
/g,'
'),(p=ZC.AL(A))?(ZC.Q.VS&&ZC.Q.VS===e+t+n+l+a||(p.style.fontFamily=t,p.style.fontSize=n+"px",p.style.fontWeight=a,p.style.lineHeight=c?"130%":-1!==l?ZC._i_(l)+"px":"130%",ZC.Q.VS=e+t+n+l+a),p.innerHTML=Z):(p=ZC.Q.I4({id:A,p:document.body,tl:"-9999/-9999",html:Z,position:"absolute",fontFamily:t,fontSize:n,cls:"zc-text-ruler",fontWeight:a})).style.lineHeight=c?"130%":-1!==l?ZC._i_(l)+"px":"130%",-1===i.indexOf("<")||-1===i.indexOf(">")||c||ZC.A5(p).children().each(function(){"BR"!==this.tagName.toUpperCase()&&(null!==ZC._n_(this.style.fontFamily)&&""!==this.style.fontFamily||(this.style.fontFamily=t),null!==ZC._n_(this.style.fontSize)&&""!==this.style.fontSize||(this.style.fontSize=n+"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=a)))}),(r=p.getBoundingClientRect())&&r.width>0?(s=r.width,o&&(C=r.height)):(s=ZC.mobile&&ZC.A5.browser.webkit?p.offsetWidth:ZC.A5(p).width(),o&&(C=ZC.mobile&&ZC.A5.browser.webkit?p.offsetHeight:ZC.A5(p).height())),o?(ZC.cache.add("text-height-"+u,C),C):(ZC.cache.add("text-width-"+u,s),s)}},!document.getElementsByClassName&&document.querySelectorAll&&(document.getElementsByClassName=function(e){return document.querySelectorAll("."+e)}),ZC.A5=function(e,i,t){var n,a,l,o,r=this;if(void 0===t&&(t=!0),t)return new ZC.A5(e,i,!1);if(r.OZ=[],r.Q7=e,r.MB=i,r.length=0,r.MB=r.MB||document.getElementsByTagName("body")[0],"object"==typeof r.Q7)r.OZ=[r.Q7];else if("string"==typeof r.Q7)for(var s=r.Q7.split(","),C=0;C")).length&&(c=!0,ZC.A5(n[0]).each(function(){var e=this;ZC.A5(n[1],this).each(function(){this.parentNode===e&&r.OZ.push(this)})})),2===(n=A.split(" ")).length&&(c=!0,ZC.A5(n[0]).each(function(){ZC.A5(n[1],this).each(function(){r.OZ.push(this)})})),!c)if("#"===A.substring(0,1))ZC.AL(A.substring(1))&&(r.OZ=[ZC.AL(A.substring(1))]);else if("."===A.substring(0,1))if(document.getElementsByClassName){if(r.MB.getElementsByClassName)a=r.MB.getElementsByClassName(A.substring(1));else if(a=document.getElementsByClassName(A.substring(1)),r.MB!==document){var u=[];for(l=0,o=a.length;l1)for(var l=1;l1)for(var a=1;a=0;n--)t[n][0]!==l||i&&t[n][1]!==i||ZC.A5.EVENTS[e].splice(n,1);return this}}},ZC.A5._list_=function(e){for(var i=[],t=0;t=200&&s.status<300)&&r&&r(s.responseText,s.status,s,i),s.status>=400&&o&&o(s,s.status,s.statusText,i),s.onreadystatechange=new window.Function,s=null)}),window.ActiveXObject||(s.onerror=function(){o&&o(s,0,"",i)}),"POST"===t.toUpperCase()?(s.open("POST",i,a),s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.setRequestHeader("Content-type","application/x-www-form-urlencoded")):(""!==n&&(-1===i.indexOf("?")&&(i+="?"),i+="&"+n),s.open("GET",i,a)),l&&l(s);try{s.send(n),a||((C||s.status>=200&&s.status<300)&&r&&r(s.responseText,s.status,s,i),s.status>=400&&o&&o(s,s.status,s.statusText,i),s=null)}catch(c){C&&o&&(o(s,s.status,s.statusText,i),s.onreadystatechange=new window.Function,s=null)}}},ZC.AO={ACJ:function(e,i){var t,n,a=zingchart.DEV.SPREADFACTOR,l=[],o=0;function r(e,i){-1===ZC.AV(e,i)&&e.push(i)}for(t=0;t1?e[t-2]:i,-1===s&&(s=l[o].min),l[o].min),r(l[o].items,t-1),r(l[o].items,t)):l[o]&&(l[o].max=e[t],l[o].max,o++);l[o]&&-1===l[o].max&&(l[o].max=360+i);var C=l.length;if(C>1&&l[C-1].max-l[0].min==360){for(n=0;n1&&(l[l.length-1].max=l[0].min+360),t=0;ti.x+i.width+t)&&(!(i.x>e.x+e.width+t)&&(!(e.y>i.y+i.height+t)&&!(i.y>e.y+e.height+t)))},_boxoverlap2_:function(e,i,t){return t=t||1,!(e.iX>i.iX+i.I+t)&&(!(i.iX>e.iX+e.I+t)&&(!(e.iY>i.iY+i.F+t)&&!(i.iY>e.iY+e.F+t)))},AGI:function(e,i){return e.iX>=i.iX&&e.iX<=i.iX+i.I&&e.iY>=i.iY&&e.iY<=i.iY+i.F&&e.iX+e.I>=i.iX&&e.iX+e.I<=i.iX+i.I&&e.iY+e.F>=i.iY&&e.iY+e.F<=i.iY+i.F},A6F:function(e,i,t){for(var n=Math.sqrt(e/Math.PI),a=Math.sqrt(i/Math.PI),l=Math.min(n,a),o=Math.max(n,a),r=ZC.MAX,s=0,C=l+o;C>o-l;C-=l/50){var A=l*l*Math.acos((C*C+l*l-o*o)/(2*C*l))+o*o*Math.acos((C*C+o*o-l*l)/(2*C*o))-.5*Math.sqrt((-C+l+o)*(C+l-o)*(C-l+o)*(C+l+o));Math.abs(A-t)i&&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]))>i&&A-l>1&&(s+=Math.round(e[A-1][0]+C+n,10)+","+Math.round(e[A-1][1]+C+a,10)+","),o=e[A][0]+C+n,r=e[A][1]+C+a,l=A,s+=Math.round(o,10)+","+Math.round(r,10)+","));return s=s.substring(0,s.length-1)},YZ:function(e,i){if(null===ZC._n_(e)||e.length<2)return"";null===ZC._n_(i)&&(i=6,ZC.mobile&&(i+=10));var t,n,a,l,o,r=[];for(t=0,n=e.length;t0&&null!==ZC._n_(e[t])&&null!==ZC._n_(e[t-1])&&e[t].join("/")!==e[t-1].join("/")||null===ZC._n_(e[t]))&&r.push(e[t]);var s=[],C=[],A=!1;for(t=0,n=r.length;t=h&&(o+=180),s.push(ZC.AO.BN(h,d,i,l+90),ZC.AO.BN(h,d,i,o),ZC.AO.BN(h,d,i,l+270));else if(t===r.length-1)a=Math.atan((Z-d)/(p-h)),o=l=ZC.U0(a),p>=h&&(o+=180),A?(C.push(ZC.AO.BN(h,d,i,l+270),ZC.AO.BN(h,d,i,o),ZC.AO.BN(h,d,i,l+90)),A=!1):s.push(ZC.AO.BN(h,d,i,l+270),ZC.AO.BN(h,d,i,o),ZC.AO.BN(h,d,i,l+90));else{var f=Math.atan((u-d)/(c-h)),_=Math.atan((d-Z)/(h-p));o=ZC.U0((f+_)/2),s.push(ZC.AO.BN(h,d,i,o+270)),c>=h&&p>=h?(s.push(ZC.AO.BN(h,d,i,o+180)),s.push(ZC.AO.BN(h,d,i,o+90)),C.push(ZC.AO.BN(h,d,i,o)),A=!0):c<=h&&p<=h?(s.push(ZC.AO.BN(h,d,i,o)),s.push(ZC.AO.BN(h,d,i,o+90)),C.push(ZC.AO.BN(h,d,i,o+180)),A=!0):C.push(ZC.AO.BN(h,d,i,o+90))}}for(t=C.length-1;t>=0;t--)s.push(C[t]);return s},A2F:function(e,i){var t=0,n=0,a=[];switch(e+=""){case"horizontal":case"h":t=1,n=i;break;case"vertical":case"v":t=i,n=1;break;default:a=e.split("x"),null!==ZC._n_(a[0])&&ZC._i_(a[0])+""===a[0]&&(t=ZC._i_(a[0])),null!==ZC._n_(a[1])&&ZC._i_(a[1])+""===a[1]&&(n=ZC._i_(a[1])),0===n&&0===t?(t=Math.ceil(Math.sqrt(i)),n=Math.ceil(i/t)):(0===n&&(n=Math.ceil(i/t)),0===t&&(t=Math.ceil(i/n)))}return[t,n]},AB5:function(e,i){return.5*(2*i[1]+(-i[0]+i[2])*e+(2*i[0]-5*i[1]+4*i[2]-i[3])*e*e+(-i[0]+3*i[1]-3*i[2]+i[3])*e*e*e)},ABE:function(e,i){var t,n,a,l,o,r=e.length,s=[],C=[],A=[];for(t=0;tt))return i[a];o=a-1}}n=Math.max(0,o);var s=t-e[n],C=s*s;return i[n]+c[n]*s+Z[n]*C+h[n]*s*C}},YC:function(e,i,t,n){null===ZC._n_(n)&&(n=1/(t/i.length*4));var a,l,o=[];if(e)if((a=[].concat(i))[1]&&a[2]){a[0]=a[0]||a[1]||a[2]||a[3],a[1]=a[1]||a[2]||a[0]||a[3],a[2]=a[2]||a[3]||a[1]||a[0],a[3]=a[3]||a[2]||a[1]||a[0];var r=ZC.AO.ABE([0,1,2,3],a);for(l=1;l<=2;l+=n)o.push([l-1,r(l)])}else o.push([]);else for(var s=1;s1||Z<0||Z>1?null:[a+p*(o-a),l+p*(r-l)]},_outside_:function(e,i){return e[0]i[2]||(e[1]i[3])},_angle_:function(e,i){var t=i[0]-e[0],n=i[1]-e[1];return Math.atan2(n,t)}},ZC.XQ={md5:function(e){return ZC.XQ.ACW(ZC.XQ.ACX(ZC.XQ.ACQ(e)))},ACX:function(e){return ZC.XQ.ACD(ZC.XQ.ACY(ZC.XQ.ACE(e),8*e.length))},ACW:function(e){for(var i,t="",n=0,a=e.length;n>>4&15)+"0123456789abcdef".charAt(15&i);return t},ACQ:function(e){for(var i,t,n="",a=-1,l=e.length;++a>>6&31,128|63&i):i<=65535?n+=String.fromCharCode(224|i>>>12&15,128|i>>>6&63,128|63&i):i<=2097151&&(n+=String.fromCharCode(240|i>>>18&7,128|i>>>12&63,128|i>>>6&63,128|63&i));return n},ACE:function(e){var i,t=Array(e.length>>2);for(i=0;i>5]|=(255&e.charCodeAt(i/8))<>5]>>>t%32&255);return i},ACY:function(e,i){function t(e,i,t,n,a,l){return r((o=r(r(i,e),r(n,l)))<<(s=a)|o>>>32-s,t);var o,s}function n(e,i,n,a,l,o,r){return t(i&n|~i&a,e,i,l,o,r)}function a(e,i,n,a,l,o,r){return t(i&a|n&~a,e,i,l,o,r)}function l(e,i,n,a,l,o,r){return t(i^n^a,e,i,l,o,r)}function o(e,i,n,a,l,o,r){return t(n^(i|~a),e,i,l,o,r)}function r(e,i){var t=(65535&e)+(65535&i);return(e>>16)+(i>>16)+(t>>16)<<16|65535&t}e[i>>5]|=128<>>9<<4)]=i;for(var s=1732584193,C=-271733879,A=-1732584194,c=271733878,u=0,p=e.length;uzingchart.DEV.MAXPOOLSIZE?(zingchart.pool.data={},zingchart.pool.size=0):zingchart.pool.data[t]=a}return a},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 i=0;i-1)return e[i].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,TRACKERMASKING:2,COPYVALUES:1},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,i){for(var t=(""+e).split(","),n=0,a=t.length;n100){if(a>ZC.GESTURE.dist+50)ZC.GESTURE.type="pinch-in",zingchart.exec(ZC.GESTURE.id,"zoomin");else if(aZC.GESTURE.mp[0]+10?(o["x-"]=!0,o.xdist=ZC._a_(ZC.GESTURE.mp[0]-l[0])):l[0]ZC.GESTURE.mp[1]+10?(o["y+"]=!0,o.ydist=ZC._a_(ZC.GESTURE.mp[1]-l[1])):l[1]=n.P.iX&&l<=n.P.iX+n.P.I&&o>=n.P.iY&&o<=n.P.iY+n.P.F),touch:ZC.mobile}},"undefined"==typeof zingchart.SC&&(zingchart.SC=function(e){for(var i=0,t=zingchart.I2.length;i1)){var n=zingchart.WZ(e);if(n){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 a=zingchart.A0O(e,n);a.target=zingchart.plugins.CLICK_TARGET||a.target,zingchart.plugins.CLICK_TARGET=null,ZC.mobile&&"touchend"===e.type&&(n.E["click-ts"]&&(new Date).getTime()-n.E["click-ts"]<500&&ZC.AQ.C0("dblclick",n,a),n.E["click-ts"]=(new Date).getTime()),ZC.AQ.C0("dblclick"===e.type?"dblclick":"click",n,a)}zingchart.SKIP.EVENT=!1,e.target.id!==n.K+"-menu-area"?n.hideCM():zingchart.Z0(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.SC),ZC.A5(document).bind("dblclick",zingchart.SC))),"undefined"==typeof zingchart.A2Y&&(zingchart.A2Y=function(e){e.touches.length>0&&(ZC.TOUCHEVENTS=!0)},ZC.A5(document).bind("touchstart",zingchart.A2Y)),"undefined"==typeof zingchart.Z0&&(zingchart.Z0=function(e,i,t){if(!(e&&e.target&&e.target.tagName&&"IMG"!==e.target.tagName.toUpperCase()&&"AREA"!==e.target.tagName.toUpperCase()&&-1===ZC.Q.T7(e.target).indexOf("zc-scroll")&&-1===e.target.id.indexOf("-legend-")&&-1===e.target.id.indexOf("-preview-"))||zingchart.DEV.SKIPTRACKERS){var n,a,l,o,r,s;t=t||{};var C=null===ZC._n_(i)?zingchart.WZ(e):zingchart.getLoader(i);if(C){if(-1!==ZC.AV(C.KP,"skip_context_menu"))return!1;if(null===ZC._n_(i)?(a=ZC.Q.MH(e),n=C.A5C(a[0],a[1])):n=null!==ZC._n_(t.graphid)?C.OV(t.graphid):C.AG[0],!n)return!1;var A=ZC.A5("#"+C.K+"-top");null===ZC._n_(i)?(l=a[0]-A.offset().left,o=a[1]-A.offset().top):(l=C.I/2,o=C.F/2);var c={};e&&(c=zingchart.A0O(e,C));var u=ZC.AQ.C0("contextmenu",C,c,!0);if(!u&&void 0!==u&&(!e&&!t["from-api"]||e&&e.target.id!==C.K+"-menu-area"))return e.preventDefault(),!1;var p=ZC._tx_(C.K);C.A60(n?n.L:-1,e);var Z=-1;if(0!==zingchart.CMZINDEX)Z=zingchart.CMZINDEX;else for(var h=ZC.AL(C.K);-1===Z&&null!==h.parentNode;)"auto"!==(Z=ZC._i_(ZC.A5(h).css("zIndex")))&&""!==Z&&null!==ZC._n_(Z)||(Z=-1),h=h.parentNode;Z&&-1!==Z&&null!==ZC._n_(Z)||(Z=1);var d=ZC.A5("#"+C.K+"-menu");if(d.css("zIndex",zingchart.ZINDEX+Z+1),null===ZC._n_(i)){if(e.target.id===C.K+"-print-png"||e.target.id===C.K+"-print-jpeg")return!0;e.preventDefault()}if(!ZC.AL(C.K+"-menu"))return!1;l=A.offset().left,o=A.offset().top;var f=A.width(),_=A.height();null===ZC._n_(i)?(r=(a=ZC.Q.MH(e))[0]||ZC.E2[0],s=a[1]||ZC.E2[1]):(r=l+C.I/2,s=o+5);var g=!1;if(C.VM("goback",!1),C.NV>0&&(C.VM("goback",!0),g=!0),C.VM("goforward",!1),C.NV=l&&r<=l+f*p[0]&&s>=o&&s<=o+_*p[1]){ZC.A5(".zc-menu").each(function(){this.id!==C.K+"-menu"&&C.hideCM()}),C.SQ=[r,s,null===ZC._n_(i)?e.target.id:i],d.css("opacity",0).show();var v,b,B=ZC._i_(d.css("width"))+ZC._i_(d.css("paddingLeft"))+ZC._i_(d.css("paddingRight")),m=ZC._i_(d.css("height"))+ZC._i_(d.css("paddingTop"))+ZC._i_(d.css("paddingBottom")),E=1,D=!1;if(C.o.gui&&C.o.gui["context-menu"]&&C.o.gui["context-menu"]&&(E=C.o.gui["context-menu"].alpha?C.o.gui["context-menu"].alpha:1,D=C.o.gui["context-menu"].docked),d.css("opacity",E).hide(),"classic"!==C.LK&&D){if(D){var F=C.B8.NR[C.LK].root.gui["context-menu"];ZC._cp_(C.o.gui["context-menu"],F),v="left"!==C.o.gui["context-menu"].position&&ZC._n_(C.o.gui["context-menu"].position)?A.offset().left+A.width()-B:A.offset().left}b=A.offset().top,d.css("left",ZC.BQ(1,v)+"px").css("top",ZC.BQ(1,b)+"px").css("height",A.height()+"px").css("box-sizing","border-box").show(),d=ZC.A5("#"+C.K+"-menu"),D&&d.OZ[0].scrollHeight>A.height()&&d.css("overflow-y","scroll")}else{if(null===ZC._n_(i)&&e.target.id===C.K+"-menu-area"){ZC.AL(C.K+"-menu").style.paddingTop=0;var K=ZC.A5("#"+C.K+"-menu-area").attr("coords").split(","),I=ZC._i_(K[3])-ZC._i_(K[1]);ZC.AL(C.K+"-menu").style.backgroundPosition=ZC._i_(K[0])>C.I/2?"100% 0% !important":"0% 0% !important",v=l+(ZC._i_(K[0])>C.I/2?ZC._i_(K[2])-B:ZC._i_(K[0])),b=o+(ZC._i_(K[1])>C.F/1.25?ZC._i_(K[3])-m-I:ZC._i_(K[3]))}else ZC.AL(C.K+"-menu").style.backgroundPosition="50% 0% !important",v=C.SQ[0]-B/2,b=C.SQ[1],m>C.F*p[1]?b=o:b-o+m>C.F*p[1]&&(b=ZC.BQ(b-m,C.F*p[1]-m)),vl+C.I*p[0]&&(v=ZC.CY(l+C.I*p[0]-B/2,v-B/2));if(t.position)switch(t.position){case"top":break;case"top-left":v=v-(C.I*p[0]-B)/2+5;break;case"top-right":v=v+(C.I*p[0]-B)/2-5;break;case"bottom":b=b+(C.F*p[1]-m)-10;break;case"bottom-left":b=b+(C.F*p[1]-m)-10,v=v-(C.I*p[0]-B)/2+5;break;case"bottom-right":b=b+(C.F*p[1]-m)-10,v=v+(C.I*p[0]-B)/2-5;break;case"left":b=b+(C.F*p[1]-m)/2-5,v=v-(C.I*p[0]-B)/2+5;break;case"right":b=b+(C.F*p[1]-m)/2-5,v=v+(C.I*p[1]-B)/2-5}else null!==ZC._n_(t.x)&&null!==ZC._n_(t.y)&&(v=l+ZC._i_(t.x),b=o+ZC._i_(t.y));if(d.css("left",ZC.BQ(1,v)+"px").css("top",ZC.BQ(1,b)+"px").show(),ZC.ie67){var x=ZC.A5("#"+C.K+"-menu div").width()[0]||120;d.css("width",x+"px")}}return C.A9C=!0,!1}}}},ZC.A5(document).bind("contextmenu",zingchart.Z0)),zingchart.AAL=function(e,i){if(zingchart.css)return zingchart.css.addRule?zingchart.css.addRule(e,i):zingchart.css.insertRule(e+"{"+i+"}",0)},zingchart.wh=function(e,i,t){"auto"===i&&(i="100%"),"auto"===t&&(t="100%");var n=[0,0];return-1===(""+i).indexOf("%")&&-1===(""+t).indexOf("%")||(n=e.wh()),[-1!==(""+i).indexOf("%")?n[0]*parseInt(i,10)/100:parseInt(i,10),-1!==(""+t).indexOf("%")?n[1]*parseInt(t,10)/100:parseInt(t,10)]},zingchart.IZ={},zingchart.bind=function(e,i,t){e=e||"zingchart-global",zingchart.IZ[e]||(zingchart.IZ[e]={}),zingchart.IZ[e][i]?zingchart.IZ[e][i].push({fn:t}):zingchart.IZ[e][i]=[{fn:t}]},zingchart.unbind=function(e,i,t){if(e=e||"zingchart-global",zingchart.IZ[e]&&zingchart.IZ[e][i])if(t){for(var n=0,a=zingchart.IZ[e][i].length;n0&&(X.width()!==M||X.height()!==O)&&(e=Z.LT||Z.QL?zingchart.wh(X,""+X.width(),""+X.height()):zingchart.wh(X,Z.G1,Z.MW))[0]>10&&e[1]>10){for(Z.I=ZC._i_(e[0]),Z.F=ZC._i_(e[1]),M=X.width(),O=X.height(),a=0,l=Z.AG.length;a10&&O>10){for(-1!==(""+Z.G1).indexOf("%")?Z.I=ZC._i_(M*ZC.IL(Z.G1)):Z.I=ZC._i_(M),-1!==(""+Z.MW).indexOf("%")?Z.F=ZC._i_(O*ZC.IL(Z.MW)):Z.F=ZC._i_(O),a=0,l=Z.AG.length;a%g:%i:%s %A
%q ms",second:"%d %M %Y
%g:%i:%s %A",minute:"%d %M %Y
%g:%i %A",hour:"%d %M %Y
%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-validemailmandatory":"Please enter a valid email address...","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.HD=zingchart.i18n.en_us,zingchart.getLoader=function(e){for(var i=0;i0&&(ZC.AQ.C0("history_back",c,c.FF()),c.NV--,zingchart.exec(c.K,"setdata",{data:c.QR[c.NV]}));break;case"goforward":c.IC&&c.NV10&&b[1]>10)&&(c.I=b[0],c.F=b[1],null!==ZC._n_(n=t.layout)&&(c.o.layout=n),""===c.MD&&(c.E["from-api"]=!0,c.E.preservezoom=!0,c.resize(_),c.G1=g,c.MW=v,c.A2K=!1));break;case"plothide":case"hideplot":(o=c.CA(t.graphid))&&o.A3V(t,"hide");break;case"showguide":case"hideguide":ZC.E2[0]=ZC._n_(t.x)?t.x:ZC.E2[0],ZC.E2[1]=ZC._n_(t.y)?t.y:ZC.E2[1],(o=c.CA(t.graphid))&&c.Z7(o.K,"showguide"===i);break;case"showtooltip":case"hidetooltip":case"clicknode":if(o=c.CA(t.graphid)){var B=t.ev||{};"showtooltip"!==i&&"clicknode"!==i||((r=o.I5(t.plotindex,t.plotid))&&r.R.length&&!t.xy?(s=r.L,C=ZC._i_(t.nodeindex||"0"),B.targetid=o.K+"-plotset-plot-"+s+"-node-"+C,B.update=!0):B.targetid=o.K+"-xy-"+ZC._i_(t.y||"0")+"-"+ZC._i_(t.x||"0")),"clicknode"===i?(B.which=0,o.TE(B)):o.A.A7&&("showtooltip"===i?o.A.A7.onmouseover(B,t.data):o.A.A7.hide())}break;case"locktooltip":ZC.TTLOCK=!0;break;case"unlocktooltip":ZC.TTLOCK=!1;break;case"showhoverstate":if(o=c.CA(t.graphid)){r=o.I5(t.plotindex,t.plotid),s=ZC._i_(r?r.L:0),C=ZC._i_(t.nodeindex||"0");var m=o.AZ.A3[s].FK(C);o.LJ(),m.A12()}break;case"plotshow":case"showplot":(o=c.CA(t.graphid))&&o.A3V(t,"show");break;case"togglesource":ZC.AL(c.K+"-viewsource")?ZC.Q.EV(c.K+"-viewsource"):c.A5X();break;case"togglebugreport":ZC.AL(c.K+"-bugreport")?ZC.Q.EV(c.K+"-bugreport"):c.A70();break;case"toggleabout":ZC.AL(c.K+"-about")?ZC.Q.EV([c.K+"-about",c.K+"-about-mask"]):c.AA6();break;case"toggleplot":(o=c.CA(t.graphid))&&o.QG(t);break;case"getcharttype":return(o=c.CA(t.graphid))?o.AF:null;case"showversion":case"getversion":return ZC.VERSION;case"get3dview":return(o=c.CA(t.graphid))?o.EZ:null;case"set3dview":(o=c.CA(t.graphid))&&(null===ZC._n_(c.o.graphset[o.L]["3d-aspect"])&&(c.o.graphset[o.L]["3d-aspect"]={}),ZC._cp_(t,c.o.graphset[o.L]["3d-aspect"]),null===ZC._n_(o.o["3d-aspect"])&&(o.o["3d-aspect"]={}),ZC._cp_(t,o.o["3d-aspect"]),zingchart.SKIP.PARSE3D=!0,o.autoFit(),o.K9(!0,!0),zingchart.SKIP.PARSE3D=!1);break;case"getpage":return c.L6;case"setpage":var E=0;null!==ZC._n_(n=t.page)&&(E=ZC._i_(n)),c.L6=E,ZC.ZP(function(){c.clear(),c.parse(),c.paint()},!0);break;case"unbinddocument":ZC.A5(document).unbind(ZC.Q.C1("mousemove"),zingchart.MM).unbind(ZC.Q.C1("mousedown"),zingchart.MM).unbind(ZC.Q.C1("mouseup"),zingchart.MM).unbind("click",zingchart.SC).unbind("contextmenu",zingchart.Z0),c.D7&&c.D7.unbind()}var D=[];for(zingchart.ABS&&null!==(A=zingchart.ABS(e,i,t))&&(n=A),D=["addobject","removeobject","updateobject","repaintobjects","getobjectsbyclass","getallobjects","getlabelinfo","getshapeinfo","setobjectsmode","settweenmode"],zingchart.AB4&&-1!==ZC.AV(D,i)&&null!==(A=zingchart.AB4(e,i,t))&&(n=A),D=["getimagedata","exportimage","saveasimage","exportdata","downloadCSV","downloadXLS","downloadRAW","viewDataTable"],zingchart.ABD&&-1!==ZC.AV(D,i)&&null!==(A=zingchart.ABD(e,i,t))&&(n=A),D=["getzoom","pan","zoomin","zoomout","zoomto","zoomtovalues","viewall"],zingchart.ABR&&-1!==ZC.AV(D,i)&&null!==(A=zingchart.ABR(e,i,t))&&(n=A),D=["clearselection","getselection","setselection","select","deselect"],zingchart.AAS&&-1!==ZC.AV(D,i)&&null!==(A=zingchart.AAS(e,i,t))&&(n=A),D=["clearfeed","getinterval","setinterval","stopfeed","startfeed"],zingchart.ABQ&&-1!==ZC.AV(D,i)&&null!==(A=zingchart.ABQ(e,i,t))&&(n=A),a=0,l=zingchart.A97.length;aB;C--)b[C]=b[C-1];b[B]=t.value||"",K.o.graphset[a.L][f].values=b}K.E.json=ZC.GW(JSON.stringify(K.o)),a.M1("on-change"),I&&(a.E["from-api"]=!0,a.K9(w,w))}break;case"removescalevalue":if(zingchart.SKIP.CSV=!0,a=K.CA(t.graphid)){for(f=t.scale||"scale-x",_=0,g=a.BO.length;_B;C--)v[C]=v[C-1];if(v[B]=t.value,!ie)for(_=0,g=a.BO.length;_B;C--)b[C]=b[C-1];b[B]=t[f+"-value"],K.o.graphset[a.L][f].values=b}ZC.AQ.C0("node_add",K,{id:K.K,graphid:a.K,plotindex:o.L,nodeindex:B,key:B,value:t.value,text:t.value}),K.o.graphset[a.L].series[o.L].values=a.o.series[o.L].values,K.E.json=ZC.GW(JSON.stringify(K.o)),a.M1("on-change"),I&&(a.E["from-api"]=!0,a.K9(w,w))}break;case"removenode":if(zingchart.SKIP.CSV=!0,(a=K.CA(t.graphid))&&(o=a.I5(t.plotindex,t.plotid))){v=a.o.series[o.L].values,B=null===ZC._n_(t.nodeindex)?o.R.length-1:ZC._i_(t.nodeindex);var ne=!0;if(null!==ZC._n_(t.nodekeyvalue))for(ne=!1,_=0,g=o.R.length;_0&&null!==ZC._n_(m[C][0])&&m[C][0].length>1,ce=!0;if(null!==ZC._n_(n=t.ignoreduplicates)&&(ce=ZC._b_(n)),Ae){var ue=Ce.length;for(c=0,u=m[C].length;c=0;Ze--){if(m[C][c][0]>Ce[Ze][0]){Ce.push(m[C][c]),pe=!0;break}if(m[C][c][0]===Ce[Ze][0]){pe=!0;break}}pe&&ce||Ce.push(m[C][c])}}else for(c=0,u=m[C].length;cm.length)for(_=m.length;_s.H.I&&(KU=!1),null!==ZC._n_(oRule["max-width"])&&ZC._i_(oRule["max-width"])s.H.F&&(KU=!1),null!==ZC._n_(oRule["max-height"])&&ZC._i_(oRule["max-height"])")}return""!==i?[i,ZC.XQ.md5(i)]:null},J5:function(){return!0},copy:function(e){var i=this;ZC._cp_(e.o,i.o),e.I8&&(i.I8=i.I8||{},ZC._cp_(e.I8,i.I8)),e.JC&&(i.JC=i.JC||{},ZC._cp_(e.JC,i.JC)),ZC._cp_(e.E,i.E),ZC._cp_(e.E7,i.E7)}};ZC.A9S=ZC.C9.CC(A9S);var CZ={$i:function(e){this.b(e);var i=this;e&&e.H&&(i.H=e.H),i.K="",i.DG=null,i.AN=!0,i.A0="-1",i.AE="-1",i.GR="",i.HN="",i.VJ=!0,i.DB="",i.M4="repeat",i.T9="50% 50%",i.WH="",i.KV=1,i.NI="linear",i.N9=90,i.VO=0,i.VN=0,i.B1=0,i.B7="#000",i.GD="",i.ET=0,i.G2=0,i.AU=0,i.BX="#000",i.C5=1,i.NZ=1,i.T1="butt",i.ZX="round",i.MA=!1,i.OI=45,i.JU=2,i.T2=.75,i.RS="#999",i.P5=0,i.D0=!0,i.N1=!1,i.L7=!1,i.A1Z=!1,i.LO=null,i.BH=""},getPMap:function(){var e=this.b();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","AN,A0,AE,GR,HN,DB,M4,T9,WH,KV,NI,N9,VO,VN,B1,B7,GD,ET,G2,AU,BX,NZ,C5,T1,MA,OI,JU,T2,RS,P5,DG,BH"),e},copy:function(e){this.b(e);for(var i="AN,A0,AE,GR,HN,DB,VJ,M4,T9,WH,KV,NI,N9,VO,VN,B1,B7,GD,ET,G2,AU,BX,NZ,C5,T1,MA,OI,JU,T2,RS,P5,D0,L7,DG,H,BH".split(","),t=0,n=i.length;t2&&null!==t[0]&&null!==t[t.length-1]&&t[0].join(",")===t[t.length-1].join(",")&&(i.T1="round");var u=i.H.AC;if("canvas"!==u||0!==i.B1&&"-1"!==i.B7){if(i.MA&&!n){i.C7=i.C7||i.Z;var p,Z=ZC.Q._sh_(t,i);"undefined"!=typeof i.A4P?p=i.A4P:((p=new ZC.DQ(i)).copy(i),p.K=i.K+"-sh",p.MA=!1,p.B1+=p.P5,p.B7=p.RS),p.C5=i.C5*p.T2,"undefined"==typeof i.ADG&&(i.A4P=p),p.D0=!1,o=i.C7?ZC.Q.EC(i.C7,u):e,ZC.CR.setup(o,p),ZC.CR.paint(o,p,Z,!1,1,l)}var h=ZC._i_(i.ET||"0"),d=ZC._i_(i.G2||"0");"solid"===i.GD&&(h=d=0);var f=t.length;"undefined"==typeof i.AA&&(i.AA=0),"canvas"===u&&(e.lineJoin=i.ZX,e.lineCap=i.T1,e.strokeStyle=ZC.AQ.A34(ZC.AQ.GC(i.B7),n?i.NZ:i.C5),e.lineWidth=i.B1,e.beginPath());var _=!1;if(-1!==ZC.AV(["svg","vml"],u))r=l?[]:ZC.Q.A33(t,u,i,n);else{var g=!1;"dashdot"!==i.GD&&(g=e.setLineDash)&&e.setLineDash(0===h||0===d?[]:[h,d]);var v=0,b=[ZC.MAX,ZC.MAX,-ZC.MAX,-ZC.MAX];for(c=0;ch){var y;v=0,y="dashdot"===i.GD?Math.floor(ZC._a_(w/((K+i.B1+d)/2))):Math.floor(ZC._a_(w/K));var L=Math.atan2(x,I),Y=Math.cos(L),X=Math.sin(L),M=m,O=E,P=h;for(C=0;Ch?e.lineTo(M+Y*h,O+X*h):w>0&&e.lineTo(M+Y*w,O+X*w),e.moveTo(D,F)}else v=w}}else _=!0;i.H&&f<=6&&n&&(i.H.E[i.K+"-bounds"]=b)}switch(u){case"canvas":e.globalCompositeOperation=i.A0W,e.stroke();break;case"svg":case"vml":if(null===ZC._n_(i.o["top-state"])&&i.H.O7&&(!n||i.E.areanode)){if(A=i.E.areanode?i.A0+"-"+i.AE+"-"+i.DB+"-"+i.B1+"-"+i.GD+"-"+i.C5+"-"+i.BK+"-"+i.BI:i.B7+"-"+i.B1+"-"+i.GD+"-"+i.C5+"-"+i.BK+"-"+i.BI,null===ZC._n_(i.H.NT[a])){i.H.NT[a]={uid:A,ctx:e,path:r,style:i,filled:n};break}if(i.H.NT[a].uid===A&&i.H.NT[a].path.length<2e3){C=i.H.NT[a].path,r&&r[0]&&(C.length>0&&C[C.length-1].replace(/[A-Z]+/,"")===r[0].replace(/[A-Z]+/,"")&&(r[0]=""),i.H.NT[a].path=i.H.NT[a].path.concat(r));break}"svg"===u?ZC.CR.WD(i.H.NT[a].ctx,i.H.NT[a].style,i.H.NT[a].path.join(" "),i.H.NT[a].filled):ZC.CR.WC(i.H.NT[a].ctx,i.H.NT[a].style,i.H.NT[a].path.join(" "),i.H.NT[a].filled),i.H.NT[a]={uid:A,ctx:e,path:r,style:i,filled:n};break}"svg"===u?ZC.CR.WD(e,i,r.join(" "),n,l):ZC.CR.WC(e,i,r.join(" "),n)}if(null!==ZC._n_(i.o["top-state"])&&!i.Y9&&!i.E["skip-top"]&&!i.VY){var H=new ZC.HQ(i.A);H.copy(i),H.VY=!0,H.MA=!1,H.Z=i.Z,H.append(i.o["top-state"]),H.K=i.K+"-top",H.parse(),"svg"===u?ZC.CR.WD(e,H,r.join(" "),n,l):"vml"===u?ZC.CR.WC(e,H,r.join(" "),n):ZC.CR.paint(e,H,t,n,a,l)}}}},smooth:function(e,i,t){var n,a,l,o;ZC._n_(i)&&(i=!1),t=t||"h";var r=[],s=[];for(n=0,a=e.length;n0&&(u.stroke=i.B7,u["stroke-width"]=i.B1,u["stroke-opacity"]=n?i.NZ:i.C5,"solid"===i.GD||0===i.ET&&0===i.G2||("dashdot"===i.GD?u["stroke-dasharray"]=[i.ET,i.G2,i.B1,i.G2].join(" "):u["stroke-dasharray"]=i.ET+","+i.G2)),l.id=d,""!==_&&(u.transform=_),i.o["fast-line"]&&i.B1>0?(l.setAttribute("stroke",u.stroke),l.setAttribute("stroke-width",u["stroke-width"]),l.setAttribute("stroke-opacity",u["stroke-opacity"]),l.setAttribute("d",t)):ZC.Q.G5(l,u),ZC.CR._append_(e,i,l),(!i.E.border||"all"===i.E.border)&&"undefined"!=typeof i.E.imgfill)if("string"==typeof i.E.imgfill)ZC.AL(d+"-imgfill")||(f=a?ZC.Q.F7("rect","http://www.w3.org/2000/svg"):ZC.Q.F7("path","http://www.w3.org/2000/svg"),ZC.Q.G5(f,{id:d+"-imgfill",transform:_,fill:i.E.imgfill,"fill-opacity":i.C5}),a?ZC.Q.G5(f,{x:o,y:r,width:ZC.BQ(0,s),height:ZC.BQ(0,C),rx:A,ry:c}):ZC.Q.G5(f,{d:t}),ZC.CR._append_(e,i,f));else if(!ZC.AL(d+"-imgfill")){var v=i.E.imgfill,b=ZC.Q.F7("image","http://www.w3.org/2000/svg");b.setAttributeNS?"zc."===i.DB.substring(0,3)?b.setAttributeNS("http://www.w3.org/1999/xlink","href",ZC.IMAGES[i.DB]):b.setAttributeNS("http://www.w3.org/1999/xlink","href",i.DB):"zc."===i.DB.substring(0,3)?b.setAttribute("src",ZC.IMAGES[i.DB]):b.setAttribute("src",i.DB),null!==ZC._n_(i.E["clip-path"])&&ZC.Q.G5(b,{"clip-path":"url(#"+i.E["clip-path"]+")"}),ZC.Q.G5(b,{id:d+"-imgfill",x:v[1],y:v[2],"fill-opacity":i.C5,width:i.E["bg-image-width"],height:i.E["bg-image-height"],preserveAspectRatio:"none"}),ZC.CR._append_(e,i,b)}}},WC:function(e,i,t,n){var a,l,o,r,s,C;n&&(t+=" x e");var A="";"undefined"==typeof i.K||""===i.K?"undefined"!=typeof i.H&&(A=i.H.GRAPHID+"-path-"+ZC.SEQ,ZC.SEQ++):A=i.K+"-path";var c=ZC.Q.F7("zcv:shape");c.style.position="absolute",c.style.rotation=i.AA,c.id=A;var u=ZC.Q.F7("zcv:path");if(u.v=t,u.setAttribute("VMLv",t),c.appendChild(u),0===i.B1)c.stroked=!1;else{var p=ZC.Q.F7("zcv:stroke");if(r=i.C5,"undefined"!=typeof i.E.A8I&&(r=i.E.A8I),"undefined"!=typeof i.E.stroke)l=i.E.stroke.weight,o=i.E.stroke.color,r=i.E.stroke.opacity,s=i.E.stroke.dashstyle;else{switch(s="solid",i.GD){case"solid":s="solid";break;case"dotted":s="dot";break;case"dashed":s="dash";break;default:s=i.GD}"solid"!==s&&"0 0"!=(a=ZC.CY(6,i.ET*i.B1)+" "+ZC.CY(8,i.G2*i.B1))&&(s=a),l=i.B1,o=i.B7}ZC.Q.G5(p,{weight:l+"px",color:o,opacity:r,miterlimit:10,endcap:"flat",joinstyle:"round",dashstyle:s}),c.appendChild(p)}n&&"undefined"!=typeof i.E.fill&&-1!==i.E.fill?(c.filled=!0,c.appendChild(i.E.fill)):c.filled=!1,ZC.Q.G5(c,{coordorigin:"0 0",coordsize:i.AA%360==0?"100 100":i.H.I+" "+i.H.F});var Z=0,h=0;if(i.AA%360!=0&&"undefined"!=typeof i.E.cx&&"undefined"!=typeof i.E.cy){var d=i.H.I/2-i.E.cx,f=i.H.F/2-i.E.cy,_=0===f?0:ZC.U0(Math.atan(d/f));i.E.cy>i.H.F/2&&(_+=180);var g=Math.sqrt(d*d+f*f);Z=d-g*ZC.EP(_-i.AA),h=f-g*ZC.EI(_-i.AA)}var v=0-Z;null!==ZC._n_(i.BK)&&(v+=i.BK);var b=0-h;if(null!==ZC._n_(i.BI)&&(b+=i.BI),c.style.left=v+"px",c.style.top=b+"px",e.appendChild(c),i.AA%360==0?(c.style.width="10px",c.style.height="10px"):(c.style.width=i.H.I+"px",c.style.height=i.H.F+"px"),("all"===i.E.border||"undefined"!=typeof i.E.imgfill)&&"undefined"!=typeof i.E.imgfill){var B=i.E.imgfill;1===B.length?((c=ZC.Q.F7("zcv:shape")).style.position="absolute",c.style.rotation=i.AA,(u=ZC.Q.F7("zcv:path")).v=t,c.appendChild(u),c.appendChild(B[0]),c.stroked=!1,ZC.Q.G5(c,{id:A+"-imgfill",filled:!0,coordorigin:"0 0",coordsize:i.AA%360==0?"100 100":i.H.I+" "+i.H.F}),c.style.left=v+"px",c.style.top=b+"px",e.appendChild(c),i.AA%360==0?(c.style.width="10px",c.style.height="10px"):(c.style.width=i.H.I+"px",c.style.height=i.H.F+"px")):3===B.length&&((C=ZC.Q.F7("img")).id=A+"-img","zc."===i.DB.substring(0,3)?C.src=ZC.IMAGES[i.DB]:C.src=i.DB,C.style.position="absolute",C.style.left=B[1]+"px",C.style.top=B[2]+"px",C.style.width=i.E["bg-image-width"]+"px",C.style.height=i.E["bg-image-height"]+"px",e.appendChild(C))}}};var DQ={$i:function(e){this.b(e);var i=this;i.A=e,i.Z=null,i.C7=null,i.H6="",i.iX=-1,i.iY=-1,i.DV="poly",i.D=[],i.D2=[0,0,0,0],i.AA=0,i.AI=0,i.JP=0,i.BK=0,i.BI=0,i.A99=0,i.DW=0,i.B4=0,i.BL=360,i.CO=0,i.TH=!1,i.ADA=!1,i.A4C=0,i.AAO="",i.O7=!1,i.A74=1,i.JS=1,i.EA=null,i.FC=null,i.IK="auto",i.KA=!1,i.A0W="source-over",i.QS=!1},getPMap:function(){var e=this.b();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,D,D2,B4,BL,CO,EA,FC,BK,BI,DW,AI,JP,AA,DV,KA,IK"),e},build:function(){},copy:function(e){this.b(e);var i,t,n=this,a="BK,BI,DW,AI,JP,AA,DV,KA,IK".split(",");for(i=0,t=a.length;i0)for(n.D=[],i=0,t=e.D.length;i=1||e<0||zingchart.DEV.IGNORESUBUNIT)&&!t?"x"===i?l+parseFloat(e):o+parseFloat(e):e>=0&&e<1||t?"x"===i?(r=r||1,Math.round(l+r*e)):(s=s||1,Math.round(o+s*e)):void 0},locate:function(e){var i,t=this;if(t.TH)return-1!==(""+t.o.x).indexOf("lon")?t.iX=t.ll_(t.o.x,"x"):t.ZN("x","iX"),-1!==(""+t.o.y).indexOf("lat")?t.iY=t.ll_(t.o.y,"y"):t.ZN("y","iY"),void t.A3Y();1===e?(null!==(i=ZC._n_(t.o.x))&&(t.iX=t.xy_(i,"x")),null!==(i=ZC._n_(t.o.y))&&(t.iY=t.xy_(i,"y")),-1===t.iX&&(t.iX=t.A.iX),-1===t.iY&&(t.iY=t.A.iY)):2===e&&(t.A3Y(),t.I=t.D2[2]-t.D2[0],t.F=t.D2[3]-t.D2[1])},A3Y:function(){var e,i=this,t=ZC.MAX,n=ZC.MAX,a=-ZC.MAX,l=-ZC.MAX;switch(i.DV){case"custom":t=0,n=0,a=0,l=0;break;case"circle":case"arc":case"pie":t=i.iX-i.AI,n=i.iY-i.AI,a=i.iX+i.AI,l=i.iY+i.AI;break;default:for(var o=0,r=i.D.length;o50&&(t=2),o>100&&(t=4),0===r?a%360!=l%360&&n.push([i.iX,i.iY]):n.push(ZC.AO.BN(i.iX,i.iY,r,a),ZC.AO.BN(i.iX,i.iY,(o+r)/2,a-.25*i.AU),ZC.AO.BN(i.iX,i.iY,o,a)),e=a;e<=l;e+=t)n.push(ZC.AO.BN(i.iX,i.iY,o,e));if(n.push(ZC.AO.BN(i.iX,i.iY,o,l)),n.push(ZC.AO.BN(i.iX,i.iY,(o+r)/2,l+.25*i.AU)),0===r)a%360!=l%360&&n.push([i.iX,i.iY]);else{for(n.push(ZC.AO.BN(i.iX,i.iY,r,l)),e=l;e>=a;e-=t)n.push(ZC.AO.BN(i.iX,i.iY,r,e));n.push(ZC.AO.BN(i.iX,i.iY,r,a))}return n.push([n[0][0],n[0][1]]),ZC.AO.PE(n,Math.min(5,o/5),[i.BK,i.BI])}if(0===i.AA||"rectangle"!==i.DV&&"rect"!==i.DV)return ZC.AO.PE(i.D,Math.min(5,i.AI/5),[i.BK,i.BI]);var s,C,A,c,u,p,Z,h,d=[];for(A=ZC._i_((i.D2[0]+i.D2[2])/2),c=ZC._i_((i.D2[1]+i.D2[3])/2),s=0,C=i.D.length;s-1&&p.push(ZC.AO.PE(t,Math.min(5,C.AI/5),[C.BK,C.BI])),t=[];if(0!==C.AA)for(n=ZC._i_((C.D2[0]+C.D2[2])/2),a=ZC._i_((C.D2[1]+C.D2[3])/2),e=0,i=t.length;e-1&&p.push(ZC.AO.PE(t,Math.min(5,C.AI/5),[C.BK,C.BI])),p}},parse:function(e){var i,t,n,a,l,o,r;null===ZC._n_(e)&&(e=!1),this.o.tween||e||this.b();var s=this;if(!s.o.tween&&!e){s.assign_a([["map","A4C"]]),"string"==typeof s.o.item&&s.assign_a([["item","AAO"]]),0!==s.A4C&&(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(t=0;t<2;t++){var A=C[t],c="offset-x"===A?"lon":"lat";if(null!==(i=s.o[A])&&void 0!==i&&-1!==(i=""+i).indexOf(c)){i=ZC._f_(i.replace(c,""));var u=zingchart.maps.maps[s.A4C];u&&(i=zingchart.maps.translate(A.replace("offset-"),i,s.A.I,s.A.F,u._INFO_.bbox),s.o[A]=i)}}for(s.assign_a([["url","EA"],["target","FC"],["cursor","IK"],["id","H6"],["angle","AA","i"],["static","KA","b"],["flat","KA","b"],["angle-start","B4","f"],["angle-end","BL","f"],["slice","CO","i"],["size","AI","f"],["size-2","JP","f"],["fast-vector-path","QS","b"],["type","DV"],["points","D"],["offset-x","BK"],["offset-y","BI"],["offset-z","A99","i"],["offset-r","DW","i"],["z-sort","A74","i"],["z-index","JS","f"],["composite","A0W"]]),s.BK=ZC.IL(s.BK,!0),s.BI=ZC.IL(s.BI,!0),s.BK>-1&&s.BK<1&&"undefined"!=typeof s.E["p-width"]&&(s.BK*=s.E["p-width"]),s.BI>-1&&s.BI<1&&"undefined"!=typeof s.E["p-height"]&&(s.BI*=s.E["p-height"]),s.AI=ZC.BQ(1,s.AI),s.JP=ZC.BQ(1,s.JP),null!==s.o["z-sort"]&&"undefined"!=typeof s.o["z-sort"]||(s.A74=s.JS),"rectangle"!==s.DV&&"rect"!==s.DV||s.assign_a([["width","AI","f"],["height","JP","f"]]),s.A4Z?(s.D=JSON.parse(JSON.stringify(s.FB)),s.A4Z=!1):s.FB=JSON.parse(JSON.stringify(s.D)),t=0,n=s.D.length;t4?2:7-a),t=0+o;t<360+o;t+=l)s.D.push(ZC.AO.BN(s.iX,s.iY,.75*Z,t),ZC.AO.BN(s.iX,s.iY,.75*r,t+l/2));s.D.push([s.D[0][0],s.D[0][1]]);break;case"rpoly3":case"rpoly4":case"rpoly5":case"rpoly6":case"rpoly7":case"rpoly8":case"rpoly9":for(s.D=[],Z=s.AI,l=360/(a=ZC._i_(s.DV.replace("rpoly",""))),o=a%2==0?0:-90,null!==ZC._n_(s.o["angle-offset"])&&(o=ZC._i_(s.o["angle-offset"])),t=0+o;t<360+o;t+=l)s.D.push(ZC.AO.BN(s.iX,s.iY,Z,t));s.D.push([s.D[0][0],s.D[0][1]]);break;case"gear3":case"gear4":case"gear5":case"gear6":case"gear7":case"gear8":case"gear9":for(s.D=[],Z=2*s.AI,l=360/(2*(a=ZC._i_(s.DV.replace("gear","")))),r=.75*Z,t=0+(o=a%2==0?0:-90);t<360+o;t+=2*l){var v=t+l/2;s.D.push(ZC.AO.BN(s.iX,s.iY,.75*Z,v),ZC.AO.BN(s.iX,s.iY,.75*Z,v+l),ZC.AO.BN(s.iX,s.iY,.75*r,v+l+0*l),ZC.AO.BN(s.iX,s.iY,.75*r,v+2*l-0*l))}s.D.push([s.D[0][0],s.D[0][1]]);break;case"hamburger":Z*=2;var b=s.iX,B=s.iY-10;s.D=s.D.concat([[b-Z/2,B-s.JP/2],[b+Z/2,B-s.JP/2],[b+Z/2,B+s.JP/2],[b-Z/2,B+s.JP/2],[b-Z/2,B-s.JP/2],null]),B+=5,s.D=s.D.concat([[b-Z/2,B-s.JP/2],[b+Z/2,B-s.JP/2],[b+Z/2,B+s.JP/2],[b-Z/2,B+s.JP/2],[b-Z/2,B-s.JP/2],null]),B+=5,s.D=s.D.concat([[b-Z/2,B-s.JP/2],[b+Z/2,B-s.JP/2],[b+Z/2,B+s.JP/2],[b-Z/2,B+s.JP/2],[b-Z/2,B-s.JP/2],null]);break;case"ellipse":for(s.D0=!1,s.D=[],t=0;t<=360;t+=5)s.D.push([s.iX+s.AI*ZC.EI(t),s.iY+s.JP*ZC.EP(t)]);s.D.push([s.D[0][0],s.D[0][1]]);break;case"arc":s.D0=!1,s.D=[ZC.AO.BN(s.iX,s.iY,s.AI,s.B4),[s.iX,s.iY,s.AI,s.B4,s.BL,0]];break;case"pie":for(var m=(s.o["pie-transform"]||"").split(/=|,/);s.B4<0||s.BL<0;)s.B4+=360,s.BL+=360;s.D0=!1;var E=!1;-1!==ZC.AV(["svg","vml"],s.H.AC)&&s.B4%360==s.BL%360&&(s.B4+=.05,s.BL-=.05,E=!0);var D,F,K,I,x,w=s.iX,y=s.iY,L=ZC._x_(s.B4,2),Y=ZC._x_(s.BL,2),X=ZC._x_((L+Y)/2,2),M=Z,O=s.CO,P=0===O&&L%360!=Y%360&&!E;switch(s.D=[],"circle"!==m[0]&&(0===O?L%360==Y%360||E||s.D.push([w,y]):s.D.push(ZC.AO.BN(w,y,O,L))),m[0]){case"flat":case"fold":s.D.push(ZC.AO.BN(w,y,M,L),ZC.AO.BN(w,y,M-("fold"===m[0]?ZC._i_(m[1]):0),Y)),P||s.D.push(ZC.AO.BN(w,y,O,Y));break;case"callout":s.D.push(ZC.AO.BN(w,y,M,L),[w,y,M,L,Y,0]),P||(D=1.5*ZC._i_(m[1])*360/(2*Math.PI*M),s.D.push(ZC.AO.BN(w,y,M,Y),ZC.AO.BN(w,y,O,Y),[w,y,O,Y,X+D,1],ZC.AO.BN(w,y,O-ZC._i_(m[1]),X),ZC.AO.BN(w,y,O,X-D),[w,y,O,X-D,L,1]));break;case"flow":D=ZC._i_(m[1]),I=ZC.AO.BN(w,y,(O+M)/2,L),99===D||-99===D?s.D.push([I[0],I[1],(M-O)/2,L+180,L,99===D?1:0]):s.D.push(ZC.AO.BN(w,y,(O+M)/2,L+D)),s.D.push(ZC.AO.BN(w,y,M,L),[w,y,M,L,Y,0]),x=ZC.AO.BN(w,y,(O+M)/2,Y),P?99===D||-99===D?s.D.push(ZC.AO.BN(w,y,M,Y),[x[0],x[1],(M-O)/2,Y,Y+180,99===D?0:1]):s.D.push(ZC.AO.BN(w,y,(O+M)/2,Y+D)):(99===D||-99===D?s.D.push([x[0],x[1],(M-O)/2,Y,Y+180,99===D?0:1]):s.D.push(ZC.AO.BN(w,y,(O+M)/2,Y+D)),s.D.push(ZC.AO.BN(w,y,O,Y),[w,y,O,Y,L,1]));break;case"circle":var H=ZC._f_(m[1]||"1"),N=(5+ZC._a_(Y-L)%360*50/360)*H;K=Y%360==L%360||E?[w,y]:ZC.AO.BN(w,y,(M+O)/2,(L+Y)/2),s.D.push(ZC.AO.BN(K[0],K[1],N,0),[K[0],K[1],N,0,360,0]);break;case"bite":D=ZC._i_(m[1]),F=ZC._i_(2*M*ZC.EP(D/2)),K=ZC.AO.BN(w,y,M,L),s.D.push(ZC.AO.BN(w,y,M-F,L),[K[0],K[1],F,L+180,L+90+(90-(180-D)/2),1],[w,y,M,L+D,Y,0]),P||s.D.push(ZC.AO.BN(w,y,O,Y),[w,y,O,Y,L,1]);break;case"droplet":for(var G=M,Q=1,k=0;M*Q+k>=G;)Q=ZC._x_(Q-.02,2),F=ZC._i_(M*Q/ZC.EI((Y-L)/2)),k=ZC._i_(M*Q*Math.tan(ZC.T8((Y-L)/2)));K=ZC.AO.BN(w,y,F,X),s.D.push(ZC.AO.BN(w,y,M*Q,L),[K[0],K[1],k,X-(360-(180-(Y-L)))/2,X+(360-(180-(Y-L)))/2,0]),P||s.D.push(ZC.AO.BN(w,y,O,Y),[w,y,O,Y,L,1]);break;default:s.D.push(ZC.AO.BN(w,y,M,L),[w,y,M,L,Y,0]),0===O?L%360==Y%360||E||s.D.push([w,y]):s.D.push(ZC.AO.BN(w,y,M,Y),ZC.AO.BN(w,y,O,Y),[w,y,O,Y,L,1])}s.D.push([s.D[0][0],s.D[0][1]])}}s.locate(2)},paint:function(){var e=this;if("none"!==e.DV&&("custom"===e.DV||"circle"===e.DV||"arc"===e.DV||0!==e.D.length)){var i,t,n={x:"iX",y:"iY",width:"I",height:"F",size:"AI"};if(e.o["bottom-state"]&&!e.Y9&&!e.VY&&!e.bIsBottom){var a=new ZC.DQ(e.A);for(i in a.copy(e),a.bIsBottom=!0,a.MA=!1,a.Z=e.Z,a.append({x:e.iX-e.A.iX,y:e.iY-e.A.iY}),a.append(e.o["bottom-state"]),a.K=e.K+"-bottom",a.parse(),t=!1,n)null===ZC._n_(a.o[i])||-1===(""+a.o[i]).indexOf("+")&&-1===(""+a.o[i]).indexOf("-")||(a.o[i]=a[n[i]]=e[n[i]]+ZC._i_(a.o[i]),t=!0);t&&a.parse(),a.paint()}var l=e.H.AC;switch(e.MA&&e.C7&&e.AA7(),l){case"canvas":e.A1R();break;case"svg":e.WD();break;case"vml":e.WC()}if(e.o["top-state"]&&!e.Y9&&!e.VY&&!e.bIsBottom){var o=new ZC.DQ(e.A);for(i in o.copy(e),o.VY=!0,o.MA=!1,o.Z=e.Z,o.append({x:e.iX-e.A.iX,y:e.iY-e.A.iY}),o.append(e.o["top-state"]),o.K=e.K+"-top",o.parse(),t=!1,n)null===ZC._n_(o.o[i])||-1===(""+o.o[i]).indexOf("+")&&-1===(""+o.o[i]).indexOf("-")||(o.o[i]=o[n[i]]=e[n[i]]+ZC._i_(o.o[i]),t=!0);t&&o.parse(),o.paint()}}},AA7:function(){var e,i=this,t=new ZC.DQ(i.A);t.K=i.K+"-sh",t.copy(i),t.O7=i.O7,t.Z=i.C7,t.MA=!1,t.Y9=!0,t.A0=t.AE=t.RS,t.GR=t.HN="",t.DB="",t.GD="solid",t.BX=t.RS,t.B1=0,t.C5=t.T2*i.C5,t.K=i.K+"-sh";var n=(i.JU-i.P5)*ZC.EI(i.OI)+i.P5,a=(i.JU-i.P5)*ZC.EP(i.OI)+i.P5;if(t.iX=i.iX+parseInt(n,10),t.iY=i.iY+parseInt(a,10),t.AI=i.AI+i.P5,i.D.length>0){e=[];for(var l=0,o=i.D.length;l0||"arc"===s.DV&&s.B1>0)&&C.stroke(),C.closePath();break;case"plus":case"cross":case"line":case"ic_line":s.B1>0&&(ZC.CR.setup(C,s),s.o.spline?(s.D0=!1,s.QS=!0,ZC.CR.paint(C,s,ZC.CR.smooth(s.D,!1,s.o.direction||"h"))):ZC.CR.paint(C,s,s.D));break;default:if(s.AU>0){var E=s.B7,D=s.B1;s.B7=s.BX,s.B1=s.AU,s.KY(),ZC.CR.setup(C,s),ZC.CR.paint(C,s,s.D,!0),s.B7=E,s.B1=D,s.KY()}C.closePath()}C.restore()},A2Q:function(e){var i=this,t=e.info,n=t.image,a=!0;switch(i.M4){default:a=!0;break;case"no-repeat":case"false":case!1:a=!1}var l=i.DB;0===n.src.indexOf("data:")&&(l=n.src),n.width*=i.KV,n.height*=i.KV;var o=""===i.K?"pattern-"+ZC.SEQ++:i.K+"-pattern";ZC.Q.EV(o);var r=ZC.Q.F7("image","http://www.w3.org/2000/svg");r.setAttributeNS?r.setAttributeNS("http://www.w3.org/1999/xlink","href",l):r.setAttribute("src",l),ZC.Q.G5(r,{id:o+"-image",preserveAspectRatio:"none",width:i.E["bg-image-width"],height:i.E["bg-image-height"]});var s=n.width,C=n.height;if(!a){var A,c;s=C=1,i.I>0&&i.F>0?(A=i.I,c=i.F):(A=i.D2[2]-i.D2[0],c=i.D2[3]-i.D2[1]);var u=ZC._i_(A*t.cx),p=ZC._i_(c*t.cy);if("pie"===i.DV){s=i.H?i.H.I:i.A.I,C=i.H?i.H.F:i.A.F;var Z=i.AA+i.B4+(i.BL-i.B4)*t.hPos,h=ZC.AO.BN(i.iX,i.iY,i.CO+(i.AI-i.CO)*t.vPos,Z);u=h[0]-n.width/2,p=h[1]-n.height/2}i.E["pattern-image-id"]=o+"-image",i.E["pattern-tx"]=u,i.E["pattern-ty"]=p,ZC.Q.G5(r,{transform:"translate("+u+","+p+")"})}var d=ZC.Q.F7("pattern","http://www.w3.org/2000/svg");ZC.Q.G5(d,{x:a?e.x:0,y:a?e.y:0,width:s,height:C,id:o,patternUnits:a||"pie"===i.DV?"userSpaceOnUse":"objectBoundingBox"}),i.H.K8.childNodes[0].appendChild(d),d.appendChild(r),i.E.imgfill="url(#"+o+")"},WX:function(e){null!==e&&void 0!==e||(e=!1);var i,t,n=this;if(n.A0!==n.AE||""!==n.GR&&""!==n.HN){var a=""===n.K?"gradient-"+ZC.SEQ++:n.K+"-gradient";(n.TH||e&&!ZC.AL(a))&&(e=!1),ZC.A5.browser.msie&&9===ZC._i_(ZC.A5.browser.version)&&(e=!1),ZC.AL(a)&&!e&&ZC.Q.EV(a);var l=n.YD(n.NI);if("radial"===n.NI?(i=e?ZC.AL(a):ZC.Q.F7("radialGradient","http://www.w3.org/2000/svg"),ZC.Q.G5(i,{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"===n.NI&&(i=e?ZC.AL(a):ZC.Q.F7("linearGradient","http://www.w3.org/2000/svg"),ZC.Q.G5(i,{x1:ZC._i_(l.x1),x2:ZC._i_(l.x2),y1:ZC._i_(l.y1),y2:ZC._i_(l.y2)})),!e){if(ZC.Q.G5(i,{id:a,gradientUnits:"userSpaceOnUse"}),n.H.K8.childNodes[0].appendChild(i),""!==n.GR&&""!==n.HN)for(var o=n.GR.split(/\s+|;/),r=n.HN.split(/\s+|;/),s=0,C=o.length;s6){for(var t="",n=0,a=i.length;n0&&e.indexOf("#")>=0)?(A=ZC.Q.F7("svg","http://www.w3.org/2000/svg"),ZC.Q.G5(A,{viewBox:"0 0 8 8",fill:o.E.fill}),l=ZC.Q.F7("use","http://www.w3.org/2000/svg")):l=ZC.Q.F7("image","http://www.w3.org/2000/svg"),l.setAttributeNS?l.setAttributeNS("http://www.w3.org/1999/xlink","href",e):l.setAttribute("src",e);var c=o.o.width?o.o.width:n.width,u=o.o.height?o.o.height:n.height;n.width=c,n.height=u,C?ZC.Q.G5(A,{id:o.K+"-image",x:o.iX-n.width/2+o.BK,y:o.iY-n.height/2+o.BI,width:n.width,height:n.height}):ZC.Q.G5(l,{id:o.K+"-image",x:o.iX-n.width/2+o.BK,y:o.iY-n.height/2+o.BI,width:n.width,height:n.height}),C?(A.appendChild(l),r.appendChild(A)):r.appendChild(l)}break;case"circle":if(!ZC.AL(o.K+"-circle")&&(a=ZC.Q.F7("circle","http://www.w3.org/2000/svg"),-1!==o.E.fill?ZC.Q.G5(a,{fill:o.E.fill,"fill-opacity":o.C5}):ZC.Q.G5(a,{fill:"none"}),o.DG&&""!==o.DG&&ZC.Q.G5(a,{"class":o.DG}),ZC.Q.G5(a,{id:o.K+"-circle",cx:o.iX+o.BK,cy:o.iY+o.BI,r:o.AI}),o.AU>0&&(ZC.Q.G5(a,{stroke:o.BX,"stroke-width":o.AU,"stroke-opacity":o.NZ}),o.KY(o.AU),"solid"===o.GD||0===o.ET&&0===o.G2||ZC.Q.G5(a,{"stroke-dasharray":"dashdot"===o.GD?[o.ET,o.G2,o.B1,o.G2].join(" "):[o.ET,o.G2].join(",")})),o.H&&o.H.G3?(o.H.G3[r.id]||(o.H.G3[r.id]=document.createDocumentFragment()),o.H.G3[r.id].appendChild(a)):r.appendChild(a),"undefined"!=typeof o.E.imgfill))if("string"==typeof o.E.imgfill)a=ZC.Q.F7("circle","http://www.w3.org/2000/svg"),ZC.Q.G5(a,{id:o.K+"-imgfill",fill:o.E.imgfill,"fill-opacity":o.C5,cx:o.iX+o.BK,cy:o.iY+o.BI,r:o.AI,"stroke-width":0}),o.H&&o.H.G3?o.H.G3[r.id].appendChild(a):r.appendChild(a);else{var p=o.E.imgfill;(l=ZC.Q.F7("image","http://www.w3.org/2000/svg")).setAttributeNS&&l.setAttributeNS("http://www.w3.org/1999/xlink","href",o.DB),o.E["clip-path"]&&ZC.Q.G5(l,{"clip-path":"url(#"+o.E["clip-path"]+(ZC.A5.browser.webkit?"-shape":"")+")"}),ZC.Q.G5(l,{id:o.K+"-imgfill",x:p[1],y:p[2],width:p[0].width,height:p[0].height}),r.appendChild(l)}break;case"plus":case"cross":case"line":case"ic_line":case"arc":o.B1>0&&(ZC.CR.setup(r,o),o.o.spline?(o.D0=!1,o.QS=!0,ZC.CR.paint(r,o,ZC.CR.smooth(o.D,!1,o.o.direction||"h"))):ZC.CR.paint(r,o,o.D));break;default:var Z=o.B7,h=o.B1;o.B7=o.BX,o.B1=o.AU,o.KY(),ZC.CR.setup(r,o),ZC.CR.paint(r,o,o.D,!0,0),o.B7=Z,o.B1=h,o.KY()}},WY:function(e,i){null!==i&&void 0!==i||(i=!1);var t,n=this;if(n.A0!==n.AE||""!==n.GR&&""!==n.HN){var a=""===n.K?"gradient-"+ZC.SEQ++:n.K+"-gradient";if(i&&!ZC.AL(a)&&(i=!1),ZC.AL(a)&&!i&&ZC.A5(a).remove(),t=i?ZC.AL(a):ZC.Q.F7("zcv:fill"),i&&(e=ZC.A5("#"+a).attr("focusposition")),""!==n.GR&&""!==n.HN){for(var l=n.GR.split(/\s+|;/),o=n.HN.split(/\s+|;/),r="",s="",C="",A=0,c=l.length;A0||o.B1>0?a.appendChild(c):a.stroked=!1,a.style.left=o.iX+o.BK-o.AI+"px",a.style.top=o.iY+o.BI-o.AI+"px",a.style.width=2*o.AI+"px",a.style.height=2*o.AI+"px","arc"===o.DV&&ZC.Q.G5(a,{startangle:o.BL+90,endangle:o.B4+90}),r.appendChild(a),s&&"undefined"!=typeof o.E.imgfill)){var u=o.E.imgfill;1===u.length?((a=ZC.Q.F7("zcv:oval")).id=o.K+"-imgfill",a.style.position="absolute",r.appendChild(a),a.appendChild(u[0]),a.style.left=o.iX+o.BK-o.AI+"px",a.style.top=o.iY+o.BI-o.AI+"px",a.style.width=2*o.AI+"px",a.style.height=2*o.AI+"px",a.stroked=!1,"arc"===o.DV&&ZC.Q.G5(a,{startangle:o.BL+90,endangle:o.B4+90})):3===u.length&&((l=ZC.Q.F7("img")).id=o.K+"-img",l.src=o.DB,l.style.position="absolute",l.style.left=u[1]+"px",l.style.top=u[2]+"px",1!==o.KV&&(l.width*=o.KV,l.height*=o.KV,l.style.width=l.width+"px",l.style.height=l.height+"px"),r.appendChild(l))}break;case"plus":case"cross":case"line":case"ic_line":o.B1>0&&(ZC.CR.setup(r,o),o.o.spline?(o.D0=!1,o.QS=!0,ZC.CR.paint(r,o,ZC.CR.smooth(o.D,!1,o.o.direction||"h"))):ZC.CR.paint(r,o,o.D));break;default:var p=o.B7,Z=o.B1;o.B7=o.BX,o.B1=o.AU,o.KY(),ZC.CR.setup(r,o),ZC.CR.paint(r,o,o.D,!0,0),o.B7=p,o.B1=Z,o.KY()}}};ZC.DQ=ZC.CZ.CC(DQ);var HQ={$i:function(e){this.b(e);var i=this;i.DV="box",i.I=0,i.F=0,i.A8J="",i.E9=-1,i.E8=-1,i.DU=-1,i.DZ=-1,i.F5=0,i.FV=0,i.F1=0,i.FE=0,i.A71=!1,i.KQ=!1,i.EN="bottom",i.EX=0,i.M5=0,i.HA=8,i.G9=8,i.XN=[1,1],i.DM=null,i.OM=null,i.PU=!1,i.N1=!0,i.PW="",i.OJ="",i.NP="",i.P9="",i.VB="tl",i.FD=!1},getPMap:function(){var e=this.b();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,F5,FV,F1,FE,KQ,EN,DM,HA,G9,EX,M5,A8J,PW,OJ,NP,P9,FD"),e},build:function(){},wh_:function(e,i,t){var n=this;if(i=i||"w",ZC._f_(e)+""!=e+"")return-1!==(e+="").indexOf("%")?n.wh_(ZC._f_(e.replace("%",""))/100,i,!0):-1!==e.indexOf("px")?n.wh_(ZC._f_(e.replace("px","")),i):n.wh_(ZC._f_(e),i);var a="undefined"!=typeof n.E["p-width"]?n.E["p-width"]:n.A.I,l="undefined"!=typeof n.E["p-height"]?n.E["p-height"]:n.A.F;return(e=ZC._a_(e))>1&&!t?ZC._i_(e):e<=1||t?"w"===i?ZC._i_(a*e):ZC._i_(l*e):void 0},m_:function(e,i,t,n,a){var l,o,r=this;if(t=t||0,n=n||0,i=i||"all",a=a||"n","all"===i){var s=String(e).split(/\s+|;|,/);return 1===s.length?[r.m_(s[0],"tb",t,n,a),r.m_(s[0],"lr",t,n,a),r.m_(s[0],"tb",t,n,a),r.m_(s[0],"lr",t,n,a)]:2===s.length?[r.m_(s[0],"tb",t,n,a),r.m_(s[1],"lr",t,n,a),r.m_(s[0],"tb",t,n,a),r.m_(s[1],"lr",t,n,a)]:3===s.length?[r.m_(s[0],"tb",t,n,a),r.m_(s[1],"lr",t,n,a),r.m_(s[2],"tb",t,n,a),r.m_(s[1],"lr",t,n,a)]:[r.m_(s[0],"tb",t,n,a),r.m_(s[1],"lr",t,n,a),r.m_(s[2],"tb",t,n,a),r.m_(s[3],"lr",t,n,a)]}return e+""=="auto"?-2:e+""=="dynamic"&&"y"===a?"dynamic":ZC._f_(e)+""!=e+""?-1!==(e+="").indexOf("%")?r.m_(ZC._f_(e.replace("%",""))/100,i):-1!==e.indexOf("px")?r.m_(ZC._f_(e.replace("px","")),i):r.m_(ZC._f_(e),i):((r.A||"undefined"!=typeof r.E["p-width"])&&(l="undefined"!=typeof r.E["p-width"]?r.E["p-width"]:r.A.I),(r.A||"undefined"!=typeof r.E["p-height"])&&(o="undefined"!=typeof r.E["p-height"]?r.E["p-height"]:r.A.F),(e=ZC._a_(e))>=1?ZC._i_(e):e<1?"lr"===i?ZC._i_((r.A?l:t)*e):ZC._i_((r.A?o:n)*e):void 0)},copy:function(e){this.b(e);for(var i="I,F,E9,DU,DZ,E8,F5,FV,F1,FE,KQ,EN,DM,XN,HA,G9,EX,M5,A8J,PW,OJ,NP,P9,FD".split(","),t=0,n=i.length;t1&&!v?ZC._i_(B):-2===Z&&-2===u?ZC._i_(C*B):-2===Z&&-2!==u?ZC._i_((C-u)*B):-2!==Z&&-2===u?ZC._i_((C-Z)*B):ZC._i_((C-Z-u)*B),-1!==o.iX?(o.DZ=o.iX-r,o.E8=r+C-o.DZ-o.I):-2===Z&&-2===u?(o.DZ=o.E8=(C-o.I)/2,o.iX=r+o.DZ):-2===Z&&-2!==u?(o.E8=u,o.DZ=C-o.E8-o.I,o.iX=r+o.DZ):(o.DZ=Z,o.iX=r+o.DZ,o instanceof ZC.DN?o.E8=u:o.E8=C-o.DZ-o.I)}else-1!==o.iX?(o.DZ=o.iX-r,o.E8=-2===u?0:u,o.I=C-o.DZ-o.E8):-2===Z&&-2===u?(o.DZ=o.E8=0,o.iX=r+o.DZ,o.I=C-o.DZ-o.E8):-2===Z&&-2!==u?(o.E8=u,o.DZ=0,o.iX=r+o.DZ,o.I=C-o.DZ-o.E8):-2!==Z&&-2===u?(o.DZ=Z,o instanceof ZC.DN?o.E8=u:o.E8=0,o.iX=r+o.DZ,o.I=C-o.DZ-o.E8):(o.DZ=Z,o.E8=u,o.iX=r+o.DZ,o.I=C-o.DZ-o.E8);if(null!==(i=ZC._n_(o.o.height))){var m=ZC._p_(i);v=-1!==(""+i).indexOf("%"),o.F=m>1&&!v?ZC._i_(m):-2===c&&-2===p?ZC._i_(A*m):-2===c&&-2!==p?ZC._i_((A-p)*m):-2!==c&&-2===p?ZC._i_((A-c)*m):ZC._i_((A-c-p)*m),-1!==o.iY?(o.E9=o.iY-s,o.DU=s+A-o.E9-o.F):-2===c&&-2===p?(o.E9=o.DU=(A-o.F)/2,o.iY=s+o.E9):-2===c&&-2!==p?(o.DU=p,o.E9=A-o.DU-o.F,o.iY=s+o.E9):(o.E9=c,o.iY=s+o.E9,o instanceof ZC.DN?o.DU=p:o.DU=A-o.E9-o.F)}else-1!==o.iY?(o.E9=o.iY-s,o.DU=-2===p?0:p,o.F=A-o.E9-o.DU):-2===c&&-2===c?(o.E9=o.E9=0,o.iY=s+o.E9,o.F=A-o.E9-o.DU):-2===c&&-2!==p?(o.DU=p,o.E9=0,o.iY=s+o.E9,o.F=A-o.E9-o.DU):-2===c&&-2!==p?(o.E9=c,o instanceof ZC.DN?o.DU=p:o.DU=0,o.iY=s+o.E9,o.F=A-o.E9-o.DU):(o.E9=c,o.DU=p,o.iY=s+o.E9,o.F=A-o.E9-o.DU);if(null!==(i=ZC._n_(o.o.position))){if(o.A&&"undefined"!=typeof o.A.iX&&"undefined"!=typeof o.A.iY&&"undefined"!=typeof o.A.I&&"undefined"!=typeof o.A.F){switch(n=0,a=0,(l=String(i).split(/\s+/))[0]){case"left":n=0;break;case"right":n=1;break;case"center":n=.5;break;default:(n=ZC.IL(l[0]))>1&&(n/=o.A.I)}switch(l[1]){case"top":a=0;break;case"bottom":a=1;break;case"middle":a=.5;break;default:(a=ZC.IL(l[1]))>1&&(a/=o.A.F)}}o.E["position-info"]=[n,a],o.iX=o.A.iX+ZC._i_(n*(o.A.I-o.I-b[1]-b[3]))+b[3],o.iY=o.A.iY+ZC._i_(a*(o.A.F-o.F-b[0]-b[2]))+b[0]}o.D2=[o.iX,o.iY,o.iX+o.I,o.iY+o.F]}}},parse:function(){this.b();var e,i=this;if(!i.o.tween){if(i.assign_a([["anchor","VB"],["rect-shortcut","FD","b"],["center-ref","A71","b"],["callout","KQ","b"],["callout-type","ACN"],["callout-position","EN"],["callout-hook","DM"],["callout-ratio","XN"],["callout-width","HA","i"],["callout-height","G9","i"],["callout-offset","EX","i"],["callout-extension","M5","i"],["border-top","PW"],["border-right","OJ"],["border-bottom","NP"],["border-left","P9"]]),null!==(e=ZC._n_(i.o["border-radius"]))){var t=String(e).split(/\s+|;|,/);2===t.length?(i.F5=i.FV=ZC._i_(t[0]),i.F1=i.FE=ZC._i_(t[1])):4===t.length?(i.F5=ZC._i_(t[0]),i.FV=ZC._i_(t[1]),i.F1=ZC._i_(t[2]),i.FE=ZC._i_(t[3])):i.F5=i.FV=i.F1=i.FE=ZC._i_(t[0])}null!==ZC._n_(i.o["callout-tip"])&&(i.OM=new ZC.DQ(i.A)),i.assign_a([["border-radius-top-left","F5","i"],["border-radius-top-right","FV","i"],["border-radius-bottom-right","F1","i"],["border-radius-bottom-left","FE","i"]])}},WW:function(e){var i=e.split(/\s/);return i[0]=ZC._i_(i[0]),i[2]=ZC.AQ.GC(i[2]),i},paint:function(){var e=this;if(null!==e.DM&&!(e.DM instanceof Array)&&"zcgraph"===e.A.OD){var i=e.A.V4(e.DM);e.DM=[i[0],i[1]],e.DM[0]-=e.BK,e.DM[1]-=e.BI}if(e.A71&&(e.iX-=e.I/2,e.iY-=e.F/2),"-1"!==e.BX&&0!==e.AU||e.PW+e.OJ+e.NP+e.P9!==""||"-1"!==e.A0||"-1"!==e.AE||""!==e.DB||""!==e.GR||""!==e.HN){var t,n=e.H.AC;e.MA&&e.C7&&e.AA7();var a={x:"iX",y:"iY",width:"I",height:"F"};if(e.o["bottom-state"]&&!e.Y9&&!e.bIsBottom&&!e.VY){var l=new ZC.HQ(e.A);for(t in l.copy(e),l.bIsBottom=!0,l.MA=!1,l.Z=e.Z,l.VB=e.VB,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,a)null===ZC._n_(l.o[t])||-1===(""+l.o[t]).indexOf("+")&&-1===(""+l.o[t]).indexOf("-")||(l[a[t]]=e[a[t]]+ZC._i_(l.o[t]),!0);l.paint()}if(e.PW+e.OJ+e.NP+e.P9===""){switch(n){case"canvas":e.A1R();break;case"svg":e.WD();break;case"vml":e.WC()}if(e.KQ&&e.OM){var o,r;if(e.DM&&2===e.DM.length?(o=e.DM[0],r=e.DM[1]):e.E.cp&&(o=e.E.cp[0],r=e.E.cp[1]),e.OM.Z=e.OM.C7=e.Z,e.OM.copy(e),e.OM.append(e.o["callout-tip"]),e.OM.K=e.K+"-callout-tip",e.OM.o.x=o,e.OM.o.y=r,e.E.cm){var s=e.E.cm[0],C=e.E.cm[1],A=Math.atan2(ZC._i_(C)-ZC._i_(r),ZC._i_(s)-ZC._i_(o));isNaN(A)&&(A=0),null===ZC._n_(e.OM.o.angle)&&(e.OM.o.angle=ZC.U0(A))}e.OM.parse(),e.OM.paint()}}else{var c=e.AU,u=e.BX,p=e.GD;switch(e.AU=0,n){case"canvas":e.A1R();break;case"svg":e.WD();break;case"vml":e.WC()}e.AU=c;var Z=e.A0,h=e.AE;e.A0=e.AE="-1";for(var d,f=["top","right","bottom","left"],_=["PW","OJ","NP","P9"],g=0;g=t.F?ZC._a_(ZC.EP(t.N9))>.5?t.F/2:t.I/2:ZC._a_(ZC.EI(t.N9))>.5?t.I/2:t.F/2)*ZC.EI(t.N9),u=i*ZC.EP(t.N9);return{x1:l-c,y1:o-u,x2:l+c,y2:o+u}}},WE:function(e){var i,t=this;void 0===e&&(e="all");var n,a,l=t.iX,o=t.iY;t.D=[],n=a=t.AU/2;var r=1;switch(t.H.AC){case"vml":r=2,t.AU%2==1&&(n=ZC._i_((t.AU-1)/2),a=ZC._i_((t.AU+1)/2))}var s=null,C=ZC._x_(l+n,2),A=ZC._x_(l-a,2),c=ZC._x_(o+n,2),u=ZC._x_(o-a,2),p=t.DM&&2===t.DM.length,Z=ZC._i_(t.EX*(t.I-t.HA)/100),h=ZC._i_(t.EX*(t.F-t.G9)/100),d=0!==t.F5||0!==t.FV||0!==t.F1||0!==t.FE,f=t.XN[0],_=t.XN[1];switch(t.EN){case"top":t.E.cm=[t.iX+t.I/2+Z,t.iY];break;case"bottom":t.E.cm=[t.iX+t.I/2+Z,t.iY+t.F];break;case"left":t.E.cm=[t.iX,t.iY+t.F/2+h];break;case"right":t.E.cm=[t.iX+t.I,t.iY+t.F/2+h]}if(d){var g,v=ZC.CY(t.I/2,t.F/2);"top"!==e&&"all"!==e||(0!==t.F5?(g=t.I/2>=t.F5&&t.F/2>=t.F5?ZC._a_(t.F5):v,t.D.push([C,c+g]),t.F5>0&&t.D.push([C,c,C+r*g,c]),t.D.push([C+g,c])):t.D.push([C,c]),t.KQ&&"top"===t.EN&&(t.D.push([C+t.I/2-f*t.HA/2-t.AU/2+Z,c]),p?t.D.push([t.DM[0],t.DM[1]]):(s=[C+t.I/2-t.AU/2+Z,c-t.G9],t.D.push(s)),t.M5>0&&(i=t.D[t.D.length-1],t.D.push([i[0],i[1]-t.M5*(t.G9>0?1:-1)]),t.D.push([i[0],i[1]])),t.D.push([C+t.I/2-t.AU/2+_*t.HA/2+Z,c])),"top"===e&&(0!==t.FV?(g=t.I/2>=t.FV&&t.F/2>=t.FV?ZC._a_(t.FV):v,t.D.push([A+t.I-g,c])):t.D.push([A+t.I,c]))),"right"!==e&&"all"!==e||(0!==t.FV?(g=t.I/2>=t.FV&&t.F/2>=t.FV?ZC._a_(t.FV):v,t.D.push([A+t.I-g,c]),t.FV>0?t.D.push([A+t.I,c,A+t.I,c+r*g]):t.D.push([A+t.I,c+g])):t.D.push([A+t.I,c]),t.KQ&&"right"===t.EN&&(t.D.push([A+t.I,c+t.F/2-f*t.G9/2-t.AU/2+h]),p?t.D.push([t.DM[0],t.DM[1]]):(s=[A+t.I+t.HA,c+t.F/2-t.AU/2+h],t.D.push(s)),t.D.push([A+t.I,c+t.F/2+_*t.G9/2-t.AU/2+h])),"right"===e&&(0!==t.F1?(g=t.I/2>=t.F1&&t.F/2>=t.F1?ZC._a_(t.F1):v,t.D.push([A+t.I,u+t.F-g])):t.D.push([A+t.I,u+t.F]))),"bottom"!==e&&"all"!==e||(0!==t.F1?(g=t.I/2>=t.F1&&t.F/2>=t.F1?ZC._a_(t.F1):v,t.D.push([A+t.I,u+t.F-g]),t.F1>0?t.D.push([A+t.I,u+t.F,A+t.I-r*g,u+t.F]):t.D.push([A+t.I-g,u+t.F])):t.D.push([A+t.I,u+t.F]),t.KQ&&"bottom"===t.EN&&(t.D.push([A+t.I/2+f*t.HA/2+t.AU/2+Z,u+t.F]),p?t.D.push([t.DM[0],t.DM[1]]):(s=[A+t.I/2+t.AU/2+Z,u+t.F+t.G9],t.D.push(s)),t.M5>0&&(i=t.D[t.D.length-1],t.D.push([i[0],i[1]+t.M5*(t.G9>0?1:-1)]),t.D.push([i[0],i[1]])),t.D.push([A+t.I/2-_*t.HA/2+t.AU/2+Z,u+t.F])),"bottom"===e&&(0!==t.FE?(g=t.I/2>=t.FE&&t.F/2>=t.FE?ZC._a_(t.FE):v,t.D.push([C+g,u+t.F])):t.D.push([C,u+t.F]))),"left"!==e&&"all"!==e||(0!==t.FE?(g=t.I/2>=t.FE&&t.F/2>=t.FE?ZC._a_(t.FE):v,t.D.push([C+g,u+t.F]),t.FE>0?t.D.push([C,u+t.F,C,u+t.F-r*g]):t.D.push([C,u+t.F-g])):t.D.push([C,u+t.F]),t.KQ&&"left"===t.EN&&(t.D.push([C,u+t.F/2+f*t.G9/2+t.AU/2+h]),p?t.D.push([t.DM[0],t.DM[1]]):(s=[C-t.HA,u+t.F/2+t.AU/2+h],t.D.push(s)),t.D.push([C,u+t.F/2-_*t.G9/2+t.AU/2+h])),0!==t.F5?(g=t.I/2>=t.F5&&t.F/2>=t.F5?ZC._a_(t.F5):v,t.D.push([C,c+g])):(t.D.push([C,c]),t.D.push([C+.1,c])))}else"top"!==e&&"all"!==e||("top"===e?t.D.push([C+.5,c+.5]):t.D.push([C,c]),t.KQ&&"top"===t.EN&&(t.D.push([C+t.I/2-f*t.HA/2-t.AU/2+Z,c]),p?t.D.push([t.DM[0],t.DM[1]]):(s=[C+t.I/2-t.AU/2+Z,c-t.G9],t.D.push(s)),t.M5>0&&(i=t.D[t.D.length-1],t.D.push([i[0],i[1]-t.M5*(t.G9>0?1:-1)]),t.D.push([i[0],i[1]])),t.D.push([C+t.I/2+_*t.HA/2-t.AU/2+Z,c])),"top"===e&&t.D.push([A+t.I+.5,c+.5])),"right"!==e&&"all"!==e||("right"===e?t.D.push([A+t.I+.5,c+.5]):t.D.push([A+t.I,c]),t.KQ&&"right"===t.EN&&(t.D.push([A+t.I,c+t.F/2-t.AU/2-f*t.G9/2+h]),p?t.D.push([t.DM[0],t.DM[1]]):(s=[A+t.I+t.HA,c+t.F/2-t.AU/2+h],t.D.push(s)),t.D.push([A+t.I,c+t.F/2-t.AU/2+_*t.G9/2+h])),"right"===e&&t.D.push([A+t.I+.5,u+t.F+.5])),"bottom"!==e&&"all"!==e||("bottom"===e?t.D.push([A+t.I+.5,u+t.F+.5]):t.D.push([A+t.I,u+t.F]),t.KQ&&"bottom"===t.EN&&(t.D.push([A+t.I/2+f*t.HA/2+t.AU/2+Z,u+t.F]),p?t.D.push([t.DM[0],t.DM[1]]):(s=[A+t.I/2+t.AU/2+Z,u+t.F+t.G9],t.D.push(s)),t.M5>0&&(i=t.D[t.D.length-1],t.D.push([i[0],i[1]+t.M5*(t.G9>0?1:-1)]),t.D.push([i[0],i[1]])),t.D.push([A+t.I/2-_*t.HA/2+t.AU/2+Z,u+t.F])),"bottom"===e&&t.D.push([C+.5,u+t.F+.5])),"left"!==e&&"all"!==e||("left"===e?t.D.push([C+.5,u+t.F+.5]):t.D.push([C,u+t.F]),t.KQ&&"left"===t.EN&&(t.D.push([C,u+t.F/2+t.AU/2+f*t.G9/2+h]),p?t.D.push([t.DM[0],t.DM[1]]):(s=[C-t.HA,u+t.F/2+t.AU/2+h],t.D.push(s)),t.D.push([C,u+t.F/2+t.AU/2-_*t.G9/2+h])),"left"===e?t.D.push([C+.5,c+.5]):(t.D.push([C,c]),t.D.push([C+.1,c])));s&&(t.E.cp=s)},A1R:function(e){e=e||"all";var i,t,n,a=this,l=a.Z.getContext("2d");l.save(),l.globalCompositeOperation=a.A0W;var o=a.iX,r=a.iY,s=a.A1T(),C=s.bc,A=s.bgc1,c=s.bgc2;if("all"===e)if(A!==c||""!==a.GR&&""!==a.HN){var u=a.YD(a.NI);"radial"===a.NI?i=l.createRadialGradient(u.cx,u.cy,1,u.cx,u.cy,u.r):"linear"===a.NI&&(u.x1=isNaN(u.x1)?0:u.x1,u.x2=isNaN(u.x2)?0:u.x2,u.y1=isNaN(u.y1)?0:u.y1,u.y2=isNaN(u.y2)?0:u.y2,i=l.createLinearGradient(u.x1,u.y1,u.x2,u.y2)),""!==a.GR&&""!==a.HN?a.ZQ(i):(i.addColorStop(0,A),i.addColorStop(1,c)),l.fillStyle=i}else""!==a.DB&&-1!==ZC.AV(["repeat","true",!0],a.M4)&&"-1"===a.A0&&"-1"===a.AE&&(A="rgba(255,255,255,0)"),l.fillStyle=A;l.strokeStyle=C,l.lineWidth=a.AU,l.translate(a.BK,a.BI),0!==a.AA&&(l.translate(o+a.I/2,r+a.F/2),l.rotate(ZC.T8(a.AA)),l.translate(-(o+a.I/2),-(r+a.F/2))),l.beginPath(),a.WE(e);var p=a.F5+a.FV+a.F1+a.FE!==0;n=a.B1,a.B1=a.AU;var Z=a.GD;if(a.GD="",a.KY(),ZC.CR.contour(l,a,a.D),a.B1=n,a.GD=Z,a.KY(),"all"===e)if(""!==a.DB&&-1===ZC.AV(ZC.IMG404,a.DB)){l.fill(),l.save(),l.clip();var h=l.globalAlpha;l.globalAlpha=a.C5;var d=a.RI(),f=d.image;switch(a.M4){default:l.translate(a.iX,a.iY),t=l.createPattern(f,"repeat"),l.fillStyle=t,l.fill(),l.translate(-d.x,-d.y);break;case"no-repeat":case"false":case!1:l.drawImage(f,d.x-a.BK,d.y-a.BI,a.E["bg-image-width"],a.E["bg-image-height"])}l.globalAlpha=h,l.restore()}else l.fill();if(a.AU>0){var _=a.B7;n=a.B1,a.B7=a.BX,a.B1=a.AU,a.KY(),ZC.CR.setup(l,a),a.T1=p?"round":"square",a.ET+a.G2>0&&(a.T1="butt"),a.ZX=p?"round":"miter",a.E["skip-top"]=!0,a.E.border=e,ZC.CR.paint(l,a,a.D,!0),a.B7=_,a.B1=n,a.KY()}l.closePath(),l.restore()},WD:function(e){e=e||"all";var i=this,t=i.Z;i.E.fill=-1;var n=!1;if("all"===e){if(""!==i.DB&&-1===ZC.AV(ZC.IMG404,i.DB)){var a=i.RI();i.A2Q({info:a,x:i.iX,y:i.iY}),n=!0}i.WX()}if(i.WE(e),n&&"repeat"!==i.M4&&i.KQ){var l=0,o=0;i.D2[1]0&&(i.T1="butt"),i.ZX=r?"round":"miter";var A=!1;ZC.A5.browser.msie||!i.FD||i.KQ||""!==i.PW||""!==i.OJ||""!==i.NP||""!==i.P9||0!==i.F5||0!==i.FV||0!==i.F1||0!==i.FE||(A=!0),i.E["skip-top"]=!0,i.E.border=e,ZC.CR.paint(t,i,i.D,!0,null,A),i.B7=s,i.B1=C,i.KY()},WC:function(e){e=e||"all";var i=this,t=i.Z;if("all"===e){var n=ZC.Q.F7("zcv:fill");if(""!==i.DB&&-1===ZC.AV(ZC.IMG404,i.DB)){var a=i.RI(),l=a.image;switch(i.M4){default:n.type="tile",n.src=i.DB,ZC.Q.G5(n,{position:a.cx+","+a.cy,opacity:i.C5,"o:opacity2":i.C5}),i.E.imgfill=[n];break;case"no-repeat":case"false":case!1:i.E.imgfill=[l,a.x,a.y]}}i.WY("0.5,0.5")}var o=ZC.Q.F7("zcv:stroke");switch(o.weight=i.AU+"px",o.color=i.BX,o.opacity=i.C5,i.GD){case"solid":o.dashstyle="solid";break;case"dotted":o.dashstyle="dot";break;case"dashed":o.dashstyle="dash"}i.E.stroke=o,i.WE(e);var r=i.F5+i.FV+i.F1+i.FE!==0;i.E.cx=i.iX+i.I/2,i.E.cy=i.iY+i.F/2;var s=i.B7,C=i.B1;i.B7=i.BX,i.B1=i.AU,i.KY(),ZC.CR.setup(t,i),i.T1=r?"round":"square",i.ET+i.G2>0&&(i.T1="butt"),i.ZX=r?"round":"miter",i.E.border=e,ZC.CR.paint(t,i,i.D,"all"===e),i.B7=s,i.B1=C,i.KY()}};ZC.HQ=ZC.DQ.CC(HQ);var P4={$i:function(e){this.b(e);var i=this;i.WO=null,i.BG=null,i.M=null,i.SI=null,i.A7=null,i.KA=!1,i.O7=!1,i.L0=!1,i.A66=!1},parse:function(){var e,i=this;i.BG=zingchart.pool.getInstance("box"===i.WO.type?"HQ":"DQ",i.A,i.K+"-shape",i.WO.tween),i.BG.append(i.WO),i.BG.iX=i.iX,i.BG.iY=i.iY,i.BG.K=i.K+"-gshape",i.BG.O7=i.O7,i.A66||null===ZC._n_(e=i.BG.o.points)||(i.BG.o.points=ZC.AQ.A5L(e,i.A.iX,i.A.iY),i.A66=!0),i.BG.parse(),null!==ZC._n_(e=i.BG.o.label)&&null!==ZC._n_(e.text)&&""!==e.text&&("undefined"==typeof e.visible||ZC._b_(e.visible))&&(i.M=zingchart.pool.getInstance("DN",i,i.A.K+"-shape-label-"+i.H6,ZC.objmove),ZC.objmove||i.M.append(e)),null!==ZC._n_(e=i.BG.o["static"])&&(i.KA=ZC._b_(e)),null!==ZC._n_(e=i.BG.o.flat)&&(i.KA=ZC._b_(e)),null!==ZC._n_(e=i.BG.o.dynamic)&&(i.L0=ZC._b_(e)),null!==ZC._n_(e=i.BG.o.connector)&&(i.SI=new ZC.DQ(i),i.SI.append(e),i.SI.parse())},paint:function(){var e,i=this;if(i.BG.Z=i.Z,i.BG.C7=i.C7,i.BG.locate(2),i.BG.VY=!1,"box"===i.BG.o.type&&(i.iX-=i.BG.I/2,i.iY-=i.BG.F/2,i.BG.iX-=i.BG.I/2,i.BG.iY-=i.BG.F/2),i.BG.paint(),i.M){if(i.M.Z=i.M.C7=i.Z,i.M.IM=ZC.AL(i.A.A.K+"-text"),i.M.K=i.A.K+"-shape-label-"+i.H6,i.M.GL=i.A.K+"-shape-label zc-shape-label",i.M.o.anchor=i.M.o.anchor||"c",!i.WO["map-item"])switch(i.DV){default:i.M.o.x=i.iX,i.M.o.y=i.iY;break;case"line":case"poly":case"rect":case"rectangle":i.M.o.x=ZC._i_((i.BG.D2[0]+i.BG.D2[2])/2),i.M.o.y=ZC._i_((i.BG.D2[1]+i.BG.D2[3])/2)}if(ZC.objmove||i.M.parse(),i.M.iX=i.M.iX+i.BG.BK,i.M.iY=i.M.iY+i.BG.BI,i.M.AN){if(i.SI&&i.SI.D.length>0){if(!ZC.AL(i.A.K+"-objects-front")){var t=i.A.A.I+"/"+i.A.A.F;ZC.Q.K1({cls:"zc-abs",wh:t,id:i.A.K+"-objects-front",p:ZC.AL(i.A.A.K+"-objects-front")},i.A.A.AC),ZC.Q.HI({cls:"zc-abs zc-layer",id:i.A.K+"-objects-front-c",p:ZC.AL(i.A.K+"-objects-front"),wh:t},i.A.A.AC)}var n=i.SI.D,a=i.SI.o.anchor||"",l=n[n.length-1];switch(a){case"l":i.M.iX=l[0]+i.BG.BK,i.M.iY=l[1]-i.M.F/2+i.BG.BI;break;case"r":i.M.iX=l[0]-i.M.I+i.BG.BK,i.M.iY=l[1]-i.M.F/2+i.BG.BI;break;case"t":i.M.iX=l[0]-i.M.I/2+i.BG.BK,i.M.iY=l[1]+i.BG.BI;break;case"b":i.M.iX=l[0]-i.M.I/2+i.BG.BK,i.M.iY=l[1]-i.M.F+i.BG.BI;break;default:i.M.iX=l[0]-i.M.I/2+i.BG.BK,i.M.iY=l[1]-i.M.F/2+i.BG.BI}e=ZC.Q.EC(ZC.AL(i.A.K+"-objects-front-c"),i.A.H.AC),ZC.CR.setup(e,i.SI),ZC.CR.paint(e,i.SI,n)}if(i.M.VY=!1,i.WO["map-item"]&&(i.M.GL=i.A.K+"-mapshape-label zc-mapshape-label",i.M.iXi.A.iX+i.A.I||i.M.iYi.A.iY+i.A.F))return;i.M.paint(),i.E["print-canvas"]?i.M.EM(ZC.AL(i.E["print-canvas"])):i.M.EM()}}}};ZC.P4=ZC.DQ.CC(P4);var DN={$i:function(e){this.b(e);var i=this;i.IM=null,i.GL="",i.AM=null,i.O9="center",i.JY="middle",i.DH=zingchart.FONTSIZE,i.GH=zingchart.FONTFAMILY,i.C2="#000",i.A95=!1,i.N2=!1,i.QN=!1,i.KB="none",i.sFontWeight="normal",i.Y8=0,i.FM=2,i.FN=2,i.FW=2,i.EQ=2,i.A8L=!1,i.A24=!1,i.FJ=-1,i.KD=0,i.NL=0,i.ON=ZC.MAX,i.bRTL=!1,i.A1J=!0,i.UU=zingchart.FASTWIDTH,i.A67=1.65,i.UX=1,i.VP=!1,i.A7=null,i.V7=!1,i.A4T=!1},getPMap:function(){var e=this.b();return this.addPMap(e,"textAlign,verticalAlign,fontSize,fontFamily,color,bold,fontWeight,italic,underline,textDecoration,paddingTop,paddingRight,paddingBottom,paddingLeft,text","O9,JY,DH,GH,C2,A95,sFontWeight,N2,QN,KB,FM,FN,FW,EQ,AM"),e},copy:function(e){this.b(e);for(var i="O9,JY,DH,GH,C2,A95,sFontWeight,N2,KB,QN,FM,FN,FW,EQ,AM".split(","),t=0,n=i.length;t]+)>)/gi,"").length*i.DH/(i.A67*(i.isBold(i.sFontWeight)?.87:1)*(i.N2?.95:1));var t="";return"undefined"!=typeof i.o["html-mode"]&&ZC._b_(i.o["html-mode"])&&(t="[HTMLMODE]"),ZC.Q.A47(this.H.K,t+e,this.GH,this.DH,this.sFontWeight,this.FJ)},parse:function(){this.I=this.F=this.NL=this.KD=0,this.b();var e,i,t,n,a,l=this;if(!l.o.tween){if(l.ZN("text","AM"),null!==ZC._n_(l.AM)&&(l.AM=""+l.AM,l.AM=l.JX(l.AM),l.AM=l.AM.replace(/\n/g,"
").replace(/\\n/g,"
"),"svg"===l.H.AC&&(l.AM=l.AM.replace(/ /g," ")),l.AM=l.AM.replace(/0&&l.AM.length>l.Y8&&(l.AM=l.AM.substring(0,l.Y8)+"...");var r=l.AM.split(/
||
|\n/),s="";"undefined"!=typeof l.o["html-mode"]&&ZC._b_(l.o["html-mode"])&&(r=[l.AM],s="[HTMLMODE]");r.length;for(l.UU?l.KD=1.65*this.DH:l.KD=ZC.Q.A47(this.H.K,s+l.AM,this.GH,this.DH,this.sFontWeight,this.FJ,!0)+l.FM+l.FW,t=0,n=r.length;tl.I&&!l.E.wrapped&&l.I>2*l.DH){var C,A="",c=0,u=l.AM.replace(/
/gi," [##] ").split(/\s|
/),p=[];for(t=0,n=u.length;t.9*l.I){var Z=Math.ceil(C/l.I*.9),h=Math.ceil(u[t].length/Z);for(a=0;a",c=0):(c+=C=1+l.cwidth(p[t]+" "))>.9*l.I?(t>0&&(A+="
"),A+=p[t]+" ",c=C):A+=p[t]+" ");A=(A=A.replace(/

/g,"
").replace(/

/g,"
")).replace(/(.+?)
$/g,"$1");var d=l.o.text;l.o.text=A,l.E.wrapped=!0,l.parse(),l.o.text=d,l.E.wrapped=!1}if("canvas"!==l.H.AC&&(l.AM=l.AM.replace(/</g,"<").replace(/>/g,">")),!(null!==ZC._n_(l.o.width)&&null!==ZC._n_(l.o.height)||null===ZC._n_(l.o.position)&&null===ZC._n_(l.o.margin)&&null===ZC._n_(l.o["margin-top"])&&null===ZC._n_(l.o["margin-right"])&&null===ZC._n_(l.o["margin-bottom"])&&null===ZC._n_(l.o["margin-left"]))){l.iX=-1,l.iY=-1;var f=l.o.width,_=l.o.height;null===ZC._n_(f)&&(l.o.width=l.I),null===ZC._n_(_)&&(l.o.height=l.F),l.locate(),l.o.width=f,l.o.height=_}if("undefined"==typeof l.o["html-mode"]||!l.o["html-mode"]){var g=Math.ceil((l.NL-l.EQ-l.FN)/l.DH);g>0&&(l.AM=l.AM.replace(/
/g,new Array(g).join("\u2014")))}}l.setAnchor()},paint:function(){var e,i,t,n,a,l,o,r,s,C,A,c=this;if(!c.VP&&!c.A1J){var u=!0;null!==ZC._n_(c.o.flexible)&&(u=ZC._b_(c.o.flexible));var p,Z,h={x:c.iX+c.EQ-1,y:c.iY+c.FM-1,width:c.I-c.EQ-c.FN+2,height:c.F-c.FM-c.FW+2,type:c.E.lbltype||""},d=[[0,0]];for(u&&(d=[[0,0],[0,2],[0,-4],[0,4],[0,-8],[3,0],[-6,0],[5,0],[-10,0]]),Z=0;Z||
|\n/)),g&&!v&&"svg"===f&&"0"===_&&(_="0html");var z=c.IM?c.IM:c.Z.parentNode;switch(f+_){case"canvas0":case"vml0":case"svg0html":if(n=1,!g)switch(c.JY){case"middle":n+=(c.F-c.KD)/2;break;case"bottom":n+=c.F-c.KD}if(o=ZC.Q.I4({id:c.K,cls:c.GL,tl:ZC._x_(c.iY+c.BI)+"/"+ZC._x_(c.iX+c.BK),wh:c.I+"/"+c.F,position:"absolute",padding:0,margin:0,overflow:g?"visible":"hidden",textAlign:c.O9}),g&&(v||f+_!=="svg0html"||(z=ZC.AL(c.H.K+"-top")),z.appendChild(o)),ZC.Q.I4({id:c.K+"-t",cls:""!==c.GL?c.GL+"-t":"",p:o,width:c.I-c.EQ-c.FN,height:g?null:c.KD-c.FM-c.FW,tl:n+"/0",html:c.AM+"",position:"absolute",whiteSpace:"nowrap",opacity:c.UX,color:c.C2,fontWeight:c.sFontWeight,fontStyle:c.N2?"oblique":"normal",textDecoration:c.KB,fontSize:c.DH,fontFamily:c.GH,marginTop:c.FM,marginRight:c.FN,marginBottom:c.FW,marginLeft:c.EQ,verticalAlign:c.JY,textAlign:c.O9,lineHeight:-1===c.FJ?"125%":c.FJ+"px",rtl:c.bRTL,padding:0}),c.E["css-display"]&&(o.style.display=c.E["css-display"],c.E["css-display"]=null),v&&c.H&&c.H.A7&&!c.o.width&&!c.o.height){var T=ZC.A5("#"+c.K+"-t");"canvas"===f&&(ZC.AL(c.H.K+"-tooltip-c").width=T.width()+c.EQ+c.FN,ZC.AL(c.H.K+"-tooltip-c").height=T.height()+c.FM+c.FW),c.H.A7.clear(),c.I=T.width()+c.EQ+c.FN,c.F=T.height()+c.FM+c.FW,c.paint()}break;case"canvas":var V=!1;if(ZC.A5.browser.opera&&c.AA%90==0&&0!==c.AA&&(c.AA+=.5,V=!0),e=c.Z.getContext("2d"),zingchart.DEV.CACHECANVASTEXT&&(ZC.CanvasCache||(ZC.CanvasCache={})),!zingchart.DEV.CACHECANVASTEXT||zingchart.DEV.CACHECANVASTEXT&&!ZC.CanvasCache[c.K]){for(zingchart.DEV.CACHECANVASTEXT&&(ZC.CanvasCache[c.K]=document.createElement("canvas"),ZC.CanvasCache[c.K].width=c.NL,ZC.CanvasCache[c.K].height=c.KD),b=-1===c.FJ?0:ZC._x_(c.FJ-1.25*c.DH)/2,a=0,l=R.length;a/gi,"").replace(/<\/.+?>/gi,""),t=0,n=0,c.O9){case"center":t+=(c.I-i)/2;break;case"right":t+=c.I-i}switch(c.JY){case"middle":n+=(c.F-c.KD)/2;break;case"bottom":n+=c.F-c.KD}if(E=0,B!==m){for(;F=/<(.+?)>(.*?)<\/(.+?)>/.exec(B);){switch(K="",I="",(C=/(.+?)style=(.+?)(\'|")(.*?)/.exec(F[1]))&&(I=C[2].replace(/\'|"/g,"")),F[3]){case"b":case"strong":K="font-weight:bold";break;case"i":case"em":K="font-style:italic";break;case"u":K="text-decoration:underline"}w='[[span style="'+(""===K?"":K+";")+I+'"]]'+F[2]+"[[/span]]",B=B.replace(F[0],w)}for(y=!1,N=0,G=(F=(B=B.replace(/\[\[/g,"<").replace(/\]\]/g,">").replace(//g,"[[*]]")).split("[[*]]")).length;N(.+?)<\/(.+?)>/.exec(F[N]))for(D=A[2],Q=0,k=(x=A[1].replace(/\'|"/g,"").split(/;|:/)).length;Q||
/gi,"\n").replace(/<.+?>/gi,"").replace(/<\/.+?>/gi,"");ZC.Q.G5(ae,{on:!0,string:le}),ZC.Q.PL(ae,{color:r,fontWeight:c.sFontWeight,fontStyle:c.N2?"oblique":"normal",textDecoration:c.KB,fontSize:c.DH+"px",fontFamily:c.GH,"v-text-align":c.O9}),J.appendChild(ae),e.appendChild(J);break;case"svg":case"svg0":var oe=c.iX+c.EQ+c.BK,re=c.iY+c.FM+c.BI;if(o=ZC.Q.F7("text","http://www.w3.org/2000/svg"),ZC.Q.G5(o,{x:ZC._x_(oe),y:ZC._x_(re),id:c.K,"class":c.GL,opacity:c.UX}),c.E["css-display"]&&(o.style.display=c.E["css-display"],c.E["css-display"]=null),c.bRTL&&ZC.Q.G5(o,{"text-anchor":ZC.A5.browser.msie?"":"end","writing-mode":"rl",direction:"rtl","unicode-bidi":"bidi-override"}),c.A8L&&(c.H.K8.appendChild(ZC.Q.XJ({id:c.K+"-clip",path:[[c.iX+c.EQ+c.AU+c.BK,c.iY+c.FM+c.AU+c.BI].join(","),[c.iX+c.I-c.FN-c.AU+c.BK,c.iY+c.FM+c.AU+c.BI].join(","),[c.iX+c.I-c.FN-c.AU+c.BK,c.iY+c.F-c.FW-c.AU+c.BI].join(","),[c.iX+c.EQ+c.AU+c.BK,c.iY+c.F-c.FW-c.AU+c.BI].join(","),[c.iX+c.EQ+c.AU+c.BK,c.iY+c.FM+c.AU+c.BI].join(",")].join(" ")})),ZC.Q.G5(o,{"clip-path":"url(#"+c.K+"-clip)"})),c.AA%360!=0&&o.setAttribute("transform","rotate("+c.AA+" "+(oe+(c.I-c.EQ-c.FN)/2)+" "+(re+(c.F-c.FM-c.FW)/2)+")"),g&&z.appendChild(o),g){ZC.Q.EV(c.K+"-float");var se=ZC.Q.F7("div");ZC.Q.PL(se,{position:"absolute",left:0,top:0,width:c.I-c.EQ-c.FN+"px",height:c.F-c.FM-c.FW+"px",color:c.C2,fontSize:c.DH+"px",fontFamily:c.GH,fontWeight:c.sFontWeight,textDecoration:c.KB,textAlign:c.O9,fontStyle:c.N2?"italic":"normal"}),se.id=c.K+"-float",se.className="zc-style zc-html-mode",se.innerHTML=R[0],1===c.o["z-index"]?ZC.AL(c.H.K+"-top").append(se):ZC.AL(c.H.K+"-top").insertBefore(se,ZC.AL(c.H.K+"-img")),v&&c.H&&c.H.A7&&(c.o.width||c.o.height||(c.H.A7.clear(),se.style.width="",se.style.height="",c.I=ZC.A5(se).width()+c.EQ+c.FN,c.F=ZC.A5(se).height()+c.FM+c.FW,c.paint()))}else for(b=-1===c.FJ?0:ZC._x_(c.FJ-1.25*c.DH)/2,a=0,l=R.length;a/gi,"").replace(/<\/.+?>/gi,""),t=0,n=c.DH,c.O9){case"center":t=(c.I-i)/2;break;case"right":t=c.I-i}switch(c.JY){case"middle":n+=(c.F-c.KD)/2;break;case"bottom":n+=c.F-c.KD}if(E=0,B!==m){for(;F=/<(.+?)>(.*?)<\/(.+?)>/.exec(B);){switch(K="",I="",(C=/(.+?)style=(.+?)(\'|")(.*?)/.exec(F[1]))&&(I=C[2].replace(/\'|"/g,"")),F[3]){case"b":case"strong":K="font-weight:bold";break;case"i":case"em":K="font-style:italic";break;case"u":K="text-decoration:underline"}w='[[span style="'+(""===K?"":K+";")+I+'"]]'+F[2]+"[[/span]]",B=B.replace(F[0],w)}for(y=!1,N=0,G=(F=(B=B.replace(/\[\[/g,"<").replace(/\]\]/g,">").replace(//g,"[[*]]")).split("[[*]]")).length;N(.+?)<\/(.+?)>/.exec(F[N]))for(D=A[2],Q=0,k=(x=A[1].replace(/\'|"/g,"").split(/;|:/)).length;Q")?Ce.innerText=D:Ce.innerHTML=D,D=Ce.innerText||Ce.textContent,Ce=null,s.textContent=D,o.appendChild(s),y=Y,E++}}else c.bRTL&&ZC.A5.browser.msie&&(t+=i-c.EQ-c.FN),s=ZC.Q.F7("tspan","http://www.w3.org/2000/svg"),ZC.Q.G5(s,{x:ZC._x_(oe+t),y:ZC._x_(re+n),color:c.C2,fill:c.C2,dy:ZC._x_(b)}),ZC.Q.PL(s,{fontWeight:c.sFontWeight,fontStyle:c.N2?"oblique":"normal",textDecoration:c.KB,fontSize:c.DH+"px",fontFamily:c.GH,dominantBaseline:"auto"}),s.textContent=m,o.appendChild(s),b+=-1===c.FJ?1.25*c.DH:c.FJ}}if(!g)if(!c.VP&&o&&z)if(c.H.G3)-1!==ZC.Q.T7(z).indexOf("zc-text")&&null===ZC._n_(c.H.G3[z.id])&&(c.H.G3[z.id]=document.createDocumentFragment()),c.H.G3[z.id]?c.H.G3[z.id].appendChild(o):z.appendChild(o);else z.appendChild(o)}},paintCANVASText:function(e){var i=this,t=e.idx,n=e.ctx,a=e.i,l=e.fw,o=e.fs,r=e.ff,s=e.c,C=e.dx,A=e.dy,c=e.t;n.save(),n.globalAlpha=i.UX;var u;if(u=(a?"italic":"normal")+" normal "+l+" "+o+"px "+r,n.font=u,n.fillStyle=s,n.textAlign="left",n.textBaseline="alphabetic",n.translate(i.iX+i.BK,i.iY+i.BI),0!==i.AA&&(n.translate(i.I/2,i.F/2),n.rotate(ZC.T8(i.AA)),n.translate(-i.I/2,-i.F/2)),n.translate(i.EQ,i.FM+o),n.translate(C,A),n.fillText(c,0,0),zingchart.DEV.CACHECANVASTEXT){var p=ZC.CanvasCache[i.K].getContext("2d");p.font=u,p.fillStyle=s,p.textAlign="left",p.textBaseline="alphabetic",p.fillText(c,i.EQ,i.FM+o+1.25*t*o)}n.restore()},EM:function(e){var i=this;if(ZC.canvas&&"canvas"===i.H.AC&&(e||(e=ZC.AL(i.H.K+"-textprint-c")),!zingchart.CANVASTEXT&&i.AA%360==0)){var t=i.Z;i.Z=e,i.VP=!0;var n=i.H.AC;i.H.AC="canvas",i.paint(),i.VP=!1,i.H.AC=n,i.Z=t}}};ZC.DN=ZC.HQ.CC(DN);var Q4={$i:function(e){this.b(e);var i=this;i.CJ="json",i.NX={graphset:!0,graph:!0,"objects-bottom":!0,"objects-top":!0,maps:!0,plotarea:!0,plots:!0,guide:!0,"static":!0,"value-box":!0},i.bA11y=!1,i.P0="",i.A15=!1,i.A16="en_us",i.QM=null,i.JM="",i.UA=!1,i.RR={},i.N3="",i.ADI={},i.QJ="",i.EW="",i.MC={},i.HT=null,i.AG=[],i.LK="",i.A7=null,i.H2=null,i.D7=null,i.B8=new ZC.AAZ(i),i.QK="",i.MN=null,i.NT=[null,null,null,null],i.O7=!1,i.NH="x",i.KA=!1,i.TI=!1,i.ABH=!1,i.A3A=!1,i.GN=!1,i.A9D={},i.NS=null,i.QO={},i.LT=!1,i.QL=!1,i.AD1=null,i.SQ=[],i.O={},i.MZ=null,i.DI=null,i.UC=0,i.A20=0,i.A4D=1,i.MI=null,i.S7="",i.AAT="F*nStrlng4Cu$tOmLlc9nc9!",i.MD="",i.A14={},i.A08=!1,i.AC="",i.K8=null,i.ZR=!1,i.QP=["",""],i.L6=0,i.KP=[],i.A7N=0,i.A7M=0,i.A9C=!1,i.A1D="",i.A6G=!0,i.IC=null,i.QR=[],i.NV=0,i.AAN=!1,i.S9={},i.A1I=!1,i.G3=zingchart.DEV.DOMFRAGMENTS?{}:null,i.A2K=!1,i.ST=[]},clearLabelBoxes:function(e){var i=this;if(e)for(var t=i.ST.length-1;t>=0;t--)i.ST[t].type===e&&i.ST.splice(t,1);else i.ST=[]},usc:function(){return-1!==ZC.AV(this.KP,"use_single_canvas")},mc:function(e){return e=e||"",ZC.AL(this.K+"-main-c"+(""===e?e:"-"+e))},hideCM:function(){var e;(e=ZC.AL(this.K+"-menu"))&&(e.style.display="none"),this.A9C=!1},ZV:function(){for(var e=this,i=e.NT.length,t=0;t1?G[e.L]:G[0];i.id||(i.id=e.o.id||""),s.o.graphset[e.L]=i,s.QF(function(){s.parse(JK),s.AG[e.L].paint()})}}})})},XR:function(DL){var s=this,G,i,A6,j,JA;for(null===ZC._n_(DL.graphset)&&(DL={graphset:[DL]}),1===DL.graphset.length&&null===ZC._n_(DL.graphset[0])&&(DL.graphset=[{type:"null"}]),i=0,A6=DL.graphset.length;i=0;a--)for(o=0;o0){for(var D=0,F=0,K=ZC._i_((u-(b+1)*r.A7N)/b),I=ZC._i_((p-(v+1)*r.A7M)/v),x=["x","y","width","height"],w=0;w=J4.length){for(var e in window.clearInterval(C4),s.ABP(s.o),L1)if(0!==e.indexOf("data:")&&-1===ZC.AV(s.E["safe-images"],e))try{if(L1[e].width>0&&L1[e].height>0){var i=document.createElement("canvas");i.width=L1[e].width,i.height=L1[e].height,i.getContext("2d").drawImage(L1[e],0,0);var t=i.toDataURL("image/png");L1[e].onload=null,L1[e].onerror=null,L1[e].src=t,ZC.cache.data[e]=L1[e]}}catch(n){}window.setTimeout(function(){zingchart.Y1[s.K]&&JD()},1)}else A32(++A1M)},20);A32(A1M)}else zingchart.Y1[s.K]&&JD()}else zingchart.Y1[s.K]&&JD();function A32(i){if(!(i>=J4.length)){var EW,MJ,KH=J4[i][0],A0H=J4[i][1];if("url:"===KH.substring(0,4)){var QJ=KH.substring(4);s.QO["url:"+QJ]="[]";try{EW=["query-string"===s.N3?"zcrandom="+Math.random():""].join("&"),ZC.A5.ajax({type:"GET",url:QJ,beforeSend:function(e){s.RR.data||"http-headers"!==s.N3||e.setRequestHeader("If-Modified-Since","Thu, 01 Jan 1970 00:00:00 GMT")},data:EW,error:function(e,i,t,n){return s.O0({name:"Network error",message:"Resource not found ("+n+")"},"URL Data loader"),!1},success:function(e,i,t,n){s.QO["url:"+n]=e,UC++}})}catch(J9){return s.O0(J9,"URL Data loader"),!1}}else if("javascript:"===KH.substring(0,11))if("zc.ext.load"===s.QO[KH]){s.QO[KH]="[]";var DY=ZC.AQ.AAK(KH.substring(11)),N={id:s.K,resource:KH,callback:function(e){s.QO[KH]=e,UC++}},A03=DY[0];N.arguments=DY[1];try{var ZD=eval(A03).call(s,N);null!==ZC._n_(ZD)&&ZD&&(s.QO[KH]=ZD,UC++)}catch(J9){return s.O0(J9,"JavaScript data loader"),!1}}else UC++;else"image"===A0H?(L1[KH]=new Image,L1[KH].crossOrigin="anonymous",L1[KH].onload=function(){UC++},L1[KH].onerror=function(){var e=ZC._b_(s.o.strict);if(ZC.IMG404.push(KH),e)return s.O0({name:"Network error",message:"Resource not found ("+this.src+")"},"Resource loader (image)"),!1;this.src=ZC.BLANK,UC++},L1[KH].src=KH,ZC.cache.data[KH]=L1[KH]):"css"===A0H?(EW=["query-string"===s.N3?"zcrandom="+Math.random():""].join("&"),ZC.A5.ajax({type:"GET",url:KH,beforeSend:function(e){s.RR.css||"http-headers"!==s.N3||e.setRequestHeader("If-Modified-Since","Thu, 01 Jan 1970 00:00:00 GMT")},data:EW,error:function(e,i,t){return s.O0(t,"Resource loader"),!1},success:function(e){for(var i={},t=e.match(/[a-zA-Z0-9\.\#\-](.+?)\{((.|\s)+?)\}/gi),n=0,a=t.length;ndiv").width(l.I).height(l.F)}for("canvas"===l.AC&&((i=ZC.AL(l.K+"-main-c"))&&(i.width=l.I,i.height=l.F),(i=ZC.AL(l.K+"-main-c-top"))&&(i.width=l.I,i.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.AC&&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(),t=0,n=l.AG.length;t'}}}e.Z=ZC.AL(e.K+"-main-c"),e.b();var C,A,c=!1,u=!1;for(C=0,A=e.AG.length;C100&&(new Date).getTime()-ZC.swipe.ts<1e3){var n=e.FF();n.direction=t[0]>ZC.swipe.xy[0]?"right":"left",ZC.AQ.C0("swipe",e,n)}ZC.swipe=null}e.A9C||ZC.move||zingchart.SC(i),e.OW(i)},ZC.A5("#"+e.K+"-img").bind("touchstart",e.AGA).bind("touchmove",e.OW).bind("touchend",e.AG9),ZC.A5("#"+e.K+"-menu-area").live("touchstart",e.AGA)),e.zc_loader_mousewheel=function(i){var t=e.FF();t.ev=i,ZC.AQ.C0("mousewheel",e,t)},ZC.A5("#"+e.K+"-img").bind("mousewheel",e.zc_loader_mousewheel),ZC.A5("#"+e.K+"-map").bind("mousewheel",e.zc_loader_mousewheel),"svg"===e.AC&&ZC.A5("#"+e.K+"-svg").bind("mousewheel",e.zc_loader_mousewheel),e.A28=function(i){27===i.keyCode&&e.QL&&(e.A7O||e.A98())},ZC.A5(document).bind("keyup",e.A28),e.A98=function(){ZC.A5("#"+e.K+"-menu-item-exitfullscreen").die("click",e.A98),ZC.FSSTATUS=null,ZC.Q.EV(e.K+"-data-table"),e.destroy(),zingchart.FSID&&ZC.AL(zingchart.FSID)&&(ZC.AL(zingchart.FSID).style.display="none")},ZC.A5("#"+e.K+"-menu-item-exitfullscreen").live("click",e.A98)):ZC.mobile&&(e.zc_loader_touchstart_static=function(e){return e.preventDefault(),zingchart.SC(e),!1},ZC.A5("#"+e.K+"-img").bind("touchstart",e.zc_loader_touchstart_static)),null!==e.HT){var h=ZC._i_(e.HT.interval);h=h>=50?h:1e3*h,window.setTimeout(function(){e.N6(),e.load()},h)}e.MD="",ZC.TS[e.K]=(new Date).getTime()-ZC.TS[e.K],e.E["fire-complete"]&&(ZC.AQ.C0("complete",e,e.FF()),e.E["fire-complete"]=null),e.E["fire-load"]&&(ZC.AQ.C0("load",e,e.FF()),e.E["fire-load"]=null)},togglePreviewMasks:function(e){for(var i=this,t=0;tPowered by ZingChart',l){case"br":h=i.F-r,d=i.I-s;break;case"bl":h=i.F-r,d=6;break;case"tr":h=2,d=i.I-s;break;case"tl":h=2,d=6}null!==ZC._n_(e=ZC.AL(i.K+"-top"))&&ZC.Q.I4({cls:ZC.ie67?"-ie67":"",p:e,id:i.K+"-license-text",tl:h+"/"+d,wh:s+"/"+(r-C),color:ZC.ie67?1===a?"#369":"#fff":"",padding:C,opacity:A,position:"absolute",cursor:"pointer",fontFamily:zingchart.FONTFAMILY,html:o})},_unbind_:function(){var e=this;ZC.A5("#"+e.K+"-menu").die("mousedown",e.TV),ZC.A5("."+e.K+"-menu-item").die("mousedown",e.TV),ZC.A5("."+e.K+"-menu-item").die("click touchend",e.AGD).die("mouseover",e.AGB).die("mouseout",e.AGC),e.E["menu-item-events"]=!1,ZC.A5("."+e.K+"-node-area").die("focus"),null!==e.H2&&e.H2.unbind(),null!==e.D7&&e.D7.unbind(),ZC.mobile&&(ZC.A5("#"+e.K+"-img").unbind("touchstart",e.AGA).unbind("touchmove",e.OW).unbind("touchend",e.AG9),ZC.A5("#"+e.K+"-menu-area").die("touchstart",e.AGA),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),"svg"===e.AC&&ZC.A5("#"+e.K+"-svg").unbind("mousewheel",e.zc_loader_mousewheel),ZC.A5(document).unbind("keyup",e.A28),ZC.A5("#"+e.K+"-menu-item-exitfullscreen").die("click",e.A98)},VM:function(e,i,t){void 0===t&&(t=!1);var n=ZC.AL("zc-menu-"+(t?"sep":"item")+"-"+e);n&&(n.style.display=i?"block":"none")},A60:function(LH,ev){if(!zingchart.DEV.SKIPCONTEXTMENU){var s=this,G,i,A6,j,JA;void 0===LH&&(LH=-1);var DI={};ZC._cp_(s.DI,DI),-1!==LH&&s.o.graphset[LH]&&ZC._cp_(s.o.graphset[LH].gui,DI,null,null,!0),ZC.A5("#"+s.K+"-menu").remove();var PG=[];for("undefined"==typeof ZC.AP&&PG.push({id:"3D",enabled:"none"},{id:"SwitchTo3D",enabled:"none"},{id:"SwitchTo2D",enabled:"none"}),i=DI.behaviors.length-1;i>0;i--)for(var sBId=DI.behaviors[i].id,ii=i-1;ii>=0;ii--)DI.behaviors[ii].id===sBId&&DI.behaviors.splice(ii,1);if(null!==ZC._n_(G=DI.behaviors))for(i=0,A6=G.length;iZC._i_(i.order||"0")}),s.MZ=new ZC.DN(s);var A19=s.LK.split(/\s+|;|,/),E3,LE,U6,AB8,GT;for(i=0,A6=A19.length;i'}}}E3=new ZC.DN(s),s.B8.load(E3.o,"loader.gui.context-menu.item"),JJ&&null!==ZC._n_(G=JJ.item)&&E3.append(G),ZC.mobile&&(s.B8.load(E3.o,"loader.gui.context-menu[mobile].item"),OK&&null!==ZC._n_(G=OK.item)&&E3.append(G)),E3.UU=!0,E3.parse(),LE=new ZC.DN(s),LE.copy(E3),s.B8.load(LE.o,"loader.gui.context-menu.item.hover-state"),JJ&&null!==ZC._n_(JJ.item)&&null!==ZC._n_(G=JJ.item["hover-state"])&&LE.append(G),ZC.mobile&&(s.B8.load(LE.o,"loader.gui.context-menu[mobile].item.hover-state"),OK&&null!==ZC._n_(OK.item)&&null!==ZC._n_(G=OK.item["hover-state"])&&LE.append(G)),LE.UU=!0,LE.parse(),U6={},JJ&&null!==ZC._n_(JJ.separator)&&(U6=JJ.separator);var JV=[],EL=null;if(AB8=null!==ZC._n_(s.MZ.o.empty)&&ZC._b_(s.MZ.o.empty),ZC.mobile&&(EL=G8("PageScroll"),"none"!==EL.enabled&&(null===s.DI||null===ZC._n_(s.DI["page-scroll"])||s.DI["page-scroll"]?JV.push(GX("disablepagescroll",EL.text)):JV.push(GX("enablepagescroll",EL.text)),JV.push(JE("pagescroll")))),EL=G8("Reload"),"none"!==EL.enabled&&(JV.push(GX("reload",EL.text)),JV.push(JE("reload"))),"undefined"!=typeof ZC.A87){EL=G8("SaveAsImage"),"none"!==EL.enabled&&(EL=G8("SaveAsImagePNG"),"none"!==EL.enabled&&JV.push(GX("viewaspng",EL.text?EL.text:null)),EL=G8("SaveAsImageJPG"),"none"!==EL.enabled&&JV.push(GX("viewasjpg",EL.text?EL.text:null)),JV.push(JE("export")));var TD=["DownloadPDF","DownloadSVG","DownloadCSV","DownloadXLS","ViewDataTable","ExportData","Print"],A6C=0,A26=0;for(i=0;i0&&JV.push(JE(TD[A26].toLowerCase()))}if(-1!==LH){var GN=!1;for(j=0,JA=s.AG[LH].BO.length;j0&&JV.push(JE("tools")),EL=G8("FullScreen"),"none"===EL.enabled||s.LT||(s.QL?(EL=G8("ExitFullScreen"),JV.push(GX("exitfullscreen",EL.text)),JV.push(JE("exitfullscreen"))):(JV.push(GX("fullscreen",EL.text)),JV.push(JE("fullscreen")))),s.IC&&(EL=G8("GoBack"),"none"!==EL.enabled&&JV.push(GX("goback",EL.text)),EL=G8("GoForward"),"none"!==EL.enabled&&JV.push(GX("goforward",EL.text)),JV.push(JE("history"))),JV.length>0&&-1!==JV[JV.length-1].indexOf("zc-menu-sep")&&JV.splice(JV.length-1,1),s.A1H={},-1!==LH)if(JJ&&null!==ZC._n_(B6=JJ["custom-items"]))for(JV.length>0&&JV.push(JE("custom")),i=0,A6=B6.length;i 
'}function GX(e,i,t){i=i||ZC.HD["menu-"+e];var n=void 0!==t&&t?" zc-custom-menu-item "+s.K+"-custom-menu-item":"";return'
'+i+"
"}function A39(e,i,t){var n=void 0!==t&&t?" zc-custom-menu-header "+s.K+"-custom-menu-header":"";return'
'+i+"
"}function G8(e){var i={ViewAsImage:"SaveAsImage",ViewAsImagePNG:"SaveAsImagePNG",ViewAsImageJPG:"SaveAsImageJPG"};if(AB8)return{enabled:"none"};for(var t=0,n=PG.length;t60?(C=60,p=ZC.HD["progress-wait-short"]):r<60&&(C=20,p=ZC.HD["progress-wait-mini"]),p=n.E.customprogresstext||p;var h=ZC.Q.I4({id:n.K+"-progress",p:document.body,tl:o+"/"+l,width:r-2*c.AU,height:s-2*c.AU,position:"absolute",opacity:.8,border:c.AU+"px solid "+c.BX,background:u});ZC.Q.I4({id:n.K+"-progress-text",p:h,width:C,html:p,textAlign:"center",marginLeft:ZC._i_((r-C)/2),marginTop:ZC._i_(s/2+A),fontFamily:zingchart.FONTFAMILY,fontSize:zingchart.FONTSIZE,color:c.C2,fontWeight:"bold"})}}},A0L:function(){var e=this;ZC.Q.EV(e.K+"-dummy"),e.E.hideprogresslogo||(e.ZR=!1,ZC.Q.EV([e.K+"-progress-text",e.K+"-progress"]))},A5I:function(e,i){var t,n,a=this;t=null!==ZC._n_(n=e.graphset)?n:[e];var l=e.layout||"",o=ZC.AO.A2F(l,t.length),r=t[i],s=a.I/o[1],C=a.F/o[0],A=Math.floor(i/o[1]),c=i%o[1]*s,u=A*C;r&&(null!==ZC._n_(n=r.x)&&(c=ZC._p_(n))<=1&&(c=ZC._i_(c*a.I)),null!==ZC._n_(n=r.y)&&(u=ZC._p_(n))<=1&&(u=ZC._i_(u*a.F)),null!==ZC._n_(n=r.width)&&(s=ZC._p_(n))<=1&&(s=ZC._i_(s*a.I)),null!==ZC._n_(n=r.height)&&(C=ZC._p_(n))<=1&&(C=ZC._i_(C*a.F)));var p=[0,0,0,0];if(r.plotarea){if(a.B8.load(r.plotarea,["("+r.type+").plotarea"],!1,!0),null!==ZC._n_(r.plotarea.margin))p=new ZC.HQ(null).m_(r.plotarea.margin,"all",s,C);for(var Z=["top","right","bottom","left"],h=0;h<4;h++)if(null!==ZC._n_(r.plotarea["margin-"+Z[h]])){var d=r.plotarea["margin-"+Z[h]];ZC._i_(d)+""==d+""&&(p[h]=ZC._i_(d))}}return{graph:{x:ZC._i_(c),y:ZC._i_(u),width:ZC._i_(s),height:ZC._i_(C),index:i},plotarea:{x:p[3],y:p[0],width:s-p[1]-p[3],height:C-p[0]-p[2]}}},K9:function(){var e=this;null===ZC._n_(e.o.graphset)&&(e.o={graphset:[e.o]}),e.N6(),zingchart.A1S(e,e.A5H(),function(){e.o=ZC.AQ.C0("dataparse",e,e.FF(),e.o),zingchart.Y1[e.K]&&e.QF(function(){e.parse(),e.paint()})})},render:function(){var e=this;!function(){function i(){""!==e.QK||null!==e.MN?e.A92():e.load()}e.UA||e.A91(),e.N6(null,!0),zingchart.TIMEOUT>0?ZC.ZP(i):i()}()},Z1:function(e){var i=this;null===ZC._n_(i.A3B)&&(i.A3B=(new Date).getTime(),i.AAU=window.setTimeout(function(){null!==ZC._n_(i.A3B)&&(i.A3B=null,zingchart.Z0(e))},1500))},FF:function(){var e,i=this,t=0,n=0;return t="undefined"!=typeof i.SQ[0]?i.SQ[0]-t:0,n="undefined"!=typeof i.SQ[1]?i.SQ[1]-n:0,e=i.LK?i.LK:"light",{id:i.K,width:i.I,height:i.F,output:i.AC,x:t,y:n,targetid:i.SQ[2],theme:e}},AC4:function(e){e=e||{},null!==ZC._n_(e.resource)&&(this.QO[e.resource]=e.data||"[]",this.UC++)},A90:function(){},A8D:function(){},A8E:function(){},Q0:function(){},AAA:function(e,i){var t=this;if(e=e||{},null!==ZC._n_(e.graphid)){var n=t.OV(e.graphid);null!==n&&n.clear()}else t.clear(null,null,i);ZC.JT&&ZC.JT.GUIDES&&(ZC.JT.GUIDES[t.K]=null)},A8G:function(e){e=e||ZC.HD["sync-wait"];var i=this;if(null===ZC.AL(i.K+"-blocker")){ZC.Q.I4({cls:"zc-abs zc-style zc-blocker",id:i.K+"-blocker",p:ZC.AL(i.K+"-top"),wh:i.I+"/"+i.F,opacity:.75}),ZC.Q.I4({cls:"zc-blocker-msg",id:i.K+"-blocker-t",p:ZC.AL(i.K+"-blocker"),html:e});var t=ZC.A5("#"+i.K+"-blocker-t");t.css("top",i.F/2-t.height()/2+"px").css("left",i.I/2-t.width()/2+"px")}},A48:function(){ZC.Q.EV(this.K+"-blocker")},AA6:function(){var e=this;ZC.AQ.C0("about_show",e,e.FF()),ZC.Q.I4({cls:"zc-abs",id:e.K+"-about-mask",p:ZC.AL(e.K+"-top"),wh:e.I+"/"+e.F,background:"#ccc",opacity:.75});var i=ZC.CY(320,e.I),t=ZC.CY(215,e.F),n=ZC.BQ(0,(e.I-i)/2),a=ZC.BQ(0,(e.F-t)/2),l=ZC.Q.I4({cls:"zc-about zc-style",id:e.K+"-about",p:ZC.AL(e.K+"-top"),tl:a+"/"+n,wh:i-(ZC.quirks?0:10)+"/"+(t-(ZC.quirks?0:10))}),o="";""!==e.S7&&(o="Custom Built for
"+e.S7),l.innerHTML='
©2009-'+(new Date).getFullYear()+'
'+ZC.HD["about-close"]+'
 
Build '+ZC.VERSION+" ["+e.AC+"]
"+o+"
",ZC.A5("#"+e.K+"-about-close").bind("click",function(){ZC.AQ.C0("about_hide",e,e.FF()),ZC.Q.EV([e.K+"-about",e.K+"-about-mask"])})},O0:function(e,i){var t=this;if(ZC.AQ.A8H("error",t))ZC.AQ.C0("error",t,{id:t.K,error:e,section:i,json:t.E.json||t.E.rawsource});else{var n="";n+="object"==typeof e?e.name+":"+e.message+"\n\n":e+"\n\n",null!==ZC._n_(i)&&(n+="Section:"+i+"\n\n"),n+="JSON data:\n\n"+t.E.json+"\n\n",t.A0L(),null===ZC.AL(t.K+"-top")&&t.AB2(),ZC.Q.I4({cls:"zc-abs zc-error zc-style",id:t.K+"-error",p:ZC.AL(t.K+"-top"),wh:t.I-(ZC.quirks?0:10)+"/"+(t.F-(ZC.quirks?0:10))}).innerHTML='
'+ZC.HD["error-header"]+'
'+ZC.HD["error-message"]+'
',ZC.A5("#"+t.K+"-error-message").val(ZC.GW(n)),ZC.A5("#"+t.K+"-error-close").bind("click",function(){ZC.Q.EV(t.K+"-error")})}},A5X:function(){},A70:function(){},A5Y:function(){var e=this,i=document.createElement("div");i.id="zc-fullscreen",i.style.zIndex=zingchart.FSZINDEX,i.style.overflow="hidden";var t,n,a=document.body,l=!1;for(zingchart.FSID&&ZC.AL(zingchart.FSID)&&(l=!0,(a=ZC.AL(zingchart.FSID)).style.display="block"),a.appendChild(i),ZC.FSSTATUS={},t=0,n=e.AG.length;t=0;t--)if(c[t].generated)c.splice(t,1);else{if(null!==ZC._n_(c[t].shapes))for(C=c[t].shapes.length-1;C>=0;C--)c[t].shapes[C].generated&&c[t].shapes.splice(C,1);if(null!==ZC._n_(c[t].labels))for(C=c[t].labels.length-1;C>=0;C--)c[t].labels[C].generated&&c[t].labels.splice(C,1)}l||window.scroll(0,0),zingchart.render({id:"zc-fullscreen",output:e.AC,width:ZC.A5(l?a:window).width(),height:ZC.A5(l?a:window).height(),fullscreenmode:!0,theme:e.LK,modules:e.A1D,data:A,defaults:e.MN,defaultsurl:e.QK})},A13:function(e,i){var t,n,a,l=this,o=0,r=!1;for(t=0,n=l.AG.length;t0?i.AG[0]:null},bind:function(e,i){zingchart.bind(this.K,e,i)},unbind:function(e,i){zingchart.unbind(this.K,e,i)},exec:function(e,i){return zingchart.exec(this.K,e,i)},gc:function(){for(var e=0,i=this.AG.length;e1?(Z=Math.round(Z),h=Math.round(h)):(Z=Math.floor(Z),h=Math.ceil(h))),(Z=ZC.BQ(u.FR,Z))<(h=ZC.CY(u.GU,h))&&(e["ymin"+r]=Z,e["ymax"+r]=h)}}s.Q0(e)}},ZC.Q4.prototype.A8E=function(e){var i,t,n,a,l,o=this;for(e=e||{},t=null!==ZC._n_(e.graphid)?o.OV(e.graphid):o.AG[0],e.action="viewall",n=0,a=t.BW("k").length;n/g,"")).replace(' xmlns="http://www.w3.org/2000/svg"',""),w:a.I,h:a.F,t:e,fn:o};if(ZC._cp_(i,c),zingchart.AJAXEXPORT&&"pdf"!==e&&"svg"!==e&&!l){var u="base64=1&";for(C in c)u+=C+"="+encodeURIComponent(c[C])+"&";ZC.A5.ajax({type:"post",url:zingchart.EXPORTURL,data:u,success:function(i,l,o){if(a.A48(),t)n&&n(i,l,o);else{var s=document.createElement("img");s.src=i,s.id=a.K+"-print-"+e,r.appendChild(s)}}})}else{ZC.AL(a.K+"-export")&&ZC.Q.EV(a.K+"-export");var p=ZC.Q.I4({cls:"zc-abs zc-style",id:a.K+"-export",p:ZC.AL(a.K+"-top"),display:"none"}),Z=(s=null!==ZC._n_(c.uid)&&null!==ZC._n_(c.page)?ZC.Q.ABB(ZC.AL(a.K+"-export")):document).createElement("FORM");for(C in Z.action=zingchart.EXPORTURL,Z.method="post",Z.enctype="multipart/form-data",null!==ZC._n_(c.uid)&&null!==ZC._n_(c.page)?s.body.appendChild(Z):p.appendChild(Z),Z.style.display="none",c){var h=s.createElement("INPUT");h.type="hidden",h.name=C,h.value=c[C],Z.appendChild(h)}Z.submit(),Z=null,null!==ZC._n_(c.uid)&&null!==ZC._n_(c.page)&&window.setTimeout(function(){ZC.A5("#"+a.K+"-export").remove()},6e4),window.setTimeout(function(){a.A48()},1e3)}}},ZC.Q4.prototype.Z6=function(e){var i=this;e=e||"png";var t,n,a=[],l=document.createElement("canvas");for(l.width=i.I,l.height=i.F,t=0,n=i.AG.length;t',"","\x3c!--[if gte mso 9]>[ZC]td{border:none;font-family:Calibri,sans-serif} .number{mso-number-format:"0.00";} .text{mso-number-format:"@";}',"","","",""),t=0,n=e.AG.length;t"),_.IR&&""!==_.IR.AM&&(f.push([_.IR.AM]),h.push(""+_.IR.AM+"")),h.push(""),h.push("")),u=[],Z=[];var m="Category",E=!1,D="%Y-%mm-%dd %H:%i:%s";for(B&&(B.F6&&"date"===B.F6.o.type&&(m="Date",E=!0,B.F6.o["export-format"]&&(D=B.F6.o["export-format"])),B.M&&B.M.AM&&(m=B.M.AM.replace(/\"|\'/g,""))),"csv"===i?u.push('"'+m+'"'):"raw"===i?Z.push(m):"html"!==i&&"xls"!==i||u.push(""+m+""),a=0,l=g.length;a"+p+""),b.push(""));if("csv"===i?h.push(u.join(",")):"raw"===i?f.push(Z):"html"!==i&&"xls"!==i||h.push(u.join("")),"html"!==i&&"xls"!==i||(h.push(""),h.push(""),h.push("")),B){for(s=0,C=B.V.length;s"),"pie"!==_.AF&&"pie3d"!==_.AF&&"nestedpie"!==_.AF||B.V[I[A][0]]&&(I[A][0]=B.V[I[A][0]]),B.BY[I[A][0]]&&(I[A][0]=B.BY[I[A][0]]),B.V[I[A][0]]&&-1===ZC.AV(F,I[A][0])&&(I[A][0]=B.V[I[A][0]]),(x=_.A.FF()).row=A,x.col=0,x.value=I[A][0],I[A][0]=ZC.AQ.C0("dataexport",_.A,x,I[A][0],null),ZC._n_(I[A][1]))for(var w=0;w"+[].concat(I[A][0]).concat(I[A][1]).join("")+""),"html"!==i&&"xls"!==i||h.push("")}}"html"!==i&&"xls"!==i||(h.push(""),h.push("")),n>1&&t 

"))}return"xls"===i&&h.push("",""),"raw"===i?f:("csv"===i?d=h.join("\n"):"html"!==i&&"xls"!==i||(d=h.join("")),d)},zingchart.ABD=function(e,i,t){var n,a,l,o,r,s="",C="";function A(e){ZC.A5.ajax({type:"post",url:a,data:e,success:function(e,i,t){l&&l(e,i,t)}})}document.getElementById("zc-fullscreen")&&(e="zc-fullscreen"),"string"==typeof(t=t||{})&&(t=JSON.parse(t));var c=zingchart.getLoader(e);if(c)switch(i){case"getimagedata":if(o="png",null!==ZC._n_(n=t.format)&&(o=n),null!==ZC._n_(n=t.filetype)&&(o=n),"jpg"===o&&(o="jpeg"),zingchart.DEV.LOCALSVGEXPORT&&"svg"===c.AC&&("png"===o||"jpeg"===o)){c.togglePreviewMasks(!0);var u=ZC.AL(c.K+"-svg").parentNode.innerHTML,p=u.indexOf(">"),Z=u.indexOf("");u=(u='[CSS]'+u.substring(p+1,Z+6)).replace(//g,"");var h=function(){var e,i=window.URL||window.webkitURL||window,n=!1;navigator&&navigator.userAgent&&-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&(n=!0),e=i.createObjectURL&&window.Blob&&!n?i.createObjectURL(new window.Blob([u],{type:"image/svg+xml;charset-utf-16"})):"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(u),c.togglePreviewMasks(!1);var a=new window.Image;a.crossOrigin="anonymous",a.src=e,a.onload=function(){var i=document.createElement("canvas"),n=i.getContext("2d");if(i.width=a.width,i.height=a.height,n.drawImage(a,0,0,i.width,i.height),t.callback&&"function"==typeof t.callback)try{t.callback(i.toDataURL("image/"+o))}catch(l){t.callback(e)}}},d=0,f=function(){var e=new XMLHttpRequest;e.open("get",c.A27[d]),e.responseType="text",e.onloadend=function(e){var i=e.target.response,t=i.match(/https?:\/\/[^ \)]+/g),n=0;t.forEach(function(e){var a=new XMLHttpRequest;a.open("get",e),a.responseType="blob",a.onloadend=function(a){var l=new FileReader;l.onloadend=function(a){i=i.replace(new RegExp(e),a.target.result),++n===t.length&&(u=u.replace("[CSS]","[CSS]"),++d===c.A27.length?(u=u.replace("[CSS]",""),h()):f())},l.readAsDataURL(a.target.response)},a.send()})},e.send()};c.A27.length?f():(u=u.replace("[CSS]",""),h())}if("canvas"!==c.AC&&!zingchart.AJAXEXPORT)return-1;if("canvas"===c.AC){if(!t.callback||"function"!=typeof t.callback)return c.Z6(o);try{t.callback(c.Z6(o))}catch(b){t.callback(-1)}}else c.OH(o,{},!0,t.callback);break;case"exportimage":case"saveasimage":if(!t.download&&"canvas"!==c.AC&&!zingchart.AJAXEXPORT)return-1;if(o="png",r={},null!==ZC._n_(n=t.options)&&(r=n),null!==ZC._n_(n=t.uid)&&(r.uid=n),null!==ZC._n_(n=t.page)&&(r.page=n),null!==ZC._n_(n=t.format)&&(o=n),null!==ZC._n_(n=t.filetype)&&(o=n),null!==ZC._n_(n=t.filename)&&(s=n),a=c.E.exportimageurl||"",null!==ZC._n_(n=t.url)&&(a=n),l=null,null!==ZC._n_(n=t.callback)&&(l=n),"jpg"===o&&(o="jpeg"),t.download&&("canvas"!==c.AC||"pdf"===o))return r.download=!0,""!==s&&(r.fn=s),void c.OH(o,r);if(""!==a){if("canvas"===c.AC)return A(c.Z6(o));c.OH(o,r,!0,function(e){return A(e)})}break;case"exportdata":if(a=c.E.exportdataurl||"",null!==ZC._n_(n=t.url)&&(a=n),C=ZC.AQ.XW(c,"csv"),""===a)return C;l=null,null!==ZC._n_(n=t.callback)&&(l=n),ZC.A5.ajax({type:"post",url:a,data:C,success:function(e,i,t){l&&l(e,i,t)}});break;case"downloadCSV":C=ZC.AQ.XW(c,"csv"),ZC.AQ.downloadFile(C,(t.fn||c.K)+".csv","text/csv;encoding:utf-8");break;case"downloadXLS":C=ZC.AQ.XW(c,"xls");var _=t.sn||"ZingChart";C=C.replace("[ZC]",""+_+""),ZC.AQ.downloadFile(C,(t.fn||c.K)+".xls","application/vnd.ms-excel;encoding:utf-8");break;case"downloadRAW":var g=ZC.AQ.XW(c,"raw");if(!t.callback||"function"!=typeof t.callback)return g;try{t.callback(g,t.fn||c.K)}catch(b){t.callback(-1)}break;case"viewDataTable":if("viewdatatable"===t.menuid)if(C=ZC.AQ.XW(c,"html"),ZC.AL(c.K+"-data-table"))ZC.AL(c.K+"-data-table").innerHTML=C;else{var v=ZC.Q.I4({id:c.K+"-data-table",cls:"zc-data-table "+c.K+"-data-table"});ZC.Q.PL(v,{width:c.I+"px","max-height":"400px",overflow:"auto"}),v.innerHTML=C,ZC.AL(c.K).parentNode.insertBefore(v,ZC.AL(c.K).nextSibling)}else"hidedatatable"===t.menuid&&ZC.Q.EV(c.K+"-data-table")}return null},ZC.A8W={},ZC.AQ.WV=function(e){for(var i,t="",n=!1,a=!1,l=0,o="",r=0,s=(e=e.replace(/\t|\r|\n/g,"")).length;r '+ZC.HD["viewsource-originalsource"]+' '+ZC.HD["viewsource-jsonsource"]+'
'),zingchart.EDITSOURCE&&(ZC.AL(e.K+"-viewsource-actions").innerHTML+=''),ZC.A5("#"+e.K+"-viewsource-json").val(ZC.AQ.WV(e.E.source)),ZC.A5("#"+e.K+"-viewsource-jsonsource").bind("click",function(){ZC.AL(e.K+"-viewsource-jsonsource").className="zc-tab-active",ZC.AL(e.K+"-viewsource-originalsource").className="zc-tab-inactive",ZC.A5("#"+e.K+"-viewsource-json").val(ZC.AQ.WV(e.E.json))}),ZC.A5("#"+e.K+"-viewsource-originalsource").bind("click",function(){ZC.AL(e.K+"-viewsource-jsonsource").className="zc-tab-inactive",ZC.AL(e.K+"-viewsource-originalsource").className="zc-tab-active",ZC.A5("#"+e.K+"-viewsource-json").val(ZC.AQ.WV(e.E.source))}),ZC.A5("#"+e.K+"-viewsource-close").bind("click",function(){ZC.AQ.C0("source_hide",e,e.FF()),ZC.Q.EV(e.K+"-viewsource")}),zingchart.EDITSOURCE&&ZC.A5("#"+e.K+"-viewsource-apply").bind("click",function(){ZC.AQ.C0("source_hide",e,e.FF());var i=ZC.A5("#"+e.K+"-viewsource-json").val();ZC.Q.EV(e.K+"-viewsource"),zingchart.exec(e.K,"setdata",{data:i})})},ZC.Q4.prototype.A70=function(){var e=this;if(e.I<300||e.F<300)window.open("http://www.zingchart.com/support/","","");else{var i=ZC.Q.I4({cls:"zc-abs zc-bugreport zc-style",id:e.K+"-bugreport",p:ZC.AL(e.K+"-top"),wh:e.I-(ZC.quirks?0:10)+"/"+(e.F-(ZC.quirks?0:10))}),t="";t+='
'+ZC.HD["bugreport-header"]+'
",ZC.canvas&&(t+='     "),t+='
'+ZC.HD["bugreport-yourcomment"]+'
'+ZC.HD["bugreport-jsondata"]+'
'+ZC.HD["bugreport-youremail"]+(e.I>=510?" ("+ZC.HD["bugreport-infoemail"]+")":"")+'
',i.innerHTML=ZC._h_(t),ZC.A5("#"+e.K+"-bugreport-json").val("PARSED\n----------\n"+ZC.AQ.WV(e.E.json)+"\n\nORIGINAL\n----------\n"+ZC.AQ.WV(e.E.source)),ZC.A5("#"+e.K+"-bugreport-cancel").bind("click",function(){ZC.Q.EV(e.K+"-bugreport")}),ZC.A5("#"+e.K+"-bugreport-submit").bind("click",function(){var i=ZC.A5("#"+e.K+"-bugreport-email");if(0!==i.val().length)if(/^((\w+\+*\-*)+\.?)+@((\w+\+*\-*)+\.?)*[\w-]+\.[a-z]{2,6}$/.test(i.val())){var t="",n=function(){var n=("Parsed:"+e.E.json+" Original:"+e.E.source).replace(/\r|\n|\t|(\s{2,})/g,""),a="",l=[];ZC.A5("#"+e.K+"-chkcapture").attr("checked")&&l.push("****IMAGE:",t),ZC.A5("#"+e.K+"-chkdata").attr("checked")&&l.push("****JSON:",n),l.push("****COMMENT:",ZC.A5("#"+e.K+"-bugreport-comment").val(),"****EMAIL:",i.val(),"****VERSION:",ZC.VERSION,"****WIDTH:",e.I,"****HEIGHT:",e.F,"****URL:",window.location.href,"****UA:",navigator.userAgent,"****RENDER:",e.AC.toUpperCase(),"****RESOLUTION:",screen.width+"x"+screen.height);for(var o=0;o0&&(a+=ZC.Q.FS("rect",!0)+'class="'+n.K+'-history-area zc-history-area" id="'+n.K+'-history-back-area" coords="',a+=ZC._i_(l+ZC.MAPTX)+","+ZC._i_(o+ZC.MAPTX)+","+ZC._i_(l+r/3+ZC.MAPTX)+","+ZC._i_(o+s+ZC.MAPTX),a+='" />');var A=new ZC.DQ(n);A.K=n.K+"-history-forw",A.copy(i),A.D0=!1,n.NV!==n.QR.length-1&&0!==n.QR.length||A.copy(t),A.D=[[l+r,o+s/2],[l+2*r/3,o],[l+2*r/3,o+s],[l+r,o+s/2]],A.IM=ZC.AL(n.A.K+"-text"),A.Z=A.C7=ZC.AL(n.K+"-static-c"),A.parse(),A.paint(),n.NVi[0][0]?-1:e[0][0]i[0][1]?1:e[0][1]i[0][2]?-1:e[0][2]i[0][3]?-1:e[0][3]i[0][3]?1:e[0][3]i[0][0]?-1:e[0][0]i[0][1]?1:e[0][1]i[0][2]?1:e[0][2]i[0]?-1:e[0]0&&C<1&&(C=ZC._i_(t.H.I*C)),t.A7.o.fixed&&(C-=t.A7.I/2)),null!==ZC._n_(t.A7.o.y)&&((A=ZC.IL(t.A7.o.y,!0))>0&&A<1&&(A=ZC._i_(t.H.F*A)),t.A7.o.fixed&&(A-=t.A7.F/2)),C+=ZC._i_(t.A7.E["offset-x"]),A+=ZC._i_(t.A7.E["offset-y"]),"svg"===t.H.AC||!t.A7.o.placement||t.A7.o.fixed){var p=0,Z=!1,h=t.A7.EN;C/a[0]t.H.I-u&&(p=c/a[0]+t.A7.I-t.H.I+u+t.A7.HA/2,C=(t.H.I-u-t.A7.I)*a[0]),A/a[1]t.H.F-u&&(A=t.H.F-u-t.A7.F,(t.CH.node||!t.A7.o.placement||t.A7.o.fixed)&&(h="top",Z=!0)),Z&&(t.A7.EN=h),(0!==p||Z)&&t.A7.Z&&(t.clear(),""!==t.A7.AM&&(Z&&(t.A7.EN=h),p=ZC.CY(p,t.A7.I/2-t.A7.HA/2),p=48*(p=ZC.BQ(p,-t.A7.I/2+t.A7.HA/2))/(t.A7.I/2-t.A7.HA/2),t.A7.EX=p,t.A7.AN&&t.A7.paint()))}switch(t.GI=C,t.IJ=A,t.H.AC){case"svg":null===ZC._n_(t.A7.o.x)&&null===ZC._n_(t.A7.o.y)&&ZC.AL(n+"-tooltip").setAttribute("transform","translate("+C/a[0]+","+A/a[1]+")"),t.A7.E["html-mode"]&&ZC.Q.PL(ZC.AL(n+"-tooltip-text-float"),{left:(""===t.BA?C/a[0]:t.A7.iX)+t.A7.EQ+"px",top:(""===t.BA?A/a[1]:t.A7.iY)+t.A7.FM+"px"});break;case"vml":null===ZC._n_(t.A7.o.x)&&null===ZC._n_(t.A7.o.y)&&ZC.Q.PL(ZC.AL(n+"-tooltip"),{left:C+"px",top:A+"px"});break;case"canvas":null!==ZC._n_(t.CH.x)&&(C=t.CH.x),null!==ZC._n_(t.CH.y)&&(A=t.CH.y);var d=t.A7.E["html-mode"]?0:20;switch(t.A7.VB){case"tl":break;case"tr":C-=t.A7.I;break;case"bl":A-=t.A7.F;break;case"br":C-=t.A7.I,A-=t.A7.F;break;case"c":C-=t.A7.I/2,A-=t.A7.F/2;break;case"t":C-=t.A7.I/2;break;case"r":C-=t.A7.I,A-=t.A7.F/2;break;case"b":C-=t.A7.I/2,A-=t.A7.F;break;case"l":A-=t.A7.F/2}ZC.Q.PL(ZC.AL(n+"-tooltip-c"),{left:C/a[0]-d+"px",top:A/a[1]-d+"px"}),null!==(i=ZC.AL(n+"-tooltip-text"))&&(i.style.display="none",ZC.Q.PL(i,{width:t.A7.I+"px",height:t.A7.F+"px",left:C/a[0]+"px",top:A/a[1]+"px"}),i.style.display="block")}}},onmousemove:function(e){this.show(e)},onmouseover:function(e,i){var t,n,a,l,o,r,s,C=this,A=C.H.K,c=e.targetid||e.target.id,u=c.replace(/--([a-zA-Z0-9]+)/,"").replace("-gshape-area","-area").replace("-area-path","").replace("-path","").replace("-marker-circle","").replace("-marker","").split("-").reverse(),p=c.split("--"),Z=!1,h=!1,d=!1;if("node"===u[1]&&"plot"===u[3]&&"plotset"===u[4]&&(Z=!0),ZC.Q.EV([A+"-tooltip-text",A+"-tooltip",A+"-tooltip-text-float"]),Z){if(!(l=C.H.OV(u[5])))return;if(o=l.AZ.A3[u[2]],r=o.FK(u[0]),"xy"===l.AJ.layout&&r.T6(),!r)return;ZC.A5("#"+A+"-graph-"+u[5]+"-plot-"+u[2]+"-bg-hover-c").show()}else"legend"===u[2]&&0===u[1].indexOf("item")&&(h=!0),0!==u[2].indexOf("scale")||0!==u[1].indexOf("item")&&0!==u[1].indexOf("marker")||(d=!0),l=C.H.OV(u[3]);if(ZC.AL(A+"-tooltip")||(ZC.Q.K1({id:A+"-tooltip",p:ZC.AL(A+"-main"),cls:"zc-abs zc-tooltip",wh:C.H.I+"/"+C.H.F,overflow:"hidden"},C.H.AC),ZC.Q.HI({id:A+"-tooltip-c",p:ZC.AL(A+"-tooltip"),cls:"zc-abs",tl:"-999/-999",width:140,height:60},C.H.AC)),C.A7=zingchart.pool.getInstance("DN",C,A+"-tooltip-text"),C.A7.OE="tooltip",C.A7.A=C.H,l&&l.A7&&C.A7.copy(l.A7),Z)C.A7.append(o.A7.o),l.CD["p"+o.L]&&l.CD["p"+o.L]["n"+r.L]&&C.A7.append(o.A7.o["selected-state"]),2===p.length&&C.A7.append(o.AC3(p[1]));else{var f=!1;if(h&&l.BE&&null!==ZC._n_(l.BE.o.tooltip)&&(C.A7.o.text="",C.A7.append(l.BE.o.tooltip),f=!0),d){C.A7.append({"background-color":"#fff","border-width":1,"border-color":"#999"});var _=l.BM(u[2].replace(/\_/g,"-"));if(_&&null!==ZC._n_(_.o.tooltip)&&(C.A7.o.text="",C.A7.append(_.o.tooltip),f=!0),0===u[1].indexOf("item_"))_&&(-1!==u[1].indexOf("_title")&&_.o.label&&_.o.label.tooltip?(C.A7.o.text="",C.A7.append(_.o.label.tooltip),f=!0):_.o.item&&_.o.item.tooltip&&(C.A7.o.text="",C.A7.append(_.o.item.tooltip),f=!0));else if(0===u[1].indexOf("marker_")){var g=ZC._i_(u[1].replace("marker_",""));_.Q2[g]&&_.Q2[g].o.label&&_.Q2[g].o.label.tooltip&&(C.A7.o.text="",C.A7.append(_.Q2[g].o.label.tooltip),f=!0)}}if("shape"===u[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")}),f=!0;else for(n=0,a=l.FH.length;nt.H.F-5&&(i=t.H.F-5-n.y-r,n.co=-ZC._i_(100*i/(r-l)),n.y=t.H.F-5-r);else if("vertical"===t.BA)e.iY+e.F/2t.H.I-5&&(i=t.H.I-5-n.x-o,n.co=-ZC._i_(100*i/(o-a)),n.x=t.H.I-5-o);else if("node:"===t.BA.substring(0,5)&&e.getTooltipPosition){switch((n=e.getTooltipPosition(t.A7,t.BA.substring(5))).node=!0,n.side=t.BA.substring(5),n.side){case"left":n.x=n.x-o+t.A7.QC,n.y=n.y-r/2+t.A7.MG;break;case"right":n.x=n.x+t.A7.QC,n.y=n.y-r/2+t.A7.MG;break;case"top":n.x=n.x-o/2+t.A7.QC,n.y=n.y-r+t.A7.MG;break;case"bottom":n.x=n.x-o/2+t.A7.QC,n.y=n.y+t.A7.MG;break;case"center":n.x=n.x-o/2+t.A7.QC,n.y=n.y-r/2+t.A7.MG}n.cp=t.A7.EN}if(n.node){var C=0;n.y+r>t.H.F-5&&("top"===n.side||"bottom"===n.side?(n.y=n.y-r-("bottom"===n.side?0:t.A7.G9)-t.A7.MG,n.cp="bottom"):n.y=t.H.F-r-5),n.y<5&&("top"===n.side||"bottom"===n.side?(n.y=n.y+("top"===n.side?0:t.A7.G9)+r-t.A7.MG,n.cp="top"):n.y=5),n.x+o>t.H.I-5&&("left"===n.side||"right"===n.side?(n.x=n.x-o-t.A7.QC-5,n.cp="right"):(C=48*(o-t.H.I+n.x+t.A7.HA/2)/(t.A7.I/2),n.x=t.H.I-o-t.A7.QC-5),n.co=C),n.x<5&&("left"===n.side||"right"===n.side?(n.x=n.x+t.A7.I-t.A7.QC+5,n.cp="left"):(C=48*(n.x-t.A7.HA/2)/(t.A7.I/2),n.x=5),n.co=C)}return n}};ZC.A29=ZC.C9.CC(A29);var A55={$i:function(e){this.b(e);var i=this;i.H=e,i.IO=!1,i.C=null,i.R2=null,i.WP=null,i.IA=0,i.LG=0,i.I9=0,i.LF=0,i.A8=null,i.AK=null,i.Z8=!1,i.AB6=0,i.A0A=!1,i.M=null},parse:function(){var e=this;e.C&&(e.C.H2&&e.append(e.C.H2.o),e.b(),e.ZN("preserve-zoom","A0A","b"),e.M=new ZC.DN(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.AN=!0))},unbind:function(){var e=this;zingchart.DEV.SKIPTRACKERS?ZC.A5(document.body).unbind("mousedown touchstart",e.R4):ZC.A5("#"+e.H.K+"-img").unbind("mousedown touchstart",e.R4),ZC.A5(".zc-node-area").die("mousedown touchstart",e.R4),ZC.A5(document.body).unbind("mousemove touchmove",e.U7),ZC.A5(document.body).unbind("mouseup touchend",e.TU)},bind:function(){var e=this,i=e.H.K;e.R4=function(t){if((!ZC.mobile||"pinch"!==zingchart.TOUCHZOOM)&&!(t.which>1||-1!==ZC.Q.T7(t.target).indexOf("zc-menu-item")||ZC.move)&&("mousedown"!==t.type||!ZC.TOUCHEVENTS)&&-1===t.target.id.indexOf("-legend-header-area")&&(ZC.mobile||t.preventDefault(),e.H.hideCM(),(ZC.mobile||!(t.which>1))&&("vml"!==e.H.AC||-1===t.target.className.indexOf("zc-node-area")))){t.shiftKey&&(e.Z8=!0);var n=ZC.Q.MH(t),a=ZC._tx_(e.H.K),l=ZC.A5("#"+i+"-top").offset(),o=(n[0]-l.left)/a[0],r=(n[1]-l.top)/a[1];e.R2=o,e.WP=r,e.Z8&&(e.AB6=o);for(var s,C=!1,A=0,c=e.H.AG.length;A0&&(e.A8=e.C.BM(e.C.AZ.A3[0].BW("k")[0]),e.AK=e.C.BM(e.C.AZ.A3[0].BW("v")[0])),null!==e.A8&&null!==e.AK&&e.C.AJ["enable-zooming"]&&(e.A8.GN||e.AK.GN)&&(e.IA=e.A8.CK?r:o,e.I9=e.AK.CK?o:r,C=!0,e.A8.GN?e.A8.CK?e.IA=ZC._l_(e.IA,s.iY,s.iY+s.F):e.IA=ZC._l_(e.IA,s.iX,s.iX+s.I):e.IA=e.A8.CK?s.iY:s.iX,e.AK.GN?e.AK.CK?e.I9=ZC._l_(e.I9,s.iX,s.iX+s.I):e.I9=ZC._l_(e.I9,s.iY,s.iY+s.F):e.I9=e.AK.CK?s.iX:s.iY)}return C&&(e.LG=e.IA,e.LF=e.I9,e.IO=!0,ZC.A5(document.body).bind("mousemove touchmove",e.U7),ZC.A5(document.body).bind("mouseup touchend",e.TU),e.Z8?document.body.style.cursor="pointer":(e.parse(),e.C.AJ["3d"]||ZC.Q.I4({id:i+"-zoom",p:ZC.AL(i+"-top"),top:-9,left:-9,wh:"1/1",position:"absolute",border:e.AU+"px solid "+e.BX,background:e.A0,opacity:e.C5}),e.M.AN&&(ZC.Q.I4({id:i+"-from",p:ZC.AL(i+"-top"),top:-9999,left:-9999,position:"absolute",paddingTop:e.M.FM,paddingRight:e.M.FN,paddingBottom:e.M.FW,paddingLeft:e.M.EQ,border:e.M.AU+"px solid "+e.M.BX,background:e.M.A0,color:e.M.C2,fontFamily:e.M.GH,fontWeight:e.M.sFontWeight,fontStyle:e.M.N2?"oblique":"normal",fontSize:e.M.DH,text:""}),ZC.Q.I4({id:i+"-to",p:ZC.AL(i+"-top"),top:-9999,left:-9999,position:"absolute",paddingTop:e.M.FM,paddingRight:e.M.FN,paddingBottom:e.M.FW,paddingLeft:e.M.EQ,border:e.M.AU+"px solid "+e.M.BX,background:e.M.A0,color:e.M.C2,fontFamily:e.M.GH,fontWeight:e.M.sFontWeight,fontStyle:e.M.N2?"oblique":"normal",fontSize:e.M.DH,text:""})),document.body.style.cursor="crosshair")),!!ZC.mobile&&void 0}},e.U7=function(t){if("mousemove"!==t.type||!ZC.TOUCHEVENTS){var n,a;if(ZC.mobile||t.preventDefault(),ZC.move=!0,e.C||(ZC.move=!1,e.IO=!1,ZC.A5(document.body).unbind("mousemove touchmove",e.U7),ZC.A5(document.body).unbind("mouseup touchend",e.TU),document.body.style.cursor="auto",ZC.Q.EV([i+"-zoom",i+"-from",i+"-to"])),e.IO){e.C.A.A7.hide();var l=ZC.Q.MH(t),o=ZC._tx_(e.H.K),r=ZC.A5("#"+i+"-top").offset(),s=(l[0]-r.left)/o[0],C=(l[1]-r.top)/o[1];t.ctrlKey;var A=e.A8.DE?e.A8.AB:0;if(e.LG=e.A8.CK?C:s,e.LF=e.AK.CK?s:C,!e.Z8){var c,u,p,Z,h=e.C.P;n=e.A8.AW?e.A8.BS:e.A8.A9,a=e.A8.AW?e.A8.A9:e.A8.BS,e.A8.GN?e.A8.CK?(e.A8.Y5&&(e.IA=e.A8.iY+n+e.A8.AB*ZC._i_((e.IA-e.A8.iY-n-A/2)/e.A8.AB),e.LG=e.A8.iY+n+A+e.A8.AB*ZC._i_((e.LG-e.A8.iY-n-A/2)/e.A8.AB)),e.IA=ZC._l_(e.IA,h.iY+a,h.iY+h.F-n),e.LG=ZC._l_(e.LG,h.iY+a,h.iY+h.F-n)):(e.A8.Y5&&(e.IA=e.A8.iX+n+e.A8.AB*ZC._i_((e.IA-e.A8.iX-n-A/2)/e.A8.AB),e.LG=e.A8.iX+n+A+e.A8.AB*ZC._i_((e.LG-e.A8.iX-n-A/2)/e.A8.AB)),e.IA=ZC._l_(e.IA,h.iX+n,h.iX+h.I-a),e.LG=ZC._l_(e.LG,h.iX+n,h.iX+h.I-a)):(e.IA=e.A8.CK?h.iY+a:h.iX+n,e.LG=e.A8.CK?h.iY+h.F-n:h.iX+h.I-a),n=e.AK.AW?e.AK.A9:e.AK.BS,a=e.AK.AW?e.AK.BS:e.AK.A9,e.AK.GN?e.AK.CK?(e.AK.Y5&&(e.I9=e.AK.iX+n+e.AK.AB*ZC._i_((e.I9-e.AK.iX-n)/e.AK.AB),e.LF=e.AK.iX+n+e.AK.AB*ZC._i_((e.LF-e.AK.iX-n)/e.AK.AB)),e.I9=ZC._l_(e.I9,h.iX+a,h.iX+h.I-n),e.LF=ZC._l_(e.LF,h.iX+a,h.iX+h.I-n)):(e.AK.Y5&&(e.I9=e.AK.iY+n+e.AK.AB*ZC._i_((e.I9-e.AK.iY-n)/e.AK.AB),e.LF=e.AK.iY+n+e.AK.AB*ZC._i_((e.LF-e.AK.iY-n)/e.AK.AB)),e.I9=ZC._l_(e.I9,h.iY+n,h.iY+h.F-a),e.LF=ZC._l_(e.LF,h.iY+n,h.iY+h.F-a)):(e.I9=e.AK.CK?h.iX+a:h.iY+n,e.LF=e.AK.CK?h.iX+h.I-n:h.iY+h.F-a);var d=ZC.A5.browser.msie?0:2*e.AU;e.C.AJ["3d"]&&(d=0);var f=ZC.AL(i+"-zoom");if(e.A8.CK&&e.AK.CK?(c=ZC._a_(e.LF-e.I9-d),u=ZC._a_(e.LG-e.IA-d),p=ZC.CY(e.I9,e.LF),Z=ZC.CY(e.IA,e.LG)):(c=ZC._a_(e.LG-e.IA-d),u=ZC._a_(e.LF-e.I9-d),p=ZC.CY(e.IA,e.LG),Z=ZC.CY(e.I9,e.LF)),e.C.AJ["3d"]){e.C.O2();var _=ZC.AL(e.H.K+"-guide-c");_&&(ZC.Q.IV(_,e.H.AC,e.C.iX,e.C.iY,e.C.I,e.C.F),ZC.A5(".zc-guide-label").remove()),(f=new ZC.DQ(e)).Z=_,f.A0=f.AE=e.A0,f.BX=e.BX,f.AU=e.AU,f.C5=e.C5,f.D=[[p,Z],[p+c,Z],[p+c,Z+u],[p,Z+u],[p,Z]];for(var g=0;g10&&ZC._a_(e.I9-e.LF)>10){var h,d,f=!1,_=!1;for(r=0,s=(o=e.C.BW("k")).length;r=1&&(Z["zoomx"+C]=!0,Z["xmin"+C]=ZC.CY(a,l),Z["xmax"+C]=ZC.BQ(a,l),"log"===h.BT&&(Z["kmin"+C]=h.V[ZC._i_(ZC.FT(Z["xmin"+C],h.DX))],Z["kmax"+C]=h.V[ZC._i_(ZC.FT(Z["xmax"+C],h.DX))],delete Z["xmin"+C],delete Z["xmax"+C]),f=!0));for(r=0,s=(o=e.C.BW("v")).length;r=u&&(Z["zoomy"+C]=!0,Z["ymin"+C]=ZC.CY(A,c),Z["ymax"+C]=ZC.BQ(A,c),_=!0));f||_?(zingchart.SKIP.EVENT=!0,e.C.A.Q0(Z)):zingchart.SKIP.EVENT=!0}else(ZC._a_(e.IA-e.LG)>5||ZC._a_(e.I9-e.LF)>5)&&(zingchart.SKIP.EVENT=!0);e.C=null}}},ZC.mobile&&"normal"!==zingchart.TOUCHZOOM||(zingchart.DEV.SKIPTRACKERS?ZC.A5(document.body).bind("mousedown touchstart",e.R4):ZC.A5("#"+i+"-img").bind("mousedown touchstart",e.R4),ZC.A5(".zc-node-area").live("mousedown touchstart",e.R4))}};ZC.A55=ZC.HQ.CC(A55);var A2D={$i:function(e){this.b(e);var i=this;i.HZ=!0,i.ABU=!1,i.C=e,i.H=e.A,i.IO=!1,i.A3M=!1,i.H7=null,i.AT=null,i.Z=null,i.II=0,i.H8=0,i.P7=0,i.A0E=0,i.LM=!1,i.NN=null,i.bBind=!1,i.BY=null,i.A1N=!1},parse:function(){var e,i=this;i.K=i.C.K+"-preview",i.assign_a([["live","ABU","b"],["async","LM","b"],["min-distance","P7","i"],["min-distance-x","P7","i"],["min-distance-y","P7","i"],["visible","AN","b"]]);var t="("+i.C.AF+").preview",n=i.H.B8;function a(e){return[t+".handler",t+".handler-"+e,t+".handle",t+".handle-"+e]}i.AT=new ZC.HQ(i.C),i.AT.K=i.C.K+"-preview-viewport",n.load(i.AT.o,[t]),i.AT.append(i.o),i.AT.parse(),i.o.label&&(i.BY=[]),i.o.handle&&i.o.handle.label&&(i.J6=new ZC.DN(i.C),i.J6.append(i.o.handle.label),i.J6.append({text:" "}),i.J6.parse(),i.J6.AN&&(i.A1N=!0)),i.OR=new ZC.CZ(i.C),n.load(i.OR.o,[t+".mask"]),null!==ZC._n_(e=i.o.mask)&&i.OR.append(e),i.OR.parse(),i.UD=new ZC.CZ(i.C),n.load(i.UD.o,[t+".active"]),null!==ZC._n_(e=i.o.active)&&i.UD.append(e),i.UD.parse(),i.IQ=new ZC.HQ(i.AT),i.HG=new ZC.HQ(i.AT),i.JB=new ZC.HQ(i.AT),i.H5=new ZC.HQ(i.AT),n.load(i.IQ.o,a("left")),n.load(i.HG.o,a("right")),n.load(i.JB.o,a("top")),n.load(i.H5.o,a("bottom"));for(var l=["handle","handler"],o=0;o=C.AT.iX&&_.iX+_.I<=C.AT.iX+C.AT.I){for(var g=!1,v=0;vZ[v].x&&_.iX/g," "),R=c.FQ(c.A1,null,null).replace(/
/g," ")),C.R8=ZC.Q.I4({cls:"zc-abs zc-preview-label "+C.C.K+"-preview-label",id:C.K+"-min-label",background:C.J6.A0,opacity:C.J6.C5,fontFamily:C.J6.GH,fontSize:C.J6.DH,fontWeight:C.J6.sFontWeight,color:C.J6.C2,padding:0,html:k+"",p:A}),C.R8.style.left=C.AT.iX+"px",C.R8.style.top=C.AT.iY+C.AT.F+"px",C.R9=ZC.Q.I4({cls:"zc-abs zc-preview-label "+C.C.K+"-preview-label",id:C.K+"-max-label",background:C.J6.A0,opacity:C.J6.C5,fontFamily:C.J6.GH,fontSize:C.J6.DH,fontWeight:C.J6.sFontWeight,color:C.J6.C2,padding:0,html:R+"",p:A}),C.R9.style.left=C.AT.iX+C.AT.I+"px",C.R9.style.top=C.AT.iY+C.AT.F+"px",C.II>ZC.A5(C.R8).width()?C.R8.style.left=C.AT.iX+C.II-ZC.A5(C.R8).width()+"px":C.R8.style.left=C.AT.iX+"px",C.AT.I-C.H8>ZC.A5(C.R9).width()?C.R9.style.left=C.AT.iX+C.H8+"px":C.R9.style.left=C.AT.iX+C.H8-ZC.A5(C.R9).width()+"px"}C.bind(),C.BY&&(C.BY=[])}},reset:function(){var e=this,i=e.C.BW("k")[0],t=e.C.BW("v",!0)[0];t||(t=e.C.BW("v")[0]),i&&t&&e.update(i.D6,i.DR,t.FR,t.GU,!0)},update:function(e,i,t,n,a){null===ZC._n_(a)&&(a=!1);var l=this;if(a||(e>=i&&(e=i-1),t>=n&&(t=n-1)),l.AN){var o=l.C.BW("k")[0],r=l.C.BW("v",!0)[0];r||(r=l.C.BW("v")[0]);var s=!0;if(a){if(o&&r){if(o.CK&&r.CK){var C=e,A=i;e=t,i=n,t=C,n=A}o.CK?(null===ZC._n_(n)&&(n=o.A1),null===ZC._n_(t)&&(t=o.W)):(null===ZC._n_(e)&&(e=o.W),null===ZC._n_(i)&&(i=o.A1)),r.CK?(null===ZC._n_(e)&&(e=r.aAutoFit[0]?r.FR:r.AY),null===ZC._n_(i)&&(i=r.aAutoFit[1]?r.GU:r.BD)):(null===ZC._n_(t)&&(t=r.aAutoFit[0]?r.FR:r.AY),null===ZC._n_(n)&&(n=r.aAutoFit[1]?r.GU:r.BD));var c=o.DE?1:0;o.CK||r.CK?o.AW?l.update((e-r.FR)*l.AT.I/(r.GU-r.FR),(i-r.FR)*l.AT.I/(r.GU-r.FR),(t-o.D6)*l.AT.F/(o.DR-o.D6),(n-o.D6)*l.AT.F/(o.DR-o.D6)):l.update((e-r.FR)*l.AT.I/(r.GU-r.FR),(i-r.FR)*l.AT.I/(r.GU-r.FR),l.AT.F-(n-o.D6)*l.AT.F/(o.DR-o.D6),l.AT.F-(t-o.D6)*l.AT.F/(o.DR-o.D6)):o.AW?l.update(l.AT.I-(i-o.D6+c)*l.AT.I/(o.DR-o.D6+c),l.AT.I-(e-o.D6)*l.AT.I/(o.DR-o.D6+c),l.AT.F-(n-r.FR)*l.AT.F/(r.GU-r.FR),l.AT.F-(t-r.FR)*l.AT.F/(r.GU-r.FR)):l.update((e-o.D6)*l.AT.I/(o.DR-o.D6+c),(i-o.D6+c)*l.AT.I/(o.DR-o.D6+c),l.AT.F-(n-r.FR)*l.AT.F/(r.GU-r.FR),l.AT.F-(t-r.FR)*l.AT.F/(r.GU-r.FR))}}else if(i-ei&&(l.H7===l.KK?l.update(i-1,i,t,n):l.H7===l.JZ&&l.update(e,e+1,t,n),s=!1),e<0&&(l.H7===l.KK?l.update(0,i,t,n):l.H7===l.KG&&l.update(0,ZC.A5(l.KG).width(),t,n),s=!1),i>l.AT.I&&(l.H7===l.JZ?l.update(e,l.AT.I,t,n):l.H7===l.KG&&l.update(l.AT.I-ZC.A5(l.KG).width(),l.AT.I,t,n),s=!1),t>n&&(l.H7===l.L4?l.update(e,i,t-1,n):l.H7===l.JH&&l.update(e,i,t,n+1),s=!1),t<0&&(l.H7===l.L4?l.update(e,i,0,n):l.H7===l.KG&&l.update(e,i,0,ZC.A5(l.KG).height()),s=!1),n>l.AT.F&&(l.H7===l.JH?l.update(e,i,t,l.AT.F):l.H7===l.KG&&l.update(e,i,l.AT.F-ZC.A5(l.KG).height(),l.AT.F),s=!1),s){var u;if(o&&o.Y5)o.CK?(t=(u=l.AT.F/(o.V.length-(o.DE?0:1)))*Math.round(t/u),n=ZC.CY(u*Math.round(n/u),l.AT.F)):(e=(u=l.AT.I/(o.V.length-(o.DE?0:1)))*Math.round(e/u),i=ZC.CY(u*Math.round(i/u),l.AT.I));l.II=e,l.H8=i,l.KT=t,l.HB=n,(!o.CK&&o.GN||r.CK&&r.GN)&&(l.KK.style.left=ZC._i_(l.AT.iX+l.II-l.IQ.I/2-l.PS/2)+"px",l.A3D.style.width=ZC._i_(l.II)+"px",l.JZ.style.left=ZC._i_(l.AT.iX+l.H8-l.HG.I/2-l.PS/2)+"px",l.X8.style.left=ZC._i_(l.AT.iX+l.H8)+"px",l.X8.style.width=ZC._i_(l.AT.I-l.H8)+"px"),(!r.CK&&r.GN||o.CK&&o.GN)&&(l.L4.style.top=ZC._i_(l.AT.iY+l.KT-l.JB.F/2-l.PS/2)+"px",l.A4U.style.height=ZC._i_(l.KT)+"px",l.JH.style.top=ZC._i_(l.AT.iY+l.HB-l.H5.F/2-l.PS/2)+"px",l.VT.style.top=ZC._i_(l.AT.iY+l.HB)+"px",l.VT.style.height=ZC._i_(l.AT.F-l.HB)+"px"),(o.GN||r.GN)&&(l.KG.style.left=ZC._i_(l.AT.iX+l.II)+"px",l.KG.style.width=ZC._i_(l.H8-l.II)+"px",l.KG.style.top=ZC._i_(l.AT.iY+l.KT)+"px",l.KG.style.height=ZC._i_(l.HB-l.KT)+"px"),l.ABU&&l.IO&&(l.C.OA=!0,l.zoom(!0)),o.GN&&l.A1N&&(o.F6&&"date"===o.F6.o.type?(l.R8.innerHTML=o.FQ(o.W,null,null).replace(/
/g," "),l.R9.innerHTML=o.FQ(o.A1,null,null).replace(/
/g," ")):(l.R8.innerHTML=o.W,l.R9.innerHTML=o.A1),l.II>ZC.A5(l.R8).width()?l.R8.style.left=l.AT.iX+l.II-ZC.A5(l.R8).width()+"px":l.R8.style.left=l.AT.iX+"px",l.AT.I-l.H8>ZC.A5(l.R9).width()?l.R9.style.left=l.AT.iX+l.H8+"px":l.R9.style.left=l.AT.iX+l.H8-ZC.A5(l.R9).width()+"px")}}},zoom:function(e){for(var i,t=this,n={graphid:t.C.K,preview:1,async:t.LM,previewscale:!0,zooming:e},a=t.C.BO,l=t.C.BW("k")[0],o=t.C.BW("v")[0],r=0,s=a.length;re.AT.I?(e.II=e.AT.I-o,e.H8=e.AT.I):(e.II=ZC._i_(l-o/2),e.H8=ZC._i_(l+o/2))}else{var r=n[1]-a.top-e.AT.iY,s=e.HB-e.KT;r-s/2<0?(e.KT=0,e.HB=s):r+s/2>e.AT.F?(e.KT=e.AT.F-s,e.HB=e.AT.F):(e.KT=ZC._i_(r-s/2),e.HB=ZC._i_(r+s/2))}return e.IO=!1,e.C.OA=!1,e.update(e.II,e.H8,e.KT,e.HB),e.zoom(!1),!1}},e.YW=function(a){if(a.preventDefault(),e.H.H2){e.H.H2.C=e.C,e.H.H2.parse();for(var l=a.target;l&&"BODY"!==l.tagName.toUpperCase();){if(-1!==ZC.Q.T7(l).indexOf("zc-preview-handler"))break;l=l.parentNode}if((ZC.mobile||!(a.which>1))&&l){var o=ZC.Q.MH(a),r=ZC._tx_(e.H.K),s=ZC.A5("#"+i+"-top").offset(),C=(o[0]-s.left)/r[0]-e.AT.iX,A=(o[1]-s.top)/r[1]-e.AT.iY;return-1!==l.id.indexOf("handler-x-left")?e.H7=e.KK:-1!==l.id.indexOf("handler-x-right")?e.H7=e.JZ:-1!==l.id.indexOf("handler-y-top")?e.H7=e.L4:-1!==l.id.indexOf("handler-y-bottom")?e.H7=e.JH:-1!==l.id.indexOf("handler-middle")&&(e.H7=e.KG,t=C-e.II,n=A-e.KT),ZC.A5(document.body).bind("mousemove touchmove",e.V1),ZC.A5(document.body).bind("mouseup touchend",e.TW),e.IO=!0,e.A3M=!1,!1}}},e.V1=function(a){if(e.IO){e.A3M=!0,zingchart.exec(e.H.K,"setmode",{mode:"static,fast"});var l=ZC._tx_(e.H.K),o=ZC.Q.MH(a),r=ZC.A5("#"+i+"-top").offset(),s=(o[0]-r.left)/l[0]-e.AT.iX,C=(o[1]-r.top)/l[1]-e.AT.iY;e.H7===e.KK?e.update(s,e.H8,e.KT,e.HB):e.H7===e.JZ?e.update(e.II,s,e.KT,e.HB):e.H7===e.L4?e.update(e.II,e.H8,C,e.HB):e.H7===e.JH?e.update(e.II,e.H8,e.KT,C):e.H7===e.KG&&e.update(s-t,s-t+ZC.A5(e.KG).width(),C-n,C-n+ZC.A5(e.KG).height())}return!1},e.TW=function(){return zingchart.exec(e.H.K,"setmode",{mode:""}),e.IO&&(ZC.A5(document.body).unbind("mousemove touchmove",e.V1),ZC.A5(document.body).unbind("mouseup touchend",e.TW),e.IO=!1,e.C.OA=!1,e.A3M&&e.zoom(!1),e.A3M=!1),!1},ZC.A5("."+e.C.K+"-preview-handler").bind("mousedown touchstart",e.YW),ZC.A5("."+e.C.K+"-preview-mask").bind("click",e.AGE),e.bBind=!0}},gc:function(){ZC.AQ.gc(this,["Z","C7","o","I8","JC","C","H","AT","UD","KK","JZ","L4","JH","KG","JB","HG","H5","IQ","oMask","OR","A3D","X8","A4U","VT"])}};ZC.A2D=ZC.CZ.CC(A2D);var ZM={$i:function(e,i){this.b(e);var t=this;t.C=e,t.H=e.A,t.IO=!1,t.Z=null,t.BK=0,t.BI=0,t.A76="",t.bYX="yx"===t.C.AJ.layout,t.AF=t.sTypeE=t.sTypeN="scroll-"+(i||"x"),t.bYX&&(t.AF+="i",t.sTypeE="scroll-xi"===t.AF?"scroll-y":"scroll-x")},parse:function(){var e,i=this;i.K=i.C.K+"-"+i.sTypeE,i.assign_a([["offset-x","BK"],["offset-y","BI"]]);var t="("+i.C.AF+").",n=i.H.B8;i.B2=new ZC.HQ(i.C),n.load(i.B2.o,[t+"scroll.bar",t+i.AF+".bar"]),null!==ZC._n_(e=i.o.bar)&&i.B2.append(e),i.B2.parse(),i.B3=new ZC.HQ(i.C),n.load(i.B3.o,[t+"scroll.handle",t+i.AF+".handle"]),null!==ZC._n_(e=i.o.handle)&&i.B3.append(e),i.B3.parse()},paint:function(){var e=this,i=e.C.BW("k")[0],t=e.C.BW("v")[0],n=e.C.P;if(("scroll-x"===e.AF||"scroll-xi"===e.AF)&&i.D6===i.W&&i.DR===i.A1||("scroll-y"===e.AF||"scroll-yi"===e.AF)&&t.FR===t.AY&&t.GU===t.BD)return e.unbind(),ZC.A5("#"+e.C.K+"-"+e.AF+"-handle").remove(),ZC.A5("#"+e.C.K+"-"+e.AF+"-bar").remove(),void ZC.Q.IV(e.Z,e.H.AC,e.C.iX,e.C.iY,e.C.I,e.C.F);e.Z=ZC.AL(e.C.K+"-"+e.sTypeN+"-c");var a=ZC.AL(e.H.K+"-top");"scroll-x"===e.AF||"scroll-yi"===e.AF?(e.B2.iX=n.iX+e.BK,e.B2.iY=n.iY+n.F+i.B1-1+e.BI,e.B2.I=n.I,e.bYX?(e.B3.I=ZC._i_(ZC.BQ(4,e.B2.I*((t.BD-t.AY)/(t.GU-t.FR)))),t.FR===t.AY?t.AW?e.B3.iX=e.B2.iX+e.B2.I-e.B3.I:e.B3.iX=e.B2.iX:t.GU===t.BD?t.AW?e.B3.iX=e.B2.iX:e.B3.iX=e.B2.iX+e.B2.I-e.B3.I:t.AW?e.B3.iX=ZC._i_(e.B2.iX+e.B2.I-e.B3.I-e.B2.I*(t.AY-t.FR)/(t.GU-t.FR)):e.B3.iX=ZC._i_(e.B2.iX+e.B2.I*(t.AY-t.FR)/(t.GU-t.FR))):(e.B3.I=ZC._i_(ZC.BQ(4,e.B2.I*((i.A1-i.W)/(i.DR-i.D6)))),i.D6===i.W?i.AW?e.B3.iX=e.B2.iX+e.B2.I-e.B3.I:e.B3.iX=e.B2.iX:i.DR===i.A1?i.AW?e.B3.iX=e.B2.iX:e.B3.iX=e.B2.iX+e.B2.I-e.B3.I:i.AW?e.B3.iX=ZC._i_(e.B2.iX+e.B2.I-e.B3.I-e.B2.I*(i.W-i.D6)/(i.DR-i.D6)):e.B3.iX=ZC._i_(e.B2.iX+e.B2.I*(i.W-i.D6)/(i.DR-i.D6))),ZC.AL(e.K+"-handle")?(ZC.A5("#"+e.K+"-bar").css("top",e.B2.iY+"px"),ZC.A5("#"+e.K+"-handle").css("left",e.B3.iX+"px").css("top",e.B2.iY+"px").css("width",ZC.BQ(15,e.B3.I)+"px"),e.paint_()):(e.AAE=ZC.Q.I4({cls:"zc-abs zc-scroll zc-scroll-x-bar "+e.C.K+"-scroll-x-bar",id:e.K+"-bar",wh:e.B2.I+"/"+e.B2.F,tl:e.B2.iY+"/"+e.B2.iX,opacity:0,p:a}),e.ZA=ZC.Q.I4({cls:"zc-abs zc-scroll zc-scroll-x-handle "+e.C.K+"-scroll-x-handle",id:e.K+"-handle",wh:ZC.BQ(15,e.B3.I)+"/"+e.B2.F,tl:e.B2.iY+"/"+(e.B3.iX-2),background:"#fff",opacity:0,p:a}),e.ZA.style.cursor="pointer",e.paint_(),e.IO||e.bind())):(e.B2.iX=n.iX-e.B2.I-1+e.BK,e.B2.iY=n.iY+e.BI,e.B2.F=n.F,e.bYX?(e.B3.F=ZC._i_(ZC.BQ(4,e.B2.F*((i.A1-i.W)/(i.DR-i.D6)))),i.D6===i.W?i.AW?e.B3.iY=e.B2.iY:e.B3.iY=e.B2.iY+e.B2.F-e.B3.F:i.DR===i.A1?i.AW?e.B3.iY=e.B2.iY+e.B2.F-e.B3.F:e.B3.iY=e.B2.iY:i.AW?e.B3.iY=ZC._i_(e.B2.iY+e.B2.F*(i.W-i.D6)/(i.DR-i.D6)):e.B3.iY=ZC._i_(e.B2.iY+e.B2.F-e.B3.F-e.B2.F*(i.W-i.D6)/(i.DR-i.D6))):(e.B3.F=ZC._i_(ZC.BQ(4,e.B2.F*((t.BD-t.AY)/(t.GU-t.FR)))),t.FR===t.AY?t.AW?e.B3.iY=e.B2.iY:e.B3.iY=e.B2.iY+e.B2.F-e.B3.F:t.GU===t.BD?t.AW?e.B3.iY=e.B2.iY+e.B2.F-e.B3.F:e.B3.iY=e.B2.iY:t.AW?e.B3.iY=ZC._i_(e.B2.iY+e.B2.F*(t.AY-t.FR)/(t.GU-t.FR)):e.B3.iY=ZC._i_(e.B2.iY+e.B2.F-e.B3.F-e.B2.F*(t.AY-t.FR)/(t.GU-t.FR))),ZC.AL(e.K+"-handle")?(ZC.A5("#"+e.K+"-bar").css("left",e.B2.iX+"px"),ZC.A5("#"+e.K+"-handle").css("top",e.B3.iY+"px").css("left",e.B2.iX+"px").css("height",ZC.BQ(15,e.B3.F)+"px"),e.paint_()):(e.AAF=ZC.Q.I4({cls:"zc-abs zc-scroll zc-scroll-y-bar "+e.C.K+"-scroll-y-bar",id:e.K+"-bar",wh:e.B2.I+"/"+e.B2.F,tl:e.B2.iY+"/"+e.B2.iX,opacity:0,p:a}),e.ZB=ZC.Q.I4({cls:"zc-abs zc-scroll zc-scroll-y-handle "+e.C.K+"-scroll-y-handle",id:e.K+"-handle",wh:e.B2.I+"/"+ZC.BQ(15,e.B3.F),tl:e.B3.iY-2+"/"+e.B2.iX,background:"#fff",opacity:0,p:a}),e.ZB.style.cursor="pointer",e.paint_(),e.IO||e.bind()))},zoom:function(e){for(var i,t,n,a=this,l={graphid:a.C.K,zooming:e,scroll:!0},o=a.C.BO,r=a.C.BW("k")[0],s=a.C.BW("v")[0],C=0,A=o.length;Ct.C.P.iX+t.C.P.I&&(i.iX=t.C.P.iX+t.C.P.I-i.I),i.iXt.C.P.iY+t.C.P.F&&(i.iY=t.C.P.iY+t.C.P.F-i.F),i.iY1)&&(e.A76=e.H.KP.join(","),e.H.KP.push("skip_context_menu","skip_objects_tracking","skip_segment_tracking","skip_marker_tracking","skip_interactivity"),e.H.H2)){e.H.H2.C=e.C,e.H.H2.parse();for(var l=a.target;l&&"BODY"!==l.tagName.toUpperCase();){if(-1!==ZC.Q.T7(l).indexOf("zc-"+e.AF+"-handle"))break;l=l.parentNode}if((ZC.mobile||!(a.which>1))&&l){var o=ZC.Q.MH(a),r=ZC.A5("#"+i+"-top").offset();if("scroll-x"===e.AF||"scroll-yi"===e.AF){var s=o[0]-r.left;t=s-e.B3.iX}else{var C=o[1]-r.top;n=C-e.B3.iY}return ZC.A5(document.body).bind("mousemove touchmove",e.RG),ZC.A5(document.body).bind("mouseup touchend",e.M7),e.IO=!0,!1}}},e.RG=function(a){if(e.IO){e.setScrollingFlag(!1);var l=ZC.Q.MH(a),o=ZC.A5("#"+i+"-top").offset();if("scroll-x"===e.AF||"scroll-yi"===e.AF){var r=l[0]-o.left;r-te.B2.iX+e.B2.I&&(r>e.B2.iX+e.B2.I+15&&e.overscroll("scroll-x-right"),r=e.B2.iX+e.B2.I+t-e.B3.I),e.update(r-t)}else{var s=l[1]-o.top;s-ne.B2.iY+e.B2.F&&(s>e.B2.iY+e.B2.F+15&&e.overscroll("scroll-y-bottom"),s=e.B2.iY+e.B2.F+n-e.B3.F),e.update(s-n)}}return!1},e.M7=function(i){return e.H.KP=e.A76.split(","),e.IO&&(ZC.A5(document.body).unbind("mousemove touchmove",e.RG),ZC.A5(document.body).unbind("mouseup touchend",e.M7),e.IO=!1,e.setScrollingFlag(!1),i&&e.zoom(!1)),!1},e.RH=function(t){e.IO=!1,e.setScrollingFlag(!1);var n=ZC.Q.MH(t),a=ZC.A5("#"+i+"-top").offset();"scroll-x"===e.AF||"scroll-yi"===e.AF?n[0]-a.left>e.B3.iX?e.update(ZC.CY(e.B2.iX+e.B2.I-e.B3.I-2*e.B3.AU,e.B3.iX+(n[0]-a.left-e.B3.iX)/4)):e.update(ZC.BQ(e.B2.iX,n[0]-a.left+(e.B3.iX-n[0]+a.left-e.B3.I)/4)):n[1]-a.top>e.B3.iY?e.update(ZC.CY(e.B2.iY+e.B2.F-e.B3.F-2*e.B3.AU,e.B3.iY+(n[1]-a.top-e.B3.iY)/4)):e.update(ZC.BQ(e.B2.iY,n[1]-a.top+(e.B3.iY-n[1]+a.top-e.B3.F)/4)),e.zoom(!1)},ZC.A5("."+e.C.K+"-"+e.sTypeE+"-handle").bind("mousedown touchstart",e.RF),ZC.A5("."+e.C.K+"-"+e.sTypeE+"-bar").bind("click",e.RH)}};ZC.ZM=ZC.CZ.CC(ZM);var WU={$i:function(e,i){this.b(e);var t=this;t.BE=e,t.IO=!1,t.Z=null,t.A76="",t.KS=1,t.H3=1,t.AF="scroll-"+(i||"y")},parse:function(){var e,i=this;i.K=i.BE.K+"-legend-"+i.AF;var t=i.BE.A.H.B8,n="("+i.BE.A.AF+")";i.B2=new ZC.HQ(i.BE),t.load(i.B2.o,[n+".legend.scroll.bar",i.AF+".bar"]),null!==ZC._n_(e=i.o.bar)&&i.B2.append(e),i.B2.parse(),i.B3=new ZC.HQ(i.BE),t.load(i.B3.o,[n+".legend.scroll.handle",i.AF+".handle"]),null!==ZC._n_(e=i.o.handle)&&i.B3.append(e),i.B3.parse()},paint:function(){var e,i=this;if(!i.IO){i.Z=ZC.AL(i.BE.A.K+"-legend-scroll-c");var t=ZC.AL(i.H.K+"-top");"scroll-y"===i.AF?(i.B2.iX=i.BE.iX+i.BE.I-i.B2.I-1,i.B2.iY=i.BE.EJ,i.B2.F=i.BE.F-(i.BE.KM?i.BE.KM.F:0)-(i.BE.EJ-i.BE.iY),e=Math.ceil(i.BE.B6.length/i.H3-i.BE.EH/i.H3)+1,i.B3.F=i.B2.F/e,i.B3.iY=i.B2.iY,0!==i.BE.D5.min&&(i.B3.iY+=i.BE.D5.min/i.H3*i.B3.F),ZC.AL(i.K+"-legend-handle")?(ZC.A5("#"+i.K+"-legend-handle").css("left",i.B2.iX+"px").css("top",i.B3.iY+"px").css("height",i.B3.F-0*i.B3.AU+"px"),ZC.A5("#"+i.K+"-legend-bar").css("left",i.B2.iX+"px").css("top",i.B2.iY+"px"),ZC.A5("#"+i.BE.K+"-frame").css("left",i.BE.iX+"px").css("top",i.BE.EJ+"px"),i.paint_()):(i.AAF=ZC.Q.I4({cls:"zc-abs zc-scroll zc-scroll-y-bar "+i.BE.K+"-scroll-y-legend-bar",id:i.K+"-legend-bar",wh:i.B2.I+"/"+i.B2.F,tl:i.B2.iY+"/"+i.B2.iX,background:"#fff",opacity:0,zidx:1,p:t}),i.ZB=ZC.Q.I4({cls:"zc-abs zc-scroll zc-scroll-y-handle "+i.BE.K+"-scroll-y-legend-handle",id:i.K+"-legend-handle",wh:i.B2.I-0*i.B3.AU+"/"+(i.B3.F-0*i.B3.AU),tl:i.B3.iY+"/"+i.B2.iX,background:"#fff",opacity:0,zidx:1,p:t}),i.ZB.style.cursor="pointer",i.paint_())):"scroll-x"===i.AF&&(i.B2.iX=i.BE.iX,i.B2.iY=i.BE.iY+i.BE.F-i.B2.F-1,i.B2.I=i.BE.I,e=Math.ceil(i.BE.B6.length/i.KS-i.BE.EH/i.KS)+1,i.B3.I=i.B2.I/e,i.B3.iX=i.B2.iX,0!==i.BE.D5.min&&(i.B3.iX+=i.BE.D5.min/i.KS*i.B3.I),ZC.AL(i.K+"-legend-handle")?(ZC.A5("#"+i.K+"-legend-handle").css("left",i.B3.iX+"px").css("top",i.B2.iY+"px").css("width",i.B3.I-0*i.B3.AU+"px"),ZC.A5("#"+i.K+"-legend-bar").css("left",i.B2.iX+"px").css("top",i.B2.iY+"px"),ZC.A5("#"+i.BE.K+"-frame").css("left",i.BE.iX+"px").css("top",i.BE.EJ+"px"),i.paint_()):(i.AAE=ZC.Q.I4({cls:"zc-abs zc-scroll zc-scroll-x-bar "+i.BE.K+"-scroll-x-legend-bar",id:i.K+"-legend-bar",wh:i.B2.I+"/"+i.B2.F,tl:i.B2.iY+"/"+i.B2.iX,background:"#fff",opacity:0,zidx:1,p:t}),i.ZA=ZC.Q.I4({cls:"zc-abs zc-scroll zc-scroll-x-handle "+i.BE.K+"-scroll-x-legend-handle",id:i.K+"-legend-handle",wh:i.B3.I-0*i.B3.AU+"/"+(i.B2.F-0*i.B3.AU),tl:i.B2.iY+"/"+i.B3.iX,background:"#fff",opacity:0,zidx:1,p:t}),i.ZA.style.cursor="pointer",i.paint_())),ZC.move||i.bind()}},paint_:function(){var e,i,t=this;"scroll-y"===t.AF?((e=new ZC.HQ(t)).K=t.BE.K+"-scroll-y-legend-bar",e.copy(t.B2),e.Z=t.Z,e.iX=t.B2.iX,e.iY=t.B2.iY,e.I=t.B2.I,e.F=t.B2.F,e.paint(),(i=new ZC.HQ(t)).K=t.BE.K+"-scroll-y-legend-handle",i.copy(t.B3),i.Z=t.Z,i.iX=t.B2.iX,i.iY=t.B3.iY,i.I=t.B3.I,i.F=t.B3.F,i.paint()):"scroll-x"===t.AF&&((e=new ZC.HQ(t)).K=t.BE.K+"-scroll-x-legend-bar",e.copy(t.B2),e.Z=t.Z,e.iX=t.B2.iX,e.iY=t.B2.iY,e.I=t.B2.I,e.F=t.B2.F,e.paint(),(i=new ZC.HQ(t)).K=t.BE.K+"-scroll-x-legend-handle",i.copy(t.B3),i.Z=t.Z,i.iX=t.B3.iX,i.iY=t.B2.iY,i.I=t.B3.I,i.F=t.B2.F,i.paint())},update:function(e){var i,t,n,a,l,o,r=this,s=r.BE;if("scroll-y"===r.AF){if(er.B3.iX&&!1,e===r.B3.iX)return;r.B3.iX=e,ZC.A5("#"+r.K+"-legend-handle").css("left",e+"px"),i=r.B3.iX-r.B2.iX,a=Math.ceil(s.B6.length/r.KS-s.EH/r.KS)+1,t=r.B2.I/a,o=r.KS}n=Math.round(i/t),l=s.B6.length-s.EH,s.B6.length%o&&(l+=o-s.B6.length%o),s.D5.min=Math.min(n*o,l),s.D5.max=s.D5.min+s.EH,s.WB(),s.clear(!1),s.parse(),s.paint(),r.paint_()},unbind:function(){var e=this;ZC.A5("."+e.BE.K+"-"+e.AF+"-legend-handle").unbind("mousedown touchstart",e.RF),ZC.A5("."+e.BE.K+"-"+e.AF+"-legend-bar").unbind("click",e.RH)},bind:function(){var e=this,i=e.H.K,t=0,n=0;e.RF=function(a){if(a.preventDefault(),!(a.button>1)){for(var l=a.target;l&&"BODY"!==l.tagName.toUpperCase();){if(-1!==ZC.Q.T7(l).indexOf("zc-"+e.AF+"-handle"))break;l=l.parentNode}if((ZC.mobile||!(a.which>1))&&l){var o=ZC.Q.MH(a),r=ZC.A5("#"+i+"-top").offset();if("scroll-y"===e.AF){var s=o[1]-r.top;n=s-e.B3.iY}else if("scroll-x"===e.AF){var C=o[0]-r.left;t=C-e.B3.iX}return ZC.A5(document.body).bind("mousemove touchmove",e.RG),ZC.A5(document.body).bind("mouseup touchend",e.M7),e.IO=!0,!1}}},e.RG=function(a){if(a.preventDefault(),e.IO){var l=ZC.Q.MH(a),o=ZC.A5("#"+i+"-top").offset();if("scroll-y"===e.AF){var r=l[1]-o.top;r-ne.B2.iY+e.B2.F&&(r=e.B2.iY+e.B2.F+n-e.B3.F),e.update(r-n)}else if("scroll-x"===e.AF){var s=l[0]-o.left;s-te.B2.iX+e.B2.I&&(s=e.B2.iX+e.B2.I+t-e.B3.I),e.update(s-t)}}return!1},e.M7=function(){return e.H.KP=e.A76.split(","),e.IO&&(ZC.A5(document.body).unbind("mousemove touchmove",e.RG),ZC.A5(document.body).unbind("mouseup touchend",e.M7),e.IO=!1,e.bind()),!1},e.A3T=function(i){(i.detail?-120*i.detail:i.wheelDelta)/120>0?e.update(ZC.BQ(e.B2.iY,e.B3.iY-e.B3.F)):e.update(ZC.CY(e.B2.iY+e.B2.F-e.B3.F,e.B3.iY+e.B3.F))},e.RH=function(t){e.IO=!0;var n=ZC.Q.MH(t),a=ZC.A5("#"+i+"-top").offset();"scroll-y"===e.AF?n[1]-a.top>e.B3.iY?e.update(ZC.CY(e.B2.iY+e.B2.F-e.B3.F,e.B3.iY+e.B3.F)):e.update(ZC.BQ(e.B2.iY,e.B3.iY-e.B3.F)):"scroll-x"===e.AF&&(n[0]-a.left>e.B3.iX?e.update(ZC.CY(e.B2.iX+e.B2.I-e.B3.I,e.B3.iX+e.B3.I)):e.update(ZC.BQ(e.B2.iX,e.B3.iX-e.B3.I))),e.IO=!1},ZC.A5("."+e.BE.K+"-"+e.AF+"-legend-handle").bind("mousedown touchstart",e.RF),ZC.A5("."+e.BE.K+"-"+e.AF+"-legend-bar").bind("click",e.RH)}};ZC.WU=ZC.CZ.CC(WU);var V2={$i:function(e){this.b(e);var i=this;i.OE="legend",i.B6=null,i.Q2=null,i.NH="x1",i.I1="hide",i.R1="",i.PR="",i.UQ=!1,i.UY=!1,i.TM="none",i.UE="header",i.EH=9999,i.D3=null,i.BR=null,i.Z9=null,i.A2=null,i.NM=null,i.FO=null,i.KM=null,i.QC=0,i.MG=0,i.YJ=!0,i.EJ=0,i.GO=0,i.sAlign="",i.JY="",i.D5={enabled:!1,min:-1,max:-1,page:-1,pages:-1},i.M3=!1,i.NA=!1,i.NB=-1,i.PQ=!1,i.A4V=1,i.WT=0,i.LD=!1,i.XM=!1,i.YP=!1,i.XP=[]},highlightItem:function(e){var i,t=this,n=!1,a=ZC.move,l=t.LD;-1!==e&&(l=t.LD||t.A.AZ.A3[e].LD),t.o.item&&null!==ZC._n_(i=t.o.item["highlight-item"])&&(n=ZC._b_(i),null===ZC._n_(t.o["highlight-legend"])&&null===t.A.AZ.A3[e].o["highlight-legend"]&&(l=n)),(n||l)&&(n&&(t.E["highlight-item"]=e),l&&(t.E["highlight-legend"]=ZC._i_(e)),t.scrollTo(ZC._i_(e)),t.WB(),t.clear(!0,!1),t.YJ=!0,t.parse(),t.fixPlacement(!0),t.paint(),ZC.move=a)},scrollTo:function(e){var i,t,n=this,a=!1;if(n.D3)return e>=0&&(e=n.D5.max)&&(a=!0,"scroll"===n.TM?(e%(t="scroll-y"===n.D3.AF?n.D3.H3:n.D3.KS)&&(e-=e%t),n.D5.min=e,n.D5.max=e+n.EH,n.D5.max>n.B6.length&&(n.D5.min=n.B6.length-n.EH,n.B6.length%t&&(n.D5.min=n.D5.min+(t-n.B6.length%t)),n.D5.max=n.B6.length)):"page"===n.TM&&(i=Math.floor(e/n.EH),n.D5.min=i*n.EH,n.D5.max=n.D5.min+n.EH,n.D5.page=i+1)),a},parse:function(){var e,i,t,n,a=this;if(a.E["force-margins"]=!0,a.QC=0,a.MG=0,null!==ZC._n_(e=a.A.A.E["graph-"+a.A.K+"-legend-info"])&&(null!==ZC._n_(e.x)&&(a.o.x=e.x-a.A.iX),null!==ZC._n_(e.y)&&(a.o.y=e.y-a.A.iY)),ZC.move)a.FO&&a.FO.parse(),a.KM&&a.KM.parse();else{n=a.A.H.B8;var l="("+a.A.AF+")";a.b(),a.assign_a([["collapse","M3","b"],["minimize","UQ","b"],["draggable","UY","b"],["shared","PQ","b"],["overflow","TM"],["max-items","EH","i"],["group","A4V","i"],["drag-handler","UE"],["highlight-plot","WT","b"],["highlight-legend","LD","b"],["align","sAlign"],["vertical-align","JY"]]),a.M3&&!a.UQ&&(a.M3=!1),zingchart.DEV.MEDIARULES&&(a.E["forced-align-position"]||(a.alignPosition({align:a.sAlign,"vertical-align":a.JY,layout:a.NH}),a.E["forced-align-position"]=!0)),a.WT&&null===ZC._n_(a.o["highlight-legend"])&&(a.LD=a.WT),a.BR=new ZC.DN(a),n.load(a.BR.o,l+".legend.item"),a.o.item&&null===ZC._n_(a.o.item.visible)&&(a.o.item.visible=!0),a.BR.append(a.o.item),a.BR.parse(),a.Z9=new ZC.DN(a),n.load(a.Z9.o,l+".legend.item-off"),a.o["item-off"]&&null===ZC._n_(a.o["item-off"].visible)&&(a.o["item-off"].visible=!0),a.Z9.append(a.o["item-off"]),a.Z9.parse(),a.A2=new ZC.DQ(a),n.load(a.A2.o,l+".legend.marker"),a.o.marker&&null===ZC._n_(a.o.marker.visible)&&(a.o.marker.visible=!0),a.A2.append(a.o.marker),a.A2.E.type="default",a.A2.E["show-marker"]=!0,a.A2.E["show-line"]=!1,null!==ZC._n_(e=a.A2.o.type)&&(a.A2.E.type=e),null!==ZC._n_(e=a.A2.o["show-line"])&&(a.A2.E["show-line"]=ZC._b_(e)),null!==ZC._n_(e=a.BR.o["marker-style"])&&(a.A2.E.type=e),null!==ZC._n_(e=a.BR.o["show-line"])&&(a.A2.E["show-line"]=ZC._b_(e)),null!==ZC._n_(e=a.BR.o["show-marker"])&&(a.A2.o.visible=ZC._b_(e)),a.A2.parse(),a.NM=new ZC.DQ(a),n.load(a.NM.o,l+".legend.marker-off"),a.o["marker-off"]&&(a.o["marker-off"].visible=!0),a.NM.append(a.o["marker-off"]),a.NM.E.type="default",a.NM.E["show-marker"]=!0,a.NM.E["show-line"]=!1,null!==ZC._n_(e=a.NM.o.type)&&(a.NM.E.type=e),null!==ZC._n_(e=a.NM.o["show-line"])&&(a.NM.E["show-line"]=ZC._b_(e)),null!==ZC._n_(e=a.BR.o["marker-style"])&&(a.NM.E.type=e),null!==ZC._n_(e=a.BR.o["show-line"])&&(a.NM.E["show-line"]=ZC._b_(e)),null!==ZC._n_(e=a.BR.o["show-marker"])&&(a.NM.o.visible=ZC._b_(e)),a.NM.parse(),(null!==ZC._n_(e=a.o.header)||a.UY||a.UQ)&&(a.FO=new ZC.DN(a),a.FO.OE="legendheader",a.FO.GL="zc-legend-item "+a.K+"-header",a.FO.K=a.K+"-header",n.load(a.FO.o,l+".legend.header"),a.FO.o.text=a.FO.o.text||" ",a.FO.append(e),a.FO.parse(),a.FO.AN||(a.FO=null)),null!==ZC._n_(e=a.o.footer)&&(a.KM=new ZC.DN(a),a.KM.OE="legendfooter",a.KM.GL="zc-legend-item "+a.K+"-footer",a.KM.K=a.K+"-footer",n.load(a.KM.o,l+".legend.footer"),a.KM.append(e),a.KM.parse(),a.KM.AN||(a.KM=null));var o=a.A.AZ.A3;null!==ZC._n_(e=a.o.layout)?a.NH=e:25*o.length>a.A.F&&(a.NH="x"+Math.ceil(25*o.length/a.A.F)),null!==ZC._n_(e=a.o["toggle-action"])&&(a.I1=e),a.R1=a.PR=a.I1,null!==ZC._n_(a.o.item)&&null!==ZC._n_(e=a.o.item["toggle-action"])&&(a.R1=e),null!==ZC._n_(a.o.marker)&&null!==ZC._n_(e=a.o.marker["toggle-action"])&&(a.PR=e);var r=function(e){if(o[i]&&o[i].FK(0)){var t=ZC.AQ.O5(a.BR.o,o[i].o);e=o[i].FK(0).JX(e,t)}return e},s=[];a.B6=[];var C=0;for(i=0,t=o.length;ia.D5.pages&&(a.D5.page=a.D5.pages,a.D5.min=(a.D5.page-1)*a.EH,a.D5.max=a.D5.page*a.EH-1),a.D5.page=ZC.CY(a.D5.page,a.D5.pages)):"scroll"===a.TM?(e=a.A.E["legend-info"])?(a.D5.min=e.min,a.D5.max=e.max,a.D5.page=e.page):(a.D5.min=0,a.D5.max=a.EH,a.D5.page=1):(a.D5.min=0,a.D5.max="hidden"===a.TM?a.EH:a.B6.length,a.D5.page=1),a.WB(!1),a.B6.sort(function(e,i){return e.E.order-i.E.order}),a.o["reverse-series"]&&a.B6.reverse();var u=.9*a.A.I;null!==ZC._n_(a.o.width)&&(u=a.I);var p=0,Z=0,h=-ZC.MAX,d=-ZC.MAX,f=a.A2.E["show-line"]?3:2,_=0,g=1,v=1;if("float"===a.NH){for(i=0,t=a.B6.length;i=a.D5.max||a.NA)&&a.B6[i].AN){var b=a.B6[i].I+a.B6[i].DZ+a.B6[i].E8+f*a.B6[i].DH;d=ZC.BQ(d,a.B6[i].F+a.B6[i].E9+a.B6[i].DU),p+b>u?(h=ZC.BQ(h,p),Z+=d,p=b,d=ZC.BQ(d,a.B6[i].F+a.B6[i].E9+a.B6[i].DU)):p+=b}h=ZC.BQ(h,p),d!==-ZC.MAX&&(Z+=d),h!==-ZC.MAX&&(p=h)}else{var B=0;for(i=0,t=a.B6.length;i=a.D5.max||a.NA||(B+=a.B6[i].AN?1:0);var m=ZC.AO.A2F(a.NH,B);for(g=m[0],v=m[1],i=0,t=a.B6.length;i=a.D5.max||a.NA)&&("scroll"!==a.TM||_<=a.EH)||a.B6[i].AN&&(h=ZC.BQ(h,a.B6[i].I+a.B6[i].DZ+a.B6[i].E8+f*a.B6[i].DH),d=ZC.BQ(d,a.B6[i].F+a.B6[i].E9+a.B6[i].DU),1===v&&(Z+=a.B6[i].F+a.B6[i].E9+a.B6[i].DU));p=v*h,Z=g*d}if("page"===a.TM&&_>a.EH&&(a.D5.enabled=!0),"scroll"===a.TM&&_>a.EH&&(a.D3||(!g||g>v?(a.D3=new ZC.WU(a,"y"),n.load(a.D3.o,".scroll-y")):(a.D3=new ZC.WU(a,"x"),n.load(a.D3.o,".scroll-x")),a.D3.append(a.o.scroll),a.D3.KS=g,a.D3.H3=v,a.D3.parse()),a.NA||("scroll-y"===a.D3.AF?p+=a.D3.B2.I:Z+=a.D3.B2.F)),a.FO){var E=a.FO.I;a.UY&&"icon"===a.UE?(E+=15,a.UQ&&(E+=25)):a.UQ&&(E+=15),p=ZC.BQ(p,E)}a.KM&&(p=ZC.BQ(p,a.KM.I));var D=!1,F=!1;if(null===ZC._n_(a.o.width)&&(a.o.width=p,D=!0),null===ZC._n_(a.o.height)&&(a.o.height=Z,F=!0),a.iX=-1,a.iY=-1,!ZC.move&&a.FO&&null!==ZC._n_(e=a.A.A.E["legend"+a.A.L+"-xy-ratio"])){a.locate();var K=a.I+a.EQ+a.FN,I=a.F+a.FM+a.FW,x=a.PQ?a.A.A:a.A;a.iX=x.I*e[0],a.iX=ZC.BQ(a.iX,1.1),a.o.x=a.iX=ZC.CY(a.iX,x.I-K-2),a.iY=(x.F-a.FO.F)*e[1],a.iY=ZC.BQ(a.iY,1.1),a.o.y=a.iY=ZC.CY(a.iY,x.F-I-a.FO.F-2)}if(a.locate(),null!==ZC._n_(a.o.position)&&"undefined"!=typeof a.E["position-info"]?(a.E["position-info"][0]>.5&&(a.QC+=a.EQ+a.FN),a.E["position-info"][1]>.5?a.MG+=a.FM+a.FW:(a.FO&&(a.MG-=a.FO.F),a.KM&&(a.MG-=a.KM.F),a.D5&&a.D5.enabled&&(a.MG-=20))):((0===a.A.iX||a.iX+a.I/2>a.A.iX+a.A.I/2)&&(a.QC+=a.EQ+a.FN),(0===a.A.iY||a.iY+a.F/2>a.A.iY+a.A.F/2)&&(a.MG+=a.FM+a.FW)),!ZC.move&&(e=a.A.A.E["graph-"+a.A.K+"-legend-info"])&&(e.x&&(a.iX=e.x),e.y&&(a.iY=e.y)),a.GO=a.F,a.EJ=a.iY,a.FO&&(a.F+=a.FO.F,a.EJ+=a.FO.F,a.MG+=a.FO.F),a.KM&&(a.F+=a.KM.F,a.MG+=a.KM.F),a.D5.enabled&&!a.NA){var w=new ZC.DN(a);w.AM=" ",w.append(a.o["page-status"]),null!==ZC._n_(w.o.text)&&""!==w.o.text||(w.o.text="#"),w.parse(),a.F+=w.F+4,a.MG+=w.F+4}D&&(a.o.width=null),F&&(a.o.height=null),a.NA||(a.I+=a.EQ+a.FN,a.F+=a.FM+a.FW),a.E["default-width"]&&(a.I=a.E["default-width"])}},alignPosition:function(e){var i=this;if(null!==ZC._n_(e)){var t=i.A.H.B8.B8.graph.legend,n=e.align||t.align,a=e["vertical-align"]||t["vertical-align"],l=e.layout||t.layout;(n||a)&&("center"===n?(null===ZC._n_(i.o.layout)&&(l=i.o.layout="horizontal"),i.o.position="50% "):i.o.position="left"===n?"0% ":"100% ",i.o.position+="middle"===a?"50%":"bottom"===a?"100%":"0%","horizontal"!==l&&"middle"!==a||(i.o["adjust-layout"]=!0))}},WB:function(e){var i=this;void 0===e&&(e=!0),i.A.E["legend-info"]={collapsed:i.NA,min:i.D5.min,max:i.D5.max,page:i.D5.page},e&&(i.A.A.E["graph-"+i.A.K+"-legend-info"]={x:i.iX,y:i.iY})},clear:function(e,i){null===ZC._n_(e)&&(e=!1),null===ZC._n_(i)&&(i=!1);var t=this,n=t.A.K+"-legend-",a=null;ZC.A5("."+n+"item",a).remove(),ZC.A5("."+n+"header",a).remove(),ZC.A5("."+n+"footer",a).remove(),ZC.A5("#"+n+"page-status",a).remove(),e&&!i||(ZC.move||t.unbind(),ZC.A5("."+n+"page-area",a).remove(),ZC.A5("."+n+"header-area",a).remove(),ZC.A5("."+n+"item-area",a).remove(),ZC.A5("."+n+"marker-area",a).remove()),ZC.move?ZC.Q.IV(ZC.AL(n+"c"),t.A.H.AC,t.A.iX,t.A.iY,t.A.I,t.A.F):ZC.Q.IV(ZC.AL(n+"c"),t.A.H.AC,t.iX-2*t.AU-2*t.JU,t.iY-2*t.AU-2*t.JU,t.I+4*t.AU+4*t.JU,t.F+4*t.AU+4*t.JU),t.D3&&ZC.Q.IV(ZC.AL(n+"scroll-c"),t.A.H.AC,t.A.iX,t.A.iY,t.A.I,t.A.F)},unbind:function(){var e=this;ZC.A5("#"+e.K+"-frame").die(ZC.Q.C1("mouseover"),e.zc_legend_mouseover).die(ZC.Q.C1("mouseout"),e.zc_legend_mouseout),ZC.A5("#"+e.K+"-move-area").die(ZC.Q.C1("mousedown"),e.Z4),ZC.A5("#"+e.K+"-minimize-area").die(ZC.Q.C1("click"),e.Y2),ZC.A5("."+e.K+"-page-area").die(ZC.Q.C1("click"),e.YX),e.D3&&e.D3.unbind(),e.BR&&e.BR.o.reorder&&ZC.A5("."+e.A.K+"-legend-item-area").die("mousedown",e.W4)},fixPlacement:function(e){var i=this;if(i.YJ&&null===ZC._n_(i.o.y)||e){if(!i.o.position&&e||(i.iX-=i.QC),i.iX=f.D5.max||f.NA||(v+=f.B6[o].AN?1:0);f.A4T=!0,f.b(),f.FO&&(f.FO.iX=f.iX,f.FO.iY=f.iY,f.FO.I=f.I,f.FO.Z=f.FO.C7=f.Z,f.FO.paint(),ZC.move||"canvas"!==f.A.A.AC&&f.FO.EM(),f.UY&&"icon"===f.UE&&((n=new ZC.DQ(f)).Z=f.Z,n.B7="#000",n.B1=1,n.DV="line",n.append(f.o.icon),a=f.FO.iX+f.FO.I-10,l=f.FO.iY+f.FO.F/2,n.D=[[a-7,l],[a+7,l],null,[a,l-7],[a,l+7],null,[a-6,l-1],[a-6,l+1],null,[a-5,l-2],[a-5,l+2],null,[a+6,l-1],[a+6,l+1],null,[a+5,l-2],[a+5,l+2],null,[a-1,l-6],[a+1,l-6],null,[a-2,l-5],[a+2,l-5],null,[a-1,l+6],[a+1,l+6],null,[a-2,l+5],[a+2,l+5]],n.parse(),n.paint()),f.UQ&&((t=new ZC.DQ(f)).Z=f.Z,t.B7=ZC.AQ.AAC(f.A0,"#fff","#000"),t.B1=1,t.append(f.o.icon),t.DV="line",a=f.FO.iX+f.FO.I-10-(f.UY&&"icon"===f.UE?20:0),l=f.FO.iY+f.FO.F/2,t.D=[[a-7,l-2],[a+2,l-2],[a+2,l+7],[a-7,l+7],[a-7,l-2],[a+2,l-2],null,[a-4,l-5],[a+5,l-5],[a+5,l+4],[a-4,l+4],[a-4,l-5],[a+5,l-5]],t.parse(),t.paint())),f.KM&&(f.KM.iX=f.iX,f.KM.iY=f.iY+f.F-f.KM.F,f.KM.I=f.I,f.KM.Z=f.KM.C7=f.Z,f.KM.paint(),ZC.move||"canvas"!==f.A.A.AC&&f.KM.EM());var b=ZC.AO.A2F(f.NH,v),B=b[0],m=b[1],E=f.I/m,D=f.GO/B,F=0,K=0;f.Q2=[];var I,x=0,w=-ZC.MAX,y=f.A2.E["show-line"]?3:2,L=null,Y=function(i){var t=i;if(null===ZC._n_(e)&&(e=0),g[I]&&g[I].R[e]){var n=ZC.AQ.O5(f.BR.o,g[I].o);i=g[I].FK(e).JX(i,n)}return f.XM=f.XM||i!==t,i},X=0;for(f.XM=!1,o=0,r=f.B6.length;o=f.D5.max||f.NA)){var M=new ZC.DN(f);M.copy(f.B6[o]),f.E["highlight-legend"]===o&&(M.append({bold:!0}),null!==ZC._n_(f.o.item)&&M.append(f.o.item["highlight-state"])),I=M.E.index;var O=new ZC.DN(f);O.OE="legenditem",O.K=f.K+"-item_"+I,O.GL="zc-legend-item "+f.K+"-item",O.copy(M),f.A.E["plot"+I+".visible"]&&"off"!==g[I].o["legend-status"]||O.append(f.Z9.o),O.append(g[I].o["legend-item"]),O.JX=Y,O.parse(),O.AN?("float"===f.NH?(w=ZC.BQ(w,M.F),null===ZC._n_(L)?(M.iX=f.iX+f.EQ+M.DZ+y*M.DH,M.iY=f.EJ+f.FM+M.E9,x=f.EJ):(M.iX=L.iX+L.I+L.E8+M.DZ+y*M.DH,ZC._i_(M.iX+M.I+M.E8)>ZC._i_(f.iX+f.I)&&(M.iX=f.iX+f.EQ+M.DZ+y*M.DH,x+=w+M.E9+M.DU,w=-ZC.MAX),M.iY=x+f.FM+M.E9)):(M.iX=f.iX+(0===K?f.EQ:0)+K*E+M.DZ+y*M.DH,M.iY=f.EJ+f.FM+F*D+M.E9,++K===m&&(K=0,F++)),L=M,O.iX=M.iX=ZC._i_(M.iX),O.iY=M.iY=ZC._i_(M.iY),O.Z=O.C7=f.Z,O.iX+=f.BK,O.iY+=f.BI,I===f.NB&&(f.E["calculate-y"]&&(f.E["calculate-y"]=!1,f.E["dragged-offset-y"]=f.E["dragged-y"]-O.iY),O.iY=f.E["dragged-y"]-f.E["dragged-offset-y"]-O.DH/4),O.paint(),"undefined"!=typeof f.E.showhide&&null!==ZC._n_(f.E.showhide)||ZC.move||("canvas"!==f.A.A.AC?O.EM():f.XP.push(O))):X++;var P=f.A2.E.type;null!==ZC._n_(i=g[I].o["legend-marker"])&&null!==ZC._n_(i.type)&&(P=i.type);var H,N=!1;switch("match"!==P&&"inherit"!==P||(N=!0,P=null!==ZC._n_(i=g[I].A2.o.type)?i:"default"),-1!==ZC.AV(["default","square"],P)?H=new ZC.HQ(f):(H=new ZC.DQ(f)).DV=P,H.OE="legendmarker",H.append(f.A2.o),f.A.E["plot"+I+".visible"]&&"off"!==g[I].o["legend-status"]||H.append(f.NM.o),H.N9=g[I].N9,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":H.A0=g[I].A0,H.AE=g[I].AE,H.GR=g[I].GR,H.HN=g[I].HN;break;case"scatter":case"hscatter":case"bubble":case"hbubble":H.A0="-1"!==g[I].A2.A0?g[I].A2.A0:g[I].A0,H.AE="-1"!==g[I].A2.AE?g[I].A2.AE:g[I].AE,H.GR=""!==g[I].A2.GR?g[I].A2.GR:g[I].GR,H.HN=""!==g[I].A2.HN?g[I].A2.HN:g[I].HN;break;default:H.A0=g[I].B7,H.AE=g[I].B7}"line"!==H.DV&&"area"!==H.DV||(H.B7=H.A0,H.B1=2),N&&H.append(g[I].A2.o),H.o["line-style"]="solid",H.o.type=H.DV,H.append(g[I].o["legend-marker"]),N&&(H.o.type=H.DV),H.E["show-marker"]=!0,H.E["show-line"]=!1,null!==ZC._n_(i=H.o["show-line"])&&(H.E["show-line"]=ZC._b_(i)),null!==ZC._n_(i=O.o["show-line"])&&(H.E["show-line"]=ZC._b_(i)),null!==ZC._n_(i=O.o["show-marker"])&&(H.o.visible=ZC._b_(i)),-1!==ZC.AV(["default","square"],P)&&null!==ZC._n_(i=H.o.size)&&(null===ZC._n_(H.o.width)&&(H.o.width=2*ZC._i_(i)),null===ZC._n_(H.o.height)&&(H.o.height=2*ZC._i_(i))),H.K=f.K+"-marker_"+I,H.Z=H.C7=f.Z,H.iX=O.iX-y*O.DH+(y-1)*O.DH/2+O.DH/2,H.iY=O.iY+(O.F-O.DH)/2+O.DH/2,H.parse(),f.E["highlight-legend"]===o&&(H.append({size:H.AI+1,width:H.I+2,height:H.F+2}),g[I]&&g[I].R[e]&&g[I].R[e].GJ&&H.append({A0:g[I].R[e].GJ.A0,AE:g[I].R[e].GJ.AE}),null!==ZC._n_(f.o.marker)&&H.append(f.o.marker["highlight-state"]),H.parse()),"line"===H.DV?(H.o.points=[[H.iX-1.75*H.AI,H.iY],[H.iX+1.75*H.AI,H.iY]],H.parse()):"area"===H.DV&&(H.o.points=[[H.iX-1.75*H.AI,H.iY+H.AI],[H.iX+1.75*H.AI,H.iY+H.AI],[H.iX+1*H.AI,H.iY-H.AI/2],[H.iX,H.iY],[H.iX-1.25*H.AI,H.iY-H.AI],[H.iX-1.75*H.AI,H.iY+H.AI]],H.parse());var G=H.iX+H.BK,Q=H.iY+H.BI;if(-1!==ZC.AV(["default","square"],P)&&(H.iX-=H.I/2,H.iY-=H.F/2),f.A.E["plot"+I+".visible"]&&"off"!==g[I].o["legend-status"]||(H.C5/=4),O.AN&&H.E["show-line"]){var k=ZC.Q.EC(f.Z,f.A.H.AC),R=new ZC.CZ(f);R.Z=f.Z,R.copy(g[I]),R.o["line-style"]=f.A2.GD,R.append(g[I].o),R.append(f.A2.o),R.append(g[I].o["legend-item"]),R.append(g[I].o["legend-marker"]),R.o["top-state"]=null,R.o["bottom-state"]=null,R.parse(),f.A.E["plot"+I+".visible"]||(R.C5=.25);var z=[],T=H.AN?2:1;s="box"===H.DV?H.I/2:H.AI,z.push([G-T*s-(R.B1>1?1:0),Q-(R.B1>1?.5:0)]),z.push([G+T*s,Q-(R.B1>1?.5:0)]),R.D0=!0,ZC.CR.paint(k,R,z)}I===f.NB&&(H.iY=f.E["dragged-y"]-f.E["dragged-offset-y"]/2),H.AN&&O.AN&&H.paint(),f.Q2.push(H);var V=!0;if(null!==ZC._n_(i=f.BR.o.toggle)&&(V=ZC._b_(i)),f.E["item.toggle"]=V,O.AN||H.AN){if(-1===ZC.AV(f.A.H.KP,"skip_interactivity")){var S=H.BK+("box"===H.DV?H.iX+H.I/2:H.iX),J=H.BI+("box"===H.DV?H.iY+H.F/2:H.iY);s="box"===H.DV?H.I/2:H.AI,C="box"===H.DV?H.F/2:H.AI;var W=(H.E["show-line"]?2:1)*s;ZC.AL(O.K+"-area")||(H.AN&&"disabled"!==f.PR&&"disabled"!==H.o["toggle-action"]&&(ZC.AL(H.K+"-area")||ZC.Q.I4({cls:f.K+"-marker-area zc-legend-marker-area zc-abs",id:H.K+"-area",wh:2*W+"/"+2*C,tl:J-C+"/"+(S-W),opacity:0,background:"#fff",cursor:H.IK,p:_,zidx:1})),O.AN&&"disabled"!==f.R1&&"disabled"!==O.o["toggle-action"]&&(ZC.AL(O.K+"-area")||ZC.Q.I4({cls:f.K+"-item-area zc-legend-item-area zc-abs",id:O.K+"-area",wh:O.I+"/"+O.F,tl:O.iY+O.BI+"/"+(O.iX+O.BK),opacity:0,background:"#fff",cursor:O.IK,p:_,zidx:1})))}}else g[o].bShowInLegend=!1}if(f.D3&&!f.NA&&(f.D3.paint(),ZC.AL(f.K+"-scroll-c").style.display="block"),f.D3&&f.NA&&(ZC.AL(f.K+"-scroll-c").style.display="none"),f.D5.enabled&&!f.NA){var U=new ZC.DN(f);U.Z=U.C7=f.Z,U.K=f.K+"-page-status",U.AM=ZC.HD["legend-pagination"].replace("%page%",f.D5.page).replace("%pages%",f.D5.pages),U.append(f.o["page-status"]),U.parse(),f.I1?ee["background-color"]:$["background-color"],c.append(f.D5.page>1?f.o["page-on"]:f.o["page-off"]),A=f.iX+f.I/2-U.I/2-6,u=U.iY+U.F/2,c.parse(),c.AI=ZC.BQ(c.AI,8),d=ZC._i_(.75*c.AI),c.D=[[A,u-d],[A,u+d],[A-c.AI,u],[A,u-d]],c.parse(),c.AN&&c.paint(),(Z=new ZC.DQ(f)).Z=Z.C7=f.Z,Z.K=f.K+"-page-next",Z.A0=Z.AE=f.D5.page1&&ZC.Q.I4({cls:f.K+"-page-area zc-legend-page-area zc-abs",id:f.K+"-page-prev-area",wh:c.AI+"/"+2*c.AI,tl:ZC._i_(u+c.BI-c.AI)+"/"+ZC._i_(A+c.BK-c.AI),opacity:0,p:_,zidx:1}),f.D5.page1)){f.A.A.E["graph-"+f.A.K+"-legend-info"]=null;var i=ZC.Q.MH(e),t=ZC.A5("#"+f.A.A.K+"-top").offset();f.OT=i[0]-t.left-f.FO.iX,f.A00=i[1]-t.top-f.FO.iY,f.oldcursor=document.body.style.cursor,document.body.style.cursor="move",ZC.A5(document.body).bind(ZC.Q.C1("mousemove"),f.Z5),ZC.A5(document.body).bind(ZC.Q.C1("mouseup"),f.A0T)}},f.Z5=function(e){var i=ZC.Q.MH(e),t=ZC.A5("#"+f.A.A.K+"-top").offset(),n=i[0]-t.left-f.OT,a=i[1]-t.top-f.A00;if(f.PQ?(n=ZC.BQ(n,f.H.iX+2),n=ZC.CY(n,f.H.iX+f.H.I-f.I-2),a=ZC.BQ(a,f.H.iY+2),a=ZC.CY(a,f.H.iY+f.H.F-f.F-4)):(n=ZC.BQ(n,f.A.iX+2),n=ZC.CY(n,f.A.iX+f.A.I-f.I-2),a=ZC.BQ(a,f.A.iY+2),a=ZC.CY(a,f.A.iY+f.A.F-f.F-4)),f.PQ||(n-=f.A.iX,a-=f.A.iY),f.o.x=n,f.o.y=a,f.o.position=null,f.clear(!0),f.parse(),f.paint(),f.FO){var l=f.PQ?f.A.A:f.A;f.A.A.E["legend"+f.A.L+"-xy-ratio"]=[n/l.I,a/(l.F-f.FO.F)]}},f.A0T=function(){ZC.move=!1,document.body.style.cursor=f.oldcursor,delete f.oldcursor,ZC.A5(document.body).unbind(ZC.Q.C1("mousemove"),f.Z5),ZC.A5(document.body).unbind(ZC.Q.C1("mouseup"),f.A0T),f.XP=[],f.clear(!1),f.parse(),f.paint(),f.WB()},f.YX=function(e){f.E["default-width"]=null,-1!==(e.targetid||e.target.id).indexOf("-page-next-area")?(f.D5.min+=f.EH,f.D5.max+=f.EH,f.D5.page+=1):(f.D5.min-=f.EH,f.D5.max-=f.EH,f.D5.page-=1),(!(i=f.A.A.E["graph-"+f.A.K+"-legend-info"])||null===ZC._n_(i.x)&&null===ZC._n_(i.y))&&(f.iX=null,f.iY=null),f.WB(),f.A.K9()},f.Y2=function(e){var i=f.NA?"legendmaximize":"legendminimize";e&&(f.A.A.E["legend-toggling"]=1),zingchart.exec(f.A.H.K,i,{graphid:f.A.L}),e&&(f.A.A.E["legend-toggling"]=0),e&&(f.A.A.E["g"+f.A.L+"-legend-collapsed"]="legendminimize"===i)},f.MR=function(e){ZC.move=!0;var i=ZC.Q.MH(e),t=ZC.A5("#"+f.A.A.K+"-top").offset(),n=i[0]-t.left,a=i[1]-t.top;f.E["dragged-x"]=n,f.E["dragged-y"]=a,f.WB(),f.clear(!1),f.parse(),f.paint()},f.W4=function(e){if(e.preventDefault(),f.H.hideCM(),f.IK=document.body.style.cursor,document.body.style.cursor="move",ZC.mobile||!(e.which>1)){var i=new RegExp("-legend-item_([0-9]+)-area","g").exec(e.target.id);i&&(f.E["dragged-offset-y"]=0,f.E["calculate-y"]=!0,f.E["dragged-x"]=0,f.E["dragged-y"]=0,f.NB=ZC._i_(i[1]),f.iDragPos=ZC.AV(f.A.AZ.M6,f.NB),ZC.A5(document.body).bind(ZC.Q.C1("mousemove"),f.MR),ZC.A5(document.body).bind(ZC.Q.C1("mouseup"),f.XE))}},f.XE=function(){var e=f.NB,i=f.iDragPos;if(f.NB=-1,f.iDragPos=-1,f.E["calculate-y"]=!1,document.body.style.cursor=f.IK,ZC.move||(e=-1,i=-1),ZC.A5(document.body).unbind(ZC.Q.C1("mousemove"),f.MR),ZC.A5(document.body).unbind(ZC.Q.C1("mouseup"),f.XE),ZC.move&&-1!==e){for(var t=f.A.AZ.A3,n=f.A.AZ.M6,a=0,l=t.length;af.Q2[s].iY&&(r=s);for(t[e].o["legend-item"].order=-1===r?.5:t[n[r]].o["legend-item"].order+.5,s=0,C=f.Q2.length;si?t[s].o["legend-item"].ordero&&t[s].o["legend-item"].order--:t[s].o["legend-item"].order>t[e].o["legend-item"].order&&t[s].o["legend-item"].orderi?Math.floor(t[e].o["legend-item"].order):Math.ceil(t[e].o["legend-item"].order),s=0,C=f.Q2.length;s=o.left&&ZC.E2[0]<=o.left+zingchart.I2[n].I*l[0]&&ZC.E2[1]>=o.top&&ZC.E2[1]<=o.top+zingchart.I2[n].F*l[1]&&(e=!1)}else window.clearInterval(i.YG);e&&(u(),ZC.JT.GUIDES&&ZC.JT.GUIDES[t]&&ZC.JT.GUIDES[t].active&&(ZC.AQ.C0("guide_mouseout",i.H,i.H.FF()),ZC.JT.GUIDES[t].active=!1))},500)),i.QE=function(p){if(zingchart.GUIDE_EV=p,!p.target.id||-1===p.target.id.indexOf("-menu-item-")){var Z,h,d,f,_,g,v,b,B,m,E,D,F,K,I,x,w,y,L,Y,X,M,O,P,H,N,G;ZC.MAX,ZC.MAX;for(Z=0;Z0){i.S2=!0;for(var ie=!1,te=0,ne=Q.length;te"),null!==ZC._n_(b.o["footer-text"])&&""===Ae&&(Ae=v.JX(b.o["footer-text"],E)+"
")),b.AN&&""!==b.AM&&(ZC._b_(b.o["single-text"])?me.push(v.JX(b.AM,E)):me.push(v.JX(b.AM,E)+"
"))),b.E.pos=re.length,b.E["node-value"]=v.AD,b.E["marker-x"]=x,b.E["marker-y"]=w,b.E["guide-style"]=v.A8C(),Qe){default:null===ZC._n_(b.o.x)?ve.CK?v.iY<=_.iY+_.F/2?(b.iY=w-b.F-P,b.EN="bottom"):(b.iY=w+P,b.EN="top"):v.iX>=_.iX+_.I/2?(b.iX=x-b.I-P,b.EN="right"):(b.iX=x+P,b.EN="left"):b.iX-=_.iX,null===ZC._n_(b.o.y)?ve.CK?(b.iX=x-b.I/2,b.iX<_.iX&&(b.iX=_.iX),b.iX+b.I>_.iX+_.I&&(b.iX=_.iX+_.I-b.I)):(b.iY=w-b.F/2,b.iY<_.iY&&(b.iY=_.iY),b.iY+b.F>_.iY+_.F&&(b.iY=_.iY+_.F-b.F)):b.iY-=_.iY,b.DM=[x,w];break;case"left":b.iX=x-b.I-P,b.iY=w-b.F/2,b.DM=[x,w];break;case"right":b.iX=x+P,b.iY=w-b.F/2,b.DM=[x,w];break;case"top":ve.CK?(b.iX=_.iX+_.I-b.I,b.iY=w-b.F/2,b.EN="left",b.DM=[_.iX+_.I-b.I-P,w]):(b.iX=x-b.I/2,b.iY=_.iY,b.EN="bottom",b.DM=[x,b.iY+b.F+P]);break;case"node-top":ve.CK?(b.iX=x+2*P,b.iY=w-b.F/2,b.EN="left",b.DM=[x+P,w]):(b.iX=x-b.I/2,b.iY=w-b.F-2*P,b.EN="bottom",b.DM=[x,w-P]);break;case"bottom":ve.CK?(b.iX=_.iX,b.iY=w-b.F/2,b.EN="right",b.DM=[_.iX+b.I+P,w]):(b.iX=x-b.I/2,b.iY=_.iY+_.F-b.F,b.EN="top",b.DM=[x,b.iY-P])}oe.push({plotindex:v.A.L,nodeindex:v.L,keyvalue:v.BV||ve.V[v.L],value:v.AD,text:b.AM,x:b.iX,y:b.iY,refx:x,refy:w}),-1===ZC.AV(se,b.AM)&&(s[b]=v,se.push(b.AM)),ve.CK?b.E.diff=_e||-1!==ge?ZC._a_(w-f):-1:b.E.diff=_e||-1!==ge?ZC._a_(x-d):-1,b.AN&&re.push(b),o[te][Z]=b,ae=!0}}if(!v)continue}if(Q[te].CX&&ZC.DP(v.iX,_.iX-1,_.iX+_.I+1)){if((m=new ZC.DN(ve)).Z=m.C7=n,m.K=Q[te].K+"-guide-scale-x-label-"+Z,m.GL=Q[te].A.K+"-guide-label "+Q[te].K+"-guide-label zc-guide-label",m.A0=m.AE=ve.B7,m.C2=Q[te].AJ["3d"]?"#999":"#fff",m.append(Q[te].CX.o["scale-label"]),m.append(Q[te].CX.o[ve.BF+"-label"]),m.append(Q[te].AZ.A3[Z].o["scale-label"]),m.KQ=!0,m.E.nodeidx=v.L,E=ZC.AQ.O5(m.o),null===ZC._n_(E.decimals)){var ke=Math.floor(ZC.FT(null!==v.BV?v.BV:v.L,10));E.decimals=ke<0?1-ke:0}if(m.JX=function(e){e=ve.JX(e,g,ve.EG&&Q[te].AZ.A3[Z].EG?Q[te].AZ.A3[Z]:null,E,!0);var i=Q[te].AZ.A3[Z].K0;if(v&&i)for(var t in i){var n;n=i[t]instanceof Array?ZC._c_(i[t][v.L],""):ZC._c_(i[t],""),e=e.replace("%data-"+t,n,"g")}return e},m.parse(),P=null!==ZC._n_(m.o.distance)?ZC._i_(m.o.distance):6,m.E7&&m.E7.length&&(m.J5=function(e){return e=v?v.JX(e,E):e.replace(/(%i)|(%node-index)/g,g)},m.DF()&&m.parse()),m.HW&&v&&(m.H4(m,m,null,v.M0(null,!1),m.ML),m.parse()),de[ve.BF]=m.AM,we=ZC._b_(m.o["callout-position"]),ye=m.o.x,Le=m.o.y,"opposite"!==ve.BA?ve.CK?(Ye="right",Me=ve.E.iX-m.I-P,Xe=[ve.E.iX,F],Oe=F-m.F/2):(Ye="top",Me=D-m.I/2,Xe=[D,ve.E.iY],Oe=ve.E.iY+P):ve.CK?(Ye="left",Me=ve.E.iX+P,Xe=[ve.E.iX,F],Oe=F-m.F/2):(Ye="bottom",Me=D-m.I/2,Xe=[D,ve.E.iY],Oe=ve.E.iY-m.F-P),we||(m.EN=Ye),ye||(m.iX=Me),we||ye||Le||(m.DM=Xe),Le||(m.iY=Oe),m.AN&&ve.AN&&""!==m.AM){var Re=!1;if(fe.length)for(var ze=0;ze0&&Pe<=1&&(Q[te].CX.B1=ZC._i_(Pe*ve.AB)),ve.CK?((-1===I[0]||I[1]>ZC._a_(F-f))&&(I=[F,ZC._a_(F-f)]),ce.push([_e||-1!==ge?ZC._a_(F-f):-1,[null,[ve.E.iX,F],[Q[te].P.iX+("opposite"===ve.BA?0:Q[te].P.I),F]]])):((-1===K[0]||K[1]>ZC._a_(D-d))&&(K=[D,ZC._a_(D-d)]),ce.push([_e||-1!==ge?ZC._a_(D-d):-1,[null,[D,ve.E.iY],[D,Q[te].P.iY+("opposite"===ve.BA?Q[te].P.F:0)]]]))}if(be=Q[te].BM(Q[te].AZ.A3[Z].BW("v")[0]),-1===ZC.AV(Ze,be.BF)&&Q[te].HC&&("xy"===Q[te].AJ.layout&&ZC.DP(f,be.iY,be.iY+be.F)||"yx"===Q[te].AJ.layout&&ZC.DP(f,be.iX,be.iX+be.I))){var Te="single";Q[te].HC.o.type&&"multiple"===Q[te].HC.o.type&&(Te="multiple"),"multiple"===Te&&null!==ZC._n_(he[Z])&&(be.CK?d=he[Z].x:f=he[Z].y),(m=new ZC.DN(be)).Z=m.C7=n,m.K=Q[te].K+"-guide-scale-y-label-"+Z,m.GL=Q[te].A.K+"-guide-label "+Q[te].K+"-guide-label zc-guide-label";var Ve=be.B7;"multiple"===Te&&(Ve=Q[te].AZ.A3[Z].B7),m.A0=m.AE=Ve,m.C2=Q[te].AJ["3d"]&&"multiple"!==Te?"#999":"#fff",m.append(Q[te].HC.o["scale-label"]),m.append(Q[te].HC.o[be.BF+"-label"]),m.KQ=!0;var Se=be.CK?be.NG(d,!0):be.NG(f,!0),Je=Se;if(E=be.MT(),ZC._cp_(ZC.AQ.O5(m.o,be.o),E),null===ZC._n_(E.decimals)){ke=Math.floor(ZC.FT(Se,10));E.decimals=ke<=0?1-ke:0}Se=be.FQ(0,Se,E),m.o.text=Se,m.parse(),P=null!==ZC._n_(m.o.distance)?ZC._i_(m.o.distance):6,m.E7&&m.E7.length&&(m.J5=function(e){return e=e.replace(/(%v)|(%scale-value)/g,Je).replace(/(%t)|(%scale-text)/g,Se).replace(/(%coord)/,be.CK?d:f)},m.DF()&&m.parse()),m.HW&&v&&(De={value:Je,text:Se,coord:be.CK?d:f},m.H4(m,m,null,De,m.ML),m.parse()),de[be.BF]=m.AM,we=ZC._b_(m.o["callout-position"]),ye=m.o.x,Le=m.o.y,"opposite"!==be.BA?be.CK?(Ye="top",Me=d-m.I/2,Oe=be.E.iY+P,Xe=[d,be.E.iY]):(Ye="right",Me=be.E.iX-m.I-P,Oe=f-m.F/2,Xe=[be.E.iX,f]):be.CK?(Ye="bottom",Me=d-m.I/2,Oe=be.E.iY-m.F-P,Xe=[d,be.E.iY]):(Ye="left",Me=be.E.iX+P,Oe=f-m.F/2,Xe=[be.E.iX,f]),we||(m.EN=Ye),ye||(m.iX=Me),we||ye||Le||(m.DM=Xe),Le||(m.iY=Oe),m.AN&&be.AN&&(m.E.diff=-1,pe.push(m),"multiple"===Te&&null!==ZC._n_(he[Z])||Ze.push(be.BF),r[te][Z]=m,ae=!0),-1!==String(Q[te].HC.o["line-width"]).indexOf("%")&&(Pe=ZC.IL(Q[te].HC.o["line-width"]))>0&&Pe<=1&&(Q[te].HC.B1=ZC._i_(Pe*be.AB)),be.CK?ue.push(null,[d,be.E.iY],[d,Q[te].P.iY+("opposite"===be.BA?Q[te].P.F:0)]):ue.push(null,[be.E.iX,f],[Q[te].P.iX+("opposite"===be.BA?0:Q[te].P.I),f])}}if(!_e&&pe.length>1)for(var We=pe[pe.length-1],Ue=ZC._i_((We.FM+We.FW+We.EQ+We.FN)/4),je=pe.length-1;je>=0;je--)for(var qe=je;qe>=0;qe--)je!==qe&&ZC.AO._boxoverlap2_(pe[je],pe[qe],-Ue)&&(pe[qe].C5=.3,pe[qe].UX=.1);for(B=ZC.MAX,Z=0,h=re.length;Z=0&&(B=ZC.CY(re[Z].E.diff,B));-1!==ge&&(B=ZC.BQ(B,ge));var $e=!1,ei=1,ii=!1;re[0]&&(ii=ZC._b_(re[0].o["single-text"]),re[0].o["table-columns"]&&ZC._b_(re[0].o["html-mode"])&&($e=!0,ei=ZC._i_(re[0].o["table-columns"]||"1"),Ee+='')),!Be&&re.length>0&&("asc"!==re[0].o["sort-by-value"]&&"desc"!==re[0].o["sort-by-value"]||re.sort(function(e,i){return(e.E["node-value"]-i.E["node-value"])*("asc"===re[0].o["sort-by-value"]?1:-1)}));var ti=0;for(N=0,G=re.length;N"),Ee+="",ti%ei==ei-1&&(Ee+=""),ti++):Ee+=me[re[N].E.pos],$e||!ii));N++);if($e&&(ti%ei!=ei-1&&(Ee+=""),Ee+="
"+me[N]+"
"),""!==Ae&&(Ee+=Ae),!Be&&re.length>0&&(_e?ve.CK?(d=x=D,f=w=I[0]):(d=x=K[0],f=w=F):(d=x=D,f=w=F),""!==Ee&&(re[0].o.text=$e||ii?Ee:Ee.substring(0,Ee.length-4),re[0].parse()),P=null!==ZC._n_(b.o.distance)?ZC._i_(b.o.distance):6,null===ZC._n_(b.o.x)?ve.CK?d=_.iX+_.I/2?re[0].iX=x-re[0].I-P:re[0].iX=x+P:re[0].iX-=_.iX,null===ZC._n_(b.o.y)?ve.CK?le&&le.iY>=_.iY+_.F/2?re[0].iY=w-re[0].F-P:re[0].iY=w+P:f0){var li=[];for(B=ZC.MAX,y=0,L=ce.length;y=0&&(B=ZC.CY(ce[y][0],B));for(-1!==ge&&(B=ZC.BQ(B,ge)),y=0,L=ce.length;y1&&li[1]&&(oi=li[1][0]||-1),Q[te].CX.oMask||(Q[te].CX.oMask=new ZC.HQ(Q[te]),Q[te].CX.oMask.append({"background-color":"#fff",alpha:.85}),Q[te].CX.oMask.append(Q[te].CX.o.mask),Q[te].CX.oMask.Z=n,Q[te].CX.oMask.parse()),Q[te].CX.oMask.iX=oi,Q[te].CX.oMask.iY=Q[te].P.iY,Q[te].CX.oMask.I=Math.max(2,Q[te].P.iX+Q[te].P.I-oi+2),Q[te].CX.oMask.F=Q[te].P.F,Q[te].CX.oMask.paint()}if(Q[te].AJ["3d"])for(Q[te].O2(),y=0,L=li.length;y0){if(Q[te].AJ["3d"])for(Q[te].O2(),y=0,L=ue.length;y=0;Z--)ZC.DP(re[Z].DM[0],_.iX-5,_.iX+_.I+5)&&ZC.DP(re[Z].DM[1],_.iY-5,_.iY+_.F+5)||re.splice(Z,1);if(re.length>1)for(var ri=!0;ri;)for(ri=!1,Z=0;Zre[Z+1].iX||!be.CK&&re[Z].iY>re[Z+1].iY)){var si=re[Z];re[Z]=re[Z+1],re[Z+1]=si,ri=!0}if(re.length>0){var Ci=[],Ai=[];for(Z=0;Z_.iX+_.I)for(pi=re[Z+1].iX-(_.iX+_.I-re[Z+1].I),ci=0,ui=re.length;ci=_.iX?re[ci].iX-=pi:(re[ci].iX=_.iX,ci>0&&(re[Z+1].E["marker-y"]<_.iY+_.F/2?re[ci].iY=re[ci-1].iY+re[ci-1].F+4:re[ci].iY=re[ci-1].iY-re[ci].F-4));Zi=!0}}else if(re[Z+1].iY_.iY+_.F)for(pi=re[Z+1].iY-(_.iY+_.F-re[Z+1].F),ci=0,ui=re.length;ci=_.iY?re[ci].iY-=pi:(re[ci].iY=_.iY,ci>0&&(re[Z+1].E["marker-x"]<_.iX+_.I/2?re[ci].iX=re[ci-1].iX+re[ci-1].I+4:re[ci].iX=re[ci-1].iX-re[ci].I-4));Zi=!0}}}var fi=!1;for(Z=0,h=pe.length;Z=0&&(B=ZC.CY(re[N].E.diff,B));for(-1!==ge&&(B=ZC.BQ(B,ge)),M=0,N=0,G=re.length;N1&&Bi.paint()}}}(H=Q[te].GZ()).items=oe,H.guide={x:x,y:w},H.ev=p,H["scale-label"]=de,ZC.AQ.C0("guide_mousemove",i.H,H),Q[te].QZ(!0)}else(H={}).guide={x:x,y:w},H.ev=p,ZC.AQ.C0("guide_mousemove",i.H,H)}}}}}},i.zc_guide_touchend=function(){0!==zingchart.DEV.GUIDETIMEOUT&&window.setTimeout(function(){u()},ZC._i_(zingchart.DEV.GUIDETIMEOUT))},ZC.A5(document.body).bind("mousemove touchstart touchmove",i.QE),ZC.A5(document.body).bind("touchend",i.zc_guide_touchend)}};ZC.JT=ZC.C9.CC(JT),ZC.JT.clearGuide=function(e){var i=zingchart.getLoader(e);if(i){zingchart.GUIDE_EV=null;var t=ZC.AL(e+"-guide-c"),n=ZC.A5(t).width(),a=ZC.A5(t).height();ZC.A5("."+e+"-guide-label").remove(),ZC.Q.IV(t,i.AC,0,0,n,a),ZC.A5("#"+e+"-defs").children().each(function(){this.id&&-1!==this.id.indexOf("-guide-label-")&&ZC.Q.EV(this.id)})}},zingchart.extendAPI("resetguide",function(e,i){"string"==typeof(i=i||{})&&(i=JSON.parse(i)),ZC.JT.GUIDES[e]=ZC.JT.GUIDES[e]||{},ZC.JT.GUIDES[e].blocked=!1,ZC.JT.clearGuide(e)}),zingchart.extendAPI("setguide",function(e,i){"string"==typeof(i=i||{})&&(i=JSON.parse(i));var t,n,a=zingchart.getLoader(e),l=a.CA(i.graphid),o=l.BM("scale-x");"xy"===l.AJ.layout?(t=i.x||o.AR(i.keyvalue),n=l.iY+l.F/2):(t=l.iX+l.I/2,n=i.y||o.AR(i.keyvalue));var r={_pageX_:t,_pageY_:n,type:ZC.mobile?"touchstart":"mousemove",target:{id:e+"-img"}};ZC.JT.GUIDES=ZC.JT.GUIDES||{},ZC.JT.GUIDES[e]=ZC.JT.GUIDES[e]||{},ZC.JT.GUIDES[e].blocked=!0,ZC.JT.clearGuide(e),r.fromAPI=!0,a.D7.QE(r)});var A2O={$i:function(e,i){var t=this;t.o=null,t.C=e,t.NS=i},parse:function(){var e,i=this;i.o=i.C.o;var t,n,a,l,o,r,s,C,A,c=i.NS,u="\r\n",p=",",Z=!1,h=null,d=null,f=null,_=null,g=null,v=!1,b=!1,B=null,m={};null!==ZC._n_(e=i.o["html5-csv"])&&(m=e),null!==ZC._n_(e=i.o.csv)&&(m=e),null!==ZC._n_(e=m.separator)&&(p=e),null!==ZC._n_(e=m.mirrored)&&(Z=ZC._b_(e)),null!==ZC._n_(e=m.title)&&(h=ZC._b_(e)),null!==ZC._n_(e=m["string-values"])&&(b=ZC._b_(e)),Z?(null!==ZC._n_(e=m["horizontal-labels"])&&(f=ZC._b_(e)),null!==ZC._n_(e=m["vertical-labels"])&&(d=ZC._b_(e))):(null!==ZC._n_(e=m["horizontal-labels"])&&(d=ZC._b_(e)),null!==ZC._n_(e=m["vertical-labels"])&&(f=ZC._b_(e))),null!==ZC._n_(e=m["smart-scales"])&&(_=ZC._b_(e)),null!==ZC._n_(e=m["separate-scales"])&&(g=ZC._b_(e)),null!==ZC._n_(e=m["keyval-format"])&&(v=ZC._b_(e)),null!==ZC._n_(e=m.columns)&&(B=e);var E=null;null!==ZC._n_(e=m["thousands-separator"])&&(E=e);var D=null;if(null!==ZC._n_(e=m["decimals-separator"])&&(D=e),null!==E&&null===D&&(D="."===E?",":"."),null!==D&&null===E&&(E="."===D?",":"."),null!==ZC._n_(B)&&B.length>0){t=[],null!==ZC._n_(e=m["row-separator"])?u=e:c.split(/\n/).length>0?u="\n":c.split(/\r/).length>0&&(u="\r");var F=c.split(u),K=0;for(l=0,o=F.length;l1&&1===L[0].length?(null===ZC._n_(i.o.title)?i.o.title={text:L[0][0]}:null===ZC._n_(i.o.title.text)&&(i.o.title.text=L[0][0]),h=!0):h=!1),h&&Y++,Z){for(t=[],h&&t.push(L[0]),r=Y,s=L.length;r.75}d&&(O=L[Y],Y++);var H=[];if(null===ZC._n_(f))if(d&&-1!==O[0].indexOf("\\"))f=!0;else{var N="";for(r=Y,s=L.length;r.75}if(f){for(r=Y,s=L.length;r'}return""},getPMap:function(){var e=this.b();return this.addPMap(e,"index","L"),e},getToggleAction:function(){var e,i=this,t="hide";return i.BE&&""!==i.E["legend-last-trigger"]&&"undefined"!=typeof i.E["legend-last-trigger"]?t="item"===i.E["legend-last-trigger"]?i.BE.R1:i.BE.PR:(i.o.legend&&(e=i.o.legend["toggle-action"])&&(t=e),i.o.legend&&i.o.legend.item&&(e=i.o.legend.item["toggle-action"])&&(t=e)),(i.A.KA||i.E["toggle-action-remove"])&&(t="remove"),t},BW:function(e,i){void 0===i&&(i=!1);for(var t=[],n=this,a=0,l=n.BO.length;a0)&&t.push(n.BO[a]);return t},BM:function(e){for(var i=this,t=0,n=i.BO.length;t0?a[0]:"",o=a.length>1?a[1]:"",r=a.length>0?a[2]||a[0]:"",s=a.length>1?a[3]||a[1]:"";"dynamic"===e.P.o["margin-top"]&&(l="dynamic"),"dynamic"===e.P.o["margin-right"]&&(o="dynamic"),"dynamic"===e.P.o["margin-bottom"]&&(r="dynamic"),"dynamic"===e.P.o["margin-left"]&&(s="dynamic"),e.P.o.margin=[l,o,r,s].join(" ")}if(e.E["plotarea-margins"]?e.P.o.margin=e.E["plotarea-margin"]:(e.E["plotarea-margins"]=!0,e.E["plotarea-margin"]=e.P.o.margin,e.E["plotarea-margin-top"]=e.P.o["margin-top"],e.E["plotarea-margin-right"]=e.P.o["margin-right"],e.E["plotarea-margin-bottom"]=e.P.o["margin-bottom"],e.E["plotarea-margin-left"]=e.P.o["margin-left"]),"undefined"!=typeof e.E["plotarea-p-x"]&&(e.P.E["p-x"]=e.E["plotarea-p-x"],e.P.E["p-y"]=e.E["plotarea-p-y"],e.P.E["p-width"]=e.E["plotarea-p-width"],e.P.E["p-height"]=e.E["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.EZ.true3d){var C=ZC._a_(ZC._i_(e.EZ.depth*ZC.EP(e.EZ.angle)));e.P.iY+=C,e.P.F-=C,e.P.I-=ZC._i_(e.EZ.depth*ZC.EI(e.EZ.angle))}if("undefined"!=typeof e.E["plotarea-p-x"])for(var A=0,c=e.BO.length;A||
|\n/).length),"top"===u||"bottom"===u){if(Z=ZC.BQ(Z,.465*h.DH+1.025*ZC._a_(ZC.EP(h.AA))*ZC.BQ(h.I,h.F)),A=h.I,c=Z,o&&"k"===p.AF){r[p.BF]||(r[p.BF]=[]);var f=null===ZC._n_(h.o["auto-align"])||ZC._b_(h.o["auto-align"]),_=.465*h.DH+1.025*ZC._a_(ZC.EI(h.AA))*ZC.BQ(h.I,h.F);"default"===p.BA?(f&&(ZC.DP(ZC._ang_(h.AA),90,180)||ZC.DP(ZC._ang_(h.AA),270,360))&&r[p.BF].push(_),f||r[p.BF].push(_/2)):(f&&(ZC.DP(ZC._ang_(h.AA),0,90)||ZC.DP(ZC._ang_(h.AA),180,270))&&r[p.BF].push(_),f||r[p.BF].push(_/2))}}else h.AA%360!=0&&(A=Z=ZC.BQ(Z,.465*h.DH+1.025*ZC._a_(ZC.EI(h.AA))*ZC.BQ(h.I,h.F))),c=h.F;var g=new ZC.DN(p);g.copy(p.M),g.AM=p.M.AM,g.parse(),""!==g.AM&&g.AN&&(c+=g.AA%180==0?g.F:g.I,A+=g.AA%180==0?g.I:g.F)}if(n.o.plotarea||(n.o.plotarea={}),("dynamic"===n.o.plotarea["margin-"+u]||n.P.E["d-margin-"+u])&&(n.P.E["d-margin-"+u]=!1,l[u]=!0,n.o.plotarea["margin-"+u]="0"),l[u]){n.o.plotarea["margin-"+u]=ZC._f_(n.o.plotarea["margin-"+u]||"0"),n.E[p.BF+"-distance"]=n.o.plotarea["margin-"+u];var v=("top"===u||"bottom"===u?ZC._i_(c):ZC._i_(A))+10+(n.AJ["3d"]?20:0);p.VC?n.o.plotarea["margin-"+u]=ZC.BQ(n.o.plotarea["margin-"+u],v):n.o.plotarea["margin-"+u]+=v,null!==ZC._n_(n.o.plotarea["margin-"+u+"-offset"])&&(n.o.plotarea["margin-"+u]+=ZC._i_(n.o.plotarea["margin-"+u+"-offset"]));if(!n.A.TI){var b={},B=n.A.DI.watermark;n.A.B8.load(b,"loader.gui.watermark"),B&&ZC._cp_(B,b),1===n.A.o.graphset.length&&n.A.o.graphset[0].gui&&(e=n.A.o.graphset[0].gui.watermark)&&ZC._cp_(e,b);var m=b.position||"br";-1===ZC.AV(["tl","tr","br","bl"],m)&&(m="br"),("bottom"!==u||"bl"!==m&&"br"!==m)&&("top"!==u||"tl"!==m&&"tr"!==m)||(n.o.plotarea["margin-"+u]+=15)}"bottom"===u&&("xy"===n.AJ.layout&&n.HL||"yx"===n.AJ.layout&&n.HV)&&(n.o.plotarea["margin-"+u]+=15),"left"===u&&("xy"===n.AJ.layout&&n.HV||"yx"===n.AJ.layout&&n.HL)&&(n.o.plotarea["margin-"+u]+=15),n.E["plotarea.d-margin-"+u]=!0}}}if(o&&l.left&&null!==ZC._n_(n.o.plotarea["margin-left"]))for(var E in r){var D=n.BM(E);for(i=0;i1&&(K=ZC._i_(e[1]))):F=K=ZC._i_(e)),n.P.E.tolerance=F,"svg"===n.H.AC?((e=ZC.AL(n.K+"-clip-shape"))&&e.setAttribute("points",n.M9(F,"svg")),(e=ZC.AL(n.K+"-clip-hover-shape"))&&e.setAttribute("points",n.M9(K,"svg"))):(ZC.A5("#"+n.K+" div").each(function(){""!==this.style.clip&&(this.style.clip=n.M9(F))}),(e=ZC.AL(n.K+"-hover"))&&""!==e.style.clip&&(e.style.clip=n.M9(K)))}for(i=0,t=n.BO.length;i0)for(A.B8.palette=[],n=0;nt&&(E-=C.K2.F,B+=C.K2.F)}if(C.MU&&C.MU.AN&&C.MU.o["adjust-layout"]&&(v=!0,(t=C.MU.iY+C.MU.F/2)>B+E/2&&(E-=C.MU.F)),C.B9&&C.B9.AN&&C.B9.o["adjust-layout"]&&(v=!0,"xy"===C.AJ.layout?(t=C.B9.AT.iY+C.B9.AT.F/2)>B+E/2?E-=C.B9.AT.F+C.B9.AT.DU:(B=C.B9.AT.iY+C.B9.AT.F,E-=C.B9.AT.F):(_=C.B9.AT.iX+C.B9.AT.I/2)2)L="v";else if(C.BE.F/C.BE.I>2)L="h";else{L=Math.max(y.Left*C.F,y.Right*C.F)/Math.max(y.Top*C.I,y.Bottom*C.I)>1?"h":"v"}if(w)w[0]>=.8?x=w[1]<=.2?"v"===L?"top":"right":w[1]>=.8&&"v"===L?"bottom":"right":w[0]<=.2?x=w[1]<=.2?"v"===L?"top":"left":w[1]>=.8&&"v"===L?"bottom":"left":w[1]<=.2?x="top":w[1]>=.8&&(x="bottom");else Math.min(y.Top,y.Bottom)/Math.max(y.Top,y.Bottom)y.Bottom?(x="top",C.BE.E9):(x="bottom",C.BE.DU):y.Left>y.Right?(x="left",C.BE.DZ):(x="right",C.BE.E8);var Y=0;"top"===x&&(E=B+E-C.BE.F-C.BE.iY,B=C.BE.iY+C.BE.F),"bottom"===x&&(E-=Y=E-C.BE.iY+B+C.BE.FM+C.BE.FW),"left"===x&&(b+=Y=C.BE.iX-C.iX+C.BE.I,m-=Y),"right"===x&&(m-=Y=m-(C.BE.iX-C.iX)+C.BE.EQ+C.BE.FN)}else C.BE&&C.BE.fixPlacement();v&&(C.E["plotarea-p-x"]=b,C.E["plotarea-p-y"]=B,C.E["plotarea-p-width"]=m,C.E["plotarea-p-height"]=E,C.setupPlotArea()),C.setupDynamicPlotArea(),C.AZ.parseLayout&&C.AZ.parseLayout(!0),C.B9&&C.B9.o["adjust-layout"]&&("xy"===C.AJ.layout?(null===ZC._n_(C.B9.JC.x)&&(C.B9.AT.iX=C.P.iX),null===ZC._n_(C.B9.JC.width)&&(C.B9.AT.I=C.P.I)):(null===ZC._n_(C.B9.JC.y)&&(C.B9.AT.iY=C.P.iY),null===ZC._n_(C.B9.JC.height)&&(C.B9.AT.F=C.P.F)));var X=0;for(n=0;n0&&"canvas"!==C.H.AC&&C.AZ.A3)for(var O=0,P=C.AZ.A3.length;O-1?A.load(C.A7.o,c+".tooltip[dynamic]"):A.load(C.A7.o,c+".tooltip"),C.A7.append(C.o.tooltip),C.A7.PU=!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.PP("guide",C.AF)||A.PP("crosshair-x",C.AF))&&C.AJ["enable-guide"]&&(C.CX=new ZC.CZ(C),C.CX.OE="crosshairx",A.load(C.CX.o,[c+".guide",c+".crosshair-x"],!0,!0),C.CX.append(e),C.CX.parse(),C.E["guide-on"]=!0),(null!==ZC._n_(e=C.o["crosshair-y"])||A.PP("crosshair-y",C.AF))&&C.AJ["enable-guide"]&&(C.HC=new ZC.CZ(C),C.HC.OE="crosshairy",A.load(C.HC.o,[c+".guide",c+".crosshair-y"],!0,!0),C.HC.append(e),C.HC.parse(),C.E["guide-on"]=!0)),C.OY(),ZC.AQ.C0("gparse",C.A,C.GZ()),null!==ZC._n_(e=C.o.refresh)&&(C.HT={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.HT),C.UH=1),C.MD="parse.complete"},OY:function(){},Q1:function(){},M9:function(e,i,t){var n=this,a=(t=t||n.P).iX,l=t.iY,o=t.I,r=t.F;if("svg"===i){if(n.AJ["3d"]){var s,C=[];e=1;var A,c,u,p,Z=[],h=a-ZC.AP.E4,d=l-ZC.AP.E5;s=new ZC.CF(n,h+o/2-e,d-e,ZC.AP.FX),p=ZC._i_(s.ED[1]),s=new ZC.CF(n,h+o/2-e,d-e,0),u=ZC._i_(s.ED[1]),Z.push(new ZC.CF(n,h-e,d-e,pc?ZC.AP.FX:0),new ZC.CF(n,h+o+e,d+r+e,A>c?ZC.AP.FX:0)),s=new ZC.CF(n,h+o/2-e,d+r+e,ZC.AP.FX),p=ZC._i_(s.ED[1]),s=new ZC.CF(n,h+o/2-e,d+r+e,0),u=ZC._i_(s.ED[1]),Z.push(new ZC.CF(n,h+o+e,d+r+e,p>u?ZC.AP.FX:0),new ZC.CF(n,h-e,d+r+e,p>u?ZC.AP.FX:0)),s=new ZC.CF(n,h-e,d+r/2-e,ZC.AP.FX),A=ZC._i_(s.ED[0]),s=new ZC.CF(n,h-e,d+r/2-e,0),c=ZC._i_(s.ED[0]),Z.push(new ZC.CF(n,h-e,d+r+e,A.25;){t=!0;var n=i.M9(0,"svg").split(" ");for(e=0;ei.iX+i.I-i.P.E8||ZC._i_(a[1])i.iY+i.F-i.P.DU)&&(t=!1)}t||(i.EZ.zoom-=.05),t&&(i.EZ.zoom-=.025)}}},build:function(){var e,i,t,n,a,l,o,r,s=this,C=s.A.I+"/"+s.A.F,A="0/0";if(s.autoFit(),!s.H.usc()){var c=2,u=6;if(null!==ZC._n_(e=s.P.o["mask-tolerance"])&&(e instanceof Array?(c=u=ZC._i_(e[0]),e.length>1&&(u=ZC._i_(e[1]))):c=u=ZC._i_(e)),"svg"===s.A.AC&&s.AJ.clip&&(ZC.Q.EV([s.K+"-clip",s.K+"-clip-hover",s.K+"-clip-preview"]),s.A.K8.appendChild(ZC.Q.XJ({id:s.K+"-clip",path:s.M9(c,"svg")})),s.A.K8.appendChild(ZC.Q.XJ({id:s.K+"-clip-hover",path:s.M9(u,"svg")})),s.B9)){var p=s.AJ["3d"];s.AJ["3d"]=!1,s.A.K8.appendChild(ZC.Q.XJ({id:s.K+"-clip-preview",path:s.M9(0,"svg",s.B9.AT)})),s.AJ["3d"]=p}var Z=!s.AJ.clip,h=Z?null:s.M9(c),d=Z?null:"url(#"+s.K+"-clip)",f=Z?null:s.M9(u),_=Z?null:"url(#"+s.K+"-clip-hover)";if(s.B9&&(a=Z?null:s.M9(0,s.A.AC,s.B9.AT),l=Z?null:"url(#"+s.K+"-clip-preview)"),ZC.Q.K1({cls:"zc-abs",id:s.K,p:ZC.AL(s.A.K+"-graphset"),tl:A,wh:C},s.A.AC),s.A.NX.graph&&ZC.Q.HI({cls:"zc-abs zc-layer zc-persistent",id:s.K+"-c",p:ZC.AL(s.K),wh:C},s.A.AC),ZC.Q.K1({id:s.K+"-plotarea",p:ZC.AL(s.K),tl:A,wh:C,position:"absolute"},s.A.AC),s.o.plotarea&&s.A.NX.plotarea&&ZC.Q.HI({cls:"zc-abs zc-layer",id:s.K+"-plotarea-c",p:ZC.AL(s.K+"-plotarea"),wh:C},s.A.AC),"null"!==s.AF&&s.A.NX.plots){for(ZC.Q.K1({id:s.K+"-scales-bl",p:ZC.AL(s.K),tl:A,wh:C,position:"absolute","clip-path":d,clip:h},s.A.AC),i=0;i=0;n--)ZC.AL(s.K+"-plots-bl-"+n)||ZC.Q.K1({id:s.K+"-plots-bl-"+n,p:ZC.AL(s.K),after:ZC.AL(s.K+"-scales-bl"),tl:A,wh:C,position:"absolute","clip-path":d,clip:h},s.A.AC),(o=ZC.Q.HI({cls:"zc-abs zc-layer zc-bl",id:s.K+"-plot-"+r+"-bl-"+n+"-c",p:ZC.AL(s.K+"-plots-bl-"+n),wh:C},s.A.AC)).setAttribute("data-clip",s.M9(c,"box")),o.style.display="block";for(i=0;i=0;n--)ZC.AL(s.K+"-plots-fl-"+n)||ZC.Q.K1({id:s.K+"-plots-fl-"+n,p:ZC.AL(s.K),after:ZC.AL(s.K+"-scales-ml-"+(s.VG-1)+"-c"),tl:A,wh:C,position:"absolute"},s.A.AC),(o=ZC.Q.HI({cls:"zc-abs zc-layer zc-fl",id:s.K+"-plot-"+r+"-fl-"+n+"-c",p:ZC.AL(s.K+"-plots-fl-"+n),wh:C},s.A.AC)).setAttribute("data-clip",s.M9(u,"box")),o.style.display="block";for(zingchart.DEV.PLOTSHLAYER&&(ZC.Q.K1({id:s.K+"-plots-hover",p:ZC.AL(s.K),tl:A,wh:C,position:"absolute"},s.A.AC),ZC.Q.HI({cls:"zc-abs zc-layer zc-fl",id:s.K+"-plots-hover-c",p:ZC.AL(s.K+"-plots-hover"),wh:C},s.A.AC)),ZC.Q.K1({id:s.K+"-scales-fl",p:ZC.AL(s.K),tl:A,wh:C,position:"absolute","clip-path":d,clip:h},s.A.AC),i=0;i=0;o--)this.o.labels[o].cls&&"zcScaleMarkerLabel"===this.o.labels[o].cls&&this.o.labels.splice(o,1);l.AZ.YV=[],l.A.ST=[],zingchart.SKIP.LEGEND||l.BE&&l.BE.clear(),l.E.datalength=[];var r,s,C,A=ZC.ie67?ZC.AL(l.A.K):null;if(ZC.mobile||ZC.ie67)ZC.A5("."+l.K+"-node-area",A).remove();else if(ZC.AL(l.A.K+"-img")&&ZC.AL(l.A.K+"-map")){ZC.AL(l.A.K+"-img").setAttribute("useMap","");var c=ZC.AL(l.A.K+"-map").cloneNode(!0);for(o=(n=c.childNodes.length)-1;o>=0;o--)-1!==c.childNodes[o].className.indexOf(l.K+"-node-area")&&c.removeChild(c.childNodes[o]);ZC.Q.EV(l.A.K+"-map"),ZC.AL(l.A.K+"-top").appendChild(c),ZC.AL(l.A.K+"-img").setAttribute("useMap","#"+l.A.K+"-map")}switch(ZC.Q.EV(l.K+"--graph"),l.AZ.HE=[],ZC.A5("."+l.K+"-value-box",A).remove(),ZC.A5("."+l.K+"-scale-marker-label",A).remove(),ZC.A5("."+l.K+"-scale-item",A).remove(),ZC.A5("."+l.K+"-scale-label",A).remove(),ZC.A5("."+l.K+"-guide-label",A).remove(),ZC.A5("."+l.K+"-shape-label",A).remove(),ZC.A5("."+l.K+"-mapshape-label",A).remove(),ZC.A5("."+l.K+"-node-errorbars",A).remove(),e||ZC.A5("."+l.K+"-preview-item",A).remove(),l.A.AC){case"svg":for(o=0,n=l.AZ.A3.length;o=h.AY&&g[A].R[l].BV<=h.BD:g[A].R[l].L>=h.W&&g[A].R[l].L<=h.A1)?(s=g[A].R[l].AD,d=Math.min(d,s),f=Math.max(f,s),Z?(Z=!1,g[A].R[l].BV?b.push([g[A].R[l].BV,0]):b.push(0),p=s):g[A].R[l].BV?b.push([g[A].R[l].BV,100*(s-p)/p]):b.push(100*(s-p)/p)):g[A].R[l].BV?b.push([g[A].R[l].BV,0]):b.push(0);_["p-"+c]=[].concat(b)}if(v>0){for(d=ZC.MAX,f=-ZC.MAX,c=0;c=0&&D[l].TA&&(F=l);if(null!==ZC._n_(F)){var K=D[F].AR(0);for(l=0;l=0&&D[l].TA){var I=D[l].AR(0);if(ZC._a_(I-K)>=1)for(var x=!0,w=0;x;)I>K?D[l].CK?D[l].AW?D[l].A9+=1:D[l].BS+=1:D[l].AW?D[l].BS+=1:D[l].A9+=1:D[l].CK?D[l].AW?D[l].BS+=1:D[l].A9+=1:D[l].AW?D[l].A9+=1:D[l].BS+=1,w++,D[l].J2(),D[l].A8B(),(w>(D[l].CK?r.P.I:r.P.F)||ZC._a_(D[l].AR(0)-K)<1)&&(x=!1)}}}for(l=0,o=r.BO.length;l1&&(zingchart.SKIP.EVENT||ZC.AQ.C0("load",e.A,e.A.FF()))),e.A.E["fire-complete"]=!0,(e.E["graph-K9"]||e.LM&&e.AZ.A3.length>1)&&(zingchart.SKIP.EVENT||ZC.AQ.C0("complete",e.A,e.A.FF()),e.E["graph-K9"]=null)),0!==e.A.QR.length&&e.A.QR[e.A.QR.length-1]===e.A.E.json||(e.A.QR[e.A.NV]!==e.A.E.json&&(e.A.QR.length=e.A.NV+1),e.A.QR[e.A.NV]=e.A.E.json)},K9:function(e,i){var t=this;null===ZC._n_(e)&&(e=!1),null===ZC._n_(i)&&(i=!1),t.A.N6(t),t.E["graph-K9"]=!0,t.clear(e,i),t.parse(),t.U9&&t.U9(),t.paint(e),t.B9&&t.B9.setScalesInfo(),t.HJ=!1,zingchart.SKIP.CSV=!1},V5:function(ev,EA,FC){if(2!==ev.button){var s=this,C,PA=[""];switch(null!==ZC._n_(FC)&&(PA=FC.split("=")),PA[0]){case"_blank":window.open(EA,"_blank");break;case"_top":window.top.location.href=EA;break;case"_parent":window.parent.location.href=EA;break;case"window":null!==ZC._n_(PA[1])&&""!==PA[1]&&(window.top[PA[1]].location.href=EA);break;case"graph":var Y0=null;if("()"===EA.substring(EA.length-2)||"javascript:"===EA.substring(0,11))try{var EB=EA.replace("javascript:","").replace("()","");eval(EB)&&(Y0=eval(EB).call(s))}catch(e){}null!==ZC._n_(PA[1])&&""!==PA[1]?"_top"===PA[1]||"_parent"===PA[1]?(s.A.N6(),Y0?zingchart.exec(s.A.K,"setdata",{data:Y0}):s.A.load(null,EA)):(C=s.A.OV(PA[1]),C&&(s.A.N6(C),s.A.E["tr-ev-"+C.L]=!0,s.A.NV++,Y0?zingchart.exec(s.A.K,"setdata",{graphid:PA[1],data:Y0}):s.A.load(PA[1],EA))):(C=s.A.AG[0],s.A.N6(C),Y0?zingchart.exec(s.A.K,"setdata",{graphid:C.K,data:Y0}):(s.A.E["tr-ev-"+C.L]=!0,s.A.NV++,s.A.load(C.K,EA)));break;default:window.location.href=EA}}},I5:function(e,i,t){var n=this;if(null===ZC._n_(t)&&(t=n.AZ.A3.length-1),null!==ZC._n_(e)&&void 0!==e)return n.AZ.A3[e];if(null===ZC._n_(i)||void 0===i)return n.AZ.A3[t];for(var a=0,l=n.AZ.A3.length;a0){for(v=[],b=0,B=o.D.length;b0?1:-1:0}),s.FA=s.FA.sort(function(e,i){return e.zindex-i.zindex==0?e.index-i.index:e.zindex-i.zindex})},ZC.JL.prototype.A0M=function(e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var t,n=this,a=[n.K+"-objects-bottom-sh-c",n.K+"-objects-bottom-c",n.K+"-objects-top-sh-c",n.K+"-objects-top-c",n.K+"-objects-front-c",n.K+"-objects-print-c"];ZC.SKIPMAPS||a.push(n.K+"-objects-maps-sh-c",n.K+"-objects-maps-c");for(var l=0;l';"top"===i.o.placement?o.push(n):l.push(n)}}function s(e){if(a.FH[e]){var t=a.FH[e],n=t instanceof ZC.P4?t.BG:t;if((!ZC.SKIPMAPS||!n.o["map-item"])&&n.AN){if(null!==ZC._n_(i=t.E.hook)){var r=a.V4(i);-1!==r[0]&&(n.iX=ZC._i_(r[0])),-1!==r[1]&&(n.iY=ZC._i_(r[1]))}if(!t.E["3d"]||t.E["3dtx"]){t.Z=a.H.usc()?a.H.mc("top"):ZC.AL(a.K+"-objects-"+(n.JS<0?"bottom":"top")+"-c"),t.C7=a.H.usc()?a.H.mc("top"):ZC.AL(a.K+"-objects-"+(n.JS<0?"bottom":"top")+"-sh-c"),n.o["map-item"]&&(t.Z=a.H.usc()?a.H.mc("top"):ZC.AL(a.K+"-objects-maps-c"),t.C7=a.H.usc()?a.H.mc("top"):ZC.AL(a.K+"-objects-maps-sh-c"));var s="";null!==ZC._n_(i=n.o.limit)&&("x"===i?s="x":"y"===i?s="y":"xy"===i&&(s="xy")),(""===s||"x"===s&&ZC.DP(n.iX-n.BK,a.P.iX-2,a.P.iX+a.P.I+2)||"y"===s&&ZC.DP(n.iY-n.BI,a.P.iY-2,a.P.iY+a.P.F+2)||"xy"===s&&ZC.DP(n.iX+n.BK,a.P.iX-2,a.P.iX+a.P.I-2)&&ZC.DP(n.iY+n.BI,a.P.iY-2,a.P.iY+a.P.F+2))&&(t.VY=!1,t.E["print-canvas"]=a.K+"-"+(n.o["map-item"]?"maps":"objects")+"-print-c",t.paint())}if(!t.KA&&!a.Q3&&"normal"===zingchart.OBJECTMODE){var C=n.A5E();if(ZC.AL(a.A.K+"-map"))for(var A=1,c=C.length;A1?"--"+A:"")+'" coords="'+C[A]+'" data-z-sort="'+n.A74+'"'+u+" />";if("top"===t.o.placement?o.push(p):l.push(p),t.M){var Z=[ZC._i_(t.M.iX+t.M.BK),ZC._i_(t.M.iY+t.M.BI),ZC._i_(t.M.iX+t.M.BK+t.M.I),ZC._i_(t.M.iY+t.M.BI+t.M.F)].join(",");p=ZC.Q.FS("rect",n.EA,n.IK)+'class="'+a.K+'-shape-area zc-shape-area" id="'+n.K+"-area"+(A>1?"--"+A:"")+'" coords="'+Z+'" data-z-sort="'+n.A74+'"'+u+" />","top"===t.o.placement?o.push(p):l.push(p)}}}}}}function C(e){var i=a.L1[e];if(i.AN)if(i.Z=i.C7=a.H.usc()?a.H.mc("top"):ZC.AL(a.K+"-objects-"+(i.JS<0?"bottom":"top")+"-c"),null!==ZC._n_(i.o.repeat)&&ZC._b_(i.o.repeat)){var t=ZC._i_(ZC._c_(i.o.items,0)),n=null;if(i.o.inactive&&((n=new ZC.HQ(i.A)).copy(i),n.append(i.o.inactive),n.parse(),n.Z=n.C7=i.Z),t>0||n){var l=ZC._i_(ZC._c_(i.o.rows,-1)),o=ZC._i_(ZC._c_(i.o.cols,-1)),r=ZC._i_(ZC._c_(i.o["space-x"],0)),s=ZC._i_(ZC._c_(i.o["space-y"],0)),C=ZC._i_(ZC._c_(i.o["offset-row"],0)),A=ZC._i_(ZC._c_(i.o["offset-col"],0));-1!==l&&-1===o?o=Math.ceil(t/l):-1===l&&-1!==o?l=Math.ceil(t/o):-1===l&&-1===o&&(o=Math.ceil(Math.sqrt(t)),l=Math.ceil(t/o));for(var c=i.iX,u=i.iY,p=i.K,Z=0;Z0||l.length>0)&&ZC.AL(a.A.K+"-map")){if(a.A4X){var u=function(e,i){return-1!==e.indexOf("data-map")&&-1!==i.indexOf("data-map")?ZC.AQ.N8(i)-ZC.AQ.N8(e):ZC.AQ.N8(e)-ZC.AQ.N8(i)};o.sort(u),l.sort(u)}zingchart.DEV.MAPSONBOTTOM?window.setTimeout(function(){ZC.AL(a.A.K+"-map").innerHTML=o.join("")+ZC.AL(a.A.K+"-map").innerHTML+l.join("")},33):ZC.AL(a.A.K+"-map").innerHTML=o.join("")+ZC.AL(a.A.K+"-map").innerHTML+l.join("")}a.A.E["fire-load"]||ZC.AQ.C0("objectsready",a.A,a.GZ())},ZC.JL.prototype.SH=function(e,i,t,n){var a,l,o,r,s=this;switch(t=t||"hover",e){case"shape":var C=s.FH[i],A=C instanceof ZC.P4?C.BG:C;if(null!==ZC._n_(A.o[t+"-state"])){if(!n&&A.o.group)for(o=0,r=s.FH.length;o4096&&t.F6&&"date"===t.F6.o.type&&null!==(m=ZC._nfind_(_,b,0,b.R.length-1))&&(B=b.FK(m,3)),!B)for(m=0,E=b.R.length;m=0;r--)(null!==ZC._n_(C[r].id)&&-1!==ZC.AV(l,C[r].id)||null!==ZC._n_(C[r].cls)&&-1!==ZC.AV(o,C[r].cls)||null!==ZC._n_(C[r]["class"])&&-1!==ZC.AV(o,C[r]["class"])||t.group&&C[r].group===t.group)&&(null!==ZC._n_(C[r].id)&&v.push(C[r].id),C.splice(r,1),u=!0);for(r=0;r=50?OQ:1e3*OQ,"full"===s.HT.type)"http"===s.HT.transport?ZC.REFRESH_TICK[s.K]=window.setTimeout(function(){s.A.N6(s),ZC.ZP(function(){s.A.load(s.K,s.A9F)})},OQ):"websockets"===s.HT.transport&&ZC.websockets&&(s.H.S9[s.K]?"pull"===s.HT.method&&(ZC.REFRESH_TICK[s.K]=window.setTimeout(function(){s.H.S9[s.K].send("zingchart.getdata")},OQ)):(ws=new WebSocket(s.HT.url,"zingchart"),ws.onopen=function(){ws.send("zingchart."+s.HT.type),ws.send("zingchart."+s.HT.method),ws.send("zingchart.getdata")},ws.onmessage=function(e){"ready"===s.MD&&(s.A.N6(s),s.MD="full",ZC.ZP(function(){zingchart.exec(s.A.K,"setdata",{graphid:s.K,data:e.data,softclear:!0})}))},s.H.S9[s.K]=ws));else if("feed"===s.HT.type&&null!==ZC._n_(s.HT.url)){if(null!==ZC._n_(s.HT.curtain)){var OF=s.BW("k");if(OF.length>0&&(ZC.Q.EV(s.K+"-curtain-t"),OF[0].OL>0)){var LY=new ZC.DN(s);s.A.B8.load(LY.o,"("+s.AF+").refresh.curtain"),LY.append(s.HT.curtain),LY.parse(),LY.AN&&(OF[0].CK&&LY.F<=OF[0].OL||!OF[0].CK&&LY.I<=OF[0].OL)&&(LY.K=s.K+"-curtain-t",LY.IM=ZC.AL(s.A.K+"-text-top"),OF[0].CK?(LY.F>OF[0].OL&&(LY.AM="",LY.parse()),LY.iX=s.P.iX,LY.iY=OF[0].AW?s.P.iY:s.P.iY+s.P.F-OF[0].OL,LY.I=s.P.I,LY.F=OF[0].OL):(LY.I>OF[0].OL&&(LY.AM="",LY.parse()),LY.iX=OF[0].AW?s.P.iX+s.P.I-OF[0].OL:s.P.iX,LY.iY=s.P.iY,LY.I=OF[0].OL,LY.F=s.P.F),LY.Z=LY.C7=ZC.AL(s.K+"-scales-ml-0-c"),LY.paint())}}var A10=s.HT.transport,A43=ZC._i_(s.HT["reset-timeout"]),A53=ZC._i_(s.HT["stop-timeout"]),A9O=ZC._b_(s.HT.storage),A0F=!0;null!==ZC._n_(s.HT["preserve-data"])&&(A0F=ZC._b_(s.HT["preserve-data"]));var A5M=function(KI){for(var TS=eval("("+KI+")"),i,A6,A8N=TS instanceof Array?TS:[TS],r=0,rLen=A8N.length;rZC._i_(s.HT["max-ticks"])&&s.o[BF].values.splice(0,1),s.H.o.graphset[s.L][BF].values.push(DL[BF]),(s.o[BF].values.length>A43||1===s.MF[1])&&(s.H.o.graphset[s.L][BF].values=[],s.o[BF].values=[],s.H.E["graph"+s.L+".zoom"]&&(s.H.E["graph"+s.L+".zoom"].xmin=null,s.H.E["graph"+s.L+".zoom"].xmax=null),s.HL&&(s.HL.unbind(),ZC.Q.IV(ZC.AL(s.K+"-scroll-x-c"),s.A.AC,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.HV&&(s.HV.unbind(),ZC.Q.IV(ZC.AL(s.K+"-scroll-y-c"),s.A.AC,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&&A9O&&ZC.AQ.storage.push("zingchart.scale."+s.K+"."+BF,""+DL[BF]))}for(i=0,A6=s.AZ.A3.length;iZC._i_(s.HT["max-ticks"])&&s.H.o.graphset[s.L].series[i].values.splice(0,1)):s.H.o.graphset[s.L].series[i].values=[A3S],ZC.webstorage&&A9O&&(G=DL["plot"+i],"object"==typeof G&&(G=G.join("###")),ZC.AQ.storage.push("zingchart.plot."+s.K+".plot"+i,""+G)),(s.o.series[i].values.length>A43||1===s.MF[1])&&(ZC.AQ.C0("feed_clear",s.A,s.GZ(),DL),s.H.o.graphset[s.L].series[i].values=[])}MQ=s.A37()}("ready"===s.MD||s.GE)&&(1===s.MF[1]&&(s.MF[1]=0),(MQ<=A53||0===A53)&&(s.MD="feed",ZC.ZP(function(){ZC.AL(s.A.K+"-main")&&(ZC.AQ.C0("feed_step",s.H,s.GZ(),s.o),s.parse(),s.clear(!0),s.U9(),s.paint(!0,!0))})))};if("http"===A10||"js"===A10){var EA=s.HT.url;ZC.REFRESH_TICK[s.K]=window.setTimeout(function(){if(1===s.MF[0]||1===s.MF[1])if(s.A.N6(s),"http"===A10){var EW=["query-string"===s.A.N3?"zcrandom="+Math.random():"",zingchart.ZCOUTPUT?"zcoutput="+s.H.AC:""].join("&");ZC.A5.ajax({type:"GET",url:EA,beforeSend:function(e){s.A.RR.data||"http-headers"!==s.A.N3||e.setRequestHeader("If-Modified-Since","Thu, 01 Jan 1970 00:00:00 GMT")},data:EW,dataType:"text",error:function(){},success:function(e){A5M(e)}})}else if("()"===EA.substring(EA.length-2)||"javascript:"===EA.substring(0,11))try{var EB=EA.replace("javascript:","").replace("()","");eval(EB)&&eval(EB).call(s,function(e){A5M(e)},s.GZ())}catch(e){}},OQ)}else"websockets"===A10&&ZC.websockets&&(s.H.S9[s.K]?"pull"===s.HT.method&&(ZC.REFRESH_TICK[s.K]=window.setTimeout(function(){s.H.S9[s.K].send("zingchart.getdata")},OQ)):(ws=new WebSocket(s.HT.url,"zingchart"),ws.onopen=function(){ws.send("zingchart."+s.HT.type),ws.send("zingchart."+s.HT.method),ws.send("zingchart.startfeed"),"pull"===s.HT.method&&ws.send("zingchart.getdata")},ws.onmessage=function(e){1!==s.MF[0]&&1!==s.MF[1]||A5M(e.data)},s.H.S9[s.K]=ws))}}},zingchart.ABQ=function(e,i,t){var n;document.getElementById("zc-fullscreen")&&(e="zc-fullscreen"),"string"==typeof(t=t||{})&&(t=JSON.parse(t));var a=zingchart.getLoader(e);if(a){var l=a.CA(t.graphid);switch(i){case"clearfeed":l.MF[1]=1,0===l.MF[0]&&ZC.ZP(function(){l.parse(),l.clear(!0),l.U9(),l.paint(!0,!0)});break;case"getinterval":return l.HT.interval;case"setinterval":ZC.AQ.C0("feed_interval_modify",a,l.GZ()),l.o.refresh=l.o.refresh||{},l.o.refresh.interval=t.interval||1;break;case"stopfeed":1===l.MF[0]&&(ZC.AQ.C0("feed_stop",a,l.GZ()),l.MF[0]=0,null!==ZC._n_(n=a.S9[l.K])&&n.send("zingchart.stopfeed"));break;case"startfeed":0===l.MF[0]&&(ZC.AQ.C0("feed_start",a,l.GZ()),l.MF[0]=1,null!==ZC._n_(n=a.S9[l.K])&&n.send("zingchart.startfeed"),ZC.ZP(function(){l.parse(),l.clear(!0),l.U9(),l.paint(!0,!0)}))}}return null},ZC.AQ.A4B=function(e){for(var i={},t=[],n=0,a=(t="object"==typeof e?e:JSON.parse(e)).length;n0){for(var A=0;A1))){var n,a,l,o=t.targetid||t.target.id,r=ZC._b_(i.BE.BR.o.reorder);ZC.mobile&&i.H.A7&&i.H.A7.hide();var s="item";-1!==o.indexOf("-legend-marker_")&&(s="marker"),i.LJ(),t.preventDefault();var C=i.BE.I1;"item"===s?C=i.BE.R1:"marker"===s&&(C=i.BE.PR),i.A.KA&&"hide"===C&&(C="remove"),i.E["legend-last-trigger"]=s;var A=ZC._i_(o.replace(i.K+"-legend-item_","").replace(i.K+"-legend-marker_","").replace("-area",""));if(i.o.series&&i.o.series[A]){if(null!==ZC._n_(e=i.o.series[A]["legend-item"])){var c=e.url||"",u=e.target||"";""!==c&&i.V5(t,c,u)}i.o.series[A].visible=!0}var p,Z,h,d=i.AZ.A3[A].V3(t);switch(d.visible=ZC._b_(i.E["plot"+A+".visible"]),d.toggleaction=C,ZC.AQ.C0("legend_click",i.A,d),ZC.AQ.C0("legend_"+s+"_click",i.A,d),C){default:break;case"hide":case"remove":if(t.shiftKey){var f=0;for(n=0,a=i.AZ.A3.length;n=0;i--)"undefined"==typeof n.o[i]&&n.o.splice(i,1);if(null===ZC._n_(n.E["plot-sort"])&&(n.E["plot-sort"]=!1),n.o.length>1){for(i=0,t=n.o.length;ia[i+1]["z-index"]){n.E["plot-sort"]=!0;var r=a[i];a[i]=a[i+1],a[i+1]=r;var s=l[i];l[i]=l[i+1],l[i+1]=s,o=!1}}n.M6=l}else n.M6=[0];for(n.A3=[],i=0,t=n.o.length;i0)if(e.A3.length>100&&!e.C.LM)for(var t=0;tZC.AQ.N8(t)?1:ZC.AQ.N8(e)n(t)&&i.A.AJ["3d"]?1:n(e)ZC.AQ.N8(t)?1:ZC.AQ.N8(e)',l=i.A.a11y(),o=e.innerHTML.indexOf(a);zingchart.DEV.DELAYEDTRACKERS?window.setTimeout(function(){-1!==o?e.innerHTML=e.innerHTML.substring(0,o+a.length)+l+i.HE.join("")+e.innerHTML.substring(o+a.length):e.innerHTML+=l+i.HE.join("")},500):-1!==o?e.innerHTML=e.innerHTML.substring(0,o+a.length)+l+i.HE.join("")+e.innerHTML.substring(o+a.length):e.innerHTML+=l+i.HE.join("")}i.F2=null,i.D8=null,i.C.A9G=[],i.A._end_()}}),ZC.A44=ZC.LN.CC({ACU:function(){return new ZC.QU(this)}}),ZC.A45=ZC.LN.CC({ACU:function(){return new ZC.QV(this)}}),ZC.A89=ZC.LN.CC({ACU:function(){var e=new ZC.QU(this);return e.NE=!0,e}}),ZC.A8A=ZC.LN.CC({ACU:function(){var e=new ZC.QV(this);return e.NE=!0,e}}),ZC.A0I=ZC.LN.CC({ACU:function(){return new ZC.QW(this)}}),ZC.A0J=ZC.LN.CC({ACU:function(){return new ZC.QX(this)}}),ZC.ZG=ZC.LN.CC({ACU:function(e){var i=this;switch(e){default:return new ZC.QU(i);case"vline":var t=new ZC.QU(i);return t.NE=!0,t;case"poly":var n=new ZC.PB(i);return n.bPoly=!0,n.sTypeX="poly",n;case"area":return new ZC.QV(i);case"varea":var a=new ZC.QV(i);return a.NE=!0,a;case"bar":case"vbar":return new ZC.QW(i);case"hbar":return new ZC.QX(i);case"scatter":return new ZC.PB(i);case"hscatter":return new ZC.PB(i,"hscatter");case"bubble":return new ZC.RY(i);case"hbubble":return new ZC.RY(i,"hbubble");case"stock":return new ZC.VF(i);case"range":return new ZC.SW(i);case"vrange":var l=new ZC.SW(i);return l.NE=!0,l;case"line3d":return new ZC.UL(i);case"area3d":return new ZC.UM(i);case"bar3d":case"vbar3d":return new ZC.UK(i);case"bullet":case"vbullet":return new ZC.TF(i);case"hbullet":return new ZC.TG(i)}}}),ZC.A6O=ZC.LN.CC({ACU:function(){return new ZC.PB(this)}}),ZC.ACG=ZC.LN.CC({ACU:function(){var e=new ZC.PB(this);return e.bPoly=!0,e.sTypeX="poly",e}}),ZC.A5R=ZC.LN.CC({ACU:function(){return new ZC.PB(this,"hscatter")}}),ZC.A7A=ZC.LN.CC({ACU:function(){return new ZC.RY(this)}}),ZC.A6P=ZC.LN.CC({ACU:function(){return new ZC.RY(this,"hbubble")}}),ZC.A57=ZC.LN.CC({$i:function(e){this.b(e);var i=this;i.KO=[],i.P6=[],i.TO=[]},ACU:function(){return new ZC.W6(this)},parseLayout:function(e){var i,t,n,a,l=this;e&&(l.TO=[],l.P6=[]);var o,r=l.A.BM("scale-r"),s=l.A.BM("scale"),C=.9,A=1;l.A3.length>=10&&(A=1),l.A3.length>=20&&(A=1.25),l.A3.length>=30&&(A=1.5);var c=r.DJ;for(i=0,t=l.A3.length;i=0&&p<=90||p>=270&&p<=360?t.iX+t.I-(u.I+25):t.iX+(u.I+25))-n)/ZC.EI(p),a=ZC.CY(a,2*i/t.I),i=t.F/2-(u.F/2+10),a=ZC.CY(a,2*i/t.F)}}a=ZC.BQ(.15,ZC.CY(.85,a)),"auto"===t.o["size-factor"]&&(t.o["size-factor"]=t.JF=a)}}),ZC.A7V=ZC.LN.CC({A23:{},$i:function(e){this.b(e)},ACU:function(){return new ZC.XF(this)},paint:function(){this.A23={},this.b()}}),ZC.A6R=ZC.A0I.CC({ACU:function(){return new ZC.TF(this)}}),ZC.A6S=ZC.A0J.CC({ACU:function(){return new ZC.TG(this)}}),ZC.A7Z=ZC.LN.CC({ACU:function(){return new ZC.XG(this)}}),ZC.A2C=ZC.LN.CC({parse:function(){var e,i,t,n,a,l=this;for(l.AY=ZC.MAX,l.BD=-ZC.MAX,l.A7R=[],l.S8=[],l.b(),e=0,i=l.A3.length;e0||n.SZ.length>0||n.A2.o["top-state"])&&(n.YK=!1),n.GA=new ZC.CZ(n),r.load(n.GA.o,B("hover-marker")),n.GA.append(n.o.marker),n.GA.append(n.o["hover-marker"]),null!==ZC._n_(e=n.o["selected-marker"])&&(n.PM=new ZC.CZ(n),r.load(n.PM.o,B("selected-marker")),n.PM.append(e)),null!==ZC._n_(e=n.o["background-marker"])&&(n.PK=new ZC.CZ(n),r.load(n.PK.o,B("background-marker")),n.PK.append(e)),n.ID&&(n.V0=new ZC.CZ(n),n.V0.append(n.o.marker),null!==ZC._n_(e=n.o["highlight-marker"])&&(r.load(n.V0.o,B("highlight-marker")),n.V0.append(e))),"normal"!==n.A0V&&(n.SX||n.PM)&&(n.GV=!1),"fast"===n.A0V&&(n.GV=!0),n.A7=new ZC.DN(n),n.o.tooltip&&n.o.tooltip.placement&&n.o.tooltip.placement.indexOf("node")>-1?r.load(n.A7.o,"("+n.AF+").tooltip[dynamic]"):r.load(n.A7.o,n.AF+".tooltip"),n.A7.append(n.o.tooltip),null!==ZC._n_(e=n.o.error)&&(n.J9=new ZC.DQ(n),r.load(n.J9.o,B("error")),n.J9.append(e),null===ZC._n_(n.J9.o.size)&&(n.J9.o.size=4)),null!==ZC._n_(e=n.o["value-box"])){if(e instanceof Array)for(n.U=new ZC.CZ(n),r.load(n.U.o,B("value-box")),null!==ZC._n_(i=n.C.o.plot)&&n.U.append(i["value-box"]),n.U.append(e[0]),e.length>1&&(n.NY=[]),Z=1;Z1?(null===ZC._n_(n.V[Z][1])||"string"==typeof n.V[Z][1]&&"NULL"===n.V[Z][1].toUpperCase())&&(g=!0):(null===ZC._n_(n.V[Z])||"string"==typeof n.V[Z]&&"NULL"===n.V[Z].toUpperCase())&&(g=!0),"piano"===n.C.AF&&(g=!1)),g)n.R.push(null);else{!n.GV||"xy"!==n.C.AJ.layout&&"yx"!==n.C.AJ.layout?c=n.TY():n.GQ[1]||("bubble"===n.AF||"scatter"===n.AF?n.GQ[1]=c=n.TY():(n.GQ[0]=n.TY(),n.GQ[1]=c=n.TY(),n.GQ[2]=n.TY(),n.GQ[3]=n.TY())),c.K=n.K+"-node-"+Z,"string"==typeof n.V[Z]&&zingchart.QUOTEDVALUES&&(n.V[Z]=ZC._f_(n.V[Z])),c.o={value:n.V[Z]},"string"==typeof n.V[Z]&&(c.A22=!0),c.L=Z,n.o["hint-ts"]?(c.E.plotidx=n.L,c.E.nodeidx=c.L,c.K=n.K+"-node-"+c.L,c.BV=n.V[Z][0],c.AD=n.V[Z][1]):c.parse(),(t<256||zingchart.DEV.CHECKDECIMALS)&&null!==ZC._n_(c.AD)&&2===(A=c.AD.toString().split(".")).length&&(_=ZC.BQ(_,A[1].length)),c.BV&&(null!==h&&ZC._a_(c.BV-h)>0&&d.push(ZC._a_(c.BV-h)),h=c.BV),n.A.WQ=n.A.WQ||{};var v=n.A.WQ["s"+n.E0];if(v&&(null!==h?-1===ZC.AV(v,c.BV)&&v.push(c.BV):-1===ZC.AV(v,Z)&&v.push(Z)),!n.GV||"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,BV:c.BV,AD:c.AD,CP:c.AD,DS:c.DS,IY:c.IY};"bubble"===n.AF&&(b.SL=c.SL),n.R.push(b)}null!==c.BV&&(n.PZ[0]=Math.min(n.PZ[0],c.BV),n.PZ[1]=Math.max(n.PZ[1],c.BV)),n.C.E["plot"+n.L+".visible"]&&(zingchart.DEV.PLOTSTATS||"100%"===n.KR)&&n.CE&&(null===ZC._n_(n.A.F8[Z])?(n.A.F8[Z]={},n.A.F8[Z]["%total-"+n.E0]=c.AD):null===ZC._n_(n.A.F8[Z]["%total-"+n.E0])?n.A.F8[Z]["%total-"+n.E0]=c.AD:n.A.F8[Z]["%total-"+n.E0]+=c.AD),zingchart.DEV.PLOTSTATS&&(f.push(c.AD),n.J8?(n.J8["%plot-max-index"]=Z,n.J8["%plot-sum"]+=c.AD,t<256&&(n.J8["%plot-values"]+=","+c.AD)):n.J8={"%plot-min-index":Z,"%plot-max-index":Z,"%plot-sum":c.AD,"%plot-values":c.AD},n.A.F8||(n.A.F8={}),n.AN&&(null===ZC._n_(n.A.F8["%pstack-"+Z+"-"+n.E0+"-sum"])?(n.A.F8["%pstack-"+Z+"-"+n.E0+"-sum"]=c.AD,n.A.F8["%pstack-"+Z+"-"+n.E0+"-stack-length"]=1):(n.A.F8["%pstack-"+Z+"-"+n.E0+"-sum"]+=c.AD,n.A.F8["%pstack-"+Z+"-"+n.E0+"-stack-length"]+=1)))}}(n.V.length<256||zingchart.DEV.CHECKDECIMALS)&&n.J8&&null!==ZC._n_(n.J8["%plot-sum"])&&2===(A=n.J8["%plot-sum"].toString().split(".")).length&&ZC._i_(A[1])>_&&(n.J8["%plot-sum"]=ZC._f_(n.J8["%plot-sum"].toFixed(ZC.CY(20,_)))),zingchart.DEV.PLOTSTATS?(n.J8&&(n.J8["%plot-average"]=n.J8["%plot-sum"]/n.V.length,n.J8["%plot-average"]=ZC._f_(n.J8["%plot-average"].toFixed(ZC.CY(20,_+2)))),f.length>0&&(n.J8["%plot-min-value"]=ZC.Y4(f),n.J8["%plot-max-value"]=ZC.A1U(f))):n.J8={"%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},h&&d.length>0&&(n.AAD=ZC.Y4(d),n.A2G=ZC.A1U(d))}}function B(e){var i=["("+n.AF+").plot."+e];return n.sTypeX&&i.push("("+n.sTypeX+").plot."+e),i}},mapPointsToPreview:function(e,i){for(var t=this,n=t.C.P,a=t.C.B9.AT,l=[],o=0,r=e.length;o0||ZC.DP(a.R[i].BV,a.B0.V[a.B0.W],a.B0.V[a.B0.A1]))&&n++;a.RVl.I&&(a.U4=!0),a.MV>=n&&(a.R5=!0)}else a.MV>a.B0.A1-a.B0.W&&(a.R5=!0);a.Y=1,a.B0.EG&&a.EG||(n=a.B0.A1-a.B0.W,a.RVl.I&&(a.U4=!0),!a.Q9&&n*a.XY>l.I&&(a.Y=ZC.BQ(1,ZC._i_(n*a.XY/l.I)))),a.B0.EG&&a.EG&&(a.Q9||n*a.XY>l.I&&(a.Y=ZC.BQ(1,ZC._i_(n*a.XY/l.I)))),a.C.OA&&(a.Q9=!1,a.Y*=a.YA)}null!==ZC._n_(a.XL)&&a.Y>a.XL&&(a.Y=a.XL)},PD:function(e){var i,t,n,a=this;null!==ZC._n_(e)&&e||(e=!1),a.B0&&"log"===a.B0.BT&&(e=!0),a.XS(e);var l=null;if(e||a.LR)a.A.A4J=!1,function Z(e,i){for(var t=e;t0||ZC.DP(a.R[i].BV,a.B0.V[a.B0.W],a.B0.V[a.B0.A1])||o&&r&&a.R[i+n]&&a.R[i+n].BV>=a.B0.V[a.B0.W])&&(o&&r&&a.R[i-n]&&((l=a.FK(i-n)).Z=a.KF,l.paint(),l.IY=!0,r=!1,C++),(l=a.FK(i)).Z=a.KF,l.paint(),l.IY=!0,a.R[i].IY=!0,C++,r=!1,s=i);o&&C>0&&a.R[s+n]&&((l=a.FK(s+n)).Z=a.KF,l.paint(),l.IY=!0)}else{n=a.GB=a.HH=a.Y;var A=0,c=1,u=null;if(!o){var p="vbar"===a.AF?a.C.P.I:a.C.P.F;A=4/("vbar"===a.AF?a.C.P.F:a.C.P.I)*(a.CN.BD-a.CN.AY),c=1+ZC._i_((a.B0.A1-a.B0.W)/(2*p)),n=1}for(i=a.B0.W;i<=a.B0.A1;i+=n)(a.B0.A1-a.B0.W)%a.Y!=0&&o&&(a.B0.A1-i==0?(a.GB=n,a.HH=1):a.B0.A1-i<=a.Y&&(a.GB=a.Y,a.HH=a.B0.A1-i,n=a.B0.A1-i)),a.R[i]?(l=a.FK(i),(o||a.Q9||!o&&null===u||ZC._a_(l.AD-u)>A||i%c==0)&&(l.Z=a.KF,l.paint(),l.IY=!0,a.R[i].IY=!0),u=l.AD):a.CE&&-1!==ZC.AV(["vbar","hbar","vbar3d","hbar3d"],a.AF)&&a.SP()}}},CQ:function(e,i){var t=this;if(t.UG[e+i])return t.UG[e+i];var n=null;return n=t.H.usc()?ZC.AL(t.H.K+"-main-c"+("fl"===e?"-top":"")):t.H.KA||t.C.AJ["3d"]?ZC.AL(t.C.K+"-plots-"+e+"-c"):ZC.AL(t.C.K+"-plot-"+t.L+"-"+e+"-"+i+"-c"),t.UG[e+i]||(t.UG[e+i]=n),n},V3:function(e){var i=this;return{id:i.H.K,graphid:i.C.K,graphidx:i.C.L,plotid:i.H6,plotindex:i.L,plottext:i.AM,ev:e?ZC.A5.C1(e):null,xdata:i.K0}},X3:function(e,i){ZC.AQ.C0("plot_"+i,this.H,this.V3(e))},applyJsRuleSvg:function(e,i,t){var n;if(n=e.o["js-rule-svg"]){var a=ZC.AL(i),l=ZC.evalFn(n.replace("javascript:","").replace("()",""),window);if(a&&l)try{var o=l.call(this,t);for(var r in o)a.setAttribute(r,o[r])}catch(s){}}},sharedZScale:function(){var e=this,i=e.C,t=i.P;if(i.o["scale-z"]&&i.E["plot"+e.L+".visible"]){var n,a,l,o,r;if(n=new ZC.CF(i,t.iX+t.I-ZC.AP.E4+10,t.iY+t.F-ZC.AP.E5,e.E["z-mid"]),(a=new ZC.DN(e)).GL=i.K+"-scale-z-item "+i.K+"-scale-item zc-scale-item",a.K=i.K+"-scale-z-item_"+e.L,a.AM=i.o["scale-z"].values[e.L],a.Z=a.C7=e.H.usc()?e.H.mc():ZC.AL(i.K+"-scales-ml-0-c"),r=ZC.Q.EC(a.Z,e.H.AC),a.IM=e.H.usc()?ZC.AL(e.H.K+"-main"):ZC.AL(e.H.K+"-text"),a.append(i.o["scale-z"].item),a.parse(),a.AA+=a.V7?0:ZC.DK.A38(i,a),a.iX=n.ED[0],a.iY=n.ED[1],a.o["auto-align"]&&a.V7&&(a.iY-=a.F/2),a.paint(),null===ZC._n_(e.E["scale-z-item-max-width"])&&(e.E["scale-z-item-max-width"]=0),e.E["scale-z-item-max-width"]=ZC.BQ(e.E["scale-z-item-max-width"],a.I),e.E["z-cnt"]===e.E["z-plots"]-1&&i.o["scale-z"].label){var s,C;n=new ZC.CF(i,t.iX+t.I-ZC.AP.E4+20+e.E["scale-z-item-max-width"],t.iY+t.F-ZC.AP.E5,ZC.AP.FX/2),(a=new ZC.DN(e)).GL=i.K+"-scale-z-label "+i.K+"-scale-label zc-scale-label",a.K=i.K+"-scale-z-label",a.Z=a.C7=e.H.usc()?e.H.mc():ZC.AL(i.K+"-scales-ml-0-c"),r=ZC.Q.EC(a.Z,e.H.AC),a.IM=e.H.usc()?ZC.AL(e.H.K+"-main"):ZC.AL(e.H.K+"-text"),a.append(i.o["scale-z"].label),a.parse(),s=new ZC.CF(i,t.iX+t.I-ZC.AP.E4,t.iY+t.F-ZC.AP.E5,0),C=new ZC.CF(i,t.iX+t.I-ZC.AP.E4,t.iY+t.F-ZC.AP.E5,ZC.AP.FX);var A=ZC.U0(Math.atan((C.ED[1]-s.ED[1])/(C.ED[0]-s.ED[0])));a.AA+=a.V7?0:A,a.iX=n.ED[0],a.iY=n.ED[1],a.paint()}if(i.o["scale-z"].tick&&((o=new ZC.DQ(e)).B7="#cccccc",o.B1=1,o.AI=6,o.append(i.o["scale-z"].tick),o.parse(),o.AN&&o.B1>0)){o.K=i.K+"-scale-z-tick-"+e.L;for(var c=[],u=[[t.iX+t.I,t.iY+t.F],[t.iX+t.I+o.AI,t.iY+t.F]],p=0;p0&&o.AN&&(o.A0=o.AE=o.B7,(l=ZC.DK.DC(o,i,t.iX+t.I-ZC.AP.E4-o.B1,t.iX+t.I-ZC.AP.E4,t.iY+t.F-ZC.AP.E5,t.iY+t.F-ZC.AP.E5,0,ZC.AP.FX,"x")).K=i.K+"-scale-z-axis",i.CM.add(l))),e.E["z-cnt"]>0&&i.o["scale-z"].guide&&((o=new ZC.CZ(e)).B7="#cccccc",o.B1=1,o.append(i.o["scale-z"].guide),o.parse(),o.B1>0&&o.AN&&(o.A0=o.AE=o.B7,(l=ZC.DK.DC(o,i,t.iX-ZC.AP.E4,t.iX+t.I-ZC.AP.E4,t.iY+t.F-ZC.AP.E5,t.iY+t.F-ZC.AP.E5+o.B1,e.E["z-cnt"]*e.E["z-depth"],e.E["z-cnt"]*e.E["z-depth"],"y")).K=i.K+"-scale-z-guideh-"+e.L,i.CM.add(l),(l=ZC.DK.DC(o,i,t.iX-ZC.AP.E4,t.iX-ZC.AP.E4,t.iY-ZC.AP.E5,t.iY+t.F-ZC.AP.E5,e.E["z-cnt"]*e.E["z-depth"],e.E["z-cnt"]*e.E["z-depth"]+o.B1,"y")).K=i.K+"-scale-z-guidev-"+e.L,i.CM.add(l))),i.o["scale-z"].items&&i.o["scale-z"].items.length){(o=new ZC.CZ(e)).A0=o.AE="#ff9900",o.C5=.25;var Z=e.E["z-cnt"]%i.o["scale-z"].items.length;o.append(i.o["scale-z"].items[Z]),o.parse(),(l=ZC.DK.DC(o,i,t.iX-ZC.AP.E4,t.iX+t.I-ZC.AP.E4,t.iY+t.F-ZC.AP.E5,t.iY+t.F-ZC.AP.E5,e.E["z-cnt"]*e.E["z-depth"],e.E["z-cnt"]*e.E["z-depth"]+e.E["z-depth"],"z")).K=e.K+"-item-",i.CM.add(l)}}},gc:function(){if(this.R)for(var e=0;e1&&"spline"===v&&(v="segmented"),r.B0.EG&&r.EG){for(t=r.Y,r.N4&&(t=1),e=0,i=r.R.length;e0||ZC.DP(r.R[e].BV,r.B0.V[r.B0.W],r.B0.V[r.B0.A1])||p&&r.R[e+t]&&r.R[e+t].BV>=r.B0.V[r.B0.W])&&(p&&r.R[e-t]&&(-1===d&&(d=e-t),f=e-t,p=!1,Z++),-1===d&&(d=e),f=e,Z++,p=!1,n=e);Z>0&&r.R[n+t]&&(-1===d&&(d=n+t),f=n+t,r.R[n+t].IY=!0)}else d=r.B0.W,f=r.LR||"log"===r.B0.BT?r.R.length:r.B0.A1;r.Y=g;var b=-1;t=r.Y,r.N4&&(t=1);var B=null,m=null,E=0,D=1;n=d,s?f-d>r.C.P.F&&(E=4/r.C.P.I*(r.CN.BD-r.CN.AY),D=ZC._f_((f-d)/(4*r.C.P.F))):f-d>r.C.P.I&&(E=4/r.C.P.F*(r.CN.BD-r.CN.AY),D=ZC._f_((f-d)/(4*r.C.P.I))),r.o["sampling-threshold"]&&(E*=Math.max(1,(f-d)/ZC._i_(r.o["sampling-threshold"])),D*=Math.max(1,(f-d)/ZC._i_(r.o["sampling-threshold"])));for(r.D=[],e=d;e<=f;e+=t){var F=!1;if(((f-d)%r.Y!=0||r.B0.EG&&r.EG)&&f-e<=r.Y&&(t=ZC.BQ(1,f-e),F=!0),r.N4&&!F&&r.R[e])if(null===ZC._n_(B))B=r.R[e].CP,n=e,m=0;else{if(Math.abs(r.R[e].CP-B)d&&(d=f)),c.E["min-y"]=Math.min(h,d),c.E["max-y"]=Math.max(h,d),c.CE&&c.A.F2){var _=ZC.MAX,g=-ZC.MAX;for(e=0,i=c.A.F2.length;e1&&"spline"===H&&(H="segmented"),c.B0.EG&&c.EG){for(n=c.Y,c.N4&&(n=1),e=0,i=c.R.length;e0||ZC.DP(c.R[e].BV,c.B0.V[c.B0.W],c.B0.V[c.B0.A1])||y&&c.R[e+n]&&c.R[e+n].BV>=c.B0.V[c.B0.W])&&(y&&c.R[e-n]&&(-1===X&&(X=e-n),M=e-n,y=!1,L++),-1===X&&(X=e),M=e,L++,y=!1,t=e);L>0&&c.R[t+n]&&(-1===X&&(X=t+n),M=t+n,c.R[t+n].IY=!0)}else X=c.B0.W,M=c.LR||"log"===c.B0.BT?c.R.length:c.B0.A1;c.Y=P,m||c.A.D8&&(D=c.A.D8.reverse());var N=null,G=null,Q=0,k=1;t=X,u?M-X>c.C.P.F&&(Q=4/c.C.P.I*(c.CN.BD-c.CN.AY),k=ZC._f_((M-X)/(4*c.C.P.F))):M-X>c.C.P.I&&(Q=4/c.C.P.F*(c.CN.BD-c.CN.AY),k=ZC._f_((M-X)/(4*c.C.P.I)));var R=!1,z=!1,T=-1;n=c.Y,c.N4&&(n=1),R=!0,!c.A.RW&&m&&(c.A.RW={},c.A.VK={});var V=null,S=null;if(c.A.RW&&!c.A.RW["s"+c.E0]&&m){c.A.RW["s"+c.E0]={},c.A.VK["s"+c.E0]={};var J=c.A.WQ["s"+c.E0];for(e=0;e<=J.length;e++)null!==ZC._n_(J[e])&&(a=c.B0.EG?ZC._i_(c.B0.AR(J[e])):ZC._i_(c.B0.IE(J[e])),c.A.RW["s"+c.E0][a]=w,c.A.VK["s"+c.E0][a]=w)}for(m&&(V=c.A.RW["s"+c.E0],S=c.A.VK["s"+c.E0]),e=X;e<=M;e+=n){var W=!1;if(((M-X)%c.Y!=0||c.B0.EG&&c.EG)&&M-e<=c.Y&&(n=ZC.BQ(1,M-e),W=!0),c.N4&&!W&&c.R[e])if(null===ZC._n_(N))N=c.R[e].CP,t=e,G=0;else{if(Math.abs(c.R[e].CP-N)c.B0.iY&&(F.push([w,c.B0.iY]),F.push([w,Y.iY]),D.push([w,Y.iY])):Y.iX>c.B0.iX&&(F.push([c.B0.iX,w]),F.push([Y.iX,w]),D.push([Y.iX,w])),R=!1),E.push([Y.iX,Y.iY]),m?u?S[ZC._i_(Y.iY)]=Y.iX:S[ZC._i_(Y.iX)]=Y.iY:(F.push([Y.iX,Y.iY]),D.push([Y.iX,Y.iY]));break;case"spline":u?(K.push(Y.iX),I.push(Y.iY),1===K.length&&(K.push(Y.iX),I.push(Y.iY))):(K.push(Y.iY),I.push(Y.iX),1===K.length&&(K.push(Y.iY),I.push(Y.iX)));break;case"stepped":var U=c.B0.AW?-1:1;switch(c.SM){default:(o=c.FK(e-n,0))&&(o.setup(),l=ZC.AO.JW(c.R[e-n].iX,c.R[e-n].iY,Y.iX,Y.iY),E.push(u?[Y.iX,l[1]]:[l[0],Y.iY]),m?u?S[ZC._i_(l[1])-U]=Y.iX:S[ZC._i_(l[0])+U]=Y.iY:(F.push(u?[Y.iX,l[1]]:[l[0],Y.iY]),D.push(u?[Y.iX,l[1]]:[l[0],Y.iY]))),E.push([Y.iX,Y.iY]),m?u?S[ZC._i_(Y.iY)]=Y.iX:S[ZC._i_(Y.iX)]=Y.iY:(F.push([Y.iX,Y.iY]),D.push([Y.iX,Y.iY])),(r=c.FK(e+n,0))&&(r.setup(),l=ZC.AO.JW(Y.iX,Y.iY,c.R[e+n].iX,c.R[e+n].iY),E.push(u?[Y.iX,l[1]]:[l[0],Y.iY]),m?u?S[ZC._i_(l[1])+U]=Y.iX:S[ZC._i_(l[0])-U]=Y.iY:(F.push(u?[Y.iX,l[1]]:[l[0],Y.iY]),D.push(u?[Y.iX,l[1]]:[l[0],Y.iY])));break;case"before":(o=c.FK(e-n,0))&&(o.setup(),E.push([c.R[e-n].iX,c.R[e-n].iY],[c.R[e-n].iX,Y.iY]),m?u?(S[ZC._i_(Y.iY)+U]=c.R[e-n].iX,S[ZC._i_(Y.iY)]=c.R[e-n].iX):(S[ZC._i_(c.R[e-n].iX)]=c.R[e-n].iY,S[ZC._i_(c.R[e-n].iX)+U]=Y.iY):(F.push([c.R[e-n].iX,c.R[e-n].iY],[c.R[e-n].iX,Y.iY]),D.push([c.R[e-n].iX,c.R[e-n].iY],[c.R[e-n].iX,Y.iY]))),E.push([Y.iX,Y.iY]),m?u?S[ZC._i_(Y.iY)]=Y.iX:S[ZC._i_(Y.iX)]=Y.iY:(F.push([Y.iX,Y.iY]),D.push([Y.iX,Y.iY]));break;case"after":E.push([Y.iX,Y.iY]),m?u?S[ZC._i_(Y.iY)]=Y.iX:S[ZC._i_(Y.iX)]=Y.iY:(F.push([Y.iX,Y.iY]),D.push([Y.iX,Y.iY])),(r=c.FK(e+n,0))&&(r.setup(),E.push([c.R[e+n].iX,Y.iY],[c.R[e+n].iX,c.R[e+n].iY]),m?u?(S[ZC._i_(Y.iY)-U]=c.R[e+n].iX,S[ZC._i_(c.R[e+n].iY)]=c.R[e+n].iX):(S[ZC._i_(c.R[e+n].iX)-U]=Y.iY,S[ZC._i_(c.R[e+n].iX)]=c.R[e+n].iY):(F.push([c.R[e+n].iX,Y.iY],[c.R[e+n].iX,c.R[e+n].iY]),D.push([c.R[e+n].iX,Y.iY],[c.R[e+n].iX,c.R[e+n].iY])))}}O&&Y.N7(ZC.Q.EC(c.CQ("fl",0),c.H.AC)),(c.R5&&B||c.FU||c.U)&&Y.PF(),Y.IY=!0}else null!==ZC._n_(c.o["connect-nulls"])&&ZC._b_(c.o["connect-nulls"])||(E.push(null),K.push(null),I.push(null),m||(D.length-1>=0&&D.push(u?[w,D[D.length-1][1]]:[D[D.length-1][0],w]),F.length-1>=0&&F.push(u?[w,D[D.length-1][1]]:[D[D.length-1][0],w]),z=!0))}if("segmented"!==H&&"stepped"!==H||m||D.length-1>=0&&(u?D.push([w,D[D.length-1][1]]):D.push([D[D.length-1][0],w])),"spline"===H){K.push(K[K.length-1]),I.push(I[I.length-1]),E=[],m||D.push(u?[w,I[0]]:[I[0],w]);for(var j=1;j0){var ie=F[F.length-1];u||ie[0]=1&&(a=e.CG/e.B0.AB);var l=e.CT;e.CT>=1&&(l=e.CT/e.B0.AB);var o=1-a-l,r=ZC._x_(o/(3*n+1));e.CG=a+r+3*(t-1)*r,e.CT=1-e.CG-2*r}}},SP:function(){var e,i=this;if(i.RO)return i.RO;if(i.o["fast-dimensions"]&&i.A.A3[0].RO)return i.A.A3[0].RO;i.bKeyWidth&&(i.assign_a([["bar-width","D4","fp"]]),i.D4=((i.B0.CK?i.B0.F:i.B0.I)-i.B0.A9-i.B0.BS)*(i.D4/(i.B0.BD-i.B0.AY)));var t,n=i.B0.AB*i.Y,a=0;for(i.A.K4[i.AF]=i.A.K4[i.AF]||[],e=0;e1&&(p/=a-1),p<0&&(c=n-A-u-(p=0)*(a-1))),Z=(c=ZC.BQ(c,1*a))/a):a>1&&(p=0,Z=c/a,f<=1&&(f*=Z),u=(h=n-(c=a*(Z-(f=ZC.CY(f,Z)))+f)-p*(a-1))-(A=h*(d=0===u?1:A/u)/(1+d)),A<1&&(c-=1-A))):(c=n-A-u,0===i.F0||a<=1?((p=i.F4)<=1&&(p*=c/a),u=(h=n-c-(p=ZC.BQ(0,p))*(a-1))-(A=h*(d=0===u?1:A/u)/(1+d)),A<1&&(A=u=0,p=n-c,a>1&&(p/=a-1),p<0&&(c=n-A-u-(p=0)*(a-1))),Z=(c=ZC.BQ(c,1*a))/a):a>1&&(p=0,Z=c/a,f>1&&(f=Z/f),f*=Z=c/(a-a*f+f),u=(h=n-c-p*(a-1))-(A=h*(d=0===u?1:A/u)/(1+d)),A<1&&(c-=1-A))),-1!==i.YU&&Z>i.YU&&!i.E.bw&&(i.D4=i.YU),i.RO={AB:n,EU:t,CG:A,CT:u,F4:p,D4:Z,F0:f},{AB:n,EU:t,CG:A,CT:u,F4:p,D4:Z,F0:f}},paint:function(){var e=this;e.b(),e.KF=e.CQ("bl",0);var i=e.FD;e.A2L=!1,e.SA=null;var t=1;e.B0.EG&&(t=e.R.length/(e.B0.DR-e.B0.D6)),0!==e.E7.length||e.HW||e.C.KJ||"svg"!==e.H.AC||!(e.B0.A1-e.B0.W>2048||e.B0.EG&&t*(e.B0.A1-e.B0.W)>2048)||(e.A2L=!0,null===ZC._n_(e.o["rect-shortcut"])&&(e.FD=!0)),e.FD||(e.A2L=!1),e.PD(),e.FD=i,e.RefNode=null,e.W0=null}}),ZC.QW=ZC.A2A.CC({$i:function(e){this.b(e),this.AF="vbar"},TY:function(){return new ZC.ZH(this)}}),ZC.QX=ZC.A2A.CC({$i:function(e){this.b(e),this.AF="hbar"},TY:function(){return new ZC.ZI(this)}}),ZC.PB=ZC.W5.CC({$i:function(e,i){this.b(e),this.AF=i||"scatter",this.P3="markerbg",this.bPoly=!1,this.HO=.5},TY:function(){return new ZC.A5S(this)},parse:function(){var e=this;e.BP=e.O1(),e.C2=e.BP[0],e.A0=e.BP[1],e.AE=e.BP[1],e.B7=e.BP[2],e.BX=e.BP[2],e.NQ(),e.b(),e.assign_a([["alpha-area","HO","f",0,1]]),e.B0=e.C.BM(e.BW("k")[0]),e.CN=e.C.BM(e.BW("v")[0])},paint:function(){var e,i,t,n=this;if(n.b(),n.KF=n.CQ("bl",0),n._oCtxNode=ZC.Q.EC(n.CQ("bl",0),n.H.AC),!n.GV||n.C.AJ["3d"]||"fast"!==n.A0V||0!==n.RV)n.PD(!0);else{var a=null,l=n.B0,o=n.CN;n.XS(!0);var r=new ZC.DQ(n.A);for(r.Z=n.CQ("bl",1),r.C7=n.CQ("bl",0),r.B7=n.BP[3],r.BX=n.BP[3],r.A0=n.BP[2],"bubble"===n.AF||"hbubble"===n.AF?r.AE=n.BP[1]:r.AE=n.BP[2],r.append(n.A2.o),r.parse(),i=0;i<=n.R.length;i++)if(a=n.FK(i)){var s=!1;l.CK?ZC.DP(a.iX,o.iX+(o.AW?o.BS:o.A9)-1,o.iX+o.I-(o.AW?o.A9:o.BS)+1)&&ZC.DP(a.iY,l.iY+(l.AW?l.BS:l.A9)-1,l.iY+l.F-(l.AW?l.A9:l.BS)+1)&&(s=!0):ZC.DP(a.iX,l.iX+(l.AW?l.BS:l.A9)-1,l.iX+l.I-(l.AW?l.A9:l.BS)+1)&&ZC.DP(a.iY,o.iY+(o.AW?o.A9:o.BS)-1,o.iY+o.F-(o.AW?o.BS:o.A9)+1)&&(s=!0),s&&(a.IY=!0,n.R[i].IY=!0,r.K=a.K+"-marker",r.iX=a.iX,r.iY=a.iY,"circle"!==r.DV&&r.parse(),"none"!==n.J0&&(n.C.IW[n.L]||n.C.KJ)&&(r.o={},r.LO={},n.C.CD["p"+n.L]&&n.C.CD["p"+n.L]["n"+i]?r.LO=n.PM?n.PM.o:{}:"none"!==n.O3&&("plot"===n.O3&&n.C.IW[i]||"graph"===n.O3&&n.C.KJ)&&(r.LO=n.PK?n.PK.o:{}),r.B7=n.BP[3],r.BX=n.BP[3],r.A0=n.BP[2],"bubble"===n.AF||"hbubble"===n.AF?r.AE=n.BP[1]:r.AE=n.BP[2],r.append(n.A2.o),r.parse()),r.paint())}}if(n.bPoly){for(e=[],i=0,t=n.R.length;i=e.UR&&(e.Q8=.2,e.UR=1),e.B0=e.C.BM(e.BW("k")[0]),e.CN=e.C.BM(e.BW("v")[0])},paint:function(){var e=this;e.b(),e.KF=e.CQ("bl",0),e.A4R=e.A3I=-ZC.MAX,e.Y7=e.WJ=ZC.MAX,e.A65=e.A4S=0;for(var i=0,t=e.A.A3.length;ia&&(i.Y=ZC._i_(5*(i.B0.A1-i.B0.W)/a));var l=i.B0.EG;if(l&&i.PZ[0]===ZC.MAX&&i.PZ[1]===-ZC.MAX&&(l=!1),i.bFastRange=i.R.length>1024,(i.B0.A1-i.B0.W)/(i.B0.DR-i.B0.D6)<.1&&(i.bFastRange=!1),l)for(Z=0,e=i.R.length;Z')}}},paint:function(){var e=this;e.b(),e.KF=e.CQ("bl",0),e.A4Q=ZC.Q.EC(e.CQ("bl",1),e.H.AC),e.O8=ZC.Q.EC(e.CQ("bl",2),e.H.AC),e.PD(),e.aPointsMin=[],e.aPointsMax=[],e.D=null,e.D8=null,e.ZT=null,e.S4=null}}),ZC.XI=ZC.W6.CC({$i:function(e){this.b(e);this.AF="pie3d",this.JI=-1},parse:function(){this.b(),this.assign_a([["thickness","JI","ia"]])},TY:function(){return new ZC.A7K(this)}}),ZC.UK=ZC.QW.CC({$i:function(e){this.b(e),this.AF="vbar3d"},TY:function(){return new ZC.A6V(this)},parse:function(){var e=this;e.b(),null===ZC._n_(e.o["border-color"])&&(e.BX=e.BP[0]),null===ZC._n_(e.o["line-color"])&&(e.B7=e.BP[0])},paint:function(){this.b(),this.sharedZScale()}}),ZC.W9=ZC.QX.CC({$i:function(e){this.b(e),this.AF="hbar3d"},TY:function(){return new ZC.A6W(this)},parse:function(){var e=this;e.b(),null===ZC._n_(e.o["border-color"])&&(e.BX=e.BP[0]),null===ZC._n_(e.o["line-color"])&&(e.B7=e.BP[0])}}),ZC.UL=ZC.QU.CC({$i:function(e){this.b(e),this.AF="line3d"},TY:function(){return new ZC.A6X(this)},parse:function(){var e=this;e.b(),null===ZC._n_(e.o["border-color"])&&(e.BX=e.BP[1])},paint:function(){this.b(),this.sharedZScale()}}),ZC.UM=ZC.QV.CC({$i:function(e){this.b(e),this.AF="area3d"},TY:function(){return new ZC.A6Y(this)},parse:function(){var e=this;e.b(),null===ZC._n_(e.o["border-color"])&&(e.BX=e.BP[1])},paint:function(){this.b(),this.sharedZScale()}}),ZC.YY=ZC.HY.CC({$i:function(e){this.b(e);var i=this;i.AF="venn",i.ABW=[],i.A9L=[],i.BO=["scale"],i.P3="bg"},TY:function(){return new ZC.A88(this)},parse:function(){var e=this;e.BP=e.O1(),e.C2=e.BP[0],e.BX=e.BP[1],e.A0=e.BP[3],e.AE=e.BP[3],e.NQ(),e.b(),e.assign_a([["join","ABW"],["share","A9L"]])},paint:function(){var e=this;e.b(),e.KF=e.CQ("bl",0),e.PD(!0)}});var LI={$i:function(e){this.b(e);var i=this;i.C=e.A.A,i.H=i.C.A,i.L=-1,i.AD=null,i.DS=[],i.CP=null,i.BV=null,i.CL=null,i.JQ=[],i.HZ=!1,i.PU=!0,i.O=i,i.IY=!1,i.A22=!1},H4:function(e,i){this.b(this.A,e,i,this.M0(null,!1),this.A.ML)},V4:function(){return[this.iX,this.iY,{reference:this,center:!0}]},ACA:function(){return[this.iX,this.iY]},getTooltipPosition:function(e,i,t){var n,a,l,o,r=this;switch(r.paint(!0),n=r.iX,a=r.iY,l=r.I,o=r.F,i){case"center":n=r.iX+l/2,a=r.iY+o/2;break;case"top":n=r.iX+l/2,a=r.iY,a=t?a-t:a;break;case"bottom":n=r.iX+l/2,a=r.iY+o,a=t?a+t:a;break;case"left":n=r.iX,a=r.iY+o/2,n=t?n-t:n;break;case"right":n=r.iX+l,a=r.iY+o/2,n=t?n+t:n;break;default:n+=r.BK,a+=r.BI}return{x:n,y:a}},setNodeData:function(e){var i=this;for(var t in e)e.hasOwnProperty(t)&&(i.A.GV?i.A.R[i.L][t]=e[t]:i.E[t]=e[t])},getNodeData:function(e){return this.A.GV?this.A.R[this.L][e]:this.E[e]},AB3:function(){var e,i,t=this,n=t.C.E,a=t.A.L;null===ZC._n_(n.update)&&(n.update={});var l=n.update,o=""+t.AD,r=t.A.MT();for(ZC.PC(o)&&ZC._f_(o)<0&&"currency"===r.negation&&(o=ZC._a_(ZC._f_(o))),r.utc=t.C.UF,r.timezone=t.C.NC,o=ZC.AQ.G4(o,r,t.A),l["plot-"+a+"-value"]=o,l["plot-"+a+"-value-0"]=o,e=0,i=t.DS.length;e0?t.iX=a.AR(100*t.CP/t.A.A.F8[t.L]["%total-"+t.A.E0]):t.iX=a.AR(100*t.CP):t.iX=a.AR(t.CP+0)):(null!==t.BV?t.iX=n.AR(t.BV):t.A.LR?"bar"===t.A.sMetaType?t.iX=n.IE(t.A.R6):t.iX=n.IE(t.A.R6)+t.A.RQ+t.L*(n.AB-2*t.A.RQ)/(t.A.R.length-1)-n.AB/2:"log"===n.BT?t.iX=n.AR(t.L):t.iX=n.IE(t.L),t.A.CE&&"100%"===t.A.KR?t.A.A.F8[t.L]["%total-"+t.A.E0]>0?t.iY=a.AR(100*t.CP/t.A.A.F8[t.L]["%total-"+t.A.E0]):t.iY=a.AR(100*t.CP):t.iY=a.AR(t.CP+0)),t.A.GV&&(t.A.R[t.L].iX=t.iX,t.A.R[t.L].iY=t.iY),t.JQ=l}t.HZ||(0!==t.A.E7.length||-1===ZC.AV(["line","area","vbar","hbar","line3d","area3d","vbar3d","hbar3d"],t.A.AF)||t.A.o.override?ZC.A5.browser.mozilla?(t.copy(t.A),t.E7=t.A.E7,t.DF(),t.parse(!1),t.O=t):t.A.o.override?(t.copy(t.A),t.E7=t.A.E7,t.DF(),t.parse(!1),t.O=t):(e=t.ACI(t.A.E7),null===ZC._n_(i=t.A.A62[e])?(t.copy(t.A),t.E7=t.A.E7,t.DF(),t.parse(!1),t.O=t,t.A.A62[e]=t):t.O=i):t.O=t.A,t.A.o.override&&(t.O.E.plotidx=t.A.L,t.O.E.nodeidx=t.L,t.O.parse(!1)),t.HZ=!0)},a11y:function(){var e=this,i="";if(e.H.bA11y){if(e.A.GV){var t=this.A.FK(e.L,1,!0);t&&(i=t.JX(this.C.A7.o.text||this.A.A7.o.text||this.A.J7))}else i=e.JX(this.C.A7.o.text||this.A.A7.o.text||this.A.J7);return e.A.AM&&-1===i.indexOf(e.A.AM)&&(i=e.A.AM+":"+i),i=i.replace(/<.+?>/gi," "),'tabindex="0" aria-label="Series '+(this.A.L+1)+" of "+this.A.A.A3.length+", point "+(this.L+1)+" of "+this.A.R.length+". "+i+'"'}return""},AA1:function(){var e,i=this;if(i.o.value instanceof Array&&(i.CL=i.o.value.join(" "),"string"==typeof i.o.value[0]?-1!==(e=ZC.AV(i.A.B0.IT,i.o.value[0]))?i.BV=e:(i.A.B0.IT.push(i.o.value[0]),i.BV=i.A.B0.IT.length-1):i.BV=parseFloat(i.o.value[0]),"string"==typeof i.o.value[1]?-1!==(e=ZC.AV(i.A.CN.JN,i.o.value[1]))?i.AD=e:(i.A.CN.JN.push(i.o.value[1]),i.AD=i.A.CN.JN.length-1):i.AD=parseFloat(i.o.value[1]),null!==i.BV&&i.A.V6(i.BV,i.L),i.A.YM>0&&i.o.value.length>i.A.YM))for(var t=i.o.value.length-i.A.YM;t0&&l.A.NY.length>i-1&&l.GY(e,i+1),l.AN||"pie"===l.A.AF||"pie3d"===l.A.AF){var o,r=1===i?l.A.U:l.A.NY[i-2];if(r){if(l.A.A75)(o=l.A.A75).K=l.K+"-value-box-"+i,o.Z=o.C7=l.H.usc()?l.H.mc("top"):l.C.AJ["3d"]||l.H.KA?ZC.AL(l.C.K+"-plots-vb-c"):ZC.AL(l.C.K+"-plot-"+l.A.L+"-vb-c"),o.IM=l.H.usc()?ZC.AL(l.C.A.K+"-top"):ZC.AL(l.C.A.K+"-text"),o.E.plotidx=l.A.L,o.E.nodeidx=l.L,a=ZC.AQ.O5(o.o,l.A.o),o.JX=function(e){return l.JX(e,a)},o.parse();else{o=new ZC.DN(l.A),r.o.rules||l.A.U.HW||(n="all",null!==ZC._n_(t=r.o.type)&&(n=t),"pie"===l.C.AF||"nestedpie"===l.C.AF||"pie3d"===l.C.AF||"all"!==n||l.A.NY&&0!==l.A.NY.length||(l.A.A75=o)),o.append(r.o),l.appendToValueBox&&!e&&(o.parse(),o.append(l.appendToValueBox(o))),o.GL=l.C.K+"-value-box "+l.C.K+"-plot-"+l.A.L+"-value-box zc-value-box",o.K=l.K+"-value-box-"+i,o.Z=o.C7=l.H.usc()?l.H.mc("top"):l.C.AJ["3d"]||l.H.KA?ZC.AL(l.C.K+"-plots-vb-c"):ZC.AL(l.C.K+"-plot-"+l.A.L+"-vb-c"),o.IM=l.H.usc()?ZC.AL(l.C.A.K+"-top"):ZC.AL(l.C.A.K+"-text"),a=ZC.AQ.O5(o.o,l.A.o),o.JX=function(e){return l.JX(e,a)};var s=l.ABF(o);if(null!==ZC._n_(t=s.color)&&(o.C2=t),null!==ZC._n_(t=s["background-color"])&&(o.A0=o.AE=t),o.E.plotidx=l.A.L,o.E.nodeidx=l.L,l.A.U.HW&&(l.A.U.H4(l.A.U,o,null,l.M0(null,!1)),o.parse()),o.parse(),o.J5=function(e){return l.J5(e)},o.DF()&&(a=o.overrideFormat(a),o.parse()),!l.A.YL){var C=new ZC.DN(l.A);C.copy(o),l.A.YL=C}if(n="all",null!==ZC._n_(t=r.o.type)&&(n=t),o.AN){o.AN=!1;var A=l.A.o["value-box"].text||"";if("values("===n.substring(0,7)){var c=n.substring(7,n.length).replace(")","").split(",");-1!==ZC.AV(c,l.AD)&&(o.AN=!0)}else{var u=n.split(","),p={min:"%plot-min-value",max:"%plot-max-value",first:"%plot-min-index",last:"%plot-max-index"};for(var Z in p)-1!==ZC.AV(u,Z)&&(("first"!==Z&&"last"!==Z||l.L!==l.A.J8[p[Z]])&&("min"!==Z&&"max"!==Z||l.AD!==l.A.J8[p[Z]])||("object"==typeof A&&null!==ZC._n_(A[Z])&&(o.o.text=A[Z],o.parse()),o.AN=!0));-1!==ZC.AV(u,"all")&&(o.AN=!0)}}}if(l.C.E["plot"+l.A.L+".visible"]||(o.E["css-display"]="none"),e)return o;if(o.AN&&null!==ZC._n_(o.AM)&&""!==o.AM){var h=l.AC7(o);o.E.positioninfo=h,o.iX=h[0],o.iY=h[1];var d={};if(-1!==o.iX&&-1!==o.iY){var f=!1;if(null!==ZC._n_(o.o.overlap)&&!ZC._b_(o.o.overlap)){d={x:o.iX,y:o.iY,width:o.I,height:o.F};for(var _=0,g=l.A.A.YV.length;_=n.LC&&!n.AW||t.AD=t.AD&&t.AD<=r?l="bottom":o<=t.AD&&t.AD>=r?l="top":o>=t.AD&&t.AD>=r?l=o/t.AD>t.AD/r?"bottom":"top":o<=t.AD&&t.AD<=r&&(l=t.AD/o>r/t.AD?"top":"bottom")}var s=e.I,C=e.F,A=t.iX-s/2,c=t.iY-C/2;switch(l){case"top":c-=a*(C/2+4);break;case"bottom":c+=a*(C/2+4);break;case"left":A-=s/2+4;break;case"right":A+=s/2+4}return t.C.AJ["3d"]||(A=ZC.BQ(t.C.P.iX-s/2,A),A=ZC.CY(t.C.P.iX+t.C.P.I-s/2,A),c=ZC.BQ(t.C.P.iY-C,c),c=ZC.CY(t.C.P.iY+t.C.P.F,c)),null!==ZC._n_(e.o.x)&&(A=e.iX),null!==ZC._n_(e.o.y)&&(c=e.iY),[ZC._i_(A),ZC._i_(c)]},PF:function(e,i){var t,n,a,l,o,r=this;if("undefined"==typeof r.A.bBS&&(r.A.bBS=-1===ZC.AV(["bubble","hbubble","scatter","hscatter"],r.A.AF)),null!==ZC._n_(r.A.o["markers-on-top"])&&(r.A.bBS=ZC._b_(r.A.o["markers-on-top"])),!r.C.OA||!r.A.bBS){null===ZC._n_(e)&&(e=!1),null===ZC._n_(i)&&(i=!1);var s=r.C.P.E.tolerance||2,C=!0;if(ZC.DP(r.iX,r.C.P.iX-s,r.C.P.iX+r.C.P.I+s)&&ZC.DP(r.iY,r.C.P.iY-s,r.C.P.iY+r.C.P.F+s)||(C=!1,0!==zingchart.DEV.TRACKERMASKING)){var A=r.C.K+"-node-area "+r.C.K+"-plotset-plot-"+r.A.L+"-node-area zc-node-area";if(-1===ZC.AV(r.H.KP,"skip_segment_tracking")&&r.A.FU){if(r.A.XZ&&!zingchart.DEV.SKIPTRACKERS){var c=r.getNodeData("points");if(-1!==ZC.AV(r.H.KP,"use_fast_mode")&&-1!==ZC.AV(["line","area"],r.A.AF)&&void 0===c&&r.paint(!0),c)if("undefined"==typeof r.E.polypoints){if(2===zingchart.DEV.TRACKERMASKING){for(var u=[r.C.P.iX,r.C.P.iY,r.C.P.iX+r.C.P.I,r.C.P.iY+r.C.P.F],p=[[u[0],u[1],u[2],u[1]],[u[0],u[3],u[2],u[3]],[u[0],u[1],u[0],u[3]],[u[2],u[1],u[2],u[3]]],Z=[],h=0;h')}if(("area"===r.A.AF||"area3d"===r.A.AF||"radar"===r.A.AF&&("area"===r.A.CW||"range"===r.A.CW))&&r.A.XC){var K=r.getNodeData("pointsarea");""!==(a=ZC.AO.PE(K,4))&&r.A.A.HE.push(ZC.Q.FS("poly",r.A.EA,r.A.IK)+'class="'+A+'" id="'+r.K+'--area" coords="'+a+'" />')}}if(C&&(r.A.U||!r.A.GV||!r.A.A2.o||"none"!==r.A.A2.o.type&&(null===ZC._n_(r.A.A2.o.visible)||ZC._b_(r.A.A2.o.visible)))){if(i||r.A.R5){if(r.A.HF)l=r.A.HF,"svg"!==r.H.AC&&(e?(o=new ZC.CF(r.C,r.iX-ZC.AP.E4,r.iY-ZC.AP.E5,r.A.E["z-start"]||0),l.iX=ZC._x_(o.ED[0]),l.iY=ZC._x_(o.ED[1]),r.E["3dxy"]=[l.iX,l.iY]):(l.iX=ZC._x_(r.iX),l.iY=ZC._x_(r.iY)),l.E.plotidx=r.A.L,l.E.nodeidx=r.L,l.K=r.K+"-marker",l.parse(!0));else{if(r.GV?r.A._oMarker?l=r.A._oMarker:r.A._oMarker=l=new ZC.DQ(r.A):l=new ZC.DQ(r.A),l.K=r.K+"-marker",l.E["p-width"]=r.A.B0.AB,l.E["p-height"]=r.A.CN.AB,r.A.bBS)l.Z=r.A.CQ("fl",0),l.C7=r.A.CQ("fl",0);else if(l.Z=r.A.CQ("bl",1),l.C7=r.A.CQ("bl",0),Object&&Object.keys&&Object.keys(r.C.CD).length>0){var I=r.C.CD["p"+r.A.L];"none"!==r.A.J0&&I&&I["n"+r.L]&&(l.Z=r.A.CQ("bl",2))}if(e?(o=new ZC.CF(r.C,r.iX-ZC.AP.E4,r.iY-ZC.AP.E5,r.A.E["z-start"]||0),l.iX=ZC._x_(o.ED[0]),l.iY=ZC._x_(o.ED[1]),r.E["3dxy"]=[l.iX,l.iY]):(l.iX=ZC._x_(r.iX),l.iY=ZC._x_(r.iY)),l.B7=r.A.BP[3],l.BX=r.A.BP[3],l.A0=r.A.BP[2],"bubble"===r.A.AF||"hbubble"===r.A.AF?l.AE=r.A.BP[1]:l.AE=r.A.BP[2],l.append(r.A.A2.o),null!==ZC._n_(r.E["marker.size"])&&(l.AI=r.E["marker.size"]),l.E.plotidx=r.A.L,l.E.nodeidx=r.L,"none"!==r.A.J0&&(r.C.IW[r.A.L]||r.C.KJ))if(r.C.CD["p"+r.A.L]&&r.C.CD["p"+r.A.L]["n"+r.L]){if(l.LO={},r.A.PM&&ZC._cp_(r.A.PM.o,l.LO),l.LO.rules){var x=new ZC.DQ(r.A);x.o=l.LO,x.parse(),x.J5=function(e){return r.J5(e)},x.DF()&&(l.LO=x.o)}}else"none"!==r.A.O3&&("plot"===r.A.O3&&r.C.IW[r.A.L]||"graph"===r.A.O3&&r.C.KJ)&&(l.LO=r.A.PK?r.A.PK.o:{});null!==ZC._n_(t=r.A.o.marker)&&null!==ZC._n_(t.styles)&&null!==ZC._n_(n=t.styles[r.L])&&("string"==typeof n?l.append({"background-color":ZC.AQ.R0(n,20),"line-color":ZC.AQ.JO(n,20),"border-color":ZC.AQ.JO(n,20)}):l.append(n)),l.parse(),l.J5=function(e){return r.J5(e)},l.DF()&&l.parse()}if(r.E["marker.size"]=ZC.BQ(2.02,r.E["marker.size"]||l.AI),l.DG=A,!(e||ZC.DP(l.iX,r.C.P.iX-2,r.C.P.iX+r.C.P.I+2)&&ZC.DP(l.iY,r.C.P.iY-2,r.C.P.iY+r.C.P.F+2)))return;if(l.HW&&(r.A.YK=!1,l.H4(l,l,null,r.M0(null,!1)),l.parse()),r.L5=l,l.AN&&"none"!==l.AF){var w=function(){if(r.A.bBS||r.N7(ZC.Q.EC(r.A.CQ("bl",0),r.H.AC)),r.E["marker.type"]=l.DV,r.A.FU&&-1===ZC.AV(r.H.KP,"skip_marker_tracking")&&!zingchart.DEV.SKIPTRACKERS){var e=r.E["3dxy"]?r.E["3dxy"][0]:r.iX,i=r.E["3dxy"]?r.E["3dxy"][1]:r.iY,t=parseInt(e+l.BK+ZC.MAPTX,10),n=parseInt(i+l.BI+ZC.MAPTX,10),a=parseInt(ZC.BQ(ZC.mobile?6:3,r.E["marker.size"]+1)*(ZC.mobile?1.25:1.05),10),o=!0;if("undefined"!=typeof r.A.aLastMarkerXY)Math.sqrt((t-r.A.aLastMarkerXY[0])*(t-r.A.aLastMarkerXY[0])+(n-r.A.aLastMarkerXY[1])*(n-r.A.aLastMarkerXY[1]))'):r.A.A.HE.push(ZC.Q.FS("circle",r.A.EA,r.A.IK)+'class="'+A+'" '+r.a11y()+' id="'+r.K+'--marker" coords="'+t+","+n+","+a+'" />'))}if(r.A.U&&(r.A.E.vboxid=r.K,r.GY()),!r.A.bBS&&r.C.B9&&r.C.B9.HZ&&r.A.QQ&&r.C.B9.AN){var s=r.C.P,C=r.C.B9,c=C.AT,u=r.A.HF||l,p=new ZC.DQ(r.A);p.copy(u);var Z=(r.iX-s.iX)/s.I,h=(r.iY-s.iY)/s.F,d=Math.min(c.F/s.F,c.I/s.I);p.iX=c.iX+c.AU+Z*(c.I-2*c.AU),p.iY=c.iY+c.AU+h*(c.F-2*c.AU),p.K=r.K+"-marker-preview",p.DG=r.A.K+"-preview";var f=u.AI;null!==ZC._n_(r.E["marker.size"])&&(f=r.E["marker.size"]),p.AI=ZC.BQ(2.02,.9*d*f),p.Z=p.C7=C.Z,p.parse(),p.paint()}},y=!1;if((!r.A.bBS||"radar"===r.A.AF&&"dots"===r.A.CW)&&(y=!0),r.A.GE&&y&&!r.C.HJ){var L=l,Y={},X=l.C5,M=l.AI,O=l.iX,P=l.iY;L.iX=O,L.iY=P,Y.x=O,Y.y=P;var H,N=r.A.LA,G=r.C.P;for(H in L.C5=0,Y.alpha=X,3===N?(L.AI=2,Y.size=M):8===N?(L.iX=O-G.iX,Y.x=O):9===N?(L.iX=O+G.iX,Y.x=O):10===N?(L.iY=P-G.iY,Y.y=P):11===N&&(L.iY=P+G.iY,Y.y=P),r.A.FY)L[ZC.E6.GM[ZC.EF(H)]]=r.A.FY[H],Y[ZC.EF(H)]=r.O[ZC.E6.GM[ZC.EF(H)]];if(null===ZC._n_(r.C.EO)&&(r.C.EO={}),null!==ZC._n_(r.C.EO[r.A.L+"-"+r.L]))for(H in r.C.EO[r.A.L+"-"+r.L])L[ZC.E6.GM[ZC.EF(H)]]=r.C.EO[r.A.L+"-"+r.L][H];r.C.EO[r.A.L+"-"+r.L]={},ZC._cp_(Y,r.C.EO[r.A.L+"-"+r.L]);var Q=new ZC.E6(L,Y,r.A.JG,r.A.L8,ZC.E6.RL[r.A.LB],function(){w()});Q.AX=r,Q.OC=function(){r.N7(ZC.Q.EC(r.A.CQ("bl",0),r.H.AC))},r.LS(Q)}else{var k="circle"===l.DV?"circle":"path";if(r.A.HK){var R=function(i,t){var n=i.cloneNode(!1),a=r.iX,o=r.iY;if(e){var s=new ZC.CF(r.C,a-ZC.AP.E4,o-ZC.AP.E5,r.A.E["z-start"]||0);a=ZC._x_(s.ED[0]),o=ZC._x_(s.ED[1]),r.E["3dxy"]=[a,o]}n.setAttribute("transform","translate("+ZC._i_(a-l.iX)+","+ZC._i_(o-l.iY)+") "+(n.getAttribute("transform")||"")),n.setAttribute("id",t),"bubble"!==r.A.AF&&"hbubble"!==r.A.AF||n.setAttribute("r",r.E["marker.size"]),i.parentNode.appendChild(n)};l.MA&&R(r.A.RC,r.K+"-marker-sh-"+k),R(r.A.HK,r.K+"-marker-"+k),l.DB&&R(r.A.QA,r.K+"-marker-imgfill")}else{l.paint();var z=l.A0!==l.AE;if(!r.C.IW[r.A.L]&&r.A.YK&&!z)if("svg"===r.H.AC){if(-1===ZC.AV(["pie","square","rect","rectangle","cross","plus","custom"],l.DV))if(r.A.HF=l,zingchart.DEV.DOMFRAGMENTS&&document.querySelector){for(var T in r.H.G3)r.A.HK||(r.A.HK=r.H.G3[T].querySelector("#"+r.K+"-marker-"+k)),l.MA&&!r.A.RC&&(r.A.RC=r.H.G3[T].querySelector("#"+r.K+"-marker-sh-"+k)),l.DB&&!r.A.QA&&(r.A.QA=r.H.G3[T].querySelector("#"+r.K+"-marker-imgfill")||r.H.G3[T].querySelector("#"+r.K+"-marker-path-imgfill"));r.A.HK||(r.A.HK=ZC.AL(r.K+"-marker-"+k),l.MA&&(r.A.RC=ZC.AL(r.K+"-marker-sh-"+k)),l.DB&&(r.A.QA=ZC.AL(r.K+"-marker-imgfill")))}else r.A.HK=ZC.AL(r.K+"-marker-"+k),l.MA&&(r.A.RC=ZC.AL(r.K+"-marker-sh-"+k)),l.DB&&(r.A.QA=ZC.AL(r.K+"-marker-imgfill")||ZC.AL(r.K+"-marker-path-imgfill"))}else"bubble"!==r.A.AF&&"hbubble"!==r.A.AF&&(e||(r.A.HF=l))}"svg"===r.H.AC&&r.A.applyJsRuleSvg(r.A.A2,r.K+"-marker-"+k,r.M0()),w()}}else r.A.U&&r.GY()}else r.A.U&&r.GY()}}}},LS:function(e,i){var t,n=this,a=n.C.LV,l=a.PH,o=n.A.TK;switch(o){default:i&&a.add(i),a.add(e);break;case 1:case 2:case 3:if(i){var r="all";if(1===o?r="plots-group-"+n.L+"-area":2===o&&(r="nodes-group-"+n.A.L+"-area"),null===ZC._n_(l[r])){var s=new ZC.VL(r);a.AA8(s,i.XA)}l[r].add(i)}if(t="all",1===o?t="plots-group-"+n.L:2===o&&(t="nodes-group-"+n.A.L),null===ZC._n_(l[t])){var C=new ZC.VL(t);a.AA8(C,e.XA)}l[t].add(e)}},TZ:function(e){var i=this;i.A.GV&&i.A.bXY&&(i.T6(),e&&("scatter"!==i.A.AF&&"hscatter"!==i.A.AF&&"bubble"!==i.A.AF&&"hbubble"!==i.A.AF||i.paint(!0)));var t=i.A.BP;i.M8({layer:e,type:"shape",id:"marker",marker:!0,initcb:function(){this.DV=i.E["marker.type"],this.iX=i.iX,this.iY=i.iY,"bubble"===i.A.AF||"hbubble"===i.A.AF?(this.AE=t[3],this.A0=t[2]):(this.B7=t[3],this.BX=t[3],this.A0=t[2],this.AE=t[1]),this.AI=i.E["marker.size"]}})},A1W:function(e){var i=this;i.M8({layer:e,type:"line",id:"line",initcb:function(){this.B7=i.A.BP[3]}})},M8:function(e){if(!ZC.move){var i,t,n,a,l,o,r=this,s=e.layer||"hover",C=e.id||"",A=!1;switch(r.GJ=null,null!==ZC._n_(i=e.marker)&&(A=ZC._b_(i)),s){case"hover":null!==ZC._n_(r.C.CD["p"+r.A.L])&&null!==ZC._n_(r.C.CD["p"+r.A.L]["n"+r.L])||(n=A?r.A.GA:r.A.IH,a="hover");break;case"highlight":n=A?r.A.V0:r.A.S6,a="hover"}if(null!==ZC._n_(e.state)&&(n=e.state),n&&r.C.E["plot"+r.A.L+".visible"]&&n.AN){switch(e.type){case"box":(o=new ZC.HQ(r.A)).PU=!0;break;case"line":o=new ZC.DQ(r.A),l=ZC.Q.EC(r.C.K+"-"+a+"-c",r.H.AC),o.D0=!1;break;case"shape":o=new ZC.DQ(r.A);break;case"area":o=new ZC.DQ(r.A),l=ZC.Q.EC(r.C.K+"-"+a+"-c",r.H.AC)}if(A&&(o.E["p-width"]=r.A.B0.AB,o.E["p-height"]=r.A.CN.AB),zingchart.DEV.PLOTSHLAYER&&"hover"===a?o.Z=o.C7=ZC.AL(r.C.K+"-plots-hover-c"):o.Z=o.C7=ZC.AL(r.C.K+"-"+a+"-c"),o.K=r.K+"-"+(""!==C?C+"-":"")+s,o.E.plotidx=r.A.L,o.E.nodeidx=r.L,"hover"!==s&&(o.A1Z=!0),e.initcb&&e.initcb.call(o),o.append(n.o),e.parsecb&&e.parsecb.call(o),"hover"===s&&null!==ZC._n_(i=r.A.o)&&null!==ZC._n_(i.styles)&&null!==ZC._n_(t=i.styles[r.L])&&("string"==typeof t?o.append({"background-color":t,"line-color":t,"border-color":t}):o.append(t)),null!==ZC._n_(i=r.A.o[s+"-state"])&&null!==ZC._n_(i.styles)&&null!==ZC._n_(t=i.styles[r.L])&&("string"==typeof t?o.append({"background-color":t,"line-color":t,"border-color":t}):o.append(t)),r.A.HW&&r.H4(o,s),"hover"===s&&r.A.A2&&r.A.A2.HW&&(r.A.A2.H4(r.A.A2,o,null,r.M0(null,!1)),o.parse()),o.parse(),o.J5=function(e){return r.J5(e)},o.DF()&&o.parse(),o.AN){switch(e.setupcb&&e.setupcb.call(o),e.type){case"box":case"shape":o.locate(2),o.paint();break;case"line":ZC.CR.setup(l,o),"plot"===r.A.A3J?ZC.CR.paint(l,o,r.A.UZ):ZC.CR.paint(l,o,r.getNodeData("points"));break;case"area":"spline"!==r.A.CW&&(null!==ZC._n_(i=n.o["alpha-area"])&&(o.C5=ZC._f_(i)),ZC.CR.setup(l,o),o.paint())}r.GJ=o}}}},N7:function(){},setup:function(){},A12:function(){},LJ:function(){var e=this;ZC.Q.EV([e.K+"-hover-gradient",e.K+"-marker-hover-gradient",e.H.K+"-tooltip-text-gradient",e.H.K+"-tooltip-text-sh-gradient"])},M0:function(e,i){var t=this;void 0===i&&(i=!0);var n=!1;"none"!==t.A.J0&&t.C.CD&&t.C.CD["p"+t.A.L]&&t.C.CD["p"+t.A.L]["n"+t.L]&&(n=!0);var a={id:t.C.A.K,graphid:t.C.K,graphindex:t.C.L,plotid:t.A.H6,plotindex:t.A.L,nodeindex:t.L,key:null===t.BV?t.L:t.BV,scaleval:t.A.B0?t.A.B0.V[null===t.BV?t.L:t.BV]:null,scaletext:t.A.B0?t.A.B0.FQ(t.L,null===t.BV?null:t.A):null,value:t.AD,text:i?t.JX(t.A.J7):t.A.J7,ev:e?ZC.A5.C1(e):null,x:t.iX,y:t.iY,width:t.I,height:t.F,size:t.E["marker.size"]||1,selected:n};for(var l in t.A.K0)t.A.K0[l]instanceof Array?null!==ZC._n_(t.A.K0[l][t.L])&&(a["data-"+l]=t.A.K0[l][t.L]):a["data-"+l]=t.A.K0[l];return a},X4:function(e,i){ZC.AQ.C0("node_"+i,this.H,this.M0(e))}};ZC.LI=ZC.DN.CC(LI),ZC.A30=ZC.LI.CC({setup:function(){this.T6()},ABF:function(){return{color:this.A.GV?this.A.B7:this.O.B7}},Y3:function(){return{"background-color":this.O.B7,"border-color":this.O.B7,color:this.O.C2}},getTooltipPosition:function(e,i){return this.b(e,i,this.L5.AI)},paint:function(e){var i=this;void 0===e&&(e=!1),i.b();var t=i.A.NE,n=i.A.O8,a=i.A.B0,l=i.A.R;if(i.setup(),!i.A.GV||i.C.AJ["3d"]||i.A.FU){i.O.D0=i.D0=!1,i.O.C7=i.A.CQ("bl",0);var o=[],r=i.A.CW;(i.C.OA||i.A.U4)&&"spline"===i.A.CW&&(r="segmented");var s="undefined"!=typeof i.A.GB?i.A.GB:i.A.Y,C="undefined"!=typeof i.A.HH?i.A.HH:i.A.Y,A=!0,c=!0;(null===ZC._n_(l[i.L-s])||"log"!==a.BT&&!a.EG&&i.L<=a.W)&&(A=!1);var u,p,Z,h,d=i.A.LR?i.A.R.length:a.A1;switch((null===ZC._n_(l[i.L+C])||"log"!==a.BT&&!a.EG&&i.L>=d)&&(c=!1),r){default:A&&(i.A.FK(i.L-s,0).setup(),i.A.UT&&(u=ZC.AO.JW(i.A.R[i.L-s].iX,i.A.R[i.L-s].iY,i.A.R[i.L].iX,i.A.R[i.L].iY),o.push(u))),o.push([i.iX,i.iY]),c&&(i.A.FK(i.L+C,2).setup(),u=i.A.UT?ZC.AO.JW(i.A.R[i.L].iX,i.A.R[i.L].iY,i.A.R[i.L+C].iX,i.A.R[i.L+C].iY,i.O.C5):[l[i.L+C].iX,l[i.L+C].iY],o.push(u));break;case"spline":if(i.A.D&&(o=i.A.D),i.A.D=[],l[i.L+1]){var f=[],_=[];for(p=-1;p<3;p++)l[i.L+p]?(i.A.FK(i.L+p,2).setup(),t?(f.push(l[i.L+p].iX),_.push(l[i.L+p].iY)):(f.push(l[i.L+p].iY),_.push(l[i.L+p].iX))):0===f.length?t?(_.push(i.iY),f.push(i.iX)):(_.push(i.iX),f.push(i.iY)):(f.push(f[f.length-1]),_.push(_[_.length-1]));var g=ZC._a_(_[2]-_[1]);g=Math.min(g,Math.max(i.C.I,i.C.F));var v=ZC.AO.YC(i.A.QD,f,g);if(i.A.UT){for(p=0;p1&&(m.D=D,E.points=o);for(h in i.A.FY)m[ZC.E6.GM[ZC.EF(h)]]=i.A.FY[h],E[ZC.EF(h)]=b[ZC.E6.GM[ZC.EF(h)]];if(i.C.EO||(i.C.EO={}),null!==ZC._n_(i.C.EO[i.A.L+"-"+i.L]))for(h in i.C.EO[i.A.L+"-"+i.L])m[ZC.E6.GM[ZC.EF(h)]]=i.C.EO[i.A.L+"-"+i.L][h];i.C.EO[i.A.L+"-"+i.L]={},ZC._cp_(E,i.C.EO[i.A.L+"-"+i.L]);var I=new ZC.E6(m,E,i.A.JG,i.A.L8,ZC.E6.RL[i.A.LB],function(){x()});I.AX=i,I.OC=function(){i.N7(ZC.Q.EC(i.A.CQ("bl",1),i.H.AC))},I.HU=n,i.LS(I)}else ZC.CR.paint(n,b,o),x()}}function x(){!i.C.OA&&ZC.DP(i.iX,a.iX-1,a.iX+a.I+1)&&ZC.DP(i.iY,a.iY-1,a.iY+a.F+1)&&(i.PF(),i.N7(ZC.Q.EC(i.A.CQ("bl",1),i.H.AC)),i.A.U&&i.A.U.AN&&i.A.E.vboxid!==i.K&&i.GY())}},paintPreview:function(e,i){var t=this;if(t.C.B9&&t.C.B9.HZ&&t.A.QQ){var n,a=t.A.mapPointsToPreview(i);t.A.VU?n=t.A.VU:(n=new ZC.CZ(t),t.A.VU=n),n.copy(e),n.K=t.K+"-line-preview",n.DG=t.A.K+"-preview";var l=ZC.Q.EC(t.C.B9.Z,t.H.AC);n.B1=1;var o=t.o["preview-state"];o&&(n.append(o),n.parse()),ZC.CR.paint(l,n,a,null,3)}},A12:function(e){var i=this;ZC.move||(i.A1W(e),i.A.R5&&i.TZ(e))}}),ZC.A31=ZC.LI.CC({setup:function(){this.T6()},ABF:function(){return{color:this.A.GV?this.A.B7:this.O.B7}},Y3:function(){return{"background-color":this.O.B7,"border-color":this.O.B7,color:this.O.C2}},getTooltipPosition:function(e,i){return this.b(e,i,this.L5.AI)},paint:function(e){var i,t,n,a,l,o,r,s,C=this;void 0===e&&(e=!1),C.b();var A=C.A.NE,c=C.A.O8,u=C.A.B0,p=C.A.CN,Z=C.A.R;if(C.setup(),!C.A.GV||C.C.AJ["3d"]||C.A.FU){C.O.D0=C.D0=!1,C.O.C7=C.A.CQ("bl",1);var h=p.H9,d=p.AR(h);d=A?ZC._l_(d,p.iX,p.iY+p.I):ZC._l_(d,p.iY,p.iY+p.F);var f=u.DE?u.AB/2:0,_=[],g=[],v=[],b=null;null!==ZC._n_(C.A.A.F2)&&null!==ZC._n_(C.A.A.F2[C.L])&&(b=C.A.A.F2[C.L]);var B=C.A.CW;(C.C.OA||C.A.U4)&&"spline"===C.A.CW&&(B="segmented"),t=C.O.B1/2-1,n="svg"===C.H.AC&&ZC.mobile?C.O.HO/4:0,"vml"===C.H.AC&&C.A.GE&&(n=.5),C.C.AJ["3d"]&&(1===C.A.HO?n=1:(n=C.A.HO/3,"canvas"===C.H.AC&&(ZC.A5.browser.msie||ZC.A5.browser.opera)&&(n=.5)),u.AW&&(n=-n));var m,E="undefined"!=typeof C.A.GB?C.A.GB:C.A.Y,D="undefined"!=typeof C.A.HH?C.A.HH:C.A.Y,F=!0,K=!0;(!Z[C.L-E]||"log"!==u.BT&&!u.EG&&C.L<=u.W)&&(F=!1);var I=C.A.LR?C.A.R.length:u.A1;switch((!Z[C.L+D]||"log"!==u.BT&&!u.EG&&C.L>=I)&&(K=!1),B){default:if(F)C.A.FK(C.L-E,0).setup(),C.A.UT?(l=ZC.AO.JW(Z[C.L-E].iX,Z[C.L-E].iY,Z[C.L].iX,Z[C.L].iY),v.push([ZC._i_(l[0])-n,l[1]-t]),C.A.CE&&null!==ZC._n_(b)||g.push([ZC._i_(l[0])-n,d]),g.push([ZC._i_(l[0])-n,l[1]+t]),_.push([l[0],l[1]])):g.push([ZC._i_(C.iX),d]);else if(u.EG||C.L!==u.W)C.A.CE&&null!==ZC._n_(b)?(m=C.A.A.A3[C.A.L-1])&&m.R[C.L]&&g.push([ZC._i_(C.iX),m.R[C.L].iY+t]):(g.push([ZC._i_(C.iX),d]),v.push([ZC._i_(C.iX-u.AB/2),d]),v.push([ZC._i_(C.iX),d]));else if(u.AW)C.A.CE&&null!==ZC._n_(b)||g.push([ZC._i_(u.iX+u.I-u.BS-f),d]),g.push([ZC._i_(u.iX+u.I-u.BS-f),C.iY+t]);else{var x=ZC._i_(u.iX+u.A9+f);C.A.LR&&(x=u.IE(C.A.R6)-u.AB/2),C.A.CE&&null!==ZC._n_(b)||g.push([x,d]),g.push([x,C.iY+t])}v.push([ZC._i_(C.iX),C.iY-t]),g.push([ZC._i_(C.iX),C.iY+t]),_.push([C.iX,C.iY]),K?(C.A.FK(C.L+D,2).setup(),a=C.A.UT?ZC.AO.JW(Z[C.L].iX,Z[C.L].iY,Z[C.L+D].iX,Z[C.L+D].iY):[Z[C.L+D].iX,Z[C.L+D].iY],v.push([ZC._i_(a[0]),a[1]-t]),g.push([ZC._i_(a[0]),a[1]+t]),C.A.CE&&null!==ZC._n_(b)||g.push([ZC._i_(a[0]),d]),l=C.A.UT?ZC.AO.JW(Z[C.L].iX,Z[C.L].iY,Z[C.L+D].iX,Z[C.L+D].iY,C.O.C5):[Z[C.L+D].iX,Z[C.L+D].iY],_.push([l[0],l[1]])):C.L===u.A1?u.AW?(g.push([u.iX+u.A9-f,C.iY+t]),C.A.CE&&null!==ZC._n_(b)||g.push([ZC._i_(u.iX+u.A9-f),d])):(g.push([u.iX+u.I-u.BS-f,C.iY+t]),C.A.CE&&null!==ZC._n_(b)||g.push([ZC._i_(u.iX+u.I-u.BS-f),d])):C.A.CE&&null!==ZC._n_(b)?(m=C.A.A.A3[C.A.L-1])&&m.R[C.L]&&g.push([ZC._i_(C.iX),m.R[C.L].iY+t]):(g.push([ZC._i_(C.iX),d]),v.push([ZC._i_(C.iX),d]),v.push([ZC._i_(C.iX+u.AB/2),d]));break;case"spline":if(null!==ZC._n_(C.A.D8)&&(v=C.A.D8),null!==ZC._n_(C.A.AH)&&(g=C.A.AH),C.A.D8=[],C.A.AH=[],null!==ZC._n_(C.A.D)&&(_=C.A.D),C.A.D=[],Z[C.L+1]){var w=[],y=[];for(o=-1;o<3;o++)Z[C.L+o]?(C.A.FK(C.L+o,2).setup(),A?(w.push(Z[C.L+o].iX),y.push(Z[C.L+o].iY)):(w.push(Z[C.L+o].iY),y.push(Z[C.L+o].iX))):0===w.length?A?(y.push(C.iY),w.push(C.iX)):(y.push(C.iX),w.push(C.iY)):(w.push(w[w.length-1]),y.push(y[y.length-1]));var L=ZC._a_(y[2]-y[1]);L=Math.min(L,Math.max(C.C.I,C.C.F));var Y=ZC.AO.YC(C.A.QD,w,L);if(C.A.UT){for(0===g.length&&(C.A.CE&&null!==ZC._n_(b)||g.push([ZC._i_(C.iX+(u.AW?-1:1)*Y[0][0]*L),d])),o=0;o0&&g.push([g[g.length-1][0],d]);break;case"stepped":if(F)switch(C.A.FK(C.L-E,0).setup(),l=ZC.AO.JW(Z[C.L-E].iX,Z[C.L-E].iY,Z[C.L].iX,Z[C.L].iY),C.A.SM){default:v.push([ZC._i_(l[0])-n,C.iY-t]),C.A.CE&&null!==ZC._n_(b)||g.push([ZC._i_(l[0])-n,d]),g.push([ZC._i_(l[0])-n,C.iY+t]),_.push(A?[Z[C.L-E].iX,l[1]]:[l[0],Z[C.L-E].iY]),_.push(A?[C.iX,l[1]]:[l[0],C.iY]);break;case"before":v.push([ZC._i_(Z[C.L-E].iX)-n,C.iY-t]),C.A.CE&&null!==ZC._n_(b)||g.push([ZC._i_(Z[C.L-E].iX)-n,d]),g.push([ZC._i_(Z[C.L-E].iX)-n,C.iY+t]),_.push([Z[C.L-E].iX,Z[C.L-E].iY]),_.push([Z[C.L-E].iX,C.iY]);break;case"after":v.push([ZC._i_(C.iX)-n,C.iY-t]),C.A.CE&&null!==ZC._n_(b)||g.push([ZC._i_(C.iX)-n,d]),g.push([ZC._i_(C.iX)-n,C.iY+t])}else u.EG||C.L!==u.W?C.A.CE&&null!==ZC._n_(b)?(m=C.A.A.A3[C.A.L-1])&&m.R[C.L]&&g.push([ZC._i_(C.iX),m.R[C.L].iY+t]):(g.push([ZC._i_(C.iX),d]),v.push([ZC._i_(C.iX-u.AB/2),d]),v.push([ZC._i_(C.iX),d])):u.AW?(C.A.CE&&null!==ZC._n_(b)||g.push([ZC._i_(u.iX+u.I-u.BS-f),d]),g.push([ZC._i_(u.iX+u.I-u.BS-f),C.iY+t])):(C.A.CE&&null!==ZC._n_(b)||g.push([ZC._i_(u.iX+u.A9+f),d]),g.push([ZC._i_(u.iX+u.A9+f),C.iY+t]));if(v.push([ZC._i_(C.iX),C.iY-t]),g.push([ZC._i_(C.iX),C.iY+t]),_.push([C.iX,C.iY]),K)switch(C.A.FK(C.L+D,2).setup(),l=ZC.AO.JW(Z[C.L].iX,Z[C.L].iY,Z[C.L+D].iX,Z[C.L+D].iY,C.O.C5),C.A.SM){default:v.push([ZC._i_(l[0]),C.iY-t]),g.push([ZC._i_(l[0]),C.iY+t]),C.A.CE&&null!==ZC._n_(b)||g.push([ZC._i_(l[0]),d]),_.push(A?[C.iX,l[1]]:[l[0],C.iY]);break;case"before":v.push([ZC._i_(C.iX),C.iY-t]),g.push([ZC._i_(C.iX),C.iY+t]),C.A.CE&&null!==ZC._n_(b)||g.push([ZC._i_(C.iX),d]);break;case"after":v.push([ZC._i_(Z[C.L+D].iX),C.iY-t]),g.push([ZC._i_(Z[C.L+D].iX),C.iY+t]),C.A.CE&&null!==ZC._n_(b)||g.push([ZC._i_(Z[C.L+D].iX),d]),_.push([Z[C.L+D].iX,C.iY]),_.push([Z[C.L+D].iX,Z[C.L+D].iY])}else C.L===u.A1?u.AW?(g.push([u.iX+u.A9-f,C.iY+t]),C.A.CE&&null!==ZC._n_(b)||g.push([ZC._i_(u.iX+u.A9-f),d])):(g.push([u.iX+u.I-u.BS-f,C.iY+t]),C.A.CE&&null!==ZC._n_(b)||g.push([ZC._i_(u.iX+u.I-u.BS-f),d])):C.A.CE&&null!==ZC._n_(b)?(m=C.A.A.A3[C.A.L-1])&&m.R[C.L]&&g.push([ZC._i_(C.iX),m.R[C.L].iY+t]):(g.push([ZC._i_(C.iX),d]),v.push([ZC._i_(C.iX),d]),v.push([ZC._i_(C.iX+u.AB/2),d]))}if(C.A.CE&&null!==ZC._n_(b))for(o=b.length-1;o>=0;o--)g.push(b[o]);if(C.setNodeData({points:_,pointsarea:g}),"ready"!==C.C.MD&&(C.A.UZ=C.A.UZ.concat(_)),null===ZC._n_(C.A.A.F2)&&(C.A.A.F2=[]),C.A.A.F2[C.L]=v,!e&&!C.C.AJ["3d"]){var X=C.O=C.A.IG(C,C.O),M=C.C.K+"-node-area "+C.C.K+"-plotset-plot-"+C.A.L+"-node-area zc-node-area";X.DG=M,X.K=C.K,C.A.HW&&C.H4(X);var O,P=C.C.P;if(0!==C.A.E7.length||C.A.HW||"undefined"==typeof C.A.A9J||C.O.o.override||C.C.KJ?((O=new ZC.DQ(C.A)).copy(X),O.C5=C.A.HO):O=C.A.A9J,C.H4(O),O.C5=ZC._f_(O.o["alpha-area"]||"1"),O.D0=!1,O.L7=!0,O.B1=0,O.AU=0,O.ET=0,O.G2=0,O.Z=C.A.CQ("bl",C.C.CE?0:1),O.D=g,O.D2=[P.iX,P.iY,P.iX+P.I,P.iY+P.F],null!==ZC._n_(i=C.A.E["min-y"])&&(O.E["bound-1"]=i,O.D2[1]=i),null!==ZC._n_(i=C.A.E["max-y"])&&(O.E["bound-3"]=i,O.D2[3]=i),O.K=C.K+"-area",C.A.GE||(O.E.areanode=!0),ZC.CR.setup(c,X),C.paintPreview(X,_,g),C.A.GE&&!C.C.HJ){var H=new ZC.DQ(C),N={};H.copy(X),H.K=C.K,H.Z=C.A.CQ("bl",2),H.C7=C.A.CQ("bl",1),H.D=_;var G=O,Q={},k=[],R=[];H.D=_,N.points=_,G.D=g,Q.points=g;var z=C.A.LA,T=C.C.P;H.C5=0,N.alpha=X.C5,G.C5=0,Q.alpha=C.A.HO;var V,S=function(e){for(var i=e?g:_,t=e?R:k,n=0;n1&&(e?(G.D=R,Q.points=g):(H.D=k,N.points=_))};for(V in S(),S(!0),C.A.FY)H[ZC.E6.GM[ZC.EF(V)]]=C.A.FY[V],N[ZC.EF(V)]=X[ZC.E6.GM[ZC.EF(V)]],G[ZC.E6.GM[ZC.EF(V)]]=C.A.FY[V],Q[ZC.EF(V)]=X[ZC.E6.GM[ZC.EF(V)]];if(null===ZC._n_(C.C.EO)&&(C.C.EO={}),null===ZC._n_(C.C.SS)&&(C.C.SS={}),null!==ZC._n_(C.C.EO[C.A.L+"-"+C.L])){for(V in C.C.EO[C.A.L+"-"+C.L])H[ZC.E6.GM[ZC.EF(V)]]=C.C.EO[C.A.L+"-"+C.L][V];for(V in C.C.SS[C.A.L+"-"+C.L])G[ZC.E6.GM[ZC.EF(V)]]=C.C.SS[C.A.L+"-"+C.L][V]}C.C.EO[C.A.L+"-"+C.L]={},ZC._cp_(N,C.C.EO[C.A.L+"-"+C.L]),C.C.SS[C.A.L+"-"+C.L]={},ZC._cp_(Q,C.C.SS[C.A.L+"-"+C.L]);var J=new ZC.E6(H,N,C.A.JG,C.A.L8,ZC.E6.RL[C.A.LB],function(){U()});J.AX=C,J.OC=function(){C.N7(ZC.Q.EC(C.A.CQ("bl",1),C.H.AC))},J.HU=c;var W=new ZC.E6(G,Q,C.A.JG,C.A.L8,ZC.E6.RL[C.A.LB],function(){});W.AX=C,C.LS(J,W)}else O.paint(),0!==C.A.E7.length||"undefined"!=typeof C.A.A9J||C.O.o.override||C.C.KJ||C.C.HJ||(C.A.A9J=O),ZC.CR.paint(c,X,_),U()}}function U(){!C.C.OA&&ZC.DP(C.iX,u.iX-1,u.iX+u.I+1)&&ZC.DP(C.iY,u.iY-1,u.iY+u.F+1)&&(C.PF(),C.N7(ZC.Q.EC(C.A.CQ("bl",1),C.H.AC)),C.A.U&&C.A.U.AN&&C.A.E.vboxid!==C.K&&C.GY())}},paintPreview:function(e,i,t){var n=this;if(n.C.B9&&n.C.B9.HZ&&n.A.QQ){var a,l=n.C.P,o=n.C.B9,r=n.A.mapPointsToPreview(t),s=new ZC.DQ(n.A);s.copy(e),s.D0=!0,s.L7=!0,s.B1=0,s.AU=0,s.ET=0,s.G2=0,s.C5=n.A.HO,s.D2=[l.iX,l.iY,l.iX+l.I,l.iY+l.F],s.K=n.K+"-area-preview",s.DG=n.A.K+"-preview",s.Z=o.Z;var C,A=n.A.o["preview-state"];A&&(null!==ZC._n_(A["alpha-area"])?(a=A.alpha,A.alpha=A["alpha-area"]):A.alpha=s.C5,s.append(A),s.parse(),null!==ZC._n_(a)?A.alpha=a:delete A.alpha),s.D=r,s.paint();var c=n.A.mapPointsToPreview(i);n.A.VU?C=n.A.VU:(C=new ZC.CZ(n),n.A.VU=C),C.copy(e),C.K=n.K+"-line-preview",C.DG=n.A.K+"-preview";var u=ZC.Q.EC(o.Z,n.H.AC);C.B1=1,A&&(C.append(A),C.parse()),ZC.CR.paint(u,C,c,null,3)}},A12:function(e){var i=this;ZC.move||(i.A.NE||i.M8({layer:e,type:"area",initcb:function(){this.A0=i.A.BP[2],this.AE=i.A.BP[2],this.D=i.getNodeData("pointsarea")||[]},setupcb:function(){this.B1=0,this.AU=0,this.C5=i.A.HO;var e=i.C.P;this.D2=[e.iX,e.iY,e.iX+e.I,e.iY+e.F]}}),i.A1W(e),i.A.R5&&i.TZ(e))}}),ZC.ZH=ZC.LI.CC({setup:function(){this.T6()},V4:function(){var e=this;e.paint(!0);var i=e.C.BM(e.A.BW("v")[0]);return[e.iX+e.I/2,e.iY+(i.AW?e.F:0),{reference:e,center:!0}]},AC7:function(e){var i=this,t="top-out",n=i.C.BM(i.A.BW("v")[0]),a=i.AD>=n.H9&&!n.AW||i.ADi.C.P.iY+i.C.P.F-o-5+p[2]&&(s=i.C.P.iY+i.C.P.F-o-5+p[2]-c)),[ZC._i_(r),ZC._i_(s)]},getPMap:function(){var e=this.b();return this.addPMap(e,"barWidth","I"),e},paint:function(e){var i,t=this;if(t.b(),!t.C.AJ["3d"]){void 0===e&&(e=!1);var n=t.A.B0,a=t.A.CN;t.setup();var l,o,r,s,C,A=a.H9,c=a.AR(A),u=t.A.SP(),p=u.AB,Z=u.EU,h=u.CG,d=u.CT,f=u.F4,_=u.D4,g=u.F0;if(e?Z=t.A.E["node-"+t.L+"-bar-index"]:t.A.E["node-"+t.L+"-bar-index"]=u.EU,t.A.CE){l=0;for(var v=t.A.A.KE[Z],b=0;b0){var K=_;(_=t.A.D4)<=1&&(_*=K),F+=(K-_)/2}var I=_,x=t.iY,w=null!==ZC._n_(t.A.LX[t.L])?t.A.LX[t.L]:0;if(x=t.A.CE&&"100%"===t.A.KR?a.AR(100*(t.CP+w)/t.A.A.F8[t.L]["%total-"+t.A.E0]):a.AR(t.CP+w),t.A.CE){o="100%"===t.A.KR?a.AR(100*(t.CP-t.AD+w)/t.A.A.F8[t.L]["%total-"+t.A.E0]):a.AR(t.CP-t.AD+w),x=ZC._i_(x),o=ZC._i_(o);var y=!a.AW&&t.AD>=0||a.AW&&t.AD<=0?-1:1,L=0,Y=0;""!==t.A.PW?(L=t.WW(t.A.PW)[0],Y=0):L=t.A.AU,""!==t.A.NP?(Y=t.WW(t.A.NP)[0],L=0):Y=t.A.AU,L!==Y&&(y=0),r=x-o+y*L,t.AD<0&&(x=o),a.AW?r>0&&(r=ZC._a_(r),x=o):r<0&&(r=ZC._a_(r),x=o-r),a.AW&&t.AD<0&&(r+=Y)}else o=a.AR(w),(r=x-o)<0?(r=ZC._a_(r),x=o-r):x=o;if(t.A.TP&&t.A.CE&&t.A.L>0&&t.A.A.A3[t.A.L-1].R[t.L]&&0===t.A.A.A3[t.A.L-1].R[t.L].AD&&(r-=1,x+=a.AW?1:-1),r<2&&(t.AD>0||t.A.TP)&&(r=1,a.AW?t.A.CE&&(t.A.L>0&&(x-=1),(0===t.A.L||t.AD>0&&t.AD===t.CP)&&(x+=1)):t.A.CE?(0===t.A.L||t.AD>0&&t.AD===t.CP)&&(x-=2):x=w?o-1:c-2),t.I=I,t.F=r,t.iX=F,t.iY=x,a.AW?t.AD>=a.H9?t.iYVal=x+t.F:t.iYVal=x:t.AD>=a.H9?t.iYVal=x:t.iYVal=x+t.F,t.C.CX){var X="middle";t.C.CX.o.marker&&null!==ZC._n_(i=t.C.CX.o.marker.alignment)&&(X=i),null!==ZC._n_(t.A.o["guide-marker"])&&null!==ZC._n_(i=t.A.o["guide-marker"].alignment)&&(X=i),"node"===X&&(t.E.A5N=t.iX+t.I/2)}if(!e){var M;t.setNodeData({x:F,y:x,w:I,h:r});var O=!0;if("none"!==t.A.J0||t.C.IW[t.A.L]||t.C.KJ||t.A.SZ&&t.A.SZ[t.L]?(M=t.O=t.A.IG(t,t.O),O=!1):M=t.O,(0!==t.A.E7.length||t.A.HW||t.O.o.override||t.C.KJ)&&(O=!1),t.AN){var P;switch(t.A.CW){default:0!==t.A.E7.length||t.A.HW||"undefined"==typeof t.A.TN||t.O.o.override||t.C.KJ?(P=new ZC.HQ(t.A)).copy(M):P=t.A.TN,t.A.HW&&(t.H4(P),P.parse()),P.FD=t.A.FD,P.K=t.K,P.iX=F,P.iY=x,P.I=t.I,P.F=t.F,n.AB<5&&P.I<5?(P.I=ZC.BQ(1,P.I)+1,P.N1=!1,P.D0=!1):P.N1=!0,P.I<5&&n.A1!==n.W&&t.C.P.I/(n.A1-n.W)<1&&(P.QS=!0);break;case"pyramid":case"cone":0!==t.A.E7.length||t.A.HW||"undefined"==typeof t.A.TN||t.O.o.override||t.C.KJ?(P=new ZC.DQ(t.A)).copy(M):P=t.A.TN,t.A.HW&&(t.H4(P),P.parse()),P.K=t.K,a.AW&&!t.A.CE?(C=t.AD>=0?0:t.F,s=t.AD>=0?t.F:0):(C=t.AD>=0?t.F:0,s=t.AD>=0?0:t.F),P.D=[],P.D.push([F+t.I/2-m*t.I/2,x+C],[F+t.I/2+m*t.I/2,x+C]),t.A.CE&&0!==E?P.D.push([F+t.I/2+E*t.I/2,x+s],[F+t.I/2-E*t.I/2,x+s]):P.D.push([F+t.I/2,x+s]),P.D.push([P.D[0][0],P.D[0][1]]),t.setNodeData({points:P.D}),P.iX=F,P.iY=x,P.locate(2)}P.Z=t.A.CQ("bl",1),P.C7=t.A.CQ("bl",0),t.paintPreview(M,O);var H=t.C.K+"-node-area "+t.C.K+"-plotset-plot-"+t.A.L+"-node-area zc-node-area";P.DG=H;var N=ZC._c_(t.A.o.tolerance,5),G=function(){if("undefined"!=typeof t.paint_&&t.paint_(),t.N7(ZC.Q.EC(P.Z,t.H.AC)),ZC.AO._boxoverlap2_(t,t.C.P,N)&&t.A.FU&&-1===ZC.AV(t.H.KP,"skip_segment_tracking")){var e=I<5?.5:-.5,i=r<3?.5:-.5,n=ZC.Q.FS("rect",t.A.EA,P.IK)+'class="'+H+'" '+t.a11y()+' id="'+t.K+'" coords="'+ZC._i_(F+t.A.BK+ZC.MAPTX-e)+","+ZC._i_(x+t.A.BI+ZC.MAPTX-i)+","+ZC._i_(F+t.A.BK+I+ZC.MAPTX+e)+","+ZC._i_(x+t.A.BI+r+ZC.MAPTX+i)+'" />';t.A.A.HE.push(n)}t.A.U&&t.A.U.AN&&t.GY()};if(t.A.GE&&!t.C.HJ){var Q=P,k={};Q.iX=F,Q.iY=x,Q.I=I,Q.F=r,k.x=F,k.y=x,k.width=I,k.height=r;var R,z=t.A.LA,T=t.C.P;for(R in Q.C5=0,k.alpha=M.C5,2===z?(Q.iY=T.iY+T.F/2,Q.F=1,k.height=t.F,k.y=x):3===z?(Q.iY=T.iY,Q.F=1,k.height=t.F,k.y=x):4===z?(Q.iY=T.iY+T.F,Q.F=1,k.height=t.F,k.y=x):5===z?(Q.iX=T.iX,Q.I=1,k.width=t.I,k.x=F):6===z?(Q.iX=T.iX+T.I,Q.I=1,k.width=t.I,k.x=F):7===z?(Q.iX=T.iX+T.I/2,Q.I=1,k.width=t.I,k.x=F):8===z?(Q.iX=F-T.I,k.x=F):9===z?(Q.iX=F+T.I,k.x=F):10===z?(Q.iY=x-T.F,k.y=x):11===z?(Q.iY=x+T.F,k.y=x):12===z?(Q.I=1,k.width=t.I):13===z&&(Q.F=1,k.height=t.F),t.A.FY)Q[ZC.E6.GM[ZC.EF(R)]]=t.A.FY[R],k[ZC.EF(R)]=M[ZC.E6.GM[ZC.EF(R)]];if(null===ZC._n_(t.C.EO)&&(t.C.EO={}),null!==ZC._n_(t.C.EO[t.A.L+"-"+t.L]))for(R in t.C.EO[t.A.L+"-"+t.L])Q[ZC.E6.GM[ZC.EF(R)]]=t.C.EO[t.A.L+"-"+t.L][R];if(t.C.EO[t.A.L+"-"+t.L]={},ZC._cp_(k,t.C.EO[t.A.L+"-"+t.L]),ZC.AO._boxoverlap2_(t,t.C.P,N)){var V=new ZC.E6(Q,k,t.A.JG,t.A.L8,ZC.E6.RL[t.A.LB],function(){G()});V.AX=t,V.OC=function(){t.N7(ZC.Q.EC(P.Z,t.H.AC))},t.LS(V)}}else{if(P.AN||0===t.A.E7.length&&!t.A.HW)if(t.A.W0||(t.A.W0={iX:P.iX,iY:P.iY,F:P.F}),t.A.A2L)if(t.A.SA)if(t.A.SA.el&&"RECT"===t.A.SA.el.tagName.toUpperCase()){var S=!1;if(t.A.N4&&t.A.W0&&ZC._a_(P.iX-t.A.W0.iX)<.75&&ZC._a_(P.iY-t.A.W0.iY)<1.5&&ZC._a_(P.F-t.A.W0.F)<1.5&&(S=!0),!S){t.A.W0={iX:P.iX,iY:P.iY,F:P.F};var J=t.A.SA.el.cloneNode(!1);J.setAttribute("id",t.K),J.setAttribute("x",t.iX),J.setAttribute("y",t.iY),J.setAttribute("height",t.F),t.A.SA.df?t.H.G3[P.Z.id].appendChild(J):t.A.SA.el.parentNode.appendChild(J)}}else P.paint();else P.paint(),t.A.SA={id:P.K+"-path"},zingchart.DEV.DOMFRAGMENTS&&document.querySelector&&t.H.G3&&t.H.G3[P.Z.id]?(t.A.SA.df=!0,t.A.SA.el=t.H.G3[P.Z.id].querySelector("#"+P.K+"-path")):(t.A.SA.df=!1,t.A.SA.el=ZC.AL(t.A.SA.id));else ZC.AO._boxoverlap2_(t,t.C.P,N)&&P.paint();P.AN&&G()}"svg"===t.H.AC&&t.A.applyJsRuleSvg(t.A,t.K+"-path",t.M0()),0!==t.A.E7.length||t.A.HW||"undefined"!=typeof t.A.TN||t.O.o.override||t.C.KJ||t.A.GE||(t.A.TN=P)}}}},paintPreview:function(e,i){var t,n,a=this;if(a.C.B9&&a.C.B9.HZ&&a.A.QQ){var l=a.C.P,o=a.C.B9,r=o.AT,s=(a.iX-l.iX)/l.I,C=(a.iY-l.iY)/l.F;a.A.VV?t=a.A.VV:(t=new ZC.HQ(a.A),a.A.VV=t,t.copy(e),(n=a.A.o["preview-state"])&&(t.append(n),t.parse())),i||(t.copy(e),(n=a.A.o["preview-state"])&&(t.append(n),t.parse())),t.K=a.K+"-preview",t.DG=a.A.K+"-preview",t.iX=r.iX+r.AU+s*(r.I-2*r.AU),t.iY=r.iY+r.AU+C*(r.F-2*r.AU),t.I=a.I/l.I*(r.I-2*r.AU),t.F=a.F/l.F*(r.F-2*r.AU),r.I/a.A.R.length<10?(t.I=t.I+.5,t.N1=!1,t.D0=!1):(t.N1=!0,t.D0=!0),t.Z=t.C7=o.Z,t.paint()}},A12:function(e){var i=this;if(e=e||"hover",!ZC.move){var t="";switch(i.A.CW){default:t="box";break;case"pyramid":t="shape"}i.M8({layer:e,type:t,initcb:function(){this.A0=i.A.BP[3],this.B7=i.A.BP[1],this.BX=i.A.BP[1],this.AE=i.A.BP[2]},setupcb:function(){switch(i.A.CW){default:this.iX=i.getNodeData("x"),this.iY=i.getNodeData("y"),this.I=i.getNodeData("w"),this.F=i.getNodeData("h");var e=i.C.P;this.iYe.iY+e.F&&(this.F=e.iY+e.F-this.iY);break;case"pyramid":case"cone":this.D=i.getNodeData("points")}}}),i.N7(ZC.Q.EC(i.C.K+"-hover-c",i.H.AC),!0),i.A.RO=null}}}),ZC.ZI=ZC.LI.CC({setup:function(){this.T6()},V4:function(){var e=this;e.paint(!0);var i=e.C.BM(e.A.BW("v")[0]);return[e.iX+(i.AW?0:e.I),e.iY+e.F/2,{reference:e,center:!0}]},AC7:function(e){var i=this,t="top-out",n=i.C.BM(i.A.BW("v")[0]),a=i.AD>=n.H9&&!n.AW||i.AD0){var E=h;(h=i.A.D4)<=1&&(h*=E),m+=(E-h)/2}var D=h,F=i.iX,K=null!==ZC._n_(i.A.LX[i.L])?i.A.LX[i.L]:0;if(F=i.A.CE&&"100%"===i.A.KR?n.AR(100*(i.CP+K)/i.A.A.F8[i.L]["%total-"+i.A.E0]):n.AR(i.CP+K),i.A.CE){l="100%"===i.A.KR?n.AR(100*(i.CP-i.AD+K)/i.A.A.F8[i.L]["%total-"+i.A.E0]):n.AR(i.CP-i.AD+K),F=ZC._i_(F),l=ZC._i_(l);var I=!n.AW&&i.AD>=0||n.AW&&i.AD<=0?1:-1,x=0,w=0;""!==i.A.OJ?(x=i.WW(i.A.OJ)[0],w=0):x=i.A.AU,""!==i.A.P9?(w=i.WW(i.A.P9)[0],x=0):w=i.A.AU,x!==w&&(I=0),o=F-l+I*x,i.AD>0?F=l:o=ZC._a_(o),n.AW?o>0?(o=ZC._a_(o),F=l):(o=ZC._a_(o),F-=o):o<0&&(o=ZC._a_(o),F=l-o)}else l=n.AR(K),(o=F-l)<0?(o=ZC._a_(o),F=l-o):F=l;if(i.A.TP&&i.A.CE&&i.A.L>0&&i.A.A.A3[i.A.L-1].R[i.L]&&0===i.A.A.A3[i.A.L-1].R[i.L].AD&&(o-=1,F+=n.AW?-1:1),o<1&&(i.AD>0||i.A.TP)&&(o=1,n.AW?i.A.CE?0===i.A.L&&(F-=1):F-=2:i.A.L>0&&i.A.CE&&(F-=1)),i.I=o,i.F=D,i.iX=F,i.iY=m,n.AW?i.AD>=n.H9?i.iXVal=F:i.iXVal=F+i.I:i.AD>=n.H9?i.iXVal=F+i.I:i.iXVal=F,!e){var y;i.setNodeData({x:F,y:m,w:o,h:D});var L=!0;if("none"!==i.A.J0||i.C.IW[i.A.L]||i.C.KJ||i.A.SZ&&i.A.SZ[i.L]?(y=i.O=i.A.IG(i,i.O),L=!1):y=i.O,(0!==i.A.E7.length||i.A.HW||i.O.o.override||i.C.KJ)&&(L=!1),i.AN){var Y;switch(i.A.CW){default:0!==i.A.E7.length||i.A.HW||"undefined"==typeof i.A.TN||i.O.o.override||i.C.KJ?(Y=new ZC.HQ(i.A)).copy(y):Y=i.A.TN,i.A.HW&&(i.H4(Y),Y.parse()),Y.FD=i.A.FD,Y.K=i.K,Y.iX=F,Y.iY=m,Y.I=i.I,Y.F=i.F,t.AB<5&&Y.F<5?(Y.F=ZC.BQ(1,Y.F)+1,Y.N1=!1,Y.D0=!1):Y.N1=!0,Y.F<5&&t.A1!==t.W&&i.C.P.F/(t.A1-t.W)<1&&(Y.QS=!0);break;case"pyramid":case"cone":0!==i.A.E7.length||i.A.HW||"undefined"==typeof i.A.TN||i.O.o.override||i.C.KJ?(Y=new ZC.DQ(i.A)).copy(y):Y=i.A.TN,i.A.HW&&(i.H4(Y),Y.parse()),Y.K=i.K,n.AW&&!i.A.CE?(s=i.AD>=0?i.I:0,r=i.AD>=0?0:i.I):(s=i.AD>=0?0:i.I,r=i.AD>=0?i.I:0),Y.D=[],Y.D.push([F+s,m+i.F/2-v*i.F/2],[F+s,m+i.F/2+v*i.F/2]),i.A.CE&&0!==b?Y.D.push([F+r,m+i.F/2+b*i.F/2],[F+r,m+i.F/2-b*i.F/2]):Y.D.push([F+r,m+i.F/2]),Y.D.push([Y.D[0][0],Y.D[0][1]]),i.E.points=Y.D,Y.iX=F,Y.iY=m,Y.locate(2)}Y.Z=i.A.CQ("bl",1),Y.C7=i.A.CQ("bl",0),i.paintPreview(y,L);var X=i.C.K+"-node-area "+i.C.K+"-plotset-plot-"+i.A.L+"-node-area zc-node-area";Y.DG=X;var M=ZC._c_(i.A.o.tolerance,5),O=function(){if("undefined"!=typeof i.paint_&&i.paint_(),i.N7(ZC.Q.EC(Y.Z,i.H.AC)),ZC.AO._boxoverlap2_(i,i.C.P,M)&&i.A.FU&&-1===ZC.AV(i.H.KP,"skip_segment_tracking")){var e=o<3?.5:-.5,t=D<5?.5:-.5,n=ZC.Q.FS("rect",i.A.EA,Y.IK)+'class="'+X+'" '+i.a11y()+' id="'+i.K+'" coords="'+ZC._i_(F+i.A.BK+ZC.MAPTX-e)+","+ZC._i_(m+i.A.BI+ZC.MAPTX-t)+","+ZC._i_(F+i.A.BK+o+ZC.MAPTX+e)+","+ZC._i_(m+i.A.BI+D+ZC.MAPTX+t)+'" />';i.A.A.HE.push(n)}i.A.U&&i.A.U.AN&&i.GY()};if(i.A.GE&&!i.C.HJ){var P=Y,H={};P.iX=F,P.iY=m,P.I=o,P.F=D,H.x=F,H.y=m,H.width=o,H.height=D;var N,G=i.A.LA,Q=i.C.P;for(N in P.C5=0,H.alpha=y.C5,2===G?(P.iX=Q.iX+Q.I/2,P.I=1,H.width=i.I,H.x=F):3===G?(P.iX=Q.iX+Q.I,P.I=1,H.width=i.I,H.x=F):4===G?(P.iX=Q.iX,P.I=1,H.width=i.I,H.x=F):5===G?(P.iY=Q.iY+Q.F,P.F=1,H.height=i.F,H.y=m):6===G?(P.iY=Q.iY,P.F=1,H.height=i.F,H.y=m):7===G?(P.iY=Q.iY+Q.F/2,P.F=1,H.height=i.F,H.y=m):8===G?(P.iY=m+Q.F,H.y=m):9===G?(P.iY=m-Q.F,H.y=m):10===G?(P.iX=F+Q.I,H.x=F):11===G?(P.iX=F-Q.I,H.x=F):12===G?(P.F=1,H.height=i.F):13===G&&(P.I=1,H.width=i.I),i.A.FY)P[ZC.E6.GM[ZC.EF(N)]]=i.A.FY[N],H[ZC.EF(N)]=i.O[ZC.E6.GM[ZC.EF(N)]];if(null===ZC._n_(i.C.EO)&&(i.C.EO={}),null!==ZC._n_(i.C.EO[i.A.L+"-"+i.L]))for(N in i.C.EO[i.A.L+"-"+i.L])P[ZC.E6.GM[ZC.EF(N)]]=i.C.EO[i.A.L+"-"+i.L][N];if(i.C.EO[i.A.L+"-"+i.L]={},ZC._cp_(H,i.C.EO[i.A.L+"-"+i.L]),ZC.AO._boxoverlap2_(i,i.C.P,M)){var k=new ZC.E6(P,H,i.A.JG,i.A.L8,ZC.E6.RL[i.A.LB],function(){O()});k.AX=i,k.OC=function(){i.N7(ZC.Q.EC(Y.Z,i.H.AC))},i.LS(k)}}else(Y.AN||0===i.A.E7.length&&!i.A.HW)&&ZC.AO._boxoverlap2_(i,i.C.P,M)&&Y.paint(),Y.AN&&O();"svg"===i.H.AC&&i.A.applyJsRuleSvg(i.A,i.K+"-path",i.M0()),0!==i.A.E7.length||i.A.HW||"undefined"!=typeof i.A.TN||i.O.o.override||i.C.KJ||i.A.GE||(i.A.TN=Y)}}}},paintPreview:function(e,i){var t,n,a=this;if(a.C.B9&&a.C.B9.HZ&&a.A.QQ){var l=a.C.P,o=a.C.B9,r=o.AT,s=(a.iX-l.iX)/l.I,C=(a.iY-l.iY)/l.F;a.A.VV?t=a.A.VV:(t=new ZC.HQ(a.A),a.A.VV=t,t.copy(e),(n=a.A.o["preview-state"])&&(t.append(n),t.parse())),i||(t.copy(e),(n=a.A.o["preview-state"])&&(t.append(n),t.parse())),t.K=a.K+"-preview",t.DG=a.A.K+"-preview",t.iX=r.iX+r.AU+s*(r.I-2*r.AU),t.iY=r.iY+r.AU+C*(r.F-2*r.AU),t.I=a.I/l.I*(r.I-2*r.AU),t.F=a.F/l.F*(r.F-2*r.AU),r.I/a.A.R.length<10?(t.I=t.I+.5,t.N1=!1,t.D0=!1):(t.N1=!0,t.D0=!0),t.Z=t.C7=o.Z,t.paint()}},A12:function(e){var i=this;if(!ZC.move){var t="";switch(i.A.CW){default:t="box";break;case"pyramid":t="shape"}i.M8({layer:e,type:t,initcb:function(){this.B7=i.A.BP[1],this.BX=i.A.BP[1],this.A0=i.A.BP[3],this.AE=i.A.BP[2]},setupcb:function(){switch(i.A.CW){default:this.iX=i.getNodeData("x"),this.iY=i.getNodeData("y"),this.I=i.getNodeData("w"),this.F=i.getNodeData("h");var e=i.C.P;this.iXe.iX+e.I&&(this.I=e.iX+e.I-this.iX);break;case"pyramid":case"cone":this.D=i.getNodeData("points")}}}),i.N7(ZC.Q.EC(i.C.K+"-hover-c",i.H.AC),!0),i.A.RO=null}}}),ZC.A5S=ZC.LI.CC({setup:function(){var e=this,i=e.A.B0,t=e.A.CN,n=[i.W,i.A1,t.W,t.A1];if(e.JQ!==n){if("scatter"===e.A.AF){if(e.A.LR&&e.A.PZ){var a=ZC.AO.WF(e.A.PZ[0],e.A.PZ[1]),l=(e.BV-a[0])/(a[1]-a[0]);e.iX=i.IE(e.A.R6)-i.AB/2+e.A.RQ+l*(i.AB-2*e.A.RQ)}else e.iX=i.AR(e.BV);e.iY=t.AR(e.AD)}else e.iY=i.AR(e.BV),e.iX=t.AR(e.AD);e.JQ=n}e.HZ||(e.copy(e.A),e.E7=e.A.E7,e.DF()&&e.parse(!1),e.HZ=!0)},parse:function(){this.b(),this.o.value instanceof Array||(this.BV=this.L)},ABF:function(){return{color:"-1"===this.A.A2.A0?this.O.A0:this.A.A2.A0}},getTooltipPosition:function(e,i){return this.b(e,i,this.L5.AI)},Y3:function(){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.C2}},paint:function(e){var i=this;i.b();var t=i.A.B0,n=i.A.CN;i.setup(),e||(t.CK?ZC.DP(i.iX,n.iX+(n.AW?n.BS:n.A9)-1,n.iX+n.I-(n.AW?n.A9:n.BS)+1)&&ZC.DP(i.iY,t.iY+(t.AW?t.BS:t.A9)-1,t.iY+t.F-(t.AW?t.A9:t.BS)+1)&&i.PF(!1,!0):ZC.DP(i.iX,t.iX+(t.AW?t.BS:t.A9)-1,t.iX+t.I-(t.AW?t.A9:t.BS)+1)&&ZC.DP(i.iY,n.iY+(n.AW?n.A9:n.BS)-1,n.iY+n.F-(n.AW?n.BS:n.A9)+1)&&i.PF(!1,!0))},A12:function(e){ZC.move||this.TZ(e)}}),ZC.A6Q=ZC.LI.CC({$i:function(e){this.b(e),this.SL=null},parse:function(){this.b(),this.o.value instanceof Array||(this.BV=this.L),this.o.value instanceof Array&&null!==ZC._n_(this.o.value[2])?this.SL=ZC._f_(this.o.value[2]):this.SL=2},ABF:function(){return{color:"-1"===this.A.A2.A0?this.O.A0:this.A.A2.A0}},getTooltipPosition:function(e,i){var t=this.A.getSize(ZC._a_(this.SL));return this.b(e,i,t)},Y3:function(){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.C2}},JX:function(e,i,t,n){var a=this,l=a.A.MT();ZC._cp_(i,l);var o=ZC.AQ.G4(a.SL,l);return a.CV=[["%v0",a.BV],["%v1",a.AD],["%v2",o],["%node-size-value",o]],e=a.b(e,i,t,n)},setup:function(){var e=this,i=e.A.B0,t=e.A.CN,n=[i.W,i.A1,t.W,t.A1];if(e.JQ!==n){if("bubble"===e.A.AF){if(e.A.LR&&e.A.PZ){var a=ZC.AO.WF(e.A.PZ[0],e.A.PZ[1]),l=(e.BV-a[0])/(a[1]-a[0]);e.iX=i.IE(e.A.R6)-i.AB/2+e.A.RQ+l*(i.AB-2*e.A.RQ)}else e.iX=i.AR(e.BV);e.iY=t.AR(e.AD)}else e.iY=i.AR(e.BV),e.iX=t.AR(e.AD);e.JQ=n}e.HZ||(e.copy(e.A),e.E7=e.A.E7,e.DF()&&e.parse(!1),e.HZ=!0)},AC7:function(e){var i,t=this,n="auto";null!==ZC._n_(i=e.o.placement)&&(n=i);var a=e.I,l=e.F,o=t.E["marker.size"],r=t.iX-a/2,s=t.iY-l/2,C=0,A=0;switch(n){case"top":s-=l/2+o,A=t.iY-t.C.P.iY+o;break;case"bottom":s+=l/2+o,A=t.C.P.iY+t.C.P.F-t.iY+o;break;case"left":r-=a/2+o,C=t.iX-t.C.P.iX+o;break;case"right":r+=a/2+o,C=t.C.P.iX+t.C.P.I-t.iX+o}return null!==ZC._n_(e.o.x)&&(r=e.iX),null!==ZC._n_(e.o.y)&&(s=e.iY),rt.C.P.iX+t.C.P.I&&(r=t.C.P.iX+t.C.P.I-a-C),st.C.P.iY+t.C.P.F&&(s=t.C.P.iY+t.C.P.F-l-A),[ZC._i_(r),ZC._i_(s)]},paint:function(e){var i=this;void 0===e&&(e=!1),i.b();var t=i.A.B0,n=i.A.CN;i.setup(),i.E["marker.size"]=i.A.getSize(ZC._a_(i.SL)),e||(t.CK?ZC.DP(i.iX,n.iX+(n.AW?n.BS:n.A9)-1,n.iX+n.I-(n.AW?n.A9:n.BS)+1)&&ZC.DP(i.iY,t.iY+(t.AW?t.BS:t.A9)-1,t.iY+t.F-(t.AW?t.A9:t.BS)+1)&&i.PF(!1,!0):ZC.DP(i.iX,t.iX+(t.AW?t.BS:t.A9)-1,t.iX+t.I-(t.AW?t.A9:t.BS)+1)&&ZC.DP(i.iY,n.iY+(n.AW?n.A9:n.BS)-1,n.iY+n.F-(n.AW?n.BS:n.A9)+1)&&i.PF(!1,!0))},A12:function(e){ZC.move||this.TZ(e)}}),ZC.A8R=ZC.LI.CC({bCXY:!0,U:null,$i:function(e){this.b(e)},parse:function(){this.b()},AB3:function(){this.b();var e=this.C.E;e.update.npv=e.update["node-percent-value"]=this.JX("%npv")},JX:function(e,i,t,n){var a=this,l=a.A.MT();ZC._cp_(i,l),-1===e.indexOf("%npv")&&-1===e.indexOf("%node-percent-value")||null!==ZC._n_(l.decimals)&&-1!==l.decimals||(l.decimals=1);var o=0,r="0";if(a.A.A.KO[a.L]>0&&(r=""+(o=100*a.AD/a.A.A.KO[a.L])),a.A.A.A3.length>1&&a.A.L===a.A.A.A3.length-1){var s=0;if(null===ZC._n_(a.A.o.totals)){for(var C=0;C0&&(c=""+(A=100*a.A.A.A3[C].R[a.L].AD/a.A.A.KO[a.L])),null!==ZC._n_(l.decimals)&&(c=A.toFixed(ZC.BQ(0,ZC._i_(l.decimals)))),s+=ZC._f_(c)}r=""+(o=Math.max(0,100-s))}}null!==ZC._n_(l.decimals)&&(r=o.toFixed(ZC.BQ(0,ZC._i_(l.decimals))));var u,p=ZC._f_(a.A.A.KO[a.L]||"0");return u=ZC.AQ.G4(p,l,a.A),a.CV=[["%node-percent-value",r],["%npv",r],["%pie-total-value",u]],e=a.b(e,i,t,n)},getTooltipPosition:function(e,i){var t,n,a,l=this,o=(l.B4+l.BL)/2%360;switch(i){case"out":n=(t=ZC.AO.BN(l.iX,l.iY,l.AI+l.DW+e.DW,o))[0]+l.BK,a=t[1]+l.BI,o>270&&o<=360?a-=e.F:o>90&&o<=180?n-=e.I:o>180&&o<=270&&(n-=e.I,a-=e.F);break;case"center":n=(t=ZC.AO.BN(l.iX,l.iY,l.CO+.5*(l.AI-l.CO)+l.DW,o))[0]+l.BK,a=t[1]+l.BI;break;default:n=l.iX+l.BK,a=l.iY+l.BI}return{x:n,y:a}},V4:function(e){var i,t=this,n=(t.B4+t.BL)/2%360,a=0;null!==ZC._n_(i=e["offset-r"])&&(a=ZC._f_(ZC._p_(i))),a<1&&(a*=t.AI);var l=ZC.AO.BN(t.iX,t.iY,t.CO+.6*(t.AI-t.CO)+t.DW+a,n);return[l[0],l[1],{reference:t,center:!0}]},ACA:function(){var e=this,i=(e.B4+e.BL)/2%360,t=ZC.AO.BN(e.iX,e.iY,e.CO+.5*(e.AI-e.CO)+e.DW,i);return[t[0],t[1]]},setup:function(){var e=this,i=e.C.BM(e.A.BW("k")[0]),t=e.L%i.H3,n=Math.floor(e.L/i.H3);e.iX=i.iX+t*i.GK+i.GK/2+i.BK,e.iY=i.iY+n*i.GF+i.GF/2+i.BI,e.HZ||(e.copy(e.A),e.E7=e.A.E7,e.DF()&&e.parse(!1),e.HZ=!0)},ABF:function(e){var i,t={},n="out";return null!==ZC._n_(i=e.o.placement)&&(n=i),t.color="out"===n?this.A0:this.C2,t},AC7:function(e){var i,t=this,n="out";null!==ZC._n_(i=e.o.placement)&&(n=i);var a,l,o,r,s,C=e.I,A=e.F,c=(t.B4+t.BL)/2%360,u=c;if("out"===n){c=u=t.A.A.YB["n"+t.L][t.A.L];var p=function(i,n){n<0&&(n=360+n),n%=360;var a=(s=ZC.AO.BN(t.iX,t.iY,i+t.DW+e.DW+20,n))[0]+e.BK-C/2,l=s[1]+e.BI-A/2;return n>=0&&n<=90||n>=270&&n<=360?a+=C/2+10:a-=C/2+10,[a,l]},Z=p(t.AI,u);a=Z[0],l=Z[1],t.U=e;var h={x:a,y:l,width:C,height:A},d=zingchart.DEV.SPREADTYPE;r=!0;for(var f=0,_=0,g=-1,v=0,b=0;r&&b<1024;){r=!1;for(var B=0,m=t.A.A.TO.length;Bt.C.P.iX+t.C.P.I||h.xt.C.P.iY+t.C.P.F||h.y100&&(v=0,0===d?(f=0,_+=2):1===d&&(_=0,f+=.4,g*=-1)))}a=h.x,l=h.y,c=u+f,o={text:t.A.AM,x:h.x,y:h.y,width:C,height:A,plotindex:t.A.L,nodeindex:t.L},t.A.A.TO.push(o)}else if("in"===n||"radial"===n){var E=t.CO<30?.65:.5;a=(s=ZC._x_(t.B4,2)%360==ZC._x_(t.BL,2)%360?0===t.CO?[t.iX,t.iY]:ZC.AO.BN(t.iX,t.iY,t.CO+.3*(t.AI-t.CO)+t.DW+e.DW,270):ZC.AO.BN(t.iX,t.iY,t.CO+E*(t.AI-t.CO)+t.DW+e.DW,c))[0]-C/2+t.BK,l=s[1]-A/2+t.BI}else if(-1!==n.indexOf("fixed=")){var D=n.split(/=|;|,/),F=(t.AI+t.CO)/2,K=c;D[1]&&(F=(F=ZC.IL(D[1],!0))>=-1&&F<=1||-1!==D[1].indexOf("%")?t.CO+t.DW+F*(t.AI-t.CO):t.CO+t.DW+F),D[2]&&(K=(K=ZC.IL(D[2],!0))>=-1&&K<=1||-1!==D[2].indexOf("%")?t.B4+K*(t.BL-t.B4):t.B4+K),D[3]&&("+"===D[3].charAt(0)||"-"===D[3].charAt(0)?(K%=360,e.AA=K+ZC._f_(D[3]),e.AA>90&&e.AA<270&&(e.AA+=180)):e.AA=ZC._f_(D[3])),a=(s=ZC.AO.BN(t.iX,t.iY,F,K))[0]-C/2,l=s[1]-A/2}else"center"===n&&(a=t.iX-C/2+t.BK,l=t.iY-A/2+t.BI);return r&&(a=-9999,l=-9999,e.AN=!1),null!==ZC._n_(e.o.x)&&(a=e.iX),null!==ZC._n_(e.o.y)&&(l=e.iY),a>=-2&&(a=ZC._a_(a)),l>=-2&&(l=ZC._a_(l)),[ZC._i_(a),ZC._i_(l),c]},appendToValueBox:function(e){var i=this,t={};if("radial"===e.o.placement){var n=.9*ZC._a_(i.AI-i.CO),a=Math.PI*(i.AI+i.CO)*.9*ZC._a_(i.BL-i.B4)/360,l=ZC._i_(Math.max(n,a)/(.75*e.DH));if(null===ZC._n_(e.o.visible)?t.visible=1===i.A.A.A3.length||a>1.25*e.DH:t.visible=e.JC.visible,null===ZC._n_(e.o["max-chars"])&&(t["max-chars"]=l),null===ZC._n_(e.o.angle)){var o=(i.B4+i.BL)/2%360;i.A.A.A3.length>1?a>n?o>0&&o<180?o-=90:o+=90:o>90&&o<270&&(o+=180):o=0,t.angle=o}}return t},GY:function(e,i){var t,n=this,a=n.b(e,i);if(e)return a;if(n.AN&&a.AN&&null!==ZC._n_(a.AM)&&""!==a.AM){var l="out";if(null!==ZC._n_(t=a.o.placement)&&(l=t),"out"===l){var o=!0;if(null!==ZC._n_(t=a.o.connected)&&(o=ZC._b_(t)),o){var r=new ZC.DQ(n.A);r.Z=r.C7=n.A.CQ("bl",0),r.append(n.A.C3.o),r.K=n.K+"-connector",r.B7=n.A0,r.DV="line",r.D=[];var s=a.E.positioninfo,C=(n.B4+n.BL)/2%360,A=ZC.AO.BN(n.iX,n.iY,n.AI+n.DW,C);A[0]+=n.BK,A[1]+=n.BI,r.D.push(A);var c=ZC.AO.BN(n.iX,n.iY,n.AI+n.DW+10,C);c[0]+=n.BK,c[1]+=n.BI,a.iX>=n.iX?"vml"===n.H.AC?r.D.push([s[0],s[1]+a.F/2]):r.D.push([c[0],c[1],s[0],s[1]+a.F/2]):"vml"===n.H.AC?r.D.push([s[0]+a.I+2,s[1]+a.F/2]):r.D.push([c[0],c[1],s[0]+a.I+2,s[1]+a.F/2]),r.parse(),r.J5=function(e){return n.J5(e)},r.DF()&&r.parse(),r.AN&&r.paint()}}}},paint:function(){var e,i=this;if(i.b(),!(i.AD<0)){var t=i.C.BM(i.A.BW("k")[0]);i.setup();var n="pie-sel-"+i.A.L+"-"+i.L;if("undefined"!=typeof i.o.detached&&(i.C.E[n]=ZC._b_(i.o.detached)),i.AI=ZC.CY(t.GF,t.GK)/2,null!==ZC._n_(i.A.o.size)){var a=ZC.IL(i.A.o.size,!1);i.AI=a<=1?i.AI*a:a}else i.AI=t.JF*i.AI;i.CO<=1&&(i.CO*=i.AI),i.CO=Math.max(0,i.CO),i.o.slice=i.CO,i.DW<=1&&(i.DW*=i.AI),i.o["offset-r"]=i.DW,i.C.E[n]&&(i.DW+=ZC._i_(.15*i.AI));var l=i.O=i.A.IG(i,i);if(i.H4(l),i.AD>=0||0===i.A.A.KO[i.L]){var o=new ZC.DQ(i.A);o.K=i.K,o.Z=i.A.CQ("bl",1),o.C7=i.A.CQ("bl",0),o.copy(l);var r=i.iX,s=i.iY;i.DW>0&&(r=(e=ZC.AO.BN(i.iX,i.iY,i.DW,(i.B4+i.BL)/2))[0],s=e[1]),o.iX=r,o.iY=s,o.AI=i.AI,o.o.size=i.AI,o.DV="pie",o.B4=ZC._f_(i.B4),o.BL=ZC._f_(i.BL),o.CO=i.CO,o.E.plotidx=i.A.L,o.E.nodeidx=i.L,o.parse(),i.G6=o;var C=function(){if(!i.A.KA&&i.AN){var e=o.FG(),t=i.C.K+"-node-area "+i.C.K+"-plotset-plot-"+i.A.L+"-node-area zc-node-area",n=ZC.Q.FS("poly",i.A.EA,i.A.IK)+'class="'+t+'" '+i.a11y()+' id="'+i.K+'" coords="'+e+'" />';i.A.A.HE.push(n)}i.A.U&&i.GY()};if(i.AN)if(i.A.GE&&!i.C.HJ){var A=o,c={};A.iX=r,A.iY=s,A.B4=i.B4,A.BL=i.BL,c.angleStart=i.B4,c.angleEnd=i.BL,c.x=r,c.y=s;var u,p=i.A.LA;for(u in A.C5=0,c.alpha=l.C5,2===p?(A.BL=i.B4,c.angleEnd=i.BL):3===p?(A.AI=i.CO,c.size=i.AI):4===p?(e=ZC.AO.BN(i.iX,i.iY,1.2*i.AI,(i.B4+i.BL)/2),A.iX=e[0],A.iY=e[1],c.x=r,c.y=s):5===p&&(A.B4=A.BL=(i.B4+i.BL)/2,c.angleStart=i.B4,c.angleEnd=i.BL),i.A.FY)A[ZC.E6.GM[ZC.EF(u)]]=i.A.FY[u],c[ZC.EF(u)]=l[ZC.E6.GM[ZC.EF(u)]];if(null===ZC._n_(i.C.EO)&&(i.C.EO={}),null!==ZC._n_(i.C.EO[i.A.L+"-"+i.L]))for(u in i.C.EO[i.A.L+"-"+i.L])A[ZC.E6.GM[ZC.EF(u)]]=i.C.EO[i.A.L+"-"+i.L][u];i.C.EO[i.A.L+"-"+i.L]={},ZC._cp_(c,i.C.EO[i.A.L+"-"+i.L]);var Z=new ZC.E6(A,c,i.A.JG,i.A.L8,ZC.E6.RL[i.A.LB],function(){C()});Z.AX=i,i.LS(Z)}else o.paint(),C()}else i.A.U&&i.GY()}},A12:function(e){var i=this;ZC.move||i.M8({layer:e,type:"shape",initcb:function(){if(this.copy(i),this.iX=i.iX,this.iY=i.iY,i.DW>0){var e=ZC.AO.BN(i.iX,i.iY,i.DW,(i.B4+i.BL)/2);this.iX=e[0],this.iY=e[1]}this.AI=i.AI,this.DV="pie",this.A0=i.A.BP[3],this.AE=i.A.BP[2],this.B4=ZC._f_(i.B4),this.BL=ZC._f_(i.BL),this.CO=i.CO},parsecb:function(){this.o.size=i.AI,this.o.slice=i.CO,this.o["offset-r"]=i.DW}})},X4:function(e,i){var t=this;if(t.b(e,i),"click"===i&&e.which<=1&&t.A.A7S){zingchart.SKIP.ANIMATION=!0,zingchart.SKIP.EVENT=!0;var n="pie-sel-"+t.A.L+"-"+t.L;t.C.E[n]="undefined"==typeof t.C.E[n]||!t.C.E[n],t.C.K9(),zingchart.SKIP.EVENT=!1,zingchart.SKIP.ANIMATION=!1}}}),ZC.A49=ZC.LI.CC({bCXY:!0,$i:function(e){this.b(e)},setup:function(){var e=this,i=e.C.BM(e.A.BW("k")[0]);e.iX=i.iX+i.I/2+i.BK,e.iY=i.iY+i.F/2+i.BI,e.HZ||(e.copy(e.A),e.o.slice=null,e.E7=e.A.E7,e.DF()&&e.parse(!1),e.HZ=!0)},ACA:function(){var e=this,i=(e.B4+e.BL)/2%360,t=ZC.AO.BN(e.iX,e.iY,e.CO+e.E.bandwidth/2+e.DW,i);return[t[0],t[1]]},JX:function(e,i,t,n){var a=this,l=a.A.MT();ZC._cp_(i,l);var o=100*a.AD/a.A.A.KO[a.L],r=""+o;return null!==ZC._n_(l.decimals)&&(r=o.toFixed(ZC.BQ(0,ZC._i_(l.decimals)))),a.CV=[["%node-percent-value",r],["%npv",r]],e=a.b(e,i,t,n)},ABF:function(e){var i={},t="in";return null!==ZC._n_(e.o.placement)&&(t=e.o.placement),i.color="out"===t?this.A0:this.C2,i},AC7:function(e){var i=this,t="in";null!==ZC._n_(e.o.placement)&&(t=e.o.placement);var n,a,l,o=e.I,r=e.F,s=(i.B4+i.BL)/2%360;return"out"===t?i.L===i.A.R.length-1?(l=ZC.AO.BN(i.iX,i.iY,i.A.U2+i.A.R.length*(i.E.bandwidth+i.E.bandspace)+15+e.DW,s),n=s>=0&&s<90||s>=270&&s<360?l[0]+10+i.BK:l[0]-o-10+i.BK,a=l[1]-r/2+i.BI):(n=-1,a=-1):(n=(l=ZC.AO.BN(i.iX,i.iY,i.CO+i.E.bandwidth/2+e.DW,s))[0]-o/2+i.BK,a=l[1]-r/2+i.BI),null!==ZC._n_(e.o.x)&&(n=e.iX),null!==ZC._n_(e.o.y)&&(a=e.iY),[ZC._i_(n),ZC._i_(a),s]},GY:function(e){var i=this,t=i.b(e);if(e)return t;if(t.AN&&null!==ZC._n_(t.AM)&&""!==t.AM){var n="in";if(null!==ZC._n_(t.o.placement)&&(n=t.o.placement),"out"===n&&i.L===i.A.R.length-1){var a=new ZC.DQ(i.A);a.Z=a.C7=i.H.usc()?i.H.mc("top"):i.C.AJ["3d"]||i.H.KA?ZC.AL(i.C.K+"-plots-vb-c"):ZC.AL(i.C.K+"-plot-"+i.A.L+"-vb-c"),a.append(i.A.C3.o),a.B7=i.A0,a.DV="line",a.D=[];var l=(i.B4+i.BL)/2%360,o=ZC.AO.BN(i.iX,i.iY,i.CO+i.E.bandwidth+t.DW,l),r=ZC.AO.BN(i.iX,i.iY,i.A.U2+i.A.R.length*(i.E.bandwidth+i.E.bandspace)+15+t.DW,l);o[0]+=i.BK,r[0]+=i.BK,o[1]+=i.BI,r[1]+=i.BI,a.D.push(o),l>=0&&l<90||l>=270&&l<360?a.D.push([r[0],r[1],r[0]+10,r[1]]):a.D.push([r[0],r[1],r[0]-10,r[1]]),a.parse(),a.J5=function(e){return i.J5(e)},a.DF()&&a.parse(),a.AN&&a.paint()}}},paint:function(){var e,i=this;i.b();var t=i.C.BM(i.A.BW("k")[0]);i.setup(),i.AI=ZC.CY(t.I,t.F)/2,i.AI=t.JF*i.AI,i.CO=i.A.U2,i.CO<1&&(i.CO=i.A.U2*i.AI);var n=i.A.SK;n<1&&(n=i.A.SK*i.AI);var a=2,l=i.AI-i.CO;if(null!==ZC._n_(i.A.aBandWidths)&&null!==ZC._n_(i.A.aBandWidths[i.L])){(a=ZC._f_(i.A.aBandWidths[i.L]))>1&&(a/=100),a=ZC._i_(l*a),a=ZC.BQ(a,2);for(var o=0,r=0;r1&&(o/=100),o=ZC._i_(l*o),i.CO+=o,i.AI=i.CO+a}else a=(l-(i.A.R.length-1)*n)/i.A.R.length,a=ZC.BQ(a,2),i.CO+=i.L*(a+n),i.AI=i.CO+a;var s=i.O=i.A.IG(i,i);i.H4(s);var C=new ZC.DQ(i.A);C.K=i.K,C.Z=i.A.CQ("bl",1),C.C7=i.A.CQ("bl",0),C.copy(s),C.iX=i.iX,C.iY=i.iY,C.DV="pie",C.B4=i.B4,C.BL=i.BL,C.CO=i.CO,C.AI=i.AI,C.parse();var A=C.CO;function c(){var e=C.FG(),t=i.C.K+"-node-area "+i.C.K+"-plotset-plot-"+i.A.L+"-node-area zc-node-area",n=ZC.Q.FS("poly",i.A.EA,i.A.IK)+'class="'+t+'" '+i.a11y()+' id="'+i.K+'" coords="'+e+'" />';i.A.A.HE.push(n),i.A.U&&i.A.U.AN&&i.GY()}if(i.E.bandwidth=a,i.E.bandspace=n,i.A.GE&&!i.C.HJ){var u=C,p={};u.B4=i.B4,u.BL=i.BL,p.angleStart=i.B4,p.angleEnd=i.BL;var Z=i.A.LA;if(u.C5=0,p.alpha=s.C5,2===Z)u.BL=i.B4,p.angleEnd=i.BL;else if(3===Z)u.CO=A+i.E.bandwidth,p.slice=A;else if(4===Z){var h=ZC.AO.BN(i.iX,i.iY,i.AI,(i.B4+i.BL)/2);u.iX=h[0],u.iY=h[1],p.x=i.iX,p.y=i.iY}else 5===Z&&(u.B4=u.BL=(i.B4+i.BL)/2,p.angleStart=i.B4,p.angleEnd=i.BL);for(e in i.A.FY)u[ZC.E6.GM[ZC.EF(e)]]=i.A.FY[e],p[ZC.EF(e)]=s[ZC.E6.GM[ZC.EF(e)]];if(i.C.EO||(i.C.EO={}),null!==ZC._n_(i.C.EO[i.A.L+"-"+i.L]))for(e in i.C.EO[i.A.L+"-"+i.L])u[ZC.E6.GM[ZC.EF(e)]]=i.C.EO[i.A.L+"-"+i.L][e];i.C.EO[i.A.L+"-"+i.L]={},ZC._cp_(p,i.C.EO[i.A.L+"-"+i.L]);var d=new ZC.E6(u,p,i.A.JG,i.A.L8,ZC.E6.RL[i.A.LB],function(){c()});d.AX=i,i.LS(d)}else C.paint(),c()},A12:function(e){var i=this;ZC.move||i.M8({layer:e,type:"shape",initcb:function(){this.copy(i),this.iX=i.iX,this.iY=i.iY,this.DV="pie",this.A0=i.A.BP[3],this.AE=i.A.BP[2],this.B4=i.B4,this.BL=i.BL,this.CO=i.CO,this.AI=i.AI},parsecb:function(){this.o.slice=null}})}}),ZC.A7B=ZC.LI.CC({$i:function(e){this.b(e);var i=this;i.C8=null,i.CB=null,i.MO="max"},JX:function(e,i,t,n){var a=this;return"range"===a.A.CW&&(a.CV=[["%node-min-value",a.C8],["%node-max-value",a.CB]]),e=a.b(e,i,t,n)},AA1:function(){var e=this;if("range"===e.A.CW&&e.o.value instanceof Array){var i=e.o.value.length;i>2&&(e.BV=ZC._f_(e.o.value[0])),e.C8=ZC._f_(e.o.value[i-2]),e.CB=ZC._f_(e.o.value[i-1]),e.AD=e.CP=e.CB,e.DS.push(e.C8)}else e.b()},setup:function(){var e=this,i=e.A.B0,t=e.A.CN,n=[i.W,i.A1,t.W,t.A1];if(e.JQ!==n){var a;a="range"===e.A.CW?t.U8("min"===e.MO?e.C8:e.CB):t.U8(e.CP);var l=null!==ZC._n_(e.BV),o=i.A7L(l?e.BV:e.L,a,l);e.iX=o[0],e.iY=o[1],e.JQ=n}e.HZ||(e.copy(e.A),e.E7=e.A.E7,e.DF()&&e.parse(!1),e.HZ=!0)},AC7:function(e){var i,t=this,n=t.A.B0,a=t.A.CN,l=t.C.BM("scale"),o=l.iX+l.I/2,r=l.iY+l.F/2,s=e.I,C=e.F,A="out";null!==ZC._n_(e.o.placement)&&(A=e.o.placement);var c=1.15;switch(A){case"out":c=1.15;break;case"over":c=1;break;case"in":c=.85;break;case"middle":c=.5}var u,p,Z=n.EK/(n.V.length-(360===n.EK||n.DE?0:1)),h=a.U8(t.CP);switch(t.A.CW){case"matrix":case"piano":var d=(ZC.CY(l.I/2,l.F/2)*l.JF-a.A9)/t.A.A.A3.length;u=a.A9+t.A.L*d,p=a.A9+(t.A.L+1)*d,i=ZC.AO.BN(o,r,(u+p)/2*c+e.DW,n.DJ+(n.DE?Z/2:0)+t.L*Z);break;default:if(null!==ZC._n_(t.BV)){var f=n.DJ+n.EK*(t.BV-n.AY)/(n.BD-n.AY);i=ZC.AO.BN(o,r,a.A9+h*c+e.DW,f)}else i=ZC.AO.BN(o,r,a.A9+h*c+e.DW,n.DJ+(n.DE?Z/2:0)+t.L*Z)}return i[0]-=s/2,i[1]-=C/2,null!==ZC._n_(e.o.x)&&(i[0]=e.iX),null!==ZC._n_(e.o.y)&&(i[1]=e.iY),[ZC._i_(i[0]),ZC._i_(i[1])]},ABF:function(){return{color:"rose"===this.A.CW?this.A0:this.B7}},Y3:function(){return{"background-color":"rose"===this.A.CW?this.A0:this.B7,"border-color":"rose"===this.A.CW?this.A0:this.B7,color:this.C2}},paint:function(){var e,i,t=this;t.b();var n,a,l=t.A.O8,o=t.A.A4Q,r=t.A.B0,s=t.A.CN,C=t.A.R;t.setup(),t.D0=!1,t.C7=t.A.CQ("bl",0);var A,c=[],u=[],p=[],Z=[],h="range"===t.A.CW;function d(){if(t.A.RV>=t.A.R.length&&t.A.XZ){var e=t.C.K+"-node-area "+t.C.K+"-plotset-plot-"+t.A.L+"-node-area zc-node-area",i="",a="";-1!==ZC.AV(["line","area","range"],t.A.CW)?""!==(a="range"!==t.A.CW||t.A.XC?ZC.AO.PE(ZC.AO.YZ(t.E.points),4):ZC.AO.PE(u,4))&&(i=ZC.Q.FS("poly",t.A.EA,t.A.IK)+'class="'+e+'" '+t.a11y()+' id="'+t.K+'" coords="'+a+'" />'):-1!==ZC.AV(["rose","column","bar","matrix","piano"],t.A.CW)&&(a=n.FG(),i=ZC.Q.FS("poly",t.A.EA,t.A.IK)+'class="'+e+'" '+t.a11y()+' id="'+t.K+'" coords="'+a+'" data-z-sort="'+(t.A.A.A3.length-t.A.L)+'" />'),t.A.A.HE.push(i)}t.A.U&&t.A.E.vboxid!==t.K&&t.GY()}var f,_,g,v,b,B=t.O=t.A.IG(t,t);if(t.A.HW&&t.H4(B),-1!==ZC.AV(["line","area","range"],t.A.CW)){c=[],u=[],p=[],Z=[];var m=t.iX,E=t.iY,D=t.iX,F=t.iY;h&&(t.MO="max",t.setup(),m=t.iX,E=t.iY,t.MO="min",t.setup(),D=t.iX,F=t.iY),t.A.GV&&(t.A.D.push([m,E]),t.A.AH.push([m,E])),t.L>0?(A=C[t.L-1])&&(A.MO="max",A.setup(),a=ZC.AO.JW(A.iX,A.iY,m,E),c.push(a),u.push(a),h&&(A.MO="min",A.setup(),a=ZC.AO.JW(A.iX,A.iY,D,F),p.push(a),Z.push(a))):(A=C[t.A.R.length-1])&&(A.MO="max",A.setup(),a=ZC.AO.JW(A.iX,A.iY,m,E),c.push(a),u.push(a),h&&(A.MO="min",A.setup(),a=ZC.AO.JW(A.iX,A.iY,D,F),p.push(a),Z.push(a))),c.push([m,E]),u.push([m,E]),h&&(p.push([D,F]),Z.push([D,F])),t.L')}}},A12:function(e){var i=this;if(!ZC.move&&(i.b(e),i.FI&&i.FI.AN)){var t=new ZC.HQ(i.A);t.copy(i.FI),t.Z=ZC.AL(i.C.K+"-hover-c"),t.MA=!1,t.iX=i.FI.iX,t.iY=i.FI.iY,t.paint()}}}),ZC.A5U=ZC.ZI.CC({$i:function(e){this.b(e),this.FI=null},JX:function(e,i,t,n){var a=this,l=a.A.MT();ZC._cp_(i,l);var o=ZC.AQ.G4(a.A.PV[a.L],l);return a.CV=[["%node-goal-value",o],["%g",o]],e=a.b(e,i,t,n)},AC7:function(e){var i=this;return"goal"===ZC._n_(e.o.placement)?[i.FI.iX+i.FI.I,i.FI.iY+i.FI.F/2-e.F/2]:i.b(e)},AA1:function(){var e,i=this;if(i.DS=[],i.CL=i.o.value,"string"==typeof i.o.value){var t=ZC.AV(i.A.CN.JN,i.o.value);-1!==t?i.AD=t:(i.A.CN.JN.push(i.o.value),i.AD=i.A.CN.JN.length-1)}else i.AD=ZC._f_(i.o.value);i.A.o.goals&&null!==ZC._n_(e=i.A.o.goals[i.L])&&i.DS.push(ZC._f_(e))},paint:function(){this.b()},paint_:function(){var e,i,t=this;if(null!==ZC._n_(t.A.PV[t.L])&&t.AN){var n=t.A.CN.AR(t.A.PV[t.L]);t.FI=new ZC.HQ(t.A),t.FI.K=t.K+"-goal",t.FI.copy(t.A.FI),t.FI.Z=t.A.CQ("fl",0),t.FI.C7=t.A.CQ("fl",0),t.FI.J5=function(e){return t.J5(e)},t.FI.DF()&&t.FI.parse(),null!==ZC._n_(e=t.FI.o)&&null!==ZC._n_(e.styles)&&null!==ZC._n_(i=e.styles[t.L])&&("string"==typeof i?t.FI.append({"background-color":i}):t.FI.append(i),t.FI.parse());var a=.2;if(null!==ZC._n_(e=t.FI.o.extension)&&(a=ZC._f_(e)),t.FI.iY=t.getNodeData("y")-t.F*a,t.FI.F=t.F*(1+2*a),null===ZC._n_(t.A.FI.o.width)&&(t.FI.I=ZC.CY(5,t.C.P.I/30)),t.FI.iX=n-t.FI.I/2,t.FI.AN){t.FI.paint();var l=t.C.K+"-node-area "+t.C.K+"-plotset-plot-"+t.A.L+"-node-area zc-node-area";t.A.A.HE.push(ZC.Q.FS("rect",t.A.EA,t.A.IK)+'class="'+l+'" id="'+t.K+'--goal" coords="'+ZC._i_(t.FI.iX+t.A.BK+ZC.MAPTX)+","+ZC._i_(t.FI.iY+t.A.BI+ZC.MAPTX)+","+ZC._i_(t.FI.iX+t.A.BK+t.FI.I+ZC.MAPTX)+","+ZC._i_(t.FI.iY+t.A.BI+t.FI.F+ZC.MAPTX)+'" />')}}},A12:function(e){var i=this;if(!ZC.move&&(i.b(e),i.FI&&i.FI.AN)){var t=new ZC.HQ(i.A);t.copy(i.FI),t.Z=ZC.AL(i.C.K+"-hover-c"),t.MA=!1,t.iX=i.FI.iX,t.iY=i.FI.iY,t.paint()}}}),ZC.A7C=ZC.LI.CC({AA1:function(){var e,i=this;i.o.value instanceof Array&&null!==ZC._n_(i.o.value[1])&&(i.CL=i.o.value[1],"string"==typeof i.o.value[0]?-1!==(e=ZC.AV(i.A.B0.IT,i.o.value[0]))?i.BV=e:(i.A.B0.IT.push(i.o.value[0]),i.BV=i.A.B0.IT.length-1):i.BV=ZC._f_(i.o.value[0]),"string"==typeof i.o.value[1]?-1!==(e=ZC.AV(i.A.CN.JN,i.o.value[1]))?i.AD=e:(i.A.CN.JN.push(i.o.value[1]),i.AD=i.A.CN.JN.length-1):i.AD=ZC._f_(i.o.value[1]),null!==i.BV&&i.A.V6(i.BV,i.L))},setup:function(){var e=this,i=e.A.B0,t=e.A.CN,n=[i.W,i.A1,t.W,t.A1];e.JQ!==n&&(i.AW?e.iX=i.iX+i.I-i.A9-(e.L-i.W+1)*i.AB:e.iX=i.iX+i.A9+(e.L-i.W)*i.AB,t.AW?e.iY=t.iY+t.A9+(e.A.L-t.AY)*t.AB:e.iY=t.iY+t.F-t.A9-(e.A.L-t.AY+1)*t.AB,e.JQ=n),e.HZ||(e.copy(e.A),e.E7=e.A.E7,e.DF()&&e.parse(!1),e.HZ=!0),e.H4(e)},AC7:function(e){var i=this,t="over";null!==ZC._n_(e.o.placement)&&(t=e.o.placement);var n=e.I,a=e.F,l=i.iX+i.I/2-n/2,o=i.iY+i.F/2-a/2;switch(t){case"top":o-=i.F/2+a/2+2;break;case"left":l-=i.I/2+n/2+2;break;case"bottom":o+=i.F/2+a/2+2;break;case"right":l+=i.I/2+n/2+2}return null!==ZC._n_(e.o.x)&&(l=e.iX),null!==ZC._n_(e.o.y)&&(o=e.iY),[ZC._i_(l),ZC._i_(o)]},ABF:function(){return{color:"#000"}},getFormatValue:function(){return this.CL},JX:function(e,i,t,n){var a,l=this,o=l.A.CN,r=l.A.L;return a=null!==ZC._n_(o.BY[r])?o.BY[r]:o.V[r],l.CV=[["%y",a],["%scale-value-label",a]],e=l.b(e,i,t,n)},T6:function(){var e=this;e.setup();var i,t=e.A.B0,n=e.A.CN;switch(e.A.A72){case"plot-max":i=(ZC._f_(e.AD)-e.A.Y7)/(e.A.A4R-e.A.Y7);break;case"plot-total":i=(ZC._f_(e.AD)-e.A.Y7)/(e.A.A65-e.A.Y7);break;case"chart-max":i=(ZC._f_(e.AD)-e.A.WJ)/(e.A.A3I-e.A.WJ);break;case"chart-total":i=(ZC._f_(e.AD)-e.A.WJ)/(e.A.A4S-e.A.WJ)}switch(ZC.PC(i)||(i=.5),e.I=t.AB,e.F=n.AB,e.A.CW){case"alpha":case"brightness":e.C5=e.A.Q8+i*(e.A.UR-e.A.Q8);break;case"horizontal":e.I=1.01+e.A.Q8*t.AB+i*t.AB*(e.A.UR-e.A.Q8),t.AW&&(e.iX=e.iX+t.AB-e.I);break;case"vertical":e.F=1.01+e.A.Q8*n.AB+i*n.AB*(e.A.UR-e.A.Q8),n.AW||(e.iY=e.iY+n.AB-e.F);break;case"size":e.I=1.01+e.A.Q8*t.AB+i*t.AB*(e.A.UR-e.A.Q8),e.F=1.01+e.A.Q8*n.AB+i*n.AB*(e.A.UR-e.A.Q8),e.iX+=(t.AB-e.I)/2,e.iY+=(n.AB-e.F)/2}e.iX-=e.AU/2,e.iY-=e.AU/2,e.I+=e.AU,e.F+=e.AU},paint:function(){var e=this;e.b(),e.T6();var i=e.C.P;if(!(e.iY+5=i.iY+i.F)){if(e.AN){var t=zingchart.pool.getInstance("HQ",e,e.A.K+"-piano-box");if(t.K=e.K,t.copy(e),("none"!==e.A.J0||e.C.IW[e.A.L]||e.C.KJ||e.A.SZ&&e.A.SZ[e.L])&&t.copy(e.A.IG(e,t)),t.iX=e.iX,t.iY=e.iY,t.I=e.I,t.F=e.F,t.Z=e.A.CQ("bl",1),t.C7=e.A.CQ("bl",0),(-1!==t.BX&&t.AU>0||t.PW+t.OJ+t.NP+t.P9!==""||-1!==t.A0||-1!==t.AE||""!==t.DB||""!==t.GR||""!==t.HN)&&(t.paint(),!t.KA)){var n=e.C.K+"-node-area "+e.C.K+"-plotset-plot-"+e.A.L+"-node-area zc-node-area";e.A.A.HE.push(ZC.Q.FS("rect",e.A.EA,e.A.IK)+'class="'+n+'" '+e.a11y()+' id="'+e.K+'" coords="'+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.AN&&e.GY()}},A12:function(e){var i=this;ZC.move||i.M8({layer:e,type:"box",initcb:function(){this.AE=i.A.BP[3],this.B7=i.A.BP[1],this.BX=i.A.BP[1],this.A0=i.A.BP[2]},setupcb:function(){this.iX=i.iX,this.iY=i.iY,this.I=i.I,this.F=i.F}})}}),ZC.A5V=ZC.LI.CC({setup:function(){var e=this,i=e.A.B0,t=e.A.CN,n=[i.W,i.A1,t.W,t.A1];e.JQ!==n&&(i.AW?e.iX=i.iX+i.I-i.A9-(e.L+1)*i.AB:e.iX=i.iX+i.A9+e.L*i.AB,t.AW?e.iY=t.iY+t.A9+e.A.L*t.AB:e.iY=t.iY+t.F-t.A9-(e.A.L+1)*t.AB,e.JQ=n),e.HZ||(e.copy(e.A),e.E7=e.A.E7,e.DF()&&e.parse(!1),e.HZ=!0)},JX:function(e,i,t,n){var a,l,o=this,r=ZC._f_(o.A.A.F8["%pstack-"+o.L+"-0-sum"]||"0"),s=o.A.MT();if(ZC._cp_(i,s),o.CV=[],o.A.L>0&&o.A.A.A3[o.A.L-1]&&o.A.A.A3[o.A.L-1].R[o.L]?l=""+(a=100*o.AD/o.A.A.A3[o.A.L-1].R[o.L].AD):(a=100,l="100"),null!==ZC._n_(s.decimals)&&(l=a.toFixed(ZC.BQ(0,ZC._i_(s.decimals)))),o.CV.push(["%output-percent-value",l]),r>0){var C=100*o.AD/r,A=""+C;null!==ZC._n_(s.decimals)&&(A=C.toFixed(ZC.BQ(0,ZC._i_(s.decimals)))),o.CV.push(["%node-percent-value",A]),o.CV.push(["%npv",A])}return e=o.b(e,i,t,n)},paint:function(){var e,i,t,n,a,l,o,r,s,C,A,c,u,p=this;p.b();var Z=p.A.B0,h=p.A.CN;p.setup(),"static"===p.A.A2I?(p.C.AZ.S8[p.L],e=p.C.AZ.A7R[p.L]):(p.C.AZ.AY,e=p.C.AZ.BD);var d=p.A.L2;d<=1&&(d*=Z.AB);var f=p.A.OB;f<=1&&(f*=Z.AB);var _=p.A.LW;_<=1&&(_*=Z.AB);var g=Z.AB-d-f-_,v=_+g*(p.AD/e),b=0;p.A.L+1')}for(i=0,t=p.A.OS.length;i0&&o.A.A.A3[o.A.L-1]&&o.A.A.A3[o.A.L-1].R[o.L]?l=""+(a=100*o.AD/o.A.A.A3[o.A.L-1].R[o.L].AD):(a=100,l="100"),null!==ZC._n_(s.decimals)&&(l=a.toFixed(ZC.BQ(0,ZC._i_(s.decimals)))),o.CV.push(["%output-percent-value",l]),r>0){var C=100*o.AD/r,A=""+C;null!==ZC._n_(s.decimals)&&(A=C.toFixed(ZC.BQ(0,ZC._i_(s.decimals)))),o.CV.push(["%node-percent-value",A]),o.CV.push(["%npv",A])}return e=o.b(e,i,t,n)},AC7:function(e){var i,t=this,n=t.A.B0,a=t.A.CN;null!==ZC._n_(e.o.placement)&&(i=e.o.placement);var l=t.iX+a.AB/2-e.I/2,o=t.iY+n.AB/2-e.F/2,r=t.E["entry-exit"],s=(r[0]+r[1])/2;switch(i){case"in":case"auto":break;case"top":l=t.iX+a.AB-e.I-5;break;case"bottom":l=t.iX+5;break;case"left":o=t.iY+n.AB/2-s/2+5;break;case"left-out":o=t.iY+n.AB/2-s/2-e.F-5;break;case"right":o=t.iY+n.AB/2+s/2-e.F-5;break;case"right-out":o=t.iY+n.AB/2+s/2+5}return null!==ZC._n_(e.o.x)&&(l=e.iX),null!==ZC._n_(e.o.y)&&(o=e.iY),[ZC._i_(l),ZC._i_(o)]},paint:function(){var e,i,t,n,a,l,o,r,s,C,A,c,u,p=this;p.b();var Z=p.A.B0,h=p.A.CN;p.setup(),"static"===p.A.A2I?(p.C.AZ.S8[p.L],e=p.C.AZ.A7R[p.L]):(p.C.AZ.AY,e=p.C.AZ.BD);var d=p.A.L2;d<=1&&(d*=Z.AB);var f=p.A.OB;f<=1&&(f*=Z.AB);var _=p.A.LW;_<=1&&(_*=Z.AB);var g=Z.AB-d-f-_,v=_+g*(p.AD/e),b=0;p.A.L+1')}for(i=0,t=p.A.OS.length;ie.AD?(e.A.o["trend-up"]&&(e.J1.append(e.A.o["trend-up"]),e.J1.parse()),e.A.MX.up||(e.A.MX.up=new ZC.DN(e.A),e.A.MX.up.copy(e.J1),e.A.MX.size++)):(e.A.o["trend-equal"]&&(e.J1.append(e.A.o["trend-equal"]),e.J1.parse()),e.A.MX.equal||(e.A.MX.equal=new ZC.DN(e.A),e.A.MX.equal.copy(e.J1),e.A.MX.size++)),e.HZ=!0),e.A.GV){e.DS[2]e.AD?e.J1=e.A.MX.up:e.J1=e.A.MX.equal;var a=ZC.CY(e.E.X9,e.E.VA),l=ZC.BQ(e.E.X9,e.E.VA)-ZC.CY(e.E.X9,e.E.VA);l<2&&(l=2),e.E.A7P=a+l/2}},JX:function(e,i,t,n){var a=this,l=a.A.MT();function o(e){return ZC.AQ.G4(e,l)}return ZC._cp_(i,l),a.CV=[["%node-value-stock-open",o(a.AD)],["%open",o(a.AD)],["%v0",o(a.AD)],["%node-value-stock-high",o(a.DS[0])],["%high",o(a.DS[0])],["%v1",o(a.DS[0])],["%node-value-stock-low",o(a.DS[1])],["%low",o(a.DS[1])],["%v2",o(a.DS[1])],["%node-value-stock-close",o(a.DS[2])],["%close",o(a.DS[2])],["%v3",o(a.DS[2])]],e=a.b(e,i,t,n)},AA1:function(){var e,i,t=this;if(t.DS=[],t.o.value instanceof Array&&5===t.o.value.length)t.BV=ZC._f_(t.o.value[0]),null!==t.BV&&(null!==ZC._n_(t.A.K5[t.BV])&&-1!==ZC.AV(t.A.K5[t.BV],t.L)||t.A.V6(t.BV,t.L)),i=[t.o.value[1],t.o.value[2],t.o.value[3],t.o.value[4]];else if(t.o.value[1]instanceof Array){if("string"==typeof t.o.value[0]){var n=ZC.AV(t.A.B0.IT,t.o.value[0]);-1!==n?t.BV=n:(t.A.B0.IT.push(t.o.value[0]),t.BV=t.A.B0.IT.length-1)}else t.BV=ZC._f_(t.o.value[0]);null!==t.BV&&(null!==ZC._n_(t.A.K5[t.BV])&&-1!==ZC.AV(t.A.K5[t.BV],t.L)||t.A.V6(t.BV,t.L)),i=t.o.value[1]}else i=t.o.value;t.CL=i.join(" "),t.AD=ZC._f_(i[0]),null!==ZC._n_(e=i[1])&&t.DS.push(ZC._f_(e)),null!==ZC._n_(e=i[2])&&t.DS.push(ZC._f_(e)),null!==ZC._n_(e=i[3])&&t.DS.push(ZC._f_(e))},ABF:function(){var e=this,i={};return e.DS[2]1&&(u>1?c=(C-(l-1)*A+(l-1)*u)/l:u*=c=(C-(l-1)*A)/(l-(l-1)*u)),c=ZC._l_(c,1,C);var p=i.iX-n/2+r+a*(c+A)-a*u;p=ZC._l_(p,i.iX-n/2+r,i.iX+n/2-s);var Z,h=c,d=ZC.CY(i.E.X9,i.E.VA),f=ZC.BQ(i.E.X9,i.E.VA)-ZC.CY(i.E.X9,i.E.VA);if(f<2&&(f=2),r+s===0&&(p-=.5,h+=1),i.I=h,i.F=f,i.iX=p,i.E.A7P=d+f/2,i.setNodeData({x:p,y:d,w:h,h:f}),i.AN){Z=ZC.Q.EC(i.H.usc()?i.H.K+"-main-c":i.H.KA?i.C.K+"-plots-bl-c":i.C.K+"-plot-"+i.A.L+"-bl-1-c",i.H.AC);var _,g=i.iX+i.I/2;i.DS[2]i.AD&&(e=i.A.o["trend-up"])?(i.E["selected-state"]=e["selected-state"],i.E["background-state"]=e["background-state"]):i.DS[2]===i.AD&&(e=i.A.o["trend-equal"])&&(i.E["selected-state"]=e["selected-state"],i.E["background-state"]=e["background-state"]);var v=i.A.IG(i,i.J1);switch(i.A.CW){default:var b,B;(_=[]).push([g,i.E.A9I],[g,ZC.CY(i.E.X9,i.E.VA)],null,[g,i.E.AAV],[g,ZC.BQ(i.E.X9,i.E.VA)]),ZC.CR.paint(Z,v,_),B=i.DS[2]i.AD?i.A.ACM:i.A.AB7,0!==i.A.E7.length||void 0===B||i.O.o.override||i.C.KJ?(b=new ZC.HQ(i.A)).copy(v):b=B,i.H4(b),b.Z=i.A.CQ("bl",1),b.C7=i.A.CQ("bl",0),b.K=i.K,b.iX=p,b.iY=d,b.I=i.I,b.F=i.F,b.paint(),0!==i.A.E7.length||void 0!==B||i.O.o.override||i.C.KJ||(i.DS[2]i.AD?i.A.ACM=b:i.A.AB7=b);break;case"whisker":case"ohlc":_=[];var m=Math.max(i.I/4,4);_.push([g,i.E.A9I],[g,i.E.AAV],null,[g-m,i.E.X9],[g,i.E.X9],null,[g+m,i.E.VA],[g,i.E.VA]),i.H4(v),ZC.CR.paint(Z,v,_)}if(i.A.FU){var E=i.C.K+"-node-area "+i.C.K+"-plotset-plot-"+i.A.L+"-node-area zc-node-area";i.A.A.HE.push(ZC.Q.FS("rect",i.A.EA,i.A.IK)+'class="'+E+'" id="'+i.K+'" coords="'+ZC._i_(p+ZC.MAPTX)+","+ZC._i_(i.E.A9I+ZC.MAPTX)+","+ZC._i_(p+h+ZC.MAPTX)+","+ZC._i_(i.E.AAV+ZC.MAPTX)+'" />')}i.A.U&&i.A.U.AN&&i.GY()}},A12:function(){var e=this;if(!ZC.move&&e.A.IH&&e.A.AN)switch(e.b(),e.A.CW){case"candlestick":var i=new ZC.HQ(e.A);i.K=e.K+"-hover",i.Z=ZC.AL(e.C.K+"-hover-c"),i.C2=e.A.BP[0],i.AE=e.A.BP[3],i.B7=e.A.BP[1],i.BX=e.A.BP[1],i.A0=e.A.BP[2],i.append(e.A.IH.o),i.PU=!0,i.parse(),i.J5=function(i){return e.J5(i)},i.DF()&&i.parse(),e.DS[2]e.AD&&e.A.o["trend-up"]?(i.append(e.A.o["trend-up"]),i.append(e.A.o["hover-state"]),e.A.o["trend-up"]["hover-state"]&&i.append(e.A.o["trend-up"]["hover-state"]),i.parse()):e.DS[2]===e.AD&&e.A.o["trend-equal"]&&(i.append(e.A.o["trend-equal"]),i.append(e.A.o["hover-state"]),e.A.o["trend-equal"]["hover-state"]&&i.append(e.A.o["trend-equal"]["hover-state"]),i.parse()),i.iX=e.getNodeData("x"),i.iY=e.getNodeData("y"),i.I=e.getNodeData("w"),i.F=e.getNodeData("h");var t=e.C.P;i.iYt.iY+t.F&&(i.F=t.iY+t.F-i.iY),i.AN&&i.paint()}}}),ZC.A7E=ZC.LI.CC({setup:function(){var e=this,i=e.C.BM(e.A.BW("k")[0]),t=e.C.BM(e.A.BW("v")[0]),n=e.L%i.H3,a=Math.floor(e.L/i.H3),l=t.EK/(t.BD-t.AY);e.iX=i.iX+n*i.GK+i.GK/2,e.iY=i.iY+a*i.GF+i.GF/2,e.E.angle=t.DJ-t.EK/2+l*(e.AD-t.AY),t.AW&&(e.E.angle=t.DJ+t.EK/2-l*(e.AD-t.AY)),e.HZ||(e.copy(e.A),e.E7=e.A.E7,e.DF()&&e.parse(!1),e.HZ=!0)},AC7:function(e){var i,t,n,a=e.I,l=e.F,o=this,r=o.C.BM(o.A.BW("k")[0]),s=ZC.CY(r.GK/2,r.GF/2)*r.JF,C=o.L%r.H3,A=Math.floor(o.L/r.H3),c=r.iX+C*r.GK+r.GK/2+r.BK,u=r.iY+A*r.GF+r.GF/2+r.BI;switch(e.o.placement){case"center":t=c-a/2+o.BK,n=u-l/2+o.BI;break;case"edge":t=(i=ZC.AO.BN(c,u,s+e.DW,o.E.angle))[0]-a/2+o.BK,n=i[1]-l/2+o.BI;break;case"tip":t=(i=ZC.AO.BN(c,u,o.E.size+e.DW,o.E.angle))[0]-a/2+o.BK,n=i[1]-l/2+o.BI;break;default:t=(i=ZC.AO.BN(c,u,s/2+e.DW,o.E.angle))[0]-a/2+o.BK,n=i[1]-l/2+o.BI}return null!==ZC._n_(e.o.x)&&(t=e.iX),null!==ZC._n_(e.o.y)&&(n=e.iY),[ZC._i_(t),ZC._i_(n)]},ABF:function(){return{color:this.A0}},Y3:function(){return{"background-color":this.A0,"border-color":this.B7,color:this.C2}},paint:function(){var e,i=this;i.b(),i.setup(),i.D0=!1;var t=i.C.BM(i.A.BW("k")[0]),n=ZC.CY(t.GK/2,t.GF/2)*t.JF,a=i.L%t.H3,l=Math.floor(i.L/t.H3),o=t.iX+a*t.GK+t.GK/2+t.BK,r=t.iY+l*t.GF+t.GF/2+t.BI,s=ZC.IL(i.A.o.size||"0.9",!1);s>0&&s<=1&&(s*=n),i.E.size=s;var C=i.O=i.A.IG(i,i),A=new ZC.DQ(i.A);function c(t){var a=[],l=i.A.I0;l[4]>-1&&l[4]<1&&(l[4]=ZC._i_(l[4]*n));var C=ZC.AO.BN(o,r,l[4],t);if(l[0]>=0)for(e=-l[2];e<=180+l[2];e+=5)a.push(ZC.AO.BN(C[0],C[1],l[0],t+270-e));else a.push(ZC.AO.BN(C[0],C[1],ZC._a_(l[0]),t-90)),a.push(ZC.AO.BN(C[0],C[1],ZC._a_(l[0]),t+90));if(0===l[1])a.push(ZC.AO.BN(o,r,s>0?s:.9*n,t));else if(l[1]>0)for(C=ZC.AO.BN(o,r,s>0?s:.9*n,t),e=-l[3];e<=180+l[3];e+=5)a.push(ZC.AO.BN(C[0],C[1],l[1],t-270-e));else C=ZC.AO.BN(o,r,(s>0?s:.9*n)+l[1],t),a.push(ZC.AO.BN(C[0],C[1],ZC._a_(l[1]/(90/l[3])),t+90),ZC.AO.BN(C[0],C[1],ZC._a_(l[1]),t+90),ZC.AO.BN(o,r,s>0?s:.9*n,t),ZC.AO.BN(C[0],C[1],ZC._a_(l[1]),t+270),ZC.AO.BN(C[0],C[1],ZC._a_(l[1]/(90/l[3])),t+270));return a.push([a[0][0],a[0][1]]),a}function u(){var e=A.FG(),t=i.C.K+"-node-area "+i.C.K+"-plotset-plot-"+i.A.L+"-node-area zc-node-area",n=ZC.Q.FS("poly",i.A.EA,i.A.IK)+'class="'+t+'" id="'+i.K+'" coords="'+e+'" />';i.A.A.HE.push(n)}A.copy(C),A.Z=i.A.CQ("bl",1),A.C7=i.A.CQ("bl",0),A.K=i.K+"-arrow";var p=i.C.BM(i.A.BW("v")[0]),Z=p.DJ-p.EK/2,h=c(i.E.angle);if(i.E.points=h,A.DV="poly",A.D=h,A.parse(),A.J5=function(e){return i.J5(e)},A.DF()&&A.parse(),i.A.GE&&!i.C.HJ){var d,f=A,_={},g=i.A.LA;for(d in f.C5=0,_.alpha=C.C5,2===g&&(f.A2H=Z,_.A2H=i.E.angle),i.A.FY)f[ZC.E6.GM[ZC.EF(d)]]=i.A.FY[d],_[ZC.EF(d)]=C[ZC.E6.GM[ZC.EF(d)]];if(i.C.EO||(i.C.EO={}),null!==ZC._n_(i.C.EO[i.A.L+"-"+i.L]))for(d in i.C.EO[i.A.L+"-"+i.L]){var v=ZC.E6.GM[ZC.EF(d)];null===ZC._n_(v)&&(v=d),f[v]=i.C.EO[i.A.L+"-"+i.L][d]}i.C.EO[i.A.L+"-"+i.L]={},ZC._cp_(_,i.C.EO[i.A.L+"-"+i.L]);var b=new ZC.E6(f,_,i.A.JG,i.A.L8,ZC.E6.RL[i.A.LB],function(){u()});b.AX=i,b.A0B=function(e,i){null!==ZC._n_(i.A2H)&&(e.D=c(i.A2H))},i.LS(b),i.A.U&&i.GY()}else A.paint(),i.A.U&&i.GY(),u()},A12:function(e){var i=this;ZC.move||i.M8({layer:e,type:"shape",initcb:function(){this.copy(i),this.B7=i.A.BP[1],this.BX=i.A.BP[1],this.A0=i.A.BP[3],this.AE=i.A.BP[2],this.D=i.E.points,this.Z=this.C7=i.A.CQ("bl",2)}})}}),ZC.A7F=ZC.LI.CC({$i:function(e){this.b(e);var i=this;i.C8=null,i.CB=null,i.MO="min"},JX:function(e,i,t,n){var a=this;return a.CV=[["%range-set",a.MO],["%node-min-value",a.C8],["%node-max-value",a.CB]],e=a.b(e,i,t,n)},AA1:function(){var e,i,t=this;t.o.value[1]instanceof Array?("string"==typeof t.o.value[0]?-1!==(i=ZC.AV(t.A.B0.IT,t.o.value[0]))?t.BV=i:(t.A.B0.IT.push(t.o.value[0]),t.BV=t.A.B0.IT.length-1):t.BV=ZC._f_(t.o.value[0]),null!==t.BV&&(null!==ZC._n_(t.A.K5[t.BV])&&-1!==ZC.AV(t.A.K5[t.BV],t.L)||t.A.V6(t.BV,t.L)),e=t.o.value[1]):e=t.o.value,"string"==typeof e[0]?-1!==(i=ZC.AV(t.A.CN.JN,e[0]))?t.C8=i:(t.A.CN.JN.push(e[0]),t.C8=t.A.CN.JN.length-1):t.C8=ZC._f_(e[0]),t.DS.push(t.C8),"string"==typeof e[1]?-1!==(i=ZC.AV(t.A.CN.JN,e[1]))?t.CB=i:(t.A.CN.JN.push(e[1]),t.CB=t.A.CN.JN.length-1):t.CB=ZC._f_(e[1]),t.CL=e.join(" "),t.AD=t.CB},setup:function(){var e=this,i=e.A.NE,t=e.A.B0,n=e.A.CN,a=[t.W,t.A1,n.W,n.A1,e.MO];if(null===ZC._n_(e.AH)&&(e.AH=[]),e.A.bFastRange&&(e.E.points=null,e.E.pointsarea=null),e.JQ!==a&&(i?(null!==e.BV?e.iY=t.AR(e.BV):e.iY=t.IE(e.L),e.iX=n.AR("min"===e.MO?e.C8:e.CB)):(null!==e.BV?e.iX=t.AR(e.BV):e.iX=t.IE(e.L),e.iY=n.AR("min"===e.MO?e.C8:e.CB)),e.JQ=a),e.A.bFastRange)e.HZ=!1;else if(!e.HZ){ZC.DP(e.iX,e.C.P.iX-10,e.C.P.iX+e.C.P.I+10)&&ZC.DP(e.iY,e.C.P.iY-10,e.C.P.iY+e.C.P.F+10)&&(e.copy(e.A),e.E7=e.A.E7,e.DF()&&e.parse(),e.HZ=!0)}e.E.NF=n.AR(e.C8),e.E.R7=n.AR(e.CB)},ABF:function(){return this.A.bFastRange?{color:this.A.B7}:{color:this.B7}},Y3:function(){return this.A.bFastRange?{"background-color":this.A.B7,"border-color":this.A.B7,color:this.A.C2}:{"background-color":this.O.B7,"border-color":this.O.B7,color:this.O.C2}},paint:function(){var e,i=this;i.b();var t=i.A.B0,n=i.A.O8,a=i.A.NE,l=i.A.R;if(i.setup(),!i.A.bFastRange){null!==ZC._n_(i.A.o[i.MO+"-line"])&&(i.append(i.A.o[i.MO+"-line"]),i.parse()),i.D0=!1,i.C7=i.A.CQ("bl",1);var o,r,s,C,A,c,u,p,Z,h,d,f,_,g=[],v=[];switch(i.A.CW){default:var b=!0;!t.EG&&i.L<=t.W&&(b=!1),l[i.L-i.A.Y]||(b=!1),b&&(l[i.L-i.A.Y].MO=i.MO,l[i.L-i.A.Y].setup(),a?(r=[i.E.NF,i.iY],s=[l[i.L-i.A.Y].E.NF,l[i.L-i.A.Y].iY],C=[i.E.R7,i.iY],A=[l[i.L-i.A.Y].E.R7,l[i.L-i.A.Y].iY],c=ZC.AO.A5J(r,s,C,A),o=ZC.DP(c[1],l[i.L-i.A.Y].iY,i.iY)?c:ZC.AO.JW(l[i.L-i.A.Y].iX,l[i.L-i.A.Y].iY,l[i.L].iX,l[i.L].iY),v.push([o[0],ZC._i_(o[1])]),g.push([o[0],o[1]])):(r=[i.iX,i.E.NF],s=[l[i.L-i.A.Y].iX,l[i.L-i.A.Y].E.NF],C=[i.iX,i.E.R7],A=[l[i.L-i.A.Y].iX,l[i.L-i.A.Y].E.R7],c=ZC.AO.A5J(r,s,C,A),o=ZC.DP(c[0],l[i.L-i.A.Y].iX,i.iX)?c:ZC.AO.JW(l[i.L-i.A.Y].iX,l[i.L-i.A.Y].iY,l[i.L].iX,l[i.L].iY),v.push([ZC._i_(o[0]),o[1]]),g.push([o[0],o[1]]))),a?v.push([i.iX,ZC._i_(i.iY)]):v.push([ZC._i_(i.iX),i.iY]),g.push([i.iX,i.iY]);var B=!0;!t.EG&&i.L>=t.A1&&(B=!1),l[i.L+i.A.Y]||(B=!1),B&&(l[i.L+i.A.Y].MO=i.MO,l[i.L+i.A.Y].setup(),a?(r=[i.E.NF,i.iY],s=[l[i.L+i.A.Y].E.NF,l[i.L+i.A.Y].iY],C=[i.E.R7,i.iY],A=[l[i.L+i.A.Y].E.R7,l[i.L+i.A.Y].iY],c=ZC.AO.A5J(r,s,C,A),o=ZC.DP(c[1],l[i.L+i.A.Y].iY,i.iY)?c:ZC.AO.JW(l[i.L].iX,l[i.L].iY,l[i.L+i.A.Y].iX,l[i.L+i.A.Y].iY),v.push([o[0],ZC._i_(o[1])]),g.push([o[0],o[1]])):(r=[i.iX,i.E.NF],s=[l[i.L+i.A.Y].iX,l[i.L+i.A.Y].E.NF],C=[i.iX,i.E.R7],A=[l[i.L+i.A.Y].iX,l[i.L+i.A.Y].E.R7],c=ZC.AO.A5J(r,s,C,A),o=ZC.DP(c[0],l[i.L+i.A.Y].iX,i.iX)?c:ZC.AO.JW(l[i.L].iX,l[i.L].iY,l[i.L+i.A.Y].iX,l[i.L+i.A.Y].iY),v.push([ZC._i_(o[0]),o[1]]),g.push([o[0],o[1]])));break;case"spline":if("undefined"==typeof i.E["intersect.index"]&&(i.E["intersect.index"]=-1,l[i.L+i.A.Y])){var m=[],E=[],D=[];for(u=-1;u<3;u++)l[i.L+u]?(l[i.L+u].setup(),m.push(l[i.L+u].E.NF),D.push(l[i.L+u].E.R7),a?E.push(l[i.L+u].iY):E.push(l[i.L+u].iX)):(m.push(i.E.NF),D.push(i.E.R7),a?E.push(i.iY):E.push(i.iX));Z=ZC._a_(E[2]-E[1]);var F=ZC.AO.YC(i.A.QD,m,ZC._i_(Z)),K=ZC.AO.YC(i.A.QD,D,ZC._i_(Z));if(l[i.L+i.A.Y].C8===l[i.L+i.A.Y].CB)i.E["intersect.index"]=F.length;else{var I=F[0][1]-K[0][1];for(u=1,p=F.length;u=0;u--)i.AH.push(i.A.S4.max[u]);if(null!==ZC._n_(e=i.A.S4.min))for(u=0,p=e.length;u=0;u--)i.AH.push(v[u]);if("max"===i.MO){var Y=new ZC.DQ(i.A);Y.K=i.K+"-area",Y.Z=i.A.CQ("bl",0),Y.copy(i.O),Y.B1=0,Y.AU=0,Y.ET=0,Y.G2=0,Y.parse(),Y.D=i.AH,Y.C5=i.A.HO;var X=i.C.P;for(Y.D2=[X.iX,X.iY,X.iX+X.I,X.iY+X.F],Y.paint(),i.E.pointsarea=[],u=0,p=i.AH.length;u'))}"min"===i.MO?i.E.points=g:(i.E.points.push(null),i.E.points=i.E.points.concat(g));var M=new ZC.CZ(i);M.copy(i.O),M.append(i.A.o[i.MO+"-line"]),M.K=i.K+"-line",M.parse(),ZC.CR.setup(n,M),ZC.CR.paint(n,M,g),"max"===i.MO&&i.paintPreview(i,i.E.points,i.E.pointsarea);if(a?ZC.DP(i.iY,t.iY-1,t.iY+t.F+1)&&ZC.DP(i.iX,t.iX-1,t.iX+t.I+1):ZC.DP(i.iX,t.iX-1,t.iX+t.I+1)&&ZC.DP(i.iY,t.iY-1,t.iY+t.F+1)){var O=new ZC.DQ(i.A);O.K=i.K+"-marker-"+i.MO,O.Z=O.C7=i.A.CQ("fl",0),O.iX=i.iX,O.iY=i.iY,O.B7=i.A.BP[3],O.BX=i.A.BP[3],O.A0=i.A.BP[2],O.AE=i.A.BP[2],O.append(i.A.A2.o),i.A.o[i.MO+"-marker"]&&O.append(i.A.o[i.MO+"-marker"]),O.parse(),O.J5=function(e){return i.J5(e)},O.DF()&&O.parse(),O.AN&&"none"!==O.AF&&(i.A.MV>t.A1-t.W&&O.paint(),i.E["marker.type"]=O.DV,f=i.C.K+"-node-area "+i.C.K+"-plotset-plot-"+i.A.L+"-node-area zc-node-area",t.AW&&g.reverse(),i.A.FU&&(""!==(_=ZC.AO.PE(ZC.AO.YZ(i.E.points),4))?i.A.A.HE.push(ZC.Q.FS("poly",i.A.EA,i.A.IK)+'class="'+f+'" '+i.a11y()+' id="'+i.K+"--"+i.MO+'" coords="'+_+'" />'):i.A.A.HE.push(ZC.Q.FS("circle",i.A.EA,i.A.IK)+'class="'+f+'" '+i.a11y()+' id="'+i.K+"--"+i.MO+'" coords="'+ZC._i_(O.iX+ZC.MAPTX)+","+ZC._i_(O.iY+ZC.MAPTX)+","+ZC._i_(1.5*ZC.BQ(3,O.AI))+'" />'))),i.A.U&&i.A.U.AN&&i.GY()}}},paintPreview:function(e,i,t){var n=this;if(n.C.B9&&n.C.B9.HZ&&n.A.QQ){var a,l=n.C.P,o=n.C.B9,r=n.A.mapPointsToPreview(t),s=new ZC.DQ(n.A);s.copy(e),s.D0=!0,s.L7=!0,s.B1=0,s.AU=0,s.ET=0,s.G2=0,s.C5=n.A.HO,s.D2=[l.iX,l.iY,l.iX+l.I,l.iY+l.F],s.K=n.K+"-area-preview",s.Z=o.Z,s.D=r,s.paint();var C=n.A.mapPointsToPreview(i);n.A.VU?a=n.A.VU:(a=new ZC.CZ(n),n.A.VU=a),a.copy(e);var A=ZC.Q.EC(o.Z,n.H.AC);a.B1=1,ZC.CR.paint(A,a,C,null,3)}},A12:function(){var e=this,i=e.A.NE;if(!ZC.move){var t=e.A.B0;if(e.A.GA&&e.A.AN){var n=ZC.Q.EC(e.C.K+"-hover-c",e.H.AC),a=new ZC.DQ(e.A);if(a.K=e.K+"-area-hover",a.Z=ZC.AL(e.C.K+"-hover-c"),a.L7=!0,a.copy(e),a.append(e.A.IH.o),a.D=e.E.pointsarea||[],a.parse(),a.AN){a.C5=e.A.HO;var l=e.C.P;a.D2=[l.iX,l.iY,l.iX+l.I,l.iY+l.F],ZC.CR.setup(n,a),a.paint()}var o=ZC.Q.EC(e.C.K+"-hover-c",e.H.AC),r=new ZC.CZ(e.A);r.K=e.K+"-line-hover",r.D0=!1,r.B7=e.A.BP[3],r.append(e.A.IH.o),r.parse(),r.J5=function(i){return e.J5(i)},r.DF()&&r.parse(),r.AN&&(ZC.CR.setup(o,r),ZC.CR.paint(o,r,e.E.points||[]))}if(e.A.MV>t.A1-t.W&&e.A.GA&&e.A.AN){e.b();var s=new ZC.DQ(e.A);s.K=e.K+"-marker-max-hover",s.Z=ZC.AL(e.C.K+"-hover-c"),s.DV=e.E["marker.type"],i?(s.iY=e.iY,s.iX=e.E.R7):(s.iX=e.iX,s.iY=e.E.R7),s.B7=e.A.BP[3],s.BX=e.A.BP[3],s.A0=e.A.BP[2],s.AE=e.A.BP[2],s.append(e.A.GA.o),s.parse(),s.J5=function(i){return e.J5(i)},s.DF()&&s.parse(),s.AN&&"none"!==s.AF&&s.paint(),s.K=e.K+"-marker-min-hover",i?s.iX=e.E.NF:s.iY=e.E.NF,s.AN&&"none"!==s.AF&&s.paint()}}}}),ZC.A7K=ZC.LI.CC({bCXY:!0,U:null,$i:function(e){this.b(e)},parse:function(){this.b()},AB3:function(){this.b();var e=this.C.E;e.update.npv=e.update["node-percent-value"]=this.JX("%npv")},JX:function(e,i,t,n){var a=this,l=a.A.MT();ZC._cp_(i,l),-1===e.indexOf("%npv")&&-1===e.indexOf("%node-percent-value")||null!==ZC._n_(l.decimals)&&-1!==l.decimals||(l.decimals=1);var o=0,r="0";if(a.A.A.KO[a.L]>0&&(r=""+(o=100*a.AD/a.A.A.KO[a.L])),a.A.A.A3.length>1&&a.A.L===a.A.A.A3.length-1){var s=0;if(null===ZC._n_(a.A.o.totals)){for(var C=0;C0&&(c=""+(A=100*a.A.A.A3[C].R[a.L].AD/a.A.A.KO[a.L])),null!==ZC._n_(l.decimals)&&(c=A.toFixed(ZC.BQ(0,ZC._i_(l.decimals)))),s+=ZC._f_(c)}r=""+(o=Math.max(0,100-s))}}null!==ZC._n_(l.decimals)&&(r=o.toFixed(ZC.BQ(0,ZC._i_(l.decimals))));var u,p=ZC._f_(a.A.A.KO[a.L]||"0");return u=ZC.AQ.G4(p,l,a.A),a.CV=[["%node-percent-value",r],["%npv",r],["%pie-total-value",u]],e=a.b(e,i,t,n)},V4:function(e){var i,t=this,n=(t.B4+t.BL)/2%360,a=0;null!==ZC._n_(i=e["offset-r"])&&(a=ZC._f_(ZC._p_(i))),a<1&&(a*=t.AI);var l=new ZC.CF(t.C,(t.CO+.5*(t.AI-t.CO)+t.DW+a)*ZC.EI(n),(t.CO+.5*(t.AI-t.CO)+t.DW+a)*ZC.EP(n),0).ED;return[l[0],l[1],{reference:t,center:!0}]},setup:function(){var e=this,i=e.C.BM(e.A.BW("k")[0]),t=e.L%i.H3,n=Math.floor(e.L/i.H3);e.iX=i.iX+t*i.GK+i.GK/2+i.BK,e.iY=i.iY+n*i.GF+i.GF/2+i.BI,e.HZ||(e.copy(e.A),e.E7=e.A.E7,e.DF()&&e.parse(),e.HZ=!0)},ABF:function(e){var i={},t="out";return null!==ZC._n_(e.o.placement)&&(t=e.o.placement),i.color="out"===t?this.A0:this.C2,i},AC7:function(e){var i,t=this,n="out";null!==ZC._n_(i=e.o.placement)&&(n=i);var a,l,o,r,s,C=e.I,A=e.F,c=(t.B4+t.BL)/2%360,u=c;if("out"===n){c=u=t.A.A.YB["n"+t.L][t.A.L];var p=function(i,n){n<0&&(n=360+n),n%=360;var a=ZC.AO.BN(t.iX,t.iY,i+t.DW+e.DW+20,n),l=t.C.EZ["x-angle"];l>45&&t.A.A.A3.length>10&&(t.C.EZ["x-angle"]=45+(l-45)/3),s=new ZC.CF(t.C,a[0]-ZC.AP.E4,a[1]-ZC.AP.E5,0),t.C.EZ["x-angle"]=l,a[0]=s.ED[0],a[1]=s.ED[1];var o=a[0]+e.BK-C/2,r=a[1]+e.BI-A/2;return n>=0&&n<=90||n>=270&&n<=360?o+=C/2+10:o-=C/2+10,[o,r]},Z=p(t.AI,u);a=Z[0],l=Z[1],t.U=e;var h={x:a,y:l,width:C,height:A},d=zingchart.DEV.SPREADTYPE;r=!0;for(var f=0,_=0,g=-1,v=0,b=0;r&&b<1024;){r=!1;for(var B=0,m=t.A.A.TO.length;B10?-8:-2)||h.x+e.I>t.C.P.iX+t.C.P.I||h.xt.C.P.iY+t.C.P.F||h.y100&&(v=0,0===d?(f=0,_+=4):1===d&&(_=0,f+=1,g*=-1)))}a=h.x,l=h.y,c=u+f,o={text:t.A.AM,x:h.x,y:h.y,width:C,height:A,plotindex:t.A.L,nodeindex:t.L},t.A.A.TO.push(o)}else if("in"===n){var E=t.CO<30?.65:.5,D=ZC.AO.BN(t.iX,t.iY,t.CO+E*(t.AI-t.CO)+t.DW+e.DW,c);s=new ZC.CF(t.C,D[0]-ZC.AP.E4,D[1]-ZC.AP.E5,0),D[0]=s.ED[0],D[1]=s.ED[1],a=D[0]+e.BK-C/2,l=D[1]+e.BI-A/2}else"center"===n&&(a=(s=new ZC.CF(t.C,t.iX-ZC.AP.E4,t.iY-ZC.AP.E5,0)).ED[0]+e.BK-C/2,l=s.ED[1]+e.BI-A/2);return r&&(a=-9999,l=-9999,e.AN=!1),null!==ZC._n_(e.o.x)&&(a=e.iX),null!==ZC._n_(e.o.y)&&(l=e.iY),a>=-2&&(a=ZC._a_(a)),l>=-2&&(l=ZC._a_(l)),[ZC._i_(a),ZC._i_(l),c]},GY:function(e,i){var t,n=this,a=n.b(e,i);if(e)return a;if(n.AN&&a.AN&&null!==ZC._n_(a.AM)&&""!==a.AM){var l="out";if(null!==ZC._n_(a.o.placement)&&(l=a.o.placement),"out"===l){var o=!0;if(null!==ZC._n_(t=a.o.connected)&&(o=ZC._b_(t)),o){var r=new ZC.DQ(n.A);r.Z=r.C7=n.A.CQ("bl",0),r.append(n.A.C3.o),r.B7=n.A0,r.DV="line",r.D=[];var s=a.E.positioninfo,C=(n.B4+n.BL)/2%360,A=0;C>=0&&C<=180&&(A=n.E.thickness/2);var c=ZC.AO.BN(n.iX,n.iY,n.AI+n.DW+a.DW,C);(c=new ZC.CF(n.C,c[0]-ZC.AP.E4,c[1]-ZC.AP.E5,A).ED)[0]+=n.BK,c[1]+=n.BI,r.D.push(c);var u=ZC.AO.BN(n.iX,n.iY,n.AI+n.DW+a.DW+20,C);(u=new ZC.CF(n.C,u[0]-ZC.AP.E4,u[1]-ZC.AP.E5,A).ED)[0]+=n.BK,u[1]+=n.BI,a.iX>=n.iX?r.D.push([u[0],u[1],s[0],s[1]+a.F/2]):r.D.push([u[0],u[1],s[0]+a.I+2,s[1]+a.F/2]),r.parse(),r.J5=function(e){return n.J5(e)},r.DF()&&r.parse(),r.AN&&r.paint()}}}},paint:function(){var e,i,t,n,a,l,o,r,s,C=this,A=C.C.CM,c=C.C.BM(C.A.BW("k")[0]),u=C.C.EZ["x-angle"],p=C.C.EZ["y-angle"];C.setup();var Z="pie-sel-"+C.A.L+"-"+C.L;if("undefined"!=typeof C.o.detached&&(C.C.E[Z]=ZC._b_(C.o.detached)),!(C.AD<0)){var h=ZC.BQ(.7,ZC.EI(u));C.AI=ZC.CY(c.GF/h,c.GK)/2,null!==ZC._n_(C.A.o.size)?C.AI=C.A.AI:C.AI=c.JF*C.AI,C.CO<1&&(C.CO*=C.AI),C.CO=Math.max(0,C.CO),C.o.slice=C.CO,C.DW<1&&(C.DW*=C.AI),C.o["offset-r"]=C.DW;var d=C.A.JI;-1===d&&(d=C.AI/5),C.E.thickness=d;var f=C.iX-ZC.AP.E4,_=C.iY-ZC.AP.E5;C.B4=ZC._i_(C.B4),C.BL=ZC._i_(C.BL);var g=(C.B4+C.BL)/2;C.C.E[Z]&&(C.DW+=ZC._i_(.15*C.AI)),C.DW>0&&(f+=C.DW*ZC.EI(g),_+=C.DW*ZC.EP(g));var v=C.O=C.A.IG(C,C);v.DG=C.K+"-3dfacet";var b=new ZC.CZ(C);if(b.copy(v),b.A0=ZC.AQ.JO(ZC.AQ.GC(b.A0)),b.AE=ZC.AQ.JO(ZC.AQ.GC(b.AE)),C.AD>=0||0===C.A.A.KO[C.L]){for(o=[],e=C.B4,o.push([f+C.CO*ZC.EI(e),_+C.CO*ZC.EP(e),0]),e=C.B4;e<=C.BL;e+=1)o.push([f+C.AI*ZC.EI(e),_+C.AI*ZC.EP(e),0]);for(e=C.BL,o.push([f+C.CO*ZC.EI(e),_+C.CO*ZC.EP(e),0]),e=C.BL;e>=C.B4;e-=1)o.push([f+C.CO*ZC.EI(e),_+C.CO*ZC.EP(e),0]);if((i=ZC.DK.D9(v,C.C,o)).K=C.K+"-facet1",A.add(i),t=null,C.B4%360>=0+p&&C.B4%360<180+p||C.BL%360>0+p){r=C.B4,s=C.BL;var B=function(e,i,n){var a,l=[];for(a=e,l.push([f+C.AI*ZC.EI(a),_+C.AI*ZC.EP(a),0]),a=e;a<=i;a+=1)l.push([f+C.AI*ZC.EI(a),_+C.AI*ZC.EP(a),0]);for(a=i,l.push([f+C.AI*ZC.EI(a),_+C.AI*ZC.EP(a),d]),a=i;a>=e;a-=1)l.push([f+C.AI*ZC.EI(a),_+C.AI*ZC.EP(a),d]);(t=ZC.DK.D9(b,C.C,l)).ME=[.01,1,1,1],t.K=C.K+"-facet2"+n,A.add(t)};r<180&&s>360?(B(r=r<0?r+360:r,180,1),B(360,s,2)):(r=ZC.BQ(r,s>360?365:5),(s=ZC.CY(s,s>360?535:175))>r&&B(r,s,1))}if(l=null,C.CO>0+p&&C.BL>180+p){for(o=[],e=C.B4,r=C.B4,C.B4<180+p&&C.BL>180+p&&(e=180+p,r=180+p),o.push([f+C.CO*ZC.EI(e),_+C.CO*ZC.EP(e),0]),e=r;e<=C.BL;e+=1)o.push([f+C.CO*ZC.EI(e),_+C.CO*ZC.EP(e),0]);for(e=C.BL,o.push([f+C.CO*ZC.EI(e),_+C.CO*ZC.EP(e),d]),e=C.BL;e>=r;e-=1)o.push([f+C.CO*ZC.EI(e),_+C.CO*ZC.EP(e),d]);(l=ZC.DK.D9(b,C.C,o)).K=C.K+"-facet3",A.add(l)}var m=function(e,i,t){return[[f+e*ZC.EI(t),_+e*ZC.EP(t),0],[f+e*ZC.EI(t),_+e*ZC.EP(t),d],[f+i*ZC.EI(t),_+i*ZC.EP(t),d],[f+i*ZC.EI(t),_+i*ZC.EP(t),0]]};(n=ZC.DK.D9(b,C.C,{points:m(C.CO,C.AI,C.B4),mathpoints:m(C.CO+1,C.AI+1,C.B4-1)})).K=C.K+"-facet4",A.add(n),(a=ZC.DK.D9(b,C.C,{points:m(C.CO,C.AI,C.BL),mathpoints:m(C.CO+1,C.AI+1,C.BL+1)})).K=C.K+"-facet5",A.add(a);var E=C.C.K+"-node-area "+C.C.K+"-plotset-plot-"+C.A.L+"-node-area zc-node-area",D=ZC.Q.FS("poly",C.A.EA)+'class="'+E+'" id="'+C.K,F=C.A.A.HE;F.push(D+'--top" '+C.a11y()+' data-z-sort="1" coords="'+i.FG()+'" />'),t&&F.push(D+'--outer" data-z-sort="1" coords="'+t.FG()+'" />'),(C.CO>0||C.DW>0)&&(l&&F.push(D+'--inner" data-z-sort="2" coords="'+l.FG()+'" />'),F.push(D+'--start" data-z-sort="2" coords="'+n.FG()+'" />',D+'--end" data-z-sort="2" coords="'+a.FG()+'" />'))}C.A.U&&C.GY()}},X4:function(e,i){var t=this;if(t.b(e,i),"click"===i&&e.which<=1&&t.A.A7S){var n="pie-sel-"+t.A.L+"-"+t.L;t.C.E[n]="undefined"==typeof t.C.E[n]||!t.C.E[n],t.C.K9()}}}),ZC.A6V=ZC.ZH.CC({setup:function(){this.T6()},V4:function(){var e=this;e.paint(!0);var i=e.C.BM(e.A.BW("v")[0]),t=e.iX+e.I/2,n=e.iY+(i.AW?e.F:0),a=new ZC.CF(e.C,t-ZC.AP.E4,n-ZC.AP.E5,e.A.E["z-start"]);return[ZC._i_(a.ED[0]),ZC._i_(a.ED[1]),{reference:e,center:!0}]},AC7:function(e){var i=this,t=i.b(e);if("-1/-1"!==t.join("/")){var n=new ZC.CF(i.C,t[0]+e.I/2-ZC.AP.E4,t[1]+e.F/2-ZC.AP.E5,i.A.E["z-mid"]);return[ZC._i_(n.ED[0])-e.I/2,ZC._i_(n.ED[1])-e.F/2]}return t},paint:function(e){var i,t=this;t.b(),void 0===e&&(e=!1);var n=t.C.CM,a=t.A.B0,l=t.A.CN;t.setup();var o,r,s,C,A,c,u,p,Z,h,d,f,_,g,v,b,B=t.A.SP(),m=B.AB,E=B.EU,D=B.CG,F=B.CT,K=B.F4,I=B.D4,x=B.F0;if(e?E=t.A.E["node-"+t.L+"-bar-index"]:t.A.E["node-"+t.L+"-bar-index"]=B.EU,t.A.CE){s=0;var w=t.A.A.KE[E];for(o=0;o0&&(t.CP!==t.AD&&(L=(s-t.CP+t.AD)/s),Y=(s-t.CP)/s),l.AW){var X=L;L=Y,Y=X}t.A.LR&&(E=t.L);var M=t.iX-m/2+D+E*(I+K)-E*x;if(M=ZC._l_(M,t.iX-m/2+D,t.iX+m/2-F),t.A.D4>0){var O=I;(I=t.A.D4)<=1&&(I*=O),M+=(O-I)/2}var P=I,H=t.iY,N=null!==ZC._n_(t.A.LX[t.L])?t.A.LX[t.L]:0;if(H=t.A.CE&&"100%"===t.A.KR?l.AR(100*(t.CP+N)/t.A.A.F8[t.L]["%total-"+t.A.E0]):l.AR(t.CP+N),t.A.CE?(A=H-(C="100%"===t.A.KR?l.AR(100*(t.CP-t.AD+N)/t.A.A.F8[t.L]["%total-"+t.A.E0]):l.AR(t.CP-t.AD+N)),t.AD<0&&(H=C),l.AW?A>0&&(A=ZC._a_(A),H=C):A<0&&(H=C-(A=ZC._a_(A)))):H=(A=H-(C=l.AR(N)))<0?C-(A=ZC._a_(A)):C,D+F===0&&(M-=.5,P+=1),t.I=P,t.F=A,t.iX=M,t.iY=H,l.AW?t.AD>=l.H9?t.iYVal=H+t.F:t.iYVal=H:t.AD>=l.H9?t.iYVal=H:t.iYVal=H+t.F,t.C.CX){var G="middle";t.C.CX.o.marker&&null!==ZC._n_(i=t.C.CX.o.marker.alignment)&&(G=i),null!==ZC._n_(t.A.o["guide-marker"])&&null!==ZC._n_(i=t.A.o["guide-marker"].alignment)&&(G=i),"node"===G&&(t.E.A5N=t.iX+t.I/2)}if(!e){var Q,k,R,z=M-ZC.AP.E4,T=H-ZC.AP.E5,V=0,S=ZC.AP.FX,J=0,W=S;if(t.A.A3N){if(k=V,"mixed3d"===t.C.AF||"mixed"===t.C.AF){for(Q=1,o=0,r=t.A.A.A3.length;oo&&J--);W/=Q,J=Q-J-1}k=J*W+.2*W,R=(J+1)*W-.2*W}if(null!==ZC._n_(t.A.o["z-start"])&&(k=ZC._i_(t.A.o["z-start"])),null!==ZC._n_(t.A.o["z-end"])&&(R=ZC._i_(t.A.o["z-end"])),null!==ZC._n_(t.A.o.depth)){var U=ZC._i_(t.A.o.depth);k=J*W+W/2-U,R=J*W+W/2+U}V=k,S=R-k,t.A.E["z-plots"]=Q,t.A.E["z-cnt"]=J,t.A.E["z-depth"]=W,t.A.E["z-start"]=k,t.A.E["z-mid"]=(k+R)/2;var j=t.O=t.A.IG(t,t.O);if(j.DG=t.K+"-3dfacet",t.A.HW&&(t.H4(j),j.parse()),j.AN){var q=new ZC.CZ(t);q.copy(j),q.A0=ZC.AQ.JO(ZC.AQ.GC(q.A0)),q.AE=ZC.AQ.JO(ZC.AQ.GC(q.AE)),q.BX=ZC.AQ.JO(ZC.AQ.GC(q.BX));var $=new ZC.CZ(t);$.copy(j),$.A0=ZC.AQ.JO(ZC.AQ.GC($.A0),15),$.AE=ZC.AQ.JO(ZC.AQ.GC($.AE),15),$.BX=ZC.AQ.JO(ZC.AQ.GC($.BX),15);var ee=new ZC.CZ(t);ee.copy(j);var ie=t.C.K+"-node-area "+t.C.K+"-plotset-plot-"+t.A.L+"-node-area zc-node-area",te=ZC.Q.FS("poly",t.A.EA,t.O.IK)+'class="'+ie+'" id="'+t.K,ne=t.C.EZ.true3d,ae=t.I/2,le=S/2,oe=L*ae,re=Y*ae,se=Y*le,Ce=L*le;l.AW&&!t.A.CE?(c=t.AD>=0?0:t.F,u=t.AD>=0?t.F:0):(c=t.AD>=0?t.F:0,u=t.AD>=0?0:t.F);var Ae=t.A.A.HE,ce=ZC.CY(le,ae),ue=t.C.EZ["y-angle"],pe=t.C.EZ.angle,Ze=ZC.EI(pe)*le,he=ZC.EP(pe)*le;ne||(ce=ZC.CY(2*Ze,ae));var de=function(e){var i=0,n=t.A.L,o=t.L,r=t.A.A.A3.length,s=t.A.R.length;switch((t.A.CE?"s":"")+(a.AW?"k":"")+(l.AW?"v":"")){case"":case"v":i=10*n+1e4*o+e;break;case"sv":i=10*(r-n)+1e4*o+e;break;case"k":i=10*n+1e4*(s-o)+e;break;case"skv":i=10*(r-n)+1e4*(s-o)+e;break;case"kv":i=10*n+1e4*(s-o)+e;break;case"s":i=10*n+1e4*o+e;break;case"sk":i=10*n+1e4*(s-o)+e}return i},fe=ZC.MAX,_e=-ZC.MAX,ge=ZC.MAX,ve=-ZC.MAX,be=ZC.MAX,Be=-ZC.MAX,me=ZC.MAX,Ee=-ZC.MAX;if("cylinder"===t.A.CW)for(b=0;b<=360;b+=4)(Z=new ZC.CF(t.C,z+ZC.EP(b)*ce+ae,T,V+ZC.EI(b)*ce+le)).ED[0]ve&&(ve=Z.ED[0],_e=b),(Z=new ZC.CF(t.C,z+ZC.EP(b)*ce+ae,T+t.F,V+ZC.EI(b)*ce+le)).ED[0]Ee&&(Ee=Z.ED[0],Be=b);var De=t.A.o.facets||{};switch(t.A.CW){default:De.bottom?((p=new ZC.CZ(t)).copy(q),p.append(De.bottom),p.parse(),_=ZC.DK.DC(p,t.C,z+.1,z+t.I-.1,T+t.F-.1,T+t.F-.1,V+.1,V+S-.1,"x")):_=ZC.DK.DC(q,t.C,z+.1,z+t.I-.1,T+t.F-.1,T+t.F-.1,V+.1,V+S-.1,"x"),_.K=t.K+"-facet1",_.G0=de(1),n.add(_),De.top?((p=new ZC.CZ(t)).copy(q),p.append(De.top),p.parse(),f=ZC.DK.DC(p,t.C,z+.1,z+t.I-.1,T+.1,T+.1,V+.1,V+S-.1,"x")):f=ZC.DK.DC(q,t.C,z+.1,z+t.I-.1,T+.1,T+.1,V+.1,V+S-.1,"x"),f.K=t.K+"-facet2",f.G0=de(3),n.add(f),De.left?((p=new ZC.CZ(t)).copy($),p.append(De.left),p.parse(),g=ZC.DK.DC(p,t.C,z+.1,z+.1,T+.1,T+t.F-.1,V+.1,V+S-.1,"z")):g=ZC.DK.DC($,t.C,z+.1,z+.1,T+.1,T+t.F-.1,V+.1,V+S-.1,"z"),g.K=t.K+"-facet3",g.G0=de(2),n.add(g),De.right?((p=new ZC.CZ(t)).copy($),p.append(De.right),p.parse(),v=ZC.DK.DC(p,t.C,z+t.I-.1,z+t.I-.1,T+.1,T+t.F-.1,V+.1,V+S-.1,"z")):v=ZC.DK.DC($,t.C,z+t.I-.1,z+t.I-.1,T+.1,T+t.F-.1,V+.1,V+S-.1,"z"),v.K=t.K+"-facet4",v.G0=de(4),n.add(v),De.front?((p=new ZC.CZ(t)).copy(ee),p.append(De.front),p.parse(),d=ZC.DK.DC(p,t.C,z+.1,z+t.I-.1,T+.1,T+t.F-.1,V+.1,V+.1,"y")):d=ZC.DK.DC(ee,t.C,z+.1,z+t.I-.1,T+.1,T+t.F-.1,V+.1,V+.1,"y"),d.K=t.K+"-facet5",d.G0=de(5),n.add(d),t.A.FU&&(1===Y&&Ae.push(te+'--top" coords="'+f.FG()+'" />'),Ae.push(te+'--left" coords="'+g.FG()+'" />',te+'--right" coords="'+v.FG()+'" />',te+'--front" coords="'+d.FG()+'" '+t.a11y()+' data-z-sort="-100" />'));break;case"pyramid":De.bottom?((p=new ZC.CZ(t)).copy(q),p.append(De.bottom),p.parse(),_=ZC.DK.DC(p,t.C,z+ae-oe,z+ae+oe,T+c,T+c,V+le-Ce,V+le+Ce,"x")):_=ZC.DK.DC(q,t.C,z+ae-oe,z+ae+oe,T+c,T+c,V+le-Ce,V+le+Ce,"x"),_.K=t.K+"-facet1",_.G0=de(l.AW&&!t.A.CE?6:1),n.add(_),h=[[z+ae-oe,T+c,V+le-Ce],[z+ae+oe,T+c,V+le-Ce]],t.A.CE&&0!==Y?h.push([z+ae+re,T+u,V+le-se],[z+ae-re,T+u,V+le-se]):h.push([z+ae,T+u,V+le]),De.front?((p=new ZC.CZ(t)).copy(j),p.append(De.front),p.parse(),d=ZC.DK.D9(p,t.C,h)):d=ZC.DK.D9(j,t.C,h),d.K=t.K+"-facet2",d.G0=de(3),n.add(d),h=[[z+ae-oe,T+c,V+le-Ce],[z+ae-oe,T+c,V+le+Ce]],t.A.CE&&0!==Y?h.push([z+ae-re,T+u,V+le+se],[z+ae-re,T+u,V+le-se]):h.push([z+ae,T+u,V+le]),De.left?((p=new ZC.CZ(t)).copy($),p.append(De.left),p.parse(),g=ZC.DK.D9(p,t.C,h)):g=ZC.DK.D9($,t.C,h),g.K=t.K+"-facet3",g.G0=de(2),n.add(g),h=[[z+ae+oe,T+c,V+le-Ce],[z+ae+oe,T+c,V+le+Ce]],t.A.CE&&0!==Y?h.push([z+ae+re,T+u,V+le+se],[z+ae+re,T+u,V+le-se]):h.push([z+ae,T+u,V+le]),De.right?((p=new ZC.CZ(t)).copy($),p.append(De.right),p.parse(),v=ZC.DK.D9(p,t.C,h)):v=ZC.DK.D9($,t.C,h),v.K=t.K+"-facet4",v.G0=de(4),n.add(v),t.A.CE&&0!==Y&&(h=[[z+ae-re,T+u,V+le-se],[z+ae-re,T+u,V+le+se],[z+ae+re,T+u,V+le+se],[z+ae+re,T+u,V+le-se]],De.top?((p=new ZC.CZ(t)).copy(q),p.append(De.top),p.parse(),f=ZC.DK.D9(p,t.C,h)):f=ZC.DK.D9(q,t.C,h),f.K=t.K+"-facet5",f.G0=de(5),n.add(f)),t.A.FU&&Ae.push(te+'--left" coords="'+g.FG()+'" />',te+'--right" coords="'+v.FG()+'" />',te+'--front" coords="'+d.FG()+'" '+t.a11y()+' data-z-sort="-100" />');break;case"cylinder":if(h=[],ne)for(b=0;b<=360;b+=5)h.push([z+ZC.EP(b)*ce+ae,T+t.F,V+ZC.EI(b)*ce+le]);else for(b=0;b<=360;b+=5)(Z=new ZC.CF(t.C,0,0,0)).ED=[M+ZC.EI(b)*ce+ae+Ze,H+t.F+ZC.EP(b)*(ce/2)-he],h.push(Z);if(De.bottom?((p=new ZC.CZ(t)).copy(q),p.append(De.bottom),p.parse(),_=ZC.DK.D9(p,t.C,h,!ne)):_=ZC.DK.D9(q,t.C,h,!ne),_.K=t.K+"-facet1",_.G0=de(1),n.add(_),h=[],ne)for(b=0;b<=360;b+=5)h.push([z+ZC.EP(b)*ce+ae,T,V+ZC.EI(b)*ce+le]);else for(b=0;b<=360;b+=5)(Z=new ZC.CF(t.C,0,0,0)).ED=[M+ZC.EI(b)*ce+ae+Ze,H+ZC.EP(b)*(ce/2)-he],h.push(Z);if(De.top?((p=new ZC.CZ(t)).copy(q),p.append(De.top),p.parse(),f=ZC.DK.D9(p,t.C,h,!ne)):f=ZC.DK.D9(q,t.C,h,!ne),f.K=t.K+"-facet2",f.G0=de(3),n.add(f),h=[],ne){for(b=ZC.CY(fe,_e);b<=ZC.BQ(fe,_e);b+=1)h.push([z+ZC.EP(b)*ce+ae,T,V+ZC.EI(b)*ce+le]);for(h.push([z+ZC.EP(b)*ce+ae,T+t.F,V+ZC.EI(b)*ce+le]),b=ZC.BQ(be,Be);b>=ZC.CY(be,Be);b-=1)h.push([z+ZC.EP(b)*ce+ae,T+t.F,V+ZC.EI(b)*ce+le])}else{for(b=0;b<=180;b+=5)(Z=new ZC.CF(t.C,0,0,0)).ED=[M+ZC.EI(b)*ce+ae+Ze,H+t.F+ZC.EP(b)*(ce/2)-he],h.push(Z);for(b=180;b>=0;b-=5)(Z=new ZC.CF(t.C,0,0,0)).ED=[M+ZC.EI(b)*ce+ae+Ze,H+ZC.EP(b)*(ce/2)-he],h.push(Z)}De.front?((p=new ZC.CZ(t)).copy(j),p.append(De.front),p.parse(),d=ZC.DK.D9(p,t.C,h,!ne)):d=ZC.DK.D9(j,t.C,h,!ne),d.K=t.K+"-facet3",d.G0=de(2),n.add(d),t.A.FU&&Ae.push(te+'--front" coords="'+d.FG()+'" '+t.a11y()+' data-z-sort="-100" />',te+'--top" coords="'+f.FG()+'" />');break;case"cone":if(h=[],ne)for(b=0;b<=360;b+=5)h.push([z+ZC.EP(b)*ce*L+ae,T+c,V+ZC.EI(b)*ce*L+le]);else for(b=0;b<=360;b+=5)(Z=new ZC.CF(t.C,0,0,0)).ED=[M+ZC.EI(b)*ce*L+ae+Ze,H+c+ZC.EP(b)*(ce/2)*L-he],h.push(Z);if(De.bottom?((p=new ZC.CZ(t)).copy(q),p.append(De.bottom),p.parse(),_=ZC.DK.D9(p,t.C,h,!ne)):_=ZC.DK.D9(q,t.C,h,!ne),_.K=t.K+"-facet1",_.G0=de(1),n.add(_),h=[],ne){for(b=90+ue;b<=270+ue;b+=5)h.push([z+ZC.EP(b)*ce*L+ae,T+c,V+ZC.EI(b)*ce*L+le]);if(t.A.CE&&0!==Y)for(b=270+ue;b>=90+ue;b-=5)h.push([z+ZC.EP(b)*ce*Y+ae,T+u,V+ZC.EI(b)*ce*Y+le]);else h.push([z+ae,T+u,V+le])}else{for(b=0;b<=180;b+=5)(Z=new ZC.CF(t.C,0,0,0)).ED=[M+ZC.EI(b)*ce*L+ae+Ze,H+c+ZC.EP(b)*(ce/2)*L-he],h.push(Z);if(t.A.CE&&0!==Y)for(b=180;b>=0;b-=5)(Z=new ZC.CF(t.C,0,0,0)).ED=[M+ZC.EI(b)*ce*Y+ae+Ze,H+u+ZC.EP(b)*(ce/2)*Y-he],h.push(Z);else(Z=new ZC.CF(t.C,0,0,0)).ED=[M+ae+Ze,H+u-he],h.push(Z)}if(De.front?((p=new ZC.CZ(t)).copy(j),p.append(De.front),p.parse(),d=ZC.DK.D9(p,t.C,h,!ne)):d=ZC.DK.D9(j,t.C,h,!ne),d.K=t.K+"-facet2",d.G0=de(2),n.add(d),t.A.CE&&0!==Y){if(h=[],ne)for(b=0;b<=360;b+=5)h.push([z+ZC.EP(b)*ce*Y+ae,T+u,V+ZC.EI(b)*ce*Y+le]);else for(b=0;b<=360;b+=5)(Z=new ZC.CF(t.C,0,0,0)).ED=[M+ZC.EI(b)*ce*Y+ae+Ze,H+u+ZC.EP(b)*(ce/2)*Y-he],h.push(Z);De.top?((p=new ZC.CZ(t)).copy(q),p.append(De.top),p.parse(),f=ZC.DK.D9(p,t.C,h,!ne)):f=ZC.DK.D9(q,t.C,h,!ne),f.K=t.K+"-facet3",n.add(f),f.G0=de(3)}t.A.FU&&Ae.push(te+'--front" coords="'+d.FG()+'" data-z-sort="-100" />')}t.A.U&&t.A.U.AN&&t.GY()}t.paintPreview(j)}},A12:function(){}}),ZC.A6W=ZC.ZI.CC({setup:function(){this.T6()},V4:function(){var e=this;e.paint(!0);var i=e.C.BM(e.A.BW("v")[0]),t=e.iX+(i.AW?0:e.I),n=e.iY+e.F/2,a=new ZC.CF(e.C,t-ZC.AP.E4,n-ZC.AP.E5,e.A.E["z-start"]);return[ZC._i_(a.ED[0]),ZC._i_(a.ED[1]),{reference:e,center:!0}]},AC7:function(e){var i=this,t=i.b(e);if("-1/-1"!==t.join("/")){var n=new ZC.CF(i.C,t[0]-ZC.AP.E4,t[1]-ZC.AP.E5,i.A.E["z-start"]);return[ZC._i_(n.ED[0]),ZC._i_(n.ED[1])]}return t},paint:function(e){var i=this;i.b(),void 0===e&&(e=!1);var t=i.C.CM,n=i.A.B0,a=i.A.CN;i.setup();var l,o,r,s,C,A,c,u,p,Z,h,d,f,_,g=i.A.SP(),v=g.AB,b=g.EU,B=g.CG,m=g.CT,E=g.F4,D=g.D4,F=g.F0;if(e?b=i.A.E["node-"+i.L+"-bar-index"]:i.A.E["node-"+i.L+"-bar-index"]=g.EU,i.A.CE){l=0;for(var K=i.A.A.KE[b],I=0;I0){var X=D;(D=i.A.D4)<=1&&(D*=X),Y+=(X-D)/2}var M=D,O=i.iX,P=null!==ZC._n_(i.A.LX[i.L])?i.A.LX[i.L]:0;if(O=i.A.CE&&"100%"===i.A.KR?a.AR(100*(i.CP+P)/i.A.A.F8[i.L]["%total-"+i.A.E0]):a.AR(i.CP+P),i.A.CE?(r=O-(o="100%"===i.A.KR?a.AR(100*(i.CP-i.AD+P)/i.A.A.F8[i.L]["%total-"+i.A.E0]):a.AR(i.CP-i.AD+P)),i.AD>0?O=o:r=ZC._a_(r),a.AW?r>0?(r=ZC._a_(r),O=o):O-=r=ZC._a_(r):r<0&&(O=o-(r=ZC._a_(r)))):O=(r=O-(o=a.AR(P)))<0?o-(r=ZC._a_(r)):o,B+m===0&&(Y-=.5,M+=1),i.I=r,i.F=M,i.iX=O,i.iY=Y,a.AW?i.AD>=a.H9?i.iXVal=O:i.iXVal=O+i.I:i.AD>=a.H9?i.iXVal=O+i.I:i.iXVal=O,!e){var H=O+r-ZC.AP.E4,N=Y-ZC.AP.E5,G=0,Q=ZC.AP.FX;null!==ZC._n_(i.A.o["z-start"])&&(G=ZC._i_(i.A.o["z-start"])),null!==ZC._n_(i.A.o["z-end"])&&(Q=ZC._i_(i.A.o["z-end"])-G),i.A.E["z-start"]=G,i.A.E["z-mid"]=G+Q/2;var k=i.O=i.A.IG(i,i.O);if(k.DG=i.K+"-3dfacet",i.A.HW&&(i.H4(k),k.parse()),k.AN){var R=new ZC.CZ(i);R.copy(k),R.A0=ZC.AQ.JO(ZC.AQ.GC(R.A0)),R.AE=ZC.AQ.JO(ZC.AQ.GC(R.AE)),R.BX=ZC.AQ.JO(ZC.AQ.GC(R.BX));var z=new ZC.CZ(i);z.copy(k),z.A0=ZC.AQ.JO(ZC.AQ.GC(z.A0),15),z.AE=ZC.AQ.JO(ZC.AQ.GC(z.AE),15),z.BX=ZC.AQ.JO(ZC.AQ.GC(z.BX),15);var T=new ZC.CZ(i);T.copy(k);var V=i.C.K+"-node-area "+i.C.K+"-plotset-plot-"+i.A.L+"-node-area zc-node-area",S=ZC.Q.FS("poly",i.A.EA,i.O.IK)+'class="'+V+'" id="'+i.K,J=i.C.EZ.true3d,W=i.F/2,U=Q/2,j=w*W,q=y*W,$=y*U,ee=w*U;a.AW&&!i.A.CE?(C=i.AD>=0?0:i.I,s=i.AD>=0?i.I:0):(C=i.AD>=0?i.I:0,s=i.AD>=0?0:i.I);var ie=i.A.A.HE,te=ZC.CY(U,W),ne=i.C.EZ["x-angle"],ae=i.C.EZ.angle,le=ZC.EI(ae)*U,oe=ZC.EP(ae)*U;J||(te=ZC.CY(2*oe,W));var re=function(e){var t=-1,l=i.A.L,o=i.L,r=i.A.A.A3.length,s=i.A.R.length;switch((i.A.CE?"s":"")+(n.AW?"k":"")+(a.AW?"v":"")){case"":case"v":case"sv":t=10*(r-l)+1e4*o+e;break;case"k":case"skv":case"kv":t=10*(r-l)+1e4*(s-o)+e;break;case"s":t=10*l+1e4*o+e;break;case"sk":t=10*l+1e4*(s-o)+e}return ZC._i_(t)},se=i.A.o.facets||{};switch(i.A.CW){default:se.left?((A=new ZC.CZ(i)).copy(z),A.append(se.left),A.parse(),c=ZC.DK.DC(A,i.C,H-i.I+.1,H-.1,N+.1,N+.1,G+.1,G+Q-.1,"x")):c=ZC.DK.DC(z,i.C,H-i.I+.1,H-.1,N+.1,N+.1,G+.1,G+Q-.1,"x"),c.K=i.K+"-facet1",c.G0=re(5),t.add(c),se.right?((A=new ZC.CZ(i)).copy(z),A.append(se.right),A.parse(),h=ZC.DK.DC(A,i.C,H-i.I+.1,H-.1,N+i.F-.1,N+i.F-.1,G+.1,G+Q-.1,"x")):h=ZC.DK.DC(z,i.C,H-i.I+.1,H-.1,N+i.F-.1,N+i.F-.1,G+.1,G+Q-.1,"x"),h.K=i.K+"-facet2",h.G0=re(1),t.add(h),se.bottom?((A=new ZC.CZ(i)).copy(R),A.append(se.bottom),A.parse(),u=ZC.DK.DC(A,i.C,H-i.I+.1,H-i.I+.1,N+i.F-.1,N+.1,G+.1,G+Q-.1,"z")):u=ZC.DK.DC(R,i.C,H-i.I+.1,H-i.I+.1,N+i.F-.1,N+.1,G+.1,G+Q-.1,"z"),u.K=i.K+"-facet3",u.G0=re(2),t.add(u),se.top?((A=new ZC.CZ(i)).copy(R),A.append(se.top),A.parse(),p=ZC.DK.DC(A,i.C,H-.1,H-.1,N+i.F-.1,N+.1,G+.1,G+Q-.1,"z")):p=ZC.DK.DC(R,i.C,H-.1,H-.1,N+i.F-.1,N+.1,G+.1,G+Q-.1,"z"),p.K=i.K+"-facet4",p.G0=re(3),t.add(p),se.front?((A=new ZC.CZ(i)).copy(T),A.append(se.front),A.parse(),Z=ZC.DK.DC(A,i.C,H-i.I+.1,H-.1,N+i.F-.1,N+.1,G+.1,G+.1,"y")):Z=ZC.DK.DC(T,i.C,H-i.I+.1,H-.1,N+i.F-.1,N+.1,G+.1,G+.1,"y"),Z.K=i.K+"-facet5",Z.G0=re(4),t.add(Z),i.A.FU&&(i.A.CE||ie.push(S+'--top" coords="'+p.FG()+'" />'),ie.push(S+'--left" coords="'+c.FG()+'" />',S+'--right" coords="'+h.FG()+'" />',S+'--front" coords="'+Z.FG()+'" '+i.a11y()+' data-z-sort="-100" />'));break;case"pyramid":se.bottom?((A=new ZC.CZ(i)).copy(R),A.append(se.bottom),A.parse(),u=ZC.DK.DC(A,i.C,H-C,H-C,N+W-j,N+W+j,U-ee,U+ee,"z")):u=ZC.DK.DC(R,i.C,H-C,H-C,N+W-j,N+W+j,U-ee,U+ee,"z"),u.K=i.K+"-facet1",u.G0=re(a.AW&&!i.A.CE?6:1),t.add(u),_=[[H-C,N+W-j,U-ee],[H-C,N+W+j,U-ee]],i.A.CE&&0!==y?_.push([H-s,N+W+q,U-$],[H-s,N+W-q,U-$]):_.push([H-s,N+W,Q/2]),se.front?((A=new ZC.CZ(i)).copy(k),A.append(se.front),A.parse(),Z=ZC.DK.D9(A,i.C,_)):Z=ZC.DK.D9(k,i.C,_),Z.K=i.K+"-facet2",Z.G0=re(3),t.add(Z),_=[[H-C,N+W-j,U-ee],[H-C,N+W-j,U+ee]],i.A.CE&&0!==y?_.push([H-s,N+W-q,U+$],[H-s,N+W-q,U-$]):_.push([H-s,N+i.F/2,Q/2]),se.left?((A=new ZC.CZ(i)).copy(z),A.append(se.left),A.parse(),c=ZC.DK.D9(A,i.C,_)):c=ZC.DK.D9(z,i.C,_),c.K=i.K+"-facet3",c.G0=re(4),t.add(c),_=[[H-C,N+W+j,U-ee],[H-C,N+W+j,U+ee]],i.A.CE&&0!==y?_.push([H-s,N+W+q,U+$],[H-s,N+W+q,U-$]):_.push([H-s,N+W,Q/2]),se.right?((A=new ZC.CZ(i)).copy(z),A.append(se.right),A.parse(),h=ZC.DK.D9(A,i.C,_)):h=ZC.DK.D9(z,i.C,_),h.K=i.K+"-facet4",h.G0=re(2),t.add(h),i.A.CE&&0!==y&&(se.top?((A=new ZC.CZ(i)).copy(R),A.append(se.top),A.parse(),p=ZC.DK.DC(A,i.C,H-s,H-s,N+W-q,N+W+q,U-$,U+$,"z")):p=ZC.DK.DC(R,i.C,H-s,H-s,N+W-q,N+W+q,U-$,U+$,"z"),p.K=i.K+"-facet5",p.G0=re(5),t.add(p)),i.A.FU&&ie.push(S+'--left" coords="'+c.FG()+'" />',S+'--right" coords="'+h.FG()+'" />',S+'--front" coords="'+Z.FG()+'" '+i.a11y()+' data-z-sort="-100" />');break;case"cylinder":if(_=[],J)for(d=0;d<=360;d+=5)_.push([H-i.I,N+ZC.EP(d)*te+W,G+ZC.EI(d)*te+U]);else for(d=0;d<=360;d+=5)(f=new ZC.CF(i.C,0,0,0)).ED=[O+ZC.EI(d)*(te/2)+le,Y+W+ZC.EP(d)*te-oe],_.push(f);if(se.bottom?((A=new ZC.CZ(i)).copy(R),A.append(se.bottom),A.parse(),u=ZC.DK.D9(A,i.C,_,!J)):u=ZC.DK.D9(R,i.C,_,!J),u.K=i.K+"-facet1",u.G0=re(1),t.add(u),_=[],J){for(d=90-ne;d<=270-ne;d+=5)_.push([H-i.I,N+ZC.EP(d)*te+W,G+ZC.EI(d)*te+U]);for(_.push([H,N+ZC.EP(d)*te+W,G+ZC.EI(d)*te+U]),d=270-ne;d>=90-ne;d-=5)_.push([H,N+ZC.EP(d)*te+W,G+ZC.EI(d)*te+U])}else{for(d=90;d<=270;d+=5)(f=new ZC.CF(i.C,0,0,0)).ED=[O+ZC.EI(d)*(te/2)+le,Y+W+ZC.EP(d)*te-oe],_.push(f);for(d=270;d>=90;d-=5)(f=new ZC.CF(i.C,0,0,0)).ED=[O+ZC.EI(d)*(te/2)+i.I+le,Y+W+ZC.EP(d)*te-oe],_.push(f)}if(se.front?((A=new ZC.CZ(i)).copy(k),A.append(se.front),A.parse(),Z=ZC.DK.D9(A,i.C,_,!J)):Z=ZC.DK.D9(k,i.C,_,!J),Z.K=i.K+"-facet2",Z.G0=re(2),t.add(Z),_=[],J)for(d=0;d<=360;d+=5)_.push([H,N+ZC.EP(d)*te+W,G+ZC.EI(d)*te+U]);else for(d=0;d<=360;d+=5)(f=new ZC.CF(i.C,0,0,0)).ED=[O+ZC.EI(d)*(te/2)+i.I+le,Y+W+ZC.EP(d)*te-oe],_.push(f);se.top?((A=new ZC.CZ(i)).copy(R),A.append(se.top),A.parse(),p=ZC.DK.D9(A,i.C,_,!J)):p=ZC.DK.D9(R,i.C,_,!J),p.K=i.K+"-facet3",p.G0=re(3),t.add(p),i.A.FU&&ie.push(S+'--front" coords="'+Z.FG()+'" '+i.a11y()+' data-z-sort="-100" />',S+'--top" coords="'+p.FG()+'" />');break;case"cone":if(_=[],J)for(d=0;d<=360;d+=5)_.push([H-C,N+ZC.EP(d)*te*w+W,ZC.EI(d)*te*w+U]);else for(d=0;d<=360;d+=5)(f=new ZC.CF(i.C,0,0,0)).ED=[O+s+ZC.EI(d)*(te/2)*w+le,Y+W+ZC.EP(d)*te*w-oe],_.push(f);if(se.bottom?((A=new ZC.CZ(i)).copy(R),A.append(se.bottom),A.parse(),u=ZC.DK.D9(A,i.C,_,!J)):u=ZC.DK.D9(R,i.C,_,!J),u.K=i.K+"-facet1",u.G0=re(1),t.add(u),_=[],J){for(d=90-ne;d<=270-ne;d+=5)_.push([H-C,N+ZC.EP(d)*te*w+W,ZC.EI(d)*te*w+U]);if(i.A.CE&&0!==y)for(d=270-ne;d>=90-ne;d-=5)_.push([H-s,N+ZC.EP(d)*te*y+W,ZC.EI(d)*te*y+U]);else _.push([H-s,N+W,te])}else{for(d=90;d<=270;d+=5)(f=new ZC.CF(i.C,0,0,0)).ED=[O+s+ZC.EI(d)*(te/2)*w+le,Y+W+ZC.EP(d)*te*w-oe],_.push(f);if(i.A.CE&&0!==y)for(d=270;d>=90;d-=5)(f=new ZC.CF(i.C,0,0,0)).ED=[O+C+ZC.EI(d)*(te/2)*y+le,Y+W+ZC.EP(d)*te*y-oe],_.push(f);else(f=new ZC.CF(i.C,0,0,0)).ED=[O+C+le,Y+W-oe],_.push(f)}if(se.front?((A=new ZC.CZ(i)).copy(k),A.append(se.front),A.parse(),Z=ZC.DK.D9(A,i.C,_,!J)):Z=ZC.DK.D9(k,i.C,_,!J),Z.K=i.K+"-facet2",Z.G0=re(2),t.add(Z),i.A.CE&&0!==y){if(_=[],J)for(d=0;d<=360;d+=5)_.push([H-s,N+ZC.EP(d)*te*y+W,ZC.EI(d)*te*y+U]);else for(d=0;d<=360;d+=5)(f=new ZC.CF(i.C,0,0,0)).ED=[O+C+ZC.EI(d)*(te/2)*y+le,Y+W+ZC.EP(d)*te*y-oe],_.push(f);se.top?((A=new ZC.CZ(i)).copy(R),A.append(se.top),A.parse(),p=ZC.DK.D9(A,i.C,_,!J)):p=ZC.DK.D9(R,i.C,_,!J),p.K=i.K+"-facet3",p.G0=re(3),t.add(p)}i.A.FU&&ie.push(S+'--front" coords="'+Z.FG()+'" data-z-sort="-100" />')}}i.A.U&&i.A.U.AN&&i.GY()}},A12:function(){}}),ZC.A6X=ZC.A30.CC({setup:function(){this.T6()},ABF:function(){return{color:this.O.B7}},Y3:function(){return{"background-color":this.O.B7,"border-color":this.O.B7,color:this.O.C2}},AC7:function(e){var i=this,t=i.b(e);return new ZC.CF(i.C,t[0]-ZC.AP.E4,t[1]-ZC.AP.E5,i.A.E["z-start"]).ED},paint:function(){var e,i,t=this;t.b();var n,a=t.E.points;(n="none"!==t.A.J0?t.O=t.A.IG(t,t.O):t.O).DG=t.K+"-3dfacet",t.A.HW&&t.H4(n);var l=0,o=-1,r=ZC.AP.FX;if("hide"===t.C.getToggleAction())t.A.CE?o=0:(l=t.A.A.A3.length,o=t.A.L,r/=l);else if(t.A.CE)o=0;else{for(e=0;ee&&o--);r/=l,o=l-o-1}n.A0=n.AE=n.B7,"spline"===t.A.CW&&(n.BX=n.B7);var s=t.A.A.HE,C=t.C.K+"-node-area "+t.C.K+"-plotset-plot-"+t.A.L+"-node-area zc-node-area",A=ZC.Q.FS("poly",t.A.EA,t.O.IK)+'class="'+C+'" id="'+t.K,c=o*r,u=(o+1)*r;if(null!==ZC._n_(t.A.o["z-start"])&&(c=ZC._i_(t.A.o["z-start"])),null!==ZC._n_(t.A.o["z-end"])&&(u=ZC._i_(t.A.o["z-end"])),null!==ZC._n_(t.A.o.depth)){var p=ZC._i_(t.A.o.depth);c=o*r+r/2-p,u=o*r+r/2+p}t.A.E["z-plots"]=l,t.A.E["z-cnt"]=o,t.A.E["z-depth"]=r,t.A.E["z-start"]=c,t.A.E["z-mid"]=(c+u)/2;var Z,h,d,f=[],_=[],g=n;ZC._a_(c-u)<=2&&(t.C.CM.SG[t.A.K]||(t.C.CM.SG[t.A.K]={zIndex:t.A.L,style:n,points:[]},t.C.CM.SG[t.A.K].style.MA=!1,t.C.CM.SG[t.A.K].style.B1=ZC.BQ(1,ZC._i_(ZC._a_(c-u)/1))));for(var v=0;v2){var b=-ZC._i_(ZC.U0(Math.atan((a[v+1][1]-a[v][1])/(a[v+1][0]-a[v][0]))));(g=new ZC.CZ(t)).copy(n),g.A0=ZC.AQ.JO(ZC.AQ.GC(g.A0),b),g.AE=ZC.AQ.JO(ZC.AQ.GC(g.AE),b),g.BX=ZC.AQ.JO(ZC.AQ.GC(g.BX),b)}var B,m,E,D;if(t.A.oP0&&ZC._a_(c-u)<=2?((B=t.A.oP0).parse(t.C,a[v][0]-ZC.AP.E4,a[v][1]-ZC.AP.E5,c),(m=t.A.oP1).parse(t.C,a[v+1][0]-ZC.AP.E4,a[v+1][1]-ZC.AP.E5,c),(E=t.A.oP2).parse(t.C,a[v+1][0]-ZC.AP.E4,a[v+1][1]-ZC.AP.E5,u-1),(D=t.A.oP3).parse(t.C,a[v][0]-ZC.AP.E4,a[v][1]-ZC.AP.E5,u-1)):(B=t.A.oP0=new ZC.CF(t.C,a[v][0]-ZC.AP.E4,a[v][1]-ZC.AP.E5,c),m=t.A.oP1=new ZC.CF(t.C,a[v+1][0]-ZC.AP.E4,a[v+1][1]-ZC.AP.E5,c),E=t.A.oP2=new ZC.CF(t.C,a[v+1][0]-ZC.AP.E4,a[v+1][1]-ZC.AP.E5,u-1),D=t.A.oP3=new ZC.CF(t.C,a[v][0]-ZC.AP.E4,a[v][1]-ZC.AP.E5,u-1)),ZC._a_(c-u)>2?((Z=new ZC.WA(g,t.C)).K=t.K+"-facet"+v,Z.add(B),Z.add(m),Z.add(E),Z.add(D),t.C.CM.add(Z)):(t.C.CM.SG[t.A.K].points.push(B.ED),v===a.length-2&&t.C.CM.SG[t.A.K].points.push(m.ED),"spline"===t.A.CW&&(B=new ZC.CF(t.C,a[v][0]-ZC.AP.E4,a[v][1]-ZC.AP.E5,c-10),D=new ZC.CF(t.C,a[v][0]-ZC.AP.E4,a[v][1]-ZC.AP.E5,u-1+10))),f.push(B.ED),_.push(D.ED),t.A.FU&&"spline"!==t.A.CW)if(ZC._a_(c-u)>2)i=Z.FG();else{for(h=ZC.AO.YZ([B.ED,m.ED],4),d=0;d')}"spline"===t.A.CW?(t.E.polypoints=!0,t.E.points=f.concat(_.reverse())):t.E.points=null,t.A.A2.o&&("spline"===t.A.CW||"none"===t.A.A2.o.type||null!==ZC._n_(t.A.A2.o.visible)&&!ZC._b_(t.A.A2.o.visible))&&"spline"!==t.A.CW||t.PF(!0),t.A.U&&t.A.U.AN&&t.GY(),t.paintPreview(n,a)},A12:function(){}}),ZC.A6Y=ZC.A31.CC({setup:function(){this.T6()},ABF:function(){return{color:this.O.B7}},Y3:function(){return{"background-color":this.O.B7,"border-color":this.O.B7,color:this.O.C2}},AC7:function(e){var i=this,t=i.b(e);return new ZC.CF(i.C,t[0]-ZC.AP.E4,t[1]-ZC.AP.E5,i.A.E["z-start"]).ED},paint:function(){var e,i,t=this;t.b();var n=t.A.CN,a=n.H9,l=n.AR(a);l=ZC._l_(l,n.iY,n.iY+n.F);var o,r=t.E.points,s=t.E.pointsarea;(o="none"!==t.A.J0?t.O=t.A.IG(t,t.O):t.O).DG=t.K+"-3dfacet",t.A.HW&&t.H4(o);var C=0,A=-1,c=ZC.AP.FX;if("hide"===t.C.getToggleAction())t.A.CE?A=0:(C=t.A.A.A3.length,A=t.A.L,c/=C);else if(t.A.CE)A=0;else{for(e=0;ee&&A--);c/=C,A=C-A-1}var u=new ZC.CZ(t);u.copy(o),u.A0=u.AE=o.B7,"spline"===t.A.CW&&(u.BX=o.B7);var p=new ZC.CZ(t);p.copy(o),p.L7=!0,p.AU=0,p.C5=t.A.HO,p.A0=ZC.AQ.R0(ZC.AQ.GC(p.A0),30),p.AE=ZC.AQ.R0(ZC.AQ.GC(p.AE),30);var Z,h,d=t.A.A.HE,f=t.C.K+"-node-area "+t.C.K+"-plotset-plot-"+t.A.L+"-node-area zc-node-area",_=ZC.Q.FS("poly",t.A.EA,t.O.IK)+'class="'+f+'" id="'+t.K,g=[],v=[],b=A*c,B=(A+1)*c;if(null!==ZC._n_(t.A.o["z-start"])&&(b=ZC._i_(t.A.o["z-start"])),null!==ZC._n_(t.A.o["z-end"])&&(B=ZC._i_(t.A.o["z-end"])),null!==ZC._n_(t.A.o.depth)){var m=ZC._i_(t.A.o.depth);b=A*c+c/2-m,B=A*c+c/2+m}t.A.E["z-plots"]=C,t.A.E["z-cnt"]=A,t.A.E["z-depth"]=c,t.A.E["z-start"]=b,t.A.E["z-mid"]=(b+B)/2;var E=new ZC.WA(p,t.C);for(Z=0,h=s.length;Z2){var K=-ZC._i_(ZC.U0(Math.atan((r[Z+1][1]-r[Z][1])/(r[Z+1][0]-r[Z][0]))));(F=new ZC.CZ(t)).copy(u),F.A0=ZC.AQ.JO(ZC.AQ.GC(F.A0),K),F.AE=ZC.AQ.JO(ZC.AQ.GC(F.AE),K),F.BX=ZC.AQ.JO(ZC.AQ.GC(F.BX),K)}var I=new ZC.CF(t.C,r[Z][0]-ZC.AP.E4,r[Z][1]-ZC.AP.E5,b),x=new ZC.CF(t.C,r[Z+1][0]-ZC.AP.E4,r[Z+1][1]-ZC.AP.E5,b),w=new ZC.CF(t.C,r[Z+1][0]-ZC.AP.E4,r[Z+1][1]-ZC.AP.E5,B-1),y=new ZC.CF(t.C,r[Z][0]-ZC.AP.E4,r[Z][1]-ZC.AP.E5,B-1);if(ZC._a_(b-B)>2?((E=new ZC.WA(F,t.C)).K=t.K+"-facet"+Z,E.add(I),E.add(x),E.add(w),E.add(y),t.C.CM.add(E)):(t.C.CM.SG[t.A.K].points.push(I.ED),Z===r.length-2&&t.C.CM.SG[t.A.K].points.push(x.ED),"spline"===t.A.CW&&(I=new ZC.CF(t.C,r[Z][0]-ZC.AP.E4,r[Z][1]-ZC.AP.E5,b-10),y=new ZC.CF(t.C,r[Z][0]-ZC.AP.E4,r[Z][1]-ZC.AP.E5,B-1+10))),g.push(I.ED),v.push(y.ED),t.A.FU&&"spline"!==t.A.CW)if(ZC._a_(b-B)>2)i=E.FG();else{for(var L=ZC.AO.YZ([E.D[0].ED,E.D[1].ED],4),Y=0;Y')}"spline"===t.A.CW?(t.E.polypoints=!0,t.E.points=g.concat(v.reverse())):t.E.points=null,t.A.A2.o&&("none"===t.A.A2.o.type||null!==ZC._n_(t.A.A2.o.visible)&&!ZC._b_(t.A.A2.o.visible))&&"spline"!==t.A.CW||t.PF(!0),t.A.U&&t.A.U.AN&&t.GY(),t.paintPreview(o,r,s)},A12:function(){}}),ZC.A88=ZC.LI.CC({$i:function(e){this.b(e),this.WL=0,this.WK=0},JX:function(e,i,t,n){var a=this,l=null;return l=a.A.L=3)i.A.U&&i.GY();else{i.b();var t=i.O=i.A.IG(i,i),n=new ZC.DQ(i.A);n.K=i.K,n.Z=i.A.CQ("bl",1),n.C7=i.A.CQ("bl",0),n.copy(t);var a=i.iX,l=i.iY;if(n.iX=a,n.iY=l,n.AI=i.AI,n.DV="circle",n.E.plotidx=i.A.L,n.E.nodeidx=i.L,n.parse(),i.FP=n,i.A.GE&&!i.C.HJ){var o=n,r={};o.iX=a,o.iY=l,r.x=a,r.y=l;var s=i.A.LA;if(o.C5=0,r.alpha=t.C5,3===s)o.AI=2,r.size=i.AI;else if(4===s){switch(i.A.L){case 0:o.iX=a-3*i.AI,o.iY=l;break;case 1:o.iX=a+3*i.AI,o.iY=l;break;case 2:o.iX=a,o.iY=l-3*i.AI}r.x=a,r.y=l}for(e in i.A.FY)o[ZC.E6.GM[ZC.EF(e)]]=i.A.FY[e],r[ZC.EF(e)]=t[ZC.E6.GM[ZC.EF(e)]];if(i.C.EO||(i.C.EO={}),null!==ZC._n_(i.C.EO[i.A.L+"-"+i.L]))for(e in i.C.EO[i.A.L+"-"+i.L])o[ZC.E6.GM[ZC.EF(e)]]=i.C.EO[i.A.L+"-"+i.L][e];i.C.EO[i.A.L+"-"+i.L]={},ZC._cp_(r,i.C.EO[i.A.L+"-"+i.L]);var C=new ZC.E6(o,r,i.A.JG,i.A.L8,ZC.E6.RL[i.A.LB],function(){A()});C.AX=i,i.LS(C)}else n.paint(),A()}function A(){var e=i.C.K+"-node-area "+i.C.K+"-plotset-plot-"+i.A.L+"-node-area zc-node-area",t=ZC.Q.FS("circle",i.A.EA,i.A.IK)+'class="'+e+'" '+i.a11y()+' id="'+i.K+'" coords="'+ZC._i_(i.iX+ZC.MAPTX)+","+ZC._i_(i.iY+ZC.MAPTX)+","+ZC._i_(ZC.BQ(ZC.mobile?6:3,i.AI)*(ZC.mobile?2:1.2))+'" />';i.A.A.HE.push(t),i.A.U&&i.GY()}},A12:function(e){var i=this;ZC.move||i.M8({layer:e,type:"shape",initcb:function(){this.DV="circle",this.A0=i.A.BP[3],this.AE=i.A.BP[3]},setupcb:function(){this.iX=i.iX,this.iY=i.iY,this.AI=i.AI}})}}),ZC.LI.prototype.N7=function(e,i){var t,n,a=this;if(void 0===i&&(i=!1),i)"undefined"!=typeof a.E.pointserror&&((t=new ZC.CZ(a)).copy(a.A),a.A.J9&&(t.copy(a.A.J9),t.append(a.A.J9.o["hover-state"])),t.parse(),t.K=a.K+"--error-hover",t.DG=a.A.A.A.K+"-node-errorbars",t.AN&&ZC.CR.paint(e,t,a.E.pointserror));else{var l=a.A.CN,o=a.A.B0;if(0!==a.A.S3.length){var r=null,s=null,C=!0;a.A.S3.length<=2?(null!==ZC._n_(a.A.S3[0])&&a.A.S3[0]instanceof Array&&(C=!1),null!==ZC._n_(a.A.S3[1])&&a.A.S3[1]instanceof Array&&(C=!1)):C=!1,C?(r=a.A.S3[0],s=a.A.S3[1]):null!==ZC._n_(n=a.A.S3[a.L])&&n instanceof Array&&(r=s=n[0],2===n.length&&(s=n[1])),a.E["node-error-plus"]=r,a.E["node-error-minus"]=s,-1!==(r+"").indexOf("%")&&(r=ZC.IL(r))<=1&&(r*=a.AD),-1!==(s+"").indexOf("%")&&(s=ZC.IL(s))<=1&&(s*=a.AD);var A=[],c=ZC.IL(a.A.J9&&a.A.J9.o.size||.5);c<=1&&(c="vbar"===a.A.AF?ZC._i_(c*a.I):"hbar"===a.A.AF?ZC._i_(c*a.F):ZC._i_(c*o.AB));var u,p=0;if(p=o.CK?a.F:a.I,null!==ZC._n_(r)){var Z=l.AR(a.CP+r);o.CK?(u=l.AW?a.AD<0?a.iX+a.I:a.iX:a.AD>0?a.iX+a.I:a.iX,A.push([Z,a.iY+p/2-c/2],[Z,a.iY+p/2+c/2],null,[Z,a.iY+p/2],[u,a.iY+p/2])):(u=l.AW?a.AD>0?a.iY+a.F:a.iY:a.AD<0?a.iY+a.F:a.iY,A.push([a.iX+p/2-c/2,Z],[a.iX+p/2+c/2,Z],null,[a.iX+p/2,Z],[a.iX+p/2,u]))}if(null!==ZC._n_(s)){var h=l.AR(a.CP-s);o.CK?(u=l.AW?a.AD<0?a.iX+a.I:a.iX:a.AD>0?a.iX+a.I:a.iX,A.push(null,[h,a.iY+p/2-c/2],[h,a.iY+p/2+c/2],null,[h,a.iY+p/2],[u,a.iY+p/2])):(u=l.AW?a.AD>0?a.iY+a.F:a.iY:a.AD<0?a.iY+a.F:a.iY,A.push(null,[a.iX+p/2-c/2,h],[a.iX+p/2+c/2,h],null,[a.iX+p/2,h],[a.iX+p/2,u]))}(t=new ZC.CZ(a)).copy(a.A),a.A.J9&&t.copy(a.A.J9),t.parse(),t.K=a.K+"--error",t.DG=a.A.A.A.K+"-node-errorbars",t.D0=!1,ZC.CR.paint(e,t,A),a.E.pointserror=A}}};var F3={$i:function(e){this.b(e);var i=this;i.H=i.A.A,i.BF="",i.V=[],i.BY=[],i.A4W=[],i.DE=!1,i.M=null,i.BR=null,i.IU=null,i.D7=null,i.FZ=0,i.IB=null,i.G7=null,i.H9=0,i.P1=null,i.L=1,i.A9=0,i.A41=0,i.BS=0,i.AW=!1,i.CK=!1,i.AB=0,i.iStepMultiplier=1,i.DT=-1,i.RB=ZC.HD["thousands-separator"]||"",i.RU=ZC.HD["decimals-separator"]||".",i.ZZ=!1,i.SE=2,i.A2R=!1,i.TJ="",i.A02="standard",i.CJ=null,i.AF="",i.EH=ZC.MAX,i.M2=ZC.MAX,i.GN=!1,i.Y5=!1,i.KN=null,i.NO=null,i.Q2=[],i.E1=1,i.AY=-1,i.BD=-1,i.SF=-1,i.FR=-1,i.GU=-1,i.BT="lin",i.DX=10,i.F6=null,i.P2=1,i.PU=!0,i.A0C=!1,i.aAutoFit=[!1,!1],i.LU=null,i.WM=null,i.TA=!1,i.I3=-1,i.YI=!1,i.BA="default",i.PY=!1,i.VC=!1,i.R3=1,i.sMaster="",i.bNormalize=!0,i.bAllowDuplicates=!1,i.fMinValueFactor=0,i.fMaxValueFactor=0},parse:function(){this.b();var e,i=this;if(null!==ZC._n_(e=i.o.step))if(ZC.PC(e))i.E1=ZC._f_(e);else{var t=e.replace(/[0-9]/gi,""),n=parseInt(e.replace(/[^0-9]/gi,""),10);switch(n=n||1,t){case"second":i.E1=1e3*n;break;case"minute":i.E1=1e3*n*60;break;case"hour":i.E1=1e3*n*60*60;break;case"day":i.E1=1e3*n*60*60*24;break;case"week":i.E1=1e3*n*60*60*24*7;break;case"month":i.E1=2629743e3*n;break;case"year":i.E1=31556926e3*n}}if(null!==ZC._n_(i.o.multiplier)&&null===ZC._n_(i.o.short)&&(i.o.short=i.o.multiplier),i.assign_a([["labels","BY"],["tooltip-text","A4W"],["format","CJ"],["offset-start","A9","i"],["offset-start","A41","i"],["offset-end","BS","i"],["minor-ticks","FZ","i"],["step-multiplier","iStepMultiplier","i"],["index","L","i"],["mirrored","AW","b"],["zooming","GN","b"],["zoom-snap","Y5","b"],["fixed-step","PY","b"],["zoom-to","KN"],["force-view","YI","b"],["zoom-to-values","NO"],["items-overlap","A0C","b"],["used","TA","b"],["max-labels","EH","i"],["max-items","EH","i"],["ref-value","H9","f"],["decimals","DT","ia"],["decimals-separator","RU"],["thousands-separator","RB"],["short","A2R","b"],["short-unit","TJ"],["negation","A02"],["exponent","ZZ","b"],["exponent-decimals","SE","ia"],["progression","BT"],["log-base","DX","fa"],["scale-factor","P2","fa"],["show-labels","LU"],["max-decimals","I3","i"],["placement","BA"],["factor","R3","f"],["master","sMaster"],["blended","VC","b"],["ranged","DE","b"],["normalize","bNormalize","b"],["allow-duplicates","bAllowDuplicates","b"],["min-value-factor","fMinValueFactor","f"],["max-value-factor","fMaxValueFactor","f"]]),"linear"===i.BT&&(i.BT="lin"),"logarithmic"===i.BT&&(i.BT="log"),"log"===i.BT&&(i.FZ=Math.max(0,i.DX-2),null!==ZC._n_(i.KN)&&"v"===i.AF&&(i.KN[0]=ZC.FT(i.KN[0],i.DX),i.KN[1]=ZC.FT(i.KN[1],i.DX))),null!==ZC._n_(e=i.o["auto-fit"])&&(e.length?(i.aAutoFit[0]=ZC._b_(e[0]),i.aAutoFit[1]=ZC._b_(e[e.length-1])):i.aAutoFit[0]=i.aAutoFit[1]=ZC._b_(e)),"string"==typeof i.BY){var a=i.BY.split(":"),l=1;3===a.length&&(l=ZC._f_(a[2])),i.BY=[];for(var o=ZC._f_(a[0]);o1&&(i.BA="opposite"),null!==ZC._n_(e=i.o.markers))for(var u=0,p=e.length;u=0&&a<=1&&(a="x"===n||"y"===n?i.A.P["x"===n?"iX":"iY"]+ZC._i_(a*i.A.P["x"===n?"I":"F"]):ZC._i_(a*i.A.P[t[n]])),i[t[n]]=a}null!==ZC._n_(e=i.o.offset)&&(i.A9=i.BS=ZC._f_(ZC._p_(e))),null!==ZC._n_(e=i.o["offset-start"])&&(i.A9=ZC._f_(ZC._p_(e))),null!==ZC._n_(e=i.o["offset-end"])&&(i.BS=ZC._f_(ZC._p_(e)));var l="k"===i.AF&&!i.CK||"v"===i.AF&&i.CK?i.I:i.F;i.A9<1&&(i.A9*=l),i.BS<1&&(i.BS*=l)},Z3:function(e){var i=this;null!==ZC._n_(i.o.rules)&&(i.WM||(i.WM=new ZC.F3(i.A)),i.WM.append(i.o),i.WM.parse(),i.WM.J5=e,i.WM.DF()&&(i.WM.parse(),i.DT=i.WM.DT,i.CJ=i.WM.CJ))},J2:function(){},A8B:function(){},ACB:function(){},AA1:function(){},clear:function(){},build:function(){},MT:function(){var e,i=this,t={negation:i.A02,"thousands-separator":i.RB,"decimals-separator":i.RU,decimals:i.DT,"max-decimals":i.I3,short:i.A2R,"short-unit":i.TJ,exponent:i.ZZ,"exponent-decimals":i.SE};if(i.F6)switch(i.F6.o.type){case"date":t["transform-date"]=!0,null!==ZC._n_(e=i.F6.o.text)&&(i.F6.o.all=e);var n=i.V[i.A1]-i.V[i.W],a="",l="",o={},r=["msecond","second","minute","hour","day","month","year"];for(var s in r)o[r[s]]=ZC.HD["date-formats"][r[s]];l=0<=n&&n<=1e3?"msecond":1e3").length),"h"===s?(o+=e.F,r=ZC.BQ(r,ZC._a_(ZC.EP(c))*ZC.BQ(e.I,e.F))):"w"===s&&(o+=e.I,r=ZC.BQ(r,ZC._a_(ZC.EI(c))*ZC.BQ(e.I,e.F))),e.EM(),null===ZC._n_(n.o.tooltip)&&e.KA||(null!==ZC._n_(n.o.tooltip)&&(n.o.tooltip.text=n.o.tooltip.text||"%scale-value"),C.push(ZC.AQ.O6(n.A.K,e))))}return{tdim:o,mdim:r,overlaps:!p}},VH:function(e,i){var t=this;if("v"===t.AF&&(t.H9!==t.AY&&t.H9!==t.BD||(null===ZC._n_(t.o["ref-line"])||null!==ZC._n_(t.o["ref-line"])&&null===ZC._n_(t.o["ref-line"].visible))&&(t.P1.AN=!1)),t.P1.K=t.K+"-ref-line",t.V.length>0&&t.P1.AN&&!t.A.AJ["3d"]&&t.P1.B1>0){"inherit"===t.P1.o["line-color"]&&-1!==i&&(t.P1.B7=i);var n=t.H9;if("k"===t.AF&&!t.CK||"v"===t.AF&&t.CK){var a=t.AR(n);a>=t.iX&&a<=t.iX+t.I&&ZC.CR.paint(e,t.P1,[[a,t.iY],[a,t.iY+t.F]])}else{var l=t.AR(n);l>=t.iY&&l<=t.iY+t.F&&ZC.CR.paint(e,t.P1,[[t.iX,l],[t.iX+t.I,l]])}}},paint_:function(){},XU:function(){for(var e=this,i=0,t=e.Q2.length;i0&&e.Q2[i].paint()},gc:function(){ZC.AQ.gc(this,["V","BY","Z","C7","D7","BR","M","G7","IB","P1","IU","J5","o","I8","JC","A","H"])}};ZC.F3=ZC.HQ.CC(F3);var ZJ={$i:function(e){this.b(e);var i=this;i.EG=!1,i.AF="k",i.D6=-1,i.DR=-1,i.W=-1,i.A1=-1,i.UW=1,i.DT=null,i.OL=0,i.A4K=!1,i.NU=!1,i.U5={},i.IT=[],i.iMinOffset=0,i.aForcedMinMax=[null,null,1]},zoomTo:function(e,i){var t=this;if(t.GN){null!==ZC._n_(e)?t.W=e:t.W=t.D6,null!==ZC._n_(i)?t.A1=i:t.A1=t.DR;var n=t.IT;if(n.length>0?(t.AY=ZC.AV(n,t.V[t.W]),t.BD=ZC.AV(n,t.V[t.A1])):(t.AY=t.V[t.W],t.BD=t.V[t.A1]),t.H.H2.C||(t.H.H2.C=t.A),t.A.H2&&null!==ZC._n_(t.A.H2.o.shared)&&ZC._b_(t.A.H2.o.shared)&&t.A.K===t.H.H2.C.K)for(var a=0,l=t.H.AG.length;a0&&e.BR.AA%180==0){for(var n=ZC.BQ(1,ZC._i_(i/20)),a=0,l=0;l||
|\n/),r=0,s=0,C=o.length;s/gi,"").replace(/<\/.+?>/gi,"").length);t+=r,a++}t=.75*t/Math.max(1,a)}else t=15;e.CK?e.EH=ZC._i_((e.F-e.A9-e.BS)/15):e.EH=ZC._i_((e.I-e.A9-e.BS)/t),e.EH=ZC.CY(e.EH,20),(e.BD-e.AY)/e.E1+1ZC._f_(r[1])){var C=r[0];r[0]=r[1],r[1]=C}if(s<=0&&(s=1),r.length>1){for(var A=0,c=0,u=0,p=(""+s).split("."),Z=ZC._f_(r[0]);Z<=ZC._f_(r[1]);Z+=s){var h=(""+Z).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,c=ZC.BQ(c,p[1].length),u++,null!==(l=ZC._n_(o.o.decimals))?o.V.push(ZC._f_(Number(Z).toFixed(ZC._i_(l)))):o.V.push(ZC._f_(ZC._fixed_(Number(Z),p[1].length))),Z=ZC._f_(ZC._fixed_(Number(Z),p[1].length))):(A+=h[1]?h[1].length:0,c=ZC.BQ(c,h[1]?h[1].length:0),u++,null!==(l=ZC._n_(o.o.decimals))?o.V.push(ZC._f_(Number(Z).toFixed(ZC._i_(l)))):o.V.push(Z))}null===ZC._n_(o.o.decimals)&&(A=Math.ceil(A/u),o.DT=ZC._a_(c-A)<=1?c:A)}}if(2===e){var d=0,f=[];0===o.V.length?(i=ZC.MAX,t=-ZC.MAX):(i=o.V[0],t=o.V[o.V.length-1]);var _,g,v=o.A.AZ.A3,b=!1;for(n=0,a=v.length;no.V.length&&o.V.length>0&&!o.EG)for(n=o.V.length;n0&&(i=0),b&&t0&&(o.E1=Math.pow(10,Math.floor(ZC.FT(t-i)/Math.LN10))),o.NU||o.QI(i,t,!0),0===i&&0===t&&"0,1"===o.V.join(",")&&(o.V=[0]);else if(null!==ZC._n_(o.o["max-value"])){_=0,g=0,null!==ZC._n_(o.o["min-value"])&&(_=ZC._f_(o.o["min-value"])),g=ZC._f_(o.o["max-value"]),n=0;var I=_;if(o.F6&&null!==ZC._n_(o.F6.o.type))switch(o.F6.o.type){case"date":o.E1=o.A1Y(_,g)}else(g-_)/o.E1>1e4&&(o.E1=Math.pow(10,ZC.BQ(1,ZC._i_(ZC.FT(ZC._a_(g-_),10)-4))));for(;I0?(o.AY=o.W,o.BD=o.A1):(o.AY=ZC._f_(o.V[o.W]),o.BD=ZC._f_(o.V[o.A1])),o.NO){-1===ZC.AV(o.V,o.NO[0])&&ZC.PC(o.NO[0])&&null!==ZC._n_(o.V[0])&&-1!==o.SF&&(o.NO[0]=o.V[0]+o.SF*Math.floor((o.NO[0]-o.V[0])/o.SF)),-1===ZC.AV(o.V,o.NO[1])&&ZC.PC(o.NO[1])&&null!==ZC._n_(o.V[0])&&-1!==o.SF&&(o.NO[1]=o.V[0]+o.SF*Math.ceil((o.NO[1]-o.V[0])/o.SF));var x=ZC.AV(o.V,o.NO[0]),w=ZC.AV(o.V,o.NO[1]);o.KN=[-1===x?0:x,-1===w?o.V.length-1:w]}o.KN&&-1!==o.W&&-1!==o.A1&&((o.KN[0]>o.A1||o.KN[0]o.A1||o.KN[1]1e4&&(o=(p-u)/1e4,l=Math.ceil(ZC.FT(o)/Math.LN10),o=Math.pow(10,l)),null===ZC._n_(r.o["min-value"])&&u!==p&&(s&&C||(u-=u%o)),null===ZC._n_(r.o["max-value"])&&u!==p&&(s&&C||(p=p-p%o+(p%o==0?0:o))),l=Math.floor(ZC.FT(o)/Math.LN10);var Z,h=n[3];if(l=12&&b++,v=(v+g)%12,(31===B&&(3===v||5===v||8===v||10===v)||B>28&&1===v)&&(B=1===v?b%4==0&&b%100!=0||b%400==0?29:28:30);var m=new Date(b,v,B,ZC._i_(d[3]),ZC._i_(d[4]),ZC._i_(d[5])),E=m.getTimezoneOffset(),D=m.getTime()+6e4*(f-E);r.V.push(D),D1.005&&(L=!0,++y>ZC.CY(20,-1===r.I3?99:r.I3)&&(L=!1));else x=null!==y?ZC._f_(ZC._fixed_(Z,Math.max(y,K))):ZC._f_(ZC._fixed_(Z,K));r.V.push(x)}}else for(o=ZC._f_((i-e)/r.UW),a=0;a<=r.UW;a++)Z=e+o*a,h<0&&(Z=ZC._f_(Z.toFixed(-h))),r.V.push(Z);r.W=0,r.A1=r.V.length-1,r.D6=0,r.DR=r.V.length-1,r.AY=ZC._f_(r.V[r.W]),r.BD=ZC._f_(r.V[r.A1])},A1Y:function(e,i,t){void 0===t&&(t=!1);var n=i-e,a=Math.floor(ZC.FT(n)/Math.LN10);return null===ZC._n_(this.o.step)||t?a<=3?1:4===a?1e3:5===a?1e4:6===a?2e4:7===a?3e4:8===a?6e4:9===a?6e5:10===a?12e5:11===a?18e5:36e5:this.E1},parse:function(){this.b()},clear:function(){this.b()},build:function(){this.b()},paint:function(){this.b(),null!==ZC._n_(this.o.values)&&(this.TA=!0)}};ZC.ZJ=ZC.F3.CC(ZJ);var W7={$i:function(e){this.b(e);var i=this;i.AF="v",i.W=-1,i.A1=-1,i.UW=0,i.DT=null,i.KR="normal",i.JN=[],i.bExtendMinValue=!0,i.bExtendMaxValue=!0},zoomTo:function(e,i){var t,n,a=this;if(a.GN){if(null!==ZC._n_(e)?a.AY=e:a.AY=a.FR,null!==ZC._n_(i)?a.BD=i:a.BD=a.GU,("piano"===a.A.AF||a.PY)&&(a.AY=ZC._i_(a.AY),a.BD=ZC._i_(a.BD),a.AY===a.BD&&(a.AY=Math.floor(a.AY),a.BD=a.AY+a.E1)),a.QI(a.AY,a.BD,!1),"lin"!==a.BT&&"log"!==a.BT){var l=ZC.evalFn(a.BT,window);l&&l.valueToCoord&&l&&l.values&&(a.V=l.values.call(a,{x:a.iX,y:a.iY,width:a.I,height:a.F,offsetStart:a.A9,offsetEnd:a.BS,inversed:a.CK,mirrored:a.AW,minValue:a.AY,maxValue:a.BD,minValue_:a.FR,maxValue_:a.GU}),a.W=0,a.A1=a.V.length-1)}var o=a.A.BW("v");for(t=0;tZC._f_(g[1])){var v=g[0];g[0]=g[1],g[1]=v}if(r<=0&&(r=1),null!==ZC._n_(s.o["fixed-items"])&&(r=(ZC._f_(g[1])-ZC._f_(g[0]))/ZC.BQ(1,ZC._i_(s.o["fixed-items"])-1),s.UW=ZC.BQ(1,ZC._i_(s.o["fixed-items"])-1)),g.length>1){for(var b=0,B=0,m=0,E=(""+r).split("."),D=ZC._f_(g[0]);D<=ZC._f_(g[1]);D+=r)a=(""+D).split("."),E.length>1&&a.length>1&&E[1].length>0&&a[1].length>=9&&ZC._a_(a[1].length-E[1].length)>2?(b+=E[1].length,B=ZC.BQ(B,E[1].length),m++,s.V.push(ZC._f_(ZC._fixed_(Number(D),E[1].length)))):(b+=ZC._i_(a[1]?a[1].length:0),B=ZC.BQ(B,a[1]?a[1].length:0),m++,s.V.push(D));D-ZC._f_(g[1])!=0&&ZC._a_(D-ZC._f_(g[1]))/r<1e-8&&s.V.push(ZC._f_(g[1])),null===ZC._n_(s.o.decimals)&&(b=(a=(""+r).split("."))[1]?a[1].length:Math.ceil(b/m),s.DT=ZC._a_(B-b)<=1?B:b)}}s.W=0,s.A1=s.V.length-1,s.E1=r,u.length>1?(c=ZC.Y4(s.V,!0),s.AY=ZC.Y4(s.V),s.BD=ZC.A1U(s.V)):(s.AY=s.V[0],s.BD=s.V[s.V.length-1]),"log"===s.BT&&(0===s.AY&&(A=Math.floor(ZC.FT(c,s.DX)),s.AY=Math.pow(s.DX,Math.min(-1,A))),s.QI(ZC.FT(s.AY,s.DX),ZC.FT(s.BD,s.DX),!1))}if(2===e){var F={};null===ZC._n_(s.o.values)&&(s.V=[],l=ZC.MAX,o=-ZC.MAX);var K=[],I=s.A.AZ.A3;for(t=0,n=I.length;t=0||!w?F[I[t].E0][X]=[I[t].R[L].AD,0]:F[I[t].E0][X]=[0,I[t].R[L].AD]:I[t].R[L].AD>=0||!w?F[I[t].E0][X][0]+=I[t].R[L].AD:F[I[t].E0][X][1]+=I[t].R[L].AD,I[t].R[L].AD>=0||!w?I[t].R[L].CP=F[I[t].E0][X][0]:I[t].R[L].CP=F[I[t].E0][X][1],null===ZC._n_(s.o.values)&&K.push(F[I[t].E0][X][0]+M,F[I[t].E0][X][1]+M);else if(null===ZC._n_(s.o.values)){K.push(I[t].R[L].AD+M),0!==M&&K.push(M);for(var O=0,P=I[t].R[L].DS.length;O0&&(c=ZC.Y4(K,!0),l=ZC.Y4(K),o=ZC.A1U(K)),0!==s.V.length||l!==Number.MAX_VALUE&&o!==Number.MIN_VALUE||(s.V=[0,1],l=0,o=1),null===ZC._n_(s.o.values))if(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.BT&&(l=0),null!==ZC._n_(s.o["max-value"])&&(o=ZC._f_(s.o["max-value"])),l===ZC.MAX&&o===-ZC.MAX)s.W=0,s.A1=0,s.AY=0,s.BD=0;else if("log"===s.BT)0===l&&(A=Math.floor(ZC.FT(c,s.DX)),l=Math.pow(s.DX,Math.min(-1,A))),s.QI(ZC.FT(l,s.DX),ZC.FT(o,s.DX),!1);else if("lin"===s.BT)s.QI(l,o,!0);else{s.QI(l,o,!0);var H=ZC.evalFn(s.BT,window);H&&H.values&&(s.V=H.values.call(s,{x:s.iX,y:s.iY,width:s.I,height:s.F,offsetStart:s.A9,offsetEnd:s.BS,inversed:s.CK,mirrored:s.AW,minValue:l,maxValue:o,minValue_:l,maxValue_:o}),s.W=0,s.A1=s.V.length-1)}}2===e&&(-1===s.FR&&-1===s.GU&&(s.FR=s.AY,s.GU=s.BD),-1===s.SF&&(s.SF=s.E1)),"auto"===s.o["min-value"]&&null===ZC._n_(s.o["ref-value"])&&(s.H9=s.AY),0===s.UW&&(s.UW=ZC._i_((s.BD-s.AY)/s.E1));var N=s.H.E["graph"+s.A.L+".zoom"];if(null===ZC._n_(s.H.E.preservezoom)||s.H.E.preservezoom){var G=1===s.L?"":"-"+s.L;2===e&&void 0!==N&&null!==ZC._n_(N["ymin"+G])&&null!==ZC._n_(N["ymax"+G])&&(ZC.DP(N["ymin"+G],s.AY,s.BD)||(N["ymin"+G]=s.AY),ZC.DP(N["ymax"+G],s.AY,s.BD)||(N["ymax"+G]=s.BD),s.KN=[N["ymin"+G],N["ymax"+G]])}else s.H.E["graph"+s.A.L+".zoom"]={};s.KN&&(s.A.A17=!0)},QI:function(e,i,t){var n,a,l,o,r=this;e-=r.fMinValueFactor*(i-e),i+=r.fMaxValueFactor*(i-e),"piano"!==r.A.AF&&!r.PY&&r.JN.length>1&&(e=0),r.TJ.length&&null===ZC._n_(r.o["scale-factor"])&&(l=Math.floor(ZC.FT(ZC._a_(i),ZC._f_(r.TJ[0]))),r.P2=Math.pow(ZC._f_(r.TJ[0]),l)/Math.pow(1e3,l),r.E["max-power"]=l);var s=(o=r.F6&&"date"===r.F6.o.type?ZC.AO.WF(e,i,"lin"===r.BT?r.E1:null,r.P2,r.bNormalize,r.EH):ZC.AO.WF(e,i,"lin"===r.BT?r.o.step:null,r.P2,r.bNormalize,r.EH))[0],C=o[1],A=!1;a=Math.floor(o[0]),"log"===r.BT&&(l=Math.ceil(o[1]),o[1]-o[0]>=.5?A=!0:o=ZC.AO.WF(Math.pow(r.DX,o[0]),Math.pow(r.DX,o[1]),null,r.P2,r.bNormalize));var c,u,p=o[0],Z=o[1],h=o[2];if(null!==ZC._n_(r.o["fixed-items"])&&(h=(Z-p)/ZC.BQ(1,ZC._i_(r.o["fixed-items"])-1)),r.PY&&i===e&&(i+h<=r.BD?i+=h:e-=h),1!==r.R3&&(p*=r.R3,Z*=r.R3,h*=r.R3),null!==ZC._n_(r.E["o-decimals"])?r.DT=r.E["o-decimals"]:r.E["o-decimals"]=r.DT,null===ZC._n_(r.o.decimals))if("log"===r.BT&&A)r.DT=a<0?null:0;else if(r.bNormalize)r.A2R||(r.DT=0);else{var d=ZC.FT(i-e,10);r.DT=o[3],r.DT>9&&(d>=1?r.DT=1:d>0&&d<1&&(r.DT=2))}var f,_,g,v=!0;if(A){var b,B;a=Math.floor(p),l=Math.ceil(Z),f=Math.pow(r.DX,e),_=Math.pow(r.DX,i),r.V=[];var m=[0,2,5];for(B=[0,1,2,3,4,5,6,7,8,9,10],n=a;n<=l;n++){var E=o[3];if(E=n<0?Math.max(ZC._a_(n),E):0,n===l)for(b=0;b=p&&u<=Z&&r.V.push(u):r.V.push(u),c+=h,c=ZC._f_(c.toFixed(o[3]))}while(c<=Z);v&&(r.DT+=1)}"log"===r.BT&&(s=ZC.FT(p,r.DX),C=ZC.FT(Z,r.DX),r.V.push(p),r.V.push(Z),r.V.sort(function(e,i){return e-i}))}r.E1=h,r.W=0,r.A1=r.V.length-1,t?(r.AY=r.bExtendMinValue?s:e,r.BD=r.bExtendMaxValue?C:i):(r.AY=e,r.BD=i)},parse:function(){var e=this;e.assign_a([["stack-type","KR"],["extend-min-value","bExtendMinValue","b"],["extend-max-value","bExtendMaxValue","b"]]),(e.A.CE&&"100%"===e.A.KR||"100%"===e.KR)&&null===ZC._n_(e.o.values)&&(e.o.values="0:100:20",e.o.format="%v%"),this.b()},clear:function(){this.b()},build:function(){this.b()},paint:function(){this.b(),null===ZC._n_(this.E.decimals)&&(this.E.decimals=null!==ZC._n_(this.DT)?this.DT:-1),null!==ZC._n_(this.o.values)&&(this.TA=!0)}};ZC.W7=ZC.F3.CC(W7);var Q5={$i:function(e){this.b(e)},parse:function(){this.b()},J2:function(){var e=this;e.A1===e.W?e.AB=e.I-e.A9-e.BS:e.AB=(e.I-e.A9-e.BS)/(e.A1-e.W+(e.DE?1:0))},AA1:function(e){this.b(e),this.J2()},zoomTo:function(e,i){this.b(e,i);this.J2()},clear:function(){},build:function(){this.b()},NG:function(e){var i,t=this;i=t.AW?(t.iX+t.I-t.A9-e)/(t.I-t.A9-t.BS):(e-t.iX-t.A9)/(t.I-t.A9-t.BS);var n=t.AY,a=t.BD;null!==ZC._n_(t.aForcedMinMax[0])&&t.aForcedMinMax[0]!==n&&(n=t.aForcedMinMax[0]),null!==ZC._n_(t.aForcedMinMax[1])&&t.aForcedMinMax[1]!==a&&(a=t.aForcedMinMax[1]),"log"===t.BT&&(n=ZC.FT(n,t.DX),a=ZC.FT(a,t.DX));var l=n+ZC._f_((a-n)*i);return"log"===t.BT&&(l=Math.pow(t.DX,l)),l},OG:function(e,i,t){var n,a,l,o=this;void 0===t&&(t=!1);var r=o.DE?o.AB:0;l=o.AW?(o.iX+o.I-e-o.A9-r/2)/(o.I-o.A9-o.BS-r):(e-o.iX-o.A9-r/2)/(o.I-o.A9-o.BS-r);var s,C=!1;if(i)for(s in i.K5){C=!0;break}if(i&&!o.NU&&C){var A=o.V[o.W];"string"==typeof A&&(A=ZC.AV(o.IT,A)),"log"===o.BT&&(A=ZC.FT(A,o.DX));var c=o.V[o.A1];"string"==typeof c&&(c=ZC.AV(o.IT,c)),"log"===o.BT&&(c=ZC.FT(c,o.DX));var u=A+ZC._f_((c-A)*l);"log"===o.BT&&(u=Math.pow(o.DX,u));var p=ZC.MAX;for(s in a=null,i.K5)(n=Math.abs(s-u))i.A2G){var Z=Math.ceil((c-A)/(o.I-o.A9-o.BS));if(i.V.length<2&&(Z*=100),p>Z)return null}return a}var h=o.W,d=o.A1;return o.EG&&(null!==ZC._n_(n=o.V[h])&&(h=n),null!==ZC._n_(n=o.V[d])&&(d=n)),"log"===o.BT&&(h=ZC.FT(h,o.DX),d=ZC.FT(d,o.DX)),a=t?o.DE?h+(d-h+1)*l:h+(d-h)*l:(o.DE,o.W+(o.A1-o.W)*l),"log"===o.BT?(a=Math.pow(o.DX,a),a=Math.round(a)-1):(a=ZC._i_(a),a=ZC.BQ(0,a),a=ZC.CY(o.DR,a)),a},IE:function(e){var i=this;i.W,i.A1;return i.EG&&!i.NU&&(i.AY,i.BD),"log"===i.BT&&(e=ZC.FT(e+1,i.DX)),i.AW?i.iX+i.I-i.A9-(e-i.W+(i.DE?1:0))*i.AB+(i.DE?i.AB/2:0):i.iX+i.A9+(e-i.W)*i.AB+(i.DE?i.AB/2:0)},AR:function(e){var i,t,n,a,l,o=this;if("log"===o.BT&&(0===e&&(e=o.AY),e=ZC.FT(e,o.DX)),o.NU){var r=o.U5[e];return o.IE(r)}if(-1!==(i=ZC.AV(o.IT,e)))return o.IE(i);if(!o.A4K&&(o.EG||o.F6&&"date"===o.F6.o.type)){a=o.V[o.W],l=o.V[o.A1];var s=o.I;return"log"===o.BT&&(a=ZC.FT(a,o.DX),l=ZC.FT(l,o.DX),o.W===o.D6&&o.A1===o.DR&&(s=(o.A1-o.W)*o.AB+o.A9+o.BS)),l===a?t=0:(n=l-a,t=(s-o.A9-o.BS-(o.DE?o.AB:0))/n),o.AW?o.iX+s-o.A9-(e-a)*t-(o.DE?o.AB/2:0)+o.iMinOffset:o.iX+o.A9+(e-a)*t+(o.DE?o.AB/2:0)-o.iMinOffset}return a=o.AY,l=o.BD,"log"===o.BT&&(a=ZC.FT(a,o.DX),l=ZC.FT(l,o.DX)),l===a?t=0:(n=l-a+(o.DE?1:0),t=(o.I-o.A9-o.BS)/n),o.AW?o.iX+o.I-o.A9-(e-a)*t-(o.DE?o.AB/2:0):o.iX+o.A9+(e-a)*t+(o.DE?o.AB/2:0)},paint:function(){var e,i,t,n,a,l,o,r,s,C,A,c,u,p,Z,h,d,f=this;f.b(),null!==ZC._n_(f.A.A.E[f.BF+"-feed-offset-start"])&&(f.A9=f.A.A.E[f.BF+"-feed-offset-start"]),"bubble"!==f.A.AF&&"scatter"!==f.A.AF||(-1===f.A9&&-1===f.BS||1===f.V.length)&&(f.A9=f.BS=f.I/(f.V.length+1),f.J2());var _=f.BD,g=f.AY;if("log"===f.BT&&(null!==ZC._n_(f.o["max-value"])&&(_=ZC._f_(f.o["max-value"]),f.aForcedMinMax[1]=_),null!==ZC._n_(f.o["min-value"])&&(g=ZC._f_(f.o["min-value"]),f.aForcedMinMax[0]=g),f.iMinOffset=0,(_!==f.BD||g!==f.AY)&&f.W===f.D6&&f.A1===f.DR&&1===f.aForcedMinMax[2])){f.aForcedMinMax[2]=0;var v=f.AB;f.AB=(f.I-f.A9-f.BS)/(ZC.FT(_,f.DX)-ZC.FT(g,f.DX))-.1;var b=ZC.FT(g,f.DX)-ZC.FT(f.AY,f.DX),B=ZC.FT(f.BD,f.DX)-ZC.FT(_,f.DX);f.iMinOffset=b*(f.AB-v)*(f.V.length-1)/(B+b)}var m=f.A0N(),E=0,D=1,F=1,K={};for(i=0,t=f.A.BO.length;i0;k--)f.iStepMultiplier>k&&f.A1-f.W<=k*f.iStepMultiplier&&(Q=k);N*=Q,G*=Q;var R,z,T,V=0,S=f.AB*N/(f.FZ+1),J=f.AW?f.iX+f.BS:f.iX+f.A9,W=f.AW?f.iX+f.I-f.A9:f.iX+f.I-f.BS;if(null===ZC._n_(w)&&(w=a),l=f.H.usc()?f.H.mc():ZC.AL(f.A.K+"-scales-ml-0-c"),r=ZC.Q.EC(l,f.H.AC),o=f.H.usc()?f.H.mc():ZC.AL(f.A.K+"-scales-bl-0-c"),s=ZC.Q.EC(o,f.H.AC),"inherit"===f.o["line-color"]&&-1!==m&&(f.B7=m),f.A.AJ["3d"]){if((Z=ZC.DK.DC(f,f.A,f.iX-ZC.AP.E4,f.iX-ZC.AP.E4+f.I,a-ZC.AP.E5,a-ZC.AP.E5,-1,ZC.AP.FX+1,"x")).K=f.K+"-line",f.A.EZ.true3d&&(f.A.EZ["x-angle"]>0?Z.ME=[1===f.L?-100:100,1,1]:Z.ME=[1===f.L?100:-100,1,1]),f.A.CM.add(Z),null!==ZC._n_(f.o.axis)){var U=new ZC.CZ(f);U.append(f.o.axis),U.parse(),U.A0=U.AE=U.B7,(Z=ZC.DK.DC(U,f.A,f.iX-ZC.AP.E4,f.iX-ZC.AP.E4+f.I,a-ZC.AP.E5,a-ZC.AP.E5,-U.B1/2,U.B1/2,"x")).K=f.K+"-axis",f.A.CM.add(Z)}}else{A=[[f.iX-1,H],[f.iX+f.I+1,H]];var j=f.K;f.K+="-line",ZC.CR.paint(r,f,A),f.K=j}if(f.V.length>0&&f.D7.AN){var q=null===ZC._n_(f.D7.o["offset-start"])?0:ZC._i_(f.D7.o["offset-start"]),$=null===ZC._n_(f.D7.o["offset-end"])?0:ZC._i_(f.D7.o["offset-end"]);if(f.D7.o.items&&f.D7.o.items.length>0&&!f.A.AJ["3d"])for(h=new ZC.HQ(f),i=f.W;i0)for(f.GS=0,i=f.W;i<=f.A1+(f.DE?1:0);i++)if(f.K6=i,i===f.W||i===f.A1+(f.DE?1:0)||(i-f.W)%N==0){(f.D7.E7.length>0||i===f.W)&&((p=new ZC.CZ(f)).Z=p.C7=o,p.copy(f.D7),p.J5=Ye,p.DF()&&p.parse()),A=[],c=i-f.W,u="log"===f.BT?f.AR(f.V[i]):f.AW?f.iX+f.I-f.A9-c*f.AB:f.iX+f.A9+c*f.AB;var ee=f.iY+q,ie=f.F-q-$;if(p.AN)if(f.A.AJ["3d"]){var te=new ZC.CZ(f);te.copy(p),null!==ZC._n_(f.o["scale-z"])&&null!==ZC._n_(e=f.o["scale-z"].guide)&&(te.append(e),te.parse()),te.A0=te.AE=te.B7,Z=ZC.DK.DC(te,f.A,u-ZC.AP.E4-te.B1/2,u-ZC.AP.E4+te.B1/2,a-ZC.AP.E5,a-ZC.AP.E5,0,ZC.AP.FX,"z"),f.A.CM.add(Z),p.A0=p.AE=p.B7,(Z=ZC.DK.DC(p,f.A,u-ZC.AP.E4-p.B1/2,u-ZC.AP.E4+p.B1/2,ee-ZC.AP.E5,ee+ie-ZC.AP.E5,ZC.AP.FX+2,ZC.AP.FX+2,"y")).K=f.K+"-guide-"+i,f.A.CM.add(Z)}else A.push([u,ee],[u,ee+ie]),p.K=f.K+"-guide-"+i,ZC.CR.paint(s,p,A);f.GS++}}if(f.V.length>0&&f.G7.AN&&!f.A.AJ["3d"]&&f.G7.o.items&&f.G7.o.items.length>0)for(h=new ZC.HQ(f),i=f.W;i0)for(i=f.W;i0&&f.IU.AN){switch(f.IU.o.placement){case"inner":break;case"outer":V+=M;break;default:V+=M/2}if(!zingchart.DEV.SMARTDATELABELS||!f.F6||"date"!==f.F6.o.type)for(f.GS=0,i=f.W;i<=f.A1+(f.DE?1:0);i++)if(i===f.W||i===f.A1+(f.DE?1:0)||(i-f.W)%N==0){f.K6=i;var ne=M;if(A=[],c=i-f.W,(f.IU.E7.length>0||i===f.W)&&((p=new ZC.DQ(f)).copy(f.IU),"inherit"===f.IU.o["line-color"]&&-1!==m&&(p.B7=m),p.J5=Ye,p.DF()&&p.parse(),p.AI>1&&(ne=p.AI)),u="log"===f.BT?f.AR(f.V[i]):f.AW?f.iX+f.I-f.A9-c*f.AB:f.iX+f.A9+c*f.AB,ZC.DP(u,J,W)){switch(p.o.placement){case"ref-auto":A.push([u,w+ne/2],[u,w-ne/2]);break;case"ref-top":A.push([u,w-ne],[u,w]);break;case"ref-bottom":A.push([u,w+ne],[u,w]);break;case"inner":A.push([u,a-(x?ne:-ne)],[u,a]);break;case"outer":A.push([u,a],[u,a+(x?ne:-ne)]);break;default:A.push([u,a+ne/2],[u,a-ne/2])}if(p.AN){for(z=ZC._i_(p.o["offset-x"]||"0"),T=ZC._i_(p.o["offset-y"]||"0"),R=0;R0&&f.FZ>0&&f.IB.AN&&!f.A.AJ["3d"])for(i=f.W;i0&&f.BR.AN)if(zingchart.DEV.SMARTDATELABELS&&f.F6&&"date"===f.F6.o.type){var be=f.getOptimalDateInterval(f.V[f.A1]-f.V[f.W]),Be=be[0];he=be[1];var me=be[2],Ee=be[3];_e=be[4];var De=me*Math.ceil(f.V[f.W]/me),Fe=me*Math.floor(f.V[f.A1]/me),Ke="";f.GS=0;var Ie=!0;for(i=De;i<=Fe;i+=me){Ie=!0;var xe=ZC.AQ.YE(i,Be,f.A.UF,f.A.NC);if(xe!==Ke){switch(Ee){case"yr":_e>15&&(Ie=ZC._i_(xe)%2==0);break;case"mon":_e>15&&(Ie=ZC._i_(xe)%3==0);break;case"day":_e>45?Ie=1===ZC._i_(xe)||15===ZC._i_(xe):_e>30?Ie=1===ZC._i_(xe)||10===ZC._i_(xe)||20===ZC._i_(xe):_e>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":_e>45?Ie=ZC._i_(xe)%12==0:_e>30?Ie=ZC._i_(xe)%6==0:_e>15&&(Ie=ZC._i_(xe)%3==0);break;case"min":case"sec":_e>45?Ie=ZC._i_(xe)%30==0:_e>30?Ie=ZC._i_(xe)%10==0:_e>15&&(Ie=ZC._i_(xe)%5==0)}Ie&&(Xe(i,!0),Ke=xe)}}Ze.AN&&(Ze.K=f.K+"-ticks",ZC.CR.paint(r,Ze,pe))}else for(f.GS=0,Xe(f.W),f.GS=f.A1-f.W,Xe(f.A1),f.GS=1,i=f.W+1;i0&&ZC.AL(f.A.A.K+"-map")&&(ZC.AL(f.A.A.K+"-map").innerHTML+=ve.join("")),null!==ZC._n_(f.o.transform)&&"date"===f.o.transform.type&&f.paintTransformDate()}function Ye(e){return e=(e=(e=(e=(e=(e=e.replace(/%scale-last-position/g,f.A1-f.W)).replace(/(%c)|(%scale-position)/g,f.GS)).replace(/(%i)|(%scale-index)/g,f.K6)).replace(/(%v)|(%scale-value)/g,null!==ZC._n_(f.V[f.K6])?f.V[f.K6]:"")).replace(/(%l)|(%scale-label)/g,null!==ZC._n_(f.BY[f.K6])?f.BY[f.K6]:"")).replace(/%scale-day-of-week/g,ZC.AQ.YE(f.V[f.K6],"%w",f.A.UF,f.A.NC))}function Xe(e,i,t,n){var l;if(f.K6=e,c=e-f.W,(f.BR.E7.length>0||e===f.W||!Ce||f.BR.HW||t)&&(Ce=new ZC.DN(f)),Ce.copy(f.BR),Ce.GL=f.K+"-item "+f.A.K+"-scale-item zc-scale-item",Ce.K=f.A.K+"-"+f.BF.replace(/\-/g,"_")+"-item_"+(n?"c"+n:e),Ce.E["p-width"]=f.AB,f.CJ=ce,f.DT=ue,t||f.Z3(Ye),l=i?ZC.AQ.YE(e,he,f.A.UF,f.A.NC):n||f.FQ(e,null,null),!t&&f.BR.HW){var o=f.A.GZ();ZC._cp_({index:e,cnt:c,text:l},o),f.H4(f.BR,Ce,null,o,f.BR.ML)}if(!(null!==ZC._n_(f.LU)&&-1===ZC.AV(f.LU,l)||(Ce.AM=l,Ce.Z=Ce.C7=f.H.usc()?f.H.mc():ZC.AL(f.A.K+"-scales-ml-0-c"),Ce.IM=f.H.usc()?ZC.AL(f.H.K+"-main"):ZC.AL(f.H.K+"-text"),Ce.E.nodeidx=e,Ce.parse(),f.BR.A24&&f.BR.AA%180==0&&(Ce.o.width=ZC._i_(.9*f.AB),Ce.parse()),"inherit"!==f.BR.o["font-color"]&&"inherit"!==f.BR.o.color||-1===m||(Ce.C2=m),t||(Ce.J5=Ye,Ce.DF()&&Ce.parse()),Ce.o["auto-fit"]&&(Ce.I=ZC._i_(f.AB)),i?(u=f.AR(e),Ce.iX=u-Ce.I/2-(f.DE?f.AB/2:0)):t?(u=f.AR(e),Ce.iX=u-Ce.I/2):"log"===f.BT?(u=f.AR(f.V[e]),Ce.iX=u-Ce.I/2+(f.DE?f.AB/2:0)*(f.AW?-1:1)):f.AW?(u=f.iX+f.I-f.A9-c*f.AB,Ce.iX=u-Ce.I/2-(f.DE?f.AB/2:0)):(u=f.iX+f.A9+c*f.AB,Ce.iX=u-Ce.I/2+(f.DE?f.AB/2:0)),uf.iX+f.I+1))){if(f.A.B9&&f.A.B9.BY&&f.A.B9.HZ){for(var r=!1,s=0;s10*ZC.SEC&&(o=2),e>30*ZC.SEC&&(o=5),e>60*ZC.SEC&&(o=10)):2*ZC.MIN10*ZC.MIN&&(o=2),e>30*ZC.MIN&&(o=5),e>60*ZC.MIN&&(o=10)):2*ZC.HR6*ZC.HR&&(o=2),e>12*ZC.HR&&(o=4),e>24*ZC.HR&&(o=6)):2*ZC.DAY12*ZC.DAY&&(l=[1,5,9,13,17,21,25,29]),e>24*ZC.DAY&&(l=[1,6,11,16,21,26])):2*ZC.MON9*ZC.MON&&(l=[1,4,7,10])):(t="%Y",n="%Y",e>9*ZC.YR&&(o=3),e>16*ZC.YR&&(o=4),e>25*ZC.YR&&(o=5))}(a.V[a.A1]-a.V[a.W]);var r=null,s=[],C=!1,A=!1;function c(e){var A,c;if(null!==ZC._n_(a.V[e])&&""!==a.V[e]){a.NU&&e!==a.W&&e!==a.A1&&null!==ZC._n_(a.V[e-1])&&""!==a.V[e-1]&&null!==ZC._n_(a.V[e])&&a.V[e];var u=ZC.AQ.YE(a.V[e],t,a.A.UF,a.A.NC);if(u!==r&&ZC._i_(u)%o==0&&(0===l.length||-1!==ZC.AV(l,ZC._i_(u)))){var p,Z=!0,h=e-a.W;A=a.AW?a.iX+a.I-a.A9-h*a.AB:a.iX+a.A9+h*a.AB+(a.DE?a.AB/2:0);var d=new ZC.DN(a);a.H.B8.load(d.o,"graph.SCALE.transform[date].item"),null!==ZC._n_(p=a.o.transform.item)&&d.append(p),d.GL=a.K+"-item "+a.A.K+"-scale-item zc-scale-item",d.K=a.K+"-date-item-"+e;var f=ZC.AQ.YE(a.V[e],n,a.A.UF,a.A.NC);d.AM=f,d.Z=d.C7=a.H.usc()?a.H.mc():ZC.AL(a.A.K+"-scales-ml-0-c"),d.IM=a.H.usc()?ZC.AL(a.H.K+"-main"):ZC.AL(a.H.K+"-text"),d.parse(),a.AW?d.iX=A-d.I/2-(a.DE?a.AB/2:0):d.iX=A,d.iY=a.iY,a.A.AJ["3d"]&&(a.A.O2(),c=new ZC.CF(a.A,d.iX+d.I/2-ZC.AP.E4,d.iY+d.F/2-ZC.AP.E5,0),d.iX=c.ED[0]-d.I/2,d.iY=c.ED[1]-d.F/2);var _=[d.iX+d.BK,d.iY+d.BI,d.I,d.F];if(d.AA%180==90&&(_=[d.iX+d.BK+d.I/2-d.F/2,d.iY+d.BI+d.F/2-d.I/2,d.F,d.I]),a.A.B9&&a.A.B9.HZ){for(var g=!1,v=0;v=a.iX&&d.iX+d.I<=a.iX+a.I&&a.A.B9.BY.push({x:ZC._i_(d.iX),text:d.AM})}if(d.AN&&C){if(Z=!0,!a.A0C){if(e===a.W||e===a.A1)Z=!0;else for(var b=0,B=s.length;ba.iX+a.BK+a.I&&(Z=!1)}if(Z){s.push(_),d.paint(),d.EM();var m=new ZC.CZ(a);null!==ZC._n_(p=a.o.transform.guide)&&m.append(p),m.B1=1,m.B7="#ccc",m.parse();var E=[];if(E.push([A,a.iY],[A,a.iY+a.F]),a.A.AJ["3d"]){a.A.O2();for(var D=0,F=E.length;D0&&(C=!1,null!==ZC._n_(e=a.o.transform.item)&&(C=!(null!==ZC._n_(e.visible)&&!ZC._b_(e.visible))),A=!1,a.A.B9&&a.A.B9.BY&&(A=!0),C||A)){c(a.W),c(a.A1);for(var u=a.W+1;u0;N--)g.iStepMultiplier>N&&g.A1-g.W<=N*g.iStepMultiplier&&(H=N);P*=H,O*=H;var G=0,Q=g.AB*P/(g.FZ+1);if(a=g.H.usc()?g.H.mc():ZC.AL(g.A.K+"-scales-ml-0-c"),l=ZC.Q.EC(a,g.H.AC),o=g.H.usc()?g.H.mc():ZC.AL(g.A.K+"-scales-bl-0-c"),r=ZC.Q.EC(o,g.H.AC),g.TA||g.YI||null!==ZC._n_(g.A.o[g.BF])){if("inherit"===g.o["line-color"]&&-1!==v&&(g.B7=v),g.A.AJ["3d"]){if((u=ZC.DK.DC(g,g.A,n-ZC.AP.E4,n-ZC.AP.E4,g.iY-ZC.AP.E5,g.iY-ZC.AP.E5+g.F,-1,ZC.AP.FX+1,"y")).K=g.K+"-line",g.A.EZ.true3d&&(g.A.EZ["y-angle"]>0?u.ME=[1===g.L?-100:100,1,1]:u.ME=[1===g.L?100:-100,1,1]),g.A.CM.add(u),null!==ZC._n_(g.o.axis)){var k=new ZC.CZ(g);k.append(g.o.axis),k.parse(),k.A0=k.AE=k.B7,(u=ZC.DK.DC(k,g.A,n-ZC.AP.E4,n-ZC.AP.E4,g.iY-ZC.AP.E5,g.iY-ZC.AP.E5+g.F,-k.B1/2,k.B1/2,"y")).K=g.K+"-axis",g.A.CM.add(u)}}else{C=[[M,g.iY+g.F],[M,g.iY]];var R=g.K;g.K+="-line",ZC.CR.paint(l,g,C),g.K=R}var z=0,T=0,V=[],S=[];if(g.TA||g.YI){if(g.V.length>0&&g.D7.AN){var J=null===ZC._n_(g.D7.o["offset-start"])?0:ZC._i_(g.D7.o["offset-start"]),W=null===ZC._n_(g.D7.o["offset-end"])?0:ZC._i_(g.D7.o["offset-end"]);if(g.D7.o.items&&g.D7.o.items.length>0&&!g.A.AJ["3d"])for(g.GS=0,p=new ZC.HQ(g),i=g.W;i0)for(g.GS=0,i=g.W;i<=g.A1+(g.DE?1:0);i++)if(g.K6=i,i===g.W||i===g.A1||i%P==0){(g.D7.E7.length>0||i===g.W||"log"===g.BT)&&((c=new ZC.CZ(g)).Z=c.C7=o,"log"===g.BT?ZC.AO._int_(ZC.FT(g.V[i],g.DX))?c.copy(g.D7):c.copy(g.G7):c.copy(g.D7),c.J5=pe,c.DF()&&c.parse()),C=[],A=i-g.W;var j=g.iX+J,q=g.I-J-W;if(s=(g.BT,g.AR(g.V[i])),c.AN)if(g.A.AJ["3d"]){var $=new ZC.CZ(g);$.copy(c),null!==ZC._n_(g.o["scale-z"])&&null!==ZC._n_(e=g.o["scale-z"].guide)&&($.append(e),$.parse()),$.A0=$.AE=$.B7,u=ZC.DK.DC($,g.A,n-ZC.AP.E4,n-ZC.AP.E4,s-ZC.AP.E5-$.B1/2,s-ZC.AP.E5+$.B1/2,0,ZC.AP.FX,"y"),g.A.CM.add(u),c.A0=c.AE=c.B7,(u=ZC.DK.DC(c,g.A,j-ZC.AP.E4,j-ZC.AP.E4+q,s-ZC.AP.E5-c.B1/2,s-ZC.AP.E5+c.B1/2,ZC.AP.FX+2,ZC.AP.FX+2,"x")).K=g.K+"-guide-"+i,g.A.CM.add(u)}else C.push([j,s],[j+q,s]),c.K=g.K+"-guide-"+i,ZC.CR.paint(r,c,C);g.GS++}}if(g.V.length>0&&g.G7.AN&&Q>2&&!g.A.AJ["3d"]){if(g.G7.o.items&&g.G7.o.items.length>0)for(p=new ZC.HQ(g),i=g.W;i0&&"log"!==g.BT)for(i=g.W;i0&&g.IU.AN){switch(g.IU.o.placement){case"inner":break;case"outer":G+=L;break;default:G+=L/2}for(g.GS=0,d=ZC.AV(g.V,0),i=g.W;i<=g.A1+(g.DE?1:0);i++){g.K6=i;var ne=-1;if((i===g.W||i===g.A1||i%P==0||ZC._b_(g.o["show-zero"])&&i===d)&&(C=[],A=i-g.W,(g.IU.E7.length>0||i===g.W||"log"===g.BT)&&(c=new ZC.CZ(g),"log"===g.BT?ZC.AO._int_(ZC.FT(g.V[i],g.DX))?c.copy(g.IU):(c.copy(g.IB),ne=L,L=Y):c.copy(g.IU),"inherit"===g.IU.o["line-color"]&&-1!==v&&(c.B7=v),c.J5=pe,c.DF()&&c.parse()),s=(g.BT,g.AR(g.V[i])),ZC.DP(s,g.A.P.iY,g.A.P.iY+g.A.P.F))){switch(c.o.placement){case"ref-right":C.push([K,s],[K+L,s]);break;case"ref-left":C.push([K,s],[K-L,s]);break;case"ref-auto":C.push([K-L/2,s],[K+L/2,s]);break;case"inner":C.push([n,s],[n+(F?L:-L),s]);break;case"outer":C.push([n,s],[n-(F?L:-L),s]);break;default:C.push([n+L/2,s],[n-L/2,s])}if(-1!==ne&&(L=ne,ne=-1),c.AN){for(ie=ZC._i_(c.o["offset-x"]||"0"),te=ZC._i_(c.o["offset-y"]||"0"),ee=0;ee0&&g.IB.AN&&g.FZ>0&&Q>5&&!g.A.AJ["3d"]&&"log"!==g.BT)for(i=g.W;i0||e===g.W||!f||g.BR.HW)&&(f=new ZC.DN(g)),f.copy(g.BR),f.GL=g.K+"-item "+g.A.K+"-scale-item zc-scale-item",f.K=g.A.K+"-"+g.BF.replace(/\-/g,"_")+"-item_"+e,g.CJ=re,g.DT=se,g.Z3(pe),i=("piano"===g.A.AF||g.PY)&&g.BY.length?g.FQ(e+g.AY):g.FQ(e),g.BR.HW){var t=g.A.GZ();ZC._cp_({index:e,cnt:A,text:i},t),g.H4(g.BR,f,null,t,g.BR.ML)}if(null===ZC._n_(g.LU)||-1!==ZC.AV(g.LU,i)){switch(f.AM=i,f.Z=f.C7=g.H.usc()?g.H.mc():ZC.AL(g.A.K+"-scales-ml-0-c"),f.IM=g.H.usc()?ZC.AL(g.H.K+"-main"):ZC.AL(g.H.K+"-text"),f.parse(),"inherit"!==g.BR.o["font-color"]&&"inherit"!==g.BR.o.color||-1===v||(f.C2=v),f.J5=pe,f.DF()&&f.parse(),f.o.placement){case"ref-left":f.iX=K-f.I-L;break;case"ref-right":f.iX=K+L;break;case"ref-auto":I&&I.R[e]?(I.FK(e).setup(),I.FK(e).iX0&&g.BR.AN)if("log"===g.BT){var Ae=[];for(i=g.W;i<=g.A1;i++)ZC.AO._int_(ZC.FT(g.V[i],g.DX))&&(g.GS=i,Ce(i),Ae.push(i));for(i=g.W;i<=g.A1;i++)-1===ZC.AV(Ae,i)&&(g.GS=i,Ce(i))}else for(g.GS=0,Ce(g.W),g.GS=g.A1-g.W,Ce(g.A1),-1!==(d=ZC.AV(g.V,0))&&ZC._b_(g.o["show-zero"])&&(g.GS=d,Ce(d)),g.GS=1,i=g.W+1;i0&&ZC.AL(g.A.A.K+"-map")&&(ZC.AL(g.A.A.K+"-map").innerHTML+=S.join(""))}}function pe(e){return e=(e=(e=(e=(e=e.replace(/%scale-last-position/g,g.A1-g.W)).replace(/(%c)|(%scale-position)/g,g.GS)).replace(/(%i)|(%scale-index)/g,g.K6)).replace(/(%v)|(%scale-value)/g,null!==ZC._n_(g.V[g.K6])?g.V[g.K6]:"")).replace(/(%l)|(%scale-label)/g,null!==ZC._n_(g.BY[g.K6])?g.BY[g.K6]:"")}}};ZC.Q6=ZC.W7.CC(Q6);var SU={$i:function(e){this.b(e),this.CK=!0},parse:function(){this.b()},J2:function(){var e=this;e.A1===e.W?e.AB=e.F-e.A9-e.BS:e.AB=(e.F-e.A9-e.BS)/(e.A1-e.W+(e.DE?1:0))},AA1:function(e){this.b(e),this.J2()},clear:function(){},build:function(){this.b()},zoomTo:function(e,i){this.b(e,i),this.J2()},NG:function(e){var i,t=this;i=t.AW?(e-t.iY-t.A9)/(t.F-t.A9-t.BS):(t.iY+t.F-t.A9-e)/(t.F-t.A9-t.BS);var n=t.AY,a=t.BD;"log"===t.BT&&(n=ZC.FT(n,t.DX),a=ZC.FT(a,t.DX));var l=n+ZC._f_((a-n)*i);return"log"===t.BT&&(l=Math.pow(t.DX,l)),l},OG:function(e,i,t){var n,a,l,o,r=this;void 0===t&&(t=!1);var s=r.DE?r.AB:0;l=r.AW?(e-r.iY-r.A9-s/2)/(r.F-r.A9-r.BS-s):(r.iY+r.F-e-r.A9-s/2)/(r.F-r.A9-r.BS-s);var C=!1;if(i)for(o in i.K5){C=!0;break}if(i&&!r.NU&&C){var A=r.V[r.W];"string"==typeof A&&(A=ZC.AV(r.IT,A)),"log"===r.BT&&(A=ZC.FT(A,r.DX));var c=r.V[r.A1];"string"==typeof c&&(c=ZC.AV(r.IT,c)),"log"===r.BT&&(c=ZC.FT(c,r.DX));var u=A+ZC._f_((c-A)*l);"log"===r.BT&&(u=Math.pow(r.DX,u));var p=ZC.MAX;for(o in a=null,i.K5)(n=Math.abs(o-u))i.A2G){var Z=Math.ceil((c-A)/(r.I-r.A9-r.BS));if(i.V.length<2&&(Z*=100),p>Z)return null}return a}var h=r.W,d=r.A1;return r.EG&&(null!==ZC._n_(n=r.V[h])&&(h=n),null!==ZC._n_(n=r.V[d])&&(d=n)),"log"===r.BT&&(h=ZC.FT(h,r.DX),d=ZC.FT(d,r.DX)),a=t?r.DE?h+(d-h+1)*l:h+(d-h)*l:(r.DE,r.W+(r.A1-r.W)*l),"log"===r.BT?(a=Math.pow(r.DX,a),a=Math.floor(a)-1):(a=ZC._i_(a),a=ZC.BQ(0,a),a=ZC.CY(r.DR,a)),a},IE:function(e){var i=this;i.W,i.A1;return i.EG&&!i.NU&&(i.AY,i.BD),"log"===i.BT&&(e=ZC.FT(e+1,i.DX)),i.AW?i.iY+i.A9+(e-i.W)*i.AB+(i.DE?i.AB/2:0):i.iY+i.F-i.A9-(e-i.W)*i.AB-(i.DE?i.AB/2:0)},AR:function(e){var i,t,n,a,l,o=this;if("log"===o.BT&&(0===e&&(e=o.AY),e=ZC.FT(e,o.DX)),o.NU){var r=o.U5[e];return o.IE(r)}if(-1!==(i=ZC.AV(o.IT,e)))return o.IE(i);if(!o.A4K&&(o.EG||o.F6&&"date"===o.F6.o.type)){a=o.V[o.W],l=o.V[o.A1];var s=o.F;return"log"===o.BT&&(a=ZC.FT(a,o.DX),l=ZC.FT(l,o.DX),o.W===o.D6&&o.A1===o.DR&&(s=(o.A1-o.W)*o.AB+o.A9+o.BS)),l===a?n=0:(t=l-a,n=(s-o.A9-o.BS-(o.DE?o.AB:0))/t),o.AW?o.iY+o.A9+(e-a)*n+(o.DE?o.AB/2:0):o.iY+s-o.A9-(e-a)*n-(o.DE?o.AB/2:0)}return a=o.AY,l=o.BD,"log"===o.BT&&(a=ZC.FT(a,o.DX),l=ZC.FT(l,o.DX)),l===a?n=0:(t=l-a+(o.DE?1:0),n=(o.F-o.A9-o.BS)/t),o.AW?o.iY+o.A9+(e-a)*n+(o.DE?o.AB/2:0):o.iY+o.F-o.A9-(e-a)*n-(o.DE?o.AB/2:0)},paint:function(){var e,i,t,n,a,l,o,r,s,C,A,c,u,p,Z,h,d,f=this;if(f.AN){f.b(),null!==ZC._n_(f.A.A.E[f.BF+"-feed-offset-start"])&&(f.A9=f.A.A.E[f.BF+"-feed-offset-start"]),"hbubble"!==f.A.AF&&"hscatter"!==f.A.AF||(-1===f.A9&&-1===f.BS||1===f.V.length)&&(f.A9=f.BS=f.F/(f.V.length+1),f.J2());var _=f.A0N(),g=0,v=1,b=1,B={};for(i=0,t=f.A.BO.length;i0;P--)f.iStepMultiplier>P&&f.A1-f.W<=P*f.iStepMultiplier&&(O=P);X*=O,M*=O;var H,N,G,Q=0,k=f.AB*X/(f.FZ+1);if(null===ZC._n_(D)&&(D=a),l=f.H.usc()?f.H.mc():ZC.AL(f.A.K+"-scales-ml-0-c"),o=ZC.Q.EC(l,f.H.AC),r=f.H.usc()?f.H.mc():ZC.AL(f.A.K+"-scales-bl-0-c"),s=ZC.Q.EC(r,f.H.AC),"inherit"===f.o["line-color"]&&-1!==_&&(f.B7=_),f.A.AJ["3d"])(p=ZC.DK.DC(f,f.A,a-ZC.AP.E4,a-ZC.AP.E4,f.iY-ZC.AP.E5,f.iY-ZC.AP.E5+f.F,-1,ZC.AP.FX+1,"y")).K=f.K+"-line",f.A.EZ.true3d&&(f.A.EZ["x-angle"]>0?p.ME=[1===f.L?-100:100,1,1]:p.ME=[1===f.L?100:-100,1,1]),f.A.CM.add(p);else{A=[[Y,f.iY+f.F],[Y,f.iY]];var R=f.K;f.K+="-line",ZC.CR.paint(o,f,A),f.K=R}if(f.V.length>0&&f.D7.AN){var z=null===ZC._n_(f.D7.o["offset-start"])?0:ZC._i_(f.D7.o["offset-start"]),T=null===ZC._n_(f.D7.o["offset-end"])?0:ZC._i_(f.D7.o["offset-end"]);if(f.D7.o.items&&f.D7.o.items.length>0&&!f.A.AJ["3d"])for(Z=new ZC.HQ(f),i=f.W;i0)for(f.GS=0,i=f.W;i<=f.A1+(f.DE?1:0);i++)if(f.K6=i,i===f.W||i===f.A1+(f.DE?1:0)||(i-f.W)%X==0){(f.D7.E7.length>0||i===f.W)&&((u=new ZC.CZ(f)).Z=u.C7=r,u.copy(f.D7),u.J5=Ae,u.DF()&&u.parse()),C=i-f.W,A=[],c=f.AW?f.iY+f.A9+C*f.AB:f.iY+f.F-f.A9-C*f.AB;var V=f.iX+z,S=f.I-z-T;if(u.AN)if(f.A.AJ["3d"]){var J=new ZC.CZ(f);J.copy(u),null!==ZC._n_(f.o["scale-z"])&&null!==ZC._n_(e=f.o["scale-z"].guide)&&(J.append(e),J.parse()),J.A0=J.AE=J.B7,p=ZC.DK.DC(J,f.A,a-ZC.AP.E4,a-ZC.AP.E4,c-ZC.AP.E5-J.B1/2,c-ZC.AP.E5+J.B1/2,0,ZC.AP.FX,"z"),f.A.CM.add(p),u.A0=u.AE=u.B7,(p=ZC.DK.DC(u,f.A,V-ZC.AP.E4,V-ZC.AP.E4+S,c-ZC.AP.E5-J.B1/2,c-ZC.AP.E5+J.B1/2,ZC.AP.FX+2,ZC.AP.FX+2,"x")).K=f.K+"-guide-"+i,f.A.CM.add(p)}else A.push([V,c],[V+S,c]),u.K=f.K+"-guide-"+i,ZC.CR.paint(s,u,A);f.GS++}}if(f.V.length>0&&f.G7.AN&&!f.A.AJ["3d"]){if(f.G7.o.items&&f.G7.o.items.length>0)for(Z=new ZC.HQ(f),i=f.W;i0)for(i=f.W;i0&&f.IU.AN&&(!f.A.AJ["3d"]||!f.A.EZ.true3d)){switch(f.IU.o.placement){case"inner":break;case"outer":Q+=w;break;default:Q+=w/2}for(f.GS=0,i=f.W;i<=f.A1+(f.DE?1:0);i++)if(f.K6=i,i===f.W||i===f.A1+(f.DE?1:0)||(i-f.W)%X==0){switch(A=[],C=i-f.W,(f.IU.E7.length>0||i===f.W)&&((u=new ZC.CZ(f)).copy(f.IU),"inherit"===f.IU.o["line-color"]&&-1!==_&&(u.B7=_),u.J5=Ae,u.DF()&&u.parse()),c=f.AW?f.iY+f.A9+C*f.AB:f.iY+f.F-f.A9-C*f.AB,u.o.placement){case"ref-auto":A.push([D-w/2,c],[D+w/2,c]);break;case"ref-left":A.push([D-w,c],[D,c]);break;case"ref-right":A.push([D+w,c],[D,c]);break;case"inner":A.push([a,c],[a+(E?w:-w),c]);break;case"outer":A.push([a,c],[a-(E?w:-w),c]);break;default:A.push([a+w/2,c],[a-w/2,c])}if(u.AN){for(N=ZC._i_(u.o["offset-x"]||"0"),G=ZC._i_(u.o["offset-y"]||"0"),H=0;H0&&f.FZ>0&&f.IB.AN&&!f.A.AJ["3d"])for(i=f.W;i1&&f.BR.AN)for(f.GS=0,ce(f.W),f.GS=f.A1-f.W,ce(f.A1),f.GS=1,i=f.W+1;i0&&ZC.AL(f.A.A.K+"-map")&&(ZC.AL(f.A.A.K+"-map").innerHTML+=oe.join(""))}}function Ae(e){return e=(e=(e=(e=(e=e.replace(/%scale-last-position/g,f.A1-f.W)).replace(/(%c)|(%scale-position)/g,f.GS)).replace(/(%i)|(%scale-index)/g,f.K6)).replace(/(%v)|(%scale-value)/g,null!==ZC._n_(f.V[f.K6])?f.V[f.K6]:"")).replace(/(%l)|(%scale-label)/g,null!==ZC._n_(f.BY[f.K6])?f.BY[f.K6]:"")}function ce(e,i,t){f.K6=e,C=e-f.W,(f.BR.E7.length>0||e===f.W||!W||f.BR.HW)&&(W=new ZC.DN(f)),W.copy(f.BR),W.K=f.A.K+"-"+f.BF.replace(/\-/g,"_")+"-item_"+(t?"c"+t:e),W.GL=f.K+"-item "+f.A.K+"-scale-item zc-scale-item",W.E["p-height"]=f.AB,f.CJ=ee,f.DT=ie,f.Z3(Ae);var n="";if(n=t||f.FQ(e),f.BR.HW){var l=f.A.GZ();ZC._cp_({index:e,cnt:C,text:n},l),f.H4(f.BR,W,null,l,f.BR.ML)}if(null===ZC._n_(f.LU)||-1!==ZC.AV(f.LU,n)){switch(W.AM=n,W.Z=W.C7=f.H.usc()?f.H.mc():ZC.AL(f.A.K+"-scales-ml-0-c"),W.IM=f.H.usc()?ZC.AL(f.H.K+"-main"):ZC.AL(f.H.K+"-text"),W.E.nodeidx=e,W.parse(),"inherit"!==f.BR.o["font-color"]&&"inherit"!==f.BR.o.color||-1===_||(W.C2=_),W.J5=Ae,W.DF()&&W.parse(),W.o["auto-fit"]&&(W.F=ZC._i_(f.AB)),W.o.placement){case"inner":W.iX=E?a+w:a-W.I-w;break;case"ref-left":W.iX=D-W.I-w;break;case"ref-right":W.iX=D+w;break;case"ref-auto":F&&F.R[e]?(F.R[e].setup(),F.R[e].iX0;P--)g.iStepMultiplier>P&&g.A1-g.W<=P*g.iStepMultiplier&&(O=P);M*=O,X*=O;var H=0,N=g.AB*M/(g.FZ+1);if(a=g.H.usc()?g.H.mc():ZC.AL(g.A.K+"-scales-ml-0-c"),l=ZC.Q.EC(a,g.H.AC),o=g.H.usc()?g.H.mc():ZC.AL(g.A.K+"-scales-bl-0-c"),r=ZC.Q.EC(o,g.H.AC),g.TA||g.YI||null!==ZC._n_(g.A.o[g.BF])){if("inherit"===g.o["line-color"]&&-1!==v&&(g.B7=v),g.A.AJ["3d"])(u=ZC.DK.DC(g,g.A,g.iX-ZC.AP.E4,g.iX-ZC.AP.E4+g.I,n-ZC.AP.E5,n-ZC.AP.E5,-1,ZC.AP.FX+1,"x")).K=g.K+"-line",g.A.EZ.true3d&&(g.A.EZ["y-angle"]>0?u.ME=[1===g.L?-100:100,1,1]:u.ME=[1===g.L?100:-100,1,1]),g.A.CM.add(u);else{s=[[g.iX,Y],[g.iX+g.I,Y]];var G=g.K;g.K+="-line",ZC.CR.paint(l,g,s),g.K=G}var Q=[],k=0,R=0,z=[];if(g.TA||g.YI){if(g.V.length>0&&g.D7.AN){var T=null===ZC._n_(g.D7.o["offset-start"])?0:ZC._i_(g.D7.o["offset-start"]),V=null===ZC._n_(g.D7.o["offset-end"])?0:ZC._i_(g.D7.o["offset-end"]);if(g.D7.o.items&&g.D7.o.items.length>0&&!g.A.AJ["3d"])for(g.GS=0,d=new ZC.HQ(g),i=g.W;i0)for(g.GS=0,i=g.W;i<=g.A1+(g.DE?1:0);i++)if(g.K6=i,i===g.W||i===g.A1||i%M==0){(g.D7.E7.length>0||i===g.W||"log"===g.BT)&&((c=new ZC.CZ(g)).Z=c.C7=o,"log"===g.BT?ZC.AO._int_(ZC.FT(g.V[i],g.DX))?c.copy(g.D7):c.copy(g.G7):c.copy(g.D7),c.J5=se,c.DF()&&c.parse()),s=[],C=i-g.W;var J=g.iY+T,W=g.F-T-V;if(A=(g.BT,g.AR(g.V[i])),c.AN)if(g.A.AJ["3d"]){var U=new ZC.CZ(g);U.copy(c),null!==ZC._n_(g.o["scale-z"])&&null!==ZC._n_(e=g.o["scale-z"].guide)&&(U.append(e),U.parse()),U.A0=U.AE=U.B7,u=ZC.DK.DC(U,g.A,A-ZC.AP.E4-U.B1/2,A-ZC.AP.E4+U.B1/2,n-ZC.AP.E5,n-ZC.AP.E5,0,ZC.AP.FX,"z"),g.A.CM.add(u),c.A0=c.AE=c.B7,(u=ZC.DK.DC(c,g.A,A-ZC.AP.E4-c.B1/2,A-ZC.AP.E4+c.B1/2,J-ZC.AP.E5,J-ZC.AP.E5+W,ZC.AP.FX+2,ZC.AP.FX+2,"y")).K=g.K+"-guide-"+i,g.A.CM.add(u)}else s.push([A,J],[A,J+W]),c.K=g.K+"-guide-"+i,ZC.CR.paint(r,c,s);g.GS++}}if(g.V.length>0&&g.G7.AN&&N>2&&!g.A.AJ["3d"]){if(g.G7.o.items&&g.G7.o.items.length>0)for(d=new ZC.HQ(g),i=g.W;i0&&"log"!==g.BT)for(i=g.W;i0&&g.IU.AN&&(!g.A.AJ["3d"]||!g.A.EZ.true3d)){switch(g.IU.o.placement){case"inner":break;case"outer":H+=w;break;default:H+=w/2}for(g.GS=0,f=ZC.AV(g.V,0),i=g.W;i<=g.A1+(g.DE?1:0);i++){g.K6=i;var ee=-1;if((i===g.W||i===g.A1||i%M==0||ZC._b_(g.o["show-zero"])&&i===f)&&(s=[],C=i-g.W,(g.IU.E7.length>0||i===g.W||"log"===g.BT)&&(c=new ZC.CZ(g),"log"===g.BT?ZC.AO._int_(ZC.FT(g.V[i],g.DX))?c.copy(g.IU):(c.copy(g.IB),ee=w,w=y):c.copy(g.IU),"inherit"===g.IU.o["line-color"]&&-1!==v&&(c.B7=v),c.J5=se,c.DF()&&c.parse()),A=(g.BT,g.AR(g.V[i])),ZC.DP(A,g.A.P.iX,g.A.P.iX+g.A.P.I))){switch(c.o.placement){case"inner":s.push([A,n-(F?w:-w)],[A,n]);break;case"outer":s.push([A,n],[A,n+(F?w:-w)]);break;default:s.push([A,n+w/2],[A,n-w/2])}if(-1!==ee&&(w=ee,ee=-1),c.AN){for(q=ZC._i_(c.o["offset-x"]||"0"),$=ZC._i_(c.o["offset-y"]||"0"),j=0;j0&&g.IB.AN&&g.FZ>0&&N>5&&!g.A.AJ["3d"]&&"log"!==g.BT)for(i=g.W;i0||e===g.W||!_||g.BR.HW)&&(_=new ZC.DN(g)),_.copy(g.BR),_.GL=g.K+"-item "+g.A.K+"-scale-item zc-scale-item",_.K=g.A.K+"-"+g.BF.replace(/\-/g,"_")+"-item_"+e,g.CJ=te,g.DT=ne,g.Z3(se),i=("piano"===g.A.AF||g.PY)&&g.BY.length?g.FQ(e+g.AY):g.FQ(e),g.BR.HW){var t=g.A.GZ();ZC._cp_({index:e,cnt:C,text:i},t),g.H4(g.BR,_,null,t,g.BR.ML)}if(null===ZC._n_(g.LU)||-1!==ZC.AV(g.LU,i)){switch(_.AM=i,_.Z=_.C7=g.H.usc()?g.H.mc():ZC.AL(g.A.K+"-scales-ml-0-c"),_.IM=g.H.usc()?ZC.AL(g.H.K+"-main"):ZC.AL(g.H.K+"-text"),_.parse(),"inherit"!==g.BR.o["font-color"]&&"inherit"!==g.BR.o.color||-1===v||(_.C2=v),_.J5=se,_.E7=g.BR.E7,_.DF()&&_.parse(),_.o.placement){case"inner":_.iY=F?n-_.KD-w:n+w;break;default:_.iY=F?n+w:n-_.KD-w}if("log"===g.BT?_.iX=g.AR(g.V[e])-_.I/2:_.iX=g.AR(g.V[e])-_.I/2-(g.AW?1:-1)*(g.DE?g.AB/2:0),ie=g.N0(_,ie,"h"),g.BR.o["auto-align"]&&g.BR.AA%180!=0){var a=ZC.DP(g.BR.AA,0,180)?F?1:-1:1===F?-1:1;_.iX+=a*_.I*ZC.EI(g.BR.AA)/2,_.iY+=a*(_.I*ZC.EP(g.BR.AA)/2-_.F*ZC.EP(g.BR.AA)/2)}if(ZC.DP(_.iX+_.I/2,g.A.P.iX-1,g.A.P.iX+g.A.P.I+1)||g.A.AJ["3d"]){var l=g.X6(_,e,{items:0,lcoords:Q,lstep:X,tdim:k,mdim:R,dim:"h",html:z});k=l.tdim,R=l.mdim,g.GS++}}};if(g.V.length>0&&g.BR.AN)if("log"===g.BT){var le=[];for(i=g.W;i<=g.A1;i++)ZC.AO._int_(ZC.FT(g.V[i],g.DX))&&(g.GS=i,ae(i),le.push(i));for(i=g.W;i<=g.A1;i++)-1===ZC.AV(le,i)&&(g.GS=i,ae(i))}else for(g.GS=0,ae(g.W),g.GS=g.A1-g.W,ae(g.A1),-1!==(f=ZC.AV(g.V,0))&&ZC._b_(g.o["show-zero"])&&(g.GS=f,ae(f)),g.GS=1,i=g.W+1;i0&&ZC.AL(g.A.A.K+"-map")&&(ZC.AL(g.A.A.K+"-map").innerHTML+=z.join(""))}}}function se(e){return e=(e=(e=(e=(e=e.replace(/%scale-last-position/g,g.A1-g.W)).replace(/(%c)|(%scale-position)/g,g.GS)).replace(/(%i)|(%scale-index)/g,g.K6)).replace(/(%v)|(%scale-value)/g,null!==ZC._n_(g.V[g.K6])?g.V[g.K6]:"")).replace(/(%l)|(%scale-label)/g,null!==ZC._n_(g.BY[g.K6])?g.BY[g.K6]:"")}}};ZC.SV=ZC.W7.CC(SV);var T5={$i:function(e){this.b(e);var i=this;i.NH="",i.KS=1,i.H3=1,i.GK=0,i.GF=0,i.JF=.6},parse:function(){var e=this;e.b(),e.iX+=e.DZ,e.iY+=e.E9,e.I-=e.DZ+e.E8,e.F-=e.E9+e.DU,e.ZN("layout","NH"),null!==ZC._n_(e.o["size-factor"])&&(e.JF=ZC._f_(ZC._p_(e.o["size-factor"])))},AA1:function(e){var i=this;i.b(e),0===i.V.length&&(i.V=[""]);var t=ZC.AO.A2F(i.NH,i.V.length,!1);i.KS=t[0],i.H3=t[1],i.GK=i.I/i.H3,i.GF=i.F/i.KS},A5D:function(){var e=this;e.b(),e.GK=e.I/e.H3,e.GF=e.F/e.KS},clear:function(){},build:function(){this.b()},paint:function(){var e,i,t,n,a,l=this;if(l.AN){if(l.b(),e=ZC.Q.EC(l.H.usc()?l.H.K+"-main-c":l.A.K+"-scales-ml-0-c",l.H.AC),i=ZC.Q.EC(l.H.usc()?l.H.K+"-main-c":l.A.K+"-scales-bl-0-c",l.H.AC),(t=[]).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,t),l.D7.AN){if(l.D7.o.items&&l.D7.o.items.length>0)for(n=0,a=l.V.length;n0){for(t=[],n=0;n<=l.H3;n++)t.push([l.iX+n*l.GK,l.iY],[l.iX+n*l.GK,l.iY+l.F],null);for(n=0;n<=l.KS;n++)t.push([l.iX,l.iY+n*l.GF],[l.iX+l.I,l.iY+n*l.GF],null);ZC.CR.paint(i,l.D7,t)}}var A,c=[];if(l.BR.AN){for(n=0,a=l.V.length;n0&&ZC.AL(l.A.A.K+"-map")&&(ZC.AL(l.A.A.K+"-map").innerHTML+=c.join(""))}}function u(e){(l.BR.E7.length>0||0===e)&&(A=new ZC.DN(l)),A.copy(l.BR);var i=e%l.H3,t=Math.floor(e/l.H3);A.GL=l.K+"-item "+l.A.K+"-scale-item zc-scale-item",A.K=l.A.K+"-"+l.BF.replace(/\-/g,"_")+"-item_"+e;var n=l.FQ(e);if((null===ZC._n_(l.LU)||-1!==ZC.AV(l.LU,n))&&(A.AM=n,A.Z=l.H.usc()?l.H.mc():ZC.AL(l.A.K+"-scales-ml-0-c"),A.parse(),A.J5=function(i){return i=(i=(i=i.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.E7=l.BR.E7,A.DF()&&A.parse(),A.AN)){var a="bottom";null!==ZC._n_(l.BR.o.placement)&&(a=l.BR.o.placement);var o=l.iX+i*l.GK,r=l.iY+t*l.GF;switch(a){case"top-left":A.iX=o,A.iY=r;break;case"top-right":A.iX=o+l.GK-A.I,A.iY=r;break;case"bottom-left":A.iX=o,A.iY=r+l.GF-A.F;break;case"bottom-right":A.iX=o+l.GK-A.I,A.iY=r+l.GF-A.F;break;case"top":A.iX=o+l.GK/2-A.I/2,A.iY=r;break;case"right":A.iX=o+l.GK-A.I,A.iY=r+l.GF/2-A.F/2;break;case"left":A.iX=o,A.iY=r+l.GF/2-A.F/2;break;default:A.iX=o+l.GK/2-A.I/2,A.iY=r+l.GF-A.F}A.paint(),A.EM(),null===ZC._n_(l.o.tooltip)&&A.KA||c.push(ZC.AQ.O6(l.A.K,A))}}}};ZC.T5=ZC.ZJ.CC(T5);var A2B={$i:function(e){this.b(e);this.DJ=0,this.EK=360},parse:function(){var e,i=this;i.b(),null!==ZC._n_(e=i.o["ref-angle"])&&(i.DJ=ZC._i_(e)%360),null!==ZC._n_(e=i.o.aperture)&&(i.EK=ZC._i_(e)%360,0===i.EK&&(i.EK=360))}};ZC.A2B=ZC.ZJ.CC(A2B);var A59={$i:function(e){this.b(e)},parse:function(){this.b()},J2:function(){},AA1:function(e){this.b(e),this.J2()},clear:function(){this.b()},build:function(){this.b()},paint:function(){this.b()}};ZC.A59=ZC.W7.CC(A59),ZC.A84=ZC.A59.CC({$i:function(e){this.b(e);var i=this;i.DJ=-90,i.EK=180,i.QB=null,i.IX=null,i.CW="circle"},parse:function(){var e,i=this;i.b(),null!==ZC._n_(e=i.o["ref-angle"])&&(i.DJ=ZC._i_(e)%360),null!==ZC._n_(e=i.o.aperture)&&(i.EK=ZC._i_(e)),null!==ZC._n_(e=i.o.center)&&(i.QB=new ZC.DQ(i),i.QB.append(e),i.QB.parse()),null!==ZC._n_(e=i.o.ring)&&(i.IX=new ZC.DQ(i),i.H.B8.load(i.IX.o,[i.A.AF+"."+i.BF+".ring"]),i.IX.append(e),i.IX.parse())},AA1:function(e){this.b(e)},clear:function(){},build:function(){this.b()},AR:function(e){var i=this,t=i.A.BM("scale"),n=t.iX+t.I/2,a=t.iY+t.F/2,l=i.A.BM("scale-"+i.L);l||(l=i.A.BM("scale"));var o=ZC.CY(l.GK/2,l.GF/2)*l.JF,r=i.BD-i.AY,s=i.EK/r;return ZC.AO.BN(n,a,o,i.DJ-i.EK/2+s*(e-i.AY))},IE:function(e){return this.AR(this.V[e])},paintMarker:function(e){var i,t=this;if(e.F9){var n,a=t.A.BM("scale-"+t.L);if(a||(a=t.A.BM("scale")),e.AN){var l=t.A.K+"-scales-"+("top"===e.BA?"f":"b")+"l-0-c";e.Z=e.C7=ZC.AL(t.H.usc()?a.H.K+"-main-c":l),n=ZC.Q.EC(e.Z,t.H.AC);var o=ZC.CY(a.GK/2,a.GF/2)*a.JF,r=ZC.IL(e.o["offset-start"]||"0");r>0&&r<1&&(r*=o);var s=ZC.IL(e.o["offset-end"]||"0");s>0&&s<1&&(s*=o),e.M&&(e.M.Z=t.H.usc()?t.H.mc():ZC.AL(t.A.K+"-scales-ml-0-c"),e.M.K=e.A.A.K+"-"+e.A.BF.replace(/\-/g,"_")+"-marker_"+e.L,e.M.GL=e.A.K+"-marker-label "+e.A.A.K+"-scale-marker-label zc-scale-marker-label");for(var C=0;C0){var h=t.DJ-t.EK/2+t.EK*(e.F9[0]-t.AY)/(t.BD-t.AY);A=h;var d=[];d.push(ZC.AO.BN(p,Z,r,h)),d.push(ZC.AO.BN(p,Z,o-s,h)),2===d.length&&(ZC.CR.setup(n,e),ZC.CR.paint(n,e,d))}break;case"area":if(e.F9.length>1){var f=t.DJ-t.EK/2+t.EK*(e.F9[0]-t.AY)/(t.BD-t.AY),_=t.DJ-t.EK/2+t.EK*(e.F9[1]-t.AY)/(t.BD-t.AY);A=(f+_)/2;var g=new ZC.DQ(e);g.Z=e.Z,g.append(e.o),g.append({size:o-s,slice:r,type:"pie","angle-start":f,"angle-end":_}),g.K=a.K+"-marker-"+e.L,g.iX=p,g.iY=Z,g.parse(),g.paint()}}if(e.M){var v;null!==ZC._n_(i=e.M.o["offset-r"])?v=ZC._f_(ZC._p_(i)):v<1?v*=o-s-r:v=0;var b=ZC.AO.BN(p,Z,(o-s-r)/2+v,A);e.M.iX=b[0]-e.M.I/2,e.M.iY=b[1]-e.M.F/2,e.M.paint()}}}}},paint:function(){var e,i,t,n,a,l,o,r,s,C=this;if(C.AN&&0!==C.V.length){C.AW&&C.V.reverse(),e=ZC.Q.EC(C.H.usc()?C.H.K+"-main-c":C.A.K+"-scales-bl-0-c",C.H.AC);var A=ZC._i_(C.IU.o.size||8),c=ZC._i_(C.IB.o.size||4),u=0,p=ZC.BQ(1,Math.ceil((C.A1-C.W)/(C.M2-1))),Z=ZC.BQ(1,Math.ceil((C.A1-C.W)/(C.EH-1))),h=C.A.BM("scale-"+C.L);h||(h=C.A.BM("scale"));for(var d,f,_,g=ZC.CY(h.GK/2,h.GF/2)*h.JF,v=C.EK/(C.V.length-1),b=0;b0)for(i=0;i0)for(i=0,t=C.V.length;i0&&C.FZ>0)for(i=0,t=C.V.length;i0&&(a.paint(),360===C.EK&&(a.K=C.K+"-ring-inner",a.o.size=g-n,a.parse(),a.paint())),C.IX.o.items&&C.IX.o.items.length>0||C.IX.o.rules))for(i=0;i0&&a.paint();if(C.IU.AN){switch(C.IU.o.placement){case"outer":u+=A;break;default:u+=A/2}for(l=[],i=0,t=C.V.length;i0){for(l=[],i=0,t=C.V.length;i0&&ZC.AL(C.A.A.K+"-map")&&(ZC.AL(C.A.A.K+"-map").innerHTML+=K.join(""))}}}function L(e){return e=(e=(e=(e=e.replace(/%i/g,i)).replace(/%k/g,i)).replace(/%v/g,null!==ZC._n_(C.V[i])?C.V[i]:"")).replace(/%l/g,null!==ZC._n_(C.BY[i])?C.BY[i]:"")}},paint_:function(){var e=this,i=e.A.BM("scale-"+e.L);i||(i=e.A.BM("scale"));for(var t=0;t0){var v=0;for(t=0,n=s.V.length-(360===s.EK||s.DE?0:1);t0)for(t=0,n=s.V.length+(s.DE?1:0);t0&&ZC.AL(s.A.A.K+"-map")&&(ZC.AL(s.A.A.K+"-map").innerHTML+=I.join(""))}}function x(e){return e=(e=(e=e.replace(/(%i)|(%scale-index)/g,t)).replace(/(%v)|(%scale-value)/g,null!==ZC._n_(s.V[t])?s.V[t]:"")).replace(/(%l)|(%scale-label)/g,null!==ZC._n_(s.BY[t])?s.BY[t]:"")}function w(e){(s.BR.E7.length>0||0===e)&&(c=new ZC.DN(s)),c.copy(s.BR),c.GL=s.K+"-item "+s.A.K+"-scale-item zc-scale-item",c.K=s.A.K+"-"+s.BF.replace(/\-/g,"_")+"-item_"+e;var i=s.FQ(e);if(null===ZC._n_(s.LU)||-1!==ZC.AV(s.LU,i)){c.AM=i,c.Z=c.C7=s.H.usc()?s.H.mc():ZC.AL(s.A.K+"-scales-ml-0-c"),c.parse(),c.J5=function(i){return i=(i=(i=i.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]:"")},c.E7=s.BR.E7,c.DF()&&c.parse();var t=ZC.IL(c.DW,!0);if(t>-1&&t<1&&(t*=h),r=s.DJ+e*g+(s.DE?g/2:0),s.BR.o["auto-align"]){var n=1.25;1-ZC._a_(ZC.EI(r))>.7&&(n=2.5*(1-ZC._a_(ZC.EI(r))));var a=(1-ZC._a_(ZC.EI(r)))*c.DH*n;K=ZC.AO.BN(f,_,h+t+p+a,r),ZC.EI(r)>0?(c.iX=K[0],c.iY=K[1]-c.F/2):(c.iX=K[0]-c.I,c.iY=K[1]-c.F/2)}else s.BR.o["auto-rotate"]?(K=ZC.AO.BN(f,_,h+t+p+c.F/2,r),c.iX=K[0]-c.I/2,c.iY=K[1]-c.F/2,c.AA=r+90):(K=ZC.AO.BN(f,_,h+t+p+ZC._a_(10*ZC.EP(r))+ZC._a_(c.I/2*ZC.EI(r)),r),c.iX=K[0]-c.I/2,c.iY=K[1]-c.F/2);c.AN&&(c.paint(),c.EM(),null===ZC._n_(s.o.tooltip)&&c.KA||(null!==ZC._n_(s.o.tooltip)&&(s.o.tooltip.text=s.o.tooltip.text||"%scale-value"),I.push(ZC.AQ.O6(s.A.K,c))))}}}};ZC.ZL=ZC.A2B.CC(ZL);var ZK={$i:function(e){this.b(e)},parse:function(){this.b()},J2:function(){var e=this,i=e.A.BM("scale"),t=ZC.CY(i.I/2,i.F/2)*i.JF;e.AB=(t-e.A9-e.BS)/(e.A1-e.W)},AA1:function(e){this.b(e),this.J2()},A8B:function(){var e=this,i=e.A.BM("scale"),t=ZC.CY(i.I/2,i.F/2)*i.JF;e.EH=ZC.BQ(2,ZC._i_((t-e.A9-e.BS)/20))},U8:function(e){var i=this,t=i.A.BM("scale"),n=ZC.CY(t.I/2,t.F/2)*t.JF,a=i.BD-i.AY,l=(n-i.A9-i.BS)/a;return(e-i.AY)*l},AR:function(e){var i=this,t=i.U8(e),n=i.A.BM("scale-k"),a=i.A.BM("scale"),l=a.iX+a.I/2+a.BK,o=a.iY+a.F/2+a.BI;return ZC.AO.BN(l,o,t,n.DJ)},clear:function(){},build:function(){this.b()},paint:function(){var e,i,t,n,a,l,o,r=this;if(r.AN&&0!==r.V.length){r.b(),e=ZC.Q.EC(r.H.usc()?r.H.K+"-main-c":r.A.K+"-scales-ml-0-c",r.H.AC),i=ZC.Q.EC(r.H.usc()?r.H.K+"-main-c":r.A.K+"-scales-bl-0-c",r.H.AC);var s,C,A=r.A.BM("scale-k"),c=ZC._i_(r.IU.o.size||8),u=Math.ceil((r.A1-r.W)/(r.EH-1)),p=Math.ceil((r.A1-r.W)/(r.M2-1)),Z=r.A.BM("scale"),h=ZC.CY(Z.I/2,Z.F/2)*Z.JF,d=Z.iX+Z.I/2+Z.BK,f=Z.iY+Z.F/2+Z.BI,_=A.EK/(A.V.length-(360===A.EK||A.DE?0:1));if(r.D7.AN){if(r.D7.o.items&&r.D7.o.items.length>0)for(t=0,n=r.V.length;t=0;a--)o.push(ZC.AO.BN(d,f,r.A9+(t+1)*r.AB,A.DJ+a*_));b.D=o,b.parse(),b.B1=0,b.AU=0,b.ET=0,b.G2=0;var B=r.A.P;b.D2=[B.iX,B.iY,B.iX+B.I,B.iY+B.F],b.paint()}}if(r.D7.B1>0)for(t=0,n=r.V.length;t0&&((o=[]).push(ZC.AO.BN(d,f,r.A9,A.DJ),ZC.AO.BN(d,f,h-r.BS,A.DJ)),ZC.CR.paint(e,r.P1,o)),r.IU.AN){switch(r.IU.o.placement){case"inner":break;case"outer":c;break;default:c/2}for(o=[],t=0,n=r.V.length;t0&&r.BR.AN)for(r.GS=0,L(r.W),r.GS=r.A1-r.W,L(r.A1),r.GS=1,t=r.W+1;t0&&ZC.AL(r.A.A.K+"-map")&&(ZC.AL(r.A.A.K+"-map").innerHTML+=C.join(""))}function w(e){return e=(e=(e=e.replace(/(%i)|(%scale-index)/g,t)).replace(/(%v)|(%scale-value)/g,null!==ZC._n_(r.V[t])?r.V[t]:"")).replace(/(%l)|(%scale-label)/g,null!==ZC._n_(r.BY[t])?r.BY[t]:"")}function y(e){return e=(e=(e=(e=e.replace(/(%c)|(%scale-position)/g,r.GS)).replace(/(%i)|(%scale-index)/g,r.K6)).replace(/(%v)|(%scale-value)/g,null!==ZC._n_(r.V[r.K6])?r.V[r.K6]:"")).replace(/(%l)|(%scale-label)/g,null!==ZC._n_(r.BY[r.K6])?r.BY[r.K6]:"")}function L(e){r.K6=e,(s=new ZC.DN(r)).copy(r.BR),s.K=r.A.K+"-"+r.BF.replace(/\-/g,"_")+"-item_"+e,s.GL=r.K+"-item "+r.A.K+"-scale-item zc-scale-item";var i=r.FQ(e);if(s.AM=i,null===ZC._n_(r.LU)||-1!==ZC.AV(r.LU,i)){s.Z=s.C7=r.H.usc()?r.H.mc():ZC.AL(r.A.K+"-scales-fl-0-c"),s.parse(),s.J5=y,s.DF()&&s.parse();var t=ZC.AO.BN(d,f,r.A9+e*r.AB,A.DJ);switch(s.F=s.KD,s.I=s.NL,A.DJ%180==0?(s.iX=t[0]-s.I/2,s.iY=t[1]):(s.iX=t[0],s.iY=t[1]-s.F/2),r.IU.o.placement){case"inner":break;case"outer":A.DJ%180==0?s.iY+=c:s.iX+=c;break;default:A.DJ%180==0?s.iY+=c/2:s.iX+=c/2}s.AN&&(s.paint(),s.EM(),null===ZC._n_(r.o.tooltip)&&s.KA||(null!==ZC._n_(r.o.tooltip)&&(r.o.tooltip.text=r.o.tooltip.text||"%scale-value"),C.push(ZC.AQ.O6(r.A.K,s))))}}}};ZC.ZK=ZC.W7.CC(ZK);var A0K={$i:function(e){this.b(e);var i=this;i.C5=.95,i.L=0,i.AF=null,i.M=null,i.F9=null,i.A63=!1,i.BA="bottom",i.A9=0,i.BS=0,i.MK="normal",i.O4="normal",i.KC=[5,5],i.A09=[0,0],i.YO=""},parse:function(){this.b();var e,i=this;i.assign_a([["type","AF"],["value-range","A63","b"],["offset-start","A9","i"],["offset-end","BS","i"],["placement","BA"],["pair-scale","YO"],["label-placement","MK"],["label-alignment","O4"],["range","F9"]]),null===ZC._n_(i.o.alpha)&&(i.o.alpha="area"===i.AF?.25:.95),null!==ZC._n_(e=i.o["label-tolerance"])&&("object"==typeof e&&e.length?(i.KC[0]=ZC._i_(e[0]||"5"),i.KC[1]=ZC._i_(e[1]||"5")):i.KC[0]=i.KC[1]=ZC._i_(e||"5")),i.assign_a([["alpha","C5","f",0,1]]),null===ZC._n_(e=i.o.label)&&null===ZC._n_(i.o.text)||(i.M=new ZC.DN(i),i.A.A.A.B8.load(i.M.o,["("+i.A.AF+").SCALE.marker.label"]),null!==ZC._n_(i.o.text)&&i.M.append({text:i.o.text}),i.M.append(e),i.M.parse(),i.A09=[i.M.BK,i.M.BI])},paint:function(){var e,i,t,n,a,l,o,r=this;if(r.F9)if(-1===r.A.BF.indexOf("scale-r")){if(r.AN){var s,C,A,c,u=r.A,p=r.A.A.P.AU,Z=u.A.K+"-scales-"+("top"===r.BA?"f":"b")+"l-0-c";r.Z=r.C7=ZC.AL(u.H.usc()?u.H.K+"-main-c":Z),e=ZC.Q.EC(r.Z,u.H.AC),a=[];var h,d=0,f=0;r.BK>-1&&r.BK<1&&(r.BK=Math.ceil(r.BK*u.AB)),r.BI>-1&&r.BI<1&&(r.BI=Math.ceil(r.BI*u.AB)),r.M&&(r.M.Z=u.H.usc()?u.H.mc():ZC.AL(u.A.K+"-scales-ml-0-c"),r.M.K=r.A.A.K+"-"+r.A.BF.replace(/\-/g,"_")+"-marker_"+r.L,r.M.GL=r.A.K+"-marker-label "+r.A.A.K+"-scale-marker-label zc-scale-marker-label");var _=r.A.A,g=function(e,i){var t;return-1!==(i+"").indexOf("%")?(t=ZC._f_(i.replace("%","")),t="k"===e.AF?ZC._i_(t*(e.DR-e.D6)/100):t*(e.GU-e.FR)/100):t=i,r.A63||"v"===e.AF?e.AR(t):e.IE(t)};if("poly"===r.AF){var v,b,B,m;for(_=r.A.A,"k"===u.AF?(v=u,b=""===r.YO?_.BW("v")[0]:_.BM(r.YO)||_.BW("v")[0]):"v"===u.AF&&(b=u,v=""===r.YO?_.BW("k")[0]:_.BM(r.YO)||_.BW("k")[0]),l=0,o=r.F9.length;l=3){if(a[0].join("/")!==a[a.length-1].join("/")&&a.push([a[0][0],a[0][1]]),u.A.AJ["3d"])for(u.A.O2(),i=0,t=a.length;i=4)){if(u.A.AJ["3d"])for(u.A.O2(),i=0,t=a.length;iu.iY+u.F/2?"normal":"opposite"),r.M.BK=r.M.BI=0,(-1!==u.BF.indexOf("scale-x")&&!u.CK||-1!==u.BF.indexOf("scale-y")&&u.CK)&&null===ZC._n_(r.M.o.angle)&&(r.M.AA=270),-1!==u.BF.indexOf("scale-x")&&!u.CK||-1!==u.BF.indexOf("scale-y")&&u.CK?(r.M.AA%180==90&&(r.M.BK-=(u.AW?-1:1)*(r.M.I/2-r.M.F/2),r.M.BI-=r.M.I/2-r.M.F/2,"opposite"===r.MK&&(r.M.BI=-r.M.I/2+r.M.F/2),"opposite"===I&&(r.M.BK-=r.M.F)),r.M.AA%180==0&&("opposite"===r.MK&&(r.M.BI=-r.M.I+r.M.F),"opposite"===I&&(r.M.BK-=r.M.I))):(r.M.AA%180==90&&(r.M.BK-=r.M.I/2-r.M.F/2,r.M.BI-=(u.AW?-1:1)*(r.M.I/2-r.M.F/2),"opposite"===r.MK&&(r.M.BK=r.M.I/2-r.M.F/2),"opposite"===I&&(r.M.BI+=r.M.I)),r.M.AA%180==0&&"opposite"===I&&(r.M.BI+=r.M.F)),r.M.BK+=r.A09[0]+r.BK,r.M.BI+=r.A09[1]+r.BI),u.A.AJ["3d"]&&(n=new ZC.CF(u.A,r.M.iX-ZC.AP.E4,r.M.iY-ZC.AP.E5,ZC.AP.FX),r.M.iX=n.ED[0],r.M.iY=n.ED[1]),ZC.DP(r.M.iX+r.M.BK+(r.M.AA%180==0?r.M.I/2:r.M.F/2),r.A.A.P.iX-r.KC[0],r.A.A.P.iX+r.A.A.P.I+r.KC[0])&&ZC.DP(r.M.iY+r.M.BI+(r.M.AA%180==0?r.M.F/2:r.M.I/2),r.A.A.P.iY-r.KC[1],r.A.A.P.iY+r.A.A.P.F+r.KC[1])&&(r.M.paint(),r.M.EM(),!r.M.KA&&"normal"===zingchart.OBJECTMODE&&(u.E["marker_text_"+r.L]=r.M.AM,ZC.AL(_.A.K+"-map"))))){var x=ZC.AQ.O6(_.K,r.M);ZC.AL(_.A.K+"-map").innerHTML=ZC.AL(_.A.K+"-map").innerHTML+x}}}else r.A.paintMarker(r)}};ZC.A0K=ZC.DQ.CC(A0K);var VL={$i:function(e){var i=this;i.LV=null,i.A4L=0,i.OX=[],i.BF=e,i.A3G=!0},add:function(e){var i=this;i.OX.push(e),e.K3=i,e.LV=i.LV,e.BZ.TH=!0,e.X0=i.OX.length-1,i.A3G=!1}};ZC.VL=ZC.C9.CC(VL);var E6={$i:function(e,i,t,n,a,l){var o=this;for(var r in o.LV=null,o.BZ=e,o.AX=null,o.A4M=0,o.HU=null,o.N=i||{},o.A4N=t||500,o.XA=n||-1,o.A0B=null,o.T4=null,o.OC=null,null!==ZC._n_(l)&&(o.T4=l),o.A4O=ZC.E6.linear,null!==ZC._n_(a)&&""!==a&&(o.A4O=a),o.ADJ={},o.C6={},o.ACL=[],o.RD=ZC._i_(o.A4N/ZC.PJ.U1),o.RD>100&&(o.RD=100),(ZC.vml||ZC.mobile)&&(o.RD=ZC._i_(o.RD/4)),o.RD<5&&(o.RD=5),o.N)null!==ZC._n_(ZC.E6.GM[r])?o.C6[r]=o.BZ[ZC.E6.GM[r]]:o.C6[r]=o.BZ[r];o.Y=0,o.K3=null,o.X0=-1},status:function(){return this.Y+1>this.RD?0:1},step:function(){var e,i,t,n,a,l,o=this,r=1,s=o.LV.C.H.AC;if(o.Y++,o.Y>o.RD&&(o.Y===o.RD+1&&-1!==o.X0&&(o.K3.A4L++,o.K3.A4L===o.K3.OX.length&&(o.K3.A3G=!0)),r=0),r){var C={};if(o.Y===o.RD)C=o.N,o.A4M=1;else for(var A in o.A4M=o.A4O(o.Y,0,1,o.RD),o.N)switch(A){case"points":var c=[];for(a=0,l=o.N[A].length;a0?window.setTimeout(function(){t.start()},i+1):t.start()))},add:function(e){var i=this;e.LV=i,e.XA>0?(i.OX.push(e),window.setTimeout(function(){e.BZ.TH=!0,i.RE||i.start()},e.XA+1)):(e.BZ.TH=!0,i.OX.push(e),i.RE||i.start())},start:function(){var e=this;e.RE=!0,ZC.AQ.C0("animation_start",e.C.A,{id:e.C.A.K,graphid:e.C.K});var i=!0;!function t(){i||e.step(),i=!1,e.RE&&(e.C4=window.requestAnimFrame(t))}()},step:function(){var e,i=this,t=0;if(i.RE){for(var n=0,a=i.OX.length;nZC.AQ.N8(i)?1:-1});var e='',n=i.innerHTML.indexOf(e);-1!==n?i.innerHTML=i.innerHTML.substring(0,n+e.length)+t.C.a11y()+t.C.AZ.HE.join("")+i.innerHTML.substring(n+e.length):i.innerHTML+=t.C.a11y()+t.C.AZ.HE.join("")}},33),t.C.A6Z(),t.RE=!1;for(var n=0,a=t.OX.length;n0&&c<1&&(c*=f),s=[].concat(h);var _=0,g="";for(C=1,t=h.length-1;t>=0;t--)h[t].values&&null!==ZC._n_(h[t].values[0])&&h[t].values[0]",h[t].slice=Z,d.push(h[t]),h.splice(t,1),C++);_>0&&(C>2?(A={values:[_],detach:!1,"data-group":[1],"tooltip-text":g=g.substring(0,g.length-4)},ZC._cp_(u,A),h.push(A),zingchart.bind(e.id,"plot_click",function(i){if(i.xdata.group){var t=zingchart.getLoader(i.id);if(!t)return;var n=zingchart.getGraph(t,i.graphid);for(var a in n.getAttributes())"pie-sel-"===a.substring(0,8)&&n.setAttribute(a,null);zingchart.exec(e.id,"setseriesdata",{data:d}),window.setTimeout(function(){var i=zingchart.exec(e.id,"getobjectinfo",{object:"node",plotindex:0,nodeindex:0}),t={id:"navpie_btnback",x:i.x,y:i.y,text:"< Back",anchor:"c",cursor:"hand"};ZC._cp_(p,t),zingchart.exec(e.id,"addobject",{type:"label",data:t})},1)}}),zingchart.bind(e.id,"label_click",function(i){if("navpie_btnback"===i.label.id){var t=zingchart.getLoader(i.id);if(!t)return;var n=zingchart.getGraph(t,i.graphid);for(var a in n.getAttributes())"pie-sel-"===a.substring(0,8)&&n.setAttribute(a,null);zingchart.exec(e.id,"removeobject",{type:"label",id:"navpie_btnback"}),zingchart.exec(e.id,"setseriesdata",{data:h})}})):o.series=[].concat(s))}else{var v=0,b=[];for(t=0;t0&&c<1&&(c*=v),s=[].concat(h);var B=[],m=[];for(C=1,t=h.length-1;t>=0;t--)if(b[t]";d.push(h[t]),h.splice(t,1),C++}if(B.length)if(C>2){for(n=0;n2048&&(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,i=!1;e&&(i="function"==typeof document.createElement("canvas").getContext("2d").fillText);ZC.canvas=e&&i,ZC.svg=document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1");var t=document.body.appendChild(document.createElement("div")),n=document.createElement("zcv:shape");n.className="zcvml",n.setAttribute("id","vml_flag1"),n.setAttribute("adj",new Object),t.appendChild(n),n.style.behavior="url(#default#VML)",ZC.vml=!n||"object"==typeof n.adj,t.parentNode.removeChild(t);var a=!1;navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"]?a=navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin:document.all&&-1===navigator.appVersion.indexOf("Mac")&&(a=new Function('try { var xObj = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if (xObj) { xObj = null; return true; } } catch (e) { return false; }')()),ZC.flash=a?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)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>0||"iPad"===navigator.platform,ipad:/iPad/.test(navigator.userAgent),iphone:/iPhone/.test(navigator.userAgent),websockets:"WebSocket"in window,webstorage:"sessionStorage"in window,RM:[],WK:[],E4:[0,0],ACK:null,_cp_:function(e,i,t,n,a,l){null===ZC._n_(t)&&(t=!0),null===ZC._n_(n)&&(n=!0),null===ZC._n_(a)&&(a=!1),l=l||[],0===zingchart.DEV.COPYVALUES&&l.push("values");var o=l.length;for(var r in e)if(0===o||o>0&&-1===ZC.AV(l,r))if(e[r]instanceof Array){if(n){(null===ZC._n_(i[r])||"override"!==r&&!a)&&(i[r]=[]);for(var s=0,A=e[r].length;s0&&-1===ZC.AV(t,o))){var r=o.substring(0,1);if("."!==r&&"#"!==r)if(e[o]instanceof Array)if(ZC.UR(o)!==o){for(e[ZC.UR(o)]=[],n=0,a=e[o].length;n=(e=e.charCodeAt(0)+13)?e:e-26)})},AC8:function(e,i){var t=ZC.X5(ZC.AC0(e)),n=ZC.X5(ZC.A2F(i)),a=t.length;if(0===a)return"";for(var l,o,r=t[a-1],s=t[0],A=2654435769,C=Math.floor(6+52/a)*A;0!==C;){o=C>>>2&3;for(var c=a-1;c>0;c--)l=((r=t[c-1])>>>5^s<<2)+(s>>>3^r<<4)^(C^s)+(n[3&c^o]^r),s=t[c]-=l;l=((r=t[a-1])>>>5^s<<2)+(s>>>3^r<<4)^(C^s)+(n[3&c^o]^r),s=t[0]-=l,C-=A}return decodeURIComponent(ZC.AC1(ZC.A61(t)))},AG2:function(e,i){e=encodeURIComponent(e);var t=ZC.X5(ZC.A2F(e)),n=ZC.X5(ZC.A2F(i)),a=t.length;if(0===a)return"";1===a&&(t[a++]=0);for(var l,o,r=t[a-1],s=t[0],A=Math.floor(6+52/a),C=0;A-- >0;){o=(C+=2654435769)>>>2&3;for(var c=0;c>>5^(s=t[c+1])<<2)+(s>>>3^r<<4)^(C^s)+(n[3&c^o]^r),r=t[c]+=l;l=(r>>>5^(s=t[0])<<2)+(s>>>3^r<<4)^(C^s)+(n[3&c^o]^r),r=t[a-1]+=l}return ZC.ABZ(ZC.A61(t))},X5:function(e){for(var i=new Array(Math.ceil(e.length/4)),t=0;t>>8&255,e[t]>>>16&255,e[t]>>>24&255);return i},ABZ:function(e){for(var i="",t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=0;n>4]+t[15&e[n]];return i},AC0:function(e){for(var i=[],t="0x"===e.substr(0,2)?2:0;tt?t:e},DQ:function(e,i,t,n){return n?ii[0].length?-1:0},ZS:function(e){window.setTimeout(e,zingchart.TIMEOUT)},_fixed_:function(e,i){return i>=0&&i<=20?e.toFixed(i):""+e},_nfind_:function(e,i,t,n){var a=i.S[t].BV,l=i.S[n].BV;if(e==a)return t;if(e==l)return n;var o=ZC._i_((t+n)/2);if(!i.S[o]){for(;!i.S[o]&&ot;)o--;if(o===t)return null}}var r=i.S[o].BV;return o!==t&&o!==n?e==r?o:e>r?ZC._nfind_(e,i,o,n):ZC._nfind_(e,i,t,o):e==r?o:null},_tx_:function(e){var i,t,n,a,l=[1,1,0,0];if(zingchart.DEV.LOOKUPCSSTRANSFORM&&!ZC.vml&&ZC.AM(e)){var o=ZC.AM(e);for(i="";o&&(""===i||"none"===i);)i=ZC.A5(o).css("transform")||"",o=o.parentNode;-1!==(t=i.indexOf("matrix("))&&(n=i.indexOf(")",t),a=i.substring(t+7,n-t).split(","),l=[ZC._f_(a[0]),ZC._f_(a[3]),ZC._f_(a[4]),ZC._f_(a[5])])}return l},Utils_SetupFormat:function(e,i){return ZC.AP.O7(e,i)},Utils_Format:function(e,i,t,n){return ZC.AP.G5(e,i,t,n)},Loader_Api_Loader_Info:function(e){return e.FG()}},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 i=typeof e;if("object"!==i||null===e)return"string"===i&&(e='"'+e.replace("\\","\\\\").replace('"','"')+'"'),String(e);var t,n,a=[],l=e&&e.constructor===Array;for(t in e)"function"!=typeof e[t]&&("string"===(i=typeof(n=e[t]))?n='"'+n.replace("\\","\\\\").replace('"','\\"')+'"':"object"===i&&null!==n&&(n=JSON.stringify(n)),a.push((l?"":'"'+t+'":')+String(n)));return(l?"[":"{")+String(a)+(l?"]":"}")},JSON.parse=JSON.parse||function(L0){return""===L0&&(L0='""'),eval("("+L0+")")},function(){var e=!1,i=/xyz/.test(function(){xyz})?/\bb\b/:/.*/;ZC.C9=function(){},ZC.C9.CC=function(t){var n=this.prototype;e=!0;var a=new this;for(var l in e=!1,t)a[l]="function"==typeof a[l]&&"function"==typeof n[l]&&i.test(t[l])?function(e,i){return function(){var t=this.b;this.b=n[e];var a=i.apply(this,arguments);return this.b=t,a}}(l,t[l]):t[l];function o(){!e&&this.$i&&this.$i.apply(this,arguments)}return o.prototype=a,o.constructor=o,o.CC=arguments.callee,o}}(),ZC.AAZ=function(e){this.G=e,this.AA0=function(e,i){var t,n=this,a=n.B6["theme-name"]||"",l=n.B6.palette;if(null!==ZC._n_(i)&&null!==ZC._n_(l[i])&&(l=l[i]),ZC._b_(n.B6["cycle-palette"])&&(e%=l.length),null!==ZC._n_(l[e])){var o=l[e];return null===ZC._n_(o[2])&&(o[2]=ZC.AP.PM(o[1],10)),null===ZC._n_(o[3])&&(o[3]=ZC.AP.PM(o[1],20)),null===ZC._n_(o[4])&&(o[4]="light"===a?"#FFF":ZC.AP.PM(o[1],30)),o}var r=["#00BAF2","#E80C60","#E2D51A","#9B26AF","#FB301E","#00AE4D","#20398B"];t=null!==ZC._n_(r[e-n.B6.palette.length])?r[e-n.B6.palette.length]:"#"+ZC.XS.md5(e).substr(e%20,6);var s=ZC.AP.PM(t,10),A=ZC.AP.PM(t,20),C="light"===a?"#FFF":ZC.AP.PM(t,30),c="#FFF";return n.B6.palette&&n.B6.palette[0]&&n.B6.palette[0][0]&&(c=n.B6.palette[0][0]),[c,t,s,A,C]},this.A48=function(e){e&&ZC._cp_(e,this.B6,!0)},this.AB1=function(e){var i=this;null!==ZC._n_(i.NS[e])&&(ZC._todash_(i.NS[e]),ZC._cp_(i.NS[e],i.B6))},this.NS={},ZC._cp_(zingchart.THEMES,this.NS),this.NS.classic={"theme-name":"classic",palette:[["#fff","#6a921f","#a7da47","#89b92e","#89b92e"],["#fff","#007fa3","#00b0e1","#0392bb","#0392bb"],["#fff","#a62b02","#ef4810","#cc3300","#cc3300"],["#fff","#b79007","#f9c332","#da9b04","#da9b04"],["#fff","#563d02","#84680a","#6e4503","#6e4503"],["#fff","#0b32a0","#4d62b1","#1540a0","#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:"outer","line-width":2,"line-color":"#3e6c7b"},"minor-tick":{visible:1,size:4,placement:"outer","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:{angle:270}},"scale-x-n":{label:{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:{angle:0},item:{"text-align":"center"},guide:{alpha:.25,"background-color":"#58595B -1"}},"scale-y-n":{label:{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.NS.light={"theme-name":"light",palette:[["#fff","#29A2CC","#29A2CC","#1089B3","#fff"],["#fff","#D31E1E","#D31E1E","#BA0505","#fff"],["#fff","#7CA82B","#7CA82B","#638F12","#fff"],["#fff","#EF8535","#EF8535","#D66C1C","#fff"],["#fff","#A14BC9","#A14BC9","#8832B0","#fff"],["#fff","#A05F18","#A05F18","#874600","#fff"],["#fff","#265E96","#265E96","#0D457D","#fff"],["#fff","#6B7075","#6B7075","#52575C","#fff"],["#fff","#96C245","#96C245","#7CA82B","#fff"]],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:"outer","line-width":1,"line-color":"#8C8C8C"},"minor-tick":{visible:1,size:3,placement:"outer","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},"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}}},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},"hover-marker":{"border-width":1}},"scale-x":{guide:{visible:!0}}},hbubble:{plot:{marker:{"border-width":1},"hover-marker":{"border-width":1}},"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:{angle:270}},"scale-x-n":{label:{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:{angle:0},item:{"text-align":"center"}},"scale-y-n":{label:{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:{marker:{type:"circle",size:4},"hover-marker":{size:5}}},line3d:{SCALE:{"line-color":"#ddd",tick:{}},plot:{"border-width":0,"line-width":1}},area3d:{SCALE:{"line-color":"#ddd",tick:{}},plot:{"border-width":0,"line-width":1}},mixed3d:{SCALE:{"line-color":"#ddd",tick:{}},plot:{"border-width":1}},vbar3d:{SCALE:{"line-color":"#ddd",tick:{}},plot:{"border-width":1}},hbar3d:{SCALE:{"line-color":"#ddd",tick:{}},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.NS.light.graph["crosshair-x"]=this.NS.light.graph["crosshair-y"]=this.NS.light.graph.guide,this.NS.dark={"theme-name":"dark"},ZC._cp_(this.NS.light,this.NS.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.NS.dark,!0,!0),this.NS.dark.graph["crosshair-x"]=this.NS.dark.graph["crosshair-y"]=this.NS.dark.graph.guide,this.NS.mini={"theme-name":"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.NS.negative={"theme-name":"negative",palette:[["#000","#909090","#969696","#9c9c9c","#000"],["#000","#a0a0a0","#a6a6a6","#acacac","#000"],["#000","#b0b0b0","#b6b6b6","#bcbcbc","#000"],["#000","#c0c0c0","#c6c6c6","#cccccc","#000"],["#000","#d0d0d0","#d6d6d6","#dcdcdc","#000"],["#000","#e0e0e0","#e6e6e6","#ececec","#000"],["#000","#f0f0f0","#f6f6f6","#fcfcfc","#000"]],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:"outer","line-width":2,"line-color":"#ccc"},"minor-tick":{visible:1,size:4,placement:"outer","line-width":1,"line-color":"#ccc"},label:{color:"#fff"},item:{color:"#fff"}}},radar:{"scale-k":{guide:{alpha:.5,"background-color":"#222 #333"}}},"-":""},this.NS.spark=this.NS.mini,this.B6={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:"60 auto 65 20"},plotarea:{width:"100%",height:"100%",margin:"60 50 65 50"},"plotarea[preview]":{margin:"60 50 105 50"},"plotarea[preview[yx]]":{margin:"60 50 65 105"},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:{angle:270},item:{"text-align":"right"}},"scale-y[opposite]":{label:{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:'%plot-text: %node-value',padding:10,"background-color":"#fff #eee","border-width":1,"border-color":"#999",color:"#000","text-align":"left"},"plot-label[multiple]":{text:'%plot-text: %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:{angle:0},item:{"text-align":"center"}},"scale-y-n":{label:{angle:0},item:{"text-align":"center"}},"scale-x[default]":{label:{angle:270}},"scale-x[opposite]":{label:{angle:90}},plot:{"value-box":{placement:"top-out"}}},vline:{"scale-y":{label:{angle:0},item:{"text-align":"center"}},"scale-y-n":{label:{angle:0},item:{"text-align":"center"}},"scale-x[default]":{label:{angle:270}},"scale-x[opposite]":{label:{angle:90}}},varea:{plot:{"fill-angle":0},"scale-y":{label:{angle:0},item:{"text-align":"center"}},"scale-y-n":{label:{angle:0},item:{"text-align":"center"}},"scale-x[default]":{label:{angle:270}},"scale-x[opposite]":{label:{angle:90}}},hbar3d:{"scale-y":{label:{angle:0}},"scale-x":{label:{angle:270}},"scale-y-n":{label:{angle:0}},"scale-x-n":{label:{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:{angle:0},item:{"text-align":"center"}},"scale-x":{label:{angle:270}},"scale-y-n":{label:{angle:0},item:{"text-align":"center"}},"scale-x-n":{label:{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:{angle:0},item:{"text-align":"center"}},"scale-x":{label:{angle:270}},"scale-y-n":{label:{angle:0},item:{"text-align":"center"}},"scale-x-n":{label:{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:{angle:0},item:{"text-align":"center"}},"scale-x":{label:{angle:270}},"scale-y-n":{label:{angle:0},item:{"text-align":"center"}},"scale-x-n":{label:{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:{angle:0},item:{"text-align":"center"}},"scale-x":{label:{angle:270}},"scale-y-n":{label:{angle:0},item:{"text-align":"center"}},"scale-x-n":{label:{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
High: $%high
Low: $%low
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.PS=function(e,i){var t,n=this,a=!1;return null!==ZC._n_(t=n.B6.graph[e])&&null!==ZC._n_(t.enabled)&&(a=a||ZC._b_(t.enabled)),null!==ZC._n_(n.B6[i])&&null!==ZC._n_(t=n.B6[i][e])&&null!==ZC._n_(t.enabled)&&(a=a||ZC._b_(t.enabled)),a},this.load=function(e,i,t,n){var a,l,o,r=this;t=null===ZC._n_(t)||ZC._b_(t),n=null!==ZC._n_(n)&&ZC._b_(n),i instanceof Array||(i=new Array(i));var s=[],A="";for(l=0,o=i.length;l'}return ZC.Q.FT("rect",t.EA,t.IL)+'class="'+i+'-label-area zc-label-area" id="'+t.K+'-area" coords="'+ZC._i_(t.iX+t.BK+ZC.MAPTX)+","+ZC._i_(t.iY+t.BJ+ZC.MAPTX)+","+ZC._i_(t.iX+t.BK+t.I+ZC.MAPTX)+","+ZC._i_(t.iY+t.BJ+t.F+ZC.MAPTX)+'" />'},_rebuild_map_:function(e,i){var t=document.getElementById(e+"-map"),n=t.parentNode;n.removeChild(t);var a=document.createElement("map");a.id=e+"-map",a.className="zc-map",a.name=e+"-map",a.innerHTML=i,document.getElementById(e+"-img")&&n.insertBefore(a,document.getElementById(e+"-img").nextSibling)},NA:function(e){var i,t="",n=e.indexOf('id="');if(-1!==n){var a=e.indexOf('"',n+4);-1!==a&&(t=e.substring(n+4,a))}if(ZC.cache.data["area-score-"+t])return ZC.cache.data["area-score-"+t];var l=0;if(-1!==e.indexOf('shape="rect"')?(l+=1e4,5===(i=/coords=\"(\-*\d+),(\-*\d+),(\-*\d+),(\-*\d+)\"/.exec(e)).length&&(l+=(ZC._i_(i[3])-ZC._i_(i[1]))*(ZC._i_(i[4])-ZC._i_(i[2])))):-1!==e.indexOf('shape="circle"')?(l+=100,i=/coords=\"(\-*\d+),(\-*\d+),(\-*\d+)\"/.exec(e),null!==ZC._n_(i[3])&&(l+=ZC._i_(i[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 o=/data-z-sort=\"(\-*\d+)\"/.exec(e);o&&2===o.length&&(l*=ZC._i_(Math.pow(10,ZC._i_(o[1]))))}return""!==t&&ZC.cache.add("area-score-"+t,l),l},A5N:function(e,i,t){for(var n=[],a=0,l=e.length;a=9&&(o=null!==ZC._n_(i.decimals)&&-1!==i.decimals?""+ZC._x_(o,i.decimals):""+ZC._x_(o))}}else{var d=ZC.FU(ZC._a_(Number(o)))/Math.LN10;switch(ZC._a_(Number(o))){case 1e3:d=3;break;case 1e6:d=6;break;case 1e9:d=9}if(null!==ZC._n_(i["max-power"])&&(d=3*i["max-power"]),"KB"===s.toUpperCase())o=""+Number(o)/1024,a="KB";else if("MB"===s.toUpperCase())o=""+Number(o)/1048576,a="MB";else if("GB"===s.toUpperCase())o=""+Number(o)/1073741824,a="GB";else if("TB"===s.toUpperCase())o=""+Number(o)/1099511627776,a="TB";else if("PB"===s.toUpperCase())o=""+Number(o)/0x4000000000000,a="PB";else if(d>=0&&d<3)switch(s){default:o=o,a="";break;case"K":o=""+Number(o)/1e3,a="K";break;case"M":o=""+Number(o)/1e6,a="M";break;case"B":o=""+Number(o)/1e9,a="B"}else d>=3&&d<6&&""===s||"K"===s.toUpperCase()?(o=""+Number(o)/1e3,a="K"):d>=6&&d<9&&""===s||"M"===s.toUpperCase()?(o=""+Number(o)/1e6,a="M"):(d>=9&&""===s||"B"===s.toUpperCase())&&(o=""+Number(o)/1e9,a="B")}if(ZC.PE(o))if(null!==ZC._n_(i.decimals)&&-1!==i.decimals)o=ZC._fixed_(Number(o),ZC.BQ(0,ZC._i_(i.decimals)));else{var f=o.split(".")[1]||"";-1!==i["max-decimals"]&&i["max-decimals"]=0;E--){var D=g[0].substring(E,E+1);if(-1===ZC.AV(["-","+"],D)){var F=g[0].length-E-1;"en_in"!==m.toLowerCase()&&"hi_in"!==m.toLowerCase()||(B=F>3?1:0,b=F>3?2:3),v=F%b===B&&0!==F?D+i["thousands-separator"]+v:D+v}else v=D+v}o=v+(null!==ZC._n_(g[1])?i["decimals-separator"]+g[1]:"")}null!==ZC._n_(i.short)&&i.short&&(o+=a)}}return o},AAK:function(e){var i=e.indexOf("("),t="",n="";-1!==i?(t=ZC.GX(e.substring(0,i)),n=ZC.GX(e.substring(i+1,e.length-1))):t=ZC.GX(e);var a=[],l="";if(""!==n){var o=!1,r=!1,s=!1;l="";for(var A=0,C=n.length;A0)for(var n=0;n=100)return"#000000";e=ZC.AP.GD(e),void 0===i&&(i=10);var t=ZC.R0(e.substring(1,3)),n=ZC.R0(e.substring(3,5)),a=ZC.R0(e.substring(5,7)),l=ZC.AP.AD4(t,n,a);l[2]=i>0?Math.max(0,l[2]-l[2]*i/100):Math.min(1,l[2]-l[2]*i/100);var o=ZC.AP.AD5(l[0],l[1],l[2]);return o[0]=ZC._i_(o[0])<16?"0"+ZC.OW(o[0]):ZC.OW(o[0]),o[1]=ZC._i_(o[1])<16?"0"+ZC.OW(o[1]):ZC.OW(o[1]),o[2]=ZC._i_(o[2])<16?"0"+ZC.OW(o[2]):ZC.OW(o[2]),e="#"+o[0]+o[1]+o[2]},PM:function(e,i){if(-1===e)return-1;if(i>=100)return"#ffffff";e=ZC.AP.GD(e),void 0===i&&(i=10);var t=parseInt(e.substr(1,2),16),n=parseInt(e.substr(3,2),16),a=parseInt(e.substr(5,2),16);return"#"+(0|256+t+(256-t)*i/100).toString(16).substr(1)+(0|256+n+(256-n)*i/100).toString(16).substr(1)+(0|256+a+(256-a)*i/100).toString(16).substr(1)},_hex2rgb_:function(e,i){var t=parseInt(e.substr(1,2),16),n=parseInt(e.substr(3,2),16),a=parseInt(e.substr(5,2),16);return ZC._n_(i)?"rgb("+t+","+n+","+a+")":{r:t,g:n,b:a}},_rgb2hex_:function(e,i,t){return"#"+((1<<24)+(e<<16)+(i<<8)+t).toString(16).slice(1)},AAC:function(e,i,t){var n=ZC.AP._hex2rgb_(e);return(299*n.r+587*n.g+114*n.b)/1e3>=128?t:i},_colorAlpha_:function(e,i,t){e=ZC.AP.GD(e),i=ZC.AP.GD(i);var n=ZC.AP._hex2rgb_(e),a=ZC.AP._hex2rgb_(i),l={};for(var o in n)l[o]=Math.floor(t*n[o]+(1-t)*a[o]);return ZC.AP._rgb2hex_(l.r,l.g,l.b)},A3X:function(){},ABN:function(){},gc:function(e,i){var t;for(t=0;t")}catch(r){i=document.createElement("iframe")}else i=document.createElement("iframe");i.id=e.id+"-iframe",i.style.visibility="hidden",e.appendChild(i);var t=null,n=i.contentWindow||i.contentDocument;if(!(t=n.document?n.document:n).body){var a=t.createElement("HTML");t.appendChild(a);var l=t.createElement("HEAD");a.appendChild(l);var o=t.createElement("BODY");a.appendChild(o)}return t},C1:function(e){var i;if("undefined"==typeof ZC.TOUCHEVENTS){if(ZC.ie678)i=!1;else{i=!0;try{document.createEvent("TouchEvent")}catch(t){i=!1}}i&&!ZC.mobile&&(i=!1),i&&(i="ontouchstart"in document.documentElement),ZC.TOUCHEVENTS=i}else i=ZC.TOUCHEVENTS;if(i)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,i){var t,n,a,l=[],o=i.JW,r=i.OK,s=i.P7,A=o-s/2;if(e.length>0){var C=0,c=0;for(0!==o&&(C=ZC._i_(A*ZC.EE(r)+s),c=ZC._i_(A*ZC.EK(r)+s)),t=0,n=e.length;t=4&&(r[2]=e[2],r[3]=e[3]),e.length>=6&&(r[4]=e[4],r[5]=e[5]),7===e.length&&(r[6]=e[6]),i){case"canvas":case"svg":var s,A;if(t.D0)s=A=t.B1%2==1?.5:0,ZC.A5.browser.msie&&ZC.quirks&&"svg"===i&&(s=t.B1%2==1?.5:0,A=t.B1%2==1?0:.5),r[0]=Math.round(r[0])-s,r[1]=Math.round(r[1])-A,4===r.length&&(r[2]=Math.round(r[2])-s,r[3]=Math.round(r[3])-A);"svg"===i&&(r[0]=parseFloat(r[0].toFixed(4)),r[1]=parseFloat(r[1].toFixed(4)),4===r.length&&(r[2]=parseFloat(r[2].toFixed(4)),r[3]=parseFloat(r[3].toFixed(4)))),"canvas"!==i||n||"undefined"!=typeof t.BK&&"undefined"!=typeof t.BJ&&(r[0]+=t.BK,r[1]+=t.BJ,4===r.length&&(r[2]+=t.BK,r[3]+=t.BJ));break;case"vml":t.AA%360==0?(l=10,o=t.B1%2==1?0:l/2):(l=1,o=0),t.D0?(r[0]=l*ZC._i_(ZC._i_(l*r[0])/l)-o,r[1]=l*ZC._i_(ZC._i_(l*r[1])/l)-o,4!==r.length&&7!==r.length||(r[2]=l*ZC._i_(ZC._i_(l*r[2])/l)-o,r[3]=l*ZC._i_(ZC._i_(l*r[3])/l)-o),7===r.length&&(r[4]=l*ZC._i_(ZC._i_(l*r[4])/l)-o,r[5]=l*ZC._i_(ZC._i_(l*r[5])/l)-o)):(r[0]=ZC._i_(l*r[0]),r[1]=ZC._i_(l*r[1]),4!==r.length&&7!==r.length||(r[2]=ZC._i_(l*r[2]),r[3]=ZC._i_(l*r[3])),7===r.length&&(r[4]=ZC._i_(l*r[4]),r[5]=ZC._i_(l*r[5])))}return r},A34:function(e,i,t,n,a){var l,o,r,s,A,C,c;if(t.QU&&(t.E["fast-vector-path"]=!0),!t.E["fast-vector-path"]){for(l=0,o=e.length;l=r[3]?.001:-.001),s=ZC.AQ.BN(r[0],r[1],r[2],r[3]+d),A=ZC.AQ.BN(r[0],r[1],r[2],r[4]-d),C="0 0",0===r[5]?r[4]-r[3]>360?(C="0 1",A[0]=s[0],A[1]=s[1]):C=r[4]-r[3]<=180?"0 1":"1 1":r[3]-r[4]>360?(C="0 0",A[0]=s[0],A[1]=s[1]):C=r[3]-r[4]<=180?"0 0":"1 0",p.push("a "+r[2]+","+r[2]+" 0 "+C+" "+(A[0]-s[0])+","+(A[1]-s[1]))}else"vml"===i&&(r[2]*=10,s=ZC.AQ.BN(r[0],r[1],r[2],r[3]),A=ZC.AQ.BN(r[0],r[1],r[2],r[4]),C=1===r[5]?"at":"wa",p.push(C+" "+ZC._i_(r[0]-r[2])+","+ZC._i_(r[1]-r[2])+","+ZC._i_(r[0]+r[2])+","+ZC._i_(r[1]+r[2])+" "+ZC._i_(s[0])+","+ZC._i_(s[1])+" "+ZC._i_(A[0])+","+ZC._i_(A[1])));else 7===r.length&&p.push(("svg"===i?"C ":"c ")+r[0]+" "+r[1]+" "+r[2]+" "+r[3]+" "+r[4]+" "+r[5])}else Z=!0;return t.E["fast-vector-path"]||t.O9&&ZC.cache.add("path-points-"+c,p.join("#")),t.G&&o<=20&&n&&(t.G.E[t.K+"-bounds"]=u),p},MJ:function(e,i){var t,n,a=e.originalEvent||e.originalEventZC;return i=ZC._i_(i||"0"),a&&a.touches?a.touches.length>0?(t=a.touches[i].pageX,n=a.touches[i].pageY):a.changedTouches.length>0&&(t=a.changedTouches[i].pageX,n=a.changedTouches[i].pageY):(t=e.pageX,n=e.pageY),[ZC._i_(t||"0"),ZC._i_(n||"0")]},F7:function(e,i,t){var n;return t=t||document,null!==ZC._n_(i)?t.createElementNS?n=t.createElementNS(i,e):(n=t.createElement(e)).setAttribute("xmlns",i):n=t.createElement(e),"zcv:"===e.substring(0,4)&&(n.className="zcvml"),n},EW:function(e){var i;e instanceof Array||(e=[e]);for(var t=0,n=e.length;t1024&&"undefined"!=typeof e.innerHTML)return void(e.innerHTML="");if(s>0)for(var A=s-1;A>=0;A--)""===o?e.removeChild(e.childNodes[A]):0===e.childNodes[A].id.indexOf(o+"-")&&e.removeChild(e.childNodes[A])}},ED:function(e,i){switch("string"==typeof e&&(e=ZC.AM(e)),i){case"canvas":return e.getContext("2d");case"svg":case"vml":return e}},K3:function(e,i){switch(i){case"svg":return ZC.Q.ABO(e);case"vml":case"canvas":return ZC.Q.I4(e)}},HJ:function(e,i){switch(i){case"svg":return ZC.Q.ABO(e);case"vml":return ZC.Q.I4(e);case"canvas":return ZC.Q.ADB(e)}},ABO:function(e){var i;if(ZC.AM(e.id))return ZC.AM(e.id);var t=ZC.Q.F7("g","http://www.w3.org/2000/svg");return null!==ZC._n_(i=e.id)&&t.setAttribute("id",i),null!==ZC._n_(i=e.cls)&&t.setAttribute("class",i),null!==ZC._n_(i=e.zidx)&&t.setAttribute("z-index",i),null!==ZC._n_(i=e["clip-path"])&&t.setAttribute("clip-path",i),e.after?e.p.insertBefore(t,e.after.nextSibling):e.p.appendChild(t),t},XM:function(e){var i;ZC.Q.EW(e.id);var t=ZC.Q.F7("clipPath","http://www.w3.org/2000/svg");return t.id=e.id,null!==ZC._n_(e.cx)?((i=ZC.Q.F7("circle","http://www.w3.org/2000/svg")).id=e.id+"-shape",ZC.Q.G6(i,{cx:e.cx,cy:e.cy,r:e.r})):((i=ZC.Q.F7("polygon","http://www.w3.org/2000/svg")).id=e.id+"-shape",ZC.Q.G6(i,{points:e.path})),t.appendChild(i),t},ADB:function(e){var i;if(ZC.AM(e.id))return ZC.AM(e.id);var t=document.createElement("canvas"),n=t.style;if(null!==ZC._n_(i=e.id)&&(t.id=i),null!==ZC._n_(i=e.cls)&&(t.className=i),null!==ZC._n_(i=e.wh)){var a=(""+i).split("/");e.width=a[0],e.height=a[1]}if(null!==ZC._n_(i=e.tl)){var l=(""+i).split("/");e.top=l[0],e.left=l[1]}return t.width=e.width,t.height=e.height,null!==ZC._n_(i=e.left)&&(n.left=i+"px"),null!==ZC._n_(i=e.top)&&(n.top=i+"px"),null!==ZC._n_(i=e.display)&&(n.display=i),null!==ZC._n_(i=e.position)&&(n.position=i),null!==ZC._n_(i=e.zidx)&&(n.zIndex=i),e.p.appendChild(t),t},I4:function(e){var i,t,n,a,l,o;if(ZC.AM(e.id))return n=ZC.AM(e.id),null!==ZC._n_(i=e.wh)&&(l=(""+i).split("/"),n.style.width=l[0]+"px",n.style.height=l[1]+"px"),null!==ZC._n_(i=e.tl)&&(o=(""+i).split("/"),n.style.top=o[0]+"px",n.style.left=o[1]+"px"),n;(a=(n=document.createElement("div")).style).whiteSpace="nowrap",null!==ZC._n_(i=e.wh)&&(l=(""+i).split("/"),e.width=l[0],e.height=l[1]),null!==ZC._n_(i=e.tl)&&(o=(""+i).split("/"),e.top=o[0],e.left=o[1]),null!==ZC._n_(i=e.id)&&(n.id=i),null!==ZC._n_(i=e.cls)&&""!==i&&(n.className=i);for(var r=[["top","","px"],["left","","px"],["width","","px"],["height","","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,A=null,C=null,c=0,u=r.length;c")&&ZC.A5(n).children().each(function(){null!==ZC._n_(s)&&(null!==ZC._n_(this.style.fontFamily)&&""!==this.style.fontFamily||(this.style.fontFamily=s)),null!==ZC._n_(A)&&(null!==ZC._n_(this.style.fontSize)&&""!==this.style.fontSize||(this.style.fontSize=A+"px")),null!==ZC._n_(C)&&(null!==ZC._n_(this.style.fontWeight)&&""!==this.style.fontWeight||(this.style.fontWeight=C))})),e.rtl&&(n.style.unicodeBidi="bidi-override",n.style.direction="rtl"),e.cursor&&"hand"===e.cursor&&(n.style.cursor="pointer"),n},VW:null,A49:function(e,i,t,n,a,l,o){var r,s,A,C;null===ZC._n_(o)&&(o=!1);var c=!1;"[HTMLMODE]"===i.substring(0,10)&&(c=!0,i=i.substring(10)),C=e+"-text-ruler",-1!==e.indexOf("-fullscreen")&&(C="zc-text-ruler");var u="{{"+i+"}}"+t.replace(/[^a-z]/gi,"").toLowerCase()+n+l+a;if(ZC.cache.data["text-width-"+u]&&!o)return ZC.cache.data["text-width-"+u];if(ZC.cache.data["text-height-"+u]&&o)return ZC.cache.data["text-height-"+u];var p,Z=i;return Z=Z.replace(/
/g,'
'),(p=ZC.AM(C))?(ZC.Q.VW&&ZC.Q.VW===e+t+n+l+a||(p.style.fontFamily=t,p.style.fontSize=n+"px",p.style.fontWeight=a,p.style.lineHeight=c?"130%":-1!==l?ZC._i_(l)+"px":"130%",ZC.Q.VW=e+t+n+l+a),p.innerHTML=Z):(p=ZC.Q.I4({id:C,p:document.body,tl:"-9999/-9999",html:Z,position:"absolute",fontFamily:t,fontSize:n,cls:"zc-text-ruler",fontWeight:a})).style.lineHeight=c?"130%":-1!==l?ZC._i_(l)+"px":"130%",-1===i.indexOf("<")||-1===i.indexOf(">")||c||ZC.A5(p).children().each(function(){"BR"!==this.tagName.toUpperCase()&&(null!==ZC._n_(this.style.fontFamily)&&""!==this.style.fontFamily||(this.style.fontFamily=t),null!==ZC._n_(this.style.fontSize)&&""!==this.style.fontSize||(this.style.fontSize=n+"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=a)))}),(r=p.getBoundingClientRect())&&r.width>0?(s=r.width,o&&(A=r.height)):(s=ZC.mobile&&ZC.A5.browser.webkit?p.offsetWidth:ZC.A5(p).width(),o&&(A=ZC.mobile&&ZC.A5.browser.webkit?p.offsetHeight:ZC.A5(p).height())),o?(ZC.cache.add("text-height-"+u,A),A):(ZC.cache.add("text-width-"+u,s),s)}},!document.getElementsByClassName&&document.querySelectorAll&&(document.getElementsByClassName=function(e){return document.querySelectorAll("."+e)}),ZC.A5=function(e,i,t){var n,a,l,o,r=this;if(void 0===t&&(t=!0),t)return new ZC.A5(e,i,!1);if(r.P1=[],r.QA=e,r.ME=i,r.length=0,r.ME=r.ME||document.getElementsByTagName("body")[0],"object"==typeof r.QA)r.P1=[r.QA];else if("string"==typeof r.QA)for(var s=r.QA.split(","),A=0;A")).length&&(c=!0,ZC.A5(n[0]).each(function(){var e=this;ZC.A5(n[1],this).each(function(){this.parentNode===e&&r.P1.push(this)})})),2===(n=C.split(" ")).length&&(c=!0,ZC.A5(n[0]).each(function(){ZC.A5(n[1],this).each(function(){r.P1.push(this)})})),!c)if("#"===C.substring(0,1))ZC.AM(C.substring(1))&&(r.P1=[ZC.AM(C.substring(1))]);else if("."===C.substring(0,1))if(document.getElementsByClassName){if(r.ME.getElementsByClassName)a=r.ME.getElementsByClassName(C.substring(1));else if(a=document.getElementsByClassName(C.substring(1)),r.ME!==document){var u=[];for(l=0,o=a.length;l1)for(var l=1;l1)for(var a=1;a=0;n--)t[n][0]!==l||i&&t[n][1]!==i||ZC.A5.EVENTS[e].splice(n,1);return this}}},ZC.A5._list_=function(e){for(var i=[],t=0;t=200&&s.status<300)&&r&&r(s.responseText,s.status,s,i),s.status>=400&&o&&o(s,s.status,s.statusText,i),s.onreadystatechange=new window.Function,s=null)}),window.ActiveXObject||(s.onerror=function(){o&&o(s,0,"",i)}),"POST"===t.toUpperCase()?(s.open("POST",i,a),s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.setRequestHeader("Content-type","application/x-www-form-urlencoded")):(""!==n&&(-1===i.indexOf("?")&&(i+="?"),i+="&"+n),s.open("GET",i,a)),l&&l(s);try{s.send(n),a||((A||s.status>=200&&s.status<300)&&r&&r(s.responseText,s.status,s,i),s.status>=400&&o&&o(s,s.status,s.statusText,i),s=null)}catch(c){A&&o&&(o(s,s.status,s.statusText,i),s.onreadystatechange=new window.Function,s=null)}}},ZC.AQ={ACJ:function(e,i){var t,n,a=zingchart.DEV.SPREADFACTOR,l=[],o=0;function r(e,i){-1===ZC.AV(e,i)&&e.push(i)}for(t=0;t1?e[t-2]:i,-1===s&&(s=l[o].min),l[o].min),r(l[o].items,t-1),r(l[o].items,t)):l[o]&&(l[o].max=e[t],l[o].max,o++);l[o]&&-1===l[o].max&&(l[o].max=360+i);var A=l.length;if(A>1&&l[A-1].max-l[0].min==360){for(n=0;n1&&(l[l.length-1].max=l[0].min+360),t=0;ti.x+i.width+t)&&(!(i.x>e.x+e.width+t)&&(!(e.y>i.y+i.height+t)&&!(i.y>e.y+e.height+t)))},_boxoverlap2_:function(e,i,t){return t=t||1,!(e.iX>i.iX+i.I+t)&&(!(i.iX>e.iX+e.I+t)&&(!(e.iY>i.iY+i.F+t)&&!(i.iY>e.iY+e.F+t)))},AGI:function(e,i){return e.iX>=i.iX&&e.iX<=i.iX+i.I&&e.iY>=i.iY&&e.iY<=i.iY+i.F&&e.iX+e.I>=i.iX&&e.iX+e.I<=i.iX+i.I&&e.iY+e.F>=i.iY&&e.iY+e.F<=i.iY+i.F},A6H:function(e,i,t){for(var n=Math.sqrt(e/Math.PI),a=Math.sqrt(i/Math.PI),l=Math.min(n,a),o=Math.max(n,a),r=ZC.MAX,s=0,A=l+o;A>o-l;A-=l/50){var C=l*l*Math.acos((A*A+l*l-o*o)/(2*A*l))+o*o*Math.acos((A*A+o*o-l*l)/(2*A*o))-.5*Math.sqrt((-A+l+o)*(A+l-o)*(A-l+o)*(A+l+o));Math.abs(C-t)i&&e[C-1]&&(Math.sqrt((e[C][0]-e[C-1][0])*(e[C][0]-e[C-1][0])+(e[C][1]-e[C-1][1])*(e[C][1]-e[C-1][1]))>i&&C-l>1&&(s+=Math.round(e[C-1][0]+A+n,10)+","+Math.round(e[C-1][1]+A+a,10)+","),o=e[C][0]+A+n,r=e[C][1]+A+a,l=C,s+=Math.round(o,10)+","+Math.round(r,10)+","));return s=s.substring(0,s.length-1)},Z2:function(e,i){if(null===ZC._n_(e)||e.length<2)return"";null===ZC._n_(i)&&(i=6,ZC.mobile&&(i+=10));var t,n,a,l,o,r=[];for(t=0,n=e.length;t0&&null!==ZC._n_(e[t])&&null!==ZC._n_(e[t-1])&&e[t].join("/")!==e[t-1].join("/")||null===ZC._n_(e[t]))&&r.push(e[t]);var s=[],A=[],C=!1;for(t=0,n=r.length;t=h&&(o+=180),s.push(ZC.AQ.BN(h,d,i,l+90),ZC.AQ.BN(h,d,i,o),ZC.AQ.BN(h,d,i,l+270));else if(t===r.length-1)a=Math.atan((Z-d)/(p-h)),o=l=ZC.U3(a),p>=h&&(o+=180),C?(A.push(ZC.AQ.BN(h,d,i,l+270),ZC.AQ.BN(h,d,i,o),ZC.AQ.BN(h,d,i,l+90)),C=!1):s.push(ZC.AQ.BN(h,d,i,l+270),ZC.AQ.BN(h,d,i,o),ZC.AQ.BN(h,d,i,l+90));else{var f=Math.atan((u-d)/(c-h)),_=Math.atan((d-Z)/(h-p));o=ZC.U3((f+_)/2),s.push(ZC.AQ.BN(h,d,i,o+270)),c>=h&&p>=h?(s.push(ZC.AQ.BN(h,d,i,o+180)),s.push(ZC.AQ.BN(h,d,i,o+90)),A.push(ZC.AQ.BN(h,d,i,o)),C=!0):c<=h&&p<=h?(s.push(ZC.AQ.BN(h,d,i,o)),s.push(ZC.AQ.BN(h,d,i,o+90)),A.push(ZC.AQ.BN(h,d,i,o+180)),C=!0):A.push(ZC.AQ.BN(h,d,i,o+90))}}for(t=A.length-1;t>=0;t--)s.push(A[t]);return s},A2G:function(e,i){var t=0,n=0,a=[];switch(e+=""){case"horizontal":case"h":t=1,n=i;break;case"vertical":case"v":t=i,n=1;break;default:a=e.split("x"),null!==ZC._n_(a[0])&&ZC._i_(a[0])+""===a[0]&&(t=ZC._i_(a[0])),null!==ZC._n_(a[1])&&ZC._i_(a[1])+""===a[1]&&(n=ZC._i_(a[1])),0===n&&0===t?(t=Math.ceil(Math.sqrt(i)),n=Math.ceil(i/t)):(0===n&&(n=Math.ceil(i/t)),0===t&&(t=Math.ceil(i/n)))}return[t,n]},AB5:function(e,i){return.5*(2*i[1]+(-i[0]+i[2])*e+(2*i[0]-5*i[1]+4*i[2]-i[3])*e*e+(-i[0]+3*i[1]-3*i[2]+i[3])*e*e*e)},ABE:function(e,i){var t,n,a,l,o,r=e.length,s=[],A=[],C=[];for(t=0;tt))return i[a];o=a-1}}n=Math.max(0,o);var s=t-e[n],A=s*s;return i[n]+c[n]*s+Z[n]*A+h[n]*s*A}},YD:function(e,i,t,n){null===ZC._n_(n)&&(n=1/(t/i.length*4));var a,l,o=[];if(e)if((a=[].concat(i))[1]&&a[2]){a[0]=a[0]||a[1]||a[2]||a[3],a[1]=a[1]||a[2]||a[0]||a[3],a[2]=a[2]||a[3]||a[1]||a[0],a[3]=a[3]||a[2]||a[1]||a[0];var r=ZC.AQ.ABE([0,1,2,3],a);for(l=1;l<=2;l+=n)o.push([l-1,r(l)])}else o.push([]);else for(var s=1;s1||Z<0||Z>1?null:[a+p*(o-a),l+p*(r-l)]},_outside_:function(e,i){return e[0]i[2]||(e[1]i[3])},_angle_:function(e,i){var t=i[0]-e[0],n=i[1]-e[1];return Math.atan2(n,t)}},ZC.XS={md5:function(e){return ZC.XS.ACW(ZC.XS.ACX(ZC.XS.ACQ(e)))},ACX:function(e){return ZC.XS.ACD(ZC.XS.ACY(ZC.XS.ACE(e),8*e.length))},ACW:function(e){for(var i,t="",n=0,a=e.length;n>>4&15)+"0123456789abcdef".charAt(15&i);return t},ACQ:function(e){for(var i,t,n="",a=-1,l=e.length;++a>>6&31,128|63&i):i<=65535?n+=String.fromCharCode(224|i>>>12&15,128|i>>>6&63,128|63&i):i<=2097151&&(n+=String.fromCharCode(240|i>>>18&7,128|i>>>12&63,128|i>>>6&63,128|63&i));return n},ACE:function(e){var i,t=Array(e.length>>2);for(i=0;i>5]|=(255&e.charCodeAt(i/8))<>5]>>>t%32&255);return i},ACY:function(e,i){function t(e,i,t,n,a,l){return r((o=r(r(i,e),r(n,l)))<<(s=a)|o>>>32-s,t);var o,s}function n(e,i,n,a,l,o,r){return t(i&n|~i&a,e,i,l,o,r)}function a(e,i,n,a,l,o,r){return t(i&a|n&~a,e,i,l,o,r)}function l(e,i,n,a,l,o,r){return t(i^n^a,e,i,l,o,r)}function o(e,i,n,a,l,o,r){return t(n^(i|~a),e,i,l,o,r)}function r(e,i){var t=(65535&e)+(65535&i);return(e>>16)+(i>>16)+(t>>16)<<16|65535&t}e[i>>5]|=128<>>9<<4)]=i;for(var s=1732584193,A=-271733879,C=-1732584194,c=271733878,u=0,p=e.length;uzingchart.DEV.MAXPOOLSIZE?(zingchart.pool.data={},zingchart.pool.size=0):zingchart.pool.data[t]=a}return a},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 i=0;i-1)return e[i].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,TRACKERMASKING:2,COPYVALUES:1},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,i){for(var t=(""+e).split(","),n=0,a=t.length;n100){if(a>ZC.GESTURE.dist+50)ZC.GESTURE.type="pinch-in",zingchart.exec(ZC.GESTURE.id,"zoomin");else if(aZC.GESTURE.mp[0]+10?(o["x-"]=!0,o.xdist=ZC._a_(ZC.GESTURE.mp[0]-l[0])):l[0]ZC.GESTURE.mp[1]+10?(o["y+"]=!0,o.ydist=ZC._a_(ZC.GESTURE.mp[1]-l[1])):l[1]=n.P.iX&&l<=n.P.iX+n.P.I&&o>=n.P.iY&&o<=n.P.iY+n.P.F),touch:ZC.mobile}},"undefined"==typeof zingchart.SG&&(zingchart.SG=function(e){for(var i=0,t=zingchart.I2.length;i1)){var n=zingchart.X2(e);if(n){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 a=zingchart.A0R(e,n);a.target=zingchart.plugins.CLICK_TARGET||a.target,zingchart.plugins.CLICK_TARGET=null,ZC.mobile&&"touchend"===e.type&&(n.E["click-ts"]&&(new Date).getTime()-n.E["click-ts"]<500&&ZC.AP.C0("dblclick",n,a),n.E["click-ts"]=(new Date).getTime()),ZC.AP.C0("dblclick"===e.type?"dblclick":"click",n,a)}zingchart.SKIP.EVENT=!1,e.target.id!==n.K+"-menu-area"?n.hideCM():zingchart.Z3(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.SG),ZC.A5(document).bind("dblclick",zingchart.SG))),"undefined"==typeof zingchart.A2Z&&(zingchart.A2Z=function(e){e.touches.length>0&&(ZC.TOUCHEVENTS=!0)},ZC.A5(document).bind("touchstart",zingchart.A2Z)),"undefined"==typeof zingchart.Z3&&(zingchart.Z3=function(e,i,t){if(e.target&&e.target.id.indexOf("-pixmap")||e.targetid&&-1!==e.targetid.indexOf("-menu-area"));else if(e&&e.target&&e.target.tagName&&"IMG"!==e.target.tagName.toUpperCase()&&"AREA"!==e.target.tagName.toUpperCase()&&-1===ZC.Q.TB(e.target).indexOf("zc-scroll")&&-1===e.target.id.indexOf("-legend-")&&-1===e.target.id.indexOf("-preview-")&&!zingchart.DEV.SKIPTRACKERS)return;var n,a,l,o,r,s;t=t||{};var A=null===ZC._n_(i)?zingchart.X2(e):zingchart.getLoader(i);if(A){if(-1!==ZC.AV(A.KP,"skip_context_menu"))return!1;if(null===ZC._n_(i)?(a=ZC.Q.MJ(e),n=A.A5E(a[0],a[1])):n=null!==ZC._n_(t.graphid)?A.OX(t.graphid):A.AG[0],!n)return!1;var C=ZC.A5("#"+A.K+"-top");null===ZC._n_(i)?(l=a[0]-C.offset().left,o=a[1]-C.offset().top):(l=A.I/2,o=A.F/2);var c={};e&&(c=zingchart.A0R(e,A));var u=ZC.AP.C0("contextmenu",A,c,!0);if(!u&&void 0!==u&&(!e&&!t["from-api"]||e&&e.target.id!==A.K+"-menu-area"))return e.preventDefault(),!1;var p=ZC._tx_(A.K);A.A62(n?n.L:-1,e);var Z=-1;if(0!==zingchart.CMZINDEX)Z=zingchart.CMZINDEX;else for(var h=ZC.AM(A.K);-1===Z&&null!==h.parentNode;)"auto"!==(Z=ZC._i_(ZC.A5(h).css("zIndex")))&&""!==Z&&null!==ZC._n_(Z)||(Z=-1),h=h.parentNode;Z&&-1!==Z&&null!==ZC._n_(Z)||(Z=1);var d=ZC.A5("#"+A.K+"-menu");if(d.css("zIndex",zingchart.ZINDEX+Z+1),null===ZC._n_(i)){if(e.target.id===A.K+"-print-png"||e.target.id===A.K+"-print-jpeg")return!0;e.preventDefault()}if(!ZC.AM(A.K+"-menu"))return!1;l=C.offset().left,o=C.offset().top;var f=C.width(),_=C.height();null===ZC._n_(i)?(r=(a=ZC.Q.MJ(e))[0]||ZC.E4[0],s=a[1]||ZC.E4[1]):(r=l+A.I/2,s=o+5);var g=!1;if(A.VQ("goback",!1),A.NW>0&&(A.VQ("goback",!0),g=!0),A.VQ("goforward",!1),A.NW=l&&r<=l+f*p[0]&&s>=o&&s<=o+_*p[1]){ZC.A5(".zc-menu").each(function(){this.id!==A.K+"-menu"&&A.hideCM()}),A.SU=[r,s,null===ZC._n_(i)?e.target.id:i],d.css("opacity",0).show();var v,B,b=ZC._i_(d.css("width"))+ZC._i_(d.css("paddingLeft"))+ZC._i_(d.css("paddingRight")),m=ZC._i_(d.css("height"))+ZC._i_(d.css("paddingTop"))+ZC._i_(d.css("paddingBottom")),E=1,D=!1;if(A.o.gui&&A.o.gui["context-menu"]&&A.o.gui["context-menu"]&&(E=A.o.gui["context-menu"].alpha?A.o.gui["context-menu"].alpha:1,D=A.o.gui["context-menu"].docked),d.css("opacity",E).hide(),"classic"!==A.L1&&D){if(D){var F=A.B6.NS[A.L1].root.gui["context-menu"];ZC._cp_(A.o.gui["context-menu"],F),v="left"!==A.o.gui["context-menu"].position&&ZC._n_(A.o.gui["context-menu"].position)?C.offset().left+C.width()-b:C.offset().left}B=C.offset().top,d.css("left",ZC.BQ(1,v)+"px").css("top",ZC.BQ(1,B)+"px").css("height",C.height()+"px").css("box-sizing","border-box").show(),d=ZC.A5("#"+A.K+"-menu"),D&&d.P1[0].scrollHeight>C.height()&&d.css("overflow-y","scroll")}else{if(null===ZC._n_(i)&&e.target.id===A.K+"-menu-area"){ZC.AM(A.K+"-menu").style.paddingTop=0;var K=ZC.A5("#"+A.K+"-menu-area").attr("coords").split(","),x=ZC._i_(K[3])-ZC._i_(K[1]);ZC.AM(A.K+"-menu").style.backgroundPosition=ZC._i_(K[0])>A.I/2?"100% 0% !important":"0% 0% !important",v=l+(ZC._i_(K[0])>A.I/2?ZC._i_(K[2])-b:ZC._i_(K[0])),B=o+(ZC._i_(K[1])>A.F/1.25?ZC._i_(K[3])-m-x:ZC._i_(K[3]))}else ZC.AM(A.K+"-menu").style.backgroundPosition="50% 0% !important",v=A.SU[0]-b/2,B=A.SU[1],m>A.F*p[1]?B=o:B-o+m>A.F*p[1]&&(B=ZC.BQ(B-m,A.F*p[1]-m)),vl+A.I*p[0]&&(v=ZC.CY(l+A.I*p[0]-b/2,v-b/2));if(t.position)switch(t.position){case"top":break;case"top-left":v=v-(A.I*p[0]-b)/2+5;break;case"top-right":v=v+(A.I*p[0]-b)/2-5;break;case"bottom":B=B+(A.F*p[1]-m)-10;break;case"bottom-left":B=B+(A.F*p[1]-m)-10,v=v-(A.I*p[0]-b)/2+5;break;case"bottom-right":B=B+(A.F*p[1]-m)-10,v=v+(A.I*p[0]-b)/2-5;break;case"left":B=B+(A.F*p[1]-m)/2-5,v=v-(A.I*p[0]-b)/2+5;break;case"right":B=B+(A.F*p[1]-m)/2-5,v=v+(A.I*p[1]-b)/2-5}else null!==ZC._n_(t.x)&&null!==ZC._n_(t.y)&&(v=l+ZC._i_(t.x),B=o+ZC._i_(t.y));if(d.css("left",ZC.BQ(1,v)+"px").css("top",ZC.BQ(1,B)+"px").show(),ZC.ie67){var I=ZC.A5("#"+A.K+"-menu div").width()[0]||120;d.css("width",I+"px")}}return A.A9D=!0,!1}}},ZC.A5(document).bind("contextmenu",zingchart.Z3)),zingchart.AAL=function(e,i){if(zingchart.css)return zingchart.css.addRule?zingchart.css.addRule(e,i):zingchart.css.insertRule(e+"{"+i+"}",0)},zingchart.wh=function(e,i,t){"auto"===i&&(i="100%"),"auto"===t&&(t="100%");var n=[0,0];return-1===(""+i).indexOf("%")&&-1===(""+t).indexOf("%")||(n=e.wh()),[-1!==(""+i).indexOf("%")?n[0]*parseInt(i,10)/100:parseInt(i,10),-1!==(""+t).indexOf("%")?n[1]*parseInt(t,10)/100:parseInt(t,10)]},zingchart.J1={},zingchart.bind=function(e,i,t){e=e||"zingchart-global",zingchart.J1[e]||(zingchart.J1[e]={}),zingchart.J1[e][i]?zingchart.J1[e][i].push({fn:t}):zingchart.J1[e][i]=[{fn:t}]},zingchart.unbind=function(e,i,t){if(e=e||"zingchart-global",zingchart.J1[e]&&zingchart.J1[e][i])if(t){for(var n=0,a=zingchart.J1[e][i].length;n0&&(X.width()!==L||X.height()!==G)&&(e=Z.LV||Z.QO?zingchart.wh(X,""+X.width(),""+X.height()):zingchart.wh(X,Z.G1,Z.MX))[0]>10&&e[1]>10){for(Z.I=ZC._i_(e[0]),Z.F=ZC._i_(e[1]),L=X.width(),G=X.height(),a=0,l=Z.AG.length;a10&&G>10){for(-1!==(""+Z.G1).indexOf("%")?Z.I=ZC._i_(L*ZC.IM(Z.G1)):Z.I=ZC._i_(L),-1!==(""+Z.MX).indexOf("%")?Z.F=ZC._i_(G*ZC.IM(Z.MX)):Z.F=ZC._i_(G),a=0,l=Z.AG.length;a%g:%i:%s %A
%q ms",second:"%d %M %Y
%g:%i:%s %A",minute:"%d %M %Y
%g:%i %A",hour:"%d %M %Y
%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-validemailmandatory":"Please enter a valid email address...","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.HD=zingchart.i18n.en_us,zingchart.getLoader=function(e){for(var i=0;i0&&(ZC.AP.C0("history_back",c,c.FG()),c.NW--,zingchart.exec(c.K,"setdata",{data:c.QT[c.NW]}));break;case"goforward":c.IC&&c.NW10&&B[1]>10)&&(c.I=B[0],c.F=B[1],null!==ZC._n_(n=t.layout)&&(c.o.layout=n),""===c.M6&&(c.E["from-api"]=!0,c.E.preservezoom=!0,c.A2L=!0,c.resize(_),c.G1=g,c.MX=v,c.A2L=!1));break;case"plothide":case"hideplot":(o=c.CA(t.graphid))&&o.A3W(t,"hide");break;case"showguide":case"hideguide":ZC.E4[0]=ZC._n_(t.x)?t.x:ZC.E4[0],ZC.E4[1]=ZC._n_(t.y)?t.y:ZC.E4[1],(o=c.CA(t.graphid))&&c.ZA(o.K,"showguide"===i);break;case"showtooltip":case"hidetooltip":case"clicknode":if(o=c.CA(t.graphid)){var b=t.ev||{};"showtooltip"!==i&&"clicknode"!==i||((r=o.I5(t.plotindex,t.plotid))&&r.S.length&&!t.xy?(s=r.L,A=ZC._i_(t.nodeindex||"0"),b.targetid=o.K+"-plotset-plot-"+s+"-node-"+A,b.update=!0):b.targetid=o.K+"-xy-"+ZC._i_(t.y||"0")+"-"+ZC._i_(t.x||"0")),"clicknode"===i?(b.which=0,o.TI(b)):o.A.A7&&("showtooltip"===i?o.A.A7.onmouseover(b,t.data):o.A.A7.hide())}break;case"locktooltip":ZC.TTLOCK=!0;break;case"unlocktooltip":ZC.TTLOCK=!1;break;case"showhoverstate":if(o=c.CA(t.graphid)){r=o.I5(t.plotindex,t.plotid),s=ZC._i_(r?r.L:0),A=ZC._i_(t.nodeindex||"0");var m=o.B0.A3[s].FM(A);o.LN(),m.A15()}break;case"plotshow":case"showplot":(o=c.CA(t.graphid))&&o.A3W(t,"show");break;case"togglesource":ZC.AM(c.K+"-viewsource")?ZC.Q.EW(c.K+"-viewsource"):c.A5Z();break;case"togglebugreport":ZC.AM(c.K+"-bugreport")?ZC.Q.EW(c.K+"-bugreport"):c.A73();break;case"toggleabout":ZC.AM(c.K+"-about")?ZC.Q.EW([c.K+"-about",c.K+"-about-mask"]):c.AA6();break;case"toggleplot":(o=c.CA(t.graphid))&&o.QJ(t);break;case"getcharttype":return(o=c.CA(t.graphid))?o.AF:null;case"showversion":case"getversion":return ZC.VERSION;case"get3dview":return(o=c.CA(t.graphid))?o.EM:null;case"set3dview":(o=c.CA(t.graphid))&&(null===ZC._n_(c.o.graphset[o.L]["3d-aspect"])&&(c.o.graphset[o.L]["3d-aspect"]={}),ZC._cp_(t,c.o.graphset[o.L]["3d-aspect"]),null===ZC._n_(o.o["3d-aspect"])&&(o.o["3d-aspect"]={}),ZC._cp_(t,o.o["3d-aspect"]),zingchart.SKIP.PARSE3D=!0,o.autoFit(),o.KB(!0,!0),zingchart.SKIP.PARSE3D=!1);break;case"getpage":return c.L9;case"setpage":var E=0;null!==ZC._n_(n=t.page)&&(E=ZC._i_(n)),c.L9=E,ZC.ZS(function(){c.clear(),c.parse(),c.paint()},!0);break;case"unbinddocument":ZC.A5(document).unbind(ZC.Q.C1("mousemove"),zingchart.MO).unbind(ZC.Q.C1("mousedown"),zingchart.MO).unbind(ZC.Q.C1("mouseup"),zingchart.MO).unbind("click",zingchart.SG).unbind("contextmenu",zingchart.Z3),c.D8&&c.D8.unbind()}var D=[];for(zingchart.ABS&&null!==(C=zingchart.ABS(e,i,t))&&(n=C),D=["addobject","removeobject","updateobject","repaintobjects","getobjectsbyclass","getallobjects","getlabelinfo","getshapeinfo","setobjectsmode","settweenmode"],zingchart.AB4&&-1!==ZC.AV(D,i)&&null!==(C=zingchart.AB4(e,i,t))&&(n=C),D=["getimagedata","exportimage","saveasimage","exportdata","downloadCSV","downloadXLS","downloadRAW","viewDataTable"],zingchart.ABD&&-1!==ZC.AV(D,i)&&null!==(C=zingchart.ABD(e,i,t))&&(n=C),D=["getzoom","pan","zoomin","zoomout","zoomto","zoomtovalues","viewall"],zingchart.ABR&&-1!==ZC.AV(D,i)&&null!==(C=zingchart.ABR(e,i,t))&&(n=C),D=["clearselection","getselection","setselection","select","deselect"],zingchart.AAS&&-1!==ZC.AV(D,i)&&null!==(C=zingchart.AAS(e,i,t))&&(n=C),D=["clearfeed","getinterval","setinterval","stopfeed","startfeed"],zingchart.ABQ&&-1!==ZC.AV(D,i)&&null!==(C=zingchart.ABQ(e,i,t))&&(n=C),a=0,l=zingchart.A98.length;ab;A--)B[A]=B[A-1];B[b]=t.value||"",K.o.graphset[a.L][f].values=B}K.E.json=ZC.GX(JSON.stringify(K.o)),a.M3("on-change"),x&&(a.E["from-api"]=!0,a.KB(y,y))}break;case"removescalevalue":if(zingchart.SKIP.CSV=!0,a=K.CA(t.graphid)){for(f=t.scale||"scale-x",_=0,g=a.BO.length;_b;A--)v[A]=v[A-1];if(v[b]=t.value,!ie)for(_=0,g=a.BO.length;_b;A--)B[A]=B[A-1];B[b]=t[f+"-value"],K.o.graphset[a.L][f].values=B}ZC.AP.C0("node_add",K,{id:K.K,graphid:a.K,plotindex:o.L,nodeindex:b,key:b,value:t.value,text:t.value}),K.o.graphset[a.L].series[o.L].values=a.o.series[o.L].values,K.E.json=ZC.GX(JSON.stringify(K.o)),a.M3("on-change"),x&&(a.E["from-api"]=!0,a.KB(y,y))}break;case"removenode":if(zingchart.exec(K.K,"setmode",{mode:""}),zingchart.SKIP.CSV=!0,(a=K.CA(t.graphid))&&(o=a.I5(t.plotindex,t.plotid))){v=a.o.series[o.L].values,b=null===ZC._n_(t.nodeindex)?o.S.length-1:ZC._i_(t.nodeindex);var ne=!0;if(null!==ZC._n_(t.nodekeyvalue))for(ne=!1,_=0,g=o.S.length;_0&&null!==ZC._n_(m[A][0])&&m[A][0].length>1,ce=!0;if(null!==ZC._n_(n=t.ignoreduplicates)&&(ce=ZC._b_(n)),Ce){var ue=Ae.length;for(c=0,u=m[A].length;c=0;Ze--){if(m[A][c][0]>Ae[Ze][0]){Ae.push(m[A][c]),pe=!0;break}if(m[A][c][0]===Ae[Ze][0]){pe=!0;break}}pe&&ce||Ae.push(m[A][c])}}else for(c=0,u=m[A].length;cm.length)for(_=m.length;_s.G.I&&(KX=!1),null!==ZC._n_(oRule["max-width"])&&ZC._i_(oRule["max-width"])s.G.F&&(KX=!1),null!==ZC._n_(oRule["max-height"])&&ZC._i_(oRule["max-height"])")}return""!==i?[i,ZC.XS.md5(i)]:null},J7:function(){return!0},copy:function(e){var i=this;ZC._cp_(e.o,i.o),e.I8&&(i.I8=i.I8||{},ZC._cp_(e.I8,i.I8)),e.J0&&(i.J0=i.J0||{},ZC._cp_(e.J0,i.J0)),ZC._cp_(e.E,i.E),ZC._cp_(e.E7,i.E7)}};ZC.A9S=ZC.C9.CC(A9S);var CZ={$i:function(e){this.b(e);var i=this;e&&e.G&&(i.G=e.G),i.K="",i.DG=null,i.AO=!0,i.A0="-1",i.AE="-1",i.GS="",i.HO="",i.VN=!0,i.DC="",i.M7="repeat",i.TD="50% 50%",i.WL="",i.KY=1,i.NJ="linear",i.NB=90,i.VS=0,i.VR=0,i.B1=0,i.B9="#000",i.GE="",i.EU=0,i.G3=0,i.AU=0,i.BX="#000",i.C5=1,i.O1=1,i.T5="butt",i.A00="round",i.MD=!1,i.OK=45,i.JW=2,i.T6=.75,i.RV="#999",i.P7=0,i.D0=!0,i.N2=!1,i.LA=!1,i.A20=!1,i.LR=null,i.BG=""},getPMap:function(){var e=this.b();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","AO,A0,AE,GS,HO,DC,M7,TD,WL,KY,NJ,NB,VS,VR,B1,B9,GE,EU,G3,AU,BX,O1,C5,T5,MD,OK,JW,T6,RV,P7,DG,BG"),e},copy:function(e){this.b(e);for(var i="AO,A0,AE,GS,HO,DC,VN,M7,TD,WL,KY,NJ,NB,VS,VR,B1,B9,GE,EU,G3,AU,BX,O1,C5,T5,MD,OK,JW,T6,RV,P7,D0,LA,DG,G,BG".split(","),t=0,n=i.length;t2&&null!==t[0]&&null!==t[t.length-1]&&t[0].join(",")===t[t.length-1].join(",")&&(i.T5="round");var u=i.G.AD;if("canvas"!==u||0!==i.B1&&"-1"!==i.B9){if(i.MD&&!n){i.C7=i.C7||i.Z;var p,Z=ZC.Q._sh_(t,i);"undefined"!=typeof i.A4R?p=i.A4R:((p=new ZC.DR(i)).copy(i),p.K=i.K+"-sh",p.MD=!1,p.B1+=p.P7,p.B9=p.RV),p.C5=i.C5*p.T6,"undefined"==typeof i.ADG&&(i.A4R=p),p.D0=!1,o=i.C7?ZC.Q.ED(i.C7,u):e,ZC.CN.setup(o,p),ZC.CN.paint(o,p,Z,!1,1,l)}var h=ZC._i_(i.EU||"0"),d=ZC._i_(i.G3||"0");"solid"===i.GE&&(h=d=0);var f=t.length;"undefined"==typeof i.AA&&(i.AA=0),"canvas"===u&&(e.lineJoin=i.A00,e.lineCap=i.T5,e.strokeStyle=ZC.AP.A35(ZC.AP.GD(i.B9),n?i.O1:i.C5),e.lineWidth=i.B1,e.beginPath());var _=!1;if(-1!==ZC.AV(["svg","vml"],u))r=l?[]:ZC.Q.A34(t,u,i,n);else{var g=!1;"dashdot"!==i.GE&&(g=e.setLineDash)&&e.setLineDash(0===h||0===d?[]:[h,d]);var v=0,B=[ZC.MAX,ZC.MAX,-ZC.MAX,-ZC.MAX];for(c=0;ch){var w;v=0,w="dashdot"===i.GE?Math.floor(ZC._a_(y/((K+i.B1+d)/2))):Math.floor(ZC._a_(y/K));var M=Math.atan2(I,x),Y=Math.cos(M),X=Math.sin(M),L=m,G=E,P=h;for(A=0;Ah?e.lineTo(L+Y*h,G+X*h):y>0&&e.lineTo(L+Y*y,G+X*y),e.moveTo(D,F)}else v=y}}else _=!0;i.G&&f<=6&&n&&(i.G.E[i.K+"-bounds"]=B)}switch(u){case"canvas":e.globalCompositeOperation=i.A0Z,e.stroke();break;case"svg":case"vml":if(null===ZC._n_(i.o["top-state"])&&i.G.O9&&(!n||i.E.areanode)){if(C=i.E.areanode?i.A0+"-"+i.AE+"-"+i.DC+"-"+i.B1+"-"+i.GE+"-"+i.C5+"-"+i.BK+"-"+i.BJ:i.B9+"-"+i.B1+"-"+i.GE+"-"+i.C5+"-"+i.BK+"-"+i.BJ,null===ZC._n_(i.G.NU[a])){i.G.NU[a]={uid:C,ctx:e,path:r,style:i,filled:n};break}if(i.G.NU[a].uid===C&&i.G.NU[a].path.length<2e3){A=i.G.NU[a].path,r&&r[0]&&(A.length>0&&A[A.length-1].replace(/[A-Z]+/,"")===r[0].replace(/[A-Z]+/,"")&&(r[0]=""),i.G.NU[a].path=i.G.NU[a].path.concat(r));break}"svg"===u?ZC.CN.WH(i.G.NU[a].ctx,i.G.NU[a].style,i.G.NU[a].path.join(" "),i.G.NU[a].filled):ZC.CN.WG(i.G.NU[a].ctx,i.G.NU[a].style,i.G.NU[a].path.join(" "),i.G.NU[a].filled),i.G.NU[a]={uid:C,ctx:e,path:r,style:i,filled:n};break}"svg"===u?ZC.CN.WH(e,i,r.join(" "),n,l):ZC.CN.WG(e,i,r.join(" "),n)}if(null!==ZC._n_(i.o["top-state"])&&!i.YA&&!i.E["skip-top"]&&!i.W1){var O=new ZC.HS(i.A);O.copy(i),O.W1=!0,O.MD=!1,O.Z=i.Z,O.append(i.o["top-state"]),O.K=i.K+"-top",O.parse(),"svg"===u?ZC.CN.WH(e,O,r.join(" "),n,l):"vml"===u?ZC.CN.WG(e,O,r.join(" "),n):ZC.CN.paint(e,O,t,n,a,l)}}}},smooth:function(e,i,t){var n,a,l,o;ZC._n_(i)&&(i=!1),t=t||"h";var r=[],s=[];for(n=0,a=e.length;n0&&(u.stroke=i.B9,u["stroke-width"]=i.B1,u["stroke-opacity"]=n?i.O1:i.C5,"solid"===i.GE||0===i.EU&&0===i.G3||("dashdot"===i.GE?u["stroke-dasharray"]=[i.EU,i.G3,i.B1,i.G3].join(" "):u["stroke-dasharray"]=i.EU+","+i.G3)),l.id=d,""!==_&&(u.transform=_),i.o["fast-line"]&&i.B1>0?(l.setAttribute("stroke",u.stroke),l.setAttribute("stroke-width",u["stroke-width"]),l.setAttribute("stroke-opacity",u["stroke-opacity"]),l.setAttribute("d",t)):ZC.Q.G6(l,u),ZC.CN._append_(e,i,l),(!i.E.border||"all"===i.E.border)&&"undefined"!=typeof i.E.imgfill)if("string"==typeof i.E.imgfill)ZC.AM(d+"-imgfill")||(f=a?ZC.Q.F7("rect","http://www.w3.org/2000/svg"):ZC.Q.F7("path","http://www.w3.org/2000/svg"),ZC.Q.G6(f,{id:d+"-imgfill",transform:_,fill:i.E.imgfill,"fill-opacity":i.C5}),a?ZC.Q.G6(f,{x:o,y:r,width:ZC.BQ(0,s),height:ZC.BQ(0,A),rx:C,ry:c}):ZC.Q.G6(f,{d:t}),ZC.CN._append_(e,i,f));else if(!ZC.AM(d+"-imgfill")){var v=i.E.imgfill,B=ZC.Q.F7("image","http://www.w3.org/2000/svg");B.setAttributeNS?"zc."===i.DC.substring(0,3)?B.setAttributeNS("http://www.w3.org/1999/xlink","href",ZC.IMAGES[i.DC]):B.setAttributeNS("http://www.w3.org/1999/xlink","href",i.DC):"zc."===i.DC.substring(0,3)?B.setAttribute("src",ZC.IMAGES[i.DC]):B.setAttribute("src",i.DC),null!==ZC._n_(i.E["clip-path"])&&ZC.Q.G6(B,{"clip-path":"url(#"+i.E["clip-path"]+")"}),ZC.Q.G6(B,{id:d+"-imgfill",x:v[1],y:v[2],"fill-opacity":i.C5,width:i.E["bg-image-width"],height:i.E["bg-image-height"],preserveAspectRatio:"none"}),ZC.CN._append_(e,i,B)}}},WG:function(e,i,t,n){var a,l,o,r,s,A;n&&(t+=" x e");var C="";"undefined"==typeof i.K||""===i.K?"undefined"!=typeof i.G&&(C=i.G.GRAPHID+"-path-"+ZC.SEQ,ZC.SEQ++):C=i.K+"-path";var c=ZC.Q.F7("zcv:shape");c.style.position="absolute",c.style.rotation=i.AA,c.id=C;var u=ZC.Q.F7("zcv:path");if(u.v=t,u.setAttribute("VMLv",t),c.appendChild(u),0===i.B1)c.stroked=!1;else{var p=ZC.Q.F7("zcv:stroke");if(r=i.C5,"undefined"!=typeof i.E.A8L&&(r=i.E.A8L),"undefined"!=typeof i.E.stroke)l=i.E.stroke.weight,o=i.E.stroke.color,r=i.E.stroke.opacity,s=i.E.stroke.dashstyle;else{switch(s="solid",i.GE){case"solid":s="solid";break;case"dotted":s="dot";break;case"dashed":s="dash";break;default:s=i.GE}"solid"!==s&&"0 0"!=(a=ZC.CY(6,i.EU*i.B1)+" "+ZC.CY(8,i.G3*i.B1))&&(s=a),l=i.B1,o=i.B9}ZC.Q.G6(p,{weight:l+"px",color:o,opacity:r,miterlimit:10,endcap:"flat",joinstyle:"round",dashstyle:s}),c.appendChild(p)}n&&"undefined"!=typeof i.E.fill&&-1!==i.E.fill?(c.filled=!0,c.appendChild(i.E.fill)):c.filled=!1,ZC.Q.G6(c,{coordorigin:"0 0",coordsize:i.AA%360==0?"100 100":i.G.I+" "+i.G.F});var Z=0,h=0;if(i.AA%360!=0&&"undefined"!=typeof i.E.cx&&"undefined"!=typeof i.E.cy){var d=i.G.I/2-i.E.cx,f=i.G.F/2-i.E.cy,_=0===f?0:ZC.U3(Math.atan(d/f));i.E.cy>i.G.F/2&&(_+=180);var g=Math.sqrt(d*d+f*f);Z=d-g*ZC.EK(_-i.AA),h=f-g*ZC.EE(_-i.AA)}var v=0-Z;null!==ZC._n_(i.BK)&&(v+=i.BK);var B=0-h;if(null!==ZC._n_(i.BJ)&&(B+=i.BJ),c.style.left=v+"px",c.style.top=B+"px",e.appendChild(c),i.AA%360==0?(c.style.width="10px",c.style.height="10px"):(c.style.width=i.G.I+"px",c.style.height=i.G.F+"px"),("all"===i.E.border||"undefined"!=typeof i.E.imgfill)&&"undefined"!=typeof i.E.imgfill){var b=i.E.imgfill;1===b.length?((c=ZC.Q.F7("zcv:shape")).style.position="absolute",c.style.rotation=i.AA,(u=ZC.Q.F7("zcv:path")).v=t,c.appendChild(u),c.appendChild(b[0]),c.stroked=!1,ZC.Q.G6(c,{id:C+"-imgfill",filled:!0,coordorigin:"0 0",coordsize:i.AA%360==0?"100 100":i.G.I+" "+i.G.F}),c.style.left=v+"px",c.style.top=B+"px",e.appendChild(c),i.AA%360==0?(c.style.width="10px",c.style.height="10px"):(c.style.width=i.G.I+"px",c.style.height=i.G.F+"px")):3===b.length&&((A=ZC.Q.F7("img")).id=C+"-img","zc."===i.DC.substring(0,3)?A.src=ZC.IMAGES[i.DC]:A.src=i.DC,A.style.position="absolute",A.style.left=b[1]+"px",A.style.top=b[2]+"px",A.style.width=i.E["bg-image-width"]+"px",A.style.height=i.E["bg-image-height"]+"px",e.appendChild(A))}}};var DR={$i:function(e){this.b(e);var i=this;i.A=e,i.Z=null,i.C7=null,i.H7="",i.iX=-1,i.iY=-1,i.DV="poly",i.D=[],i.D2=[0,0,0,0],i.AA=0,i.AI=0,i.JP=0,i.BK=0,i.BJ=0,i.A9A=0,i.DW=0,i.B4=0,i.BL=360,i.CO=0,i.TL=!1,i.ADA=!1,i.A4E=0,i.AAO="",i.O9=!1,i.A77=1,i.JU=1,i.EA=null,i.FC=null,i.IL="auto",i.KC=!1,i.A0Z="source-over",i.QU=!1},getPMap:function(){var e=this.b();return this.addPMap(e,"objectId,x,y,points,bounds,pieAngleStart,pieAngleEnd,pieSlice,url,target,offsetX,offsetY,offsetR,size,size2,angle,shape,flat,cursor","H7,iX,iY,D,D2,B4,BL,CO,EA,FC,BK,BJ,DW,AI,JP,AA,DV,KC,IL"),e},build:function(){},copy:function(e){this.b(e);var i,t,n=this,a="BK,BJ,DW,AI,JP,AA,DV,KC,IL".split(",");for(i=0,t=a.length;i0)for(n.D=[],i=0,t=e.D.length;i=1||e<0||zingchart.DEV.IGNORESUBUNIT)&&!t?"x"===i?l+parseFloat(e):o+parseFloat(e):e>=0&&e<1||t?"x"===i?(r=r||1,Math.round(l+r*e)):(s=s||1,Math.round(o+s*e)):void 0},locate:function(e){var i,t=this;if(t.TL)return-1!==(""+t.o.x).indexOf("lon")?t.iX=t.ll_(t.o.x,"x"):t.YE("x","iX"),-1!==(""+t.o.y).indexOf("lat")?t.iY=t.ll_(t.o.y,"y"):t.YE("y","iY"),void t.A3Z();1===e?(null!==(i=ZC._n_(t.o.x))&&(t.iX=t.xy_(i,"x")),null!==(i=ZC._n_(t.o.y))&&(t.iY=t.xy_(i,"y")),-1===t.iX&&(t.iX=t.A.iX),-1===t.iY&&(t.iY=t.A.iY)):2===e&&(t.A3Z(),t.I=t.D2[2]-t.D2[0],t.F=t.D2[3]-t.D2[1])},A3Z:function(){var e,i=this,t=ZC.MAX,n=ZC.MAX,a=-ZC.MAX,l=-ZC.MAX;switch(i.DV){case"custom":t=0,n=0,a=0,l=0;break;case"circle":case"arc":case"pie":t=i.iX-i.AI,n=i.iY-i.AI,a=i.iX+i.AI,l=i.iY+i.AI;break;default:for(var o=0,r=i.D.length;o50&&(t=2),o>100&&(t=4),0===r?a%360!=l%360&&n.push([i.iX,i.iY]):n.push(ZC.AQ.BN(i.iX,i.iY,r,a),ZC.AQ.BN(i.iX,i.iY,(o+r)/2,a-.25*i.AU),ZC.AQ.BN(i.iX,i.iY,o,a)),e=a;e<=l;e+=t)n.push(ZC.AQ.BN(i.iX,i.iY,o,e));if(n.push(ZC.AQ.BN(i.iX,i.iY,o,l)),n.push(ZC.AQ.BN(i.iX,i.iY,(o+r)/2,l+.25*i.AU)),0===r)a%360!=l%360&&n.push([i.iX,i.iY]);else{for(n.push(ZC.AQ.BN(i.iX,i.iY,r,l)),e=l;e>=a;e-=t)n.push(ZC.AQ.BN(i.iX,i.iY,r,e));n.push(ZC.AQ.BN(i.iX,i.iY,r,a))}return n.push([n[0][0],n[0][1]]),ZC.AQ.PG(n,Math.min(5,o/5),[i.BK,i.BJ])}if(0===i.AA||"rectangle"!==i.DV&&"rect"!==i.DV)return ZC.AQ.PG(i.D,Math.min(5,i.AI/5),[i.BK,i.BJ]);var s,A,C,c,u,p,Z,h,d=[];for(C=ZC._i_((i.D2[0]+i.D2[2])/2),c=ZC._i_((i.D2[1]+i.D2[3])/2),s=0,A=i.D.length;s-1&&p.push(ZC.AQ.PG(t,Math.min(5,A.AI/5),[A.BK,A.BJ])),t=[];if(0!==A.AA)for(n=ZC._i_((A.D2[0]+A.D2[2])/2),a=ZC._i_((A.D2[1]+A.D2[3])/2),e=0,i=t.length;e-1&&p.push(ZC.AQ.PG(t,Math.min(5,A.AI/5),[A.BK,A.BJ])),p}},parse:function(e){var i,t,n,a,l,o,r;null===ZC._n_(e)&&(e=!1),this.o.tween||e||this.b();var s=this;if(!s.o.tween&&!e){s.assign_a([["map","A4E"]]),"string"==typeof s.o.item&&s.assign_a([["item","AAO"]]),0!==s.A4E&&(null===ZC._n_(s.o["map-item"])||s.o["map-item"])&&(s.o["map-item"]=!0,s.o["map-skip-z-sort"]=!0);var A=["offset-x","offset-y"];for(t=0;t<2;t++){var C=A[t],c="offset-x"===C?"lon":"lat";if(null!==(i=s.o[C])&&void 0!==i&&-1!==(i=""+i).indexOf(c)){i=ZC._f_(i.replace(c,""));var u=zingchart.maps.maps[s.A4E];u&&(i=zingchart.maps.translate(C.replace("offset-"),i,s.A.I,s.A.F,u._INFO_.bbox),s.o[C]=i)}}for(s.assign_a([["url","EA"],["target","FC"],["cursor","IL"],["id","H7"],["angle","AA","i"],["static","KC","b"],["flat","KC","b"],["angle-start","B4","f"],["angle-end","BL","f"],["slice","CO","i"],["size","AI","f"],["size-2","JP","f"],["fast-vector-path","QU","b"],["type","DV"],["points","D"],["offset-x","BK"],["offset-y","BJ"],["offset-z","A9A","i"],["offset-r","DW","i"],["z-sort","A77","i"],["z-index","JU","f"],["composite","A0Z"]]),s.BK=ZC.IM(s.BK,!0),s.BJ=ZC.IM(s.BJ,!0),s.BK>-1&&s.BK<1&&"undefined"!=typeof s.E["p-width"]&&(s.BK*=s.E["p-width"]),s.BJ>-1&&s.BJ<1&&"undefined"!=typeof s.E["p-height"]&&(s.BJ*=s.E["p-height"]),s.AI=ZC.BQ(1,s.AI),s.JP=ZC.BQ(1,s.JP),null!==s.o["z-sort"]&&"undefined"!=typeof s.o["z-sort"]||(s.A77=s.JU),"rectangle"!==s.DV&&"rect"!==s.DV||s.assign_a([["width","AI","f"],["height","JP","f"]]),s.A51?(s.D=JSON.parse(JSON.stringify(s.FB)),s.A51=!1):s.FB=JSON.parse(JSON.stringify(s.D)),t=0,n=s.D.length;t4?2:7-a),t=0+o;t<360+o;t+=l)s.D.push(ZC.AQ.BN(s.iX,s.iY,.75*Z,t),ZC.AQ.BN(s.iX,s.iY,.75*r,t+l/2));s.D.push([s.D[0][0],s.D[0][1]]);break;case"rpoly3":case"rpoly4":case"rpoly5":case"rpoly6":case"rpoly7":case"rpoly8":case"rpoly9":for(s.D=[],Z=s.AI,l=360/(a=ZC._i_(s.DV.replace("rpoly",""))),o=a%2==0?0:-90,null!==ZC._n_(s.o["angle-offset"])&&(o=ZC._i_(s.o["angle-offset"])),t=0+o;t<360+o;t+=l)s.D.push(ZC.AQ.BN(s.iX,s.iY,Z,t));s.D.push([s.D[0][0],s.D[0][1]]);break;case"gear3":case"gear4":case"gear5":case"gear6":case"gear7":case"gear8":case"gear9":for(s.D=[],Z=2*s.AI,l=360/(2*(a=ZC._i_(s.DV.replace("gear","")))),r=.75*Z,t=0+(o=a%2==0?0:-90);t<360+o;t+=2*l){var v=t+l/2;s.D.push(ZC.AQ.BN(s.iX,s.iY,.75*Z,v),ZC.AQ.BN(s.iX,s.iY,.75*Z,v+l),ZC.AQ.BN(s.iX,s.iY,.75*r,v+l+0*l),ZC.AQ.BN(s.iX,s.iY,.75*r,v+2*l-0*l))}s.D.push([s.D[0][0],s.D[0][1]]);break;case"hamburger":Z*=2;var B=s.iX,b=s.iY-10;s.D=s.D.concat([[B-Z/2,b-s.JP/2],[B+Z/2,b-s.JP/2],[B+Z/2,b+s.JP/2],[B-Z/2,b+s.JP/2],[B-Z/2,b-s.JP/2],null]),b+=5,s.D=s.D.concat([[B-Z/2,b-s.JP/2],[B+Z/2,b-s.JP/2],[B+Z/2,b+s.JP/2],[B-Z/2,b+s.JP/2],[B-Z/2,b-s.JP/2],null]),b+=5,s.D=s.D.concat([[B-Z/2,b-s.JP/2],[B+Z/2,b-s.JP/2],[B+Z/2,b+s.JP/2],[B-Z/2,b+s.JP/2],[B-Z/2,b-s.JP/2],null]);break;case"ellipse":for(s.D0=!1,s.D=[],t=0;t<=360;t+=5)s.D.push([s.iX+s.AI*ZC.EE(t),s.iY+s.JP*ZC.EK(t)]);s.D.push([s.D[0][0],s.D[0][1]]);break;case"arc":s.D0=!1,s.D=[ZC.AQ.BN(s.iX,s.iY,s.AI,s.B4),[s.iX,s.iY,s.AI,s.B4,s.BL,0]];break;case"pie":for(var m=(s.o["pie-transform"]||"").split(/=|,/);s.B4<0||s.BL<0;)s.B4+=360,s.BL+=360;s.D0=!1;var E=!1;-1!==ZC.AV(["svg","vml"],s.G.AD)&&s.B4%360==s.BL%360&&(s.B4+=.05,s.BL-=.05,E=!0);var D,F,K,x,I,y=s.iX,w=s.iY,M=ZC._x_(s.B4,2),Y=ZC._x_(s.BL,2),X=ZC._x_((M+Y)/2,2),L=Z,G=s.CO,P=0===G&&M%360!=Y%360&&!E;switch(s.D=[],"circle"!==m[0]&&(0===G?M%360==Y%360||E||s.D.push([y,w]):s.D.push(ZC.AQ.BN(y,w,G,M))),m[0]){case"flat":case"fold":s.D.push(ZC.AQ.BN(y,w,L,M),ZC.AQ.BN(y,w,L-("fold"===m[0]?ZC._i_(m[1]):0),Y)),P||s.D.push(ZC.AQ.BN(y,w,G,Y));break;case"callout":s.D.push(ZC.AQ.BN(y,w,L,M),[y,w,L,M,Y,0]),P||(D=1.5*ZC._i_(m[1])*360/(2*Math.PI*L),s.D.push(ZC.AQ.BN(y,w,L,Y),ZC.AQ.BN(y,w,G,Y),[y,w,G,Y,X+D,1],ZC.AQ.BN(y,w,G-ZC._i_(m[1]),X),ZC.AQ.BN(y,w,G,X-D),[y,w,G,X-D,M,1]));break;case"flow":D=ZC._i_(m[1]),x=ZC.AQ.BN(y,w,(G+L)/2,M),99===D||-99===D?s.D.push([x[0],x[1],(L-G)/2,M+180,M,99===D?1:0]):s.D.push(ZC.AQ.BN(y,w,(G+L)/2,M+D)),s.D.push(ZC.AQ.BN(y,w,L,M),[y,w,L,M,Y,0]),I=ZC.AQ.BN(y,w,(G+L)/2,Y),P?99===D||-99===D?s.D.push(ZC.AQ.BN(y,w,L,Y),[I[0],I[1],(L-G)/2,Y,Y+180,99===D?0:1]):s.D.push(ZC.AQ.BN(y,w,(G+L)/2,Y+D)):(99===D||-99===D?s.D.push([I[0],I[1],(L-G)/2,Y,Y+180,99===D?0:1]):s.D.push(ZC.AQ.BN(y,w,(G+L)/2,Y+D)),s.D.push(ZC.AQ.BN(y,w,G,Y),[y,w,G,Y,M,1]));break;case"circle":var O=ZC._f_(m[1]||"1"),S=(5+ZC._a_(Y-M)%360*50/360)*O;K=Y%360==M%360||E?[y,w]:ZC.AQ.BN(y,w,(L+G)/2,(M+Y)/2),s.D.push(ZC.AQ.BN(K[0],K[1],S,0),[K[0],K[1],S,0,360,0]);break;case"bite":D=ZC._i_(m[1]),F=ZC._i_(2*L*ZC.EK(D/2)),K=ZC.AQ.BN(y,w,L,M),s.D.push(ZC.AQ.BN(y,w,L-F,M),[K[0],K[1],F,M+180,M+90+(90-(180-D)/2),1],[y,w,L,M+D,Y,0]),P||s.D.push(ZC.AQ.BN(y,w,G,Y),[y,w,G,Y,M,1]);break;case"droplet":for(var N=L,k=1,z=0;L*k+z>=N;)k=ZC._x_(k-.02,2),F=ZC._i_(L*k/ZC.EE((Y-M)/2)),z=ZC._i_(L*k*Math.tan(ZC.TC((Y-M)/2)));K=ZC.AQ.BN(y,w,F,X),s.D.push(ZC.AQ.BN(y,w,L*k,M),[K[0],K[1],z,X-(360-(180-(Y-M)))/2,X+(360-(180-(Y-M)))/2,0]),P||s.D.push(ZC.AQ.BN(y,w,G,Y),[y,w,G,Y,M,1]);break;default:s.D.push(ZC.AQ.BN(y,w,L,M),[y,w,L,M,Y,0]),0===G?M%360==Y%360||E||s.D.push([y,w]):s.D.push(ZC.AQ.BN(y,w,L,Y),ZC.AQ.BN(y,w,G,Y),[y,w,G,Y,M,1])}s.D.push([s.D[0][0],s.D[0][1]])}}s.locate(2)},paint:function(){var e=this;if("none"!==e.DV&&("custom"===e.DV||"circle"===e.DV||"arc"===e.DV||0!==e.D.length)){var i,t,n={x:"iX",y:"iY",width:"I",height:"F",size:"AI"};if(e.o["bottom-state"]&&!e.YA&&!e.W1&&!e.bIsBottom){var a=new ZC.DR(e.A);for(i in a.copy(e),a.bIsBottom=!0,a.MD=!1,a.Z=e.Z,a.append({x:e.iX-e.A.iX,y:e.iY-e.A.iY}),a.append(e.o["bottom-state"]),a.K=e.K+"-bottom",a.parse(),t=!1,n)null===ZC._n_(a.o[i])||-1===(""+a.o[i]).indexOf("+")&&-1===(""+a.o[i]).indexOf("-")||(a.o[i]=a[n[i]]=e[n[i]]+ZC._i_(a.o[i]),t=!0);t&&a.parse(),a.paint()}var l=e.G.AD;switch(e.MD&&e.C7&&e.AA7(),l){case"canvas":e.A1S();break;case"svg":e.WH();break;case"vml":e.WG()}if(e.o["top-state"]&&!e.YA&&!e.W1&&!e.bIsBottom){var o=new ZC.DR(e.A);for(i in o.copy(e),o.W1=!0,o.MD=!1,o.Z=e.Z,o.append({x:e.iX-e.A.iX,y:e.iY-e.A.iY}),o.append(e.o["top-state"]),o.K=e.K+"-top",o.parse(),t=!1,n)null===ZC._n_(o.o[i])||-1===(""+o.o[i]).indexOf("+")&&-1===(""+o.o[i]).indexOf("-")||(o.o[i]=o[n[i]]=e[n[i]]+ZC._i_(o.o[i]),t=!0);t&&o.parse(),o.paint()}}},AA7:function(){var e,i=this,t=new ZC.DR(i.A);t.K=i.K+"-sh",t.copy(i),t.O9=i.O9,t.Z=i.C7,t.MD=!1,t.YA=!0,t.A0=t.AE=t.RV,t.GS=t.HO="",t.DC="",t.GE="solid",t.BX=t.RV,t.B1=0,t.C5=t.T6*i.C5,t.K=i.K+"-sh";var n=(i.JW-i.P7)*ZC.EE(i.OK)+i.P7,a=(i.JW-i.P7)*ZC.EK(i.OK)+i.P7;if(t.iX=i.iX+parseInt(n,10),t.iY=i.iY+parseInt(a,10),t.AI=i.AI+i.P7,i.D.length>0){e=[];for(var l=0,o=i.D.length;l0||"arc"===s.DV&&s.B1>0)&&A.stroke(),A.closePath();break;case"plus":case"cross":case"line":case"ic_line":s.B1>0&&(ZC.CN.setup(A,s),s.o.spline?(s.D0=!1,s.QU=!0,ZC.CN.paint(A,s,ZC.CN.smooth(s.D,!1,s.o.direction||"h"))):ZC.CN.paint(A,s,s.D));break;default:if(s.AU>0){var E=s.B9,D=s.B1;s.B9=s.BX,s.B1=s.AU,s.L2(),ZC.CN.setup(A,s),ZC.CN.paint(A,s,s.D,!0),s.B9=E,s.B1=D,s.L2()}A.closePath()}A.restore()}},A2R:function(e){var i=this,t=e.info,n=t.image,a=!0;switch(i.M7){default:a=!0;break;case"no-repeat":case"false":case!1:a=!1}var l=i.DC;0===n.src.indexOf("data:")&&(l=n.src),n.width*=i.KY,n.height*=i.KY;var o=""===i.K?"pattern-"+ZC.SEQ++:i.K+"-pattern";ZC.Q.EW(o);var r=ZC.Q.F7("image","http://www.w3.org/2000/svg");r.setAttributeNS?r.setAttributeNS("http://www.w3.org/1999/xlink","href",l):r.setAttribute("src",l),ZC.Q.G6(r,{id:o+"-image",preserveAspectRatio:"none",width:i.E["bg-image-width"],height:i.E["bg-image-height"]});var s=n.width,A=n.height;if(!a){var C,c;s=A=1,i.I>0&&i.F>0?(C=i.I,c=i.F):(C=i.D2[2]-i.D2[0],c=i.D2[3]-i.D2[1]);var u=ZC._i_(C*t.cx),p=ZC._i_(c*t.cy);if("pie"===i.DV){s=i.G?i.G.I:i.A.I,A=i.G?i.G.F:i.A.F;var Z=i.AA+i.B4+(i.BL-i.B4)*t.hPos,h=ZC.AQ.BN(i.iX,i.iY,i.CO+(i.AI-i.CO)*t.vPos,Z);u=h[0]-n.width/2,p=h[1]-n.height/2}i.E["pattern-image-id"]=o+"-image",i.E["pattern-tx"]=u,i.E["pattern-ty"]=p,ZC.Q.G6(r,{transform:"translate("+u+","+p+")"})}var d=ZC.Q.F7("pattern","http://www.w3.org/2000/svg");ZC.Q.G6(d,{x:a?e.x:0,y:a?e.y:0,width:s,height:A,id:o,patternUnits:a||"pie"===i.DV?"userSpaceOnUse":"objectBoundingBox"}),i.G.KA.childNodes[0].appendChild(d),d.appendChild(r),i.E.imgfill="url(#"+o+")"},X0:function(e){null!==e&&void 0!==e||(e=!1);var i,t,n=this;if(n.A0!==n.AE||""!==n.GS&&""!==n.HO){var a=""===n.K?"gradient-"+ZC.SEQ++:n.K+"-gradient";(n.TL||e&&!ZC.AM(a))&&(e=!1),ZC.A5.browser.msie&&9===ZC._i_(ZC.A5.browser.version)&&(e=!1),ZC.AM(a)&&!e&&ZC.Q.EW(a);var l=n.YF(n.NJ);if("radial"===n.NJ?(i=e?ZC.AM(a):ZC.Q.F7("radialGradient","http://www.w3.org/2000/svg"),ZC.Q.G6(i,{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"===n.NJ&&(i=e?ZC.AM(a):ZC.Q.F7("linearGradient","http://www.w3.org/2000/svg"),ZC.Q.G6(i,{x1:ZC._i_(l.x1),x2:ZC._i_(l.x2),y1:ZC._i_(l.y1),y2:ZC._i_(l.y2)})),!e){if(ZC.Q.G6(i,{id:a,gradientUnits:"userSpaceOnUse"}),n.G.KA.childNodes[0].appendChild(i),""!==n.GS&&""!==n.HO)for(var o=n.GS.split(/\s+|;/),r=n.HO.split(/\s+|;/),s=0,A=o.length;s6){for(var t="",n=0,a=i.length;n0&&e.indexOf("#")>=0)?(C=ZC.Q.F7("svg","http://www.w3.org/2000/svg"),ZC.Q.G6(C,{viewBox:"0 0 8 8",fill:o.E.fill}),l=ZC.Q.F7("use","http://www.w3.org/2000/svg")):l=ZC.Q.F7("image","http://www.w3.org/2000/svg"),l.setAttributeNS?l.setAttributeNS("http://www.w3.org/1999/xlink","href",e):l.setAttribute("src",e);var c=o.o.width?o.o.width:n.width,u=o.o.height?o.o.height:n.height;n.width=c,n.height=u,A?ZC.Q.G6(C,{id:o.K+"-image",x:o.iX-n.width/2+o.BK,y:o.iY-n.height/2+o.BJ,width:n.width,height:n.height}):ZC.Q.G6(l,{id:o.K+"-image",x:o.iX-n.width/2+o.BK,y:o.iY-n.height/2+o.BJ,width:n.width,height:n.height}),A?(C.appendChild(l),r.appendChild(C)):r.appendChild(l)}break;case"circle":if(!ZC.AM(o.K+"-circle")&&(a=ZC.Q.F7("circle","http://www.w3.org/2000/svg"),-1!==o.E.fill?ZC.Q.G6(a,{fill:o.E.fill,"fill-opacity":o.C5}):ZC.Q.G6(a,{fill:"none"}),o.DG&&""!==o.DG&&ZC.Q.G6(a,{"class":o.DG}),ZC.Q.G6(a,{id:o.K+"-circle",cx:o.iX+o.BK,cy:o.iY+o.BJ,r:o.AI}),o.AU>0&&(ZC.Q.G6(a,{stroke:o.BX,"stroke-width":o.AU,"stroke-opacity":o.O1}),o.L2(o.AU),"solid"===o.GE||0===o.EU&&0===o.G3||ZC.Q.G6(a,{"stroke-dasharray":"dashdot"===o.GE?[o.EU,o.G3,o.B1,o.G3].join(" "):[o.EU,o.G3].join(",")})),o.G&&o.G.G4?(o.G.G4[r.id]||(o.G.G4[r.id]=document.createDocumentFragment()),o.G.G4[r.id].appendChild(a)):r.appendChild(a),"undefined"!=typeof o.E.imgfill))if("string"==typeof o.E.imgfill)a=ZC.Q.F7("circle","http://www.w3.org/2000/svg"),ZC.Q.G6(a,{id:o.K+"-imgfill",fill:o.E.imgfill,"fill-opacity":o.C5,cx:o.iX+o.BK,cy:o.iY+o.BJ,r:o.AI,"stroke-width":0}),o.G&&o.G.G4?o.G.G4[r.id].appendChild(a):r.appendChild(a);else{var p=o.E.imgfill;(l=ZC.Q.F7("image","http://www.w3.org/2000/svg")).setAttributeNS&&l.setAttributeNS("http://www.w3.org/1999/xlink","href",o.DC),o.E["clip-path"]&&ZC.Q.G6(l,{"clip-path":"url(#"+o.E["clip-path"]+(ZC.A5.browser.webkit?"-shape":"")+")"}),ZC.Q.G6(l,{id:o.K+"-imgfill",x:p[1],y:p[2],width:p[0].width,height:p[0].height}),r.appendChild(l)}break;case"plus":case"cross":case"line":case"ic_line":case"arc":o.B1>0&&(ZC.CN.setup(r,o),o.o.spline?(o.D0=!1,o.QU=!0,ZC.CN.paint(r,o,ZC.CN.smooth(o.D,!1,o.o.direction||"h"))):ZC.CN.paint(r,o,o.D));break;default:var Z=o.B9,h=o.B1;o.B9=o.BX,o.B1=o.AU,o.L2(),ZC.CN.setup(r,o),ZC.CN.paint(r,o,o.D,!0,0),o.B9=Z,o.B1=h,o.L2()}},X1:function(e,i){null!==i&&void 0!==i||(i=!1);var t,n=this;if(n.A0!==n.AE||""!==n.GS&&""!==n.HO){var a=""===n.K?"gradient-"+ZC.SEQ++:n.K+"-gradient";if(i&&!ZC.AM(a)&&(i=!1),ZC.AM(a)&&!i&&ZC.A5(a).remove(),t=i?ZC.AM(a):ZC.Q.F7("zcv:fill"),i&&(e=ZC.A5("#"+a).attr("focusposition")),""!==n.GS&&""!==n.HO){for(var l=n.GS.split(/\s+|;/),o=n.HO.split(/\s+|;/),r="",s="",A="",C=0,c=l.length;C0||o.B1>0?a.appendChild(c):a.stroked=!1,a.style.left=o.iX+o.BK-o.AI+"px",a.style.top=o.iY+o.BJ-o.AI+"px",a.style.width=2*o.AI+"px",a.style.height=2*o.AI+"px","arc"===o.DV&&ZC.Q.G6(a,{startangle:o.BL+90,endangle:o.B4+90}),r.appendChild(a),s&&"undefined"!=typeof o.E.imgfill)){var u=o.E.imgfill;1===u.length?((a=ZC.Q.F7("zcv:oval")).id=o.K+"-imgfill",a.style.position="absolute",r.appendChild(a),a.appendChild(u[0]),a.style.left=o.iX+o.BK-o.AI+"px",a.style.top=o.iY+o.BJ-o.AI+"px",a.style.width=2*o.AI+"px",a.style.height=2*o.AI+"px",a.stroked=!1,"arc"===o.DV&&ZC.Q.G6(a,{startangle:o.BL+90,endangle:o.B4+90})):3===u.length&&((l=ZC.Q.F7("img")).id=o.K+"-img",l.src=o.DC,l.style.position="absolute",l.style.left=u[1]+"px",l.style.top=u[2]+"px",1!==o.KY&&(l.width*=o.KY,l.height*=o.KY,l.style.width=l.width+"px",l.style.height=l.height+"px"),r.appendChild(l))}break;case"plus":case"cross":case"line":case"ic_line":o.B1>0&&(ZC.CN.setup(r,o),o.o.spline?(o.D0=!1,o.QU=!0,ZC.CN.paint(r,o,ZC.CN.smooth(o.D,!1,o.o.direction||"h"))):ZC.CN.paint(r,o,o.D));break;default:var p=o.B9,Z=o.B1;o.B9=o.BX,o.B1=o.AU,o.L2(),ZC.CN.setup(r,o),ZC.CN.paint(r,o,o.D,!0,0),o.B9=p,o.B1=Z,o.L2()}}};ZC.DR=ZC.CZ.CC(DR);var HS={$i:function(e){this.b(e);var i=this;i.DV="box",i.I=0,i.F=0,i.A8M="",i.E9=-1,i.E8=-1,i.DU=-1,i.DZ=-1,i.F5=0,i.FW=0,i.F1=0,i.FF=0,i.A74=!1,i.KR=!1,i.EP="bottom",i.EY=0,i.M8=0,i.HA=8,i.GA=8,i.XQ=[1,1],i.DM=null,i.OP=null,i.PX=!1,i.N2=!0,i.PZ="",i.OL="",i.NQ="",i.PB="",i.VF="tl",i.FE=!1},getPMap:function(){var e=this.b();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,F5,FW,F1,FF,KR,EP,DM,HA,GA,EY,M8,A8M,PZ,OL,NQ,PB,FE"),e},build:function(){},wh_:function(e,i,t){var n=this;if(i=i||"w",ZC._f_(e)+""!=e+"")return-1!==(e+="").indexOf("%")?n.wh_(ZC._f_(e.replace("%",""))/100,i,!0):-1!==e.indexOf("px")?n.wh_(ZC._f_(e.replace("px","")),i):n.wh_(ZC._f_(e),i);var a="undefined"!=typeof n.E["p-width"]?n.E["p-width"]:n.A.I,l="undefined"!=typeof n.E["p-height"]?n.E["p-height"]:n.A.F;return(e=ZC._a_(e))>1&&!t?ZC._i_(e):e<=1||t?"w"===i?ZC._i_(a*e):ZC._i_(l*e):void 0},m_:function(e,i,t,n,a){var l,o,r=this;if(t=t||0,n=n||0,i=i||"all",a=a||"n","all"===i){var s=String(e).split(/\s+|;|,/);return 1===s.length?[r.m_(s[0],"tb",t,n,a),r.m_(s[0],"lr",t,n,a),r.m_(s[0],"tb",t,n,a),r.m_(s[0],"lr",t,n,a)]:2===s.length?[r.m_(s[0],"tb",t,n,a),r.m_(s[1],"lr",t,n,a),r.m_(s[0],"tb",t,n,a),r.m_(s[1],"lr",t,n,a)]:3===s.length?[r.m_(s[0],"tb",t,n,a),r.m_(s[1],"lr",t,n,a),r.m_(s[2],"tb",t,n,a),r.m_(s[1],"lr",t,n,a)]:[r.m_(s[0],"tb",t,n,a),r.m_(s[1],"lr",t,n,a),r.m_(s[2],"tb",t,n,a),r.m_(s[3],"lr",t,n,a)]}return e+""=="auto"?-2:e+""=="dynamic"&&"y"===a?"dynamic":ZC._f_(e)+""!=e+""?-1!==(e+="").indexOf("%")?r.m_(ZC._f_(e.replace("%",""))/100,i):-1!==e.indexOf("px")?r.m_(ZC._f_(e.replace("px","")),i):r.m_(ZC._f_(e),i):((r.A||"undefined"!=typeof r.E["p-width"])&&(l="undefined"!=typeof r.E["p-width"]?r.E["p-width"]:r.A.I),(r.A||"undefined"!=typeof r.E["p-height"])&&(o="undefined"!=typeof r.E["p-height"]?r.E["p-height"]:r.A.F),(e=ZC._a_(e))>=1?ZC._i_(e):e<1?"lr"===i?ZC._i_((r.A?l:t)*e):ZC._i_((r.A?o:n)*e):void 0)},copy:function(e){this.b(e);for(var i="I,F,E9,DU,DZ,E8,F5,FW,F1,FF,KR,EP,DM,XQ,HA,GA,EY,M8,A8M,PZ,OL,NQ,PB,FE".split(","),t=0,n=i.length;t1&&!v?ZC._i_(b):-2===Z&&-2===u?ZC._i_(A*b):-2===Z&&-2!==u?ZC._i_((A-u)*b):-2!==Z&&-2===u?ZC._i_((A-Z)*b):ZC._i_((A-Z-u)*b),-1!==o.iX?(o.DZ=o.iX-r,o.E8=r+A-o.DZ-o.I):-2===Z&&-2===u?(o.DZ=o.E8=(A-o.I)/2,o.iX=r+o.DZ):-2===Z&&-2!==u?(o.E8=u,o.DZ=A-o.E8-o.I,o.iX=r+o.DZ):(o.DZ=Z,o.iX=r+o.DZ,o instanceof ZC.DP?o.E8=u:o.E8=A-o.DZ-o.I)}else-1!==o.iX?(o.DZ=o.iX-r,o.E8=-2===u?0:u,o.I=A-o.DZ-o.E8):-2===Z&&-2===u?(o.DZ=o.E8=0,o.iX=r+o.DZ,o.I=A-o.DZ-o.E8):-2===Z&&-2!==u?(o.E8=u,o.DZ=0,o.iX=r+o.DZ,o.I=A-o.DZ-o.E8):-2!==Z&&-2===u?(o.DZ=Z,o instanceof ZC.DP?o.E8=u:o.E8=0,o.iX=r+o.DZ,o.I=A-o.DZ-o.E8):(o.DZ=Z,o.E8=u,o.iX=r+o.DZ,o.I=A-o.DZ-o.E8);if(null!==(i=ZC._n_(o.o.height))){var m=ZC._p_(i);v=-1!==(""+i).indexOf("%"),o.F=m>1&&!v?ZC._i_(m):-2===c&&-2===p?ZC._i_(C*m):-2===c&&-2!==p?ZC._i_((C-p)*m):-2!==c&&-2===p?ZC._i_((C-c)*m):ZC._i_((C-c-p)*m),-1!==o.iY?(o.E9=o.iY-s,o.DU=s+C-o.E9-o.F):-2===c&&-2===p?(o.E9=o.DU=(C-o.F)/2,o.iY=s+o.E9):-2===c&&-2!==p?(o.DU=p,o.E9=C-o.DU-o.F,o.iY=s+o.E9):(o.E9=c,o.iY=s+o.E9,o instanceof ZC.DP?o.DU=p:o.DU=C-o.E9-o.F)}else-1!==o.iY?(o.E9=o.iY-s,o.DU=-2===p?0:p,o.F=C-o.E9-o.DU):-2===c&&-2===c?(o.E9=o.E9=0,o.iY=s+o.E9,o.F=C-o.E9-o.DU):-2===c&&-2!==p?(o.DU=p,o.E9=0,o.iY=s+o.E9,o.F=C-o.E9-o.DU):-2===c&&-2!==p?(o.E9=c,o instanceof ZC.DP?o.DU=p:o.DU=0,o.iY=s+o.E9,o.F=C-o.E9-o.DU):(o.E9=c,o.DU=p,o.iY=s+o.E9,o.F=C-o.E9-o.DU);if(null!==(i=ZC._n_(o.o.position))){if(o.A&&"undefined"!=typeof o.A.iX&&"undefined"!=typeof o.A.iY&&"undefined"!=typeof o.A.I&&"undefined"!=typeof o.A.F){switch(n=0,a=0,(l=String(i).split(/\s+/))[0]){case"left":n=0;break;case"right":n=1;break;case"center":n=.5;break;default:(n=ZC.IM(l[0]))>1&&(n/=o.A.I)}switch(l[1]){case"top":a=0;break;case"bottom":a=1;break;case"middle":a=.5;break;default:(a=ZC.IM(l[1]))>1&&(a/=o.A.F)}}o.E["position-info"]=[n,a],o.iX=o.A.iX+ZC._i_(n*(o.A.I-o.I-B[1]-B[3]))+B[3],o.iY=o.A.iY+ZC._i_(a*(o.A.F-o.F-B[0]-B[2]))+B[0]}o.D2=[o.iX,o.iY,o.iX+o.I,o.iY+o.F]}}},parse:function(){this.b();var e,i=this;if(!i.o.tween){if(i.assign_a([["anchor","VF"],["rect-shortcut","FE","b"],["center-ref","A74","b"],["callout","KR","b"],["callout-type","ACN"],["callout-position","EP"],["callout-hook","DM"],["callout-ratio","XQ"],["callout-width","HA","i"],["callout-height","GA","i"],["callout-offset","EY","i"],["callout-extension","M8","i"],["border-top","PZ"],["border-right","OL"],["border-bottom","NQ"],["border-left","PB"]]),null!==(e=ZC._n_(i.o["border-radius"]))){var t=String(e).split(/\s+|;|,/);2===t.length?(i.F5=i.FW=ZC._i_(t[0]),i.F1=i.FF=ZC._i_(t[1])):4===t.length?(i.F5=ZC._i_(t[0]),i.FW=ZC._i_(t[1]),i.F1=ZC._i_(t[2]),i.FF=ZC._i_(t[3])):i.F5=i.FW=i.F1=i.FF=ZC._i_(t[0])}null!==ZC._n_(i.o["callout-tip"])&&(i.OP=new ZC.DR(i.A)),i.assign_a([["border-radius-top-left","F5","i"],["border-radius-top-right","FW","i"],["border-radius-bottom-right","F1","i"],["border-radius-bottom-left","FF","i"]])}},WZ:function(e){var i=e.split(/\s/);return i[0]=ZC._i_(i[0]),i[2]=ZC.AP.GD(i[2]),i},paint:function(){var e=this;if(null!==e.DM&&!(e.DM instanceof Array)&&"zcgraph"===e.A.OF){var i=e.A.V7(e.DM);e.DM=[i[0],i[1]],e.DM[0]-=e.BK,e.DM[1]-=e.BJ}if(e.A74&&(e.iX-=e.I/2,e.iY-=e.F/2),"-1"!==e.BX&&0!==e.AU||e.PZ+e.OL+e.NQ+e.PB!==""||"-1"!==e.A0||"-1"!==e.AE||""!==e.DC||""!==e.GS||""!==e.HO){var t,n=e.G.AD;e.MD&&e.C7&&e.AA7();var a={x:"iX",y:"iY",width:"I",height:"F"};if(e.o["bottom-state"]&&!e.YA&&!e.bIsBottom&&!e.W1){var l=new ZC.HS(e.A);for(t in l.copy(e),l.bIsBottom=!0,l.MD=!1,l.Z=e.Z,l.VF=e.VF,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,a)null===ZC._n_(l.o[t])||-1===(""+l.o[t]).indexOf("+")&&-1===(""+l.o[t]).indexOf("-")||(l[a[t]]=e[a[t]]+ZC._i_(l.o[t]),!0);l.paint()}if(e.PZ+e.OL+e.NQ+e.PB===""){switch(n){case"canvas":e.A1S();break;case"svg":e.WH();break;case"vml":e.WG()}if(e.KR&&e.OP){var o,r;if(e.DM&&2===e.DM.length?(o=e.DM[0],r=e.DM[1]):e.E.cp&&(o=e.E.cp[0],r=e.E.cp[1]),e.OP.Z=e.OP.C7=e.Z,e.OP.copy(e),e.OP.append(e.o["callout-tip"]),e.OP.K=e.K+"-callout-tip",e.OP.o.x=o,e.OP.o.y=r,e.E.cm){var s=e.E.cm[0],A=e.E.cm[1],C=Math.atan2(ZC._i_(A)-ZC._i_(r),ZC._i_(s)-ZC._i_(o));isNaN(C)&&(C=0),null===ZC._n_(e.OP.o.angle)&&(e.OP.o.angle=ZC.U3(C))}e.OP.parse(),e.OP.paint()}}else{var c=e.AU,u=e.BX,p=e.GE;switch(e.AU=0,n){case"canvas":e.A1S();break;case"svg":e.WH();break;case"vml":e.WG()}e.AU=c;var Z=e.A0,h=e.AE;e.A0=e.AE="-1";for(var d,f=["top","right","bottom","left"],_=["PZ","OL","NQ","PB"],g=0;g=t.F?ZC._a_(ZC.EK(t.NB))>.5?t.F/2:t.I/2:ZC._a_(ZC.EE(t.NB))>.5?t.I/2:t.F/2)*ZC.EE(t.NB),u=i*ZC.EK(t.NB);return{x1:l-c,y1:o-u,x2:l+c,y2:o+u}}},WI:function(e){var i,t=this;void 0===e&&(e="all");var n,a,l=t.iX,o=t.iY;t.D=[],n=a=t.AU/2;var r=1;switch(t.G.AD){case"vml":r=2,t.AU%2==1&&(n=ZC._i_((t.AU-1)/2),a=ZC._i_((t.AU+1)/2))}var s=null,A=ZC._x_(l+n,2),C=ZC._x_(l-a,2),c=ZC._x_(o+n,2),u=ZC._x_(o-a,2),p=t.DM&&2===t.DM.length,Z=ZC._i_(t.EY*(t.I-t.HA)/100),h=ZC._i_(t.EY*(t.F-t.GA)/100),d=0!==t.F5||0!==t.FW||0!==t.F1||0!==t.FF,f=t.XQ[0],_=t.XQ[1];switch(t.EP){case"top":t.E.cm=[t.iX+t.I/2+Z,t.iY];break;case"bottom":t.E.cm=[t.iX+t.I/2+Z,t.iY+t.F];break;case"left":t.E.cm=[t.iX,t.iY+t.F/2+h];break;case"right":t.E.cm=[t.iX+t.I,t.iY+t.F/2+h]}if(d){var g,v=ZC.CY(t.I/2,t.F/2);"top"!==e&&"all"!==e||(0!==t.F5?(g=t.I/2>=t.F5&&t.F/2>=t.F5?ZC._a_(t.F5):v,t.D.push([A,c+g]),t.F5>0&&t.D.push([A,c,A+r*g,c]),t.D.push([A+g,c])):t.D.push([A,c]),t.KR&&"top"===t.EP&&(t.D.push([A+t.I/2-f*t.HA/2-t.AU/2+Z,c]),p?t.D.push([t.DM[0],t.DM[1]]):(s=[A+t.I/2-t.AU/2+Z,c-t.GA],t.D.push(s)),t.M8>0&&(i=t.D[t.D.length-1],t.D.push([i[0],i[1]-t.M8*(t.GA>0?1:-1)]),t.D.push([i[0],i[1]])),t.D.push([A+t.I/2-t.AU/2+_*t.HA/2+Z,c])),"top"===e&&(0!==t.FW?(g=t.I/2>=t.FW&&t.F/2>=t.FW?ZC._a_(t.FW):v,t.D.push([C+t.I-g,c])):t.D.push([C+t.I,c]))),"right"!==e&&"all"!==e||(0!==t.FW?(g=t.I/2>=t.FW&&t.F/2>=t.FW?ZC._a_(t.FW):v,t.D.push([C+t.I-g,c]),t.FW>0?t.D.push([C+t.I,c,C+t.I,c+r*g]):t.D.push([C+t.I,c+g])):t.D.push([C+t.I,c]),t.KR&&"right"===t.EP&&(t.D.push([C+t.I,c+t.F/2-f*t.GA/2-t.AU/2+h]),p?t.D.push([t.DM[0],t.DM[1]]):(s=[C+t.I+t.HA,c+t.F/2-t.AU/2+h],t.D.push(s)),t.D.push([C+t.I,c+t.F/2+_*t.GA/2-t.AU/2+h])),"right"===e&&(0!==t.F1?(g=t.I/2>=t.F1&&t.F/2>=t.F1?ZC._a_(t.F1):v,t.D.push([C+t.I,u+t.F-g])):t.D.push([C+t.I,u+t.F]))),"bottom"!==e&&"all"!==e||(0!==t.F1?(g=t.I/2>=t.F1&&t.F/2>=t.F1?ZC._a_(t.F1):v,t.D.push([C+t.I,u+t.F-g]),t.F1>0?t.D.push([C+t.I,u+t.F,C+t.I-r*g,u+t.F]):t.D.push([C+t.I-g,u+t.F])):t.D.push([C+t.I,u+t.F]),t.KR&&"bottom"===t.EP&&(t.D.push([C+t.I/2+f*t.HA/2+t.AU/2+Z,u+t.F]),p?t.D.push([t.DM[0],t.DM[1]]):(s=[C+t.I/2+t.AU/2+Z,u+t.F+t.GA],t.D.push(s)),t.M8>0&&(i=t.D[t.D.length-1],t.D.push([i[0],i[1]+t.M8*(t.GA>0?1:-1)]),t.D.push([i[0],i[1]])),t.D.push([C+t.I/2-_*t.HA/2+t.AU/2+Z,u+t.F])),"bottom"===e&&(0!==t.FF?(g=t.I/2>=t.FF&&t.F/2>=t.FF?ZC._a_(t.FF):v,t.D.push([A+g,u+t.F])):t.D.push([A,u+t.F]))),"left"!==e&&"all"!==e||(0!==t.FF?(g=t.I/2>=t.FF&&t.F/2>=t.FF?ZC._a_(t.FF):v,t.D.push([A+g,u+t.F]),t.FF>0?t.D.push([A,u+t.F,A,u+t.F-r*g]):t.D.push([A,u+t.F-g])):t.D.push([A,u+t.F]),t.KR&&"left"===t.EP&&(t.D.push([A,u+t.F/2+f*t.GA/2+t.AU/2+h]),p?t.D.push([t.DM[0],t.DM[1]]):(s=[A-t.HA,u+t.F/2+t.AU/2+h],t.D.push(s)),t.D.push([A,u+t.F/2-_*t.GA/2+t.AU/2+h])),0!==t.F5?(g=t.I/2>=t.F5&&t.F/2>=t.F5?ZC._a_(t.F5):v,t.D.push([A,c+g])):(t.D.push([A,c]),t.D.push([A+.1,c])))}else"top"!==e&&"all"!==e||("top"===e?t.D.push([A+.5,c+.5]):t.D.push([A,c]),t.KR&&"top"===t.EP&&(t.D.push([A+t.I/2-f*t.HA/2-t.AU/2+Z,c]),p?t.D.push([t.DM[0],t.DM[1]]):(s=[A+t.I/2-t.AU/2+Z,c-t.GA],t.D.push(s)),t.M8>0&&(i=t.D[t.D.length-1],t.D.push([i[0],i[1]-t.M8*(t.GA>0?1:-1)]),t.D.push([i[0],i[1]])),t.D.push([A+t.I/2+_*t.HA/2-t.AU/2+Z,c])),"top"===e&&t.D.push([C+t.I+.5,c+.5])),"right"!==e&&"all"!==e||("right"===e?t.D.push([C+t.I+.5,c+.5]):t.D.push([C+t.I,c]),t.KR&&"right"===t.EP&&(t.D.push([C+t.I,c+t.F/2-t.AU/2-f*t.GA/2+h]),p?t.D.push([t.DM[0],t.DM[1]]):(s=[C+t.I+t.HA,c+t.F/2-t.AU/2+h],t.D.push(s)),t.D.push([C+t.I,c+t.F/2-t.AU/2+_*t.GA/2+h])),"right"===e&&t.D.push([C+t.I+.5,u+t.F+.5])),"bottom"!==e&&"all"!==e||("bottom"===e?t.D.push([C+t.I+.5,u+t.F+.5]):t.D.push([C+t.I,u+t.F]),t.KR&&"bottom"===t.EP&&(t.D.push([C+t.I/2+f*t.HA/2+t.AU/2+Z,u+t.F]),p?t.D.push([t.DM[0],t.DM[1]]):(s=[C+t.I/2+t.AU/2+Z,u+t.F+t.GA],t.D.push(s)),t.M8>0&&(i=t.D[t.D.length-1],t.D.push([i[0],i[1]+t.M8*(t.GA>0?1:-1)]),t.D.push([i[0],i[1]])),t.D.push([C+t.I/2-_*t.HA/2+t.AU/2+Z,u+t.F])),"bottom"===e&&t.D.push([A+.5,u+t.F+.5])),"left"!==e&&"all"!==e||("left"===e?t.D.push([A+.5,u+t.F+.5]):t.D.push([A,u+t.F]),t.KR&&"left"===t.EP&&(t.D.push([A,u+t.F/2+t.AU/2+f*t.GA/2+h]),p?t.D.push([t.DM[0],t.DM[1]]):(s=[A-t.HA,u+t.F/2+t.AU/2+h],t.D.push(s)),t.D.push([A,u+t.F/2+t.AU/2-_*t.GA/2+h])),"left"===e?t.D.push([A+.5,c+.5]):(t.D.push([A,c]),t.D.push([A+.1,c])));s&&(t.E.cp=s)},A1S:function(e){e=e||"all";var i,t,n,a=this;if(a.Z){var l=a.Z.getContext("2d");l.save(),l.globalCompositeOperation=a.A0Z;var o=a.iX,r=a.iY,s=a.A1U(),A=s.bc,C=s.bgc1,c=s.bgc2;if("all"===e)if(C!==c||""!==a.GS&&""!==a.HO){var u=a.YF(a.NJ);"radial"===a.NJ?i=l.createRadialGradient(u.cx,u.cy,1,u.cx,u.cy,u.r):"linear"===a.NJ&&(u.x1=isNaN(u.x1)?0:u.x1,u.x2=isNaN(u.x2)?0:u.x2,u.y1=isNaN(u.y1)?0:u.y1,u.y2=isNaN(u.y2)?0:u.y2,i=l.createLinearGradient(u.x1,u.y1,u.x2,u.y2)),""!==a.GS&&""!==a.HO?a.ZT(i):(i.addColorStop(0,C),i.addColorStop(1,c)),l.fillStyle=i}else""!==a.DC&&-1!==ZC.AV(["repeat","true",!0],a.M7)&&"-1"===a.A0&&"-1"===a.AE&&(C="rgba(255,255,255,0)"),l.fillStyle=C;l.strokeStyle=A,l.lineWidth=a.AU,l.translate(a.BK,a.BJ),0!==a.AA&&(l.translate(o+a.I/2,r+a.F/2),l.rotate(ZC.TC(a.AA)),l.translate(-(o+a.I/2),-(r+a.F/2))),l.beginPath(),a.WI(e);var p=a.F5+a.FW+a.F1+a.FF!==0;n=a.B1,a.B1=a.AU;var Z=a.GE;if(a.GE="",a.L2(),ZC.CN.contour(l,a,a.D),a.B1=n,a.GE=Z,a.L2(),"all"===e)if(""!==a.DC&&-1===ZC.AV(ZC.IMG404,a.DC)){l.fill(),l.save(),l.clip();var h=l.globalAlpha;l.globalAlpha=a.C5;var d=a.RK(),f=d.image;switch(a.M7){default:l.translate(a.iX,a.iY),t=l.createPattern(f,"repeat"),l.fillStyle=t,l.fill(),l.translate(-d.x,-d.y);break;case"no-repeat":case"false":case!1:l.drawImage(f,d.x-a.BK,d.y-a.BJ,a.E["bg-image-width"],a.E["bg-image-height"])}l.globalAlpha=h,l.restore()}else l.fill();if(a.AU>0){var _=a.B9;n=a.B1,a.B9=a.BX,a.B1=a.AU,a.L2(),ZC.CN.setup(l,a),a.T5=p?"round":"square",a.EU+a.G3>0&&(a.T5="butt"),a.A00=p?"round":"miter",a.E["skip-top"]=!0,a.E.border=e,ZC.CN.paint(l,a,a.D,!0),a.B9=_,a.B1=n,a.L2()}l.closePath(),l.restore()}},WH:function(e){e=e||"all";var i=this,t=i.Z;i.E.fill=-1;var n=!1;if("all"===e){if(""!==i.DC&&-1===ZC.AV(ZC.IMG404,i.DC)){var a=i.RK();i.A2R({info:a,x:i.iX,y:i.iY}),n=!0}i.X0()}if(i.WI(e),n&&"repeat"!==i.M7&&i.KR){var l=0,o=0;i.D2[1]0&&(i.T5="butt"),i.A00=r?"round":"miter";var C=!1;ZC.A5.browser.msie||!i.FE||i.KR||""!==i.PZ||""!==i.OL||""!==i.NQ||""!==i.PB||0!==i.F5||0!==i.FW||0!==i.F1||0!==i.FF||(C=!0),i.E["skip-top"]=!0,i.E.border=e,ZC.CN.paint(t,i,i.D,!0,null,C),i.B9=s,i.B1=A,i.L2()},WG:function(e){e=e||"all";var i=this,t=i.Z;if("all"===e){var n=ZC.Q.F7("zcv:fill");if(""!==i.DC&&-1===ZC.AV(ZC.IMG404,i.DC)){var a=i.RK(),l=a.image;switch(i.M7){default:n.type="tile",n.src=i.DC,ZC.Q.G6(n,{position:a.cx+","+a.cy,opacity:i.C5,"o:opacity2":i.C5}),i.E.imgfill=[n];break;case"no-repeat":case"false":case!1:i.E.imgfill=[l,a.x,a.y]}}i.X1("0.5,0.5")}var o=ZC.Q.F7("zcv:stroke");switch(o.weight=i.AU+"px",o.color=i.BX,o.opacity=i.C5,i.GE){case"solid":o.dashstyle="solid";break;case"dotted":o.dashstyle="dot";break;case"dashed":o.dashstyle="dash"}i.E.stroke=o,i.WI(e);var r=i.F5+i.FW+i.F1+i.FF!==0;i.E.cx=i.iX+i.I/2,i.E.cy=i.iY+i.F/2;var s=i.B9,A=i.B1;i.B9=i.BX,i.B1=i.AU,i.L2(),ZC.CN.setup(t,i),i.T5=r?"round":"square",i.EU+i.G3>0&&(i.T5="butt"),i.A00=r?"round":"miter",i.E.border=e,ZC.CN.paint(t,i,i.D,"all"===e),i.B9=s,i.B1=A,i.L2()}};ZC.HS=ZC.DR.CC(HS);var P6={$i:function(e){this.b(e);var i=this;i.WR=null,i.BH=null,i.M=null,i.SM=null,i.A7=null,i.KC=!1,i.O9=!1,i.L4=!1,i.A68=!1},parse:function(){var e,i=this;i.BH=zingchart.pool.getInstance("box"===i.WR.type?"HS":"DR",i.A,i.K+"-shape",i.WR.tween),i.BH.append(i.WR),i.BH.iX=i.iX,i.BH.iY=i.iY,i.BH.K=i.K+"-gshape",i.BH.O9=i.O9,i.A68||null===ZC._n_(e=i.BH.o.points)||(i.BH.o.points=ZC.AP.A5N(e,i.A.iX,i.A.iY),i.A68=!0),i.BH.parse(),null!==ZC._n_(e=i.BH.o.label)&&null!==ZC._n_(e.text)&&""!==e.text&&("undefined"==typeof e.visible||ZC._b_(e.visible))&&(i.M=zingchart.pool.getInstance("DP",i,i.A.K+"-shape-label-"+i.H7,ZC.objmove),ZC.objmove||i.M.append(e)),null!==ZC._n_(e=i.BH.o["static"])&&(i.KC=ZC._b_(e)),null!==ZC._n_(e=i.BH.o.flat)&&(i.KC=ZC._b_(e)),null!==ZC._n_(e=i.BH.o.dynamic)&&(i.L4=ZC._b_(e)),null!==ZC._n_(e=i.BH.o.connector)&&(i.SM=new ZC.DR(i),i.SM.append(e),i.SM.parse())},paint:function(){var e,i=this;if(i.BH.Z=i.Z,i.BH.C7=i.C7,i.BH.locate(2),i.BH.W1=!1,"box"===i.BH.o.type&&(i.iX-=i.BH.I/2,i.iY-=i.BH.F/2,i.BH.iX-=i.BH.I/2,i.BH.iY-=i.BH.F/2),i.BH.paint(),i.M){if(i.M.Z=i.M.C7=i.Z,i.M.IO=ZC.AM(i.A.A.K+"-text"),i.M.K=i.A.K+"-shape-label-"+i.H7,i.M.GM=i.A.K+"-shape-label zc-shape-label",i.M.o.anchor=i.M.o.anchor||"c",!i.WR["map-item"])switch(i.DV){default:i.M.o.x=i.iX,i.M.o.y=i.iY;break;case"line":case"poly":case"rect":case"rectangle":i.M.o.x=ZC._i_((i.BH.D2[0]+i.BH.D2[2])/2),i.M.o.y=ZC._i_((i.BH.D2[1]+i.BH.D2[3])/2)}if(ZC.objmove||i.M.parse(),i.M.iX=i.M.iX+i.BH.BK,i.M.iY=i.M.iY+i.BH.BJ,i.M.AO){if(i.SM&&i.SM.D.length>0){if(!ZC.AM(i.A.K+"-objects-front")){var t=i.A.A.I+"/"+i.A.A.F;ZC.Q.K3({cls:"zc-abs",wh:t,id:i.A.K+"-objects-front",p:ZC.AM(i.A.A.K+"-objects-front")},i.A.A.AD),ZC.Q.HJ({cls:"zc-abs zc-layer",id:i.A.K+"-objects-front-c",p:ZC.AM(i.A.K+"-objects-front"),wh:t},i.A.A.AD)}var n=i.SM.D,a=i.SM.o.anchor||"",l=n[n.length-1];switch(a){case"l":i.M.iX=l[0]+i.BH.BK,i.M.iY=l[1]-i.M.F/2+i.BH.BJ;break;case"r":i.M.iX=l[0]-i.M.I+i.BH.BK,i.M.iY=l[1]-i.M.F/2+i.BH.BJ;break;case"t":i.M.iX=l[0]-i.M.I/2+i.BH.BK,i.M.iY=l[1]+i.BH.BJ;break;case"b":i.M.iX=l[0]-i.M.I/2+i.BH.BK,i.M.iY=l[1]-i.M.F+i.BH.BJ;break;default:i.M.iX=l[0]-i.M.I/2+i.BH.BK,i.M.iY=l[1]-i.M.F/2+i.BH.BJ}e=ZC.Q.ED(ZC.AM(i.A.K+"-objects-front-c"),i.A.G.AD),ZC.CN.setup(e,i.SM),ZC.CN.paint(e,i.SM,n)}if(i.M.W1=!1,i.WR["map-item"]&&(i.M.GM=i.A.K+"-mapshape-label zc-mapshape-label",i.M.iXi.A.iX+i.A.I||i.M.iYi.A.iY+i.A.F))return;i.M.paint(),i.E["print-canvas"]?i.M.EO(ZC.AM(i.E["print-canvas"])):i.M.EO()}}}};ZC.P6=ZC.DR.CC(P6);var DP={$i:function(e){this.b(e);var i=this;i.IO=null,i.GM="",i.AN=null,i.OB="center",i.K0="middle",i.DH=zingchart.FONTSIZE,i.GI=zingchart.FONTFAMILY,i.C2="#000",i.A97=!1,i.N3=!1,i.QP=!1,i.KD="none",i.sFontWeight="normal",i.Y9=0,i.FJ=2,i.FO=2,i.FX=2,i.ER=2,i.A8O=!1,i.A25=!1,i.FL=-1,i.KF=0,i.NM=0,i.OQ=ZC.MAX,i.bRTL=!1,i.A1K=!0,i.UY=zingchart.FASTWIDTH,i.A69=1.65,i.V1=1,i.VT=!1,i.A7=null,i.VA=!1,i.A4V=!1},getPMap:function(){var e=this.b();return this.addPMap(e,"textAlign,verticalAlign,fontSize,fontFamily,color,bold,fontWeight,italic,underline,textDecoration,paddingTop,paddingRight,paddingBottom,paddingLeft,text","OB,K0,DH,GI,C2,A97,sFontWeight,N3,QP,KD,FJ,FO,FX,ER,AN"),e},copy:function(e){this.b(e);for(var i="OB,K0,DH,GI,C2,A97,sFontWeight,N3,KD,QP,FJ,FO,FX,ER,AN".split(","),t=0,n=i.length;t]+)>)/gi,"").length*i.DH/(i.A69*(i.isBold(i.sFontWeight)?.87:1)*(i.N3?.95:1));var t="";return"undefined"!=typeof i.o["html-mode"]&&ZC._b_(i.o["html-mode"])&&(t="[HTMLMODE]"),ZC.Q.A49(this.G.K,t+e,this.GI,this.DH,this.sFontWeight,this.FL)},parse:function(){this.I=this.F=this.NM=this.KF=0,this.b();var e,i,t,n,a,l=this;if(!l.o.tween){if(l.YE("text","AN"),null!==ZC._n_(l.AN)&&(l.AN=""+l.AN,l.AN=l.JZ(l.AN),l.AN=l.AN.replace(/\n/g,"
").replace(/\\n/g,"
"),"svg"===l.G.AD&&(l.AN=l.AN.replace(/ /g," ")),l.AN=l.AN.replace(/0&&l.AN.length>l.Y9&&(l.AN=l.AN.substring(0,l.Y9)+"...");var r=l.AN.split(/
||
|\n/),s="";"undefined"!=typeof l.o["html-mode"]&&ZC._b_(l.o["html-mode"])&&(r=[l.AN],s="[HTMLMODE]");r.length;for(l.UY?l.KF=1.65*this.DH:l.KF=ZC.Q.A49(this.G.K,s+l.AN,this.GI,this.DH,this.sFontWeight,this.FL,!0)+l.FJ+l.FX,t=0,n=r.length;tl.I&&!l.E.wrapped&&l.I>2*l.DH){var A,C="",c=0,u=l.AN.replace(/
/gi," [##] ").split(/\s|
/),p=[];for(t=0,n=u.length;t.9*l.I){var Z=Math.ceil(A/l.I*.9),h=Math.ceil(u[t].length/Z);for(a=0;a",c=0):(c+=A=1+l.cwidth(p[t]+" "))>.9*l.I?(t>0&&(C+="
"),C+=p[t]+" ",c=A):C+=p[t]+" ");C=(C=C.replace(/

/g,"
").replace(/

/g,"
")).replace(/(.+?)
$/g,"$1");var d=l.o.text;l.o.text=C,l.E.wrapped=!0,l.parse(),l.o.text=d,l.E.wrapped=!1}if("canvas"!==l.G.AD&&(l.AN=l.AN.replace(/</g,"<").replace(/>/g,">")),!(null!==ZC._n_(l.o.width)&&null!==ZC._n_(l.o.height)||null===ZC._n_(l.o.position)&&null===ZC._n_(l.o.margin)&&null===ZC._n_(l.o["margin-top"])&&null===ZC._n_(l.o["margin-right"])&&null===ZC._n_(l.o["margin-bottom"])&&null===ZC._n_(l.o["margin-left"]))){l.iX=-1,l.iY=-1;var f=l.o.width,_=l.o.height;null===ZC._n_(f)&&(l.o.width=l.I),null===ZC._n_(_)&&(l.o.height=l.F),l.locate(),l.o.width=f,l.o.height=_}if("undefined"==typeof l.o["html-mode"]||!l.o["html-mode"]){var g=Math.ceil((l.NM-l.ER-l.FO)/l.DH);g>0&&(l.AN=l.AN.replace(/
/g,new Array(g).join("\u2014")))}}l.setAnchor()},paint:function(){var e,i,t,n,a,l,o,r,s,A,C,c=this;if(!c.VT&&!c.A1K){var u=!0;null!==ZC._n_(c.o.flexible)&&(u=ZC._b_(c.o.flexible));var p,Z,h={x:c.iX+c.ER-1,y:c.iY+c.FJ-1,width:c.I-c.ER-c.FO+2,height:c.F-c.FJ-c.FX+2,type:c.E.lbltype||""},d=[[0,0]];for(u&&(d=[[0,0],[0,2],[0,-4],[0,4],[0,-8],[3,0],[-6,0],[5,0],[-10,0]]),Z=0;Z||
|\n/)),g&&!v&&"svg"===f&&"0"===_&&(_="0html");var V=c.IO?c.IO:c.Z.parentNode;switch(f+_){case"canvas0":case"vml0":case"svg0html":if(n=1,!g)switch(c.K0){case"middle":n+=(c.F-c.KF)/2;break;case"bottom":n+=c.F-c.KF}if(o=ZC.Q.I4({id:c.K,cls:c.GM,tl:ZC._x_(c.iY+c.BJ)+"/"+ZC._x_(c.iX+c.BK),wh:c.I+"/"+c.F,position:"absolute",padding:0,margin:0,overflow:g?"visible":"hidden",textAlign:c.OB}),g&&(v||f+_!=="svg0html"||(V=ZC.AM(c.G.K+"-top")),V.appendChild(o)),ZC.Q.I4({id:c.K+"-t",cls:""!==c.GM?c.GM+"-t":"",p:o,width:c.I-c.ER-c.FO,height:g?null:c.KF-c.FJ-c.FX,tl:n+"/0",html:c.AN+"",position:"absolute",whiteSpace:"nowrap",opacity:c.V1,color:c.C2,fontWeight:c.sFontWeight,fontStyle:c.N3?"oblique":"normal",textDecoration:c.KD,fontSize:c.DH,fontFamily:c.GI,marginTop:c.FJ,marginRight:c.FO,marginBottom:c.FX,marginLeft:c.ER,verticalAlign:c.K0,textAlign:c.OB,lineHeight:-1===c.FL?"125%":c.FL+"px",rtl:c.bRTL,padding:0}),c.E["css-display"]&&(o.style.display=c.E["css-display"],c.E["css-display"]=null),v&&c.G&&c.G.A7&&!c.o.width&&!c.o.height){var J=ZC.A5("#"+c.K+"-t");"canvas"===f&&(ZC.AM(c.G.K+"-tooltip-c").width=J.width()+c.ER+c.FO,ZC.AM(c.G.K+"-tooltip-c").height=J.height()+c.FJ+c.FX),c.G.A7.clear(),c.I=J.width()+c.ER+c.FO,c.F=J.height()+c.FJ+c.FX,c.paint()}break;case"canvas":var T=!1;if(ZC.A5.browser.opera&&c.AA%90==0&&0!==c.AA&&(c.AA+=.5,T=!0),e=c.Z.getContext("2d"),zingchart.DEV.CACHECANVASTEXT&&(ZC.CanvasCache||(ZC.CanvasCache={})),!zingchart.DEV.CACHECANVASTEXT||zingchart.DEV.CACHECANVASTEXT&&!ZC.CanvasCache[c.K]){for(zingchart.DEV.CACHECANVASTEXT&&(ZC.CanvasCache[c.K]=document.createElement("canvas"),ZC.CanvasCache[c.K].width=c.NM,ZC.CanvasCache[c.K].height=c.KF),B=-1===c.FL?0:ZC._x_(c.FL-1.25*c.DH)/2,a=0,l=Q.length;a/gi,"").replace(/<\/.+?>/gi,""),t=0,n=0,c.OB){case"center":t+=(c.I-i)/2;break;case"right":t+=c.I-i}switch(c.K0){case"middle":n+=(c.F-c.KF)/2;break;case"bottom":n+=c.F-c.KF}if(E=0,b!==m){for(;F=/<(.+?)>(.*?)<\/(.+?)>/.exec(b);){switch(K="",x="",(A=/(.+?)style=(.+?)(\'|")(.*?)/.exec(F[1]))&&(x=A[2].replace(/\'|"/g,"")),F[3]){case"b":case"strong":K="font-weight:bold";break;case"i":case"em":K="font-style:italic";break;case"u":K="text-decoration:underline"}y='[[span style="'+(""===K?"":K+";")+x+'"]]'+F[2]+"[[/span]]",b=b.replace(F[0],y)}for(w=!1,S=0,N=(F=(b=b.replace(/\[\[/g,"<").replace(/\]\]/g,">").replace(//g,"[[*]]")).split("[[*]]")).length;S(.+?)<\/(.+?)>/.exec(F[S]))for(D=C[2],k=0,z=(I=C[1].replace(/\'|"/g,"").split(/;|:/)).length;k||
/gi,"\n").replace(/<.+?>/gi,"").replace(/<\/.+?>/gi,"");ZC.Q.G6(ae,{on:!0,string:le}),ZC.Q.PO(ae,{color:r,fontWeight:c.sFontWeight,fontStyle:c.N3?"oblique":"normal",textDecoration:c.KD,fontSize:c.DH+"px",fontFamily:c.GI,"v-text-align":c.OB}),R.appendChild(ae),e.appendChild(R);break;case"svg":case"svg0":var oe=c.iX+c.ER+c.BK,re=c.iY+c.FJ+c.BJ;if(o=ZC.Q.F7("text","http://www.w3.org/2000/svg"),ZC.Q.G6(o,{x:ZC._x_(oe),y:ZC._x_(re),id:c.K,"class":c.GM,opacity:c.V1}),c.E["css-display"]&&(o.style.display=c.E["css-display"],c.E["css-display"]=null),c.bRTL&&ZC.Q.G6(o,{"text-anchor":ZC.A5.browser.msie?"":"end","writing-mode":"rl",direction:"rtl","unicode-bidi":"bidi-override"}),c.A8O&&(c.G.KA.appendChild(ZC.Q.XM({id:c.K+"-clip",path:[[c.iX+c.ER+c.AU+c.BK,c.iY+c.FJ+c.AU+c.BJ].join(","),[c.iX+c.I-c.FO-c.AU+c.BK,c.iY+c.FJ+c.AU+c.BJ].join(","),[c.iX+c.I-c.FO-c.AU+c.BK,c.iY+c.F-c.FX-c.AU+c.BJ].join(","),[c.iX+c.ER+c.AU+c.BK,c.iY+c.F-c.FX-c.AU+c.BJ].join(","),[c.iX+c.ER+c.AU+c.BK,c.iY+c.FJ+c.AU+c.BJ].join(",")].join(" ")})),ZC.Q.G6(o,{"clip-path":"url(#"+c.K+"-clip)"})),c.AA%360!=0&&o.setAttribute("transform","rotate("+c.AA+" "+(oe+(c.I-c.ER-c.FO)/2)+" "+(re+(c.F-c.FJ-c.FX)/2)+")"),g&&V.appendChild(o),g){ZC.Q.EW(c.K+"-float");var se=ZC.Q.F7("div");ZC.Q.PO(se,{position:"absolute",left:0,top:0,width:c.I-c.ER-c.FO+"px",height:c.F-c.FJ-c.FX+"px",color:c.C2,fontSize:c.DH+"px",fontFamily:c.GI,fontWeight:c.sFontWeight,textDecoration:c.KD,textAlign:c.OB,fontStyle:c.N3?"italic":"normal"}),se.id=c.K+"-float",se.className="zc-style zc-html-mode",se.innerHTML=Q[0],1===c.o["z-index"]?ZC.AM(c.G.K+"-top").append(se):ZC.AM(c.G.K+"-top").insertBefore(se,ZC.AM(c.G.K+"-img")),v&&c.G&&c.G.A7&&(c.o.width||c.o.height||(c.G.A7.clear(),se.style.width="",se.style.height="",c.I=ZC.A5(se).width()+c.ER+c.FO,c.F=ZC.A5(se).height()+c.FJ+c.FX,c.paint()))}else for(B=-1===c.FL?0:ZC._x_(c.FL-1.25*c.DH)/2,a=0,l=Q.length;a/gi,"").replace(/<\/.+?>/gi,""),t=0,n=c.DH,c.OB){case"center":t=(c.I-i)/2;break;case"right":t=c.I-i}switch(c.K0){case"middle":n+=(c.F-c.KF)/2;break;case"bottom":n+=c.F-c.KF}if(E=0,b!==m){for(;F=/<(.+?)>(.*?)<\/(.+?)>/.exec(b);){switch(K="",x="",(A=/(.+?)style=(.+?)(\'|")(.*?)/.exec(F[1]))&&(x=A[2].replace(/\'|"/g,"")),F[3]){case"b":case"strong":K="font-weight:bold";break;case"i":case"em":K="font-style:italic";break;case"u":K="text-decoration:underline"}y='[[span style="'+(""===K?"":K+";")+x+'"]]'+F[2]+"[[/span]]",b=b.replace(F[0],y)}for(w=!1,S=0,N=(F=(b=b.replace(/\[\[/g,"<").replace(/\]\]/g,">").replace(//g,"[[*]]")).split("[[*]]")).length;S(.+?)<\/(.+?)>/.exec(F[S]))for(D=C[2],k=0,z=(I=C[1].replace(/\'|"/g,"").split(/;|:/)).length;k")?Ae.innerText=D:Ae.innerHTML=D,D=Ae.innerText||Ae.textContent,Ae=null,s.textContent=D,o.appendChild(s),w=Y,E++}}else c.bRTL&&ZC.A5.browser.msie&&(t+=i-c.ER-c.FO),s=ZC.Q.F7("tspan","http://www.w3.org/2000/svg"),ZC.Q.G6(s,{x:ZC._x_(oe+t),y:ZC._x_(re+n),color:c.C2,fill:c.C2,dy:ZC._x_(B)}),ZC.Q.PO(s,{fontWeight:c.sFontWeight,fontStyle:c.N3?"oblique":"normal",textDecoration:c.KD,fontSize:c.DH+"px",fontFamily:c.GI,dominantBaseline:"auto"}),s.textContent=m,o.appendChild(s),B+=-1===c.FL?1.25*c.DH:c.FL}}if(!g)if(!c.VT&&o&&V)if(c.G.G4)-1!==ZC.Q.TB(V).indexOf("zc-text")&&null===ZC._n_(c.G.G4[V.id])&&(c.G.G4[V.id]=document.createDocumentFragment()),c.G.G4[V.id]?c.G.G4[V.id].appendChild(o):V.appendChild(o);else V.appendChild(o)}},paintCANVASText:function(e){var i=this,t=e.idx,n=e.ctx,a=e.i,l=e.fw,o=e.fs,r=e.ff,s=e.c,A=e.dx,C=e.dy,c=e.t;n.save(),n.globalAlpha=i.V1;var u;if(u=(a?"italic":"normal")+" normal "+l+" "+o+"px "+r,n.font=u,n.fillStyle=s,n.textAlign="left",n.textBaseline="alphabetic",n.translate(i.iX+i.BK,i.iY+i.BJ),0!==i.AA&&(n.translate(i.I/2,i.F/2),n.rotate(ZC.TC(i.AA)),n.translate(-i.I/2,-i.F/2)),n.translate(i.ER,i.FJ+o),n.translate(A,C),n.fillText(c,0,0),zingchart.DEV.CACHECANVASTEXT){var p=ZC.CanvasCache[i.K].getContext("2d");p.font=u,p.fillStyle=s,p.textAlign="left",p.textBaseline="alphabetic",p.fillText(c,i.ER,i.FJ+o+1.25*t*o)}n.restore()},EO:function(e){var i=this;if(ZC.canvas&&"canvas"===i.G.AD&&(e||(e=ZC.AM(i.G.K+"-textprint-c")),!zingchart.CANVASTEXT&&i.AA%360==0)){var t=i.Z;i.Z=e,i.VT=!0;var n=i.G.AD;i.G.AD="canvas",i.paint(),i.VT=!1,i.G.AD=n,i.Z=t}}};ZC.DP=ZC.HS.CC(DP);var Q7={$i:function(e){this.b(e);var i=this;i.CK="json",i.NZ={graphset:!0,graph:!0,"objects-bottom":!0,"objects-top":!0,maps:!0,plotarea:!0,plots:!0,guide:!0,"static":!0,"value-box":!0},i.bA11y=!1,i.P2="",i.A18=!1,i.UF="en_us",i.SA=null,i.JM="",i.UD=!1,i.RU={},i.N5="",i.ADI={},i.QM="",i.EX="",i.MF={},i.HG=null,i.AG=[],i.L1="",i.A7=null,i.H3=null,i.D8=null,i.B6=new ZC.AAZ(i),i.QN="",i.KQ=null,i.NU=[null,null,null,null],i.O9=!1,i.N4="x",i.KC=!1,i.TM=!1,i.ABH=!1,i.A3B=!1,i.GO=!1,i.A9E={},i.NT=null,i.QQ={},i.LV=!1,i.QO=!1,i.AD1=null,i.SU=[],i.O={},i.N0=null,i.DI=null,i.UG=0,i.A21=0,i.A4F=1,i.MK=null,i.SB="",i.AAT="F*nStrlng4Cu$tOmLlc9nc9!",i.M6="",i.A17={},i.A0B=!1,i.AD="",i.KA=null,i.ZU=!1,i.QR=["",""],i.L9=0,i.KP=[],i.A7Q=0,i.A7P=0,i.A9D=!1,i.A1E="",i.A6I=!0,i.IC=null,i.QT=[],i.NW=0,i.AAN=!1,i.SD={},i.A1J=!1,i.G4=zingchart.DEV.DOMFRAGMENTS?{}:null,i.A2L=!1,i.SX=[]},clearLabelBoxes:function(e){var i=this;if(e)for(var t=i.SX.length-1;t>=0;t--)i.SX[t].type===e&&i.SX.splice(t,1);else i.SX=[]},usc:function(){return-1!==ZC.AV(this.KP,"use_single_canvas")},mc:function(e){return e=e||"",ZC.AM(this.K+"-main-c"+(""===e?e:"-"+e))},hideCM:function(){var e;(e=ZC.AM(this.K+"-menu"))&&(e.style.display="none"),this.A9D=!1},ZY:function(){for(var e=this,i=e.NU.length,t=0;t1?H[e.L]:H[0];i.id||(i.id=e.o.id||""),s.o.graphset[e.L]=i,s.QI(function(){s.parse(JK),s.AG[e.L].paint()})}}})})},XT:function(DL){var s=this,H,i,A6,j,JC;for(null===ZC._n_(DL.graphset)&&(DL={graphset:[DL]}),1===DL.graphset.length&&null===ZC._n_(DL.graphset[0])&&(DL.graphset=[{type:"null"}]),i=0,A6=DL.graphset.length;i=0;a--)for(o=0;o0){for(var D=0,F=0,K=ZC._i_((u-(B+1)*r.A7Q)/B),x=ZC._i_((p-(v+1)*r.A7P)/v),I=["x","y","width","height"],y=0;y=J6.length){for(var e in window.clearInterval(C4),s.ABP(s.o),L5)if(0!==e.indexOf("data:")&&-1===ZC.AV(s.E["safe-images"],e))try{if(L5[e].width>0&&L5[e].height>0){var i=document.createElement("canvas");i.width=L5[e].width,i.height=L5[e].height,i.getContext("2d").drawImage(L5[e],0,0);var t=i.toDataURL("image/png");L5[e].onload=null,L5[e].onerror=null,L5[e].src=t,ZC.cache.data[e]=L5[e]}}catch(n){}window.setTimeout(function(){zingchart.Y2[s.K]&&JE()},1)}else A33(++A1N)},20);A33(A1N)}else zingchart.Y2[s.K]&&JE()}else zingchart.Y2[s.K]&&JE();function A33(i){if(!(i>=J6.length)){var EX,ML,KI=J6[i][0],A0K=J6[i][1];if("url:"===KI.substring(0,4)){var QM=KI.substring(4);s.QQ["url:"+QM]="[]";try{EX=["query-string"===s.N5?"zcrandom="+Math.random():""].join("&"),ZC.A5.ajax({type:"GET",url:QM,beforeSend:function(e){s.RU.data||"http-headers"!==s.N5||e.setRequestHeader("If-Modified-Since","Thu, 01 Jan 1970 00:00:00 GMT")},data:EX,error:function(e,i,t,n){return s.O2({name:"Network error",message:"Resource not found ("+n+")"},"URL Data loader"),!1},success:function(e,i,t,n){s.QQ["url:"+n]=e,UG++}})}catch(JB){return s.O2(JB,"URL Data loader"),!1}}else if("javascript:"===KI.substring(0,11))if("zc.ext.load"===s.QQ[KI]){s.QQ[KI]="[]";var DY=ZC.AP.AAK(KI.substring(11)),N={id:s.K,resource:KI,callback:function(e){s.QQ[KI]=e,UG++}},A06=DY[0];N.arguments=DY[1];try{var ZH=eval(A06).call(s,N);null!==ZC._n_(ZH)&&ZH&&(s.QQ[KI]=ZH,UG++)}catch(JB){return s.O2(JB,"JavaScript data loader"),!1}}else UG++;else"image"===A0K?(L5[KI]=new Image,L5[KI].crossOrigin="anonymous",L5[KI].onload=function(){UG++},L5[KI].onerror=function(){var e=ZC._b_(s.o.strict);if(ZC.IMG404.push(KI),e)return s.O2({name:"Network error",message:"Resource not found ("+this.src+")"},"Resource loader (image)"),!1;this.src=ZC.BLANK,UG++},L5[KI].src=KI,ZC.cache.data[KI]=L5[KI]):"css"===A0K?(EX=["query-string"===s.N5?"zcrandom="+Math.random():""].join("&"),ZC.A5.ajax({type:"GET",url:KI,beforeSend:function(e){s.RU.css||"http-headers"!==s.N5||e.setRequestHeader("If-Modified-Since","Thu, 01 Jan 1970 00:00:00 GMT")},data:EX,error:function(e,i,t){return s.O2(t,"Resource loader"),!1},success:function(e){for(var i={},t=e.match(/[a-zA-Z0-9\.\#\-](.+?)\{((.|\s)+?)\}/gi),n=0,a=t.length;ndiv").width(a.I).height(a.F)}for("canvas"===a.AD&&((i=ZC.AM(a.K+"-main-c"))&&(i.width=a.I,i.height=a.F),(i=ZC.AM(a.K+"-main-c-top"))&&(i.width=a.I,i.height=a.F),ZC.A5("#"+a.K+"-objects-bottom canvas, #"+a.K+"-objects-top canvas, #"+a.K+"-tools canvas").each(function(){this.width=a.I,this.height=a.F})),"vml"===a.AD&&ZC.A5("#"+a.K+"-objects-bottom div, #"+a.K+"-objects-top div, #"+a.K+"-tools div").each(function(){this.style.width=a.I+"px",this.style.height=a.F+"px"}),a.parse(),l=0,t=a.AG.length;l'}}}e.Z=ZC.AM(e.K+"-main-c"),e.b();var A,C,c=!1,u=!1;for(A=0,C=e.AG.length;A100&&(new Date).getTime()-ZC.swipe.ts<1e3){var n=e.FG();n.direction=t[0]>ZC.swipe.xy[0]?"right":"left",ZC.AP.C0("swipe",e,n)}ZC.swipe=null}e.A9D||ZC.move||zingchart.SG(i),e.OY(i)},ZC.A5("#"+e.K+"-img").bind("touchstart",e.AGA).bind("touchmove",e.OY).bind("touchend",e.AG9),ZC.A5("#"+e.K+"-pixmap").bind("touchstart",e.AGA).bind("touchmove",e.OY).bind("touchend",e.AG9),ZC.A5("#"+e.K+"-menu-area").live("touchstart",e.AGA)),e.zc_loader_mousewheel=function(i){var t=e.FG();t.ev=i,ZC.AP.C0("mousewheel",e,t)},ZC.A5("#"+e.K+"-img").bind("mousewheel",e.zc_loader_mousewheel),ZC.A5("#"+e.K+"-map").bind("mousewheel",e.zc_loader_mousewheel),"svg"===e.AD&&ZC.A5("#"+e.K+"-svg").bind("mousewheel",e.zc_loader_mousewheel),e.A29=function(i){27===i.keyCode&&e.QO&&(e.A7R||e.A99())},ZC.A5(document).bind("keyup",e.A29),e.A99=function(){ZC.A5("#"+e.K+"-menu-item-exitfullscreen").die("click",e.A99),ZC.FSSTATUS=null,ZC.Q.EW(e.K+"-data-table"),e.destroy(),zingchart.FSID&&ZC.AM(zingchart.FSID)&&(ZC.AM(zingchart.FSID).style.display="none")},ZC.A5("#"+e.K+"-menu-item-exitfullscreen").live("click",e.A99)):ZC.mobile&&(e.zc_loader_touchstart_static=function(e){return e.preventDefault(),zingchart.SG(e),!1},ZC.A5("#"+e.K+"-img").bind("touchstart",e.zc_loader_touchstart_static)),null!==e.HG){var h=ZC._i_(e.HG.interval);h=h>=50?h:1e3*h,window.setTimeout(function(){e.N8(),e.load()},h)}e.M6="",ZC.TS[e.K]=(new Date).getTime()-ZC.TS[e.K],e.E["fire-complete"]&&(ZC.AP.C0("complete",e,e.FG()),e.E["fire-complete"]=null),e.E["fire-load"]&&(ZC.AP.C0("load",e,e.FG()),e.E["fire-load"]=null)},togglePreviewMasks:function(e){for(var i=this,t=0;tPowered by ZingChart',l){case"br":h=i.F-r,d=i.I-s;break;case"bl":h=i.F-r,d=6;break;case"tr":h=2,d=i.I-s;break;case"tl":h=2,d=6}null!==ZC._n_(e=ZC.AM(i.K+"-top"))&&ZC.Q.I4({cls:ZC.ie67?"-ie67":"",p:e,id:i.K+"-license-text",tl:h+"/"+d,wh:s+"/"+(r-A),color:ZC.ie67?1===a?"#369":"#fff":"",padding:A,opacity:C,position:"absolute",cursor:"pointer",fontFamily:zingchart.FONTFAMILY,html:o})},_unbind_:function(){var e=this;ZC.A5("#"+e.K+"-menu").die("mousedown",e.TZ),ZC.A5("."+e.K+"-menu-item").die("mousedown",e.TZ),ZC.A5("."+e.K+"-menu-item").die("click touchend",e.AGD).die("mouseover",e.AGB).die("mouseout",e.AGC),e.E["menu-item-events"]=!1,ZC.A5("."+e.K+"-node-area").die("focus"),null!==e.H3&&e.H3.unbind(),null!==e.D8&&e.D8.unbind(),ZC.mobile&&(ZC.A5("#"+e.K+"-img").unbind("touchstart",e.AGA).unbind("touchmove",e.OY).unbind("touchend",e.AG9),ZC.A5("#"+e.K+"-menu-area").die("touchstart",e.AGA),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),"svg"===e.AD&&ZC.A5("#"+e.K+"-svg").unbind("mousewheel",e.zc_loader_mousewheel),ZC.A5(document).unbind("keyup",e.A29),ZC.A5("#"+e.K+"-menu-item-exitfullscreen").die("click",e.A99)},VQ:function(e,i,t){void 0===t&&(t=!1);var n=ZC.AM("zc-menu-"+(t?"sep":"item")+"-"+e);n&&(n.style.display=i?"block":"none")},A62:function(LL,ev){if(!zingchart.DEV.SKIPCONTEXTMENU){var s=this,H,i,A6,j,JC;void 0===LL&&(LL=-1);var DI={};ZC._cp_(s.DI,DI),-1!==LL&&s.o.graphset[LL]&&ZC._cp_(s.o.graphset[LL].gui,DI,null,null,!0),ZC.A5("#"+s.K+"-menu").remove();var PI=[];for("undefined"==typeof ZC.AL&&PI.push({id:"3D",enabled:"none"},{id:"SwitchTo3D",enabled:"none"},{id:"SwitchTo2D",enabled:"none"}),i=DI.behaviors.length-1;i>0;i--)for(var sBId=DI.behaviors[i].id,ii=i-1;ii>=0;ii--)DI.behaviors[ii].id===sBId&&DI.behaviors.splice(ii,1);if(null!==ZC._n_(H=DI.behaviors))for(i=0,A6=H.length;iZC._i_(i.order||"0")}),s.N0=new ZC.DP(s);var A1A=s.L1.split(/\s+|;|,/),E5,LH,U9,AB8,GU;for(i=0,A6=A1A.length;i'}}}E5=new ZC.DP(s),s.B6.load(E5.o,"loader.gui.context-menu.item"),JJ&&null!==ZC._n_(H=JJ.item)&&E5.append(H),ZC.mobile&&(s.B6.load(E5.o,"loader.gui.context-menu[mobile].item"),OM&&null!==ZC._n_(H=OM.item)&&E5.append(H)),E5.UY=!0,E5.parse(),LH=new ZC.DP(s),LH.copy(E5),s.B6.load(LH.o,"loader.gui.context-menu.item.hover-state"),JJ&&null!==ZC._n_(JJ.item)&&null!==ZC._n_(H=JJ.item["hover-state"])&&LH.append(H),ZC.mobile&&(s.B6.load(LH.o,"loader.gui.context-menu[mobile].item.hover-state"),OM&&null!==ZC._n_(OM.item)&&null!==ZC._n_(H=OM.item["hover-state"])&&LH.append(H)),LH.UY=!0,LH.parse(),U9={},JJ&&null!==ZC._n_(JJ.separator)&&(U9=JJ.separator);var JX=[],EN=null;if(AB8=null!==ZC._n_(s.N0.o.empty)&&ZC._b_(s.N0.o.empty),ZC.mobile&&(EN=G9("PageScroll"),"none"!==EN.enabled&&(null===s.DI||null===ZC._n_(s.DI["page-scroll"])||s.DI["page-scroll"]?JX.push(GY("disablepagescroll",EN.text)):JX.push(GY("enablepagescroll",EN.text)),JX.push(JF("pagescroll")))),EN=G9("Reload"),"none"!==EN.enabled&&(JX.push(GY("reload",EN.text)),JX.push(JF("reload"))),"undefined"!=typeof ZC.A8A){EN=G9("SaveAsImage"),"none"!==EN.enabled&&(EN=G9("SaveAsImagePNG"),"none"!==EN.enabled&&JX.push(GY("viewaspng",EN.text?EN.text:null)),EN=G9("SaveAsImageJPG"),"none"!==EN.enabled&&JX.push(GY("viewasjpg",EN.text?EN.text:null)),JX.push(JF("export")));var TH=["DownloadPDF","DownloadSVG","DownloadCSV","DownloadXLS","ViewDataTable","ExportData","Print"],A6E=0,A27=0;for(i=0;i0&&JX.push(JF(TH[A27].toLowerCase()))}if(-1!==LL){var GO=!1;for(j=0,JC=s.AG[LL].BO.length;j0&&JX.push(JF("tools")),EN=G9("FullScreen"),"none"===EN.enabled||s.LV||(s.QO?(EN=G9("ExitFullScreen"),JX.push(GY("exitfullscreen",EN.text)),JX.push(JF("exitfullscreen"))):(JX.push(GY("fullscreen",EN.text)),JX.push(JF("fullscreen")))),s.IC&&(EN=G9("GoBack"),"none"!==EN.enabled&&JX.push(GY("goback",EN.text)),EN=G9("GoForward"),"none"!==EN.enabled&&JX.push(GY("goforward",EN.text)),JX.push(JF("history"))),JX.length>0&&-1!==JX[JX.length-1].indexOf("zc-menu-sep")&&JX.splice(JX.length-1,1),s.A1I={},-1!==LL)if(JJ&&null!==ZC._n_(B8=JJ["custom-items"]))for(JX.length>0&&JX.push(JF("custom")),i=0,A6=B8.length;i '}function GY(e,i,t){i=i||ZC.HD["menu-"+e];var n=void 0!==t&&t?" zc-custom-menu-item "+s.K+"-custom-menu-item":"";return'
'+i+"
"}function A3A(e,i,t){var n=void 0!==t&&t?" zc-custom-menu-header "+s.K+"-custom-menu-header":"";return'
'+i+"
"}function G9(e){var i={ViewAsImage:"SaveAsImage",ViewAsImagePNG:"SaveAsImagePNG",ViewAsImageJPG:"SaveAsImageJPG"};if(AB8)return{enabled:"none"};for(var t=0,n=PI.length;t60?(A=60,p=ZC.HD["progress-wait-short"]):r<60&&(A=20,p=ZC.HD["progress-wait-mini"]),p=n.E.customprogresstext||p;var h=ZC.Q.I4({id:n.K+"-progress",p:document.body,tl:o+"/"+l,width:r-2*c.AU,height:s-2*c.AU,position:"absolute",opacity:.8,border:c.AU+"px solid "+c.BX,background:u});ZC.Q.I4({id:n.K+"-progress-text",p:h,width:A,html:p,textAlign:"center",marginLeft:ZC._i_((r-A)/2),marginTop:ZC._i_(s/2+C),fontFamily:zingchart.FONTFAMILY,fontSize:zingchart.FONTSIZE,color:c.C2,fontWeight:"bold"})}}},A0O:function(){var e=this;ZC.Q.EW(e.K+"-dummy"),e.E.hideprogresslogo||(e.ZU=!1,ZC.Q.EW([e.K+"-progress-text",e.K+"-progress"]))},A5K:function(e,i){var t,n,a=this;t=null!==ZC._n_(n=e.graphset)?n:[e];var l=e.layout||"",o=ZC.AQ.A2G(l,t.length),r=t[i],s=a.I/o[1],A=a.F/o[0],C=Math.floor(i/o[1]),c=i%o[1]*s,u=C*A;r&&(null!==ZC._n_(n=r.x)&&(c=ZC._p_(n))<=1&&(c=ZC._i_(c*a.I)),null!==ZC._n_(n=r.y)&&(u=ZC._p_(n))<=1&&(u=ZC._i_(u*a.F)),null!==ZC._n_(n=r.width)&&(s=ZC._p_(n))<=1&&(s=ZC._i_(s*a.I)),null!==ZC._n_(n=r.height)&&(A=ZC._p_(n))<=1&&(A=ZC._i_(A*a.F)));var p=[0,0,0,0];if(r.plotarea){if(a.B6.load(r.plotarea,["("+r.type+").plotarea"],!1,!0),null!==ZC._n_(r.plotarea.margin))p=new ZC.HS(null).m_(r.plotarea.margin,"all",s,A);for(var Z=["top","right","bottom","left"],h=0;h<4;h++)if(null!==ZC._n_(r.plotarea["margin-"+Z[h]])){var d=r.plotarea["margin-"+Z[h]];ZC._i_(d)+""==d+""&&(p[h]=ZC._i_(d))}}return{graph:{x:ZC._i_(c),y:ZC._i_(u),width:ZC._i_(s),height:ZC._i_(A),index:i},plotarea:{x:p[3],y:p[0],width:s-p[1]-p[3],height:A-p[0]-p[2]}}},KB:function(){var e=this;null===ZC._n_(e.o.graphset)&&(e.o={graphset:[e.o]}),e.N8(),zingchart.A1T(e,e.A5J(),function(){e.o=ZC.AP.C0("dataparse",e,e.FG(),e.o),zingchart.Y2[e.K]&&e.QI(function(){e.parse(),e.paint()})})},render:function(){var e=this;!function(){function i(){""!==e.QN||null!==e.KQ?e.A48():e.load()}e.UD||e.A94(),e.N8(null,!0),zingchart.TIMEOUT>0?ZC.ZS(i):i()}()},Z4:function(e){var i=this;null===ZC._n_(i.A3C)&&(i.A3C=(new Date).getTime(),i.AAU=window.setTimeout(function(){null!==ZC._n_(i.A3C)&&(i.A3C=null,zingchart.Z3(e))},1500))},FG:function(){var e,i=this,t=0,n=0;return t="undefined"!=typeof i.SU[0]?i.SU[0]-t:0,n="undefined"!=typeof i.SU[1]?i.SU[1]-n:0,e=i.L1?i.L1:"light",{id:i.K,width:i.I,height:i.F,output:i.AD,x:t,y:n,targetid:i.SU[2],theme:e}},AC4:function(e){e=e||{},null!==ZC._n_(e.resource)&&(this.QQ[e.resource]=e.data||"[]",this.UG++)},A93:function(){},A8G:function(){},A8H:function(){},Q3:function(){},AAA:function(e,i){var t=this;if(e=e||{},null!==ZC._n_(e.graphid)){var n=t.OX(e.graphid);null!==n&&n.clear()}else t.clear(null,null,i);ZC.JV&&ZC.JV.GUIDES&&(ZC.JV.GUIDES[t.K]=null)},A8J:function(e){e=e||ZC.HD["sync-wait"];var i=this;if(null===ZC.AM(i.K+"-blocker")){ZC.Q.I4({cls:"zc-abs zc-style zc-blocker",id:i.K+"-blocker",p:ZC.AM(i.K+"-top"),wh:i.I+"/"+i.F,opacity:.75}),ZC.Q.I4({cls:"zc-blocker-msg",id:i.K+"-blocker-t",p:ZC.AM(i.K+"-blocker"),html:e});var t=ZC.A5("#"+i.K+"-blocker-t");t.css("top",i.F/2-t.height()/2+"px").css("left",i.I/2-t.width()/2+"px")}},A4A:function(){ZC.Q.EW(this.K+"-blocker")},AA6:function(){var e=this;ZC.AP.C0("about_show",e,e.FG()),ZC.Q.I4({cls:"zc-abs",id:e.K+"-about-mask",p:ZC.AM(e.K+"-top"),wh:e.I+"/"+e.F,background:"#ccc",opacity:.75});var i=ZC.CY(320,e.I),t=ZC.CY(215,e.F),n=ZC.BQ(0,(e.I-i)/2),a=ZC.BQ(0,(e.F-t)/2),l=ZC.Q.I4({cls:"zc-about zc-style",id:e.K+"-about",p:ZC.AM(e.K+"-top"),tl:a+"/"+n,wh:i-(ZC.quirks?0:10)+"/"+(t-(ZC.quirks?0:10))}),o="";""!==e.SB&&(o="Custom Built for
"+e.SB),l.innerHTML='
©2009-'+(new Date).getFullYear()+'
'+ZC.HD["about-close"]+'
 
Build '+ZC.VERSION+" ["+e.AD+"]
"+o+"
",ZC.A5("#"+e.K+"-about-close").bind("click",function(){ZC.AP.C0("about_hide",e,e.FG()),ZC.Q.EW([e.K+"-about",e.K+"-about-mask"])})},O2:function(e,i){var t=this;if(ZC.AP.A8K("error",t))ZC.AP.C0("error",t,{id:t.K,error:e,section:i,json:t.E.json||t.E.rawsource});else{var n="";n+="object"==typeof e?e.name+":"+e.message+"\n\n":e+"\n\n",null!==ZC._n_(i)&&(n+="Section:"+i+"\n\n"),n+="JSON data:\n\n"+t.E.json+"\n\n",t.A0O(),null===ZC.AM(t.K+"-top")&&t.AB2(),ZC.Q.I4({cls:"zc-abs zc-error zc-style",id:t.K+"-error",p:ZC.AM(t.K+"-top"),wh:t.I-(ZC.quirks?0:10)+"/"+(t.F-(ZC.quirks?0:10))}).innerHTML='
'+ZC.HD["error-header"]+'
'+ZC.HD["error-message"]+'
',ZC.A5("#"+t.K+"-error-message").val(ZC.GX(n)),ZC.A5("#"+t.K+"-error-close").bind("click",function(){ZC.Q.EW(t.K+"-error")})}},A5Z:function(){},A73:function(){},A60:function(){var e=this,i=document.createElement("div");i.id="zc-fullscreen",i.style.zIndex=zingchart.FSZINDEX,i.style.overflow="hidden";var t,n,a=document.body,l=!1;for(zingchart.FSID&&ZC.AM(zingchart.FSID)&&(l=!0,(a=ZC.AM(zingchart.FSID)).style.display="block"),a.appendChild(i),ZC.FSSTATUS={},t=0,n=e.AG.length;t=0;t--)if(c[t].generated)c.splice(t,1);else{if(null!==ZC._n_(c[t].shapes))for(A=c[t].shapes.length-1;A>=0;A--)c[t].shapes[A].generated&&c[t].shapes.splice(A,1);if(null!==ZC._n_(c[t].labels))for(A=c[t].labels.length-1;A>=0;A--)c[t].labels[A].generated&&c[t].labels.splice(A,1)}l||window.scroll(0,0),zingchart.render({id:"zc-fullscreen",output:e.AD,width:ZC.A5(l?a:window).width(),height:ZC.A5(l?a:window).height(),fullscreenmode:!0,theme:e.L1,modules:e.A1E,data:C,defaults:e.KQ,defaultsurl:e.QN})},A16:function(e,i){var t,n,a,l=this,o=0,r=!1;for(t=0,n=l.AG.length;t0?i.AG[0]:null},bind:function(e,i){zingchart.bind(this.K,e,i)},unbind:function(e,i){zingchart.unbind(this.K,e,i)},exec:function(e,i){return zingchart.exec(this.K,e,i)},gc:function(){for(var e=0,i=this.AG.length;e1?(Z=Math.round(Z),h=Math.round(h)):(Z=Math.floor(Z),h=Math.ceil(h))),(Z=ZC.BQ(u.FS,Z))<(h=ZC.CY(u.GV,h))&&(e["ymin"+r]=Z,e["ymax"+r]=h)}}s.Q3(e)}},ZC.Q7.prototype.A8H=function(e){var i,t,n,a,l,o=this;for(e=e||{},t=null!==ZC._n_(e.graphid)?o.OX(e.graphid):o.AG[0],e.action="viewall",n=0,a=t.BW("k").length;n/g,"")).replace(' xmlns="http://www.w3.org/2000/svg"',""),w:a.I,h:a.F,t:e,fn:o};if(ZC._cp_(i,c),zingchart.AJAXEXPORT&&"pdf"!==e&&"svg"!==e&&!l){var u="base64=1&";for(A in c)u+=A+"="+encodeURIComponent(c[A])+"&";ZC.A5.ajax({type:"post",url:zingchart.EXPORTURL,data:u,success:function(i,l,o){if(a.A4A(),t)n&&n(i,l,o);else{var s=document.createElement("img");s.src=i,s.id=a.K+"-print-"+e,r.appendChild(s)}}})}else{ZC.AM(a.K+"-export")&&ZC.Q.EW(a.K+"-export");var p=ZC.Q.I4({cls:"zc-abs zc-style",id:a.K+"-export",p:ZC.AM(a.K+"-top"),display:"none"}),Z=(s=null!==ZC._n_(c.uid)&&null!==ZC._n_(c.page)?ZC.Q.ABB(ZC.AM(a.K+"-export")):document).createElement("FORM");for(A in Z.action=zingchart.EXPORTURL,Z.method="post",Z.enctype="multipart/form-data",null!==ZC._n_(c.uid)&&null!==ZC._n_(c.page)?s.body.appendChild(Z):p.appendChild(Z),Z.style.display="none",c){var h=s.createElement("INPUT");h.type="hidden",h.name=A,h.value=c[A],Z.appendChild(h)}Z.submit(),Z=null,null!==ZC._n_(c.uid)&&null!==ZC._n_(c.page)&&window.setTimeout(function(){ZC.A5("#"+a.K+"-export").remove()},6e4),window.setTimeout(function(){a.A4A()},1e3)}}},ZC.Q7.prototype.Z9=function(e){var i=this;e=e||"png";var t,n,a=[],l=document.createElement("canvas");for(l.width=i.I,l.height=i.F,t=0,n=i.AG.length;t',"","\x3c!--[if gte mso 9]>[ZC]td{border:none;font-family:Calibri,sans-serif} .number{mso-number-format:"0.00";} .text{mso-number-format:"@";}',"","","",""),t=0,n=e.AG.length;t"),_.IR&&""!==_.IR.AN&&(f.push([_.IR.AN]),h.push(""+_.IR.AN+"")),h.push(""),h.push("")),u=[],Z=[];var m="Category",E=!1,D="%Y-%mm-%dd %H:%i:%s";for(b&&(b.F6&&"date"===b.F6.o.type&&(m="Date",E=!0,b.F6.o["export-format"]&&(D=b.F6.o["export-format"])),b.M&&b.M.AN&&(m=b.M.AN.replace(/\"|\'/g,""))),"csv"===i?u.push('"'+m+'"'):"raw"===i?Z.push(m):"html"!==i&&"xls"!==i||u.push(""+m+""),a=0,l=g.length;a"+p+""),B.push(""));if("csv"===i?h.push(u.join(",")):"raw"===i?f.push(Z):"html"!==i&&"xls"!==i||h.push(u.join("")),"html"!==i&&"xls"!==i||(h.push(""),h.push(""),h.push("")),b){for(s=0,A=b.V.length;s"),"pie"!==_.AF&&"pie3d"!==_.AF&&"nestedpie"!==_.AF||null!==ZC._n_(b.V[x[C][0]])&&(x[C][0]=b.V[x[C][0]]),null!==ZC._n_(b.BY[x[C][0]])&&(x[C][0]=b.BY[x[C][0]]),null!==ZC._n_(b.V[x[C][0]])&&-1===ZC.AV(F,x[C][0])&&(x[C][0]=b.V[x[C][0]]),(I=_.A.FG()).row=C,I.col=0,I.value=x[C][0],x[C][0]=ZC.AP.C0("dataexport",_.A,I,x[C][0],null),ZC._n_(x[C][1]))for(var y=0;y"+[].concat(x[C][0]).concat(x[C][1]).join("")+""),"html"!==i&&"xls"!==i||h.push("")}}"html"!==i&&"xls"!==i||(h.push(""),h.push("")),n>1&&t 

"))}return"xls"===i&&h.push("",""),"raw"===i?f:("csv"===i?d=h.join("\n"):"html"!==i&&"xls"!==i||(d=h.join("")),d)},zingchart.ABD=function(e,i,t){var n,a,l,o,r,s="",A="";function C(e){ZC.A5.ajax({type:"post",url:a,data:e,success:function(e,i,t){l&&l(e,i,t)}})}document.getElementById("zc-fullscreen")&&(e="zc-fullscreen"),"string"==typeof(t=t||{})&&(t=JSON.parse(t));var c=zingchart.getLoader(e);if(c)switch(i){case"getimagedata":if(o="png",null!==ZC._n_(n=t.format)&&(o=n),null!==ZC._n_(n=t.filetype)&&(o=n),"jpg"===o&&(o="jpeg"),zingchart.DEV.LOCALSVGEXPORT&&"svg"===c.AD&&("png"===o||"jpeg"===o)){c.togglePreviewMasks(!0);var u=ZC.AM(c.K+"-svg").parentNode.innerHTML,p=u.indexOf(">"),Z=u.indexOf("");u=(u='[CSS]'+u.substring(p+1,Z+6)).replace(//g,"");var h=function(){var e,i=window.URL||window.webkitURL||window,n=!1;navigator&&navigator.userAgent&&-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&(n=!0),e=i.createObjectURL&&window.Blob&&!n?i.createObjectURL(new window.Blob([u],{type:"image/svg+xml;charset-utf-16"})):"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(u),c.togglePreviewMasks(!1);var a=new window.Image;a.crossOrigin="anonymous",a.src=e,a.onload=function(){var i=document.createElement("canvas"),n=i.getContext("2d");if(i.width=a.width,i.height=a.height,n.drawImage(a,0,0,i.width,i.height),t.callback&&"function"==typeof t.callback)try{t.callback(i.toDataURL("image/"+o))}catch(l){t.callback(e)}}},d=0,f=function(){var e=new XMLHttpRequest;e.open("get",c.A28[d]),e.responseType="text",e.onloadend=function(e){var i=e.target.response,t=i.match(/https?:\/\/[^ \)]+/g),n=0;t.forEach(function(e){var a=new XMLHttpRequest;a.open("get",e),a.responseType="blob",a.onloadend=function(a){var l=new FileReader;l.onloadend=function(a){i=i.replace(new RegExp(e),a.target.result),++n===t.length&&(u=u.replace("[CSS]","[CSS]"),++d===c.A28.length?(u=u.replace("[CSS]",""),h()):f())},l.readAsDataURL(a.target.response)},a.send()})},e.send()};c.A28.length?f():(u=u.replace("[CSS]",""),h())}if("canvas"!==c.AD&&!zingchart.AJAXEXPORT)return-1;if("canvas"===c.AD){if(!t.callback||"function"!=typeof t.callback)return c.Z9(o);try{t.callback(c.Z9(o))}catch(B){t.callback(-1)}}else c.OJ(o,{},!0,t.callback);break;case"exportimage":case"saveasimage":if(!t.download&&"canvas"!==c.AD&&!zingchart.AJAXEXPORT)return-1;if(o="png",r={},null!==ZC._n_(n=t.options)&&(r=n),null!==ZC._n_(n=t.uid)&&(r.uid=n),null!==ZC._n_(n=t.page)&&(r.page=n),null!==ZC._n_(n=t.format)&&(o=n),null!==ZC._n_(n=t.filetype)&&(o=n),null!==ZC._n_(n=t.filename)&&(s=n),a=c.E.exportimageurl||"",null!==ZC._n_(n=t.url)&&(a=n),l=null,null!==ZC._n_(n=t.callback)&&(l=n),"jpg"===o&&(o="jpeg"),t.download&&("canvas"!==c.AD||"pdf"===o))return r.download=!0,""!==s&&(r.fn=s),void c.OJ(o,r);if(""!==a){if("canvas"===c.AD)return C(c.Z9(o));c.OJ(o,r,!0,function(e){return C(e)})}break;case"exportdata":if(a=c.E.exportdataurl||"",null!==ZC._n_(n=t.url)&&(a=n),A=ZC.AP.XX(c,"csv"),""===a)return A;l=null,null!==ZC._n_(n=t.callback)&&(l=n),ZC.A5.ajax({type:"post",url:a,data:A,success:function(e,i,t){l&&l(e,i,t)}});break;case"downloadCSV":A=ZC.AP.XX(c,"csv"),ZC.AP.downloadFile(A,(t.fn||c.K)+".csv","text/csv;encoding:utf-8");break;case"downloadXLS":A=ZC.AP.XX(c,"xls");var _=t.sn||"ZingChart";A=A.replace("[ZC]",""+_+""),ZC.AP.downloadFile(A,(t.fn||c.K)+".xls","application/vnd.ms-excel;encoding:utf-8");break;case"downloadRAW":var g=ZC.AP.XX(c,"raw");if(!t.callback||"function"!=typeof t.callback)return g;try{t.callback(g,t.fn||c.K)}catch(B){t.callback(-1)}break;case"viewDataTable":if("viewdatatable"===t.menuid)if(A=ZC.AP.XX(c,"html"),ZC.AM(c.K+"-data-table"))ZC.AM(c.K+"-data-table").innerHTML=A;else{var v=ZC.Q.I4({id:c.K+"-data-table",cls:"zc-data-table "+c.K+"-data-table"});ZC.Q.PO(v,{width:c.I+"px","max-height":"400px",overflow:"auto"}),v.innerHTML=A,ZC.AM(c.K).parentNode.insertBefore(v,ZC.AM(c.K).nextSibling)}else"hidedatatable"===t.menuid&&ZC.Q.EW(c.K+"-data-table")}return null},ZC.A8Z={},ZC.AP.WY=function(e){for(var i,t="",n=!1,a=!1,l=0,o="",r=0,s=(e=e.replace(/\t|\r|\n/g,"")).length;r '+ZC.HD["viewsource-originalsource"]+' '+ZC.HD["viewsource-jsonsource"]+'
'),zingchart.EDITSOURCE&&(ZC.AM(e.K+"-viewsource-actions").innerHTML+=''),ZC.A5("#"+e.K+"-viewsource-json").val(ZC.AP.WY(e.E.source)),ZC.A5("#"+e.K+"-viewsource-jsonsource").bind("click",function(){ZC.AM(e.K+"-viewsource-jsonsource").className="zc-tab-active",ZC.AM(e.K+"-viewsource-originalsource").className="zc-tab-inactive",ZC.A5("#"+e.K+"-viewsource-json").val(ZC.AP.WY(e.E.json))}),ZC.A5("#"+e.K+"-viewsource-originalsource").bind("click",function(){ZC.AM(e.K+"-viewsource-jsonsource").className="zc-tab-inactive",ZC.AM(e.K+"-viewsource-originalsource").className="zc-tab-active",ZC.A5("#"+e.K+"-viewsource-json").val(ZC.AP.WY(e.E.source))}),ZC.A5("#"+e.K+"-viewsource-close").bind("click",function(){ZC.AP.C0("source_hide",e,e.FG()),ZC.Q.EW(e.K+"-viewsource")}),zingchart.EDITSOURCE&&ZC.A5("#"+e.K+"-viewsource-apply").bind("click",function(){ZC.AP.C0("source_hide",e,e.FG());var i=ZC.A5("#"+e.K+"-viewsource-json").val();ZC.Q.EW(e.K+"-viewsource"),zingchart.exec(e.K,"setdata",{data:i})})},ZC.Q7.prototype.A73=function(){var e=this;if(e.I<300||e.F<300)window.open("http://www.zingchart.com/support/","","");else{var i=ZC.Q.I4({cls:"zc-abs zc-bugreport zc-style",id:e.K+"-bugreport",p:ZC.AM(e.K+"-top"),wh:e.I-(ZC.quirks?0:10)+"/"+(e.F-(ZC.quirks?0:10))}),t="";t+='
'+ZC.HD["bugreport-header"]+'
",ZC.canvas&&(t+='     "),t+='
'+ZC.HD["bugreport-yourcomment"]+'
'+ZC.HD["bugreport-jsondata"]+'
'+ZC.HD["bugreport-youremail"]+(e.I>=510?" ("+ZC.HD["bugreport-infoemail"]+")":"")+'
',i.innerHTML=ZC._h_(t),ZC.A5("#"+e.K+"-bugreport-json").val("PARSED\n----------\n"+ZC.AP.WY(e.E.json)+"\n\nORIGINAL\n----------\n"+ZC.AP.WY(e.E.source)),ZC.A5("#"+e.K+"-bugreport-cancel").bind("click",function(){ZC.Q.EW(e.K+"-bugreport")}),ZC.A5("#"+e.K+"-bugreport-submit").bind("click",function(){var i=ZC.A5("#"+e.K+"-bugreport-email");if(0!==i.val().length)if(/^((\w+\+*\-*)+\.?)+@((\w+\+*\-*)+\.?)*[\w-]+\.[a-z]{2,6}$/.test(i.val())){var t="",n=function(){var n=("Parsed:"+e.E.json+" Original:"+e.E.source).replace(/\r|\n|\t|(\s{2,})/g,""),a="",l=[];ZC.A5("#"+e.K+"-chkcapture").attr("checked")&&l.push("****IMAGE:",t),ZC.A5("#"+e.K+"-chkdata").attr("checked")&&l.push("****JSON:",n),l.push("****COMMENT:",ZC.A5("#"+e.K+"-bugreport-comment").val(),"****EMAIL:",i.val(),"****VERSION:",ZC.VERSION,"****WIDTH:",e.I,"****HEIGHT:",e.F,"****URL:",window.location.href,"****UA:",navigator.userAgent,"****RENDER:",e.AD.toUpperCase(),"****RESOLUTION:",screen.width+"x"+screen.height);for(var o=0;o0&&(a+=ZC.Q.FT("rect",!0)+'class="'+n.K+'-history-area zc-history-area" id="'+n.K+'-history-back-area" coords="',a+=ZC._i_(l+ZC.MAPTX)+","+ZC._i_(o+ZC.MAPTX)+","+ZC._i_(l+r/3+ZC.MAPTX)+","+ZC._i_(o+s+ZC.MAPTX),a+='" />');var C=new ZC.DR(n);C.K=n.K+"-history-forw",C.copy(i),C.D0=!1,n.NW!==n.QT.length-1&&0!==n.QT.length||C.copy(t),C.D=[[l+r,o+s/2],[l+2*r/3,o],[l+2*r/3,o+s],[l+r,o+s/2]],C.IO=ZC.AM(n.A.K+"-text"),C.Z=C.C7=ZC.AM(n.K+"-static-c"),C.parse(),C.paint(),n.NWi[0][0]?-1:e[0][0]i[0][1]?1:e[0][1]i[0][2]?-1:e[0][2]i[0][3]?-1:e[0][3]i[0][3]?1:e[0][3]i[0][0]?-1:e[0][0]i[0][1]?1:e[0][1]i[0][2]?1:e[0][2]i[0]?-1:e[0]0&&A<1&&(A=ZC._i_(t.G.I*A)),t.A7.o.fixed&&(A-=t.A7.I/2)),null!==ZC._n_(t.A7.o.y)&&((C=ZC.IM(t.A7.o.y,!0))>0&&C<1&&(C=ZC._i_(t.G.F*C)),t.A7.o.fixed&&(C-=t.A7.F/2)),A+=ZC._i_(t.A7.E["offset-x"]),C+=ZC._i_(t.A7.E["offset-y"]),"svg"===t.G.AD||!t.A7.o.placement||t.A7.o.fixed){var p=0,Z=!1,h=t.A7.EP;A/a[0]t.G.I-u&&(p=c/a[0]+t.A7.I-t.G.I+u+t.A7.HA/2,A=(t.G.I-u-t.A7.I)*a[0]),C/a[1]t.G.F-u&&(C=t.G.F-u-t.A7.F,(t.CH.node||!t.A7.o.placement||t.A7.o.fixed)&&(h="top",Z=!0)),Z&&(t.A7.EP=h),(0!==p||Z)&&t.A7.Z&&(t.clear(),""!==t.A7.AN&&(Z&&(t.A7.EP=h),p=ZC.CY(p,t.A7.I/2-t.A7.HA/2),p=48*(p=ZC.BQ(p,-t.A7.I/2+t.A7.HA/2))/(t.A7.I/2-t.A7.HA/2),t.A7.EY=p,t.A7.AO&&t.A7.paint()))}switch(t.GJ=A,t.IJ=C,t.G.AD){case"svg":null===ZC._n_(t.A7.o.x)&&null===ZC._n_(t.A7.o.y)&&ZC.AM(n+"-tooltip").setAttribute("transform","translate("+A/a[0]+","+C/a[1]+")"),t.A7.E["html-mode"]&&ZC.Q.PO(ZC.AM(n+"-tooltip-text-float"),{left:(""===t.BA?A/a[0]:t.A7.iX)+t.A7.ER+"px",top:(""===t.BA?C/a[1]:t.A7.iY)+t.A7.FJ+"px"});break;case"vml":null===ZC._n_(t.A7.o.x)&&null===ZC._n_(t.A7.o.y)&&ZC.Q.PO(ZC.AM(n+"-tooltip"),{left:A+"px",top:C+"px"});break;case"canvas":null!==ZC._n_(t.CH.x)&&(A=t.CH.x),null!==ZC._n_(t.CH.y)&&(C=t.CH.y);var d=t.A7.E["html-mode"]?0:20;switch(t.A7.VF){case"tl":break;case"tr":A-=t.A7.I;break;case"bl":C-=t.A7.F;break;case"br":A-=t.A7.I,C-=t.A7.F;break;case"c":A-=t.A7.I/2,C-=t.A7.F/2;break;case"t":A-=t.A7.I/2;break;case"r":A-=t.A7.I,C-=t.A7.F/2;break;case"b":A-=t.A7.I/2,C-=t.A7.F;break;case"l":C-=t.A7.F/2}ZC.Q.PO(ZC.AM(n+"-tooltip-c"),{left:A/a[0]-d+"px",top:C/a[1]-d+"px"}),null!==(i=ZC.AM(n+"-tooltip-text"))&&(i.style.display="none",ZC.Q.PO(i,{width:t.A7.I+"px",height:t.A7.F+"px",left:A/a[0]+"px",top:C/a[1]+"px"}),i.style.display="block")}}},onmousemove:function(e){this.show(e)},onmouseover:function(e,i){var t,n,a,l,o,r,s,A=this,C=A.G.K,c=e.targetid||e.target.id,u=c.replace(/--([a-zA-Z0-9]+)/,"").replace("-gshape-area","-area").replace("-area-path","").replace("-path","").replace("-marker-circle","").replace("-marker","").split("-").reverse(),p=c.split("--"),Z=!1,h=!1,d=!1;if("node"===u[1]&&"plot"===u[3]&&"plotset"===u[4]&&(Z=!0),ZC.Q.EW([C+"-tooltip-text",C+"-tooltip",C+"-tooltip-text-float"]),Z){if(!(l=A.G.OX(u[5])))return;if(o=l.B0.A3[u[2]],r=o.FM(u[0]),"xy"===l.AJ.layout&&r.R1(),!r)return;ZC.A5("#"+C+"-graph-"+u[5]+"-plot-"+u[2]+"-bg-hover-c").show()}else"legend"===u[2]&&0===u[1].indexOf("item")&&(h=!0),0!==u[2].indexOf("scale")||0!==u[1].indexOf("item")&&0!==u[1].indexOf("marker")||(d=!0),l=A.G.OX(u[3]);if(ZC.AM(C+"-tooltip")||(ZC.Q.K3({id:C+"-tooltip",p:ZC.AM(C+"-main"),cls:"zc-abs zc-tooltip",wh:A.G.I+"/"+A.G.F,overflow:"hidden"},A.G.AD),ZC.Q.HJ({id:C+"-tooltip-c",p:ZC.AM(C+"-tooltip"),cls:"zc-abs",tl:"-999/-999",width:140,height:60},A.G.AD)),A.A7=zingchart.pool.getInstance("DP",A,C+"-tooltip-text"),A.A7.OG="tooltip",A.A7.A=A.G,l&&l.A7&&A.A7.copy(l.A7),Z)A.A7.append(o.A7.o),l.CE["p"+o.L]&&l.CE["p"+o.L]["n"+r.L]&&A.A7.append(o.A7.o["selected-state"]),2===p.length&&A.A7.append(o.AC3(p[1]));else{var f=!1;if(h&&l.BE&&null!==ZC._n_(l.BE.o.tooltip)&&(A.A7.o.text="",A.A7.append(l.BE.o.tooltip),f=!0),d){A.A7.append({"background-color":"#fff","border-width":1,"border-color":"#999"});var _=l.BM(u[2].replace(/\_/g,"-"));if(_&&null!==ZC._n_(_.o.tooltip)&&(A.A7.o.text="",A.A7.append(_.o.tooltip),f=!0),0===u[1].indexOf("item_"))_&&(-1!==u[1].indexOf("_title")&&_.o.label&&_.o.label.tooltip?(A.A7.o.text="",A.A7.append(_.o.label.tooltip),f=!0):_.o.item&&_.o.item.tooltip&&(A.A7.o.text="",A.A7.append(_.o.item.tooltip),f=!0));else if(0===u[1].indexOf("marker_")){var g=ZC._i_(u[1].replace("marker_",""));_.Q5[g]&&_.Q5[g].o.label&&_.Q5[g].o.label.tooltip&&(A.A7.o.text="",A.A7.append(_.Q5[g].o.label.tooltip),f=!0)}}if("shape"===u[2])if(A.A7.append({"background-color":"#fff","border-width":1,"border-color":"#999"}),e.target.getAttribute("data-lowlevel"))A.A7.append({text:e.target.getAttribute("data-tooltip-text")}),f=!0;else for(n=0,a=l.FI.length;nt.G.F-5&&(i=t.G.F-5-n.y-r,n.co=-ZC._i_(100*i/(r-l)),n.y=t.G.F-5-r);else if("vertical"===t.BA)e.iY+e.F/2t.G.I-5&&(i=t.G.I-5-n.x-o,n.co=-ZC._i_(100*i/(o-a)),n.x=t.G.I-5-o);else if("node:"===t.BA.substring(0,5)&&e.getTooltipPosition){switch((n=e.getTooltipPosition(t.A7,t.BA.substring(5))).node=!0,n.side=t.BA.substring(5),n.side){case"left":n.x=n.x-o+t.A7.QF,n.y=n.y-r/2+t.A7.MI;break;case"right":n.x=n.x+t.A7.QF,n.y=n.y-r/2+t.A7.MI;break;case"top":n.x=n.x-o/2+t.A7.QF,n.y=n.y-r+t.A7.MI;break;case"bottom":n.x=n.x-o/2+t.A7.QF,n.y=n.y+t.A7.MI;break;case"center":n.x=n.x-o/2+t.A7.QF,n.y=n.y-r/2+t.A7.MI}n.cp=t.A7.EP}if(n.node){var A=0;n.y+r>t.G.F-5&&("top"===n.side||"bottom"===n.side?(n.y=n.y-r-("bottom"===n.side?0:t.A7.GA)-t.A7.MI,n.cp="bottom"):n.y=t.G.F-r-5),n.y<5&&("top"===n.side||"bottom"===n.side?(n.y=n.y+("top"===n.side?0:t.A7.GA)+r-t.A7.MI,n.cp="top"):n.y=5),n.x+o>t.G.I-5&&("left"===n.side||"right"===n.side?(n.x=n.x-o-t.A7.QF-5,n.cp="right"):(A=48*(o-t.G.I+n.x+t.A7.HA/2)/(t.A7.I/2),n.x=t.G.I-o-t.A7.QF-5),n.co=A),n.x<5&&("left"===n.side||"right"===n.side?(n.x=n.x+t.A7.I-t.A7.QF+5,n.cp="left"):(A=48*(n.x-t.A7.HA/2)/(t.A7.I/2),n.x=5),n.co=A)}return n}};ZC.A2A=ZC.C9.CC(A2A);var A57={$i:function(e){this.b(e);var i=this;i.G=e,i.IK=!1,i.C=null,i.R4=null,i.WS=null,i.IA=0,i.LK=0,i.I9=0,i.LJ=0,i.A8=null,i.AK=null,i.ZB=!1,i.AB6=0,i.A0D=!1,i.M=null},parse:function(){var e=this;e.C&&(e.C.H3&&e.append(e.C.H3.o),e.b(),e.YE("preserve-zoom","A0D","b"),e.M=new ZC.DP(e),e.C.A.B6.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.AO=!0))},unbind:function(){var e=this;zingchart.DEV.SKIPTRACKERS?ZC.A5(document.body).unbind("mousedown touchstart",e.R6):ZC.A5("#"+e.G.K+"-img").unbind("mousedown touchstart",e.R6),ZC.A5(".zc-node-area").die("mousedown touchstart",e.R6),ZC.A5(document.body).unbind("mousemove touchmove",e.UA),ZC.A5(document.body).unbind("mouseup touchend",e.TY)},bind:function(){var e=this,i=e.G.K;e.R6=function(t){if((!ZC.mobile||"pinch"!==zingchart.TOUCHZOOM)&&!(t.which>1||-1!==ZC.Q.TB(t.target).indexOf("zc-menu-item")||ZC.move)&&("mousedown"!==t.type||!ZC.TOUCHEVENTS)&&-1===t.target.id.indexOf("-legend-header-area")&&(ZC.mobile||t.preventDefault(),e.G.hideCM(),(ZC.mobile||!(t.which>1))&&("vml"!==e.G.AD||-1===t.target.className.indexOf("zc-node-area")))){t.shiftKey&&(e.ZB=!0);var n=ZC.Q.MJ(t),a=ZC._tx_(e.G.K),l=ZC.A5("#"+i+"-top").offset(),o=(n[0]-l.left)/a[0],r=(n[1]-l.top)/a[1];e.R4=o,e.WS=r,e.ZB&&(e.AB6=o);for(var s,A=!1,C=0,c=e.G.AG.length;C0&&(e.A8=e.C.BM(e.C.B0.A3[0].BW("k")[0]),e.AK=e.C.BM(e.C.B0.A3[0].BW("v")[0])),null!==e.A8&&null!==e.AK&&e.C.AJ["enable-zooming"]&&(e.A8.GO||e.AK.GO)&&(e.IA=e.A8.CL?r:o,e.I9=e.AK.CL?o:r,A=!0,e.A8.GO?e.A8.CL?e.IA=ZC._l_(e.IA,s.iY,s.iY+s.F):e.IA=ZC._l_(e.IA,s.iX,s.iX+s.I):e.IA=e.A8.CL?s.iY:s.iX,e.AK.GO?e.AK.CL?e.I9=ZC._l_(e.I9,s.iX,s.iX+s.I):e.I9=ZC._l_(e.I9,s.iY,s.iY+s.F):e.I9=e.AK.CL?s.iX:s.iY)}return A&&(e.LK=e.IA,e.LJ=e.I9,e.IK=!0,ZC.A5(document.body).bind("mousemove touchmove",e.UA),ZC.A5(document.body).bind("mouseup touchend",e.TY),e.ZB?document.body.style.cursor="pointer":(e.parse(),e.C.AJ["3d"]||ZC.Q.I4({id:i+"-zoom",p:ZC.AM(i+"-top"),top:-9,left:-9,wh:"1/1",position:"absolute",border:e.AU+"px solid "+e.BX,background:e.A0,opacity:e.C5}),e.M.AO&&(ZC.Q.I4({id:i+"-from",p:ZC.AM(i+"-top"),top:-9999,left:-9999,position:"absolute",paddingTop:e.M.FJ,paddingRight:e.M.FO,paddingBottom:e.M.FX,paddingLeft:e.M.ER,border:e.M.AU+"px solid "+e.M.BX,background:e.M.A0,color:e.M.C2,fontFamily:e.M.GI,fontWeight:e.M.sFontWeight,fontStyle:e.M.N3?"oblique":"normal",fontSize:e.M.DH,text:""}),ZC.Q.I4({id:i+"-to",p:ZC.AM(i+"-top"),top:-9999,left:-9999,position:"absolute",paddingTop:e.M.FJ,paddingRight:e.M.FO,paddingBottom:e.M.FX,paddingLeft:e.M.ER,border:e.M.AU+"px solid "+e.M.BX,background:e.M.A0,color:e.M.C2,fontFamily:e.M.GI,fontWeight:e.M.sFontWeight,fontStyle:e.M.N3?"oblique":"normal",fontSize:e.M.DH,text:""})),document.body.style.cursor="crosshair")),!!ZC.mobile&&void 0}},e.UA=function(t){if("mousemove"!==t.type||!ZC.TOUCHEVENTS){var n,a;if(ZC.mobile||t.preventDefault(),ZC.move=!0,e.C||(ZC.move=!1,e.IK=!1,ZC.A5(document.body).unbind("mousemove touchmove",e.UA),ZC.A5(document.body).unbind("mouseup touchend",e.TY),document.body.style.cursor="auto",ZC.Q.EW([i+"-zoom",i+"-from",i+"-to"])),e.IK){e.C.A.A7.hide();var l=ZC.Q.MJ(t),o=ZC._tx_(e.G.K),r=ZC.A5("#"+i+"-top").offset(),s=(l[0]-r.left)/o[0],A=(l[1]-r.top)/o[1];t.ctrlKey;var C=e.A8.DE?e.A8.AC:0;if(e.LK=e.A8.CL?A:s,e.LJ=e.AK.CL?s:A,!e.ZB){var c,u,p,Z,h=e.C.P;n=e.A8.AW?e.A8.BU:e.A8.A9,a=e.A8.AW?e.A8.A9:e.A8.BU,e.A8.GO?e.A8.CL?(e.A8.Y6&&(e.IA=e.A8.iY+n+e.A8.AC*ZC._i_((e.IA-e.A8.iY-n-C/2)/e.A8.AC),e.LK=e.A8.iY+n+C+e.A8.AC*ZC._i_((e.LK-e.A8.iY-n-C/2)/e.A8.AC)),e.IA=ZC._l_(e.IA,h.iY+a,h.iY+h.F-n),e.LK=ZC._l_(e.LK,h.iY+a,h.iY+h.F-n)):(e.A8.Y6&&(e.IA=e.A8.iX+n+e.A8.AC*ZC._i_((e.IA-e.A8.iX-n-C/2)/e.A8.AC),e.LK=e.A8.iX+n+C+e.A8.AC*ZC._i_((e.LK-e.A8.iX-n-C/2)/e.A8.AC)),e.IA=ZC._l_(e.IA,h.iX+n,h.iX+h.I-a),e.LK=ZC._l_(e.LK,h.iX+n,h.iX+h.I-a)):(e.IA=e.A8.CL?h.iY+a:h.iX+n,e.LK=e.A8.CL?h.iY+h.F-n:h.iX+h.I-a),n=e.AK.AW?e.AK.A9:e.AK.BU,a=e.AK.AW?e.AK.BU:e.AK.A9,e.AK.GO?e.AK.CL?(e.AK.Y6&&(e.I9=e.AK.iX+n+e.AK.AC*ZC._i_((e.I9-e.AK.iX-n)/e.AK.AC),e.LJ=e.AK.iX+n+e.AK.AC*ZC._i_((e.LJ-e.AK.iX-n)/e.AK.AC)),e.I9=ZC._l_(e.I9,h.iX+a,h.iX+h.I-n),e.LJ=ZC._l_(e.LJ,h.iX+a,h.iX+h.I-n)):(e.AK.Y6&&(e.I9=e.AK.iY+n+e.AK.AC*ZC._i_((e.I9-e.AK.iY-n)/e.AK.AC),e.LJ=e.AK.iY+n+e.AK.AC*ZC._i_((e.LJ-e.AK.iY-n)/e.AK.AC)),e.I9=ZC._l_(e.I9,h.iY+n,h.iY+h.F-a),e.LJ=ZC._l_(e.LJ,h.iY+n,h.iY+h.F-a)):(e.I9=e.AK.CL?h.iX+a:h.iY+n,e.LJ=e.AK.CL?h.iX+h.I-n:h.iY+h.F-a);var d=ZC.A5.browser.msie?0:2*e.AU;e.C.AJ["3d"]&&(d=0);var f=ZC.AM(i+"-zoom");if(e.A8.CL&&e.AK.CL?(c=ZC._a_(e.LJ-e.I9-d),u=ZC._a_(e.LK-e.IA-d),p=ZC.CY(e.I9,e.LJ),Z=ZC.CY(e.IA,e.LK)):(c=ZC._a_(e.LK-e.IA-d),u=ZC._a_(e.LJ-e.I9-d),p=ZC.CY(e.IA,e.LK),Z=ZC.CY(e.I9,e.LJ)),e.C.AJ["3d"]){e.C.O4();var _=ZC.AM(e.G.K+"-guide-c");_&&(ZC.Q.IV(_,e.G.AD,e.C.iX,e.C.iY,e.C.I,e.C.F),ZC.A5(".zc-guide-label").remove()),(f=new ZC.DR(e)).Z=_,f.A0=f.AE=e.A0,f.BX=e.BX,f.AU=e.AU,f.C5=e.C5,f.D=[[p,Z],[p+c,Z],[p+c,Z+u],[p,Z+u],[p,Z]];for(var g=0;g10&&ZC._a_(e.I9-e.LJ)>10){var h,d,f=!1,_=!1;for(r=0,s=(o=e.C.BW("k")).length;r=1&&(Z["zoomx"+A]=!0,Z["xmin"+A]=ZC.CY(a,l),Z["xmax"+A]=ZC.BQ(a,l),"log"===h.BS&&(Z["kmin"+A]=h.V[ZC._i_(ZC.FU(Z["xmin"+A],h.DX))],Z["kmax"+A]=h.V[ZC._i_(ZC.FU(Z["xmax"+A],h.DX))],delete Z["xmin"+A],delete Z["xmax"+A]),f=!0));for(r=0,s=(o=e.C.BW("v")).length;r=u&&(Z["zoomy"+A]=!0,Z["ymin"+A]=ZC.CY(C,c),Z["ymax"+A]=ZC.BQ(C,c),_=!0));f||_?(zingchart.SKIP.EVENT=!0,e.C.A.Q3(Z)):zingchart.SKIP.EVENT=!0}else(ZC._a_(e.IA-e.LK)>5||ZC._a_(e.I9-e.LJ)>5)&&(zingchart.SKIP.EVENT=!0);e.C=null}}},ZC.mobile&&"normal"!==zingchart.TOUCHZOOM||(zingchart.DEV.SKIPTRACKERS?ZC.A5(document.body).bind("mousedown touchstart",e.R6):ZC.A5("#"+i+"-img").bind("mousedown touchstart",e.R6),ZC.A5(".zc-node-area").live("mousedown touchstart",e.R6))}};ZC.A57=ZC.HS.CC(A57);var A2E={$i:function(e){this.b(e);var i=this;i.HZ=!0,i.ABU=!1,i.C=e,i.G=e.A,i.IK=!1,i.A3N=!1,i.G2=null,i.AT=null,i.Z=null,i.II=0,i.H8=0,i.P9=0,i.A0H=0,i.KT=!1,i.iScaleXLength=0,i.NO=null,i.bBind=!1,i.BY=null,i.A1O=!1},parse:function(){var e,i=this;i.K=i.C.K+"-preview",i.assign_a([["live","ABU","b"],["async","KT","b"],["min-distance","P9","i"],["min-distance-x","P9","i"],["min-distance-y","P9","i"],["visible","AO","b"]]);var t="("+i.C.AF+").preview",n=i.G.B6;function a(e){return[t+".handler",t+".handler-"+e,t+".handle",t+".handle-"+e]}i.AT=new ZC.HS(i.C),i.AT.K=i.C.K+"-preview-viewport",n.load(i.AT.o,[t]),i.AT.append(i.o),i.AT.parse(),i.o.label&&(i.BY=[]),i.o.handle&&i.o.handle.label&&(i.J8=new ZC.DP(i.C),i.J8.append(i.o.handle.label),i.J8.append({text:" "}),i.J8.parse(),i.J8.AO&&(i.A1O=!0)),i.OT=new ZC.CZ(i.C),n.load(i.OT.o,[t+".mask"]),null!==ZC._n_(e=i.o.mask)&&i.OT.append(e),i.OT.parse(),i.UH=new ZC.CZ(i.C),n.load(i.UH.o,[t+".active"]),null!==ZC._n_(e=i.o.active)&&i.UH.append(e),i.UH.parse(),i.IQ=new ZC.HS(i.AT),i.HH=new ZC.HS(i.AT),i.JD=new ZC.HS(i.AT),i.H6=new ZC.HS(i.AT),n.load(i.IQ.o,a("left")),n.load(i.HH.o,a("right")),n.load(i.JD.o,a("top")),n.load(i.H6.o,a("bottom"));for(var l=["handle","handler"],o=0;o=A.AT.iX&&_.iX+_.I<=A.AT.iX+A.AT.I){for(var g=!1,v=0;vZ[v].x&&_.iX/g," "),Q=c.FR(c.A1,null,null).replace(/
/g," ")),A.RA=ZC.Q.I4({cls:"zc-abs zc-preview-label "+A.C.K+"-preview-label",id:A.K+"-min-label",background:A.J8.A0,opacity:A.J8.C5,fontFamily:A.J8.GI,fontSize:A.J8.DH,fontWeight:A.J8.sFontWeight,color:A.J8.C2,padding:0,html:z+"",p:C}),A.RA.style.left=A.AT.iX+"px",A.RA.style.top=A.AT.iY+A.AT.F+"px",A.RB=ZC.Q.I4({cls:"zc-abs zc-preview-label "+A.C.K+"-preview-label",id:A.K+"-max-label",background:A.J8.A0,opacity:A.J8.C5,fontFamily:A.J8.GI,fontSize:A.J8.DH,fontWeight:A.J8.sFontWeight,color:A.J8.C2,padding:0,html:Q+"",p:C}),A.RB.style.left=A.AT.iX+A.AT.I+"px",A.RB.style.top=A.AT.iY+A.AT.F+"px",A.II>ZC.A5(A.RA).width()?A.RA.style.left=A.AT.iX+A.II-ZC.A5(A.RA).width()+"px":A.RA.style.left=A.AT.iX+"px",A.AT.I-A.H8>ZC.A5(A.RB).width()?A.RB.style.left=A.AT.iX+A.H8+"px":A.RB.style.left=A.AT.iX+A.H8-ZC.A5(A.RB).width()+"px"}A.bind(),A.BY&&(A.BY=[])}},reset:function(){var e=this,i=e.C.BW("k")[0],t=e.C.BW("v",!0)[0];t||(t=e.C.BW("v")[0]),i&&t&&e.update(i.D4,i.DN,t.FS,t.GV,!0)},update:function(e,i,t,n,a){null===ZC._n_(a)&&(a=!1);var l=this;if(a||(e>=i&&(e=i-1),t>=n&&(t=n-1)),l.AO&&l.JT){var o=l.C.BW("k")[0],r=l.C.BW("v",!0)[0];r||(r=l.C.BW("v")[0]);var s=!0;if(a){if(o&&r){if(o.CL&&r.CL){var A=e,C=i;e=t,i=n,t=A,n=C}o.CL?(null===ZC._n_(n)&&(n=o.A1),null===ZC._n_(t)&&(t=o.W)):(null===ZC._n_(e)&&(e=o.W),null===ZC._n_(i)&&(i=o.A1)),r.CL?(null===ZC._n_(e)&&(e=r.aAutoFit[0]?r.FS:r.AZ),null===ZC._n_(i)&&(i=r.aAutoFit[1]?r.GV:r.BD)):(null===ZC._n_(t)&&(t=r.aAutoFit[0]?r.FS:r.AZ),null===ZC._n_(n)&&(n=r.aAutoFit[1]?r.GV:r.BD));var c=o.DE?1:0;o.CL||r.CL?o.AW?l.update((e-r.FS)*l.AT.I/(r.GV-r.FS),(i-r.FS)*l.AT.I/(r.GV-r.FS),(t-o.D4)*l.AT.F/(o.DN-o.D4),(n-o.D4)*l.AT.F/(o.DN-o.D4)):l.update((e-r.FS)*l.AT.I/(r.GV-r.FS),(i-r.FS)*l.AT.I/(r.GV-r.FS),l.AT.F-(n-o.D4)*l.AT.F/(o.DN-o.D4),l.AT.F-(t-o.D4)*l.AT.F/(o.DN-o.D4)):o.AW?l.update(l.AT.I-(i-o.D4+c)*l.AT.I/(o.DN-o.D4+c),l.AT.I-(e-o.D4)*l.AT.I/(o.DN-o.D4+c),l.AT.F-(n-r.FS)*l.AT.F/(r.GV-r.FS),l.AT.F-(t-r.FS)*l.AT.F/(r.GV-r.FS)):l.update((e-o.D4)*l.AT.I/(o.DN-o.D4+c),(i-o.D4+c)*l.AT.I/(o.DN-o.D4+c),l.AT.F-(n-r.FS)*l.AT.F/(r.GV-r.FS),l.AT.F-(t-r.FS)*l.AT.F/(r.GV-r.FS))}}else if(i-ei&&(l.G2===l.JT?l.update(i-1,i,t,n):l.G2===l.JH&&l.update(e,e+1,t,n),s=!1),e<0&&(l.G2===l.JT?l.update(0,i,t,n):l.G2===l.K1&&l.update(0,ZC.A5(l.K1).width(),t,n),s=!1),i>l.AT.I&&(l.G2===l.JH?l.update(e,l.AT.I,t,n):l.G2===l.K1&&l.update(l.AT.I-ZC.A5(l.K1).width(),l.AT.I,t,n),s=!1),t>n&&(l.G2===l.KV?l.update(e,i,t-1,n):l.G2===l.IY&&l.update(e,i,t,n+1),s=!1),t<0&&(l.G2===l.KV?l.update(e,i,0,n):l.G2===l.K1&&l.update(e,i,0,ZC.A5(l.K1).height()),s=!1),n>l.AT.F&&(l.G2===l.IY?l.update(e,i,t,l.AT.F):l.G2===l.K1&&l.update(e,i,l.AT.F-ZC.A5(l.K1).height(),l.AT.F),s=!1),s){var u;if(o&&o.Y6)o.CL?(t=(u=l.AT.F/(l.iScaleXLength-(o.DE?0:1)))*Math.round(t/u),n=ZC.CY(u*Math.round(n/u),l.AT.F)):(e=(u=l.AT.I/(l.iScaleXLength-(o.DE?0:1)))*Math.round(e/u),i=ZC.CY(u*Math.round(i/u),l.AT.I));l.II=e,l.H8=i,l.KW=t,l.HB=n,(!o.CL&&o.GO||r.CL&&r.GO)&&(l.JT.style.left=ZC._i_(l.AT.iX+l.II-l.IQ.I/2-l.PV/2)+"px",l.A3E.style.width=ZC._i_(l.II)+"px",l.JH.style.left=ZC._i_(l.AT.iX+l.H8-l.HH.I/2-l.PV/2)+"px",l.XB.style.left=ZC._i_(l.AT.iX+l.H8)+"px",l.XB.style.width=ZC._i_(l.AT.I-l.H8)+"px"),(!r.CL&&r.GO||o.CL&&o.GO)&&(l.KV.style.top=ZC._i_(l.AT.iY+l.KW-l.JD.F/2-l.PV/2)+"px",l.A4W.style.height=ZC._i_(l.KW)+"px",l.IY.style.top=ZC._i_(l.AT.iY+l.HB-l.H6.F/2-l.PV/2)+"px",l.VX.style.top=ZC._i_(l.AT.iY+l.HB)+"px",l.VX.style.height=ZC._i_(l.AT.F-l.HB)+"px"),(o.GO||r.GO)&&(l.K1.style.left=ZC._i_(l.AT.iX+l.II)+"px",l.K1.style.width=ZC._i_(l.H8-l.II)+"px",l.K1.style.top=ZC._i_(l.AT.iY+l.KW)+"px",l.K1.style.height=ZC._i_(l.HB-l.KW)+"px"),l.ABU&&l.IK&&(l.C.OC=!0,l.zoom(!0)),o.GO&&l.A1O&&(o.F6&&"date"===o.F6.o.type?(l.RA.innerHTML=o.FR(o.W,null,null).replace(/
/g," "),l.RB.innerHTML=o.FR(o.A1,null,null).replace(/
/g," ")):(l.RA.innerHTML=o.W,l.RB.innerHTML=o.A1),l.II>ZC.A5(l.RA).width()?l.RA.style.left=l.AT.iX+l.II-ZC.A5(l.RA).width()+"px":l.RA.style.left=l.AT.iX+"px",l.AT.I-l.H8>ZC.A5(l.RB).width()?l.RB.style.left=l.AT.iX+l.H8+"px":l.RB.style.left=l.AT.iX+l.H8-ZC.A5(l.RB).width()+"px")}}},zoom:function(e){for(var i,t=this,n={graphid:t.C.K,preview:1,async:t.KT,previewscale:!0,zooming:e},a=t.C.BO,l=t.C.BW("k")[0],o=t.C.BW("v")[0],r=0,s=a.length;re.AT.I?(e.II=e.AT.I-o,e.H8=e.AT.I):(e.II=ZC._i_(l-o/2),e.H8=ZC._i_(l+o/2))}else{var r=n[1]-a.top-e.AT.iY,s=e.HB-e.KW;r-s/2<0?(e.KW=0,e.HB=s):r+s/2>e.AT.F?(e.KW=e.AT.F-s,e.HB=e.AT.F):(e.KW=ZC._i_(r-s/2),e.HB=ZC._i_(r+s/2))}return e.IK=!1,e.C.OC=!1,e.update(e.II,e.H8,e.KW,e.HB),e.zoom(!1),!1}},e.YY=function(a){if(a.preventDefault(),e.G.H3){e.G.H3.C=e.C,e.G.H3.parse();for(var l=a.target;l&&"BODY"!==l.tagName.toUpperCase();){if(-1!==ZC.Q.TB(l).indexOf("zc-preview-handler"))break;l=l.parentNode}if((ZC.mobile||!(a.which>1))&&l){var o=ZC.Q.MJ(a),r=ZC._tx_(e.G.K),s=ZC.A5("#"+i+"-top").offset(),A=(o[0]-s.left)/r[0]-e.AT.iX,C=(o[1]-s.top)/r[1]-e.AT.iY;return-1!==l.id.indexOf("handler-x-left")?e.G2=e.JT:-1!==l.id.indexOf("handler-x-right")?e.G2=e.JH:-1!==l.id.indexOf("handler-y-top")?e.G2=e.KV:-1!==l.id.indexOf("handler-y-bottom")?e.G2=e.IY:-1!==l.id.indexOf("handler-middle")&&(e.G2=e.K1,t=A-e.II,n=C-e.KW),e.IK=!0,e.A3N=!1,e.G.E[e.K]=[l.id,t,n],!1}}},e.YZ=function(a){if("undefined"!=typeof e.G.E[e.K]){e.IK=!0;var l=e.G.E[e.K][0];t=e.G.E[e.K][1],n=e.G.E[e.K][2],-1!==l.indexOf("handler-x-left")?e.G2=e.JT:-1!==l.indexOf("handler-x-right")?e.G2=e.JH:-1!==l.indexOf("handler-y-top")?e.G2=e.KV:-1!==l.indexOf("handler-y-bottom")?e.G2=e.IY:-1!==l.indexOf("handler-middle")&&(e.G2=e.K1)}if(e.IK){e.A3N=!0,zingchart.exec(e.G.K,"setmode",{mode:"static,fast"});var o=ZC._tx_(e.G.K),r=ZC.Q.MJ(a),s=ZC.A5("#"+i+"-top").offset(),A=(r[0]-s.left)/o[0]-e.AT.iX,C=(r[1]-s.top)/o[1]-e.AT.iY;e.G2===e.JT?e.update(A,e.H8,e.KW,e.HB):e.G2===e.JH?e.update(e.II,A,e.KW,e.HB):e.G2===e.KV?e.update(e.II,e.H8,C,e.HB):e.G2===e.IY?e.update(e.II,e.H8,e.KW,C):e.G2===e.K1&&e.update(A-t,A-t+ZC.A5(e.K1).width(),C-n,C-n+ZC.A5(e.K1).height())}return!1},ZC.A5(document.body).bind("mousemove touchmove",e.YZ),e.W7=function(){return delete e.G.E[e.K],zingchart.exec(e.G.K,"setmode",{mode:""}),e.IK&&(e.IK=!1,e.C.OC=!1,e.A3N&&e.zoom(!1),e.A3N=!1),!1},ZC.A5(document.body).bind("mouseup touchend",e.W7),ZC.A5("."+e.C.K+"-preview-handler").bind("mousedown touchstart",e.YY),ZC.A5("."+e.C.K+"-preview-mask").bind("click",e.AGE),e.bBind=!0}},gc:function(){ZC.AP.gc(this,["Z","C7","o","I8","J0","C","G","AT","UH","JT","JH","KV","IY","K1","JD","HH","H6","IQ","oMask","OT","A3E","XB","A4W","VX"])}};ZC.A2E=ZC.CZ.CC(A2E);var ZQ={$i:function(e,i){this.b(e);var t=this;t.C=e,t.G=e.A,t.IK=!1,t.Z=null,t.BK=0,t.BJ=0,t.A79="",t.bYX="yx"===t.C.AJ.layout,t.AF=t.sTypeE=t.sTypeN="scroll-"+(i||"x"),t.bYX&&(t.AF+="i",t.sTypeE="scroll-xi"===t.AF?"scroll-y":"scroll-x")},parse:function(){var e,i=this;i.K=i.C.K+"-"+i.sTypeE,i.assign_a([["offset-x","BK"],["offset-y","BJ"]]);var t="("+i.C.AF+").",n=i.G.B6;i.B2=new ZC.HS(i.C),n.load(i.B2.o,[t+"scroll.bar",t+i.AF+".bar"]),null!==ZC._n_(e=i.o.bar)&&i.B2.append(e),i.B2.parse(),i.B3=new ZC.HS(i.C),n.load(i.B3.o,[t+"scroll.handle",t+i.AF+".handle"]),null!==ZC._n_(e=i.o.handle)&&i.B3.append(e),i.B3.parse()},paint:function(){var e=this,i=e.C.BW("k")[0],t=e.C.BW("v")[0],n=e.C.P;if(("scroll-x"===e.AF||"scroll-xi"===e.AF)&&i.D4===i.W&&i.DN===i.A1||("scroll-y"===e.AF||"scroll-yi"===e.AF)&&t.FS===t.AZ&&t.GV===t.BD)return e.unbind(),ZC.A5("#"+e.C.K+"-"+e.AF+"-handle").remove(),ZC.A5("#"+e.C.K+"-"+e.AF+"-bar").remove(),void ZC.Q.IV(e.Z,e.G.AD,e.C.iX,e.C.iY,e.C.I,e.C.F);e.Z=ZC.AM(e.C.K+"-"+e.sTypeN+"-c");var a=ZC.AM(e.G.K+"-top");"scroll-x"===e.AF||"scroll-yi"===e.AF?(e.B2.iX=n.iX+e.BK,e.B2.iY=n.iY+n.F+i.B1-1+e.BJ,e.B2.I=n.I,e.bYX?(e.B3.I=ZC._i_(ZC.BQ(4,e.B2.I*((t.BD-t.AZ)/(t.GV-t.FS)))),t.FS===t.AZ?t.AW?e.B3.iX=e.B2.iX+e.B2.I-e.B3.I:e.B3.iX=e.B2.iX:t.GV===t.BD?t.AW?e.B3.iX=e.B2.iX:e.B3.iX=e.B2.iX+e.B2.I-e.B3.I:t.AW?e.B3.iX=ZC._i_(e.B2.iX+e.B2.I-e.B3.I-e.B2.I*(t.AZ-t.FS)/(t.GV-t.FS)):e.B3.iX=ZC._i_(e.B2.iX+e.B2.I*(t.AZ-t.FS)/(t.GV-t.FS))):(e.B3.I=ZC._i_(ZC.BQ(4,e.B2.I*((i.A1-i.W)/(i.DN-i.D4)))),i.D4===i.W?i.AW?e.B3.iX=e.B2.iX+e.B2.I-e.B3.I:e.B3.iX=e.B2.iX:i.DN===i.A1?i.AW?e.B3.iX=e.B2.iX:e.B3.iX=e.B2.iX+e.B2.I-e.B3.I:i.AW?e.B3.iX=ZC._i_(e.B2.iX+e.B2.I-e.B3.I-e.B2.I*(i.W-i.D4)/(i.DN-i.D4)):e.B3.iX=ZC._i_(e.B2.iX+e.B2.I*(i.W-i.D4)/(i.DN-i.D4))),ZC.AM(e.K+"-handle")?(ZC.A5("#"+e.K+"-bar").css("top",e.B2.iY+"px"),ZC.A5("#"+e.K+"-handle").css("left",e.B3.iX+"px").css("top",e.B2.iY+"px").css("width",ZC.BQ(15,e.B3.I)+"px"),e.paint_()):(e.AAE=ZC.Q.I4({cls:"zc-abs zc-scroll zc-scroll-x-bar "+e.C.K+"-scroll-x-bar",id:e.K+"-bar",wh:e.B2.I+"/"+e.B2.F,tl:e.B2.iY+"/"+e.B2.iX,opacity:0,p:a}),e.ZF=ZC.Q.I4({cls:"zc-abs zc-scroll zc-scroll-x-handle "+e.C.K+"-scroll-x-handle",id:e.K+"-handle",wh:ZC.BQ(15,e.B3.I)+"/"+e.B2.F,tl:e.B2.iY+"/"+(e.B3.iX-2),background:"#fff",opacity:0,p:a}),e.ZF.style.cursor="pointer",e.paint_(),e.IK||e.bind())):(e.B2.iX=n.iX-e.B2.I-1+e.BK,e.B2.iY=n.iY+e.BJ,e.B2.F=n.F,e.bYX?(e.B3.F=ZC._i_(ZC.BQ(4,e.B2.F*((i.A1-i.W)/(i.DN-i.D4)))),i.D4===i.W?i.AW?e.B3.iY=e.B2.iY:e.B3.iY=e.B2.iY+e.B2.F-e.B3.F:i.DN===i.A1?i.AW?e.B3.iY=e.B2.iY+e.B2.F-e.B3.F:e.B3.iY=e.B2.iY:i.AW?e.B3.iY=ZC._i_(e.B2.iY+e.B2.F*(i.W-i.D4)/(i.DN-i.D4)):e.B3.iY=ZC._i_(e.B2.iY+e.B2.F-e.B3.F-e.B2.F*(i.W-i.D4)/(i.DN-i.D4))):(e.B3.F=ZC._i_(ZC.BQ(4,e.B2.F*((t.BD-t.AZ)/(t.GV-t.FS)))),t.FS===t.AZ?t.AW?e.B3.iY=e.B2.iY:e.B3.iY=e.B2.iY+e.B2.F-e.B3.F:t.GV===t.BD?t.AW?e.B3.iY=e.B2.iY+e.B2.F-e.B3.F:e.B3.iY=e.B2.iY:t.AW?e.B3.iY=ZC._i_(e.B2.iY+e.B2.F*(t.AZ-t.FS)/(t.GV-t.FS)):e.B3.iY=ZC._i_(e.B2.iY+e.B2.F-e.B3.F-e.B2.F*(t.AZ-t.FS)/(t.GV-t.FS))),ZC.AM(e.K+"-handle")?(ZC.A5("#"+e.K+"-bar").css("left",e.B2.iX+"px"),ZC.A5("#"+e.K+"-handle").css("top",e.B3.iY+"px").css("left",e.B2.iX+"px").css("height",ZC.BQ(15,e.B3.F)+"px"),e.paint_()):(e.AAF=ZC.Q.I4({cls:"zc-abs zc-scroll zc-scroll-y-bar "+e.C.K+"-scroll-y-bar",id:e.K+"-bar",wh:e.B2.I+"/"+e.B2.F,tl:e.B2.iY+"/"+e.B2.iX,opacity:0,p:a}),e.ZG=ZC.Q.I4({cls:"zc-abs zc-scroll zc-scroll-y-handle "+e.C.K+"-scroll-y-handle",id:e.K+"-handle",wh:e.B2.I+"/"+ZC.BQ(15,e.B3.F),tl:e.B3.iY-2+"/"+e.B2.iX,background:"#fff",opacity:0,p:a}),e.ZG.style.cursor="pointer",e.paint_(),e.IK||e.bind()))},zoom:function(e){for(var i,t,n,a=this,l={graphid:a.C.K,zooming:e,scroll:!0},o=a.C.BO,r=a.C.BW("k")[0],s=a.C.BW("v")[0],A=0,C=o.length;At.C.P.iX+t.C.P.I&&(i.iX=t.C.P.iX+t.C.P.I-i.I),i.iXt.C.P.iY+t.C.P.F&&(i.iY=t.C.P.iY+t.C.P.F-i.F),i.iY1)&&(e.A79=e.G.KP.join(","),e.G.KP.push("skip_context_menu","skip_objects_tracking","skip_segment_tracking","skip_marker_tracking","skip_interactivity"),e.G.H3)){e.G.H3.C=e.C,e.G.H3.parse();for(var l=a.target;l&&"BODY"!==l.tagName.toUpperCase();){if(-1!==ZC.Q.TB(l).indexOf("zc-"+e.AF+"-handle"))break;l=l.parentNode}if((ZC.mobile||!(a.which>1))&&l){var o=ZC.Q.MJ(a),r=ZC.A5("#"+i+"-top").offset();if("scroll-x"===e.AF||"scroll-yi"===e.AF){var s=o[0]-r.left;t=s-e.B3.iX}else{var A=o[1]-r.top;n=A-e.B3.iY}return ZC.A5(document.body).bind("mousemove touchmove",e.RI),ZC.A5(document.body).bind("mouseup touchend",e.MA),e.IK=!0,!1}}},e.RI=function(a){if(e.IK){e.setScrollingFlag(!1);var l=ZC.Q.MJ(a),o=ZC.A5("#"+i+"-top").offset();if("scroll-x"===e.AF||"scroll-yi"===e.AF){var r=l[0]-o.left;r-te.B2.iX+e.B2.I&&(r>e.B2.iX+e.B2.I+15&&e.overscroll("scroll-x-right"),r=e.B2.iX+e.B2.I+t-e.B3.I),e.update(r-t)}else{var s=l[1]-o.top;s-ne.B2.iY+e.B2.F&&(s>e.B2.iY+e.B2.F+15&&e.overscroll("scroll-y-bottom"),s=e.B2.iY+e.B2.F+n-e.B3.F),e.update(s-n)}}return!1},e.MA=function(i){return e.G.KP=e.A79.split(","),e.IK&&(ZC.A5(document.body).unbind("mousemove touchmove",e.RI),ZC.A5(document.body).unbind("mouseup touchend",e.MA),e.IK=!1,e.setScrollingFlag(!1),i&&e.zoom(!1)),!1},e.RJ=function(t){e.IK=!1,e.setScrollingFlag(!1);var n=ZC.Q.MJ(t),a=ZC.A5("#"+i+"-top").offset();"scroll-x"===e.AF||"scroll-yi"===e.AF?n[0]-a.left>e.B3.iX?e.update(ZC.CY(e.B2.iX+e.B2.I-e.B3.I-2*e.B3.AU,e.B3.iX+(n[0]-a.left-e.B3.iX)/4)):e.update(ZC.BQ(e.B2.iX,n[0]-a.left+(e.B3.iX-n[0]+a.left-e.B3.I)/4)):n[1]-a.top>e.B3.iY?e.update(ZC.CY(e.B2.iY+e.B2.F-e.B3.F-2*e.B3.AU,e.B3.iY+(n[1]-a.top-e.B3.iY)/4)):e.update(ZC.BQ(e.B2.iY,n[1]-a.top+(e.B3.iY-n[1]+a.top-e.B3.F)/4)),e.zoom(!1)},ZC.A5("."+e.C.K+"-"+e.sTypeE+"-handle").bind("mousedown touchstart",e.RH),ZC.A5("."+e.C.K+"-"+e.sTypeE+"-bar").bind("click",e.RJ)}};ZC.ZQ=ZC.CZ.CC(ZQ);var WX={$i:function(e,i){this.b(e);var t=this;t.BE=e,t.IK=!1,t.Z=null,t.A79="",t.KU=1,t.H4=1,t.AF="scroll-"+(i||"y")},parse:function(){var e,i=this;i.K=i.BE.K+"-legend-"+i.AF;var t=i.BE.A.G.B6,n="("+i.BE.A.AF+")";i.B2=new ZC.HS(i.BE),t.load(i.B2.o,[n+".legend.scroll.bar",i.AF+".bar"]),null!==ZC._n_(e=i.o.bar)&&i.B2.append(e),i.B2.parse(),i.B3=new ZC.HS(i.BE),t.load(i.B3.o,[n+".legend.scroll.handle",i.AF+".handle"]),null!==ZC._n_(e=i.o.handle)&&i.B3.append(e),i.B3.parse()},paint:function(){var e,i=this;if(!i.IK){i.Z=ZC.AM(i.BE.A.K+"-legend-scroll-c");var t=ZC.AM(i.G.K+"-top");"scroll-y"===i.AF?(i.B2.iX=i.BE.iX+i.BE.I-i.B2.I-1,i.B2.iY=i.BE.EJ,i.B2.F=i.BE.F-(i.BE.KM?i.BE.KM.F:0)-(i.BE.EJ-i.BE.iY),e=Math.ceil(i.BE.B8.length/i.H4-i.BE.EI/i.H4)+1,i.B3.F=i.B2.F/e,i.B3.iY=i.B2.iY,0!==i.BE.D6.min&&(i.B3.iY+=i.BE.D6.min/i.H4*i.B3.F),ZC.AM(i.K+"-legend-handle")?(ZC.A5("#"+i.K+"-legend-handle").css("left",i.B2.iX+"px").css("top",i.B3.iY+"px").css("height",i.B3.F-0*i.B3.AU+"px"),ZC.A5("#"+i.K+"-legend-bar").css("left",i.B2.iX+"px").css("top",i.B2.iY+"px"),ZC.A5("#"+i.BE.K+"-frame").css("left",i.BE.iX+"px").css("top",i.BE.EJ+"px"),i.paint_()):(i.AAF=ZC.Q.I4({cls:"zc-abs zc-scroll zc-scroll-y-bar "+i.BE.K+"-scroll-y-legend-bar",id:i.K+"-legend-bar",wh:i.B2.I+"/"+i.B2.F,tl:i.B2.iY+"/"+i.B2.iX,background:"#fff",opacity:0,zidx:1,p:t}),i.ZG=ZC.Q.I4({cls:"zc-abs zc-scroll zc-scroll-y-handle "+i.BE.K+"-scroll-y-legend-handle",id:i.K+"-legend-handle",wh:i.B2.I-0*i.B3.AU+"/"+(i.B3.F-0*i.B3.AU),tl:i.B3.iY+"/"+i.B2.iX,background:"#fff",opacity:0,zidx:1,p:t}),i.ZG.style.cursor="pointer",i.paint_())):"scroll-x"===i.AF&&(i.B2.iX=i.BE.iX,i.B2.iY=i.BE.iY+i.BE.F-i.B2.F-1,i.B2.I=i.BE.I,e=Math.ceil(i.BE.B8.length/i.KU-i.BE.EI/i.KU)+1,i.B3.I=i.B2.I/e,i.B3.iX=i.B2.iX,0!==i.BE.D6.min&&(i.B3.iX+=i.BE.D6.min/i.KU*i.B3.I),ZC.AM(i.K+"-legend-handle")?(ZC.A5("#"+i.K+"-legend-handle").css("left",i.B3.iX+"px").css("top",i.B2.iY+"px").css("width",i.B3.I-0*i.B3.AU+"px"),ZC.A5("#"+i.K+"-legend-bar").css("left",i.B2.iX+"px").css("top",i.B2.iY+"px"),ZC.A5("#"+i.BE.K+"-frame").css("left",i.BE.iX+"px").css("top",i.BE.EJ+"px"),i.paint_()):(i.AAE=ZC.Q.I4({cls:"zc-abs zc-scroll zc-scroll-x-bar "+i.BE.K+"-scroll-x-legend-bar",id:i.K+"-legend-bar",wh:i.B2.I+"/"+i.B2.F,tl:i.B2.iY+"/"+i.B2.iX,background:"#fff",opacity:0,zidx:1,p:t}),i.ZF=ZC.Q.I4({cls:"zc-abs zc-scroll zc-scroll-x-handle "+i.BE.K+"-scroll-x-legend-handle",id:i.K+"-legend-handle",wh:i.B3.I-0*i.B3.AU+"/"+(i.B2.F-0*i.B3.AU),tl:i.B2.iY+"/"+i.B3.iX,background:"#fff",opacity:0,zidx:1,p:t}),i.ZF.style.cursor="pointer",i.paint_())),ZC.move||i.bind()}},paint_:function(){var e,i,t=this;"scroll-y"===t.AF?((e=new ZC.HS(t)).K=t.BE.K+"-scroll-y-legend-bar",e.copy(t.B2),e.Z=t.Z,e.iX=t.B2.iX,e.iY=t.B2.iY,e.I=t.B2.I,e.F=t.B2.F,e.paint(),(i=new ZC.HS(t)).K=t.BE.K+"-scroll-y-legend-handle",i.copy(t.B3),i.Z=t.Z,i.iX=t.B2.iX,i.iY=t.B3.iY,i.I=t.B3.I,i.F=t.B3.F,i.paint()):"scroll-x"===t.AF&&((e=new ZC.HS(t)).K=t.BE.K+"-scroll-x-legend-bar",e.copy(t.B2),e.Z=t.Z,e.iX=t.B2.iX,e.iY=t.B2.iY,e.I=t.B2.I,e.F=t.B2.F,e.paint(),(i=new ZC.HS(t)).K=t.BE.K+"-scroll-x-legend-handle",i.copy(t.B3),i.Z=t.Z,i.iX=t.B3.iX,i.iY=t.B2.iY,i.I=t.B3.I,i.F=t.B2.F,i.paint())},update:function(e){var i,t,n,a,l,o,r=this,s=r.BE;if("scroll-y"===r.AF){if(er.B3.iX&&!1,e===r.B3.iX)return;r.B3.iX=e,ZC.A5("#"+r.K+"-legend-handle").css("left",e+"px"),i=r.B3.iX-r.B2.iX,a=Math.ceil(s.B8.length/r.KU-s.EI/r.KU)+1,t=r.B2.I/a,o=r.KU}n=Math.round(i/t),l=s.B8.length-s.EI,s.B8.length%o&&(l+=o-s.B8.length%o),s.D6.min=Math.min(n*o,l),s.D6.max=s.D6.min+s.EI,s.WF(),s.clear(!1),s.parse(),s.paint(),r.paint_()},unbind:function(){var e=this;ZC.A5("."+e.BE.K+"-"+e.AF+"-legend-handle").unbind("mousedown touchstart",e.RH),ZC.A5("."+e.BE.K+"-"+e.AF+"-legend-bar").unbind("click",e.RJ)},bind:function(){var e=this,i=e.G.K,t=0,n=0;e.RH=function(a){if(a.preventDefault(),!(a.button>1)){for(var l=a.target;l&&"BODY"!==l.tagName.toUpperCase();){if(-1!==ZC.Q.TB(l).indexOf("zc-"+e.AF+"-handle"))break;l=l.parentNode}if((ZC.mobile||!(a.which>1))&&l){var o=ZC.Q.MJ(a),r=ZC.A5("#"+i+"-top").offset();if("scroll-y"===e.AF){var s=o[1]-r.top;n=s-e.B3.iY}else if("scroll-x"===e.AF){var A=o[0]-r.left;t=A-e.B3.iX}return ZC.A5(document.body).bind("mousemove touchmove",e.RI),ZC.A5(document.body).bind("mouseup touchend",e.MA),e.IK=!0,!1}}},e.RI=function(a){if(e.IK){var l=ZC.Q.MJ(a),o=ZC.A5("#"+i+"-top").offset();if("scroll-y"===e.AF){var r=l[1]-o.top;r-ne.B2.iY+e.B2.F&&(r=e.B2.iY+e.B2.F+n-e.B3.F),e.update(r-n)}else if("scroll-x"===e.AF){var s=l[0]-o.left;s-te.B2.iX+e.B2.I&&(s=e.B2.iX+e.B2.I+t-e.B3.I),e.update(s-t)}}return!1},e.MA=function(){return e.G.KP=e.A79.split(","),e.IK&&(ZC.A5(document.body).unbind("mousemove touchmove",e.RI),ZC.A5(document.body).unbind("mouseup touchend",e.MA),e.IK=!1,e.bind()),!1},e.A3U=function(i){(i.detail?-120*i.detail:i.wheelDelta)/120>0?e.update(ZC.BQ(e.B2.iY,e.B3.iY-e.B3.F)):e.update(ZC.CY(e.B2.iY+e.B2.F-e.B3.F,e.B3.iY+e.B3.F))},e.RJ=function(t){e.IK=!0;var n=ZC.Q.MJ(t),a=ZC.A5("#"+i+"-top").offset();"scroll-y"===e.AF?n[1]-a.top>e.B3.iY?e.update(ZC.CY(e.B2.iY+e.B2.F-e.B3.F,e.B3.iY+e.B3.F)):e.update(ZC.BQ(e.B2.iY,e.B3.iY-e.B3.F)):"scroll-x"===e.AF&&(n[0]-a.left>e.B3.iX?e.update(ZC.CY(e.B2.iX+e.B2.I-e.B3.I,e.B3.iX+e.B3.I)):e.update(ZC.BQ(e.B2.iX,e.B3.iX-e.B3.I))),e.IK=!1},ZC.A5("."+e.BE.K+"-"+e.AF+"-legend-handle").bind("mousedown touchstart",e.RH),ZC.A5("."+e.BE.K+"-"+e.AF+"-legend-bar").bind("click",e.RJ)}};ZC.WX=ZC.CZ.CC(WX);var V5={$i:function(e){this.b(e);var i=this;i.OG="legend",i.B8=null,i.Q5=null,i.N4="x1",i.I1="hide",i.R3="",i.PU="",i.UU=!1,i.V2=!1,i.TQ="none",i.UI="header",i.EI=9999,i.D3=null,i.BR=null,i.ZD=null,i.A2=null,i.NN=null,i.FP=null,i.KM=null,i.QF=0,i.MI=0,i.YM=!0,i.EJ=0,i.GP=0,i.sAlign="",i.K0="",i.D6={enabled:!1,min:-1,max:-1,page:-1,pages:-1},i.M5=!1,i.NC=!1,i.ND=-1,i.PT=!1,i.A4X=1,i.WW=0,i.LG=!1,i.XP=!1,i.YT=!1,i.XR=[]},highlightItem:function(e){var i,t=this,n=!1,a=ZC.move,l=t.LG;-1!==e&&(l=t.LG||t.A.B0.A3[e].LG),t.o.item&&null!==ZC._n_(i=t.o.item["highlight-item"])&&(n=ZC._b_(i),null===ZC._n_(t.o["highlight-legend"])&&null===t.A.B0.A3[e].o["highlight-legend"]&&(l=n)),(n||l)&&(n&&(t.E["highlight-item"]=e),l&&(t.E["highlight-legend"]=ZC._i_(e)),t.scrollTo(ZC._i_(e)),t.WF(),t.clear(!0,!1),t.YM=!0,t.parse(),t.fixPlacement(!0),t.paint(),ZC.move=a)},scrollTo:function(e){var i,t,n=this,a=!1;if(n.D3)return e>=0&&(e=n.D6.max)&&(a=!0,"scroll"===n.TQ?(e%(t="scroll-y"===n.D3.AF?n.D3.H4:n.D3.KU)&&(e-=e%t),n.D6.min=e,n.D6.max=e+n.EI,n.D6.max>n.B8.length&&(n.D6.min=n.B8.length-n.EI,n.B8.length%t&&(n.D6.min=n.D6.min+(t-n.B8.length%t)),n.D6.max=n.B8.length)):"page"===n.TQ&&(i=Math.floor(e/n.EI),n.D6.min=i*n.EI,n.D6.max=n.D6.min+n.EI,n.D6.page=i+1)),a},parse:function(){var e,i,t,n,a=this;if(a.E["force-margins"]=!0,a.QF=0,a.MI=0,null!==ZC._n_(e=a.A.A.E["graph-"+a.A.K+"-legend-info"])&&(null!==ZC._n_(e.x)&&(a.o.x=e.x-a.A.iX),null!==ZC._n_(e.y)&&(a.o.y=e.y-a.A.iY)),ZC.move)a.FP&&a.FP.parse(),a.KM&&a.KM.parse();else{n=a.A.G.B6;var l="("+a.A.AF+")";a.b(),a.assign_a([["collapse","M5","b"],["minimize","UU","b"],["draggable","V2","b"],["shared","PT","b"],["overflow","TQ"],["max-items","EI","i"],["group","A4X","i"],["drag-handler","UI"],["highlight-plot","WW","b"],["highlight-legend","LG","b"],["align","sAlign"],["vertical-align","K0"]]),a.M5&&!a.UU&&(a.M5=!1),zingchart.DEV.MEDIARULES&&(a.E["forced-align-position"]||(a.alignPosition({align:a.sAlign,"vertical-align":a.K0,layout:a.N4}),a.E["forced-align-position"]=!0)),a.WW&&null===ZC._n_(a.o["highlight-legend"])&&(a.LG=a.WW),a.BR=new ZC.DP(a),n.load(a.BR.o,l+".legend.item"),a.o.item&&null===ZC._n_(a.o.item.visible)&&(a.o.item.visible=!0),a.BR.append(a.o.item),a.BR.parse(),a.ZD=new ZC.DP(a),n.load(a.ZD.o,l+".legend.item-off"),a.o["item-off"]&&null===ZC._n_(a.o["item-off"].visible)&&(a.o["item-off"].visible=!0),a.ZD.append(a.o["item-off"]),a.ZD.parse(),a.A2=new ZC.DR(a),n.load(a.A2.o,l+".legend.marker"),a.o.marker&&null===ZC._n_(a.o.marker.visible)&&(a.o.marker.visible=!0),a.A2.append(a.o.marker),a.A2.E.type="default",a.A2.E["show-marker"]=!0,a.A2.E["show-line"]=!1,null!==ZC._n_(e=a.A2.o.type)&&(a.A2.E.type=e),null!==ZC._n_(e=a.A2.o["show-line"])&&(a.A2.E["show-line"]=ZC._b_(e)),null!==ZC._n_(e=a.BR.o["marker-style"])&&(a.A2.E.type=e),null!==ZC._n_(e=a.BR.o["show-line"])&&(a.A2.E["show-line"]=ZC._b_(e)),null!==ZC._n_(e=a.BR.o["show-marker"])&&(a.A2.o.visible=ZC._b_(e)),a.A2.parse(),a.NN=new ZC.DR(a),n.load(a.NN.o,l+".legend.marker-off"),a.o["marker-off"]&&(a.o["marker-off"].visible=!0),a.NN.append(a.o["marker-off"]),a.NN.E.type="default",a.NN.E["show-marker"]=!0,a.NN.E["show-line"]=!1,null!==ZC._n_(e=a.NN.o.type)&&(a.NN.E.type=e),null!==ZC._n_(e=a.NN.o["show-line"])&&(a.NN.E["show-line"]=ZC._b_(e)),null!==ZC._n_(e=a.BR.o["marker-style"])&&(a.NN.E.type=e),null!==ZC._n_(e=a.BR.o["show-line"])&&(a.NN.E["show-line"]=ZC._b_(e)),null!==ZC._n_(e=a.BR.o["show-marker"])&&(a.NN.o.visible=ZC._b_(e)),a.NN.parse(),(null!==ZC._n_(e=a.o.header)||a.V2||a.UU)&&(a.FP=new ZC.DP(a),a.FP.OG="legendheader",a.FP.GM="zc-legend-item "+a.K+"-header",a.FP.K=a.K+"-header",n.load(a.FP.o,l+".legend.header"),a.FP.o.text=a.FP.o.text||" ",a.FP.append(e),a.FP.parse(),a.FP.AO||(a.FP=null)),null!==ZC._n_(e=a.o.footer)&&(a.KM=new ZC.DP(a),a.KM.OG="legendfooter",a.KM.GM="zc-legend-item "+a.K+"-footer",a.KM.K=a.K+"-footer",n.load(a.KM.o,l+".legend.footer"),a.KM.append(e),a.KM.parse(),a.KM.AO||(a.KM=null));var o=a.A.B0.A3;null!==ZC._n_(e=a.o.layout)?a.N4=e:25*o.length>a.A.F&&(a.N4="x"+Math.ceil(25*o.length/a.A.F)),null!==ZC._n_(e=a.o["toggle-action"])&&(a.I1=e),a.R3=a.PU=a.I1,null!==ZC._n_(a.o.item)&&null!==ZC._n_(e=a.o.item["toggle-action"])&&(a.R3=e),null!==ZC._n_(a.o.marker)&&null!==ZC._n_(e=a.o.marker["toggle-action"])&&(a.PU=e);var r=function(e){if(o[i]&&o[i].FM(0)){var t=ZC.AP.O7(a.BR.o,o[i].o);e=o[i].FM(0).JZ(e,t)}return e},s=[];a.B8=[];var A=0;for(i=0,t=o.length;ia.D6.pages&&(a.D6.page=a.D6.pages,a.D6.min=(a.D6.page-1)*a.EI,a.D6.max=a.D6.page*a.EI-1),a.D6.page=ZC.CY(a.D6.page,a.D6.pages)):"scroll"===a.TQ?(e=a.A.E["legend-info"])?(a.D6.min=e.min,a.D6.max=e.max,a.D6.page=e.page):(a.D6.min=0,a.D6.max=a.EI,a.D6.page=1):(a.D6.min=0,a.D6.max="hidden"===a.TQ?a.EI:a.B8.length,a.D6.page=1),a.WF(!1),a.B8.sort(function(e,i){return e.E.order-i.E.order}),a.o["reverse-series"]&&a.B8.reverse();var u=.9*a.A.I;null!==ZC._n_(a.o.width)&&(u=a.I);var p=0,Z=0,h=-ZC.MAX,d=-ZC.MAX,f=a.A2.E["show-line"]?3:2,_=0,g=1,v=1;if("float"===a.N4){for(i=0,t=a.B8.length;i=a.D6.max||a.NC)&&a.B8[i].AO){var B=a.B8[i].I+a.B8[i].DZ+a.B8[i].E8+f*a.B8[i].DH;d=ZC.BQ(d,a.B8[i].F+a.B8[i].E9+a.B8[i].DU),p+B>u?(h=ZC.BQ(h,p),Z+=d,p=B,d=ZC.BQ(d,a.B8[i].F+a.B8[i].E9+a.B8[i].DU)):p+=B}h=ZC.BQ(h,p),d!==-ZC.MAX&&(Z+=d),h!==-ZC.MAX&&(p=h)}else{var b=0;for(i=0,t=a.B8.length;i=a.D6.max||a.NC||(b+=a.B8[i].AO?1:0);var m=ZC.AQ.A2G(a.N4,b);for(g=m[0],v=m[1],i=0,t=a.B8.length;i=a.D6.max||a.NC)&&("scroll"!==a.TQ||_<=a.EI)||a.B8[i].AO&&(h=ZC.BQ(h,a.B8[i].I+a.B8[i].DZ+a.B8[i].E8+f*a.B8[i].DH),d=ZC.BQ(d,a.B8[i].F+a.B8[i].E9+a.B8[i].DU),1===v&&(Z+=a.B8[i].F+a.B8[i].E9+a.B8[i].DU));p=v*h,Z=g*d}if("page"===a.TQ&&_>a.EI&&(a.D6.enabled=!0),"scroll"===a.TQ&&_>a.EI&&(a.D3||(!g||g>v?(a.D3=new ZC.WX(a,"y"),n.load(a.D3.o,".scroll-y")):(a.D3=new ZC.WX(a,"x"),n.load(a.D3.o,".scroll-x")),a.D3.append(a.o.scroll),a.D3.KU=g,a.D3.H4=v,a.D3.parse()),a.NC||("scroll-y"===a.D3.AF?p+=a.D3.B2.I:Z+=a.D3.B2.F)),a.FP){var E=a.FP.I;a.V2&&"icon"===a.UI?(E+=15,a.UU&&(E+=25)):a.UU&&(E+=15),p=ZC.BQ(p,E)}a.KM&&(p=ZC.BQ(p,a.KM.I));var D=!1,F=!1;if(null===ZC._n_(a.o.width)&&(a.o.width=p,D=!0),null===ZC._n_(a.o.height)&&(a.o.height=Z,F=!0),a.iX=-1,a.iY=-1,!ZC.move&&a.FP&&null!==ZC._n_(e=a.A.A.E["legend"+a.A.L+"-xy-ratio"])){a.locate();var K=a.I+a.ER+a.FO,x=a.F+a.FJ+a.FX,I=a.PT?a.A.A:a.A;a.iX=I.I*e[0],a.iX=ZC.BQ(a.iX,1.1),a.o.x=a.iX=ZC.CY(a.iX,I.I-K-2),a.iY=(I.F-a.FP.F)*e[1],a.iY=ZC.BQ(a.iY,1.1),a.o.y=a.iY=ZC.CY(a.iY,I.F-x-a.FP.F-2)}if(a.locate(),null!==ZC._n_(a.o.position)&&"undefined"!=typeof a.E["position-info"]?(a.E["position-info"][0]>.5&&(a.QF+=a.ER+a.FO),a.E["position-info"][1]>.5?a.MI+=a.FJ+a.FX:(a.FP&&(a.MI-=a.FP.F),a.KM&&(a.MI-=a.KM.F),a.D6&&a.D6.enabled&&(a.MI-=20))):((0===a.A.iX||a.iX+a.I/2>a.A.iX+a.A.I/2)&&(a.QF+=a.ER+a.FO),(0===a.A.iY||a.iY+a.F/2>a.A.iY+a.A.F/2)&&(a.MI+=a.FJ+a.FX)),!ZC.move&&(e=a.A.A.E["graph-"+a.A.K+"-legend-info"])&&(e.x&&(a.iX=e.x),e.y&&(a.iY=e.y)),a.GP=a.F,a.EJ=a.iY,a.FP&&(a.F+=a.FP.F,a.EJ+=a.FP.F,a.MI+=a.FP.F),a.KM&&(a.F+=a.KM.F,a.MI+=a.KM.F),a.D6.enabled&&!a.NC){var y=new ZC.DP(a);y.AN=" ",y.append(a.o["page-status"]),null!==ZC._n_(y.o.text)&&""!==y.o.text||(y.o.text="#"),y.parse(),a.F+=y.F+4,a.MI+=y.F+4}D&&(a.o.width=null),F&&(a.o.height=null),a.NC||(a.I+=a.ER+a.FO,a.F+=a.FJ+a.FX),a.E["default-width"]&&(a.I=a.E["default-width"])}},alignPosition:function(e){var i=this;if(null!==ZC._n_(e)){var t=i.A.G.B6.B6.graph.legend,n=e.align||t.align,a=e["vertical-align"]||t["vertical-align"],l=e.layout||t.layout;(n||a)&&("center"===n?(null===ZC._n_(i.o.layout)&&(l=i.o.layout="horizontal"),i.o.position="50% "):i.o.position="left"===n?"0% ":"100% ",i.o.position+="middle"===a?"50%":"bottom"===a?"100%":"0%","horizontal"!==l&&"middle"!==a||(i.o["adjust-layout"]=!0))}},WF:function(e){var i=this;void 0===e&&(e=!0),i.A.E["legend-info"]={collapsed:i.NC,min:i.D6.min,max:i.D6.max,page:i.D6.page},e&&(i.A.A.E["graph-"+i.A.K+"-legend-info"]={x:i.iX,y:i.iY})},clear:function(e,i){null===ZC._n_(e)&&(e=!1),null===ZC._n_(i)&&(i=!1);var t=this,n=t.A.K+"-legend-",a=null;ZC.A5("."+n+"item",a).remove(),ZC.A5("."+n+"header",a).remove(),ZC.A5("."+n+"footer",a).remove(),ZC.A5("#"+n+"page-status",a).remove(),e&&!i||(ZC.move||t.unbind(),ZC.A5("."+n+"page-area",a).remove(),ZC.A5("."+n+"header-area",a).remove(),ZC.A5("."+n+"item-area",a).remove(),ZC.A5("."+n+"marker-area",a).remove()),ZC.move?ZC.Q.IV(ZC.AM(n+"c"),t.A.G.AD,t.A.iX,t.A.iY,t.A.I,t.A.F):ZC.Q.IV(ZC.AM(n+"c"),t.A.G.AD,t.iX-2*t.AU-2*t.JW,t.iY-2*t.AU-2*t.JW,t.I+4*t.AU+4*t.JW,t.F+4*t.AU+4*t.JW),t.D3&&ZC.Q.IV(ZC.AM(n+"scroll-c"),t.A.G.AD,t.A.iX,t.A.iY,t.A.I,t.A.F)},unbind:function(){var e=this;ZC.A5("#"+e.K+"-frame").die(ZC.Q.C1("mouseover"),e.zc_legend_mouseover).die(ZC.Q.C1("mouseout"),e.zc_legend_mouseout),ZC.A5("#"+e.K+"-move-area").die(ZC.Q.C1("mousedown"),e.Z7),ZC.A5("#"+e.K+"-minimize-area").die(ZC.Q.C1("click"),e.Y3),ZC.A5("."+e.K+"-page-area").die(ZC.Q.C1("click"),e.Z0),e.D3&&e.D3.unbind(),e.BR&&e.BR.o.reorder&&ZC.A5("."+e.A.K+"-legend-item-area").die("mousedown",e.W8)},fixPlacement:function(e){var i=this;if(i.YM&&null===ZC._n_(i.o.y)||e){if(!i.o.position&&e||(i.iX-=i.QF),i.iX=f.D6.max||f.NC||(v+=f.B8[o].AO?1:0);f.A4V=!0,f.b(),f.FP&&(f.FP.iX=f.iX,f.FP.iY=f.iY,f.FP.I=f.I,f.FP.Z=f.FP.C7=f.Z,f.FP.paint(),ZC.move||"canvas"!==f.A.A.AD&&f.FP.EO(),f.V2&&"icon"===f.UI&&((n=new ZC.DR(f)).Z=f.Z,n.B9="#000",n.B1=1,n.DV="line",n.append(f.o.icon),a=f.FP.iX+f.FP.I-10,l=f.FP.iY+f.FP.F/2,n.D=[[a-7,l],[a+7,l],null,[a,l-7],[a,l+7],null,[a-6,l-1],[a-6,l+1],null,[a-5,l-2],[a-5,l+2],null,[a+6,l-1],[a+6,l+1],null,[a+5,l-2],[a+5,l+2],null,[a-1,l-6],[a+1,l-6],null,[a-2,l-5],[a+2,l-5],null,[a-1,l+6],[a+1,l+6],null,[a-2,l+5],[a+2,l+5]],n.parse(),n.paint()),f.UU&&((t=new ZC.DR(f)).Z=f.Z,t.B9=ZC.AP.AAC(f.A0,"#fff","#000"),t.B1=1,t.append(f.o.icon),t.DV="line",a=f.FP.iX+f.FP.I-10-(f.V2&&"icon"===f.UI?20:0),l=f.FP.iY+f.FP.F/2,t.D=[[a-7,l-2],[a+2,l-2],[a+2,l+7],[a-7,l+7],[a-7,l-2],[a+2,l-2],null,[a-4,l-5],[a+5,l-5],[a+5,l+4],[a-4,l+4],[a-4,l-5],[a+5,l-5]],t.parse(),t.paint())),f.KM&&(f.KM.iX=f.iX,f.KM.iY=f.iY+f.F-f.KM.F,f.KM.I=f.I,f.KM.Z=f.KM.C7=f.Z,f.KM.paint(),ZC.move||"canvas"!==f.A.A.AD&&f.KM.EO());var B=ZC.AQ.A2G(f.N4,v),b=B[0],m=B[1],E=f.I/m,D=f.GP/b,F=0,K=0;f.Q5=[];var x,I=0,y=-ZC.MAX,w=f.A2.E["show-line"]?3:2,M=null,Y=function(i){var t=i;if(null===ZC._n_(e)&&(e=0),g[x]&&g[x].S[e]){var n=ZC.AP.O7(f.BR.o,g[x].o);i=g[x].FM(e).JZ(i,n)}return f.XP=f.XP||i!==t,i},X=0;for(f.XP=!1,o=0,r=f.B8.length;o=f.D6.max||f.NC)){var L=new ZC.DP(f);L.copy(f.B8[o]),f.E["highlight-legend"]===o&&(L.append({bold:!0}),null!==ZC._n_(f.o.item)&&L.append(f.o.item["highlight-state"])),x=L.E.index;var G=new ZC.DP(f);G.OG="legenditem",G.K=f.K+"-item_"+x,G.GM="zc-legend-item "+f.K+"-item",G.copy(L),f.A.E["plot"+x+".visible"]&&"off"!==g[x].o["legend-status"]||G.append(f.ZD.o),G.append(g[x].o["legend-item"]),G.JZ=Y,G.parse(),G.AO?("float"===f.N4?(y=ZC.BQ(y,L.F),null===ZC._n_(M)?(L.iX=f.iX+f.ER+L.DZ+w*L.DH,L.iY=f.EJ+f.FJ+L.E9,I=f.EJ):(L.iX=M.iX+M.I+M.E8+L.DZ+w*L.DH,ZC._i_(L.iX+L.I+L.E8)>ZC._i_(f.iX+f.I)&&(L.iX=f.iX+f.ER+L.DZ+w*L.DH,I+=y+L.E9+L.DU,y=-ZC.MAX),L.iY=I+f.FJ+L.E9)):(L.iX=f.iX+(0===K?f.ER:0)+K*E+L.DZ+w*L.DH,L.iY=f.EJ+f.FJ+F*D+L.E9,++K===m&&(K=0,F++)),M=L,G.iX=L.iX=ZC._i_(L.iX),G.iY=L.iY=ZC._i_(L.iY),G.Z=G.C7=f.Z,G.iX+=f.BK,G.iY+=f.BJ,x===f.ND&&(f.E["calculate-y"]&&(f.E["calculate-y"]=!1,f.E["dragged-offset-y"]=f.E["dragged-y"]-G.iY),G.iY=f.E["dragged-y"]-f.E["dragged-offset-y"]-G.DH/4),G.paint(),"undefined"!=typeof f.E.showhide&&null!==ZC._n_(f.E.showhide)||ZC.move||("canvas"!==f.A.A.AD?G.EO():f.XR.push(G))):X++;var P=f.A2.E.type;null!==ZC._n_(i=g[x].o["legend-marker"])&&null!==ZC._n_(i.type)&&(P=i.type);var O,S=!1;switch("match"!==P&&"inherit"!==P||(S=!0,P=null!==ZC._n_(i=g[x].A2.o.type)?i:"default"),-1!==ZC.AV(["default","square"],P)?O=new ZC.HS(f):(O=new ZC.DR(f)).DV=P,O.OG="legendmarker",O.append(f.A2.o),f.A.E["plot"+x+".visible"]&&"off"!==g[x].o["legend-status"]||O.append(f.NN.o),O.NB=g[x].NB,g[x].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[x].A0,O.AE=g[x].AE,O.GS=g[x].GS,O.HO=g[x].HO;break;case"scatter":case"hscatter":case"bubble":case"hbubble":O.A0="-1"!==g[x].A2.A0?g[x].A2.A0:g[x].A0,O.AE="-1"!==g[x].A2.AE?g[x].A2.AE:g[x].AE,O.GS=""!==g[x].A2.GS?g[x].A2.GS:g[x].GS,O.HO=""!==g[x].A2.HO?g[x].A2.HO:g[x].HO;break;default:O.A0=g[x].B9,O.AE=g[x].B9}"line"!==O.DV&&"area"!==O.DV||(O.B9=O.A0,O.B1=2),S&&O.append(g[x].A2.o),O.o["line-style"]="solid",O.o.type=O.DV,O.append(g[x].o["legend-marker"]),S&&(O.o.type=O.DV),O.E["show-marker"]=!0,O.E["show-line"]=!1,null!==ZC._n_(i=O.o["show-line"])&&(O.E["show-line"]=ZC._b_(i)),null!==ZC._n_(i=G.o["show-line"])&&(O.E["show-line"]=ZC._b_(i)),null!==ZC._n_(i=G.o["show-marker"])&&(O.o.visible=ZC._b_(i)),-1!==ZC.AV(["default","square"],P)&&null!==ZC._n_(i=O.o.size)&&(null===ZC._n_(O.o.width)&&(O.o.width=2*ZC._i_(i)),null===ZC._n_(O.o.height)&&(O.o.height=2*ZC._i_(i))),O.K=f.K+"-marker_"+x,O.Z=O.C7=f.Z,O.iX=G.iX-w*G.DH+(w-1)*G.DH/2+G.DH/2,O.iY=G.iY+(G.F-G.DH)/2+G.DH/2,O.parse(),f.E["highlight-legend"]===o&&(O.append({size:O.AI+1,width:O.I+2,height:O.F+2}),g[x]&&g[x].S[e]&&g[x].S[e].GK&&O.append({A0:g[x].S[e].GK.A0,AE:g[x].S[e].GK.AE}),null!==ZC._n_(f.o.marker)&&O.append(f.o.marker["highlight-state"]),O.parse()),"line"===O.DV?(O.o.points=[[O.iX-1.75*O.AI,O.iY],[O.iX+1.75*O.AI,O.iY]],O.parse()):"area"===O.DV&&(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 N=O.iX+O.BK,k=O.iY+O.BJ;if(-1!==ZC.AV(["default","square"],P)&&(O.iX-=O.I/2,O.iY-=O.F/2),f.A.E["plot"+x+".visible"]&&"off"!==g[x].o["legend-status"]||(O.C5/=4),G.AO&&O.E["show-line"]){var z=ZC.Q.ED(f.Z,f.A.G.AD),Q=new ZC.CZ(f);Q.Z=f.Z,Q.copy(g[x]),Q.o["line-style"]=f.A2.GE,Q.append(g[x].o),Q.append(f.A2.o),Q.append(g[x].o["legend-item"]),Q.append(g[x].o["legend-marker"]),Q.o["top-state"]=null,Q.o["bottom-state"]=null,Q.parse(),f.A.E["plot"+x+".visible"]||(Q.C5=.25);var V=[],J=O.AO?2:1;s="box"===O.DV?O.I/2:O.AI,V.push([N-J*s-(Q.B1>1?1:0),k-(Q.B1>1?.5:0)]),V.push([N+J*s,k-(Q.B1>1?.5:0)]),Q.D0=!0,ZC.CN.paint(z,Q,V)}x===f.ND&&(O.iY=f.E["dragged-y"]-f.E["dragged-offset-y"]/2),O.AO&&G.AO&&O.paint(),f.Q5.push(O);var T=!0;if(null!==ZC._n_(i=f.BR.o.toggle)&&(T=ZC._b_(i)),f.E["item.toggle"]=T,G.AO||O.AO){if(-1===ZC.AV(f.A.G.KP,"skip_interactivity")){var H=O.BK+("box"===O.DV?O.iX+O.I/2:O.iX),R=O.BJ+("box"===O.DV?O.iY+O.F/2:O.iY);s="box"===O.DV?O.I/2:O.AI,A="box"===O.DV?O.F/2:O.AI;var W=(O.E["show-line"]?2:1)*s;ZC.AM(G.K+"-area")||(O.AO&&"disabled"!==f.PU&&"disabled"!==O.o["toggle-action"]&&(ZC.AM(O.K+"-area")||ZC.Q.I4({cls:f.K+"-marker-area zc-legend-marker-area zc-abs",id:O.K+"-area",wh:2*W+"/"+2*A,tl:R-A+"/"+(H-W),opacity:0,background:"#fff",cursor:O.IL,p:_,zidx:1})),G.AO&&"disabled"!==f.R3&&"disabled"!==G.o["toggle-action"]&&(ZC.AM(G.K+"-area")||ZC.Q.I4({cls:f.K+"-item-area zc-legend-item-area zc-abs",id:G.K+"-area",wh:G.I+"/"+G.F,tl:G.iY+G.BJ+"/"+(G.iX+G.BK),opacity:0,background:"#fff",cursor:G.IL,p:_,zidx:1})))}}else g[o].bShowInLegend=!1}if(f.D3&&!f.NC&&(f.D3.paint(),ZC.AM(f.K+"-scroll-c").style.display="block"),f.D3&&f.NC&&(ZC.AM(f.K+"-scroll-c").style.display="none"),f.D6.enabled&&!f.NC){var U=new ZC.DP(f);U.Z=U.C7=f.Z,U.K=f.K+"-page-status",U.AN=ZC.HD["legend-pagination"].replace("%page%",f.D6.page).replace("%pages%",f.D6.pages),U.append(f.o["page-status"]),U.parse(),f.I1?ee["background-color"]:$["background-color"],c.append(f.D6.page>1?f.o["page-on"]:f.o["page-off"]),C=f.iX+f.I/2-U.I/2-6,u=U.iY+U.F/2,c.parse(),c.AI=ZC.BQ(c.AI,8),d=ZC._i_(.75*c.AI),c.D=[[C,u-d],[C,u+d],[C-c.AI,u],[C,u-d]],c.parse(),c.AO&&c.paint(),(Z=new ZC.DR(f)).Z=Z.C7=f.Z,Z.K=f.K+"-page-next",Z.A0=Z.AE=f.D6.page1&&ZC.Q.I4({cls:f.K+"-page-area zc-legend-page-area zc-abs",id:f.K+"-page-prev-area",wh:c.AI+"/"+2*c.AI,tl:ZC._i_(u+c.BJ-c.AI)+"/"+ZC._i_(C+c.BK-c.AI),opacity:0,p:_,zidx:1}),f.D6.page1)){f.A.A.E["graph-"+f.A.K+"-legend-info"]=null;var i=ZC.Q.MJ(e),t=ZC.A5("#"+f.A.A.K+"-top").offset();f.OV=i[0]-t.left-f.FP.iX,f.A03=i[1]-t.top-f.FP.iY,f.oldcursor=document.body.style.cursor,document.body.style.cursor="move",ZC.A5(document.body).bind(ZC.Q.C1("mousemove"),f.Z8),ZC.A5(document.body).bind(ZC.Q.C1("mouseup"),f.A0W)}},f.Z8=function(e){var i=ZC.Q.MJ(e),t=ZC.A5("#"+f.A.A.K+"-top").offset(),n=i[0]-t.left-f.OV,a=i[1]-t.top-f.A03;if(f.PT?(n=ZC.BQ(n,f.G.iX+2),n=ZC.CY(n,f.G.iX+f.G.I-f.I-2),a=ZC.BQ(a,f.G.iY+2),a=ZC.CY(a,f.G.iY+f.G.F-f.F-4)):(n=ZC.BQ(n,f.A.iX+2),n=ZC.CY(n,f.A.iX+f.A.I-f.I-2),a=ZC.BQ(a,f.A.iY+2),a=ZC.CY(a,f.A.iY+f.A.F-f.F-4)),f.PT||(n-=f.A.iX,a-=f.A.iY),f.o.x=n,f.o.y=a,f.o.position=null,f.clear(!0),f.parse(),f.paint(),f.FP){var l=f.PT?f.A.A:f.A;f.A.A.E["legend"+f.A.L+"-xy-ratio"]=[n/l.I,a/(l.F-f.FP.F)]}},f.A0W=function(){ZC.move=!1,document.body.style.cursor=f.oldcursor,delete f.oldcursor,ZC.A5(document.body).unbind(ZC.Q.C1("mousemove"),f.Z8),ZC.A5(document.body).unbind(ZC.Q.C1("mouseup"),f.A0W),f.XR=[],f.clear(!1),f.parse(),f.paint(),f.WF()},f.Z0=function(e){f.E["default-width"]=null,-1!==(e.targetid||e.target.id).indexOf("-page-next-area")?(f.D6.min+=f.EI,f.D6.max+=f.EI,f.D6.page+=1):(f.D6.min-=f.EI,f.D6.max-=f.EI,f.D6.page-=1),(!(i=f.A.A.E["graph-"+f.A.K+"-legend-info"])||null===ZC._n_(i.x)&&null===ZC._n_(i.y))&&(f.iX=null,f.iY=null),f.WF(),f.A.KB()},f.Y3=function(e){var i=f.NC?"legendmaximize":"legendminimize";e&&(f.A.A.E["legend-toggling"]=1),zingchart.exec(f.A.G.K,i,{graphid:f.A.L}),e&&(f.A.A.E["legend-toggling"]=0),e&&(f.A.A.E["g"+f.A.L+"-legend-collapsed"]="legendminimize"===i)},f.MS=function(e){ZC.move=!0;var i=ZC.Q.MJ(e),t=ZC.A5("#"+f.A.A.K+"-top").offset(),n=i[0]-t.left,a=i[1]-t.top;f.E["dragged-x"]=n,f.E["dragged-y"]=a,f.WF(),f.clear(!1),f.parse(),f.paint()},f.W8=function(e){if(e.preventDefault(),f.G.hideCM(),f.IL=document.body.style.cursor,document.body.style.cursor="move",ZC.mobile||!(e.which>1)){var i=new RegExp("-legend-item_([0-9]+)-area","g").exec(e.target.id);i&&(f.E["dragged-offset-y"]=0,f.E["calculate-y"]=!0,f.E["dragged-x"]=0,f.E["dragged-y"]=0,f.ND=ZC._i_(i[1]),f.iDragPos=ZC.AV(f.A.B0.M9,f.ND),ZC.A5(document.body).bind(ZC.Q.C1("mousemove"),f.MS),ZC.A5(document.body).bind(ZC.Q.C1("mouseup"),f.XH))}},f.XH=function(){var e=f.ND,i=f.iDragPos;if(f.ND=-1,f.iDragPos=-1,f.E["calculate-y"]=!1,document.body.style.cursor=f.IL,ZC.move||(e=-1,i=-1),ZC.A5(document.body).unbind(ZC.Q.C1("mousemove"),f.MS),ZC.A5(document.body).unbind(ZC.Q.C1("mouseup"),f.XH),ZC.move&&-1!==e){for(var t=f.A.B0.A3,n=f.A.B0.M9,a=0,l=t.length;af.Q5[s].iY&&(r=s);for(t[e].o["legend-item"].order=-1===r?.5:t[n[r]].o["legend-item"].order+.5,s=0,A=f.Q5.length;si?t[s].o["legend-item"].ordero&&t[s].o["legend-item"].order--:t[s].o["legend-item"].order>t[e].o["legend-item"].order&&t[s].o["legend-item"].orderi?Math.floor(t[e].o["legend-item"].order):Math.ceil(t[e].o["legend-item"].order),s=0,A=f.Q5.length;s=o.left&&ZC.E4[0]<=o.left+zingchart.I2[n].I*l[0]&&ZC.E4[1]>=o.top&&ZC.E4[1]<=o.top+zingchart.I2[n].F*l[1]&&(e=!1)}else window.clearInterval(i.YI);e&&(u(),ZC.JV.GUIDES&&ZC.JV.GUIDES[t]&&ZC.JV.GUIDES[t].active&&(ZC.AP.C0("guide_mouseout",i.G,i.G.FG()),ZC.JV.GUIDES[t].active=!1))},500)),i.QH=function(p){if(zingchart.GUIDE_EV=p,!p.target.id||-1===p.target.id.indexOf("-menu-item-")){var Z,h,d,f,_,g,v,B,b,m,E,D,F,K,x,I,y,w,M,Y,X,L,G,P,O,S,N;ZC.MAX,ZC.MAX;for(Z=0;Z0){i.S5=!0;for(var ie=!1,te=0,ne=k.length;te"),null!==ZC._n_(B.o["footer-text"])&&""===Ce&&(Ce=v.JZ(B.o["footer-text"],E)+"
")),B.AO&&""!==B.AN&&(ZC._b_(B.o["single-text"])?me.push(v.JZ(B.AN,E)):me.push(v.JZ(B.AN,E)+"
"))),B.E.pos=re.length,B.E["node-value"]=v.AB,B.E["marker-x"]=I,B.E["marker-y"]=y,B.E["guide-style"]=v.A8F(),ke){default:null===ZC._n_(B.o.x)?ve.CL?v.iY<=_.iY+_.F/2?(B.iY=y-B.F-P,B.EP="bottom"):(B.iY=y+P,B.EP="top"):v.iX>=_.iX+_.I/2?(B.iX=I-B.I-P,B.EP="right"):(B.iX=I+P,B.EP="left"):B.iX-=_.iX,null===ZC._n_(B.o.y)?ve.CL?(B.iX=I-B.I/2,B.iX<_.iX&&(B.iX=_.iX),B.iX+B.I>_.iX+_.I&&(B.iX=_.iX+_.I-B.I)):(B.iY=y-B.F/2,B.iY<_.iY&&(B.iY=_.iY),B.iY+B.F>_.iY+_.F&&(B.iY=_.iY+_.F-B.F)):B.iY-=_.iY,B.DM=[I,y];break;case"left":B.iX=I-B.I-P,B.iY=y-B.F/2,B.DM=[I,y];break;case"right":B.iX=I+P,B.iY=y-B.F/2,B.DM=[I,y];break;case"top":ve.CL?(B.iX=_.iX+_.I-B.I,B.iY=y-B.F/2,B.EP="left",B.DM=[_.iX+_.I-B.I-P,y]):(B.iX=I-B.I/2,B.iY=_.iY,B.EP="bottom",B.DM=[I,B.iY+B.F+P]);break;case"node-top":ve.CL?(B.iX=I+2*P,B.iY=y-B.F/2,B.EP="left",B.DM=[I+P,y]):(B.iX=I-B.I/2,B.iY=y-B.F-2*P,B.EP="bottom",B.DM=[I,y-P]);break;case"bottom":ve.CL?(B.iX=_.iX,B.iY=y-B.F/2,B.EP="right",B.DM=[_.iX+B.I+P,y]):(B.iX=I-B.I/2,B.iY=_.iY+_.F-B.F,B.EP="top",B.DM=[I,B.iY-P])}oe.push({plotindex:v.A.L,nodeindex:v.L,keyvalue:v.BV||ve.V[v.L],value:v.AB,text:B.AN,x:B.iX,y:B.iY,refx:I,refy:y}),-1===ZC.AV(se,B.AN)&&(s[B]=v,se.push(B.AN)),ve.CL?B.E.diff=_e||-1!==ge?ZC._a_(y-f):-1:B.E.diff=_e||-1!==ge?ZC._a_(I-d):-1,B.AO&&re.push(B),o[te][Z]=B,ae=!0}}if(!v)continue}if(k[te].CX&&ZC.DQ(v.iX,_.iX-1,_.iX+_.I+1)){if((m=new ZC.DP(ve)).Z=m.C7=n,m.K=k[te].K+"-guide-scale-x-label-"+Z,m.GM=k[te].A.K+"-guide-label "+k[te].K+"-guide-label zc-guide-label",m.A0=m.AE=ve.B9,m.C2=k[te].AJ["3d"]?"#999":"#fff",m.append(k[te].CX.o["scale-label"]),m.append(k[te].CX.o[ve.BF+"-label"]),m.append(k[te].B0.A3[Z].o["scale-label"]),m.KR=!0,m.E.nodeidx=v.L,E=ZC.AP.O7(m.o),null===ZC._n_(E.decimals)){var ze=Math.floor(ZC.FU(null!==v.BV?v.BV:v.L,10));E.decimals=ze<0?1-ze:0}if(m.JZ=function(e){e=ve.JZ(e,g,ve.EH&&k[te].B0.A3[Z].EH?k[te].B0.A3[Z]:null,E,!0);var i=k[te].B0.A3[Z].K2;if(v&&i)for(var t in i){var n;n=i[t]instanceof Array?ZC._c_(i[t][v.L],""):ZC._c_(i[t],""),e=e.replace("%data-"+t,n,"g")}return e},m.parse(),P=null!==ZC._n_(m.o.distance)?ZC._i_(m.o.distance):6,m.E7&&m.E7.length&&(m.J7=function(e){return e=v?v.JZ(e,E):e.replace(/(%i)|(%node-index)/g,g)},m.DF()&&m.parse()),m.HW&&v&&(m.H5(m,m,null,v.M2(null,!1),m.MN),m.parse()),de[ve.BF]=m.AN,ye=ZC._b_(m.o["callout-position"]),we=m.o.x,Me=m.o.y,"opposite"!==ve.BA?ve.CL?(Ye="right",Le=ve.E.iX-m.I-P,Xe=[ve.E.iX,F],Ge=F-m.F/2):(Ye="top",Le=D-m.I/2,Xe=[D,ve.E.iY],Ge=ve.E.iY+P):ve.CL?(Ye="left",Le=ve.E.iX+P,Xe=[ve.E.iX,F],Ge=F-m.F/2):(Ye="bottom",Le=D-m.I/2,Xe=[D,ve.E.iY],Ge=ve.E.iY-m.F-P),ye||(m.EP=Ye),we||(m.iX=Le),ye||we||Me||(m.DM=Xe),Me||(m.iY=Ge),m.AO&&ve.AO&&""!==m.AN){var Qe=!1;if(fe.length)for(var Ve=0;Ve0&&Pe<=1&&(k[te].CX.B1=ZC._i_(Pe*ve.AC)),ve.CL?((-1===x[0]||x[1]>ZC._a_(F-f))&&(x=[F,ZC._a_(F-f)]),ce.push([_e||-1!==ge?ZC._a_(F-f):-1,[null,[ve.E.iX,F],[k[te].P.iX+("opposite"===ve.BA?0:k[te].P.I),F]]])):((-1===K[0]||K[1]>ZC._a_(D-d))&&(K=[D,ZC._a_(D-d)]),ce.push([_e||-1!==ge?ZC._a_(D-d):-1,[null,[D,ve.E.iY],[D,k[te].P.iY+("opposite"===ve.BA?k[te].P.F:0)]]]))}if(Be=k[te].BM(k[te].B0.A3[Z].BW("v")[0]),-1===ZC.AV(Ze,Be.BF)&&k[te].HC&&("xy"===k[te].AJ.layout&&ZC.DQ(f,Be.iY,Be.iY+Be.F)||"yx"===k[te].AJ.layout&&ZC.DQ(f,Be.iX,Be.iX+Be.I))){var Je="single";k[te].HC.o.type&&"multiple"===k[te].HC.o.type&&(Je="multiple"),"multiple"===Je&&null!==ZC._n_(he[Z])&&(Be.CL?d=he[Z].x:f=he[Z].y),(m=new ZC.DP(Be)).Z=m.C7=n,m.K=k[te].K+"-guide-scale-y-label-"+Z,m.GM=k[te].A.K+"-guide-label "+k[te].K+"-guide-label zc-guide-label";var Te=Be.B9;"multiple"===Je&&(Te=k[te].B0.A3[Z].B9),m.A0=m.AE=Te,m.C2=k[te].AJ["3d"]&&"multiple"!==Je?"#999":"#fff",m.append(k[te].HC.o["scale-label"]),m.append(k[te].HC.o[Be.BF+"-label"]),m.KR=!0;var He=Be.CL?Be.NI(d,!0):Be.NI(f,!0),Re=He;if(E=Be.MU(),ZC._cp_(ZC.AP.O7(m.o,Be.o),E),null===ZC._n_(E.decimals)){ze=Math.floor(ZC.FU(He,10));E.decimals=ze<=0?1-ze:0}He=Be.FR(0,He,E),m.o.text=He,m.parse(),P=null!==ZC._n_(m.o.distance)?ZC._i_(m.o.distance):6,m.E7&&m.E7.length&&(m.J7=function(e){return e=e.replace(/(%v)|(%scale-value)/g,Re).replace(/(%t)|(%scale-text)/g,He).replace(/(%coord)/,Be.CL?d:f)},m.DF()&&m.parse()),m.HW&&v&&(De={value:Re,text:He,coord:Be.CL?d:f},m.H5(m,m,null,De,m.MN),m.parse()),de[Be.BF]=m.AN,ye=ZC._b_(m.o["callout-position"]),we=m.o.x,Me=m.o.y,"opposite"!==Be.BA?Be.CL?(Ye="top",Le=d-m.I/2,Ge=Be.E.iY+P,Xe=[d,Be.E.iY]):(Ye="right",Le=Be.E.iX-m.I-P,Ge=f-m.F/2,Xe=[Be.E.iX,f]):Be.CL?(Ye="bottom",Le=d-m.I/2,Ge=Be.E.iY-m.F-P,Xe=[d,Be.E.iY]):(Ye="left",Le=Be.E.iX+P,Ge=f-m.F/2,Xe=[Be.E.iX,f]),ye||(m.EP=Ye),we||(m.iX=Le),ye||we||Me||(m.DM=Xe),Me||(m.iY=Ge),m.AO&&Be.AO&&(m.E.diff=-1,pe.push(m),"multiple"===Je&&null!==ZC._n_(he[Z])||Ze.push(Be.BF),r[te][Z]=m,ae=!0),-1!==String(k[te].HC.o["line-width"]).indexOf("%")&&(Pe=ZC.IM(k[te].HC.o["line-width"]))>0&&Pe<=1&&(k[te].HC.B1=ZC._i_(Pe*Be.AC)),Be.CL?ue.push(null,[d,Be.E.iY],[d,k[te].P.iY+("opposite"===Be.BA?k[te].P.F:0)]):ue.push(null,[Be.E.iX,f],[k[te].P.iX+("opposite"===Be.BA?0:k[te].P.I),f])}}if(!_e&&pe.length>1)for(var We=pe[pe.length-1],Ue=ZC._i_((We.FJ+We.FX+We.ER+We.FO)/4),je=pe.length-1;je>=0;je--)for(var qe=je;qe>=0;qe--)je!==qe&&ZC.AQ._boxoverlap2_(pe[je],pe[qe],-Ue)&&(pe[qe].C5=.3,pe[qe].V1=.1);for(b=ZC.MAX,Z=0,h=re.length;Z=0&&(b=ZC.CY(re[Z].E.diff,b));-1!==ge&&(b=ZC.BQ(b,ge));var $e=!1,ei=1,ii=!1;re[0]&&(ii=ZC._b_(re[0].o["single-text"]),re[0].o["table-columns"]&&ZC._b_(re[0].o["html-mode"])&&($e=!0,ei=ZC._i_(re[0].o["table-columns"]||"1"),Ee+='')),!be&&re.length>0&&("asc"!==re[0].o["sort-by-value"]&&"desc"!==re[0].o["sort-by-value"]||re.sort(function(e,i){return(e.E["node-value"]-i.E["node-value"])*("asc"===re[0].o["sort-by-value"]?1:-1)}));var ti=0;for(S=0,N=re.length;S"),Ee+="",ti%ei==ei-1&&(Ee+=""),ti++):Ee+=me[re[S].E.pos],$e||!ii));S++);if($e&&(ti%ei!=ei-1&&(Ee+=""),Ee+="
"+me[S]+"
"),""!==Ce&&(Ee+=Ce),!be&&re.length>0&&(_e?ve.CL?(d=I=D,f=y=x[0]):(d=I=K[0],f=y=F):(d=I=D,f=y=F),""!==Ee&&(re[0].o.text=$e||ii?Ee:Ee.substring(0,Ee.length-4),re[0].parse()),P=null!==ZC._n_(B.o.distance)?ZC._i_(B.o.distance):6,null===ZC._n_(B.o.x)?ve.CL?d=_.iX+_.I/2?re[0].iX=I-re[0].I-P:re[0].iX=I+P:re[0].iX-=_.iX,null===ZC._n_(B.o.y)?ve.CL?le&&le.iY>=_.iY+_.F/2?re[0].iY=y-re[0].F-P:re[0].iY=y+P:f0){var li=[];for(b=ZC.MAX,w=0,M=ce.length;w=0&&(b=ZC.CY(ce[w][0],b));for(-1!==ge&&(b=ZC.BQ(b,ge)),w=0,M=ce.length;w1&&li[1]&&(oi=li[1][0]||-1),k[te].CX.oMask||(k[te].CX.oMask=new ZC.HS(k[te]),k[te].CX.oMask.append({"background-color":"#fff",alpha:.85}),k[te].CX.oMask.append(k[te].CX.o.mask),k[te].CX.oMask.Z=n,k[te].CX.oMask.parse()),k[te].CX.oMask.iX=oi,k[te].CX.oMask.iY=k[te].P.iY,k[te].CX.oMask.I=Math.max(2,k[te].P.iX+k[te].P.I-oi+2),k[te].CX.oMask.F=k[te].P.F,k[te].CX.oMask.paint()}if(k[te].AJ["3d"])for(k[te].O4(),w=0,M=li.length;w0){if(k[te].AJ["3d"])for(k[te].O4(),w=0,M=ue.length;w=0;Z--)ZC.DQ(re[Z].DM[0],_.iX-5,_.iX+_.I+5)&&ZC.DQ(re[Z].DM[1],_.iY-5,_.iY+_.F+5)||re.splice(Z,1);if(re.length>1)for(var ri=!0;ri;)for(ri=!1,Z=0;Zre[Z+1].iX||!Be.CL&&re[Z].iY>re[Z+1].iY)){var si=re[Z];re[Z]=re[Z+1],re[Z+1]=si,ri=!0}if(re.length>0){var Ai=[],Ci=[];for(Z=0;Z_.iX+_.I)for(pi=re[Z+1].iX-(_.iX+_.I-re[Z+1].I),ci=0,ui=re.length;ci=_.iX?re[ci].iX-=pi:(re[ci].iX=_.iX,ci>0&&(re[Z+1].E["marker-y"]<_.iY+_.F/2?re[ci].iY=re[ci-1].iY+re[ci-1].F+4:re[ci].iY=re[ci-1].iY-re[ci].F-4));Zi=!0}}else if(re[Z+1].iY_.iY+_.F)for(pi=re[Z+1].iY-(_.iY+_.F-re[Z+1].F),ci=0,ui=re.length;ci=_.iY?re[ci].iY-=pi:(re[ci].iY=_.iY,ci>0&&(re[Z+1].E["marker-x"]<_.iX+_.I/2?re[ci].iX=re[ci-1].iX+re[ci-1].I+4:re[ci].iX=re[ci-1].iX-re[ci].I-4));Zi=!0}}}var fi=!1;for(Z=0,h=pe.length;Z=0&&(b=ZC.CY(re[S].E.diff,b));for(-1!==ge&&(b=ZC.BQ(b,ge)),L=0,S=0,N=re.length;S1&&bi.paint()}}}(O=k[te].H0()).items=oe,O.guide={x:I,y:y},O.ev=p,O["scale-label"]=de,ZC.AP.C0("guide_mousemove",i.G,O),k[te].R2(!0)}else(O={}).guide={x:I,y:y},O.ev=p,ZC.AP.C0("guide_mousemove",i.G,O)}}}}}},i.zc_guide_touchend=function(){0!==zingchart.DEV.GUIDETIMEOUT&&window.setTimeout(function(){u()},ZC._i_(zingchart.DEV.GUIDETIMEOUT))},ZC.A5(document.body).bind("mousemove touchstart touchmove",i.QH),ZC.A5(document.body).bind("touchend",i.zc_guide_touchend)}};ZC.JV=ZC.C9.CC(JV),ZC.JV.clearGuide=function(e){var i=zingchart.getLoader(e);if(i){zingchart.GUIDE_EV=null;var t=ZC.AM(e+"-guide-c"),n=ZC.A5(t).width(),a=ZC.A5(t).height();ZC.A5("."+e+"-guide-label").remove(),ZC.Q.IV(t,i.AD,0,0,n,a),ZC.A5("#"+e+"-defs").children().each(function(){this.id&&-1!==this.id.indexOf("-guide-label-")&&ZC.Q.EW(this.id)})}},zingchart.extendAPI("resetguide",function(e,i){"string"==typeof(i=i||{})&&(i=JSON.parse(i)),ZC.JV.GUIDES[e]=ZC.JV.GUIDES[e]||{},ZC.JV.GUIDES[e].blocked=!1,ZC.JV.clearGuide(e)}),zingchart.extendAPI("setguide",function(e,i){"string"==typeof(i=i||{})&&(i=JSON.parse(i));var t,n,a=zingchart.getLoader(e),l=a.CA(i.graphid),o=l.BM("scale-x");"xy"===l.AJ.layout?(t=i.x||o.AR(i.keyvalue),n=l.iY+l.F/2):(t=l.iX+l.I/2,n=i.y||o.AR(i.keyvalue));var r={_pageX_:t,_pageY_:n,type:ZC.mobile?"touchstart":"mousemove",target:{id:e+"-img"}};ZC.JV.GUIDES=ZC.JV.GUIDES||{},ZC.JV.GUIDES[e]=ZC.JV.GUIDES[e]||{},ZC.JV.GUIDES[e].blocked=!0,ZC.JV.clearGuide(e),r.fromAPI=!0,a.D8.QH(r)});var A2P={$i:function(e,i){var t=this;t.o=null,t.C=e,t.NT=i},parse:function(){var e,i=this;i.o=i.C.o;var t,n,a,l,o,r,s,A,C,c=i.NT,u="\r\n",p=",",Z=!1,h=null,d=null,f=null,_=null,g=null,v=!1,B=!1,b=null,m={};null!==ZC._n_(e=i.o["html5-csv"])&&(m=e),null!==ZC._n_(e=i.o.csv)&&(m=e),null!==ZC._n_(e=m.separator)&&(p=e),null!==ZC._n_(e=m.mirrored)&&(Z=ZC._b_(e)),null!==ZC._n_(e=m.title)&&(h=ZC._b_(e)),null!==ZC._n_(e=m["string-values"])&&(B=ZC._b_(e)),Z?(null!==ZC._n_(e=m["horizontal-labels"])&&(f=ZC._b_(e)),null!==ZC._n_(e=m["vertical-labels"])&&(d=ZC._b_(e))):(null!==ZC._n_(e=m["horizontal-labels"])&&(d=ZC._b_(e)),null!==ZC._n_(e=m["vertical-labels"])&&(f=ZC._b_(e))),null!==ZC._n_(e=m["smart-scales"])&&(_=ZC._b_(e)),null!==ZC._n_(e=m["separate-scales"])&&(g=ZC._b_(e)),null!==ZC._n_(e=m["keyval-format"])&&(v=ZC._b_(e)),null!==ZC._n_(e=m.columns)&&(b=e);var E=null;null!==ZC._n_(e=m["thousands-separator"])&&(E=e);var D=null;if(null!==ZC._n_(e=m["decimals-separator"])&&(D=e),null!==E&&null===D&&(D="."===E?",":"."),null!==D&&null===E&&(E="."===D?",":"."),null!==ZC._n_(b)&&b.length>0){t=[],null!==ZC._n_(e=m["row-separator"])?u=e:c.split(/\n/).length>0?u="\n":c.split(/\r/).length>0&&(u="\r");var F=c.split(u),K=0;for(l=0,o=F.length;l1&&1===M[0].length?(null===ZC._n_(i.o.title)?i.o.title={text:M[0][0]}:null===ZC._n_(i.o.title.text)&&(i.o.title.text=M[0][0]),h=!0):h=!1),h&&Y++,Z){for(t=[],h&&t.push(M[0]),r=Y,s=M.length;r.75}d&&(G=M[Y],Y++);var O=[];if(null===ZC._n_(f))if(d&&-1!==G[0].indexOf("\\"))f=!0;else{var S="";for(r=Y,s=M.length;r.75}if(f){for(r=Y,s=M.length;r'}return""},getPMap:function(){var e=this.b();return this.addPMap(e,"index","L"),e},getToggleAction:function(){var e,i=this,t="hide";return i.BE&&""!==i.E["legend-last-trigger"]&&"undefined"!=typeof i.E["legend-last-trigger"]?t="item"===i.E["legend-last-trigger"]?i.BE.R3:i.BE.PU:(i.o.legend&&(e=i.o.legend["toggle-action"])&&(t=e),i.o.legend&&i.o.legend.item&&(e=i.o.legend.item["toggle-action"])&&(t=e)),(i.A.KC||i.E["toggle-action-remove"])&&(t="remove"),t},BW:function(e,i){void 0===i&&(i=!1);for(var t=[],n=this,a=0,l=n.BO.length;a0)&&t.push(n.BO[a]);return t},BM:function(e){for(var i=this,t=0,n=i.BO.length;t0?a[0]:"",o=a.length>1?a[1]:"",r=a.length>0?a[2]||a[0]:"",s=a.length>1?a[3]||a[1]:"";"dynamic"===e.P.o["margin-top"]&&(l="dynamic"),"dynamic"===e.P.o["margin-right"]&&(o="dynamic"),"dynamic"===e.P.o["margin-bottom"]&&(r="dynamic"),"dynamic"===e.P.o["margin-left"]&&(s="dynamic"),e.P.o.margin=[l,o,r,s].join(" ")}if(e.E["plotarea-margins"]?e.P.o.margin=e.E["plotarea-margin"]:(e.E["plotarea-margins"]=!0,e.E["plotarea-margin"]=e.P.o.margin,e.E["plotarea-margin-top"]=e.P.o["margin-top"],e.E["plotarea-margin-right"]=e.P.o["margin-right"],e.E["plotarea-margin-bottom"]=e.P.o["margin-bottom"],e.E["plotarea-margin-left"]=e.P.o["margin-left"]),"undefined"!=typeof e.E["plotarea-p-x"]&&(e.P.E["p-x"]=e.E["plotarea-p-x"],e.P.E["p-y"]=e.E["plotarea-p-y"],e.P.E["p-width"]=e.E["plotarea-p-width"],e.P.E["p-height"]=e.E["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.EM.true3d){var A=ZC._a_(ZC._i_(e.EM.depth*ZC.EK(e.EM.angle)));e.P.iY+=A,e.P.F-=A,e.P.I-=ZC._i_(e.EM.depth*ZC.EE(e.EM.angle))}if("undefined"!=typeof e.E["plotarea-p-x"])for(var C=0,c=e.BO.length;C||
|\n/).length),"top"===u||"bottom"===u){if(Z=ZC.BQ(Z,.465*h.DH+1.025*ZC._a_(ZC.EK(h.AA))*ZC.BQ(h.I,h.F)),C=h.I,c=Z,o&&"k"===p.AF){r[p.BF]||(r[p.BF]=[]);var f=null===ZC._n_(h.o["auto-align"])||ZC._b_(h.o["auto-align"]),_=.465*h.DH+1.025*ZC._a_(ZC.EE(h.AA))*ZC.BQ(h.I,h.F);"default"===p.BA?(f&&(ZC.DQ(ZC._ang_(h.AA),90,180)||ZC.DQ(ZC._ang_(h.AA),270,360))&&r[p.BF].push(_),f||r[p.BF].push(_/2)):(f&&(ZC.DQ(ZC._ang_(h.AA),0,90)||ZC.DQ(ZC._ang_(h.AA),180,270))&&r[p.BF].push(_),f||r[p.BF].push(_/2))}}else h.AA%360!=0&&(C=Z=ZC.BQ(Z,.465*h.DH+1.025*ZC._a_(ZC.EE(h.AA))*ZC.BQ(h.I,h.F))),c=h.F;var g=new ZC.DP(p);g.copy(p.M),g.AN=p.M.AN,g.parse(),""!==g.AN&&g.AO&&(c+=g.AA%180==0?g.F:g.I,C+=g.AA%180==0?g.I:g.F)}if(n.o.plotarea||(n.o.plotarea={}),("dynamic"===n.o.plotarea["margin-"+u]||n.P.E["d-margin-"+u])&&(n.P.E["d-margin-"+u]=!1,l[u]=!0,n.o.plotarea["margin-"+u]="0"),l[u]){n.o.plotarea["margin-"+u]=ZC._f_(n.o.plotarea["margin-"+u]||"0"),n.E[p.BF+"-distance"]=n.o.plotarea["margin-"+u];var v=("top"===u||"bottom"===u?ZC._i_(c):ZC._i_(C))+10+(n.AJ["3d"]?20:0);p.VG?n.o.plotarea["margin-"+u]=ZC.BQ(n.o.plotarea["margin-"+u],v):n.o.plotarea["margin-"+u]+=v,null!==ZC._n_(n.o.plotarea["margin-"+u+"-offset"])&&(n.o.plotarea["margin-"+u]+=ZC._i_(n.o.plotarea["margin-"+u+"-offset"]));if(!n.A.TM){var B={},b=n.A.DI.watermark;n.A.B6.load(B,"loader.gui.watermark"),b&&ZC._cp_(b,B),1===n.A.o.graphset.length&&n.A.o.graphset[0].gui&&(e=n.A.o.graphset[0].gui.watermark)&&ZC._cp_(e,B);var m=B.position||"br";-1===ZC.AV(["tl","tr","br","bl"],m)&&(m="br"),("bottom"!==u||"bl"!==m&&"br"!==m)&&("top"!==u||"tl"!==m&&"tr"!==m)||(n.o.plotarea["margin-"+u]+=15)}"bottom"===u&&("xy"===n.AJ.layout&&n.HM||"yx"===n.AJ.layout&&n.HV)&&(n.o.plotarea["margin-"+u]+=15),"left"===u&&("xy"===n.AJ.layout&&n.HV||"yx"===n.AJ.layout&&n.HM)&&(n.o.plotarea["margin-"+u]+=15),n.E["plotarea.d-margin-"+u]=!0}}}if(o&&l.left&&null!==ZC._n_(n.o.plotarea["margin-left"]))for(var E in r){var D=n.BM(E);for(i=0;i1&&(K=ZC._i_(e[1]))):F=K=ZC._i_(e)),n.P.E.tolerance=F,"svg"===n.G.AD?((e=ZC.AM(n.K+"-clip-shape"))&&e.setAttribute("points",n.MC(F,"svg")),(e=ZC.AM(n.K+"-clip-hover-shape"))&&e.setAttribute("points",n.MC(K,"svg"))):(ZC.A5("#"+n.K+" div").each(function(){""!==this.style.clip&&(this.style.clip=n.MC(F))}),(e=ZC.AM(n.K+"-hover"))&&""!==e.style.clip&&(e.style.clip=n.MC(K)))}for(i=0,t=n.BO.length;i0)for(C.B6.palette=[],n=0;nt&&(E-=A.K4.F,b+=A.K4.F)}if(A.MV&&A.MV.AO&&A.MV.o["adjust-layout"]&&(v=!0,(t=A.MV.iY+A.MV.F/2)>b+E/2&&(E-=A.MV.F)),A.B7&&A.B7.AO&&A.B7.o["adjust-layout"]&&(v=!0,"xy"===A.AJ.layout?(t=A.B7.AT.iY+A.B7.AT.F/2)>b+E/2?E-=A.B7.AT.F+A.B7.AT.DU:(b=A.B7.AT.iY+A.B7.AT.F,E-=A.B7.AT.F):(_=A.B7.AT.iX+A.B7.AT.I/2)2)M="v";else if(A.BE.F/A.BE.I>2)M="h";else{M=Math.max(w.Left*A.F,w.Right*A.F)/Math.max(w.Top*A.I,w.Bottom*A.I)>1?"h":"v"}if(y)y[0]>=.8?I=y[1]<=.2?"v"===M?"top":"right":y[1]>=.8&&"v"===M?"bottom":"right":y[0]<=.2?I=y[1]<=.2?"v"===M?"top":"left":y[1]>=.8&&"v"===M?"bottom":"left":y[1]<=.2?I="top":y[1]>=.8&&(I="bottom");else Math.min(w.Top,w.Bottom)/Math.max(w.Top,w.Bottom)w.Bottom?(I="top",A.BE.E9):(I="bottom",A.BE.DU):w.Left>w.Right?(I="left",A.BE.DZ):(I="right",A.BE.E8);var Y=0;"top"===I&&(E=b+E-A.BE.F-A.BE.iY,b=A.BE.iY+A.BE.F),"bottom"===I&&(E-=Y=E-A.BE.iY+b+A.BE.FJ+A.BE.FX),"left"===I&&(B+=Y=A.BE.iX-A.iX+A.BE.I,m-=Y),"right"===I&&(m-=Y=m-(A.BE.iX-A.iX)+A.BE.ER+A.BE.FO)}else A.BE&&A.BE.fixPlacement();v&&(A.E["plotarea-p-x"]=B,A.E["plotarea-p-y"]=b,A.E["plotarea-p-width"]=m,A.E["plotarea-p-height"]=E,A.setupPlotArea()),A.setupDynamicPlotArea(),A.B0.parseLayout&&A.B0.parseLayout(!0),A.B7&&A.B7.o["adjust-layout"]&&("xy"===A.AJ.layout?(null===ZC._n_(A.B7.J0.x)&&(A.B7.AT.iX=A.P.iX),null===ZC._n_(A.B7.J0.width)&&(A.B7.AT.I=A.P.I)):(null===ZC._n_(A.B7.J0.y)&&(A.B7.AT.iY=A.P.iY),null===ZC._n_(A.B7.J0.height)&&(A.B7.AT.F=A.P.F)));var X=0;for(n=0;n0&&"canvas"!==A.G.AD&&A.B0.A3)for(var G=0,P=A.B0.A3.length;G-1?C.load(A.A7.o,c+".tooltip[dynamic]"):C.load(A.A7.o,c+".tooltip"),A.A7.append(A.o.tooltip),A.A7.PX=!0,A.A7.parse(),null!==ZC._n_(e=A.o.guide)&&(A.o["crosshair-x"]=e),(null!==ZC._n_(e=A.o["crosshair-x"])||C.PS("guide",A.AF)||C.PS("crosshair-x",A.AF))&&A.AJ["enable-guide"]&&(A.CX=new ZC.CZ(A),A.CX.OG="crosshairx",C.load(A.CX.o,[c+".guide",c+".crosshair-x"],!0,!0),A.CX.append(e),A.CX.parse(),A.E["guide-on"]=!0),(null!==ZC._n_(e=A.o["crosshair-y"])||C.PS("crosshair-y",A.AF))&&A.AJ["enable-guide"]&&(A.HC=new ZC.CZ(A),A.HC.OG="crosshairy",C.load(A.HC.o,[c+".guide",c+".crosshair-y"],!0,!0),A.HC.append(e),A.HC.parse(),A.E["guide-on"]=!0)),A.P0(),ZC.AP.C0("gparse",A.A,A.H0()),null!==ZC._n_(e=A.o.refresh)&&(A.HG={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,A.HG),A.UL=1),A.M6="parse.complete"},P0:function(){},Q4:function(){},MC:function(e,i,t){var n=this,a=(t=t||n.P).iX,l=t.iY,o=t.I,r=t.F;if("svg"===i){if(n.AJ["3d"]){var s,A=[];e=1;var C,c,u,p,Z=[],h=a-ZC.AL.E1,d=l-ZC.AL.E2;s=new ZC.CD(n,h+o/2-e,d-e,ZC.AL.FD),p=ZC._i_(s.EB[1]),s=new ZC.CD(n,h+o/2-e,d-e,0),u=ZC._i_(s.EB[1]),Z.push(new ZC.CD(n,h-e,d-e,pc?ZC.AL.FD:0),new ZC.CD(n,h+o+e,d+r+e,C>c?ZC.AL.FD:0)),s=new ZC.CD(n,h+o/2-e,d+r+e,ZC.AL.FD),p=ZC._i_(s.EB[1]),s=new ZC.CD(n,h+o/2-e,d+r+e,0),u=ZC._i_(s.EB[1]),Z.push(new ZC.CD(n,h+o+e,d+r+e,p>u?ZC.AL.FD:0),new ZC.CD(n,h-e,d+r+e,p>u?ZC.AL.FD:0)),s=new ZC.CD(n,h-e,d+r/2-e,ZC.AL.FD),C=ZC._i_(s.EB[0]),s=new ZC.CD(n,h-e,d+r/2-e,0),c=ZC._i_(s.EB[0]),Z.push(new ZC.CD(n,h-e,d+r+e,C.25;){t=!0;var n=i.MC(0,"svg").split(" ");for(e=0;ei.iX+i.I-i.P.E8||ZC._i_(a[1])i.iY+i.F-i.P.DU)&&(t=!1)}t||(i.EM.zoom-=.05),t&&(i.EM.zoom-=.025)}}},build:function(){var e,i,t,n,a,l,o,r,s=this,A=s.A.I+"/"+s.A.F,C="0/0";if(s.autoFit(),!s.G.usc()){var c=2,u=6;if(null!==ZC._n_(e=s.P.o["mask-tolerance"])&&(e instanceof Array?(c=u=ZC._i_(e[0]),e.length>1&&(u=ZC._i_(e[1]))):c=u=ZC._i_(e)),"svg"===s.A.AD&&s.AJ.clip&&(ZC.Q.EW([s.K+"-clip",s.K+"-clip-hover",s.K+"-clip-preview"]),s.A.KA.appendChild(ZC.Q.XM({id:s.K+"-clip",path:s.MC(c,"svg")})),s.A.KA.appendChild(ZC.Q.XM({id:s.K+"-clip-hover",path:s.MC(u,"svg")})),s.B7)){var p=s.AJ["3d"];s.AJ["3d"]=!1,s.A.KA.appendChild(ZC.Q.XM({id:s.K+"-clip-preview",path:s.MC(0,"svg",s.B7.AT)})),s.AJ["3d"]=p}var Z=!s.AJ.clip,h=Z?null:s.MC(c),d=Z?null:"url(#"+s.K+"-clip)",f=Z?null:s.MC(u),_=Z?null:"url(#"+s.K+"-clip-hover)";if(s.B7&&(a=Z?null:s.MC(0,s.A.AD,s.B7.AT),l=Z?null:"url(#"+s.K+"-clip-preview)"),ZC.Q.K3({cls:"zc-abs",id:s.K,p:ZC.AM(s.A.K+"-graphset"),tl:C,wh:A},s.A.AD),s.A.NZ.graph&&ZC.Q.HJ({cls:"zc-abs zc-layer zc-persistent",id:s.K+"-c",p:ZC.AM(s.K),wh:A},s.A.AD),ZC.Q.K3({id:s.K+"-plotarea",p:ZC.AM(s.K),tl:C,wh:A,position:"absolute"},s.A.AD),s.o.plotarea&&s.A.NZ.plotarea&&ZC.Q.HJ({cls:"zc-abs zc-layer",id:s.K+"-plotarea-c",p:ZC.AM(s.K+"-plotarea"),wh:A},s.A.AD),"null"!==s.AF&&s.A.NZ.plots){for(ZC.Q.K3({id:s.K+"-scales-bl",p:ZC.AM(s.K),tl:C,wh:A,position:"absolute","clip-path":d,clip:h},s.A.AD),i=0;i=0;n--)ZC.AM(s.K+"-plots-bl-"+n)||ZC.Q.K3({id:s.K+"-plots-bl-"+n,p:ZC.AM(s.K),after:ZC.AM(s.K+"-scales-bl"),tl:C,wh:A,position:"absolute","clip-path":d,clip:h},s.A.AD),(o=ZC.Q.HJ({cls:"zc-abs zc-layer zc-bl",id:s.K+"-plot-"+r+"-bl-"+n+"-c",p:ZC.AM(s.K+"-plots-bl-"+n),wh:A},s.A.AD)).setAttribute("data-clip",s.MC(c,"box")),o.style.display="block";for(i=0;i=0;n--)ZC.AM(s.K+"-plots-fl-"+n)||ZC.Q.K3({id:s.K+"-plots-fl-"+n,p:ZC.AM(s.K),after:ZC.AM(s.K+"-scales-ml-"+(s.VK-1)+"-c"),tl:C,wh:A,position:"absolute"},s.A.AD),(o=ZC.Q.HJ({cls:"zc-abs zc-layer zc-fl",id:s.K+"-plot-"+r+"-fl-"+n+"-c",p:ZC.AM(s.K+"-plots-fl-"+n),wh:A},s.A.AD)).setAttribute("data-clip",s.MC(u,"box")),o.style.display="block";for(zingchart.DEV.PLOTSHLAYER&&(ZC.Q.K3({id:s.K+"-plots-hover",p:ZC.AM(s.K),tl:C,wh:A,position:"absolute"},s.A.AD),ZC.Q.HJ({cls:"zc-abs zc-layer zc-fl",id:s.K+"-plots-hover-c",p:ZC.AM(s.K+"-plots-hover"),wh:A},s.A.AD)),ZC.Q.K3({id:s.K+"-scales-fl",p:ZC.AM(s.K),tl:C,wh:A,position:"absolute","clip-path":d,clip:h},s.A.AD),i=0;i=0;o--)this.o.labels[o].cls&&"zcScaleMarkerLabel"===this.o.labels[o].cls&&this.o.labels.splice(o,1);l.B0.W6=[],l.A.SX=[],zingchart.SKIP.LEGEND||l.BE&&l.BE.clear(),l.E.datalength=[];var r,s,A,C=ZC.ie67?ZC.AM(l.A.K):null;if(ZC.mobile||ZC.ie67)ZC.A5("."+l.K+"-node-area",C).remove();else if(ZC.AM(l.A.K+"-img")&&ZC.AM(l.A.K+"-map")){ZC.AM(l.A.K+"-img").setAttribute("useMap","");var c=ZC.AM(l.A.K+"-map").cloneNode(!0);for(o=(n=c.childNodes.length)-1;o>=0;o--)-1!==c.childNodes[o].className.indexOf(l.K+"-node-area")&&c.removeChild(c.childNodes[o]);ZC.Q.EW(l.A.K+"-map"),ZC.AM(l.A.K+"-top").appendChild(c),ZC.AM(l.A.K+"-img").setAttribute("useMap","#"+l.A.K+"-map")}switch(ZC.Q.EW(l.K+"--graph"),l.B0.HE=[],ZC.A5("."+l.K+"-value-box",C).remove(),ZC.A5("."+l.K+"-scale-marker-label",C).remove(),ZC.A5("."+l.K+"-scale-item",C).remove(),ZC.A5("."+l.K+"-scale-label",C).remove(),ZC.A5("."+l.K+"-guide-label",C).remove(),ZC.A5("."+l.K+"-shape-label",C).remove(),ZC.A5("."+l.K+"-mapshape-label",C).remove(),ZC.A5("."+l.K+"-node-errorbars",C).remove(),e||l.B7&&!l.B7.KT&&ZC.A5("."+l.K+"-preview-item",C).remove(),l.A.AD){case"svg":for(o=0,n=l.B0.A3.length;o=h.AZ&&g[C].S[l].BV<=h.BD:g[C].S[l].L>=h.W&&g[C].S[l].L<=h.A1)?(s=g[C].S[l].AB,d=Math.min(d,s),f=Math.max(f,s),Z?(Z=!1,g[C].S[l].BV?B.push([g[C].S[l].BV,0]):B.push(0),p=s):g[C].S[l].BV?B.push([g[C].S[l].BV,100*(s-p)/p]):B.push(100*(s-p)/p)):g[C].S[l].BV?B.push([g[C].S[l].BV,0]):B.push(0);_["p-"+c]=[].concat(B)}if(v>0){for(d=ZC.MAX,f=-ZC.MAX,c=0;c=0&&D[l].TE&&(F=l);if(null!==ZC._n_(F)){var K=D[F].AR(0);for(l=0;l=0&&D[l].TE){var x=D[l].AR(0);if(ZC._a_(x-K)>=1)for(var I=!0,y=0;I;)x>K?D[l].CL?D[l].AW?D[l].A9+=1:D[l].BU+=1:D[l].AW?D[l].BU+=1:D[l].A9+=1:D[l].CL?D[l].AW?D[l].BU+=1:D[l].A9+=1:D[l].AW?D[l].A9+=1:D[l].BU+=1,y++,D[l].J4(),D[l].A8E(),(y>(D[l].CL?r.P.I:r.P.F)||ZC._a_(D[l].AR(0)-K)<1)&&(I=!1)}}}for(l=0,o=r.BO.length;l1&&(zingchart.SKIP.EVENT||ZC.AP.C0("load",e.A,e.A.FG()))),e.A.E["fire-complete"]=!0,(e.E["graph-KB"]||e.KT&&e.B0.A3.length>1)&&(zingchart.SKIP.EVENT||ZC.AP.C0("complete",e.A,e.A.FG()),e.E["graph-KB"]=null)),0!==e.A.QT.length&&e.A.QT[e.A.QT.length-1]===e.A.E.json||(e.A.QT[e.A.NW]!==e.A.E.json&&(e.A.QT.length=e.A.NW+1),e.A.QT[e.A.NW]=e.A.E.json)},KB:function(e,i){var t=this;null===ZC._n_(e)&&(e=!1),null===ZC._n_(i)&&(i=!1),t.A.N8(t),t.E["graph-KB"]=!0,t.clear(e,i),t.parse(),t.UC&&t.UC(),t.paint(e),t.B7&&!t.B7.KT&&t.B7.setScalesInfo(),t.HK=!1,zingchart.SKIP.CSV=!1},V8:function(ev,EA,FC){if(2!==ev.button){var s=this,C,PC=[""];switch(null!==ZC._n_(FC)&&(PC=FC.split("=")),PC[0]){case"_blank":window.open(EA,"_blank");break;case"_top":window.top.location.href=EA;break;case"_parent":window.parent.location.href=EA;break;case"window":null!==ZC._n_(PC[1])&&""!==PC[1]&&(window.top[PC[1]].location.href=EA);break;case"graph":var Y1=null;if("()"===EA.substring(EA.length-2)||"javascript:"===EA.substring(0,11))try{var EC=EA.replace("javascript:","").replace("()","");eval(EC)&&(Y1=eval(EC).call(s))}catch(e){}null!==ZC._n_(PC[1])&&""!==PC[1]?"_top"===PC[1]||"_parent"===PC[1]?(s.A.N8(),Y1?zingchart.exec(s.A.K,"setdata",{data:Y1}):s.A.load(null,EA)):(C=s.A.OX(PC[1]),C&&(s.A.N8(C),s.A.E["tr-ev-"+C.L]=!0,s.A.NW++,Y1?zingchart.exec(s.A.K,"setdata",{graphid:PC[1],data:Y1}):s.A.load(PC[1],EA))):(C=s.A.AG[0],s.A.N8(C),Y1?zingchart.exec(s.A.K,"setdata",{graphid:C.K,data:Y1}):(s.A.E["tr-ev-"+C.L]=!0,s.A.NW++,s.A.load(C.K,EA)));break;default:window.location.href=EA}}},I5:function(e,i,t){var n=this;if(null===ZC._n_(t)&&(t=n.B0.A3.length-1),null!==ZC._n_(e)&&void 0!==e)return n.B0.A3[e];if(null===ZC._n_(i)||void 0===i)return n.B0.A3[t];for(var a=0,l=n.B0.A3.length;a0){for(v=[],B=0,b=o.D.length;B0?1:-1:0}),s.FA=s.FA.sort(function(e,i){return e.zindex-i.zindex==0?e.index-i.index:e.zindex-i.zindex})},ZC.JL.prototype.A0P=function(e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var t,n=this,a=[n.K+"-objects-bottom-sh-c",n.K+"-objects-bottom-c",n.K+"-objects-top-sh-c",n.K+"-objects-top-c",n.K+"-objects-front-c",n.K+"-objects-print-c"];ZC.SKIPMAPS||a.push(n.K+"-objects-maps-sh-c",n.K+"-objects-maps-c");for(var l=0;l';"top"===i.o.placement?o.push(n):l.push(n)}}function s(e){if(a.FI[e]){var t=a.FI[e],n=t instanceof ZC.P6?t.BH:t;if((!ZC.SKIPMAPS||!n.o["map-item"])&&n.AO){if(null!==ZC._n_(i=t.E.hook)){var r=a.V7(i);-1!==r[0]&&(n.iX=ZC._i_(r[0])),-1!==r[1]&&(n.iY=ZC._i_(r[1]))}if(!t.E["3d"]||t.E["3dtx"]){t.Z=a.G.usc()?a.G.mc("top"):ZC.AM(a.K+"-objects-"+(n.JU<0?"bottom":"top")+"-c"),t.C7=a.G.usc()?a.G.mc("top"):ZC.AM(a.K+"-objects-"+(n.JU<0?"bottom":"top")+"-sh-c"),n.o["map-item"]&&(t.Z=a.G.usc()?a.G.mc("top"):ZC.AM(a.K+"-objects-maps-c"),t.C7=a.G.usc()?a.G.mc("top"):ZC.AM(a.K+"-objects-maps-sh-c"));var s="";null!==ZC._n_(i=n.o.limit)&&("x"===i?s="x":"y"===i?s="y":"xy"===i&&(s="xy")),(""===s||"x"===s&&ZC.DQ(n.iX-n.BK,a.P.iX-2,a.P.iX+a.P.I+2)||"y"===s&&ZC.DQ(n.iY-n.BJ,a.P.iY-2,a.P.iY+a.P.F+2)||"xy"===s&&ZC.DQ(n.iX+n.BK,a.P.iX-2,a.P.iX+a.P.I-2)&&ZC.DQ(n.iY+n.BJ,a.P.iY-2,a.P.iY+a.P.F+2))&&(t.W1=!1,t.E["print-canvas"]=a.K+"-"+(n.o["map-item"]?"maps":"objects")+"-print-c",t.paint())}if(!t.KC&&!a.Q6&&"normal"===zingchart.OBJECTMODE){var A=n.A5G();if(ZC.AM(a.A.K+"-map"))for(var C=1,c=A.length;C1?"--"+C:"")+'" coords="'+A[C]+'" data-z-sort="'+n.A77+'"'+u+" />";if("top"===t.o.placement?o.push(p):l.push(p),t.M){var Z=[ZC._i_(t.M.iX+t.M.BK),ZC._i_(t.M.iY+t.M.BJ),ZC._i_(t.M.iX+t.M.BK+t.M.I),ZC._i_(t.M.iY+t.M.BJ+t.M.F)].join(",");p=ZC.Q.FT("rect",n.EA,n.IL)+'class="'+a.K+'-shape-area zc-shape-area" id="'+n.K+"-area"+(C>1?"--"+C:"")+'" coords="'+Z+'" data-z-sort="'+n.A77+'"'+u+" />","top"===t.o.placement?o.push(p):l.push(p)}}}}}}function A(e){var i=a.L5[e];if(i.AO)if(i.Z=i.C7=a.G.usc()?a.G.mc("top"):ZC.AM(a.K+"-objects-"+(i.JU<0?"bottom":"top")+"-c"),null!==ZC._n_(i.o.repeat)&&ZC._b_(i.o.repeat)){var t=ZC._i_(ZC._c_(i.o.items,0)),n=null;if(i.o.inactive&&((n=new ZC.HS(i.A)).copy(i),n.append(i.o.inactive),n.parse(),n.Z=n.C7=i.Z),t>0||n){var l=ZC._i_(ZC._c_(i.o.rows,-1)),o=ZC._i_(ZC._c_(i.o.cols,-1)),r=ZC._i_(ZC._c_(i.o["space-x"],0)),s=ZC._i_(ZC._c_(i.o["space-y"],0)),A=ZC._i_(ZC._c_(i.o["offset-row"],0)),C=ZC._i_(ZC._c_(i.o["offset-col"],0));-1!==l&&-1===o?o=Math.ceil(t/l):-1===l&&-1!==o?l=Math.ceil(t/o):-1===l&&-1===o&&(o=Math.ceil(Math.sqrt(t)),l=Math.ceil(t/o));for(var c=i.iX,u=i.iY,p=i.K,Z=0;Z0||l.length>0)&&ZC.AM(a.A.K+"-map")){if(a.A4Z){var u=function(e,i){return-1!==e.indexOf("data-map")&&-1!==i.indexOf("data-map")?ZC.AP.NA(i)-ZC.AP.NA(e):ZC.AP.NA(e)-ZC.AP.NA(i)};o.sort(u),l.sort(u)}zingchart.DEV.MAPSONBOTTOM?window.setTimeout(function(){ZC.AP._rebuild_map_(a.A.K,o.join("")+ZC.AM(a.A.K+"-map").innerHTML+l.join(""))},33):ZC.AP._rebuild_map_(a.A.K,o.join("")+ZC.AM(a.A.K+"-map").innerHTML+l.join(""))}a.A.E["fire-load"]||ZC.AP.C0("objectsready",a.A,a.H0())},ZC.JL.prototype.SL=function(e,i,t,n){var a,l,o,r,s=this;switch(t=t||"hover",e){case"shape":var A=s.FI[i],C=A instanceof ZC.P6?A.BH:A;if(null!==ZC._n_(C.o[t+"-state"])){if(!n&&C.o.group)for(o=0,r=s.FI.length;o4096&&t.F6&&"date"===t.F6.o.type&&null!==(m=ZC._nfind_(_,B,0,B.S.length-1))&&(b=B.FM(m,3)),!b)for(m=0,E=B.S.length;m=0;r--)(null!==ZC._n_(A[r].id)&&-1!==ZC.AV(l,A[r].id)||null!==ZC._n_(A[r].cls)&&-1!==ZC.AV(o,A[r].cls)||null!==ZC._n_(A[r]["class"])&&-1!==ZC.AV(o,A[r]["class"])||t.group&&A[r].group===t.group)&&(null!==ZC._n_(A[r].id)&&v.push(A[r].id),A.splice(r,1),u=!0);for(r=0;r=50?OS:1e3*OS,"full"===s.HG.type)"http"===s.HG.transport?ZC.REFRESH_TICK[s.K]=window.setTimeout(function(){s.A.N8(s),ZC.ZS(function(){s.A.load(s.K,s.A9G||s.HG.url)})},OS):"websockets"===s.HG.transport&&ZC.websockets&&(s.G.SD[s.K]?"pull"===s.HG.method&&(ZC.REFRESH_TICK[s.K]=window.setTimeout(function(){s.G.SD[s.K].send("zingchart.getdata")},OS)):(ws=new WebSocket(s.HG.url,"zingchart"),ws.onopen=function(){ws.send("zingchart."+s.HG.type),ws.send("zingchart."+s.HG.method),ws.send("zingchart.getdata")},ws.onmessage=function(e){"ready"===s.M6&&(s.A.N8(s),s.M6="full",ZC.ZS(function(){zingchart.exec(s.A.K,"setdata",{graphid:s.K,data:e.data,softclear:!0})}))},s.G.SD[s.K]=ws));else if("feed"===s.HG.type&&null!==ZC._n_(s.HG.url)){if(null!==ZC._n_(s.HG.curtain)){var OH=s.BW("k");if(OH.length>0&&(ZC.Q.EW(s.K+"-curtain-t"),OH[0].OO>0)){var M0=new ZC.DP(s);s.A.B6.load(M0.o,"("+s.AF+").refresh.curtain"),M0.append(s.HG.curtain),M0.parse(),M0.AO&&(OH[0].CL&&M0.F<=OH[0].OO||!OH[0].CL&&M0.I<=OH[0].OO)&&(M0.K=s.K+"-curtain-t",M0.IO=ZC.AM(s.A.K+"-text-top"),OH[0].CL?(M0.F>OH[0].OO&&(M0.AN="",M0.parse()),M0.iX=s.P.iX,M0.iY=OH[0].AW?s.P.iY:s.P.iY+s.P.F-OH[0].OO,M0.I=s.P.I,M0.F=OH[0].OO):(M0.I>OH[0].OO&&(M0.AN="",M0.parse()),M0.iX=OH[0].AW?s.P.iX+s.P.I-OH[0].OO:s.P.iX,M0.iY=s.P.iY,M0.I=OH[0].OO,M0.F=s.P.F),M0.Z=M0.C7=ZC.AM(s.K+"-scales-ml-0-c"),M0.paint())}}var A13=s.HG.transport,A44=ZC._i_(s.HG["reset-timeout"]),A55=ZC._i_(s.HG["stop-timeout"]),A9O=ZC._b_(s.HG.storage),A0I=!0;null!==ZC._n_(s.HG["preserve-data"])&&(A0I=ZC._b_(s.HG["preserve-data"]));var A5O=function(KJ){for(var TW=eval("("+KJ+")"),i,A6,A8Q=TW instanceof Array?TW:[TW],r=0,rLen=A8Q.length;rZC._i_(s.HG["max-ticks"])&&s.o[BF].values.splice(0,1),s.G.o.graphset[s.L][BF].values.push(DL[BF]),(s.o[BF].values.length>A44||1===s.MH[1])&&(s.G.o.graphset[s.L][BF].values=[],s.o[BF].values=[],s.G.E["graph"+s.L+".zoom"]&&(s.G.E["graph"+s.L+".zoom"].xmin=null,s.G.E["graph"+s.L+".zoom"].xmax=null),s.HM&&(s.HM.unbind(),ZC.Q.IV(ZC.AM(s.K+"-scroll-x-c"),s.A.AD,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.HV&&(s.HV.unbind(),ZC.Q.IV(ZC.AM(s.K+"-scroll-y-c"),s.A.AD,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&&A9O&&ZC.AP.storage.push("zingchart.scale."+s.K+"."+BF,""+DL[BF]))}for(i=0,A6=s.B0.A3.length;iZC._i_(s.HG["max-ticks"])&&s.G.o.graphset[s.L].series[i].values.splice(0,1)):s.G.o.graphset[s.L].series[i].values=[A3T],ZC.webstorage&&A9O&&(H=DL["plot"+i],"object"==typeof H&&(H=H.join("###")),ZC.AP.storage.push("zingchart.plot."+s.K+".plot"+i,""+H)),(s.o.series[i].values.length>A44||1===s.MH[1])&&(ZC.AP.C0("feed_clear",s.A,s.H0(),DL),s.G.o.graphset[s.L].series[i].values=[])}MR=s.A38()}("ready"===s.M6||s.GF)&&(1===s.MH[1]&&(s.MH[1]=0),(MR<=A55||0===A55)&&(s.M6="feed",ZC.ZS(function(){ZC.AM(s.A.K+"-main")&&(ZC.AP.C0("feed_step",s.G,s.H0(),s.o),s.parse(),s.clear(!0),s.UC(),s.paint(!0,!0))})))};if("http"===A13||"js"===A13){var EA=s.HG.url;ZC.REFRESH_TICK[s.K]=window.setTimeout(function(){if(1===s.MH[0]||1===s.MH[1])if(s.A.N8(s),"http"===A13){var EX=["query-string"===s.A.N5?"zcrandom="+Math.random():"",zingchart.ZCOUTPUT?"zcoutput="+s.G.AD:""].join("&");ZC.A5.ajax({type:"GET",url:EA,beforeSend:function(e){s.A.RU.data||"http-headers"!==s.A.N5||e.setRequestHeader("If-Modified-Since","Thu, 01 Jan 1970 00:00:00 GMT")},data:EX,dataType:"text",error:function(){},success:function(e){A5O(e)}})}else if("()"===EA.substring(EA.length-2)||"javascript:"===EA.substring(0,11))try{var EC=EA.replace("javascript:","").replace("()","");eval(EC)&&eval(EC).call(s,function(e){A5O(e)},s.H0())}catch(e){}},OS)}else"websockets"===A13&&ZC.websockets&&(s.G.SD[s.K]?"pull"===s.HG.method&&(ZC.REFRESH_TICK[s.K]=window.setTimeout(function(){s.G.SD[s.K].send("zingchart.getdata")},OS)):(ws=new WebSocket(s.HG.url,"zingchart"),ws.onopen=function(){ws.send("zingchart."+s.HG.type),ws.send("zingchart."+s.HG.method),ws.send("zingchart.startfeed"),"pull"===s.HG.method&&ws.send("zingchart.getdata")},ws.onmessage=function(e){1!==s.MH[0]&&1!==s.MH[1]||A5O(e.data)},s.G.SD[s.K]=ws))}}},zingchart.ABQ=function(e,i,t){var n;document.getElementById("zc-fullscreen")&&(e="zc-fullscreen"),"string"==typeof(t=t||{})&&(t=JSON.parse(t));var a=zingchart.getLoader(e);if(a){var l=a.CA(t.graphid);switch(i){case"clearfeed":l.MH[1]=1,0===l.MH[0]&&ZC.ZS(function(){l.parse(),l.clear(!0),l.UC(),l.paint(!0,!0)});break;case"getinterval":return l.HG.interval;case"setinterval":ZC.AP.C0("feed_interval_modify",a,l.H0()),l.o.refresh=l.o.refresh||{},l.o.refresh.interval=t.interval||1;break;case"stopfeed":1===l.MH[0]&&(ZC.AP.C0("feed_stop",a,l.H0()),l.MH[0]=0,null!==ZC._n_(n=a.SD[l.K])&&n.send("zingchart.stopfeed"));break;case"startfeed":0===l.MH[0]&&(ZC.AP.C0("feed_start",a,l.H0()),l.MH[0]=1,null!==ZC._n_(n=a.SD[l.K])&&n.send("zingchart.startfeed"),ZC.ZS(function(){l.parse(),l.clear(!0),l.UC(),l.paint(!0,!0)}))}}return null},ZC.AP.A4D=function(e){for(var i={},t=[],n=0,a=(t="object"==typeof e?e:JSON.parse(e)).length;n0){for(var C=0;C1))){var n,a,l,o=t.targetid||t.target.id,r=ZC._b_(i.BE.BR.o.reorder);ZC.mobile&&i.G.A7&&i.G.A7.hide();var s="item";-1!==o.indexOf("-legend-marker_")&&(s="marker"),i.LN(),t.preventDefault();var A=i.BE.I1;"item"===s?A=i.BE.R3:"marker"===s&&(A=i.BE.PU),i.A.KC&&"hide"===A&&(A="remove"),i.E["legend-last-trigger"]=s;var C=ZC._i_(o.replace(i.K+"-legend-item_","").replace(i.K+"-legend-marker_","").replace("-area",""));if(i.o.series&&i.o.series[C]){if(null!==ZC._n_(e=i.o.series[C]["legend-item"])){var c=e.url||"",u=e.target||"";""!==c&&i.V8(t,c,u)}i.o.series[C].visible=!0}var p,Z,h,d=i.B0.A3[C].V6(t);switch(d.visible=ZC._b_(i.E["plot"+C+".visible"]),d.toggleaction=A,ZC.AP.C0("legend_click",i.A,d),ZC.AP.C0("legend_"+s+"_click",i.A,d),A){default:break;case"hide":case"remove":if(t.shiftKey){var f=0;for(n=0,a=i.B0.A3.length;n=0;i--)"undefined"==typeof n.o[i]&&n.o.splice(i,1);if(null===ZC._n_(n.E["plot-sort"])&&(n.E["plot-sort"]=!1),n.o.length>1){for(i=0,t=n.o.length;ia[i+1]["z-index"]){n.E["plot-sort"]=!0;var r=a[i];a[i]=a[i+1],a[i+1]=r;var s=l[i];l[i]=l[i+1],l[i+1]=s,o=!1}}n.M9=l}else n.M9=[0];for(n.A3=[],i=0,t=n.o.length;i0)if(e.A3.length>100&&!e.C.KT)for(var t=0;tZC.AP.NA(t)?1:ZC.AP.NA(e)n(t)&&i.A.AJ["3d"]?1:n(e)ZC.AP.NA(t)?1:ZC.AP.NA(e)',l=i.A.a11y(),o=e.innerHTML.indexOf(a),r="";zingchart.DEV.DELAYEDTRACKERS?window.setTimeout(function(){r=-1!==o?e.innerHTML.substring(0,o+a.length)+l+i.HE.join("")+e.innerHTML.substring(o+a.length):e.innerHTML+l+i.HE.join(""),ZC.AP._rebuild_map_(i.G.K,r)},500):(r=-1!==o?e.innerHTML.substring(0,o+a.length)+l+i.HE.join("")+e.innerHTML.substring(o+a.length):e.innerHTML+l+i.HE.join(""),ZC.AP._rebuild_map_(i.G.K,r))}i.F2=null,i.D9=null,i.C.A9H=[],i.A._end_()}}),ZC.A45=ZC.LQ.CC({ACU:function(){return new ZC.QW(this)}}),ZC.A46=ZC.LQ.CC({ACU:function(){return new ZC.QX(this)}}),ZC.A8C=ZC.LQ.CC({ACU:function(){var e=new ZC.QW(this);return e.NG=!0,e}}),ZC.A8D=ZC.LQ.CC({ACU:function(){var e=new ZC.QX(this);return e.NG=!0,e}}),ZC.A0L=ZC.LQ.CC({ACU:function(){return new ZC.QY(this)}}),ZC.A0M=ZC.LQ.CC({ACU:function(){return new ZC.QZ(this)}}),ZC.ZK=ZC.LQ.CC({ACU:function(e){var i=this;switch(e){default:return new ZC.QW(i);case"vline":var t=new ZC.QW(i);return t.NG=!0,t;case"poly":var n=new ZC.PD(i);return n.bPoly=!0,n.sTypeX="poly",n;case"area":return new ZC.QX(i);case"varea":var a=new ZC.QX(i);return a.NG=!0,a;case"bar":case"vbar":return new ZC.QY(i);case"hbar":return new ZC.QZ(i);case"scatter":return new ZC.PD(i);case"hscatter":return new ZC.PD(i,"hscatter");case"bubble":return new ZC.S1(i);case"hbubble":return new ZC.S1(i,"hbubble");case"stock":return new ZC.VJ(i);case"range":return new ZC.T0(i);case"vrange":var l=new ZC.T0(i);return l.NG=!0,l;case"line3d":return new ZC.UP(i);case"area3d":return new ZC.UQ(i);case"bar3d":case"vbar3d":return new ZC.UO(i);case"bullet":case"vbullet":return new ZC.TJ(i);case"hbullet":return new ZC.TK(i)}}}),ZC.A6R=ZC.LQ.CC({ACU:function(){return new ZC.PD(this)}}),ZC.ACG=ZC.LQ.CC({ACU:function(){var e=new ZC.PD(this);return e.bPoly=!0,e.sTypeX="poly",e}}),ZC.A5T=ZC.LQ.CC({ACU:function(){return new ZC.PD(this,"hscatter")}}),ZC.A7D=ZC.LQ.CC({ACU:function(){return new ZC.S1(this)}}),ZC.A6S=ZC.LQ.CC({ACU:function(){return new ZC.S1(this,"hbubble")}}),ZC.A59=ZC.LQ.CC({$i:function(e){this.b(e);var i=this;i.KO=[],i.P8=[],i.TS=[]},ACU:function(){return new ZC.WA(this)},parseLayout:function(e){var i,t,n,a,l=this;e&&(l.TS=[],l.P8=[]);var o,r=l.A.BM("scale-r"),s=l.A.BM("scale"),A=.9,C=1;l.A3.length>=10&&(C=1),l.A3.length>=20&&(C=1.25),l.A3.length>=30&&(C=1.5);var c=r.DJ;for(i=0,t=l.A3.length;i=0&&p<=90||p>=270&&p<=360?t.iX+t.I-(u.I+25):t.iX+(u.I+25))-n)/ZC.EE(p),a=ZC.CY(a,2*i/t.I),i=t.F/2-(u.F/2+10),a=ZC.CY(a,2*i/t.F)}}a=ZC.BQ(.15,ZC.CY(.85,a)),"auto"===t.o["size-factor"]&&(t.o["size-factor"]=t.JS=a)}}),ZC.A7Y=ZC.LQ.CC({A24:{},$i:function(e){this.b(e)},ACU:function(){return new ZC.XI(this)},paint:function(){this.A24={},this.b()}}),ZC.A6U=ZC.A0L.CC({ACU:function(){return new ZC.TJ(this)}}),ZC.A6V=ZC.A0M.CC({ACU:function(){return new ZC.TK(this)}}),ZC.A82=ZC.LQ.CC({ACU:function(){return new ZC.XJ(this)}}),ZC.A2D=ZC.LQ.CC({parse:function(){var e,i,t,n,a,l=this;for(l.AZ=ZC.MAX,l.BD=-ZC.MAX,l.A7U=[],l.SC=[],l.b(),e=0,i=l.A3.length;e0||n.T3.length>0||n.A2.o["top-state"])&&(n.YN=!1),n.GB=new ZC.CZ(n),r.load(n.GB.o,b("hover-marker")),n.GB.append(n.o.marker),n.GB.append(n.o["hover-marker"]),null!==ZC._n_(e=n.o["selected-marker"])&&(n.PP=new ZC.CZ(n),r.load(n.PP.o,b("selected-marker")),n.PP.append(e)),null!==ZC._n_(e=n.o["background-marker"])&&(n.PN=new ZC.CZ(n),r.load(n.PN.o,b("background-marker")),n.PN.append(e)),n.ID&&(n.V4=new ZC.CZ(n),n.V4.append(n.o.marker),null!==ZC._n_(e=n.o["highlight-marker"])&&(r.load(n.V4.o,b("highlight-marker")),n.V4.append(e))),"normal"!==n.A0Y&&(n.T1||n.PP)&&(n.GW=!1),"fast"===n.A0Y&&(n.GW=!0),n.A7=new ZC.DP(n),n.o.tooltip&&n.o.tooltip.placement&&n.o.tooltip.placement.indexOf("node")>-1?r.load(n.A7.o,"("+n.AF+").tooltip[dynamic]"):r.load(n.A7.o,n.AF+".tooltip"),n.A7.append(n.o.tooltip),null!==ZC._n_(e=n.o.error)&&(n.JB=new ZC.DR(n),r.load(n.JB.o,b("error")),n.JB.append(e),null===ZC._n_(n.JB.o.size)&&(n.JB.o.size=4)),null!==ZC._n_(e=n.o["value-box"])){if(e instanceof Array)for(n.U=new ZC.CZ(n),r.load(n.U.o,b("value-box")),null!==ZC._n_(i=n.C.o.plot)&&n.U.append(i["value-box"]),n.U.append(e[0]),e.length>1&&(n.O0=[]),Z=1;Z1?(null===ZC._n_(n.V[Z][1])||"string"==typeof n.V[Z][1]&&"NULL"===n.V[Z][1].toUpperCase())&&(g=!0):(null===ZC._n_(n.V[Z])||"string"==typeof n.V[Z]&&"NULL"===n.V[Z].toUpperCase())&&(g=!0),"piano"===n.C.AF&&(g=!1)),g)n.S.push(null);else{!n.GW||"xy"!==n.C.AJ.layout&&"yx"!==n.C.AJ.layout?c=n.U1():n.GR[1]||("bubble"===n.AF||"scatter"===n.AF?n.GR[1]=c=n.U1():(n.GR[0]=n.U1(),n.GR[1]=c=n.U1(),n.GR[2]=n.U1(),n.GR[3]=n.U1())),c.K=n.K+"-node-"+Z,"string"==typeof n.V[Z]&&zingchart.QUOTEDVALUES&&(n.V[Z]=ZC._f_(n.V[Z])),c.o={value:n.V[Z]},"string"==typeof n.V[Z]&&(c.A23=!0),c.L=Z,n.o["hint-ts"]?(c.E.plotidx=n.L,c.E.nodeidx=c.L,c.K=n.K+"-node-"+c.L,c.BV=n.V[Z][0],c.AB=n.V[Z][1]):c.parse(),(t<256||zingchart.DEV.CHECKDECIMALS)&&null!==ZC._n_(c.AB)&&2===(C=c.AB.toString().split(".")).length&&(_=ZC.BQ(_,C[1].length)),c.BV&&(null!==h&&ZC._a_(c.BV-h)>0&&d.push(ZC._a_(c.BV-h)),h=c.BV),n.A.WT=n.A.WT||{};var v=n.A.WT["s"+n.E0];if(v&&(null!==h?-1===ZC.AV(v,c.BV)&&v.push(c.BV):-1===ZC.AV(v,Z)&&v.push(Z)),!n.GW||"xy"!==n.C.AJ.layout&&"yx"!==n.C.AJ.layout)n.S.push(c);else{var B={iX:c.iX,iY:c.iY,L:c.L,BV:c.BV,AB:c.AB,CQ:c.AB,DS:c.DS,IZ:c.IZ};"bubble"===n.AF&&(B.SP=c.SP),n.S.push(B)}null!==c.BV&&(n.Q2[0]=Math.min(n.Q2[0],c.BV),n.Q2[1]=Math.max(n.Q2[1],c.BV)),n.C.E["plot"+n.L+".visible"]&&(zingchart.DEV.PLOTSTATS||"100%"===n.KS)&&n.CF&&(null===ZC._n_(n.A.F8[Z])?(n.A.F8[Z]={},n.A.F8[Z]["%total-"+n.E0]=c.AB):null===ZC._n_(n.A.F8[Z]["%total-"+n.E0])?n.A.F8[Z]["%total-"+n.E0]=c.AB:n.A.F8[Z]["%total-"+n.E0]+=c.AB),zingchart.DEV.PLOTSTATS&&(f.push(c.AB),n.JA?(n.JA["%plot-max-index"]=Z,n.JA["%plot-sum"]+=c.AB,t<256&&(n.JA["%plot-values"]+=","+c.AB)):n.JA={"%plot-min-index":Z,"%plot-max-index":Z,"%plot-sum":c.AB,"%plot-values":c.AB},n.A.F8||(n.A.F8={}),n.AO&&(null===ZC._n_(n.A.F8["%pstack-"+Z+"-"+n.E0+"-sum"])?(n.A.F8["%pstack-"+Z+"-"+n.E0+"-sum"]=c.AB,n.A.F8["%pstack-"+Z+"-"+n.E0+"-stack-length"]=1):(n.A.F8["%pstack-"+Z+"-"+n.E0+"-sum"]+=c.AB,n.A.F8["%pstack-"+Z+"-"+n.E0+"-stack-length"]+=1)))}}(n.V.length<256||zingchart.DEV.CHECKDECIMALS)&&n.JA&&null!==ZC._n_(n.JA["%plot-sum"])&&2===(C=n.JA["%plot-sum"].toString().split(".")).length&&ZC._i_(C[1])>_&&(n.JA["%plot-sum"]=ZC._f_(n.JA["%plot-sum"].toFixed(ZC.CY(20,_)))),zingchart.DEV.PLOTSTATS?(n.JA&&(n.JA["%plot-average"]=n.JA["%plot-sum"]/n.V.length,n.JA["%plot-average"]=ZC._f_(n.JA["%plot-average"].toFixed(ZC.CY(20,_+2)))),f.length>0&&(n.JA["%plot-min-value"]=ZC.Y5(f),n.JA["%plot-max-value"]=ZC.A1V(f))):n.JA={"%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},h&&d.length>0&&(n.AAD=ZC.Y5(d),n.A2H=ZC.A1V(d))}}function b(e){var i=["("+n.AF+").plot."+e];return n.sTypeX&&i.push("("+n.sTypeX+").plot."+e),i}},mapPointsToPreview:function(e,i){for(var t=this,n=t.C.P,a=t.C.B7.AT,l=[],o=0,r=e.length;o0||ZC.DQ(a.S[i].BV,a.AY.V[a.AY.W],a.AY.V[a.AY.A1]))&&n++;a.RYl.I&&(a.U7=!0),a.MW>=n&&(a.R7=!0)}else a.MW>a.AY.A1-a.AY.W&&(a.R7=!0);a.Y=1,a.AY.EH&&a.EH||(n=a.AY.A1-a.AY.W,a.RYl.I&&(a.U7=!0),!a.QC&&n*a.XZ>l.I&&(a.Y=ZC.BQ(1,ZC._i_(n*a.XZ/l.I)))),a.AY.EH&&a.EH&&(a.QC||n*a.XZ>l.I&&(a.Y=ZC.BQ(1,ZC._i_(n*a.XZ/l.I)))),a.C.OC&&(a.QC=!1,a.Y*=a.YB)}null!==ZC._n_(a.XO)&&a.Y>a.XO&&(a.Y=a.XO)},PF:function(e){var i,t,n,a=this;null!==ZC._n_(e)&&e||(e=!1),a.AY&&"log"===a.AY.BS&&(e=!0),a.XU(e);var l=null;if(e||a.LT)a.A.A4L=!1,function Z(e,i){for(var t=e;t0||ZC.DQ(a.S[i].BV,a.AY.V[a.AY.W],a.AY.V[a.AY.A1])||o&&r&&a.S[i+n]&&a.S[i+n].BV>=a.AY.V[a.AY.W])&&(o&&r&&a.S[i-n]&&((l=a.FM(i-n)).Z=a.KH,l.paint(),l.IZ=!0,r=!1,A++),(l=a.FM(i)).Z=a.KH,l.paint(),l.IZ=!0,a.S[i].IZ=!0,A++,r=!1,s=i);o&&A>0&&a.S[s+n]&&((l=a.FM(s+n)).Z=a.KH,l.paint(),l.IZ=!0)}else{n=a.GC=a.HI=a.Y;var C=0,c=1,u=null;if(!o){var p="vbar"===a.AF?a.C.P.I:a.C.P.F;C=4/("vbar"===a.AF?a.C.P.F:a.C.P.I)*(a.CP.BD-a.CP.AZ),c=1+ZC._i_((a.AY.A1-a.AY.W)/(2*p)),n=1}for(i=a.AY.W;i<=a.AY.A1;i+=n)(a.AY.A1-a.AY.W)%a.Y!=0&&o&&(a.AY.A1-i==0?(a.GC=n,a.HI=1):a.AY.A1-i<=a.Y&&(a.GC=a.Y,a.HI=a.AY.A1-i,n=a.AY.A1-i)),a.S[i]?(l=a.FM(i),(o||a.QC||!o&&null===u||ZC._a_(l.AB-u)>C||i%c==0)&&(l.Z=a.KH,l.paint(),l.IZ=!0,a.S[i].IZ=!0),u=l.AB):a.CF&&-1!==ZC.AV(["vbar","hbar","vbar3d","hbar3d"],a.AF)&&a.ST()}}},CR:function(e,i){var t=this;if(t.UK[e+i])return t.UK[e+i];var n=null;return n=t.G.usc()?ZC.AM(t.G.K+"-main-c"+("fl"===e?"-top":"")):t.G.KC||t.C.AJ["3d"]?ZC.AM(t.C.K+"-plots-"+e+"-c"):ZC.AM(t.C.K+"-plot-"+t.L+"-"+e+"-"+i+"-c"),t.UK[e+i]||(t.UK[e+i]=n),n},V6:function(e){var i=this;return{id:i.G.K,graphid:i.C.K,graphidx:i.C.L,plotid:i.H7,plotindex:i.L,plottext:i.AN,ev:e?ZC.A5.C1(e):null,xdata:i.K2}},X6:function(e,i){ZC.AP.C0("plot_"+i,this.G,this.V6(e))},applyJsRuleSvg:function(e,i,t){var n;if(n=e.o["js-rule-svg"]){var a=ZC.AM(i),l=ZC.evalFn(n.replace("javascript:","").replace("()",""),window);if(a&&l)try{var o=l.call(this,t);for(var r in o)a.setAttribute(r,o[r])}catch(s){}}},sharedZScale:function(){var e=this,i=e.C,t=i.P;if(i.o["scale-z"]&&i.E["plot"+e.L+".visible"]){var n,a,l,o,r;if(n=new ZC.CD(i,t.iX+t.I-ZC.AL.E1+10,t.iY+t.F-ZC.AL.E2,e.E["z-mid"]),(a=new ZC.DP(e)).GM=i.K+"-scale-z-item "+i.K+"-scale-item zc-scale-item",a.K=i.K+"-scale-z-item_"+e.L,a.AN=i.o["scale-z"].values[e.L],a.Z=a.C7=e.G.usc()?e.G.mc():ZC.AM(i.K+"-scales-ml-0-c"),r=ZC.Q.ED(a.Z,e.G.AD),a.IO=e.G.usc()?ZC.AM(e.G.K+"-main"):ZC.AM(e.G.K+"-text"),a.append(i.o["scale-z"].item),a.parse(),a.AA+=a.VA?0:ZC.DK.A39(i,a),a.iX=n.EB[0],a.iY=n.EB[1],a.o["auto-align"]&&a.VA&&(a.iY-=a.F/2),a.paint(),null===ZC._n_(e.E["scale-z-item-max-width"])&&(e.E["scale-z-item-max-width"]=0),e.E["scale-z-item-max-width"]=ZC.BQ(e.E["scale-z-item-max-width"],a.I),e.E["z-cnt"]===e.E["z-plots"]-1&&i.o["scale-z"].label){var s,A;n=new ZC.CD(i,t.iX+t.I-ZC.AL.E1+20+e.E["scale-z-item-max-width"],t.iY+t.F-ZC.AL.E2,ZC.AL.FD/2),(a=new ZC.DP(e)).GM=i.K+"-scale-z-label "+i.K+"-scale-label zc-scale-label",a.K=i.K+"-scale-z-label",a.Z=a.C7=e.G.usc()?e.G.mc():ZC.AM(i.K+"-scales-ml-0-c"),r=ZC.Q.ED(a.Z,e.G.AD),a.IO=e.G.usc()?ZC.AM(e.G.K+"-main"):ZC.AM(e.G.K+"-text"),a.append(i.o["scale-z"].label),a.parse(),s=new ZC.CD(i,t.iX+t.I-ZC.AL.E1,t.iY+t.F-ZC.AL.E2,0),A=new ZC.CD(i,t.iX+t.I-ZC.AL.E1,t.iY+t.F-ZC.AL.E2,ZC.AL.FD);var C=ZC.U3(Math.atan((A.EB[1]-s.EB[1])/(A.EB[0]-s.EB[0])));a.AA+=a.VA?0:C,a.iX=n.EB[0],a.iY=n.EB[1],a.paint()}if(i.o["scale-z"].tick&&((o=new ZC.DR(e)).B9="#cccccc",o.B1=1,o.AI=6,o.append(i.o["scale-z"].tick),o.parse(),o.AO&&o.B1>0)){o.K=i.K+"-scale-z-tick-"+e.L;for(var c=[],u=[[t.iX+t.I,t.iY+t.F],[t.iX+t.I+o.AI,t.iY+t.F]],p=0;p0&&o.AO&&(o.A0=o.AE=o.B9,(l=ZC.DK.DD(o,i,t.iX+t.I-ZC.AL.E1-o.B1,t.iX+t.I-ZC.AL.E1,t.iY+t.F-ZC.AL.E2,t.iY+t.F-ZC.AL.E2,0,ZC.AL.FD,"x")).K=i.K+"-scale-z-axis",i.CM.add(l))),e.E["z-cnt"]>0&&i.o["scale-z"].guide&&((o=new ZC.CZ(e)).B9="#cccccc",o.B1=1,o.append(i.o["scale-z"].guide),o.parse(),o.B1>0&&o.AO&&(o.A0=o.AE=o.B9,(l=ZC.DK.DD(o,i,t.iX-ZC.AL.E1,t.iX+t.I-ZC.AL.E1,t.iY+t.F-ZC.AL.E2,t.iY+t.F-ZC.AL.E2+o.B1,e.E["z-cnt"]*e.E["z-depth"],e.E["z-cnt"]*e.E["z-depth"],"y")).K=i.K+"-scale-z-guideh-"+e.L,i.CM.add(l),(l=ZC.DK.DD(o,i,t.iX-ZC.AL.E1,t.iX-ZC.AL.E1,t.iY-ZC.AL.E2,t.iY+t.F-ZC.AL.E2,e.E["z-cnt"]*e.E["z-depth"],e.E["z-cnt"]*e.E["z-depth"]+o.B1,"y")).K=i.K+"-scale-z-guidev-"+e.L,i.CM.add(l))),i.o["scale-z"].items&&i.o["scale-z"].items.length){(o=new ZC.CZ(e)).A0=o.AE="#ff9900",o.C5=.25;var Z=e.E["z-cnt"]%i.o["scale-z"].items.length;o.append(i.o["scale-z"].items[Z]),o.parse(),(l=ZC.DK.DD(o,i,t.iX-ZC.AL.E1,t.iX+t.I-ZC.AL.E1,t.iY+t.F-ZC.AL.E2,t.iY+t.F-ZC.AL.E2,e.E["z-cnt"]*e.E["z-depth"],e.E["z-cnt"]*e.E["z-depth"]+e.E["z-depth"],"z")).K=e.K+"-item-",i.CM.add(l)}}},gc:function(){if(this.S)for(var e=0;e1&&"spline"===v&&(v="segmented"),r.AY.EH&&r.EH){for(t=r.Y,r.N6&&(t=1),e=0,i=r.S.length;e0||ZC.DQ(r.S[e].BV,r.AY.V[r.AY.W],r.AY.V[r.AY.A1])||p&&r.S[e+t]&&r.S[e+t].BV>=r.AY.V[r.AY.W])&&(p&&r.S[e-t]&&(-1===d&&(d=e-t),f=e-t,p=!1,Z++),-1===d&&(d=e),f=e,Z++,p=!1,n=e);Z>0&&r.S[n+t]&&(-1===d&&(d=n+t),f=n+t,r.S[n+t].IZ=!0)}else d=r.AY.W,f=r.LT||"log"===r.AY.BS?r.S.length:r.AY.A1;r.Y=g;var B=-1;t=r.Y,r.N6&&(t=1);var b=null,m=null,E=0,D=1;n=d,s?f-d>r.C.P.F&&(E=4/r.C.P.I*(r.CP.BD-r.CP.AZ),D=ZC._f_((f-d)/(4*r.C.P.F))):f-d>r.C.P.I&&(E=4/r.C.P.F*(r.CP.BD-r.CP.AZ),D=ZC._f_((f-d)/(4*r.C.P.I))),r.o["sampling-threshold"]&&(E*=Math.max(1,(f-d)/ZC._i_(r.o["sampling-threshold"])),D*=Math.max(1,(f-d)/ZC._i_(r.o["sampling-threshold"])));for(r.D=[],e=d;e<=f;e+=t){var F=!1;if(((f-d)%r.Y!=0||r.AY.EH&&r.EH)&&f-e<=r.Y&&(t=ZC.BQ(1,f-e),F=!0),r.N6&&!F&&r.S[e])if(null===ZC._n_(b))b=r.S[e].CQ,n=e,m=0;else{if(Math.abs(r.S[e].CQ-b)d&&(d=f)),c.E["min-y"]=Math.min(h,d),c.E["max-y"]=Math.max(h,d),c.CF&&c.A.F2){var _=ZC.MAX,g=-ZC.MAX;for(e=0,i=c.A.F2.length;e1&&"spline"===O&&(O="segmented"),c.AY.EH&&c.EH){for(n=c.Y,c.N6&&(n=1),e=0,i=c.S.length;e0||ZC.DQ(c.S[e].BV,c.AY.V[c.AY.W],c.AY.V[c.AY.A1])||w&&c.S[e+n]&&c.S[e+n].BV>=c.AY.V[c.AY.W])&&(w&&c.S[e-n]&&(-1===X&&(X=e-n),L=e-n,w=!1,M++),-1===X&&(X=e),L=e,M++,w=!1,t=e);M>0&&c.S[t+n]&&(-1===X&&(X=t+n),L=t+n,c.S[t+n].IZ=!0)}else X=c.AY.W,L=c.LT||"log"===c.AY.BS?c.S.length:c.AY.A1;c.Y=P,m||c.A.D9&&(D=c.A.D9.reverse());var S=null,N=null,k=0,z=1;t=X,u?L-X>c.C.P.F&&(k=4/c.C.P.I*(c.CP.BD-c.CP.AZ),z=ZC._f_((L-X)/(4*c.C.P.F))):L-X>c.C.P.I&&(k=4/c.C.P.F*(c.CP.BD-c.CP.AZ),z=ZC._f_((L-X)/(4*c.C.P.I)));var Q=!1,V=!1,J=-1;n=c.Y,c.N6&&(n=1),Q=!0,!c.A.RZ&&m&&(c.A.RZ={},c.A.VO={});var T=null,H=null;if(c.A.RZ&&!c.A.RZ["s"+c.E0]&&m){c.A.RZ["s"+c.E0]={},c.A.VO["s"+c.E0]={};var R=c.A.WT["s"+c.E0];for(e=0;e<=R.length;e++)null!==ZC._n_(R[e])&&(a=c.AY.EH?ZC._i_(c.AY.AR(R[e])):ZC._i_(c.AY.IE(R[e])),c.A.RZ["s"+c.E0][a]=y,c.A.VO["s"+c.E0][a]=y)}for(m&&(T=c.A.RZ["s"+c.E0],H=c.A.VO["s"+c.E0]),e=X;e<=L;e+=n){var W=!1;if(((L-X)%c.Y!=0||c.AY.EH&&c.EH)&&L-e<=c.Y&&(n=ZC.BQ(1,L-e),W=!0),c.N6&&!W&&c.S[e])if(null===ZC._n_(S))S=c.S[e].CQ,t=e,N=0;else{if(Math.abs(c.S[e].CQ-S)c.AY.iY&&(F.push([y,c.AY.iY]),F.push([y,Y.iY]),D.push([y,Y.iY])):Y.iX>c.AY.iX&&(F.push([c.AY.iX,y]),F.push([Y.iX,y]),D.push([Y.iX,y])),Q=!1),E.push([Y.iX,Y.iY]),m?u?H[ZC._i_(Y.iY)]=Y.iX:H[ZC._i_(Y.iX)]=Y.iY:(F.push([Y.iX,Y.iY]),D.push([Y.iX,Y.iY]));break;case"spline":u?(K.push(Y.iX),x.push(Y.iY),1===K.length&&(K.push(Y.iX),x.push(Y.iY))):(K.push(Y.iY),x.push(Y.iX),1===K.length&&(K.push(Y.iY),x.push(Y.iX)));break;case"stepped":var U=c.AY.AW?-1:1;switch(c.SQ){default:(o=c.FM(e-n,0))&&(o.setup(),l=ZC.AQ.JY(c.S[e-n].iX,c.S[e-n].iY,Y.iX,Y.iY),E.push(u?[Y.iX,l[1]]:[l[0],Y.iY]),m?u?H[ZC._i_(l[1])-U]=Y.iX:H[ZC._i_(l[0])+U]=Y.iY:(F.push(u?[Y.iX,l[1]]:[l[0],Y.iY]),D.push(u?[Y.iX,l[1]]:[l[0],Y.iY]))),E.push([Y.iX,Y.iY]),m?u?H[ZC._i_(Y.iY)]=Y.iX:H[ZC._i_(Y.iX)]=Y.iY:(F.push([Y.iX,Y.iY]),D.push([Y.iX,Y.iY])),(r=c.FM(e+n,0))&&(r.setup(),l=ZC.AQ.JY(Y.iX,Y.iY,c.S[e+n].iX,c.S[e+n].iY),E.push(u?[Y.iX,l[1]]:[l[0],Y.iY]),m?u?H[ZC._i_(l[1])+U]=Y.iX:H[ZC._i_(l[0])-U]=Y.iY:(F.push(u?[Y.iX,l[1]]:[l[0],Y.iY]),D.push(u?[Y.iX,l[1]]:[l[0],Y.iY])));break;case"before":(o=c.FM(e-n,0))&&(o.setup(),E.push([c.S[e-n].iX,c.S[e-n].iY],[c.S[e-n].iX,Y.iY]),m?u?(H[ZC._i_(Y.iY)+U]=c.S[e-n].iX,H[ZC._i_(Y.iY)]=c.S[e-n].iX):(H[ZC._i_(c.S[e-n].iX)]=c.S[e-n].iY,H[ZC._i_(c.S[e-n].iX)+U]=Y.iY):(F.push([c.S[e-n].iX,c.S[e-n].iY],[c.S[e-n].iX,Y.iY]),D.push([c.S[e-n].iX,c.S[e-n].iY],[c.S[e-n].iX,Y.iY]))),E.push([Y.iX,Y.iY]),m?u?H[ZC._i_(Y.iY)]=Y.iX:H[ZC._i_(Y.iX)]=Y.iY:(F.push([Y.iX,Y.iY]),D.push([Y.iX,Y.iY]));break;case"after":E.push([Y.iX,Y.iY]),m?u?H[ZC._i_(Y.iY)]=Y.iX:H[ZC._i_(Y.iX)]=Y.iY:(F.push([Y.iX,Y.iY]),D.push([Y.iX,Y.iY])),(r=c.FM(e+n,0))&&(r.setup(),E.push([c.S[e+n].iX,Y.iY],[c.S[e+n].iX,c.S[e+n].iY]),m?u?(H[ZC._i_(Y.iY)-U]=c.S[e+n].iX,H[ZC._i_(c.S[e+n].iY)]=c.S[e+n].iX):(H[ZC._i_(c.S[e+n].iX)-U]=Y.iY,H[ZC._i_(c.S[e+n].iX)]=c.S[e+n].iY):(F.push([c.S[e+n].iX,Y.iY],[c.S[e+n].iX,c.S[e+n].iY]),D.push([c.S[e+n].iX,Y.iY],[c.S[e+n].iX,c.S[e+n].iY])))}}G&&Y.N9(ZC.Q.ED(c.CR("fl",0),c.G.AD)),(c.R7&&b||c.FV||c.U)&&Y.PH(),Y.IZ=!0}else null!==ZC._n_(c.o["connect-nulls"])&&ZC._b_(c.o["connect-nulls"])||(E.push(null),K.push(null),x.push(null),m||(D.length-1>=0&&D.push(u?[y,D[D.length-1][1]]:[D[D.length-1][0],y]),F.length-1>=0&&F.push(u?[y,D[D.length-1][1]]:[D[D.length-1][0],y]),V=!0))}if("segmented"!==O&&"stepped"!==O||m||D.length-1>=0&&(u?D.push([y,D[D.length-1][1]]):D.push([D[D.length-1][0],y])),"spline"===O){K.push(K[K.length-1]),x.push(x[x.length-1]),E=[],m||D.push(u?[y,x[0]]:[x[0],y]);for(var j=1;j0){var ie=F[F.length-1];u||ie[0]=1&&(a=e.CG/e.AY.AC);var l=e.CT;e.CT>=1&&(l=e.CT/e.AY.AC);var o=1-a-l,r=ZC._x_(o/(3*n+1));e.CG=a+r+3*(t-1)*r,e.CT=1-e.CG-2*r}}},ST:function(){var e,i=this;if(i.RR)return i.RR;if(i.o["fast-dimensions"]&&i.A.A3[0].RR)return i.A.A3[0].RR;i.bKeyWidth&&(i.assign_a([["bar-width","D5","fp"]]),i.D5=((i.AY.CL?i.AY.F:i.AY.I)-i.AY.A9-i.AY.BU)*(i.D5/(i.AY.BD-i.AY.AZ)));var t,n=i.AY.AC*i.Y,a=0;for(i.A.K6[i.AF]=i.A.K6[i.AF]||[],e=0;e1&&(p/=a-1),p<0&&(c=n-C-u-(p=0)*(a-1))),Z=(c=ZC.BQ(c,1*a))/a):a>1&&(p=0,Z=c/a,f<=1&&(f*=Z),u=(h=n-(c=a*(Z-(f=ZC.CY(f,Z)))+f)-p*(a-1))-(C=h*(d=0===u?1:C/u)/(1+d)),C<1&&(c-=1-C))):(c=n-C-u,0===i.F0||a<=1?((p=i.F4)<=1&&(p*=c/a),u=(h=n-c-(p=ZC.BQ(0,p))*(a-1))-(C=h*(d=0===u?1:C/u)/(1+d)),C<1&&(C=u=0,p=n-c,a>1&&(p/=a-1),p<0&&(c=n-C-u-(p=0)*(a-1))),Z=(c=ZC.BQ(c,1*a))/a):a>1&&(p=0,Z=c/a,f>1&&(f=Z/f),f*=Z=c/(a-a*f+f),u=(h=n-c-p*(a-1))-(C=h*(d=0===u?1:C/u)/(1+d)),C<1&&(c-=1-C))),-1!==i.YX&&Z>i.YX&&!i.E.bw&&(i.D5=i.YX),i.RR={AC:n,EV:t,CG:C,CT:u,F4:p,D5:Z,F0:f},{AC:n,EV:t,CG:C,CT:u,F4:p,D5:Z,F0:f}},paint:function(){var e=this;e.b(),e.KH=e.CR("bl",0);var i=e.FE;e.A2M=!1,e.SE=null;var t=1;e.AY.EH&&(t=e.S.length/(e.AY.DN-e.AY.D4)),0!==e.E7.length||e.HW||e.C.KK||"svg"!==e.G.AD||!(e.AY.A1-e.AY.W>2048||e.AY.EH&&t*(e.AY.A1-e.AY.W)>2048)||(e.A2M=!0,null===ZC._n_(e.o["rect-shortcut"])&&(e.FE=!0)),e.FE||(e.A2M=!1),e.PF(),e.FE=i,e.RefNode=null,e.W2=null}}),ZC.QY=ZC.A2B.CC({$i:function(e){this.b(e),this.AF="vbar"},U1:function(){return new ZC.ZL(this)}}),ZC.QZ=ZC.A2B.CC({$i:function(e){this.b(e),this.AF="hbar"},U1:function(){return new ZC.ZM(this)}}),ZC.PD=ZC.W9.CC({$i:function(e,i){this.b(e),this.AF=i||"scatter",this.P5="markerbg",this.bPoly=!1,this.HP=.5},U1:function(){return new ZC.A5U(this)},parse:function(){var e=this;e.BP=e.O3(),e.C2=e.BP[0],e.A0=e.BP[1],e.AE=e.BP[1],e.B9=e.BP[2],e.BX=e.BP[2],e.NR(),e.b(),e.assign_a([["alpha-area","HP","f",0,1]]),e.AY=e.C.BM(e.BW("k")[0]),e.CP=e.C.BM(e.BW("v")[0])},paint:function(){var e,i,t,n=this;if(n.b(),n.KH=n.CR("bl",0),n._oCtxNode=ZC.Q.ED(n.CR("bl",0),n.G.AD),!n.GW||n.C.AJ["3d"]||"fast"!==n.A0Y||0!==n.RY)n.PF(!0);else{var a=null,l=n.AY,o=n.CP;n.XU(!0);var r=new ZC.DR(n.A);for(r.Z=n.CR("bl",1),r.C7=n.CR("bl",0),r.B9=n.BP[4],r.BX=n.BP[4],r.A0=n.BP[2],"bubble"===n.AF||"hbubble"===n.AF?r.AE=n.BP[1]:r.AE=n.BP[2],r.append(n.A2.o),r.parse(),i=0;i<=n.S.length;i++)if(a=n.FM(i)){var s=!1;l.CL?ZC.DQ(a.iX,o.iX+(o.AW?o.BU:o.A9)-1,o.iX+o.I-(o.AW?o.A9:o.BU)+1)&&ZC.DQ(a.iY,l.iY+(l.AW?l.BU:l.A9)-1,l.iY+l.F-(l.AW?l.A9:l.BU)+1)&&(s=!0):ZC.DQ(a.iX,l.iX+(l.AW?l.BU:l.A9)-1,l.iX+l.I-(l.AW?l.A9:l.BU)+1)&&ZC.DQ(a.iY,o.iY+(o.AW?o.A9:o.BU)-1,o.iY+o.F-(o.AW?o.BU:o.A9)+1)&&(s=!0),s&&(a.IZ=!0,n.S[i].IZ=!0,r.K=a.K+"-marker",r.iX=a.iX,r.iY=a.iY,"circle"!==r.DV&&r.parse(),"none"!==n.J2&&(n.C.IW[n.L]||n.C.KK)&&(r.o={},r.LR={},n.C.CE["p"+n.L]&&n.C.CE["p"+n.L]["n"+i]?r.LR=n.PP?n.PP.o:{}:"none"!==n.O5&&("plot"===n.O5&&n.C.IW[i]||"graph"===n.O5&&n.C.KK)&&(r.LR=n.PN?n.PN.o:{}),r.B9=n.BP[4],r.BX=n.BP[4],r.A0=n.BP[2],"bubble"===n.AF||"hbubble"===n.AF?r.AE=n.BP[1]:r.AE=n.BP[2],r.append(n.A2.o),r.parse()),r.paint())}}if(n.bPoly){for(e=[],i=0,t=n.S.length;il&&(a.RO=l,a.T9=Math.max(1,a.RO/t))),e=ZC.BQ(e,a.NY),n=a.RP===a.NY?e-a.NY:"radius"===a.A6L?(e-a.NY)/(a.RP-a.NY):(Math.sqrt(e)-Math.sqrt(a.NY))/(Math.sqrt(a.RP)-Math.sqrt(a.NY)),i=a.T9+a.JS*(a.RO-a.T9)*n,ZC.BQ(a.T9,i)},paint:function(){var e=this;e.b(),e.KH=e.CR("bl",0),e.RP=-ZC.MAX,e.NY=ZC.MAX;for(var i=e.A.A3,t=0,n=i.length;t=e.UV&&(e.QB=.2,e.UV=1),e.AY=e.C.BM(e.BW("k")[0]),e.CP=e.C.BM(e.BW("v")[0])},paint:function(){var e=this;e.b(),e.KH=e.CR("bl",0),e.A4T=e.A3J=-ZC.MAX,e.Y8=e.WN=ZC.MAX,e.A67=e.A4U=0;for(var i=0,t=e.A.A3.length;ia&&(i.Y=ZC._i_(5*(i.AY.A1-i.AY.W)/a));var l=i.AY.EH;if(l&&i.Q2[0]===ZC.MAX&&i.Q2[1]===-ZC.MAX&&(l=!1),i.bFastRange=i.S.length>1024,(i.AY.A1-i.AY.W)/(i.AY.DN-i.AY.D4)<.1&&(i.bFastRange=!1),l)for(Z=0,e=i.S.length;Z')}}},paint:function(){var e=this;e.b(),e.KH=e.CR("bl",0),e.A4S=ZC.Q.ED(e.CR("bl",1),e.G.AD),e.OA=ZC.Q.ED(e.CR("bl",2),e.G.AD),e.PF(),e.aPointsMin=[],e.aPointsMax=[],e.D=null,e.D9=null,e.ZW=null,e.S7=null}}),ZC.XL=ZC.WA.CC({$i:function(e){this.b(e);this.AF="pie3d",this.JI=-1},parse:function(){this.b(),this.assign_a([["thickness","JI","ia"]])},U1:function(){return new ZC.A7N(this)}}),ZC.UO=ZC.QY.CC({$i:function(e){this.b(e),this.AF="vbar3d"},U1:function(){return new ZC.A6Y(this)},parse:function(){var e=this;e.b(),null===ZC._n_(e.o["border-color"])&&(e.BX=e.BP[0]),null===ZC._n_(e.o["line-color"])&&(e.B9=e.BP[0])},paint:function(){this.b(),this.sharedZScale()}}),ZC.WD=ZC.QZ.CC({$i:function(e){this.b(e),this.AF="hbar3d"},U1:function(){return new ZC.A6Z(this)},parse:function(){var e=this;e.b(),null===ZC._n_(e.o["border-color"])&&(e.BX=e.BP[0]),null===ZC._n_(e.o["line-color"])&&(e.B9=e.BP[0])}}),ZC.UP=ZC.QW.CC({$i:function(e){this.b(e),this.AF="line3d"},U1:function(){return new ZC.A70(this)},parse:function(){var e=this;e.b(),null===ZC._n_(e.o["border-color"])&&(e.BX=e.BP[1])},paint:function(){this.b(),this.sharedZScale()}}),ZC.UQ=ZC.QX.CC({$i:function(e){this.b(e),this.AF="area3d"},U1:function(){return new ZC.A71(this)},parse:function(){var e=this;e.b(),null===ZC._n_(e.o["border-color"])&&(e.BX=e.BP[1])},paint:function(){this.b(),this.sharedZScale()}}),ZC.Z1=ZC.HY.CC({$i:function(e){this.b(e);var i=this;i.AF="venn",i.ABW=[],i.A9M=[],i.BO=["scale"],i.P5="bg"},U1:function(){return new ZC.A8B(this)},parse:function(){var e=this;e.BP=e.O3(),e.C2=e.BP[0],e.BX=e.BP[1],e.A0=e.BP[3],e.AE=e.BP[3],e.NR(),e.b(),e.assign_a([["join","ABW"],["share","A9M"]])},paint:function(){var e=this;e.b(),e.KH=e.CR("bl",0),e.PF(!0)}});var LM={$i:function(e){this.b(e);var i=this;i.C=e.A.A,i.G=i.C.A,i.L=-1,i.AB=null,i.DS=[],i.CQ=null,i.BV=null,i.CJ=null,i.JQ=[],i.HZ=!1,i.PX=!0,i.O=i,i.IZ=!1,i.A23=!1},H5:function(e,i){this.b(this.A,e,i,this.M2(null,!1),this.A.MN)},V7:function(){return[this.iX,this.iY,{reference:this,center:!0}]},ACA:function(){return[this.iX,this.iY]},getTooltipPosition:function(e,i,t){var n,a,l,o,r=this;switch(r.paint(!0),n=r.iX,a=r.iY,l=r.I,o=r.F,i){case"center":n=r.iX+l/2,a=r.iY+o/2;break;case"top":n=r.iX+l/2,a=r.iY,a=t?a-t:a;break;case"bottom":n=r.iX+l/2,a=r.iY+o,a=t?a+t:a;break;case"left":n=r.iX,a=r.iY+o/2,n=t?n-t:n;break;case"right":n=r.iX+l,a=r.iY+o/2,n=t?n+t:n;break;default:n+=r.BK,a+=r.BJ}return{x:n,y:a}},setNodeData:function(e){var i=this;for(var t in e)e.hasOwnProperty(t)&&(i.A.GW?i.A.S[i.L][t]=e[t]:i.E[t]=e[t])},getNodeData:function(e){return this.A.GW?this.A.S[this.L][e]:this.E[e]},AB3:function(){var e,i,t=this,n=t.C.E,a=t.A.L;null===ZC._n_(n.update)&&(n.update={});var l=n.update,o=""+t.AB,r=t.A.MU();for(ZC.PE(o)&&ZC._f_(o)<0&&"currency"===r.negation&&(o=ZC._a_(ZC._f_(o))),r.utc=t.C.UJ,r.timezone=t.C.NE,o=ZC.AP.G5(o,r,t.A),l["plot-"+a+"-value"]=o,l["plot-"+a+"-value-0"]=o,e=0,i=t.DS.length;e0?t.iX=a.AR(100*t.CQ/t.A.A.F8[t.L]["%total-"+t.A.E0]):t.iX=a.AR(100*t.CQ):t.iX=a.AR(t.CQ+0)):(null!==t.BV?t.iX=n.AR(t.BV):t.A.LT?"bar"===t.A.sMetaType?t.iX=n.IE(t.A.R8):t.iX=n.IE(t.A.R8)+t.A.RT+t.L*(n.AC-2*t.A.RT)/(t.A.S.length-1)-n.AC/2:"log"===n.BS?t.iX=n.AR(t.L):t.iX=n.IE(t.L),t.A.CF&&"100%"===t.A.KS?t.A.A.F8[t.L]["%total-"+t.A.E0]>0?t.iY=a.AR(100*t.CQ/t.A.A.F8[t.L]["%total-"+t.A.E0]):t.iY=a.AR(100*t.CQ):t.iY=a.AR(t.CQ+0)),t.A.GW&&(t.A.S[t.L].iX=t.iX,t.A.S[t.L].iY=t.iY),t.JQ=l}t.HZ||(t.HZ=!0,0!==t.A.E7.length||-1===ZC.AV(["line","area","vbar","hbar","line3d","area3d","vbar3d","hbar3d"],t.A.AF)||t.A.o.override?ZC.A5.browser.mozilla?(t.copy(t.A),t.E7=t.A.E7,t.DF(),t.parse(!1),t.R1(),t.O=t):t.A.o.override?(t.copy(t.A),t.E7=t.A.E7,t.DF(),t.parse(!1),t.R1(),t.O=t):(e=t.ACI(t.A.E7),null===ZC._n_(i=t.A.A64[e])?(t.copy(t.A),t.E7=t.A.E7,t.DF(),t.parse(!1),t.R1(),t.O=t,t.A.A64[e]=t):t.O=i):t.O=t.A,t.A.o.override&&(t.O.E.plotidx=t.A.L,t.O.E.nodeidx=t.L,t.O.parse(!1)))},a11y:function(){var e=this,i="";if(e.G.bA11y){if(e.A.GW){var t=this.A.FM(e.L,1,!0);t&&(i=t.JZ(this.C.A7.o.text||this.A.A7.o.text||this.A.J9))}else i=e.JZ(this.C.A7.o.text||this.A.A7.o.text||this.A.J9);return e.A.AN&&-1===i.indexOf(e.A.AN)&&(i=e.A.AN+":"+i),i=i.replace(/<.+?>/gi," "),'tabindex="0" aria-label="Series '+(this.A.L+1)+" of "+this.A.A.A3.length+", point "+(this.L+1)+" of "+this.A.S.length+". "+i+'"'}return""},AA1:function(){var e,i=this;if(i.o.value instanceof Array&&(i.CJ=i.o.value.join(" "),"string"==typeof i.o.value[0]?-1!==(e=ZC.AV(i.A.AY.IT,i.o.value[0]))?i.BV=e:(i.A.AY.IT.push(i.o.value[0]),i.BV=i.A.AY.IT.length-1):i.BV=parseFloat(i.o.value[0]),"string"==typeof i.o.value[1]?-1!==(e=ZC.AV(i.A.CP.JN,i.o.value[1]))?i.AB=e:(i.A.CP.JN.push(i.o.value[1]),i.AB=i.A.CP.JN.length-1):i.AB=parseFloat(i.o.value[1]),null!==i.BV&&i.A.V9(i.BV,i.L),i.A.YP>0&&i.o.value.length>i.A.YP))for(var t=i.o.value.length-i.A.YP;t128&&(o.A1-o.W)/(o.DN-o.D4)>l.A.fValueBoxThreshold)&&(l.A.O0&&l.A.O0.length>0&&l.A.O0.length>i-1&&l.GZ(e,i+1),l.AO||"pie"===l.A.AF||"pie3d"===l.A.AF)){var r,s=1===i?l.A.U:l.A.O0[i-2];if(s){if(l.A.A78)(r=l.A.A78).K=l.K+"-value-box-"+i,r.Z=r.C7=l.G.usc()?l.G.mc("top"):l.C.AJ["3d"]||l.G.KC?ZC.AM(l.C.K+"-plots-vb-c"):ZC.AM(l.C.K+"-plot-"+l.A.L+"-vb-c"),r.IO=l.G.usc()?ZC.AM(l.C.A.K+"-top"):ZC.AM(l.C.A.K+"-text"),r.E.plotidx=l.A.L,r.E.nodeidx=l.L,a=ZC.AP.O7(r.o,l.A.o),r.JZ=function(e){return l.JZ(e,a)},r.parse();else{r=new ZC.DP(l.A),s.o.rules||l.A.U.HW||(n="all",null!==ZC._n_(t=s.o.type)&&(n=t),"pie"===l.C.AF||"nestedpie"===l.C.AF||"pie3d"===l.C.AF||"all"!==n||l.A.O0&&0!==l.A.O0.length||(l.A.A78=r)),r.append(s.o),l.appendToValueBox&&!e&&(r.parse(),r.append(l.appendToValueBox(r))),r.GM=l.C.K+"-value-box "+l.C.K+"-plot-"+l.A.L+"-value-box zc-value-box",r.K=l.K+"-value-box-"+i,r.Z=r.C7=l.G.usc()?l.G.mc("top"):l.C.AJ["3d"]||l.G.KC?ZC.AM(l.C.K+"-plots-vb-c"):ZC.AM(l.C.K+"-plot-"+l.A.L+"-vb-c"),r.IO=l.G.usc()?ZC.AM(l.C.A.K+"-top"):ZC.AM(l.C.A.K+"-text"),a=ZC.AP.O7(r.o,l.A.o),r.JZ=function(e){return l.JZ(e,a)};var A=l.ABF(r);if(null!==ZC._n_(t=A.color)&&(r.C2=t),null!==ZC._n_(t=A["background-color"])&&(r.A0=r.AE=t),r.E.plotidx=l.A.L,r.E.nodeidx=l.L,l.A.U.HW&&(l.A.U.H5(l.A.U,r,null,l.M2(null,!1)),r.parse()),r.parse(),r.J7=function(e){return l.J7(e)},r.DF()&&(a=r.overrideFormat(a),r.parse()),!l.A.YO){var C=new ZC.DP(l.A);C.copy(r),l.A.YO=C}if(n="all",null!==ZC._n_(t=s.o.type)&&(n=t),r.AO){r.AO=!1;var c=l.A.o["value-box"].text||"";if("values("===n.substring(0,7)){var u=n.substring(7,n.length).replace(")","").split(",");-1!==ZC.AV(u,l.AB)&&(r.AO=!0)}else{var p=n.split(","),Z={min:"%plot-min-value",max:"%plot-max-value",first:"%plot-min-index",last:"%plot-max-index"};for(var h in Z)-1!==ZC.AV(p,h)&&(("first"!==h&&"last"!==h||l.L!==l.A.JA[Z[h]])&&("min"!==h&&"max"!==h||l.AB!==l.A.JA[Z[h]])||("object"==typeof c&&null!==ZC._n_(c[h])&&(r.o.text=c[h],r.parse()),r.AO=!0));-1!==ZC.AV(p,"all")&&(r.AO=!0)}}}if(l.C.E["plot"+l.A.L+".visible"]||(r.E["css-display"]="none"),e)return r;if(r.AO&&null!==ZC._n_(r.AN)&&""!==r.AN){var d=l.AC7(r);r.E.positioninfo=d,r.iX=d[0],r.iY=d[1];var f={};if(-1!==r.iX&&-1!==r.iY){var _=!1;if(null!==ZC._n_(r.o.overlap)&&!ZC._b_(r.o.overlap)){f={x:r.iX,y:r.iY,width:r.I,height:r.F};for(var g=0,v=l.A.A.W6.length;g2)for(var B=2;B=n.LF&&!n.AW||t.AB=t.AB&&t.AB<=r?l="bottom":o<=t.AB&&t.AB>=r?l="top":o>=t.AB&&t.AB>=r?l=o/t.AB>t.AB/r?"bottom":"top":o<=t.AB&&t.AB<=r&&(l=t.AB/o>r/t.AB?"top":"bottom")}var s=e.I,A=e.F,C=t.iX-s/2,c=t.iY-A/2;switch(l){case"top":c-=a*(A/2+4);break;case"bottom":c+=a*(A/2+4);break;case"left":C-=s/2+4;break;case"right":C+=s/2+4}t.C.AJ["3d"]||(C=ZC.BQ(t.C.P.iX-s/2,C),C=ZC.CY(t.C.P.iX+t.C.P.I-s/2,C),c=ZC.BQ(t.C.P.iY-A,c),c=ZC.CY(t.C.P.iY+t.C.P.F,c)),null!==ZC._n_(e.o.x)&&(C=e.iX),null!==ZC._n_(e.o.y)&&(c=e.iY);var u=[ZC._i_(C),ZC._i_(c)];return ZC._b_(e.o.flexible)&&(u.push(ZC._i_(t.iX-s/2),ZC._i_(t.iY-A/2-a*(A/2+5))),u.push(ZC._i_(t.iX-s/2),ZC._i_(t.iY-A/2+a*(A/2+5))),u.push(ZC._i_(t.iX-s/2-s/2-5),ZC._i_(t.iY-A/2)),u.push(ZC._i_(t.iX-s/2+s/2+5),ZC._i_(t.iY-A/2)),u.push(ZC._i_(t.iX-s/2),ZC._i_(t.iY-A/2-a*(A/2+10))),u.push(ZC._i_(t.iX-s/2),ZC._i_(t.iY-A/2+a*(A/2+10))),u.push(ZC._i_(t.iX-s/2-s/2-10),ZC._i_(t.iY-A/2)),u.push(ZC._i_(t.iX-s/2+s/2+10),ZC._i_(t.iY-A/2))),u},PH:function(e,i){var t,n,a,l,o,r=this;if("undefined"==typeof r.A.bBS&&(r.A.bBS=-1===ZC.AV(["bubble","hbubble","scatter","hscatter"],r.A.AF)),null!==ZC._n_(r.A.o["markers-on-top"])&&(r.A.bBS=ZC._b_(r.A.o["markers-on-top"])),!r.C.OC||!r.A.bBS){null===ZC._n_(e)&&(e=!1),null===ZC._n_(i)&&(i=!1);var s=r.C.P.E.tolerance||2,A=!0;if(ZC.DQ(r.iX,r.C.P.iX-s,r.C.P.iX+r.C.P.I+s)&&ZC.DQ(r.iY,r.C.P.iY-s,r.C.P.iY+r.C.P.F+s)||(A=!1,0!==zingchart.DEV.TRACKERMASKING)){var C=r.C.K+"-node-area "+r.C.K+"-plotset-plot-"+r.A.L+"-node-area zc-node-area";if(-1===ZC.AV(r.G.KP,"skip_segment_tracking")&&r.A.FV){if(r.A.Y0&&!zingchart.DEV.SKIPTRACKERS){var c=r.getNodeData("points");if(-1!==ZC.AV(r.G.KP,"use_fast_mode")&&-1!==ZC.AV(["line","area"],r.A.AF)&&void 0===c&&r.paint(!0),c)if("undefined"==typeof r.E.polypoints){if(2===zingchart.DEV.TRACKERMASKING){for(var u=[r.C.P.iX,r.C.P.iY,r.C.P.iX+r.C.P.I,r.C.P.iY+r.C.P.F],p=[[u[0],u[1],u[2],u[1]],[u[0],u[3],u[2],u[3]],[u[0],u[1],u[0],u[3]],[u[2],u[1],u[2],u[3]]],Z=[],h=0;h')}if(("area"===r.A.AF||"area3d"===r.A.AF||"radar"===r.A.AF&&("area"===r.A.CW||"range"===r.A.CW))&&r.A.XF){var K=r.getNodeData("pointsarea");""!==(a=ZC.AQ.PG(K,4))&&r.A.A.HE.push(ZC.Q.FT("poly",r.A.EA,r.A.IL)+'class="'+C+'" id="'+r.K+'--area" coords="'+a+'" />')}}if(A&&(r.A.U||!r.A.GW||!r.A.A2.o||"none"!==r.A.A2.o.type&&(null===ZC._n_(r.A.A2.o.visible)||ZC._b_(r.A.A2.o.visible)))){if(i||r.A.R7){if(r.A.HF)l=r.A.HF,"svg"!==r.G.AD&&(e?(o=new ZC.CD(r.C,r.iX-ZC.AL.E1,r.iY-ZC.AL.E2,r.A.E["z-start"]||0),l.iX=ZC._x_(o.EB[0]),l.iY=ZC._x_(o.EB[1]),r.E["3dxy"]=[l.iX,l.iY]):(l.iX=ZC._x_(r.iX),l.iY=ZC._x_(r.iY)),l.E.plotidx=r.A.L,l.E.nodeidx=r.L,l.K=r.K+"-marker",l.parse(!0));else{if(r.GW?r.A._oMarker?l=r.A._oMarker:r.A._oMarker=l=new ZC.DR(r.A):l=new ZC.DR(r.A),l.K=r.K+"-marker",l.E["p-width"]=r.A.AY.AC,l.E["p-height"]=r.A.CP.AC,r.A.bBS)l.Z=r.A.CR("fl",0),l.C7=r.A.CR("fl",0);else if(l.Z=r.A.CR("bl",1),l.C7=r.A.CR("bl",0),Object&&Object.keys&&Object.keys(r.C.CE).length>0){var x=r.C.CE["p"+r.A.L];"none"!==r.A.J2&&x&&x["n"+r.L]&&(l.Z=r.A.CR("bl",2))}if(e?(o=new ZC.CD(r.C,r.iX-ZC.AL.E1,r.iY-ZC.AL.E2,r.A.E["z-start"]||0),l.iX=ZC._x_(o.EB[0]),l.iY=ZC._x_(o.EB[1]),r.E["3dxy"]=[l.iX,l.iY]):(l.iX=ZC._x_(r.iX),l.iY=ZC._x_(r.iY)),l.B9=r.A.BP[3],l.BX=r.A.BP[4],l.A0=r.A.BP[2],"bubble"===r.A.AF||"hbubble"===r.A.AF?l.AE=r.A.BP[1]:l.AE=r.A.BP[2],l.append(r.A.A2.o),null!==ZC._n_(r.E["marker.size"])&&(l.AI=r.E["marker.size"]),l.E.plotidx=r.A.L,l.E.nodeidx=r.L,"none"!==r.A.J2&&(r.C.IW[r.A.L]||r.C.KK))if(r.C.CE["p"+r.A.L]&&r.C.CE["p"+r.A.L]["n"+r.L]){if(l.LR={},r.A.PP&&ZC._cp_(r.A.PP.o,l.LR),l.LR.rules){var I=new ZC.DR(r.A);I.o=l.LR,I.parse(),I.J7=function(e){return r.J7(e)},I.DF()&&(l.LR=I.o)}}else"none"!==r.A.O5&&("plot"===r.A.O5&&r.C.IW[r.A.L]||"graph"===r.A.O5&&r.C.KK)&&(l.LR=r.A.PN?r.A.PN.o:{});null!==ZC._n_(t=r.A.o.marker)&&null!==ZC._n_(t.styles)&&null!==ZC._n_(n=t.styles[r.L])&&("string"==typeof n?l.append({"background-color":ZC.AP.PM(n,20),"line-color":ZC.AP.JO(n,20),"border-color":ZC.AP.JO(n,20)}):l.append(n)),l.parse(),l.J7=function(e){return r.J7(e)},l.DF()&&l.parse()}if(r.E["marker.size"]=ZC.BQ(2.02,r.E["marker.size"]||l.AI),l.DG=C,!(e||ZC.DQ(l.iX,r.C.P.iX-2,r.C.P.iX+r.C.P.I+2)&&ZC.DQ(l.iY,r.C.P.iY-2,r.C.P.iY+r.C.P.F+2)))return;if(l.HW&&(r.A.YN=!1,l.H5(l,l,null,r.M2(null,!1)),l.parse()),r.L8=l,l.AO&&"none"!==l.AF){var y=function(){if(r.A.bBS||r.N9(ZC.Q.ED(r.A.CR("bl",0),r.G.AD)),r.E["marker.type"]=l.DV,r.A.FV&&-1===ZC.AV(r.G.KP,"skip_marker_tracking")&&!zingchart.DEV.SKIPTRACKERS){var e=r.E["3dxy"]?r.E["3dxy"][0]:r.iX,i=r.E["3dxy"]?r.E["3dxy"][1]:r.iY,t=parseInt(e+l.BK+ZC.MAPTX,10),n=parseInt(i+l.BJ+ZC.MAPTX,10),a=parseInt(ZC.BQ(ZC.mobile?6:3,r.E["marker.size"]+1)*(ZC.mobile?1.25:1.05),10),o=!0;if("undefined"!=typeof r.A.aLastMarkerXY)Math.sqrt((t-r.A.aLastMarkerXY[0])*(t-r.A.aLastMarkerXY[0])+(n-r.A.aLastMarkerXY[1])*(n-r.A.aLastMarkerXY[1]))'):r.A.A.HE.push(ZC.Q.FT("circle",r.A.EA,r.A.IL)+'class="'+C+'" '+r.a11y()+' id="'+r.K+'--marker" coords="'+t+","+n+","+a+'" />'))}if(r.A.U&&(r.A.E.vboxid=r.K,r.GZ()),!r.A.bBS&&r.C.B7&&r.C.B7.HZ&&r.A.QS&&r.C.B7.AO){var s=r.C.P,A=r.C.B7,c=A.AT,u=r.A.HF||l,p=new ZC.DR(r.A);p.copy(u);var Z=(r.iX-s.iX)/s.I,h=(r.iY-s.iY)/s.F,d=Math.min(c.F/s.F,c.I/s.I);p.iX=c.iX+c.AU+Z*(c.I-2*c.AU),p.iY=c.iY+c.AU+h*(c.F-2*c.AU),p.K=r.K+"-marker-preview",p.DG=r.A.K+"-preview";var f=u.AI;null!==ZC._n_(r.E["marker.size"])&&(f=r.E["marker.size"]),p.AI=ZC.BQ(2.02,.9*d*f),p.Z=p.C7=A.Z,p.parse(),p.paint()}},w=!1;if((!r.A.bBS||"radar"===r.A.AF&&"dots"===r.A.CW)&&(w=!0),r.A.GF&&w&&!r.C.HK){var M=l,Y={},X=l.C5,L=l.AI,G=l.iX,P=l.iY;M.iX=G,M.iY=P,Y.x=G,Y.y=P;var O,S=r.A.LD,N=r.C.P;for(O in M.C5=0,Y.alpha=X,3===S?(M.AI=2,Y.size=L):8===S?(M.iX=G-N.iX,Y.x=G):9===S?(M.iX=G+N.iX,Y.x=G):10===S?(M.iY=P-N.iY,Y.y=P):11===S&&(M.iY=P+N.iY,Y.y=P),r.A.FY)M[ZC.E6.GN[ZC.EG(O)]]=r.A.FY[O],Y[ZC.EG(O)]=r.O[ZC.E6.GN[ZC.EG(O)]];if(null===ZC._n_(r.C.EQ)&&(r.C.EQ={}),null!==ZC._n_(r.C.EQ[r.A.L+"-"+r.L]))for(O in r.C.EQ[r.A.L+"-"+r.L])M[ZC.E6.GN[ZC.EG(O)]]=r.C.EQ[r.A.L+"-"+r.L][O];r.C.EQ[r.A.L+"-"+r.L]={},ZC._cp_(Y,r.C.EQ[r.A.L+"-"+r.L]);var k=new ZC.E6(M,Y,r.A.JG,r.A.LB,ZC.E6.RN[r.A.LE],function(){y()});k.AX=r,k.OE=function(){r.N9(ZC.Q.ED(r.A.CR("bl",0),r.G.AD))},r.LU(k)}else{var z="circle"===l.DV?"circle":"path";if(r.A.HL){var Q=function(i,t){var n=i.cloneNode(!1),a=r.iX,o=r.iY;if(e){var s=new ZC.CD(r.C,a-ZC.AL.E1,o-ZC.AL.E2,r.A.E["z-start"]||0);a=ZC._x_(s.EB[0]),o=ZC._x_(s.EB[1]),r.E["3dxy"]=[a,o]}n.setAttribute("transform","translate("+ZC._i_(a-l.iX)+","+ZC._i_(o-l.iY)+") "+(n.getAttribute("transform")||"")),n.setAttribute("id",t),"bubble"!==r.A.AF&&"hbubble"!==r.A.AF||n.setAttribute("r",r.E["marker.size"]),i.parentNode.appendChild(n)};l.MD&&Q(r.A.RE,r.K+"-marker-sh-"+z),Q(r.A.HL,r.K+"-marker-"+z),l.DC&&Q(r.A.QD,r.K+"-marker-imgfill")}else{l.paint();var V=l.A0!==l.AE;if(!r.C.IW[r.A.L]&&r.A.YN&&!V)if("svg"===r.G.AD){if(-1===ZC.AV(["pie","square","rect","rectangle","cross","plus","custom"],l.DV))if(r.A.HF=l,zingchart.DEV.DOMFRAGMENTS&&document.querySelector){for(var J in r.G.G4)r.A.HL||(r.A.HL=r.G.G4[J].querySelector("#"+r.K+"-marker-"+z)),l.MD&&!r.A.RE&&(r.A.RE=r.G.G4[J].querySelector("#"+r.K+"-marker-sh-"+z)),l.DC&&!r.A.QD&&(r.A.QD=r.G.G4[J].querySelector("#"+r.K+"-marker-imgfill")||r.G.G4[J].querySelector("#"+r.K+"-marker-path-imgfill"));r.A.HL||(r.A.HL=ZC.AM(r.K+"-marker-"+z),l.MD&&(r.A.RE=ZC.AM(r.K+"-marker-sh-"+z)),l.DC&&(r.A.QD=ZC.AM(r.K+"-marker-imgfill")))}else r.A.HL=ZC.AM(r.K+"-marker-"+z),l.MD&&(r.A.RE=ZC.AM(r.K+"-marker-sh-"+z)),l.DC&&(r.A.QD=ZC.AM(r.K+"-marker-imgfill")||ZC.AM(r.K+"-marker-path-imgfill"))}else"bubble"!==r.A.AF&&"hbubble"!==r.A.AF&&(e||(r.A.HF=l))}"svg"===r.G.AD&&r.A.applyJsRuleSvg(r.A.A2,r.K+"-marker-"+z,r.M2()),y()}}else r.A.U&&r.GZ()}else r.A.U&&r.GZ()}}}},LU:function(e,i){var t,n=this,a=n.C.LX,l=a.PJ,o=n.A.TO;switch(o){default:i&&a.add(i),a.add(e);break;case 1:case 2:case 3:if(i){var r="all";if(1===o?r="plots-group-"+n.L+"-area":2===o&&(r="nodes-group-"+n.A.L+"-area"),null===ZC._n_(l[r])){var s=new ZC.VP(r);a.AA8(s,i.XD)}l[r].add(i)}if(t="all",1===o?t="plots-group-"+n.L:2===o&&(t="nodes-group-"+n.A.L),null===ZC._n_(l[t])){var A=new ZC.VP(t);a.AA8(A,e.XD)}l[t].add(e)}},U2:function(e){var i=this;i.A.GW&&i.A.bXY&&(i.R1(),e&&("scatter"!==i.A.AF&&"hscatter"!==i.A.AF&&"bubble"!==i.A.AF&&"hbubble"!==i.A.AF||i.paint(!0)));var t=i.A.BP;i.MB({layer:e,type:"shape",id:"marker",marker:!0,initcb:function(){this.DV=i.E["marker.type"],this.iX=i.iX,this.iY=i.iY,"bubble"===i.A.AF||"hbubble"===i.A.AF?(this.AE=t[3],this.A0=t[2]):(this.A0=t[2],this.AE=t[1]),this.B9=t[3],this.BX=t[4],this.AI=i.E["marker.size"]}})},A1X:function(e){var i=this;i.MB({layer:e,type:"line",id:"line",initcb:function(){this.B9=i.A.BP[3]}})},MB:function(e){if(!ZC.move){var i,t,n,a,l,o,r=this,s=e.layer||"hover",A=e.id||"",C=!1;switch(r.GK=null,null!==ZC._n_(i=e.marker)&&(C=ZC._b_(i)),s){case"hover":null!==ZC._n_(r.C.CE["p"+r.A.L])&&null!==ZC._n_(r.C.CE["p"+r.A.L]["n"+r.L])||(n=C?r.A.GB:r.A.IH,a="hover");break;case"highlight":n=C?r.A.V4:r.A.S9,a="hover"}if(null!==ZC._n_(e.state)&&(n=e.state),n&&r.C.E["plot"+r.A.L+".visible"]&&n.AO){switch(e.type){case"box":(o=new ZC.HS(r.A)).PX=!0;break;case"line":o=new ZC.DR(r.A),l=ZC.Q.ED(r.C.K+"-"+a+"-c",r.G.AD),o.D0=!1;break;case"shape":o=new ZC.DR(r.A);break;case"area":o=new ZC.DR(r.A),l=ZC.Q.ED(r.C.K+"-"+a+"-c",r.G.AD)}if(C&&(o.E["p-width"]=r.A.AY.AC,o.E["p-height"]=r.A.CP.AC),zingchart.DEV.PLOTSHLAYER&&"hover"===a?o.Z=o.C7=ZC.AM(r.C.K+"-plots-hover-c"):o.Z=o.C7=ZC.AM(r.C.K+"-"+a+"-c"),o.K=r.K+"-"+(""!==A?A+"-":"")+s,o.E.plotidx=r.A.L,o.E.nodeidx=r.L,"hover"!==s&&(o.A20=!0),e.initcb&&e.initcb.call(o),o.append(n.o),e.parsecb&&e.parsecb.call(o),"hover"===s&&null!==ZC._n_(i=r.A.o)&&null!==ZC._n_(i.styles)&&null!==ZC._n_(t=i.styles[r.L])&&("string"==typeof t?o.append({"background-color":t,"line-color":t,"border-color":t}):o.append(t)),null!==ZC._n_(i=r.A.o[s+"-state"])&&null!==ZC._n_(i.styles)&&null!==ZC._n_(t=i.styles[r.L])&&("string"==typeof t?o.append({"background-color":t,"line-color":t,"border-color":t}):o.append(t)),r.A.HW&&r.H5(o,s),"hover"===s&&r.A.A2&&r.A.A2.HW&&(r.A.A2.H5(r.A.A2,o,null,r.M2(null,!1)),o.parse()),o.parse(),o.J7=function(e){return r.J7(e)},o.DF()&&o.parse(),o.AO){switch(e.setupcb&&e.setupcb.call(o),e.type){case"box":case"shape":o.locate(2),o.paint();break;case"line":ZC.CN.setup(l,o),"plot"===r.A.A3K?ZC.CN.paint(l,o,r.A.V3):ZC.CN.paint(l,o,r.getNodeData("points"));break;case"area":"spline"!==r.A.CW&&(null!==ZC._n_(i=n.o["alpha-area"])&&(o.C5=ZC._f_(i)),ZC.CN.setup(l,o),o.paint())}r.GK=o}}}},N9:function(){},setup:function(){},A15:function(){},LN:function(){var e=this;ZC.Q.EW([e.K+"-hover-gradient",e.K+"-marker-hover-gradient",e.G.K+"-tooltip-text-gradient",e.G.K+"-tooltip-text-sh-gradient"])},M2:function(e,i){var t=this;void 0===i&&(i=!0);var n=!1;"none"!==t.A.J2&&t.C.CE&&t.C.CE["p"+t.A.L]&&t.C.CE["p"+t.A.L]["n"+t.L]&&(n=!0);var a={id:t.C.A.K,graphid:t.C.K,graphindex:t.C.L,plotid:t.A.H7,plotindex:t.A.L,nodeindex:t.L,key:null===t.BV?t.L:t.BV,scaleval:t.A.AY?t.A.AY.V[null===t.BV?t.L:t.BV]:null,scaletext:t.A.AY?t.A.AY.FR(t.L,null===t.BV?null:t.A):null,value:t.AB,text:i?t.JZ(t.A.J9):t.A.J9,ev:e?ZC.A5.C1(e):null,x:t.iX,y:t.iY,width:t.I,height:t.F,size:t.E["marker.size"]||1,selected:n};for(var l in t.A.K2)t.A.K2[l]instanceof Array?null!==ZC._n_(t.A.K2[l][t.L])&&(a["data-"+l]=t.A.K2[l][t.L]):a["data-"+l]=t.A.K2[l];return a},X7:function(e,i){ZC.AP.C0("node_"+i,this.G,this.M2(e))}};ZC.LM=ZC.DP.CC(LM),ZC.A31=ZC.LM.CC({setup:function(){this.R1()},ABF:function(){return{color:this.A.GW?this.A.B9:this.O.B9}},Y4:function(){return{"background-color":this.O.B9,"border-color":this.O.B9,color:this.O.C2}},getTooltipPosition:function(e,i){return this.b(e,i,this.L8.AI)},paint:function(e){var i=this;void 0===e&&(e=!1),i.b();var t=i.A.NG,n=i.A.OA,a=i.A.AY,l=i.A.S;if(i.setup(),!i.A.GW||i.C.AJ["3d"]||i.A.FV){i.O.D0=i.D0=!1,i.O.C7=i.A.CR("bl",0);var o=[],r=i.A.CW;(i.C.OC||i.A.U7)&&"spline"===i.A.CW&&(r="segmented");var s="undefined"!=typeof i.A.GC?i.A.GC:i.A.Y,A="undefined"!=typeof i.A.HI?i.A.HI:i.A.Y,C=!0,c=!0;(null===ZC._n_(l[i.L-s])||"log"!==a.BS&&!a.EH&&i.L<=a.W)&&(C=!1);var u,p,Z,h,d=i.A.LT?i.A.S.length:a.A1;switch((null===ZC._n_(l[i.L+A])||"log"!==a.BS&&!a.EH&&i.L>=d)&&(c=!1),r){default:C&&(i.A.FM(i.L-s,0).setup(),i.A.UX&&(u=ZC.AQ.JY(i.A.S[i.L-s].iX,i.A.S[i.L-s].iY,i.A.S[i.L].iX,i.A.S[i.L].iY),o.push(u))),o.push([i.iX,i.iY]),c&&(i.A.FM(i.L+A,2).setup(),u=i.A.UX?ZC.AQ.JY(i.A.S[i.L].iX,i.A.S[i.L].iY,i.A.S[i.L+A].iX,i.A.S[i.L+A].iY,i.O.C5):[l[i.L+A].iX,l[i.L+A].iY],o.push(u));break;case"spline":if(i.A.D&&(o=i.A.D),i.A.D=[],l[i.L+1]){var f=[],_=[];for(p=-1;p<3;p++)l[i.L+p]?(i.A.FM(i.L+p,2).setup(),t?(f.push(l[i.L+p].iX),_.push(l[i.L+p].iY)):(f.push(l[i.L+p].iY),_.push(l[i.L+p].iX))):0===f.length?t?(_.push(i.iY),f.push(i.iX)):(_.push(i.iX),f.push(i.iY)):(f.push(f[f.length-1]),_.push(_[_.length-1]));var g=ZC._a_(_[2]-_[1]);g=Math.min(g,Math.max(i.C.I,i.C.F));var v=ZC.AQ.YD(i.A.QG,f,g);if(i.A.UX){for(p=0;p1&&(m.D=D,E.points=o);for(h in i.A.FY)m[ZC.E6.GN[ZC.EG(h)]]=i.A.FY[h],E[ZC.EG(h)]=B[ZC.E6.GN[ZC.EG(h)]];if(i.C.EQ||(i.C.EQ={}),null!==ZC._n_(i.C.EQ[i.A.L+"-"+i.L]))for(h in i.C.EQ[i.A.L+"-"+i.L])m[ZC.E6.GN[ZC.EG(h)]]=i.C.EQ[i.A.L+"-"+i.L][h];i.C.EQ[i.A.L+"-"+i.L]={},ZC._cp_(E,i.C.EQ[i.A.L+"-"+i.L]);var x=new ZC.E6(m,E,i.A.JG,i.A.LB,ZC.E6.RN[i.A.LE],function(){I()});x.AX=i,x.OE=function(){i.N9(ZC.Q.ED(i.A.CR("bl",1),i.G.AD))},x.HU=n,i.LU(x)}else ZC.CN.paint(n,B,o),I()}}function I(){!i.C.OC&&ZC.DQ(i.iX,a.iX-1,a.iX+a.I+1)&&ZC.DQ(i.iY,a.iY-1,a.iY+a.F+1)&&(i.PH(),i.N9(ZC.Q.ED(i.A.CR("bl",1),i.G.AD)),i.A.U&&i.A.U.AO&&i.A.E.vboxid!==i.K&&i.GZ())}},paintPreview:function(e,i){var t=this;if(t.C.B7&&t.C.B7.HZ&&t.A.QS){var n,a=t.A.mapPointsToPreview(i);t.A.VY?n=t.A.VY:(n=new ZC.CZ(t),t.A.VY=n),n.copy(e),n.K=t.K+"-line-preview",n.DG=t.A.K+"-preview";var l=ZC.Q.ED(t.C.B7.Z,t.G.AD);n.B1=1;var o=t.o["preview-state"];o&&(n.append(o),n.parse()),ZC.CN.paint(l,n,a,null,3)}},A15:function(e){var i=this;ZC.move||(i.A1X(e),i.A.R7&&i.U2(e))}}),ZC.A32=ZC.LM.CC({setup:function(){this.R1()},ABF:function(){return{color:this.A.GW?this.A.B9:this.O.B9}},Y4:function(){return{"background-color":this.O.B9,"border-color":this.O.B9,color:this.O.C2}},getTooltipPosition:function(e,i){return this.b(e,i,this.L8.AI)},paint:function(e){var i,t,n,a,l,o,r,s,A=this;void 0===e&&(e=!1),A.b();var C=A.A.NG,c=A.A.OA,u=A.A.AY,p=A.A.CP,Z=A.A.S;if(A.setup(),!A.A.GW||A.C.AJ["3d"]||A.A.FV){A.O.D0=A.D0=!1,A.O.C7=A.A.CR("bl",1);var h=p.H9,d=p.AR(h);d=C?ZC._l_(d,p.iX,p.iY+p.I):ZC._l_(d,p.iY,p.iY+p.F);var f=u.DE?u.AC/2:0,_=[],g=[],v=[],B=null;null!==ZC._n_(A.A.A.F2)&&null!==ZC._n_(A.A.A.F2[A.L])&&(B=A.A.A.F2[A.L]);var b=A.A.CW;(A.C.OC||A.A.U7)&&"spline"===A.A.CW&&(b="segmented"),t=A.O.B1/2-1,n="svg"===A.G.AD&&ZC.mobile?A.O.HP/4:0,"vml"===A.G.AD&&A.A.GF&&(n=.5),A.C.AJ["3d"]&&(1===A.A.HP?n=1:(n=A.A.HP/3,"canvas"===A.G.AD&&(ZC.A5.browser.msie||ZC.A5.browser.opera)&&(n=.5)),u.AW&&(n=-n));var m,E="undefined"!=typeof A.A.GC?A.A.GC:A.A.Y,D="undefined"!=typeof A.A.HI?A.A.HI:A.A.Y,F=!0,K=!0;(!Z[A.L-E]||"log"!==u.BS&&!u.EH&&A.L<=u.W)&&(F=!1);var x=A.A.LT?A.A.S.length:u.A1;switch((!Z[A.L+D]||"log"!==u.BS&&!u.EH&&A.L>=x)&&(K=!1),b){default:if(F)A.A.FM(A.L-E,0).setup(),A.A.UX?(l=ZC.AQ.JY(Z[A.L-E].iX,Z[A.L-E].iY,Z[A.L].iX,Z[A.L].iY),v.push([ZC._i_(l[0])-n,l[1]-t]),A.A.CF&&null!==ZC._n_(B)||g.push([ZC._i_(l[0])-n,d]),g.push([ZC._i_(l[0])-n,l[1]+t]),_.push([l[0],l[1]])):g.push([ZC._i_(A.iX),d]);else if(u.EH||A.L!==u.W)A.A.CF&&null!==ZC._n_(B)?(m=A.A.A.A3[A.A.L-1])&&m.S[A.L]&&g.push([ZC._i_(A.iX),m.S[A.L].iY+t]):(g.push([ZC._i_(A.iX),d]),v.push([ZC._i_(A.iX-u.AC/2),d]),v.push([ZC._i_(A.iX),d]));else if(u.AW)A.A.CF&&null!==ZC._n_(B)||g.push([ZC._i_(u.iX+u.I-u.BU-f),d]),g.push([ZC._i_(u.iX+u.I-u.BU-f),A.iY+t]);else{var I=ZC._i_(u.iX+u.A9+f);A.A.LT&&(I=u.IE(A.A.R8)-u.AC/2),A.A.CF&&null!==ZC._n_(B)||g.push([I,d]),g.push([I,A.iY+t])}v.push([ZC._i_(A.iX),A.iY-t]),g.push([ZC._i_(A.iX),A.iY+t]),_.push([A.iX,A.iY]),K?(A.A.FM(A.L+D,2).setup(),a=A.A.UX?ZC.AQ.JY(Z[A.L].iX,Z[A.L].iY,Z[A.L+D].iX,Z[A.L+D].iY):[Z[A.L+D].iX,Z[A.L+D].iY],v.push([ZC._i_(a[0]),a[1]-t]),g.push([ZC._i_(a[0]),a[1]+t]),A.A.CF&&null!==ZC._n_(B)||g.push([ZC._i_(a[0]),d]),l=A.A.UX?ZC.AQ.JY(Z[A.L].iX,Z[A.L].iY,Z[A.L+D].iX,Z[A.L+D].iY,A.O.C5):[Z[A.L+D].iX,Z[A.L+D].iY],_.push([l[0],l[1]])):A.L===u.A1?u.AW?(g.push([u.iX+u.A9-f,A.iY+t]),A.A.CF&&null!==ZC._n_(B)||g.push([ZC._i_(u.iX+u.A9-f),d])):(g.push([u.iX+u.I-u.BU-f,A.iY+t]),A.A.CF&&null!==ZC._n_(B)||g.push([ZC._i_(u.iX+u.I-u.BU-f),d])):A.A.CF&&null!==ZC._n_(B)?(m=A.A.A.A3[A.A.L-1])&&m.S[A.L]&&g.push([ZC._i_(A.iX),m.S[A.L].iY+t]):(g.push([ZC._i_(A.iX),d]),v.push([ZC._i_(A.iX),d]),v.push([ZC._i_(A.iX+u.AC/2),d]));break;case"spline":if(null!==ZC._n_(A.A.D9)&&(v=A.A.D9),null!==ZC._n_(A.A.AH)&&(g=A.A.AH),A.A.D9=[],A.A.AH=[],null!==ZC._n_(A.A.D)&&(_=A.A.D),A.A.D=[],Z[A.L+1]){var y=[],w=[];for(o=-1;o<3;o++)Z[A.L+o]?(A.A.FM(A.L+o,2).setup(),C?(y.push(Z[A.L+o].iX),w.push(Z[A.L+o].iY)):(y.push(Z[A.L+o].iY),w.push(Z[A.L+o].iX))):0===y.length?C?(w.push(A.iY),y.push(A.iX)):(w.push(A.iX),y.push(A.iY)):(y.push(y[y.length-1]),w.push(w[w.length-1]));var M=ZC._a_(w[2]-w[1]);M=Math.min(M,Math.max(A.C.I,A.C.F));var Y=ZC.AQ.YD(A.A.QG,y,M);if(A.A.UX){for(0===g.length&&(A.A.CF&&null!==ZC._n_(B)||g.push([ZC._i_(A.iX+(u.AW?-1:1)*Y[0][0]*M),d])),o=0;o0&&g.push([g[g.length-1][0],d]);break;case"stepped":if(F)switch(A.A.FM(A.L-E,0).setup(),l=ZC.AQ.JY(Z[A.L-E].iX,Z[A.L-E].iY,Z[A.L].iX,Z[A.L].iY),A.A.SQ){default:v.push([ZC._i_(l[0])-n,A.iY-t]),A.A.CF&&null!==ZC._n_(B)||g.push([ZC._i_(l[0])-n,d]),g.push([ZC._i_(l[0])-n,A.iY+t]),_.push(C?[Z[A.L-E].iX,l[1]]:[l[0],Z[A.L-E].iY]),_.push(C?[A.iX,l[1]]:[l[0],A.iY]);break;case"before":v.push([ZC._i_(Z[A.L-E].iX)-n,A.iY-t]),A.A.CF&&null!==ZC._n_(B)||g.push([ZC._i_(Z[A.L-E].iX)-n,d]),g.push([ZC._i_(Z[A.L-E].iX)-n,A.iY+t]),_.push([Z[A.L-E].iX,Z[A.L-E].iY]),_.push([Z[A.L-E].iX,A.iY]);break;case"after":v.push([ZC._i_(A.iX)-n,A.iY-t]),A.A.CF&&null!==ZC._n_(B)||g.push([ZC._i_(A.iX)-n,d]),g.push([ZC._i_(A.iX)-n,A.iY+t])}else u.EH||A.L!==u.W?A.A.CF&&null!==ZC._n_(B)?(m=A.A.A.A3[A.A.L-1])&&m.S[A.L]&&g.push([ZC._i_(A.iX),m.S[A.L].iY+t]):(g.push([ZC._i_(A.iX),d]),v.push([ZC._i_(A.iX-u.AC/2),d]),v.push([ZC._i_(A.iX),d])):u.AW?(A.A.CF&&null!==ZC._n_(B)||g.push([ZC._i_(u.iX+u.I-u.BU-f),d]),g.push([ZC._i_(u.iX+u.I-u.BU-f),A.iY+t])):(A.A.CF&&null!==ZC._n_(B)||g.push([ZC._i_(u.iX+u.A9+f),d]),g.push([ZC._i_(u.iX+u.A9+f),A.iY+t]));if(v.push([ZC._i_(A.iX),A.iY-t]),g.push([ZC._i_(A.iX),A.iY+t]),_.push([A.iX,A.iY]),K)switch(A.A.FM(A.L+D,2).setup(),l=ZC.AQ.JY(Z[A.L].iX,Z[A.L].iY,Z[A.L+D].iX,Z[A.L+D].iY,A.O.C5),A.A.SQ){default:v.push([ZC._i_(l[0]),A.iY-t]),g.push([ZC._i_(l[0]),A.iY+t]),A.A.CF&&null!==ZC._n_(B)||g.push([ZC._i_(l[0]),d]),_.push(C?[A.iX,l[1]]:[l[0],A.iY]);break;case"before":v.push([ZC._i_(A.iX),A.iY-t]),g.push([ZC._i_(A.iX),A.iY+t]),A.A.CF&&null!==ZC._n_(B)||g.push([ZC._i_(A.iX),d]);break;case"after":v.push([ZC._i_(Z[A.L+D].iX),A.iY-t]),g.push([ZC._i_(Z[A.L+D].iX),A.iY+t]),A.A.CF&&null!==ZC._n_(B)||g.push([ZC._i_(Z[A.L+D].iX),d]),_.push([Z[A.L+D].iX,A.iY]),_.push([Z[A.L+D].iX,Z[A.L+D].iY])}else A.L===u.A1?u.AW?(g.push([u.iX+u.A9-f,A.iY+t]),A.A.CF&&null!==ZC._n_(B)||g.push([ZC._i_(u.iX+u.A9-f),d])):(g.push([u.iX+u.I-u.BU-f,A.iY+t]),A.A.CF&&null!==ZC._n_(B)||g.push([ZC._i_(u.iX+u.I-u.BU-f),d])):A.A.CF&&null!==ZC._n_(B)?(m=A.A.A.A3[A.A.L-1])&&m.S[A.L]&&g.push([ZC._i_(A.iX),m.S[A.L].iY+t]):(g.push([ZC._i_(A.iX),d]),v.push([ZC._i_(A.iX),d]),v.push([ZC._i_(A.iX+u.AC/2),d]))}if(A.A.CF&&null!==ZC._n_(B))for(o=B.length-1;o>=0;o--)g.push(B[o]);if(A.setNodeData({points:_,pointsarea:g}),"ready"!==A.C.M6&&(A.A.V3=A.A.V3.concat(_)),null===ZC._n_(A.A.A.F2)&&(A.A.A.F2=[]),A.A.A.F2[A.L]=v,!e&&!A.C.AJ["3d"]){var X=A.O=A.A.IG(A,A.O),L=A.C.K+"-node-area "+A.C.K+"-plotset-plot-"+A.A.L+"-node-area zc-node-area";X.DG=L,X.K=A.K,A.A.HW&&A.H5(X);var G,P=A.C.P;if(0!==A.A.E7.length||A.A.HW||"undefined"==typeof A.A.A9K||A.O.o.override||A.C.KK?((G=new ZC.DR(A.A)).copy(X),G.C5=A.A.HP):G=A.A.A9K,A.H5(G),G.C5=ZC._f_(G.o["alpha-area"]||"1"),G.D0=!1,G.LA=!0,G.B1=0,G.AU=0,G.EU=0,G.G3=0,G.Z=A.A.CR("bl",A.C.CF?0:1),G.D=g,G.D2=[P.iX,P.iY,P.iX+P.I,P.iY+P.F],null!==ZC._n_(i=A.A.E["min-y"])&&(G.E["bound-1"]=i,G.D2[1]=i),null!==ZC._n_(i=A.A.E["max-y"])&&(G.E["bound-3"]=i,G.D2[3]=i),G.K=A.K+"-area",A.A.GF||(G.E.areanode=!0),ZC.CN.setup(c,X),A.paintPreview(X,_,g),A.A.GF&&!A.C.HK){var O=new ZC.DR(A),S={};O.copy(X),O.K=A.K,O.Z=A.A.CR("bl",2),O.C7=A.A.CR("bl",1),O.D=_;var N=G,k={},z=[],Q=[];O.D=_,S.points=_,N.D=g,k.points=g;var V=A.A.LD,J=A.C.P;O.C5=0,S.alpha=X.C5,N.C5=0,k.alpha=A.A.HP;var T,H=function(e){for(var i=e?g:_,t=e?Q:z,n=0;n1&&(e?(N.D=Q,k.points=g):(O.D=z,S.points=_))};for(T in H(),H(!0),A.A.FY)O[ZC.E6.GN[ZC.EG(T)]]=A.A.FY[T],S[ZC.EG(T)]=X[ZC.E6.GN[ZC.EG(T)]],N[ZC.E6.GN[ZC.EG(T)]]=A.A.FY[T],k[ZC.EG(T)]=X[ZC.E6.GN[ZC.EG(T)]];if(null===ZC._n_(A.C.EQ)&&(A.C.EQ={}),null===ZC._n_(A.C.SW)&&(A.C.SW={}),null!==ZC._n_(A.C.EQ[A.A.L+"-"+A.L])){for(T in A.C.EQ[A.A.L+"-"+A.L])O[ZC.E6.GN[ZC.EG(T)]]=A.C.EQ[A.A.L+"-"+A.L][T];for(T in A.C.SW[A.A.L+"-"+A.L])N[ZC.E6.GN[ZC.EG(T)]]=A.C.SW[A.A.L+"-"+A.L][T]}A.C.EQ[A.A.L+"-"+A.L]={},ZC._cp_(S,A.C.EQ[A.A.L+"-"+A.L]),A.C.SW[A.A.L+"-"+A.L]={},ZC._cp_(k,A.C.SW[A.A.L+"-"+A.L]);var R=new ZC.E6(O,S,A.A.JG,A.A.LB,ZC.E6.RN[A.A.LE],function(){U()});R.AX=A,R.OE=function(){A.N9(ZC.Q.ED(A.A.CR("bl",1),A.G.AD))},R.HU=c;var W=new ZC.E6(N,k,A.A.JG,A.A.LB,ZC.E6.RN[A.A.LE],function(){});W.AX=A,A.LU(R,W)}else G.paint(),0!==A.A.E7.length||"undefined"!=typeof A.A.A9K||A.O.o.override||A.C.KK||A.C.HK||(A.A.A9K=G),ZC.CN.paint(c,X,_),U()}}function U(){!A.C.OC&&ZC.DQ(A.iX,u.iX-1,u.iX+u.I+1)&&ZC.DQ(A.iY,u.iY-1,u.iY+u.F+1)&&(A.PH(),A.N9(ZC.Q.ED(A.A.CR("bl",1),A.G.AD)),A.A.U&&A.A.U.AO&&A.A.E.vboxid!==A.K&&A.GZ())}},paintPreview:function(e,i,t){var n=this;if(n.C.B7&&n.C.B7.HZ&&n.A.QS){var a,l=n.C.P,o=n.C.B7,r=n.A.mapPointsToPreview(t),s=new ZC.DR(n.A);s.copy(e),s.D0=!0,s.LA=!0,s.B1=0,s.AU=0,s.EU=0,s.G3=0,s.C5=n.A.HP,s.D2=[l.iX,l.iY,l.iX+l.I,l.iY+l.F],s.K=n.K+"-area-preview",s.DG=n.A.K+"-preview",s.Z=o.Z;var A,C=n.A.o["preview-state"];C&&(null!==ZC._n_(C["alpha-area"])?(a=C.alpha,C.alpha=C["alpha-area"]):C.alpha=s.C5,s.append(C),s.parse(),null!==ZC._n_(a)?C.alpha=a:delete C.alpha),s.D=r,s.paint();var c=n.A.mapPointsToPreview(i);n.A.VY?A=n.A.VY:(A=new ZC.CZ(n),n.A.VY=A),A.copy(e),A.K=n.K+"-line-preview",A.DG=n.A.K+"-preview";var u=ZC.Q.ED(o.Z,n.G.AD);A.B1=1,C&&(A.append(C),A.parse()),ZC.CN.paint(u,A,c,null,3)}},A15:function(e){var i=this;ZC.move||(i.A.NG||i.MB({layer:e,type:"area",initcb:function(){this.A0=i.A.BP[2],this.AE=i.A.BP[2],this.D=i.getNodeData("pointsarea")||[]},setupcb:function(){this.B1=0,this.AU=0,this.C5=i.A.HP;var e=i.C.P;this.D2=[e.iX,e.iY,e.iX+e.I,e.iY+e.F]}}),i.A1X(e),i.A.R7&&i.U2(e))}}),ZC.ZL=ZC.LM.CC({setup:function(){this.R1()},V7:function(){var e=this;e.paint(!0);var i=e.C.BM(e.A.BW("v")[0]);return[e.iX+e.I/2,e.iY+(i.AW?e.F:0),{reference:e,center:!0}]},AC7:function(e){var i=this,t="top-out",n=i.C.BM(i.A.BW("v")[0]),a=i.AB>=n.H9&&!n.AW||i.ABi.C.P.iY+i.C.P.F-o-5+p[2]&&(s=i.C.P.iY+i.C.P.F-o-5+p[2]-c)),[ZC._i_(r),ZC._i_(s)]},getPMap:function(){var e=this.b();return this.addPMap(e,"barWidth","I"),e},paint:function(e){var i,t=this;if(t.b(),!t.C.AJ["3d"]){void 0===e&&(e=!1);var n=t.A.AY,a=t.A.CP;t.setup();var l,o,r,s,A,C=a.H9,c=a.AR(C),u=t.A.ST(),p=u.AC,Z=u.EV,h=u.CG,d=u.CT,f=u.F4,_=u.D5,g=u.F0;if(e?Z=t.A.E["node-"+t.L+"-bar-index"]:t.A.E["node-"+t.L+"-bar-index"]=u.EV,t.A.CF){l=0;for(var v=t.A.A.KG[Z],B=0;B0){var K=_;(_=t.A.D5)<=1&&(_*=K),F+=(K-_)/2}var x=_,I=t.iY,y=null!==ZC._n_(t.A.LZ[t.L])?t.A.LZ[t.L]:0;if(I=t.A.CF&&"100%"===t.A.KS?a.AR(100*(t.CQ+y)/t.A.A.F8[t.L]["%total-"+t.A.E0]):a.AR(t.CQ+y),t.A.CF){o="100%"===t.A.KS?a.AR(100*(t.CQ-t.AB+y)/t.A.A.F8[t.L]["%total-"+t.A.E0]):a.AR(t.CQ-t.AB+y),I=ZC._i_(I),o=ZC._i_(o);var w=!a.AW&&t.AB>=0||a.AW&&t.AB<=0?-1:1,M=0,Y=0;""!==t.A.PZ?(M=t.WZ(t.A.PZ)[0],Y=0):M=t.A.AU,""!==t.A.NQ?(Y=t.WZ(t.A.NQ)[0],M=0):Y=t.A.AU,M!==Y&&(w=0),r=I-o+w*M,t.AB<0&&(I=o),a.AW?r>0&&(r=ZC._a_(r),I=o):r<0&&(r=ZC._a_(r),I=o-r),a.AW&&t.AB<0&&(r+=Y)}else o=a.AR(y),(r=I-o)<0?(r=ZC._a_(r),I=o-r):I=o;if(t.A.TT&&t.A.CF&&t.A.L>0&&t.A.A.A3[t.A.L-1].S[t.L]&&0===t.A.A.A3[t.A.L-1].S[t.L].AB&&(r-=1,I+=a.AW?1:-1),r<2&&(t.AB>0||t.A.TT)&&(r=1,a.AW?t.A.CF&&(t.A.L>0&&(I-=1),(0===t.A.L||t.AB>0&&t.AB===t.CQ)&&(I+=1)):t.A.CF?(0===t.A.L||t.AB>0&&t.AB===t.CQ)&&(I-=2):I=y?o-1:c-2),t.I=x,t.F=r,t.iX=F,t.iY=I,a.AW?t.AB>=a.H9?t.iYVal=I+t.F:t.iYVal=I:t.AB>=a.H9?t.iYVal=I:t.iYVal=I+t.F,t.C.CX){var X="middle";t.C.CX.o.marker&&null!==ZC._n_(i=t.C.CX.o.marker.alignment)&&(X=i),null!==ZC._n_(t.A.o["guide-marker"])&&null!==ZC._n_(i=t.A.o["guide-marker"].alignment)&&(X=i),"node"===X&&(t.E.A5P=t.iX+t.I/2)}if(!e){var L;t.setNodeData({x:F,y:I,w:x,h:r});var G=!0;if("none"!==t.A.J2||t.C.IW[t.A.L]||t.C.KK||t.A.T3&&t.A.T3[t.L]?(L=t.O=t.A.IG(t,t.O),G=!1):L=t.O,(0!==t.A.E7.length||t.A.HW||t.O.o.override||t.C.KK)&&(G=!1),t.AO){var P;switch(t.A.CW){default:0!==t.A.E7.length||t.A.HW||"undefined"==typeof t.A.TR||t.O.o.override||t.C.KK?(P=new ZC.HS(t.A)).copy(L):P=t.A.TR,t.A.HW&&(t.H5(P),P.parse()),P.FE=t.A.FE,P.K=t.K,P.iX=F,P.iY=I,P.I=t.I,P.F=t.F,n.AC<5&&P.I<5?(P.I=ZC.BQ(1,P.I)+1,P.N2=!1,P.D0=!1):P.N2=!0,P.I<5&&n.A1!==n.W&&t.C.P.I/(n.A1-n.W)<1&&(P.QU=!0);break;case"pyramid":case"cone":0!==t.A.E7.length||t.A.HW||"undefined"==typeof t.A.TR||t.O.o.override||t.C.KK?(P=new ZC.DR(t.A)).copy(L):P=t.A.TR,t.A.HW&&(t.H5(P),P.parse()),P.K=t.K,a.AW&&!t.A.CF?(A=t.AB>=0?0:t.F,s=t.AB>=0?t.F:0):(A=t.AB>=0?t.F:0,s=t.AB>=0?0:t.F),P.D=[],P.D.push([F+t.I/2-m*t.I/2,I+A],[F+t.I/2+m*t.I/2,I+A]),t.A.CF&&0!==E?P.D.push([F+t.I/2+E*t.I/2,I+s],[F+t.I/2-E*t.I/2,I+s]):P.D.push([F+t.I/2,I+s]),P.D.push([P.D[0][0],P.D[0][1]]),t.setNodeData({points:P.D}),P.iX=F,P.iY=I,P.locate(2)}P.Z=t.A.CR("bl",1),P.C7=t.A.CR("bl",0),t.paintPreview(L,G);var O=t.C.K+"-node-area "+t.C.K+"-plotset-plot-"+t.A.L+"-node-area zc-node-area";P.DG=O;var S=ZC._c_(t.A.o.tolerance,5),N=function(){if("undefined"!=typeof t.paint_&&t.paint_(),t.N9(ZC.Q.ED(P.Z,t.G.AD)),ZC.AQ._boxoverlap2_(t,t.C.P,S)&&t.A.FV&&-1===ZC.AV(t.G.KP,"skip_segment_tracking")){var e=x<5?.5:-.5,i=r<3?.5:-.5,n=ZC.Q.FT("rect",t.A.EA,P.IL)+'class="'+O+'" '+t.a11y()+' id="'+t.K+'" coords="'+ZC._i_(F+t.A.BK+ZC.MAPTX-e)+","+ZC._i_(I+t.A.BJ+ZC.MAPTX-i)+","+ZC._i_(F+t.A.BK+x+ZC.MAPTX+e)+","+ZC._i_(I+t.A.BJ+r+ZC.MAPTX+i)+'" />';t.A.A.HE.push(n)}t.A.U&&t.A.U.AO&&t.GZ()};if(t.A.GF&&!t.C.HK){var k=P,z={};k.iX=F,k.iY=I,k.I=x,k.F=r,z.x=F,z.y=I,z.width=x,z.height=r;var Q,V=t.A.LD,J=t.C.P;for(Q in k.C5=0,z.alpha=L.C5,2===V?(k.iY=J.iY+J.F/2,k.F=1,z.height=t.F,z.y=I):3===V?(k.iY=J.iY,k.F=1,z.height=t.F,z.y=I):4===V?(k.iY=J.iY+J.F,k.F=1,z.height=t.F,z.y=I):5===V?(k.iX=J.iX,k.I=1,z.width=t.I,z.x=F):6===V?(k.iX=J.iX+J.I,k.I=1,z.width=t.I,z.x=F):7===V?(k.iX=J.iX+J.I/2,k.I=1,z.width=t.I,z.x=F):8===V?(k.iX=F-J.I,z.x=F):9===V?(k.iX=F+J.I,z.x=F):10===V?(k.iY=I-J.F,z.y=I):11===V?(k.iY=I+J.F,z.y=I):12===V?(k.I=1,z.width=t.I):13===V&&(k.F=1,z.height=t.F),t.A.FY)k[ZC.E6.GN[ZC.EG(Q)]]=t.A.FY[Q],z[ZC.EG(Q)]=L[ZC.E6.GN[ZC.EG(Q)]];if(null===ZC._n_(t.C.EQ)&&(t.C.EQ={}),null!==ZC._n_(t.C.EQ[t.A.L+"-"+t.L]))for(Q in t.C.EQ[t.A.L+"-"+t.L])k[ZC.E6.GN[ZC.EG(Q)]]=t.C.EQ[t.A.L+"-"+t.L][Q];if(t.C.EQ[t.A.L+"-"+t.L]={},ZC._cp_(z,t.C.EQ[t.A.L+"-"+t.L]),ZC.AQ._boxoverlap2_(t,t.C.P,S)){var T=new ZC.E6(k,z,t.A.JG,t.A.LB,ZC.E6.RN[t.A.LE],function(){N()});T.AX=t,T.OE=function(){t.N9(ZC.Q.ED(P.Z,t.G.AD))},t.LU(T)}}else{if(P.AO||0===t.A.E7.length&&!t.A.HW)if(t.A.W2||(t.A.W2={iX:P.iX,iY:P.iY,F:P.F}),t.A.A2M)if(t.A.SE)if(t.A.SE.el&&"RECT"===t.A.SE.el.tagName.toUpperCase()){var H=!1;if(t.A.N6&&t.A.W2&&ZC._a_(P.iX-t.A.W2.iX)<.75&&ZC._a_(P.iY-t.A.W2.iY)<1.5&&ZC._a_(P.F-t.A.W2.F)<1.5&&(H=!0),!H){t.A.W2={iX:P.iX,iY:P.iY,F:P.F};var R=t.A.SE.el.cloneNode(!1);R.setAttribute("id",t.K),R.setAttribute("x",t.iX),R.setAttribute("y",t.iY),R.setAttribute("height",t.F),t.A.SE.df?t.G.G4[P.Z.id].appendChild(R):t.A.SE.el.parentNode.appendChild(R)}}else P.paint();else P.paint(),t.A.SE={id:P.K+"-path"},zingchart.DEV.DOMFRAGMENTS&&document.querySelector&&t.G.G4&&t.G.G4[P.Z.id]?(t.A.SE.df=!0,t.A.SE.el=t.G.G4[P.Z.id].querySelector("#"+P.K+"-path")):(t.A.SE.df=!1,t.A.SE.el=ZC.AM(t.A.SE.id));else ZC.AQ._boxoverlap2_(t,t.C.P,S)&&P.paint();P.AO&&N()}"svg"===t.G.AD&&t.A.applyJsRuleSvg(t.A,t.K+"-path",t.M2()),0!==t.A.E7.length||t.A.HW||"undefined"!=typeof t.A.TR||t.O.o.override||t.C.KK||t.A.GF||(t.A.TR=P)}}}},paintPreview:function(e,i){var t,n,a=this;if(a.C.B7&&a.C.B7.HZ&&a.A.QS){var l=a.C.P,o=a.C.B7,r=o.AT,s=(a.iX-l.iX)/l.I,A=(a.iY-l.iY)/l.F;a.A.VZ?t=a.A.VZ:(t=new ZC.HS(a.A),a.A.VZ=t,t.copy(e),(n=a.A.o["preview-state"])&&(t.append(n),t.parse())),i||(t.copy(e),(n=a.A.o["preview-state"])&&(t.append(n),t.parse())),t.K=a.K+"-preview",t.DG=a.A.K+"-preview",t.iX=r.iX+r.AU+s*(r.I-2*r.AU),t.iY=r.iY+r.AU+A*(r.F-2*r.AU),t.I=a.I/l.I*(r.I-2*r.AU),t.F=a.F/l.F*(r.F-2*r.AU),r.I/a.A.S.length<10?(t.I=t.I+.5,t.N2=!1,t.D0=!1):(t.N2=!0,t.D0=!0),t.Z=t.C7=o.Z,t.paint()}},A15:function(e){var i=this;if(e=e||"hover",!ZC.move){var t="";switch(i.A.CW){default:t="box";break;case"pyramid":t="shape"}i.MB({layer:e,type:t,initcb:function(){this.A0=i.A.BP[3],this.B9=i.A.BP[1],this.BX=i.A.BP[1],this.AE=i.A.BP[2]},setupcb:function(){switch(i.A.CW){default:this.iX=i.getNodeData("x"),this.iY=i.getNodeData("y"),this.I=i.getNodeData("w"),this.F=i.getNodeData("h");var e=i.C.P;this.iYe.iY+e.F&&(this.F=e.iY+e.F-this.iY);break;case"pyramid":case"cone":this.D=i.getNodeData("points")}}}),i.N9(ZC.Q.ED(i.C.K+"-hover-c",i.G.AD),!0),i.A.RR=null}}}),ZC.ZM=ZC.LM.CC({setup:function(){this.R1()},V7:function(){var e=this;e.paint(!0);var i=e.C.BM(e.A.BW("v")[0]);return[e.iX+(i.AW?0:e.I),e.iY+e.F/2,{reference:e,center:!0}]},AC7:function(e){var i=this,t="top-out",n=i.C.BM(i.A.BW("v")[0]),a=i.AB>=n.H9&&!n.AW||i.AB0){var E=h;(h=i.A.D5)<=1&&(h*=E),m+=(E-h)/2}var D=h,F=i.iX,K=null!==ZC._n_(i.A.LZ[i.L])?i.A.LZ[i.L]:0;if(F=i.A.CF&&"100%"===i.A.KS?n.AR(100*(i.CQ+K)/i.A.A.F8[i.L]["%total-"+i.A.E0]):n.AR(i.CQ+K),i.A.CF){l="100%"===i.A.KS?n.AR(100*(i.CQ-i.AB+K)/i.A.A.F8[i.L]["%total-"+i.A.E0]):n.AR(i.CQ-i.AB+K),F=ZC._i_(F),l=ZC._i_(l);var x=!n.AW&&i.AB>=0||n.AW&&i.AB<=0?1:-1,I=0,y=0;""!==i.A.OL?(I=i.WZ(i.A.OL)[0],y=0):I=i.A.AU,""!==i.A.PB?(y=i.WZ(i.A.PB)[0],I=0):y=i.A.AU,I!==y&&(x=0),o=F-l+x*I,i.AB>0?F=l:o=ZC._a_(o),n.AW?o>0?(o=ZC._a_(o),F=l):(o=ZC._a_(o),F-=o):o<0&&(o=ZC._a_(o),F=l-o)}else l=n.AR(K),(o=F-l)<0?(o=ZC._a_(o),F=l-o):F=l;if(i.A.TT&&i.A.CF&&i.A.L>0&&i.A.A.A3[i.A.L-1].S[i.L]&&0===i.A.A.A3[i.A.L-1].S[i.L].AB&&(o-=1,F+=n.AW?-1:1),o<1&&(i.AB>0||i.A.TT)&&(o=1,n.AW?i.A.CF?0===i.A.L&&(F-=1):F-=2:i.A.L>0&&i.A.CF&&(F-=1)),i.I=o,i.F=D,i.iX=F,i.iY=m,n.AW?i.AB>=n.H9?i.iXVal=F:i.iXVal=F+i.I:i.AB>=n.H9?i.iXVal=F+i.I:i.iXVal=F,!e){var w;i.setNodeData({x:F,y:m,w:o,h:D});var M=!0;if("none"!==i.A.J2||i.C.IW[i.A.L]||i.C.KK||i.A.T3&&i.A.T3[i.L]?(w=i.O=i.A.IG(i,i.O),M=!1):w=i.O,(0!==i.A.E7.length||i.A.HW||i.O.o.override||i.C.KK)&&(M=!1),i.AO){var Y;switch(i.A.CW){default:0!==i.A.E7.length||i.A.HW||"undefined"==typeof i.A.TR||i.O.o.override||i.C.KK?(Y=new ZC.HS(i.A)).copy(w):Y=i.A.TR,i.A.HW&&(i.H5(Y),Y.parse()),Y.FE=i.A.FE,Y.K=i.K,Y.iX=F,Y.iY=m,Y.I=i.I,Y.F=i.F,t.AC<5&&Y.F<5?(Y.F=ZC.BQ(1,Y.F)+1,Y.N2=!1,Y.D0=!1):Y.N2=!0,Y.F<5&&t.A1!==t.W&&i.C.P.F/(t.A1-t.W)<1&&(Y.QU=!0);break;case"pyramid":case"cone":0!==i.A.E7.length||i.A.HW||"undefined"==typeof i.A.TR||i.O.o.override||i.C.KK?(Y=new ZC.DR(i.A)).copy(w):Y=i.A.TR,i.A.HW&&(i.H5(Y),Y.parse()),Y.K=i.K,n.AW&&!i.A.CF?(s=i.AB>=0?i.I:0,r=i.AB>=0?0:i.I):(s=i.AB>=0?0:i.I,r=i.AB>=0?i.I:0),Y.D=[],Y.D.push([F+s,m+i.F/2-v*i.F/2],[F+s,m+i.F/2+v*i.F/2]),i.A.CF&&0!==B?Y.D.push([F+r,m+i.F/2+B*i.F/2],[F+r,m+i.F/2-B*i.F/2]):Y.D.push([F+r,m+i.F/2]),Y.D.push([Y.D[0][0],Y.D[0][1]]),i.E.points=Y.D,Y.iX=F,Y.iY=m,Y.locate(2)}Y.Z=i.A.CR("bl",1),Y.C7=i.A.CR("bl",0),i.paintPreview(w,M);var X=i.C.K+"-node-area "+i.C.K+"-plotset-plot-"+i.A.L+"-node-area zc-node-area";Y.DG=X;var L=ZC._c_(i.A.o.tolerance,5),G=function(){if("undefined"!=typeof i.paint_&&i.paint_(),i.N9(ZC.Q.ED(Y.Z,i.G.AD)),ZC.AQ._boxoverlap2_(i,i.C.P,L)&&i.A.FV&&-1===ZC.AV(i.G.KP,"skip_segment_tracking")){var e=o<3?.5:-.5,t=D<5?.5:-.5,n=ZC.Q.FT("rect",i.A.EA,Y.IL)+'class="'+X+'" '+i.a11y()+' id="'+i.K+'" coords="'+ZC._i_(F+i.A.BK+ZC.MAPTX-e)+","+ZC._i_(m+i.A.BJ+ZC.MAPTX-t)+","+ZC._i_(F+i.A.BK+o+ZC.MAPTX+e)+","+ZC._i_(m+i.A.BJ+D+ZC.MAPTX+t)+'" />';i.A.A.HE.push(n)}i.A.U&&i.A.U.AO&&i.GZ()};if(i.A.GF&&!i.C.HK){var P=Y,O={};P.iX=F,P.iY=m,P.I=o,P.F=D,O.x=F,O.y=m,O.width=o,O.height=D;var S,N=i.A.LD,k=i.C.P;for(S in P.C5=0,O.alpha=w.C5,2===N?(P.iX=k.iX+k.I/2,P.I=1,O.width=i.I,O.x=F):3===N?(P.iX=k.iX+k.I,P.I=1,O.width=i.I,O.x=F):4===N?(P.iX=k.iX,P.I=1,O.width=i.I,O.x=F):5===N?(P.iY=k.iY+k.F,P.F=1,O.height=i.F,O.y=m):6===N?(P.iY=k.iY,P.F=1,O.height=i.F,O.y=m):7===N?(P.iY=k.iY+k.F/2,P.F=1,O.height=i.F,O.y=m):8===N?(P.iY=m+k.F,O.y=m):9===N?(P.iY=m-k.F,O.y=m):10===N?(P.iX=F+k.I,O.x=F):11===N?(P.iX=F-k.I,O.x=F):12===N?(P.F=1,O.height=i.F):13===N&&(P.I=1,O.width=i.I),i.A.FY)P[ZC.E6.GN[ZC.EG(S)]]=i.A.FY[S],O[ZC.EG(S)]=i.O[ZC.E6.GN[ZC.EG(S)]];if(null===ZC._n_(i.C.EQ)&&(i.C.EQ={}),null!==ZC._n_(i.C.EQ[i.A.L+"-"+i.L]))for(S in i.C.EQ[i.A.L+"-"+i.L])P[ZC.E6.GN[ZC.EG(S)]]=i.C.EQ[i.A.L+"-"+i.L][S];if(i.C.EQ[i.A.L+"-"+i.L]={},ZC._cp_(O,i.C.EQ[i.A.L+"-"+i.L]),ZC.AQ._boxoverlap2_(i,i.C.P,L)){var z=new ZC.E6(P,O,i.A.JG,i.A.LB,ZC.E6.RN[i.A.LE],function(){G()});z.AX=i,z.OE=function(){i.N9(ZC.Q.ED(Y.Z,i.G.AD))},i.LU(z)}}else(Y.AO||0===i.A.E7.length&&!i.A.HW)&&ZC.AQ._boxoverlap2_(i,i.C.P,L)&&Y.paint(),Y.AO&&G();"svg"===i.G.AD&&i.A.applyJsRuleSvg(i.A,i.K+"-path",i.M2()),0!==i.A.E7.length||i.A.HW||"undefined"!=typeof i.A.TR||i.O.o.override||i.C.KK||i.A.GF||(i.A.TR=Y)}}}},paintPreview:function(e,i){var t,n,a=this;if(a.C.B7&&a.C.B7.HZ&&a.A.QS){var l=a.C.P,o=a.C.B7,r=o.AT,s=(a.iX-l.iX)/l.I,A=(a.iY-l.iY)/l.F;a.A.VZ?t=a.A.VZ:(t=new ZC.HS(a.A),a.A.VZ=t,t.copy(e),(n=a.A.o["preview-state"])&&(t.append(n),t.parse())),i||(t.copy(e),(n=a.A.o["preview-state"])&&(t.append(n),t.parse())),t.K=a.K+"-preview",t.DG=a.A.K+"-preview",t.iX=r.iX+r.AU+s*(r.I-2*r.AU),t.iY=r.iY+r.AU+A*(r.F-2*r.AU),t.I=a.I/l.I*(r.I-2*r.AU),t.F=a.F/l.F*(r.F-2*r.AU),r.I/a.A.S.length<10?(t.I=t.I+.5,t.N2=!1,t.D0=!1):(t.N2=!0,t.D0=!0),t.Z=t.C7=o.Z,t.paint()}},A15:function(e){var i=this;if(!ZC.move){var t="";switch(i.A.CW){default:t="box";break;case"pyramid":t="shape"}i.MB({layer:e,type:t,initcb:function(){this.B9=i.A.BP[1],this.BX=i.A.BP[1],this.A0=i.A.BP[3],this.AE=i.A.BP[2]},setupcb:function(){switch(i.A.CW){default:this.iX=i.getNodeData("x"),this.iY=i.getNodeData("y"),this.I=i.getNodeData("w"),this.F=i.getNodeData("h");var e=i.C.P;this.iXe.iX+e.I&&(this.I=e.iX+e.I-this.iX);break;case"pyramid":case"cone":this.D=i.getNodeData("points")}}}),i.N9(ZC.Q.ED(i.C.K+"-hover-c",i.G.AD),!0),i.A.RR=null}}}),ZC.A5U=ZC.LM.CC({setup:function(){var e=this,i=e.A.AY,t=e.A.CP,n=[i.W,i.A1,t.W,t.A1];if(e.JQ!==n){if("scatter"===e.A.AF){if(e.A.LT&&e.A.Q2){var a=ZC.AQ.WJ(e.A.Q2[0],e.A.Q2[1]),l=(e.BV-a[0])/(a[1]-a[0]);e.iX=i.IE(e.A.R8)-i.AC/2+e.A.RT+l*(i.AC-2*e.A.RT)}else e.iX=i.AR(e.BV);e.iY=t.AR(e.AB)}else e.iY=i.AR(e.BV),e.iX=t.AR(e.AB);e.JQ=n}e.HZ||(e.copy(e.A),e.E7=e.A.E7,e.DF()&&e.parse(!1),e.HZ=!0)},parse:function(){this.b(),this.o.value instanceof Array||(this.BV=this.L)},ABF:function(){return{color:"-1"===this.A.A2.A0?this.O.A0:this.A.A2.A0}},getTooltipPosition:function(e,i){return this.b(e,i,this.L8.AI)},Y4:function(){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.C2}},paint:function(e){var i=this;i.b();var t=i.A.AY,n=i.A.CP;i.setup(),e||(t.CL?ZC.DQ(i.iX,n.iX+(n.AW?n.BU:n.A9)-1,n.iX+n.I-(n.AW?n.A9:n.BU)+1)&&ZC.DQ(i.iY,t.iY+(t.AW?t.BU:t.A9)-1,t.iY+t.F-(t.AW?t.A9:t.BU)+1)&&i.PH(!1,!0):ZC.DQ(i.iX,t.iX+(t.AW?t.BU:t.A9)-1,t.iX+t.I-(t.AW?t.A9:t.BU)+1)&&ZC.DQ(i.iY,n.iY+(n.AW?n.A9:n.BU)-1,n.iY+n.F-(n.AW?n.BU:n.A9)+1)&&i.PH(!1,!0))},A15:function(e){ZC.move||this.U2(e)}}),ZC.A6T=ZC.LM.CC({$i:function(e){this.b(e),this.SP=null},parse:function(){this.b(),this.o.value instanceof Array||(this.BV=this.L),this.o.value instanceof Array&&null!==ZC._n_(this.o.value[2])?this.SP=ZC._f_(this.o.value[2]):this.SP=2},ABF:function(){return{color:"-1"===this.A.A2.A0?this.O.A0:this.A.A2.A0}},getTooltipPosition:function(e,i){var t=this.A.getSize(ZC._a_(this.SP));return this.b(e,i,t)},Y4:function(){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.C2}},JZ:function(e,i,t,n){var a=this,l=a.A.MU();ZC._cp_(i,l);var o=ZC.AP.G5(a.SP,l);return a.CV=[["%v0",a.BV],["%v1",a.AB],["%v2",o],["%node-size-value",o]],e=a.b(e,i,t,n)},setup:function(){var e=this,i=e.A.AY,t=e.A.CP,n=[i.W,i.A1,t.W,t.A1];if(e.JQ!==n){if("bubble"===e.A.AF){if(e.A.LT&&e.A.Q2){var a=ZC.AQ.WJ(e.A.Q2[0],e.A.Q2[1]),l=(e.BV-a[0])/(a[1]-a[0]);e.iX=i.IE(e.A.R8)-i.AC/2+e.A.RT+l*(i.AC-2*e.A.RT)}else e.iX=i.AR(e.BV);e.iY=t.AR(e.AB)}else e.iY=i.AR(e.BV),e.iX=t.AR(e.AB);e.JQ=n}e.HZ||(e.copy(e.A),e.E7=e.A.E7,e.DF()&&e.parse(!1),e.HZ=!0)},AC7:function(e){var i,t=this,n="auto";null!==ZC._n_(i=e.o.placement)&&(n=i);var a=e.I,l=e.F,o=t.E["marker.size"],r=t.iX-a/2,s=t.iY-l/2,A=0,C=0;switch(n){case"top":s-=l/2+o,C=t.iY-t.C.P.iY+o;break;case"bottom":s+=l/2+o,C=t.C.P.iY+t.C.P.F-t.iY+o;break;case"left":r-=a/2+o,A=t.iX-t.C.P.iX+o;break;case"right":r+=a/2+o,A=t.C.P.iX+t.C.P.I-t.iX+o}return null!==ZC._n_(e.o.x)&&(r=e.iX),null!==ZC._n_(e.o.y)&&(s=e.iY),rt.C.P.iX+t.C.P.I&&(r=t.C.P.iX+t.C.P.I-a-A),st.C.P.iY+t.C.P.F&&(s=t.C.P.iY+t.C.P.F-l-C),[ZC._i_(r),ZC._i_(s)]},paint:function(e){var i=this;void 0===e&&(e=!1),i.b();var t=i.A.AY,n=i.A.CP;i.setup(),i.E["marker.size"]=i.A.getSize(ZC._a_(i.SP)),e||(t.CL?ZC.DQ(i.iX,n.iX+(n.AW?n.BU:n.A9)-1,n.iX+n.I-(n.AW?n.A9:n.BU)+1)&&ZC.DQ(i.iY,t.iY+(t.AW?t.BU:t.A9)-1,t.iY+t.F-(t.AW?t.A9:t.BU)+1)&&i.PH(!1,!0):ZC.DQ(i.iX,t.iX+(t.AW?t.BU:t.A9)-1,t.iX+t.I-(t.AW?t.A9:t.BU)+1)&&ZC.DQ(i.iY,n.iY+(n.AW?n.A9:n.BU)-1,n.iY+n.F-(n.AW?n.BU:n.A9)+1)&&i.PH(!1,!0))},A15:function(e){ZC.move||this.U2(e)}}),ZC.A8U=ZC.LM.CC({bCXY:!0,U:null,$i:function(e){this.b(e)},parse:function(){this.b()},AB3:function(){this.b();var e=this.C.E;e.update.npv=e.update["node-percent-value"]=this.JZ("%npv")},JZ:function(e,i,t,n){var a=this,l=a.A.MU();ZC._cp_(i,l),-1===e.indexOf("%npv")&&-1===e.indexOf("%node-percent-value")||null!==ZC._n_(l.decimals)&&-1!==l.decimals||(l.decimals=1);var o=0,r="0";if(a.A.A.KO[a.L]>0&&(r=""+(o=100*a.AB/a.A.A.KO[a.L])),a.A.A.A3.length>1&&a.A.L===a.A.A.A3.length-1){var s=0;if(null===ZC._n_(a.A.o.totals)){for(var A=0;A0&&(c=""+(C=100*a.A.A.A3[A].S[a.L].AB/a.A.A.KO[a.L])),null!==ZC._n_(l.decimals)&&(c=C.toFixed(ZC.BQ(0,ZC._i_(l.decimals)))),s+=ZC._f_(c)}r=""+(o=Math.max(0,100-s))}}null!==ZC._n_(l.decimals)&&(r=o.toFixed(ZC.BQ(0,ZC._i_(l.decimals))));var u,p=ZC._f_(a.A.A.KO[a.L]||"0");return u=ZC.AP.G5(p,l,a.A),a.CV=[["%node-percent-value",r],["%npv",r],["%pie-total-value",u]],e=a.b(e,i,t,n)},getTooltipPosition:function(e,i){var t,n,a,l=this,o=(l.B4+l.BL)/2%360;switch(i){case"out":n=(t=ZC.AQ.BN(l.iX,l.iY,l.AI+l.DW+e.DW,o))[0]+l.BK,a=t[1]+l.BJ,o>270&&o<=360?a-=e.F:o>90&&o<=180?n-=e.I:o>180&&o<=270&&(n-=e.I,a-=e.F);break;case"center":n=(t=ZC.AQ.BN(l.iX,l.iY,l.CO+.5*(l.AI-l.CO)+l.DW,o))[0]+l.BK,a=t[1]+l.BJ;break;default:n=l.iX+l.BK,a=l.iY+l.BJ}return{x:n,y:a}},V7:function(e){var i,t=this,n=(t.B4+t.BL)/2%360,a=0;null!==ZC._n_(i=e["offset-r"])&&(a=ZC._f_(ZC._p_(i))),a<1&&(a*=t.AI);var l=ZC.AQ.BN(t.iX,t.iY,t.CO+.6*(t.AI-t.CO)+t.DW+a,n);return[l[0],l[1],{reference:t,center:!0}]},ACA:function(){var e=this,i=(e.B4+e.BL)/2%360,t=ZC.AQ.BN(e.iX,e.iY,e.CO+.5*(e.AI-e.CO)+e.DW,i);return[t[0],t[1]]},setup:function(){var e=this,i=e.C.BM(e.A.BW("k")[0]),t=e.L%i.H4,n=Math.floor(e.L/i.H4);e.iX=i.iX+t*i.GL+i.GL/2+i.BK,e.iY=i.iY+n*i.GG+i.GG/2+i.BJ,e.HZ||(e.copy(e.A),e.E7=e.A.E7,e.DF()&&e.parse(!1),e.HZ=!0)},ABF:function(e){var i,t={},n="out";return null!==ZC._n_(i=e.o.placement)&&(n=i),t.color="out"===n?this.A0:this.C2,t},AC7:function(e){var i,t=this,n="out";null!==ZC._n_(i=e.o.placement)&&(n=i);var a,l,o,r,s,A=e.I,C=e.F,c=(t.B4+t.BL)/2%360,u=c;if("out"===n){c=u=t.A.A.YC["n"+t.L][t.A.L];var p=function(i,n){n<0&&(n=360+n),n%=360;var a=(s=ZC.AQ.BN(t.iX,t.iY,i+t.DW+e.DW+20,n))[0]+e.BK-A/2,l=s[1]+e.BJ-C/2;return n>=0&&n<=90||n>=270&&n<=360?a+=A/2+10:a-=A/2+10,[a,l]},Z=p(t.AI,u);a=Z[0],l=Z[1],t.U=e;var h={x:a,y:l,width:A,height:C},d=zingchart.DEV.SPREADTYPE;r=!0;for(var f=0,_=0,g=-1,v=0,B=0;r&&B<1024;){r=!1;for(var b=0,m=t.A.A.TS.length;bt.C.P.iX+t.C.P.I||h.xt.C.P.iY+t.C.P.F||h.y100&&(v=0,0===d?(f=0,_+=2):1===d&&(_=0,f+=.4,g*=-1)))}a=h.x,l=h.y,c=u+f,o={text:t.A.AN,x:h.x,y:h.y,width:A,height:C,plotindex:t.A.L,nodeindex:t.L},t.A.A.TS.push(o)}else if("in"===n||"radial"===n){var E=t.CO<30?.65:.5;a=(s=ZC._x_(t.B4,2)%360==ZC._x_(t.BL,2)%360?0===t.CO?[t.iX,t.iY]:ZC.AQ.BN(t.iX,t.iY,t.CO+.3*(t.AI-t.CO)+t.DW+e.DW,270):ZC.AQ.BN(t.iX,t.iY,t.CO+E*(t.AI-t.CO)+t.DW+e.DW,c))[0]-A/2+t.BK,l=s[1]-C/2+t.BJ}else if(-1!==n.indexOf("fixed=")){var D=n.split(/=|;|,/),F=(t.AI+t.CO)/2,K=c;D[1]&&(F=(F=ZC.IM(D[1],!0))>=-1&&F<=1||-1!==D[1].indexOf("%")?t.CO+t.DW+F*(t.AI-t.CO):t.CO+t.DW+F),D[2]&&(K=(K=ZC.IM(D[2],!0))>=-1&&K<=1||-1!==D[2].indexOf("%")?t.B4+K*(t.BL-t.B4):t.B4+K),D[3]&&("+"===D[3].charAt(0)||"-"===D[3].charAt(0)?(K%=360,e.AA=K+ZC._f_(D[3]),e.AA>90&&e.AA<270&&(e.AA+=180)):e.AA=ZC._f_(D[3])),a=(s=ZC.AQ.BN(t.iX,t.iY,F,K))[0]-A/2,l=s[1]-C/2}else"center"===n&&(a=t.iX-A/2+t.BK,l=t.iY-C/2+t.BJ);return r&&(a=-9999,l=-9999,e.AO=!1),null!==ZC._n_(e.o.x)&&(a=e.iX),null!==ZC._n_(e.o.y)&&(l=e.iY),a>=-2&&(a=ZC._a_(a)),l>=-2&&(l=ZC._a_(l)),[ZC._i_(a),ZC._i_(l),c]},appendToValueBox:function(e){var i=this,t={};if("radial"===e.o.placement){var n=.9*ZC._a_(i.AI-i.CO),a=Math.PI*(i.AI+i.CO)*.9*ZC._a_(i.BL-i.B4)/360,l=ZC._i_(Math.max(n,a)/(.75*e.DH));if(null===ZC._n_(e.o.visible)?t.visible=1===i.A.A.A3.length||a>1.25*e.DH:t.visible=!e.J0||e.J0.visible,null===ZC._n_(e.o["max-chars"])&&(t["max-chars"]=l),null===ZC._n_(e.o.angle)){var o=(i.B4+i.BL)/2%360;i.A.A.A3.length>1?a>n?o>0&&o<180?o-=90:o+=90:o>90&&o<270&&(o+=180):o=0,t.angle=o}}return t},GZ:function(e,i){var t,n=this,a=n.b(e,i);if(e)return a;if(n.AO&&a.AO&&null!==ZC._n_(a.AN)&&""!==a.AN){var l="out";if(null!==ZC._n_(t=a.o.placement)&&(l=t),"out"===l){var o=!0;if(null!==ZC._n_(t=a.o.connected)&&(o=ZC._b_(t)),o){var r=new ZC.DR(n.A);r.Z=r.C7=n.A.CR("bl",0),r.append(n.A.C3.o),r.K=n.K+"-connector",r.B9=n.A0,r.DV="line",r.D=[];var s=a.E.positioninfo,A=(n.B4+n.BL)/2%360,C=ZC.AQ.BN(n.iX,n.iY,n.AI+n.DW,A);C[0]+=n.BK,C[1]+=n.BJ,r.D.push(C);var c=ZC.AQ.BN(n.iX,n.iY,n.AI+n.DW+10,A);c[0]+=n.BK,c[1]+=n.BJ,a.iX>=n.iX?"vml"===n.G.AD?r.D.push([s[0],s[1]+a.F/2]):r.D.push([c[0],c[1],s[0],s[1]+a.F/2]):"vml"===n.G.AD?r.D.push([s[0]+a.I+2,s[1]+a.F/2]):r.D.push([c[0],c[1],s[0]+a.I+2,s[1]+a.F/2]),r.parse(),r.J7=function(e){return n.J7(e)},r.DF()&&r.parse(),r.AO&&r.paint()}}}},paint:function(){var e,i=this;if(i.b(),!(i.AB<0)){var t=i.C.BM(i.A.BW("k")[0]);i.setup();var n="pie-sel-"+i.A.L+"-"+i.L;if("undefined"!=typeof i.o.detached&&(i.C.E[n]=ZC._b_(i.o.detached)),i.AI=ZC.CY(t.GG,t.GL)/2,null!==ZC._n_(i.A.o.size)){var a=ZC.IM(i.A.o.size,!1);i.AI=a<=1?i.AI*a:a}else i.AI=t.JS*i.AI;i.CO<=1&&(i.CO*=i.AI),i.CO=Math.max(0,i.CO),i.o.slice=i.CO,i.DW<=1&&(i.DW*=i.AI),i.o["offset-r"]=i.DW,i.C.E[n]&&(i.DW+=ZC._i_(.15*i.AI));var l=i.O=i.A.IG(i,i);if(i.H5(l),i.AB>=0||0===i.A.A.KO[i.L]){var o=new ZC.DR(i.A);o.K=i.K,o.Z=i.A.CR("bl",1),o.C7=i.A.CR("bl",0),o.copy(l);var r=i.iX,s=i.iY;i.DW>0&&(r=(e=ZC.AQ.BN(i.iX,i.iY,i.DW,(i.B4+i.BL)/2))[0],s=e[1]),o.iX=r,o.iY=s,o.AI=i.AI,o.o.size=i.AI,o.DV="pie",o.B4=ZC._f_(i.B4),o.BL=ZC._f_(i.BL),o.CO=i.CO,o.E.plotidx=i.A.L,o.E.nodeidx=i.L,o.parse(),i.G7=o;var A=function(){if(!i.A.KC&&i.AO){var e=o.FH(),t=i.C.K+"-node-area "+i.C.K+"-plotset-plot-"+i.A.L+"-node-area zc-node-area",n=ZC.Q.FT("poly",i.A.EA,i.A.IL)+'class="'+t+'" '+i.a11y()+' id="'+i.K+'" coords="'+e+'" />';i.A.A.HE.push(n)}i.A.U&&i.GZ()},C=!1;if("sunburst"===i.C.o["plugin-type"]&&(C=!0),i.AO||!C)if(i.A.GF&&!i.C.HK){var c=o,u={};c.iX=r,c.iY=s,c.B4=i.B4,c.BL=i.BL,u.angleStart=i.B4,u.angleEnd=i.BL,u.x=r,u.y=s;var p,Z=i.A.LD;for(p in c.C5=0,u.alpha=l.C5,2===Z?(c.BL=i.B4,u.angleEnd=i.BL):3===Z?(c.AI=i.CO,u.size=i.AI):4===Z?(e=ZC.AQ.BN(i.iX,i.iY,1.2*i.AI,(i.B4+i.BL)/2),c.iX=e[0],c.iY=e[1],u.x=r,u.y=s):5===Z&&(c.B4=c.BL=(i.B4+i.BL)/2,u.angleStart=i.B4,u.angleEnd=i.BL),i.A.FY)c[ZC.E6.GN[ZC.EG(p)]]=i.A.FY[p],u[ZC.EG(p)]=l[ZC.E6.GN[ZC.EG(p)]];if(null===ZC._n_(i.C.EQ)&&(i.C.EQ={}),null!==ZC._n_(i.C.EQ[i.A.L+"-"+i.L]))for(p in i.C.EQ[i.A.L+"-"+i.L])c[ZC.E6.GN[ZC.EG(p)]]=i.C.EQ[i.A.L+"-"+i.L][p];i.C.EQ[i.A.L+"-"+i.L]={},ZC._cp_(u,i.C.EQ[i.A.L+"-"+i.L]);var h=new ZC.E6(c,u,i.A.JG,i.A.LB,ZC.E6.RN[i.A.LE],function(){A()});h.AX=i,i.LU(h)}else o.paint(),A()}else i.A.U&&i.GZ()}},A15:function(e){var i=this;ZC.move||i.MB({layer:e,type:"shape",initcb:function(){if(this.copy(i),this.iX=i.iX,this.iY=i.iY,i.DW>0){var e=ZC.AQ.BN(i.iX,i.iY,i.DW,(i.B4+i.BL)/2);this.iX=e[0],this.iY=e[1]}this.AI=i.AI,this.DV="pie",this.A0=i.A.BP[3],this.AE=i.A.BP[2],this.B4=ZC._f_(i.B4),this.BL=ZC._f_(i.BL),this.CO=i.CO},parsecb:function(){this.o.size=i.AI,this.o.slice=i.CO,this.o["offset-r"]=i.DW}})},X7:function(e,i){var t=this;if(t.b(e,i),"click"===i&&e.which<=1&&t.A.A7V){zingchart.SKIP.ANIMATION=!0,zingchart.SKIP.EVENT=!0;var n="pie-sel-"+t.A.L+"-"+t.L;t.C.E[n]="undefined"==typeof t.C.E[n]||!t.C.E[n],t.C.KB(),zingchart.SKIP.EVENT=!1,zingchart.SKIP.ANIMATION=!1}}}),ZC.A4B=ZC.LM.CC({bCXY:!0,$i:function(e){this.b(e)},setup:function(){var e=this,i=e.C.BM(e.A.BW("k")[0]);e.iX=i.iX+i.I/2+i.BK,e.iY=i.iY+i.F/2+i.BJ,e.HZ||(e.copy(e.A),e.o.slice=null,e.E7=e.A.E7,e.DF()&&e.parse(!1),e.HZ=!0)},ACA:function(){var e=this,i=(e.B4+e.BL)/2%360,t=ZC.AQ.BN(e.iX,e.iY,e.CO+e.E.bandwidth/2+e.DW,i);return[t[0],t[1]]},JZ:function(e,i,t,n){var a=this,l=a.A.MU();ZC._cp_(i,l);var o=100*a.AB/a.A.A.KO[a.L],r=""+o;return null!==ZC._n_(l.decimals)&&(r=o.toFixed(ZC.BQ(0,ZC._i_(l.decimals)))),a.CV=[["%node-percent-value",r],["%npv",r]],e=a.b(e,i,t,n)},ABF:function(e){var i={},t="in";return null!==ZC._n_(e.o.placement)&&(t=e.o.placement),i.color="out"===t?this.A0:this.C2,i},AC7:function(e){var i=this,t="in";null!==ZC._n_(e.o.placement)&&(t=e.o.placement);var n,a,l,o=e.I,r=e.F,s=(i.B4+i.BL)/2%360;return"out"===t?i.L===i.A.S.length-1?(l=ZC.AQ.BN(i.iX,i.iY,i.A.U5+i.A.S.length*(i.E.bandwidth+i.E.bandspace)+15+e.DW,s),n=s>=0&&s<90||s>=270&&s<360?l[0]+10+i.BK:l[0]-o-10+i.BK,a=l[1]-r/2+i.BJ):(n=-1,a=-1):(n=(l=ZC.AQ.BN(i.iX,i.iY,i.CO+i.E.bandwidth/2+e.DW,s))[0]-o/2+i.BK,a=l[1]-r/2+i.BJ),null!==ZC._n_(e.o.x)&&(n=e.iX),null!==ZC._n_(e.o.y)&&(a=e.iY),[ZC._i_(n),ZC._i_(a),s]},GZ:function(e){var i=this,t=i.b(e);if(e)return t;if(t.AO&&null!==ZC._n_(t.AN)&&""!==t.AN){var n="in";if(null!==ZC._n_(t.o.placement)&&(n=t.o.placement),"out"===n&&i.L===i.A.S.length-1){var a=new ZC.DR(i.A);a.Z=a.C7=i.G.usc()?i.G.mc("top"):i.C.AJ["3d"]||i.G.KC?ZC.AM(i.C.K+"-plots-vb-c"):ZC.AM(i.C.K+"-plot-"+i.A.L+"-vb-c"),a.append(i.A.C3.o),a.B9=i.A0,a.DV="line",a.D=[];var l=(i.B4+i.BL)/2%360,o=ZC.AQ.BN(i.iX,i.iY,i.CO+i.E.bandwidth+t.DW,l),r=ZC.AQ.BN(i.iX,i.iY,i.A.U5+i.A.S.length*(i.E.bandwidth+i.E.bandspace)+15+t.DW,l);o[0]+=i.BK,r[0]+=i.BK,o[1]+=i.BJ,r[1]+=i.BJ,a.D.push(o),l>=0&&l<90||l>=270&&l<360?a.D.push([r[0],r[1],r[0]+10,r[1]]):a.D.push([r[0],r[1],r[0]-10,r[1]]),a.parse(),a.J7=function(e){return i.J7(e)},a.DF()&&a.parse(),a.AO&&a.paint()}}},paint:function(){var e,i=this;i.b();var t=i.C.BM(i.A.BW("k")[0]);i.setup(),i.AI=ZC.CY(t.I,t.F)/2,i.AI=t.JS*i.AI,i.CO=i.A.U5,i.CO<1&&(i.CO=i.A.U5*i.AI);var n=i.A.SO;n<1&&(n=i.A.SO*i.AI);var a=2,l=i.AI-i.CO;if(null!==ZC._n_(i.A.aBandWidths)&&null!==ZC._n_(i.A.aBandWidths[i.L])){(a=ZC._f_(i.A.aBandWidths[i.L]))>1&&(a/=100),a=ZC._i_(l*a),a=ZC.BQ(a,2);for(var o=0,r=0;r1&&(o/=100),o=ZC._i_(l*o),i.CO+=o,i.AI=i.CO+a}else a=(l-(i.A.S.length-1)*n)/i.A.S.length,a=ZC.BQ(a,2),i.CO+=i.L*(a+n),i.AI=i.CO+a;var s=i.O=i.A.IG(i,i);i.H5(s);var A=new ZC.DR(i.A);A.K=i.K,A.Z=i.A.CR("bl",1),A.C7=i.A.CR("bl",0),A.copy(s),A.iX=i.iX,A.iY=i.iY,A.DV="pie",A.B4=i.B4,A.BL=i.BL,A.CO=i.CO,A.AI=i.AI,A.parse();var C=A.CO;function c(){var e=A.FH(),t=i.C.K+"-node-area "+i.C.K+"-plotset-plot-"+i.A.L+"-node-area zc-node-area",n=ZC.Q.FT("poly",i.A.EA,i.A.IL)+'class="'+t+'" '+i.a11y()+' id="'+i.K+'" coords="'+e+'" />';i.A.A.HE.push(n),i.A.U&&i.A.U.AO&&i.GZ()}if(i.E.bandwidth=a,i.E.bandspace=n,i.A.GF&&!i.C.HK){var u=A,p={};u.B4=i.B4,u.BL=i.BL,p.angleStart=i.B4,p.angleEnd=i.BL;var Z=i.A.LD;if(u.C5=0,p.alpha=s.C5,2===Z)u.BL=i.B4,p.angleEnd=i.BL;else if(3===Z)u.CO=C+i.E.bandwidth,p.slice=C;else if(4===Z){var h=ZC.AQ.BN(i.iX,i.iY,i.AI,(i.B4+i.BL)/2);u.iX=h[0],u.iY=h[1],p.x=i.iX,p.y=i.iY}else 5===Z&&(u.B4=u.BL=(i.B4+i.BL)/2,p.angleStart=i.B4,p.angleEnd=i.BL);for(e in i.A.FY)u[ZC.E6.GN[ZC.EG(e)]]=i.A.FY[e],p[ZC.EG(e)]=s[ZC.E6.GN[ZC.EG(e)]];if(i.C.EQ||(i.C.EQ={}),null!==ZC._n_(i.C.EQ[i.A.L+"-"+i.L]))for(e in i.C.EQ[i.A.L+"-"+i.L])u[ZC.E6.GN[ZC.EG(e)]]=i.C.EQ[i.A.L+"-"+i.L][e];i.C.EQ[i.A.L+"-"+i.L]={},ZC._cp_(p,i.C.EQ[i.A.L+"-"+i.L]);var d=new ZC.E6(u,p,i.A.JG,i.A.LB,ZC.E6.RN[i.A.LE],function(){c()});d.AX=i,i.LU(d)}else A.paint(),c()},A15:function(e){var i=this;ZC.move||i.MB({layer:e,type:"shape",initcb:function(){this.copy(i),this.iX=i.iX,this.iY=i.iY,this.DV="pie",this.A0=i.A.BP[3],this.AE=i.A.BP[2],this.B4=i.B4,this.BL=i.BL,this.CO=i.CO,this.AI=i.AI},parsecb:function(){this.o.slice=null}})}}),ZC.A7E=ZC.LM.CC({$i:function(e){this.b(e);var i=this;i.C8=null,i.CB=null,i.MP="max"},JZ:function(e,i,t,n){var a=this;return"range"===a.A.CW&&(a.CV=[["%node-min-value",a.C8],["%node-max-value",a.CB]]),e=a.b(e,i,t,n)},AA1:function(){var e=this;if("range"===e.A.CW&&e.o.value instanceof Array){var i=e.o.value.length;i>2&&(e.BV=ZC._f_(e.o.value[0])),e.C8=ZC._f_(e.o.value[i-2]),e.CB=ZC._f_(e.o.value[i-1]),e.AB=e.CQ=e.CB,e.DS.push(e.C8)}else e.b()},setup:function(){var e=this,i=e.A.AY,t=e.A.CP,n=[i.W,i.A1,t.W,t.A1];if(e.JQ!==n){var a;a="range"===e.A.CW?t.UB("min"===e.MP?e.C8:e.CB):t.UB(e.CQ);var l=null!==ZC._n_(e.BV),o=i.A7O(l?e.BV:e.L,a,l);e.iX=o[0],e.iY=o[1],e.JQ=n}e.HZ||(e.copy(e.A),e.E7=e.A.E7,e.DF()&&e.parse(!1),e.HZ=!0)},AC7:function(e){var i,t=this,n=t.A.AY,a=t.A.CP,l=t.C.BM("scale"),o=l.iX+l.I/2,r=l.iY+l.F/2,s=e.I,A=e.F,C="out";null!==ZC._n_(e.o.placement)&&(C=e.o.placement);var c=1.15;switch(C){case"out":c=1.15;break;case"over":c=1;break;case"in":c=.85;break;case"middle":c=.5}var u,p,Z=n.EL/(n.V.length-(360===n.EL||n.DE?0:1)),h=a.UB(t.CQ);switch(t.A.CW){case"matrix":case"piano":var d=(ZC.CY(l.I/2,l.F/2)*l.JS-a.A9)/t.A.A.A3.length;u=a.A9+t.A.L*d,p=a.A9+(t.A.L+1)*d,i=ZC.AQ.BN(o,r,(u+p)/2*c+e.DW,n.DJ+(n.DE?Z/2:0)+t.L*Z);break;default:if(null!==ZC._n_(t.BV)){var f=n.DJ+n.EL*(t.BV-n.AZ)/(n.BD-n.AZ);i=ZC.AQ.BN(o,r,a.A9+h*c+e.DW,f)}else i=ZC.AQ.BN(o,r,a.A9+h*c+e.DW,n.DJ+(n.DE?Z/2:0)+t.L*Z)}return i[0]-=s/2,i[1]-=A/2,null!==ZC._n_(e.o.x)&&(i[0]=e.iX),null!==ZC._n_(e.o.y)&&(i[1]=e.iY),[ZC._i_(i[0]),ZC._i_(i[1])]},ABF:function(){return{color:"rose"===this.A.CW?this.A0:this.B9}},Y4:function(){return{"background-color":"rose"===this.A.CW?this.A0:this.B9,"border-color":"rose"===this.A.CW?this.A0:this.B9,color:this.C2}},paint:function(){var e,i,t=this;t.b();var n,a,l=t.A.OA,o=t.A.A4S,r=t.A.AY,s=t.A.CP,A=t.A.S;t.setup(),t.D0=!1,t.C7=t.A.CR("bl",0);var C,c=[],u=[],p=[],Z=[],h="range"===t.A.CW;function d(){if(t.A.RY>=t.A.S.length&&t.A.Y0){var e=t.C.K+"-node-area "+t.C.K+"-plotset-plot-"+t.A.L+"-node-area zc-node-area",i="",a="";-1!==ZC.AV(["line","area","range"],t.A.CW)?""!==(a="range"!==t.A.CW||t.A.XF?ZC.AQ.PG(ZC.AQ.Z2(t.E.points),4):ZC.AQ.PG(u,4))&&(i=ZC.Q.FT("poly",t.A.EA,t.A.IL)+'class="'+e+'" '+t.a11y()+' id="'+t.K+'" coords="'+a+'" />'):-1!==ZC.AV(["rose","column","bar","matrix","piano"],t.A.CW)&&(a=n.FH(),i=ZC.Q.FT("poly",t.A.EA,t.A.IL)+'class="'+e+'" '+t.a11y()+' id="'+t.K+'" coords="'+a+'" data-z-sort="'+(t.A.A.A3.length-t.A.L)+'" />'),t.A.A.HE.push(i)}t.A.U&&t.A.E.vboxid!==t.K&&t.GZ()}var f,_,g,v,B,b=t.O=t.A.IG(t,t);if(t.A.HW&&t.H5(b),-1!==ZC.AV(["line","area","range"],t.A.CW)){c=[],u=[],p=[],Z=[];var m=t.iX,E=t.iY,D=t.iX,F=t.iY;h&&(t.MP="max",t.setup(),m=t.iX,E=t.iY,t.MP="min",t.setup(),D=t.iX,F=t.iY),t.A.GW&&(t.A.D.push([m,E]),t.A.AH.push([m,E])),t.L>0?(C=A[t.L-1])&&(C.MP="max",C.setup(),a=ZC.AQ.JY(C.iX,C.iY,m,E),c.push(a),u.push(a),h&&(C.MP="min",C.setup(),a=ZC.AQ.JY(C.iX,C.iY,D,F),p.push(a),Z.push(a))):(C=A[t.A.S.length-1])&&(C.MP="max",C.setup(),a=ZC.AQ.JY(C.iX,C.iY,m,E),c.push(a),u.push(a),h&&(C.MP="min",C.setup(),a=ZC.AQ.JY(C.iX,C.iY,D,F),p.push(a),Z.push(a))),c.push([m,E]),u.push([m,E]),h&&(p.push([D,F]),Z.push([D,F])),t.L')}}},A15:function(e){var i=this;if(!ZC.move&&(i.b(e),i.FK&&i.FK.AO)){var t=new ZC.HS(i.A);t.copy(i.FK),t.Z=ZC.AM(i.C.K+"-hover-c"),t.MD=!1,t.iX=i.FK.iX,t.iY=i.FK.iY,t.paint()}}}),ZC.A5W=ZC.ZM.CC({$i:function(e){this.b(e),this.FK=null},JZ:function(e,i,t,n){var a=this,l=a.A.MU();ZC._cp_(i,l);var o=ZC.AP.G5(a.A.PY[a.L],l);return a.CV=[["%node-goal-value",o],["%g",o]],e=a.b(e,i,t,n)},AC7:function(e){var i=this;return"goal"===ZC._n_(e.o.placement)?[i.FK.iX+i.FK.I,i.FK.iY+i.FK.F/2-e.F/2]:i.b(e)},AA1:function(){var e,i=this;if(i.DS=[],i.CJ=i.o.value,"string"==typeof i.o.value){var t=ZC.AV(i.A.CP.JN,i.o.value);-1!==t?i.AB=t:(i.A.CP.JN.push(i.o.value),i.AB=i.A.CP.JN.length-1)}else i.AB=ZC._f_(i.o.value);i.A.o.goals&&null!==ZC._n_(e=i.A.o.goals[i.L])&&i.DS.push(ZC._f_(e))},paint:function(){this.b()},paint_:function(){var e,i,t=this;if(null!==ZC._n_(t.A.PY[t.L])&&t.AO){var n=t.A.CP.AR(t.A.PY[t.L]);t.FK=new ZC.HS(t.A),t.FK.K=t.K+"-goal",t.FK.copy(t.A.FK),t.FK.Z=t.A.CR("fl",0),t.FK.C7=t.A.CR("fl",0),t.FK.J7=function(e){return t.J7(e)},t.FK.DF()&&t.FK.parse(),null!==ZC._n_(e=t.FK.o)&&null!==ZC._n_(e.styles)&&null!==ZC._n_(i=e.styles[t.L])&&("string"==typeof i?t.FK.append({"background-color":i}):t.FK.append(i),t.FK.parse());var a=.2;if(null!==ZC._n_(e=t.FK.o.extension)&&(a=ZC._f_(e)),t.FK.iY=t.getNodeData("y")-t.F*a,t.FK.F=t.F*(1+2*a),null===ZC._n_(t.A.FK.o.width)&&(t.FK.I=ZC.CY(5,t.C.P.I/30)),t.FK.iX=n-t.FK.I/2,t.FK.AO){t.FK.paint();var l=t.C.K+"-node-area "+t.C.K+"-plotset-plot-"+t.A.L+"-node-area zc-node-area";t.A.A.HE.push(ZC.Q.FT("rect",t.A.EA,t.A.IL)+'class="'+l+'" id="'+t.K+'--goal" coords="'+ZC._i_(t.FK.iX+t.A.BK+ZC.MAPTX)+","+ZC._i_(t.FK.iY+t.A.BJ+ZC.MAPTX)+","+ZC._i_(t.FK.iX+t.A.BK+t.FK.I+ZC.MAPTX)+","+ZC._i_(t.FK.iY+t.A.BJ+t.FK.F+ZC.MAPTX)+'" />')}}},A15:function(e){var i=this;if(!ZC.move&&(i.b(e),i.FK&&i.FK.AO)){var t=new ZC.HS(i.A);t.copy(i.FK),t.Z=ZC.AM(i.C.K+"-hover-c"),t.MD=!1,t.iX=i.FK.iX,t.iY=i.FK.iY,t.paint()}}}),ZC.A7F=ZC.LM.CC({AA1:function(){var e,i=this;i.o.value instanceof Array&&null!==ZC._n_(i.o.value[1])&&(i.CJ=i.o.value[1],"string"==typeof i.o.value[0]?-1!==(e=ZC.AV(i.A.AY.IT,i.o.value[0]))?i.BV=e:(i.A.AY.IT.push(i.o.value[0]),i.BV=i.A.AY.IT.length-1):i.BV=ZC._f_(i.o.value[0]),"string"==typeof i.o.value[1]?-1!==(e=ZC.AV(i.A.CP.JN,i.o.value[1]))?i.AB=e:(i.A.CP.JN.push(i.o.value[1]),i.AB=i.A.CP.JN.length-1):i.AB=ZC._f_(i.o.value[1]),null!==i.BV&&i.A.V9(i.BV,i.L))},setup:function(){var e=this,i=e.A.AY,t=e.A.CP,n=[i.W,i.A1,t.W,t.A1];e.JQ!==n&&(i.AW?e.iX=i.iX+i.I-i.A9-(e.L-i.W+1)*i.AC:e.iX=i.iX+i.A9+(e.L-i.W)*i.AC,t.AW?e.iY=t.iY+t.A9+(e.A.L-t.AZ)*t.AC:e.iY=t.iY+t.F-t.A9-(e.A.L-t.AZ+1)*t.AC,e.JQ=n),e.HZ||(e.copy(e.A),e.E7=e.A.E7,e.DF()&&e.parse(!1),e.HZ=!0),e.H5(e)},AC7:function(e){var i=this,t="over";null!==ZC._n_(e.o.placement)&&(t=e.o.placement);var n=e.I,a=e.F,l=i.iX+i.I/2-n/2,o=i.iY+i.F/2-a/2;switch(t){case"top":o-=i.F/2+a/2+2;break;case"left":l-=i.I/2+n/2+2;break;case"bottom":o+=i.F/2+a/2+2;break;case"right":l+=i.I/2+n/2+2}return null!==ZC._n_(e.o.x)&&(l=e.iX),null!==ZC._n_(e.o.y)&&(o=e.iY),[ZC._i_(l),ZC._i_(o)]},ABF:function(){return{color:"#000"}},getFormatValue:function(){return this.CJ},JZ:function(e,i,t,n){var a,l=this,o=l.A.CP,r=l.A.L;return a=null!==ZC._n_(o.BY[r])?o.BY[r]:o.V[r],l.CV=[["%y",a],["%scale-value-label",a]],e=l.b(e,i,t,n)},R1:function(){var e=this;e.setup();var i,t=e.A.AY,n=e.A.CP;switch(e.A.A75){case"plot-max":i=(ZC._f_(e.AB)-e.A.Y8)/(e.A.A4T-e.A.Y8);break;case"plot-total":i=(ZC._f_(e.AB)-e.A.Y8)/(e.A.A67-e.A.Y8);break;case"chart-max":i=(ZC._f_(e.AB)-e.A.WN)/(e.A.A3J-e.A.WN);break;case"chart-total":i=(ZC._f_(e.AB)-e.A.WN)/(e.A.A4U-e.A.WN)}switch(ZC.PE(i)||(i=.5),e.I=t.AC,e.F=n.AC,e.A.CW){case"alpha":case"brightness":e.C5=e.A.QB+i*(e.A.UV-e.A.QB);break;case"horizontal":e.I=1.01+e.A.QB*t.AC+i*t.AC*(e.A.UV-e.A.QB),t.AW&&(e.iX=e.iX+t.AC-e.I);break;case"vertical":e.F=1.01+e.A.QB*n.AC+i*n.AC*(e.A.UV-e.A.QB),n.AW||(e.iY=e.iY+n.AC-e.F);break;case"size":e.I=1.01+e.A.QB*t.AC+i*t.AC*(e.A.UV-e.A.QB),e.F=1.01+e.A.QB*n.AC+i*n.AC*(e.A.UV-e.A.QB),e.iX+=(t.AC-e.I)/2,e.iY+=(n.AC-e.F)/2}e.iX-=e.AU/2,e.iY-=e.AU/2,e.I+=e.AU,e.F+=e.AU},paint:function(){var e=this;e.b(),e.R1();var i=e.C.P;if(!(e.iY+5=i.iY+i.F)){if(e.AO){var t=zingchart.pool.getInstance("HS",e,e.A.K+"-piano-box");if(t.K=e.K,t.copy(e),("none"!==e.A.J2||e.C.IW[e.A.L]||e.C.KK||e.A.T3&&e.A.T3[e.L])&&t.copy(e.A.IG(e,t)),t.iX=e.iX,t.iY=e.iY,t.I=e.I,t.F=e.F,t.Z=e.A.CR("bl",1),t.C7=e.A.CR("bl",0),(-1!==t.BX&&t.AU>0||t.PZ+t.OL+t.NQ+t.PB!==""||-1!==t.A0||-1!==t.AE||""!==t.DC||""!==t.GS||""!==t.HO)&&(t.paint(),!t.KC)){var n=e.C.K+"-node-area "+e.C.K+"-plotset-plot-"+e.A.L+"-node-area zc-node-area";e.A.A.HE.push(ZC.Q.FT("rect",e.A.EA,e.A.IL)+'class="'+n+'" '+e.a11y()+' id="'+e.K+'" coords="'+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.AO&&e.GZ()}},A15:function(e){var i=this;ZC.move||i.MB({layer:e,type:"box",initcb:function(){this.AE=i.A.BP[3],this.B9=i.A.BP[1],this.BX=i.A.BP[1],this.A0=i.A.BP[2]},setupcb:function(){this.iX=i.iX,this.iY=i.iY,this.I=i.I,this.F=i.F}})}}),ZC.A5X=ZC.LM.CC({setup:function(){var e=this,i=e.A.AY,t=e.A.CP,n=[i.W,i.A1,t.W,t.A1];e.JQ!==n&&(i.AW?e.iX=i.iX+i.I-i.A9-(e.L+1)*i.AC:e.iX=i.iX+i.A9+e.L*i.AC,t.AW?e.iY=t.iY+t.A9+e.A.L*t.AC:e.iY=t.iY+t.F-t.A9-(e.A.L+1)*t.AC,e.JQ=n),e.HZ||(e.copy(e.A),e.E7=e.A.E7,e.DF()&&e.parse(!1),e.HZ=!0)},JZ:function(e,i,t,n){var a,l,o=this,r=ZC._f_(o.A.A.F8["%pstack-"+o.L+"-0-sum"]||"0"),s=o.A.MU();if(ZC._cp_(i,s),o.CV=[],o.A.L>0&&o.A.A.A3[o.A.L-1]&&o.A.A.A3[o.A.L-1].S[o.L]?l=""+(a=100*o.AB/o.A.A.A3[o.A.L-1].S[o.L].AB):(a=100,l="100"),null!==ZC._n_(s.decimals)&&(l=a.toFixed(ZC.BQ(0,ZC._i_(s.decimals)))),o.CV.push(["%output-percent-value",l]),r>0){var A=100*o.AB/r,C=""+A;null!==ZC._n_(s.decimals)&&(C=A.toFixed(ZC.BQ(0,ZC._i_(s.decimals)))),o.CV.push(["%node-percent-value",C]),o.CV.push(["%npv",C])}return e=o.b(e,i,t,n)},paint:function(){var e,i,t,n,a,l,o,r,s,A,C,c,u,p=this;p.b();var Z=p.A.AY,h=p.A.CP;p.setup(),"static"===p.A.A2J?(p.C.B0.SC[p.L],e=p.C.B0.A7U[p.L]):(p.C.B0.AZ,e=p.C.B0.BD);var d=p.A.L6;d<=1&&(d*=Z.AC);var f=p.A.OD;f<=1&&(f*=Z.AC);var _=p.A.LY;_<=1&&(_*=Z.AC);var g=Z.AC-d-f-_,v=_+g*(p.AB/e),B=0;p.A.L+1')}for(i=0,t=p.A.OU.length;i0&&o.A.A.A3[o.A.L-1]&&o.A.A.A3[o.A.L-1].S[o.L]?l=""+(a=100*o.AB/o.A.A.A3[o.A.L-1].S[o.L].AB):(a=100,l="100"),null!==ZC._n_(s.decimals)&&(l=a.toFixed(ZC.BQ(0,ZC._i_(s.decimals)))),o.CV.push(["%output-percent-value",l]),r>0){var A=100*o.AB/r,C=""+A;null!==ZC._n_(s.decimals)&&(C=A.toFixed(ZC.BQ(0,ZC._i_(s.decimals)))),o.CV.push(["%node-percent-value",C]),o.CV.push(["%npv",C])}return e=o.b(e,i,t,n)},AC7:function(e){var i,t=this,n=t.A.AY,a=t.A.CP;null!==ZC._n_(e.o.placement)&&(i=e.o.placement);var l=t.iX+a.AC/2-e.I/2,o=t.iY+n.AC/2-e.F/2,r=t.E["entry-exit"],s=(r[0]+r[1])/2;switch(i){case"in":case"auto":break;case"top":l=t.iX+a.AC-e.I-5;break;case"bottom":l=t.iX+5;break;case"left":o=t.iY+n.AC/2-s/2+5;break;case"left-out":o=t.iY+n.AC/2-s/2-e.F-5;break;case"right":o=t.iY+n.AC/2+s/2-e.F-5;break;case"right-out":o=t.iY+n.AC/2+s/2+5}return null!==ZC._n_(e.o.x)&&(l=e.iX),null!==ZC._n_(e.o.y)&&(o=e.iY),[ZC._i_(l),ZC._i_(o)]},paint:function(){var e,i,t,n,a,l,o,r,s,A,C,c,u,p=this;p.b();var Z=p.A.AY,h=p.A.CP;p.setup(),"static"===p.A.A2J?(p.C.B0.SC[p.L],e=p.C.B0.A7U[p.L]):(p.C.B0.AZ,e=p.C.B0.BD);var d=p.A.L6;d<=1&&(d*=Z.AC);var f=p.A.OD;f<=1&&(f*=Z.AC);var _=p.A.LY;_<=1&&(_*=Z.AC);var g=Z.AC-d-f-_,v=_+g*(p.AB/e),B=0;p.A.L+1')}for(i=0,t=p.A.OU.length;ie.AB?(e.A.o["trend-up"]&&(e.J3.append(e.A.o["trend-up"]),e.J3.parse()),e.A.MY.up||(e.A.MY.up=new ZC.DP(e.A),e.A.MY.up.copy(e.J3),e.A.MY.size++)):(e.A.o["trend-equal"]&&(e.J3.append(e.A.o["trend-equal"]),e.J3.parse()),e.A.MY.equal||(e.A.MY.equal=new ZC.DP(e.A),e.A.MY.equal.copy(e.J3),e.A.MY.size++)),e.HZ=!0),e.A.GW){e.DS[2]e.AB?e.J3=e.A.MY.up:e.J3=e.A.MY.equal;var a=ZC.CY(e.E.XC,e.E.VE),l=ZC.BQ(e.E.XC,e.E.VE)-ZC.CY(e.E.XC,e.E.VE);l<2&&(l=2),e.E.A7S=a+l/2}},JZ:function(e,i,t,n){var a=this,l=a.A.MU();function o(e){return ZC.AP.G5(e,l)}return ZC._cp_(i,l),a.CV=[["%node-value-stock-open",o(a.AB)],["%open",o(a.AB)],["%v0",o(a.AB)],["%node-value-stock-high",o(a.DS[0])],["%high",o(a.DS[0])],["%v1",o(a.DS[0])],["%node-value-stock-low",o(a.DS[1])],["%low",o(a.DS[1])],["%v2",o(a.DS[1])],["%node-value-stock-close",o(a.DS[2])],["%close",o(a.DS[2])],["%v3",o(a.DS[2])]],e=a.b(e,i,t,n)},AA1:function(){var e,i,t=this;if(t.DS=[],t.o.value instanceof Array&&5===t.o.value.length)t.BV=ZC._f_(t.o.value[0]),null!==t.BV&&(null!==ZC._n_(t.A.K7[t.BV])&&-1!==ZC.AV(t.A.K7[t.BV],t.L)||t.A.V9(t.BV,t.L)),i=[t.o.value[1],t.o.value[2],t.o.value[3],t.o.value[4]];else if(t.o.value[1]instanceof Array){if("string"==typeof t.o.value[0]){var n=ZC.AV(t.A.AY.IT,t.o.value[0]);-1!==n?t.BV=n:(t.A.AY.IT.push(t.o.value[0]),t.BV=t.A.AY.IT.length-1)}else t.BV=ZC._f_(t.o.value[0]);null!==t.BV&&(null!==ZC._n_(t.A.K7[t.BV])&&-1!==ZC.AV(t.A.K7[t.BV],t.L)||t.A.V9(t.BV,t.L)),i=t.o.value[1]}else i=t.o.value;t.CJ=i.join(" "),t.AB=ZC._f_(i[0]),null!==ZC._n_(e=i[1])&&t.DS.push(ZC._f_(e)),null!==ZC._n_(e=i[2])&&t.DS.push(ZC._f_(e)),null!==ZC._n_(e=i[3])&&t.DS.push(ZC._f_(e))},ABF:function(){var e=this,i={};return e.DS[2]1&&(u>1?c=(A-(l-1)*C+(l-1)*u)/l:u*=c=(A-(l-1)*C)/(l-(l-1)*u)),c=ZC._l_(c,1,A);var p=i.iX-n/2+r+a*(c+C)-a*u;p=ZC._l_(p,i.iX-n/2+r,i.iX+n/2-s);var Z,h=c,d=ZC.CY(i.E.XC,i.E.VE),f=ZC.BQ(i.E.XC,i.E.VE)-ZC.CY(i.E.XC,i.E.VE);if(f<2&&(f=2),r+s===0&&(p-=.5,h+=1),i.I=h,i.F=f,i.iX=p,i.E.A7S=d+f/2,i.setNodeData({x:p,y:d,w:h,h:f}),i.AO){Z=ZC.Q.ED(i.G.usc()?i.G.K+"-main-c":i.G.KC?i.C.K+"-plots-bl-c":i.C.K+"-plot-"+i.A.L+"-bl-1-c",i.G.AD);var _,g=i.iX+i.I/2;i.DS[2]i.AB&&(e=i.A.o["trend-up"])?(i.E["selected-state"]=e["selected-state"],i.E["background-state"]=e["background-state"]):i.DS[2]===i.AB&&(e=i.A.o["trend-equal"])&&(i.E["selected-state"]=e["selected-state"],i.E["background-state"]=e["background-state"]);var v=i.A.IG(i,i.J3);switch(i.A.CW){default:var B,b;(_=[]).push([g,i.E.A9J],[g,ZC.CY(i.E.XC,i.E.VE)],null,[g,i.E.AAV],[g,ZC.BQ(i.E.XC,i.E.VE)]),ZC.CN.paint(Z,v,_),b=i.DS[2]i.AB?i.A.ACM:i.A.AB7,0!==i.A.E7.length||void 0===b||i.O.o.override||i.C.KK?(B=new ZC.HS(i.A)).copy(v):B=b,i.H5(B),B.Z=i.A.CR("bl",1),B.C7=i.A.CR("bl",0),B.K=i.K,B.iX=p,B.iY=d,B.I=i.I,B.F=i.F,B.paint(),0!==i.A.E7.length||void 0!==b||i.O.o.override||i.C.KK||(i.DS[2]i.AB?i.A.ACM=B:i.A.AB7=B);break;case"whisker":case"ohlc":_=[];var m=Math.max(i.I/4,4);_.push([g,i.E.A9J],[g,i.E.AAV],null,[g-m,i.E.XC],[g,i.E.XC],null,[g+m,i.E.VE],[g,i.E.VE]),i.H5(v),ZC.CN.paint(Z,v,_)}if(i.A.FV){var E=i.C.K+"-node-area "+i.C.K+"-plotset-plot-"+i.A.L+"-node-area zc-node-area";i.A.A.HE.push(ZC.Q.FT("rect",i.A.EA,i.A.IL)+'class="'+E+'" id="'+i.K+'" coords="'+ZC._i_(p+ZC.MAPTX)+","+ZC._i_(i.E.A9J+ZC.MAPTX)+","+ZC._i_(p+h+ZC.MAPTX)+","+ZC._i_(i.E.AAV+ZC.MAPTX)+'" />')}i.A.U&&i.A.U.AO&&i.GZ()}},A15:function(){var e=this;if(!ZC.move&&e.A.IH&&e.A.AO)switch(e.b(),e.A.CW){case"candlestick":var i=new ZC.HS(e.A);i.K=e.K+"-hover",i.Z=ZC.AM(e.C.K+"-hover-c"),i.C2=e.A.BP[0],i.AE=e.A.BP[3],i.B9=e.A.BP[1],i.BX=e.A.BP[1],i.A0=e.A.BP[2],i.append(e.A.IH.o),i.PX=!0,i.parse(),i.J7=function(i){return e.J7(i)},i.DF()&&i.parse(),e.DS[2]e.AB&&e.A.o["trend-up"]?(i.append(e.A.o["trend-up"]),i.append(e.A.o["hover-state"]),e.A.o["trend-up"]["hover-state"]&&i.append(e.A.o["trend-up"]["hover-state"]),i.parse()):e.DS[2]===e.AB&&e.A.o["trend-equal"]&&(i.append(e.A.o["trend-equal"]),i.append(e.A.o["hover-state"]),e.A.o["trend-equal"]["hover-state"]&&i.append(e.A.o["trend-equal"]["hover-state"]),i.parse()),i.iX=e.getNodeData("x"),i.iY=e.getNodeData("y"),i.I=e.getNodeData("w"),i.F=e.getNodeData("h");var t=e.C.P;i.iYt.iY+t.F&&(i.F=t.iY+t.F-i.iY),i.AO&&i.paint()}}}),ZC.A7H=ZC.LM.CC({setup:function(){var e=this,i=e.C.BM(e.A.BW("k")[0]),t=e.C.BM(e.A.BW("v")[0]),n=e.L%i.H4,a=Math.floor(e.L/i.H4),l=t.EL/(t.BD-t.AZ);e.iX=i.iX+n*i.GL+i.GL/2,e.iY=i.iY+a*i.GG+i.GG/2,e.E.angle=t.DJ-t.EL/2+l*(e.AB-t.AZ),t.AW&&(e.E.angle=t.DJ+t.EL/2-l*(e.AB-t.AZ)),e.HZ||(e.copy(e.A),e.E7=e.A.E7,e.DF()&&e.parse(!1),e.HZ=!0)},AC7:function(e){var i,t,n,a=e.I,l=e.F,o=this,r=o.C.BM(o.A.BW("k")[0]),s=ZC.CY(r.GL/2,r.GG/2)*r.JS,A=o.L%r.H4,C=Math.floor(o.L/r.H4),c=r.iX+A*r.GL+r.GL/2+r.BK,u=r.iY+C*r.GG+r.GG/2+r.BJ;switch(e.o.placement){case"center":t=c-a/2+o.BK,n=u-l/2+o.BJ;break;case"edge":t=(i=ZC.AQ.BN(c,u,s+e.DW,o.E.angle))[0]-a/2+o.BK,n=i[1]-l/2+o.BJ;break;case"tip":t=(i=ZC.AQ.BN(c,u,o.E.size+e.DW,o.E.angle))[0]-a/2+o.BK,n=i[1]-l/2+o.BJ;break;default:t=(i=ZC.AQ.BN(c,u,s/2+e.DW,o.E.angle))[0]-a/2+o.BK,n=i[1]-l/2+o.BJ}return null!==ZC._n_(e.o.x)&&(t=e.iX),null!==ZC._n_(e.o.y)&&(n=e.iY),[ZC._i_(t),ZC._i_(n)]},ABF:function(){return{color:this.A0}},Y4:function(){return{"background-color":this.A0,"border-color":this.B9,color:this.C2}},paint:function(){var e,i=this;i.b(),i.setup(),i.D0=!1;var t=i.C.BM(i.A.BW("k")[0]),n=ZC.CY(t.GL/2,t.GG/2)*t.JS,a=i.L%t.H4,l=Math.floor(i.L/t.H4),o=t.iX+a*t.GL+t.GL/2+t.BK,r=t.iY+l*t.GG+t.GG/2+t.BJ,s=ZC.IM(i.A.o.size||"0.9",!1);s>0&&s<=1&&(s*=n),i.E.size=s;var A=i.O=i.A.IG(i,i),C=new ZC.DR(i.A);function c(t){var a=[],l=i.A.I0;l[4]>-1&&l[4]<1&&(l[4]=ZC._i_(l[4]*n));var A=ZC.AQ.BN(o,r,l[4],t);if(l[0]>=0)for(e=-l[2];e<=180+l[2];e+=5)a.push(ZC.AQ.BN(A[0],A[1],l[0],t+270-e));else a.push(ZC.AQ.BN(A[0],A[1],ZC._a_(l[0]),t-90)),a.push(ZC.AQ.BN(A[0],A[1],ZC._a_(l[0]),t+90));if(0===l[1])a.push(ZC.AQ.BN(o,r,s>0?s:.9*n,t));else if(l[1]>0)for(A=ZC.AQ.BN(o,r,s>0?s:.9*n,t),e=-l[3];e<=180+l[3];e+=5)a.push(ZC.AQ.BN(A[0],A[1],l[1],t-270-e));else A=ZC.AQ.BN(o,r,(s>0?s:.9*n)+l[1],t),a.push(ZC.AQ.BN(A[0],A[1],ZC._a_(l[1]/(90/l[3])),t+90),ZC.AQ.BN(A[0],A[1],ZC._a_(l[1]),t+90),ZC.AQ.BN(o,r,s>0?s:.9*n,t),ZC.AQ.BN(A[0],A[1],ZC._a_(l[1]),t+270),ZC.AQ.BN(A[0],A[1],ZC._a_(l[1]/(90/l[3])),t+270));return a.push([a[0][0],a[0][1]]),a}function u(){var e=C.FH(),t=i.C.K+"-node-area "+i.C.K+"-plotset-plot-"+i.A.L+"-node-area zc-node-area",n=ZC.Q.FT("poly",i.A.EA,i.A.IL)+'class="'+t+'" id="'+i.K+'" coords="'+e+'" />';i.A.A.HE.push(n)}C.copy(A),C.Z=i.A.CR("bl",1),C.C7=i.A.CR("bl",0),C.K=i.K+"-arrow";var p=i.C.BM(i.A.BW("v")[0]),Z=p.DJ-p.EL/2,h=c(i.E.angle);if(i.E.points=h,C.DV="poly",C.D=h,C.parse(),C.J7=function(e){return i.J7(e)},C.DF()&&C.parse(),i.A.GF&&!i.C.HK){var d,f=C,_={},g=i.A.LD;for(d in f.C5=0,_.alpha=A.C5,2===g&&(f.A2I=Z,_.A2I=i.E.angle),i.A.FY)f[ZC.E6.GN[ZC.EG(d)]]=i.A.FY[d],_[ZC.EG(d)]=A[ZC.E6.GN[ZC.EG(d)]];if(i.C.EQ||(i.C.EQ={}),null!==ZC._n_(i.C.EQ[i.A.L+"-"+i.L]))for(d in i.C.EQ[i.A.L+"-"+i.L]){var v=ZC.E6.GN[ZC.EG(d)];null===ZC._n_(v)&&(v=d),f[v]=i.C.EQ[i.A.L+"-"+i.L][d]}i.C.EQ[i.A.L+"-"+i.L]={},ZC._cp_(_,i.C.EQ[i.A.L+"-"+i.L]);var B=new ZC.E6(f,_,i.A.JG,i.A.LB,ZC.E6.RN[i.A.LE],function(){u()});B.AX=i,B.A0E=function(e,i){null!==ZC._n_(i.A2I)&&(e.D=c(i.A2I))},i.LU(B),i.A.U&&i.GZ()}else C.paint(),i.A.U&&i.GZ(),u()},A15:function(e){var i=this;ZC.move||i.MB({layer:e,type:"shape",initcb:function(){this.copy(i),this.B9=i.A.BP[1],this.BX=i.A.BP[1],this.A0=i.A.BP[3],this.AE=i.A.BP[2],this.D=i.E.points,this.Z=this.C7=i.A.CR("bl",2)}})}}),ZC.A7I=ZC.LM.CC({$i:function(e){this.b(e);var i=this;i.C8=null,i.CB=null,i.MP="min"},JZ:function(e,i,t,n){var a=this;return a.CV=[["%range-set",a.MP],["%node-min-value",a.C8],["%node-max-value",a.CB]],e=a.b(e,i,t,n)},AA1:function(){var e,i,t=this;t.o.value[1]instanceof Array?("string"==typeof t.o.value[0]?-1!==(i=ZC.AV(t.A.AY.IT,t.o.value[0]))?t.BV=i:(t.A.AY.IT.push(t.o.value[0]),t.BV=t.A.AY.IT.length-1):t.BV=ZC._f_(t.o.value[0]),null!==t.BV&&(null!==ZC._n_(t.A.K7[t.BV])&&-1!==ZC.AV(t.A.K7[t.BV],t.L)||t.A.V9(t.BV,t.L)),e=t.o.value[1]):e=t.o.value,"string"==typeof e[0]?-1!==(i=ZC.AV(t.A.CP.JN,e[0]))?t.C8=i:(t.A.CP.JN.push(e[0]),t.C8=t.A.CP.JN.length-1):t.C8=ZC._f_(e[0]),t.DS.push(t.C8),"string"==typeof e[1]?-1!==(i=ZC.AV(t.A.CP.JN,e[1]))?t.CB=i:(t.A.CP.JN.push(e[1]),t.CB=t.A.CP.JN.length-1):t.CB=ZC._f_(e[1]),t.CJ=e.join(" "),t.AB=t.CB},setup:function(){var e=this,i=e.A.NG,t=e.A.AY,n=e.A.CP,a=[t.W,t.A1,n.W,n.A1,e.MP];if(null===ZC._n_(e.AH)&&(e.AH=[]),e.A.bFastRange&&(e.E.points=null,e.E.pointsarea=null),e.JQ!==a&&(i?(null!==e.BV?e.iY=t.AR(e.BV):e.iY=t.IE(e.L),e.iX=n.AR("min"===e.MP?e.C8:e.CB)):(null!==e.BV?e.iX=t.AR(e.BV):e.iX=t.IE(e.L),e.iY=n.AR("min"===e.MP?e.C8:e.CB)),e.JQ=a),e.A.bFastRange)e.HZ=!1;else if(!e.HZ){ZC.DQ(e.iX,e.C.P.iX-10,e.C.P.iX+e.C.P.I+10)&&ZC.DQ(e.iY,e.C.P.iY-10,e.C.P.iY+e.C.P.F+10)&&(e.copy(e.A),e.E7=e.A.E7,e.DF()&&e.parse(),e.HZ=!0)}e.E.NH=n.AR(e.C8),e.E.R9=n.AR(e.CB)},ABF:function(){return this.A.bFastRange?{color:this.A.B9}:{color:this.B9}},Y4:function(){return this.A.bFastRange?{"background-color":this.A.B9,"border-color":this.A.B9,color:this.A.C2}:{"background-color":this.O.B9,"border-color":this.O.B9,color:this.O.C2}},paint:function(){var e,i=this;i.b();var t=i.A.AY,n=i.A.OA,a=i.A.NG,l=i.A.S;if(i.setup(),!i.A.bFastRange){null!==ZC._n_(i.A.o[i.MP+"-line"])&&(i.append(i.A.o[i.MP+"-line"]),i.parse()),i.D0=!1,i.C7=i.A.CR("bl",1);var o,r,s,A,C,c,u,p,Z,h,d,f,_,g=[],v=[];switch(i.A.CW){default:var B=!0;!t.EH&&i.L<=t.W&&(B=!1),l[i.L-i.A.Y]||(B=!1),B&&(l[i.L-i.A.Y].MP=i.MP,l[i.L-i.A.Y].setup(),a?(r=[i.E.NH,i.iY],s=[l[i.L-i.A.Y].E.NH,l[i.L-i.A.Y].iY],A=[i.E.R9,i.iY],C=[l[i.L-i.A.Y].E.R9,l[i.L-i.A.Y].iY],c=ZC.AQ.A5L(r,s,A,C),o=ZC.DQ(c[1],l[i.L-i.A.Y].iY,i.iY)?c:ZC.AQ.JY(l[i.L-i.A.Y].iX,l[i.L-i.A.Y].iY,l[i.L].iX,l[i.L].iY),v.push([o[0],ZC._i_(o[1])]),g.push([o[0],o[1]])):(r=[i.iX,i.E.NH],s=[l[i.L-i.A.Y].iX,l[i.L-i.A.Y].E.NH],A=[i.iX,i.E.R9],C=[l[i.L-i.A.Y].iX,l[i.L-i.A.Y].E.R9],c=ZC.AQ.A5L(r,s,A,C),o=ZC.DQ(c[0],l[i.L-i.A.Y].iX,i.iX)?c:ZC.AQ.JY(l[i.L-i.A.Y].iX,l[i.L-i.A.Y].iY,l[i.L].iX,l[i.L].iY),v.push([ZC._i_(o[0]),o[1]]),g.push([o[0],o[1]]))),a?v.push([i.iX,ZC._i_(i.iY)]):v.push([ZC._i_(i.iX),i.iY]),g.push([i.iX,i.iY]);var b=!0;!t.EH&&i.L>=t.A1&&(b=!1),l[i.L+i.A.Y]||(b=!1),b&&(l[i.L+i.A.Y].MP=i.MP,l[i.L+i.A.Y].setup(),a?(r=[i.E.NH,i.iY],s=[l[i.L+i.A.Y].E.NH,l[i.L+i.A.Y].iY],A=[i.E.R9,i.iY],C=[l[i.L+i.A.Y].E.R9,l[i.L+i.A.Y].iY],c=ZC.AQ.A5L(r,s,A,C),o=ZC.DQ(c[1],l[i.L+i.A.Y].iY,i.iY)?c:ZC.AQ.JY(l[i.L].iX,l[i.L].iY,l[i.L+i.A.Y].iX,l[i.L+i.A.Y].iY),v.push([o[0],ZC._i_(o[1])]),g.push([o[0],o[1]])):(r=[i.iX,i.E.NH],s=[l[i.L+i.A.Y].iX,l[i.L+i.A.Y].E.NH],A=[i.iX,i.E.R9],C=[l[i.L+i.A.Y].iX,l[i.L+i.A.Y].E.R9],c=ZC.AQ.A5L(r,s,A,C),o=ZC.DQ(c[0],l[i.L+i.A.Y].iX,i.iX)?c:ZC.AQ.JY(l[i.L].iX,l[i.L].iY,l[i.L+i.A.Y].iX,l[i.L+i.A.Y].iY),v.push([ZC._i_(o[0]),o[1]]),g.push([o[0],o[1]])));break;case"spline":if("undefined"==typeof i.E["intersect.index"]&&(i.E["intersect.index"]=-1,l[i.L+i.A.Y])){var m=[],E=[],D=[];for(u=-1;u<3;u++)l[i.L+u]?(l[i.L+u].setup(),m.push(l[i.L+u].E.NH),D.push(l[i.L+u].E.R9),a?E.push(l[i.L+u].iY):E.push(l[i.L+u].iX)):(m.push(i.E.NH),D.push(i.E.R9),a?E.push(i.iY):E.push(i.iX));Z=ZC._a_(E[2]-E[1]);var F=ZC.AQ.YD(i.A.QG,m,ZC._i_(Z)),K=ZC.AQ.YD(i.A.QG,D,ZC._i_(Z));if(l[i.L+i.A.Y].C8===l[i.L+i.A.Y].CB)i.E["intersect.index"]=F.length;else{var x=F[0][1]-K[0][1];for(u=1,p=F.length;u=0;u--)i.AH.push(i.A.S7.max[u]);if(null!==ZC._n_(e=i.A.S7.min))for(u=0,p=e.length;u=0;u--)i.AH.push(v[u]);if("max"===i.MP){var Y=new ZC.DR(i.A);Y.K=i.K+"-area",Y.Z=i.A.CR("bl",0),Y.copy(i.O),Y.B1=0,Y.AU=0,Y.EU=0,Y.G3=0,Y.parse(),Y.D=i.AH,Y.C5=i.A.HP;var X=i.C.P;for(Y.D2=[X.iX,X.iY,X.iX+X.I,X.iY+X.F],Y.paint(),i.E.pointsarea=[],u=0,p=i.AH.length;u'))}"min"===i.MP?i.E.points=g:(i.E.points.push(null),i.E.points=i.E.points.concat(g));var L=new ZC.CZ(i);L.copy(i.O),L.append(i.A.o[i.MP+"-line"]),L.K=i.K+"-line",L.parse(),ZC.CN.setup(n,L),ZC.CN.paint(n,L,g),"max"===i.MP&&i.paintPreview(i,i.E.points,i.E.pointsarea);if(a?ZC.DQ(i.iY,t.iY-1,t.iY+t.F+1)&&ZC.DQ(i.iX,t.iX-1,t.iX+t.I+1):ZC.DQ(i.iX,t.iX-1,t.iX+t.I+1)&&ZC.DQ(i.iY,t.iY-1,t.iY+t.F+1)){var G=new ZC.DR(i.A);G.K=i.K+"-marker-"+i.MP,G.Z=G.C7=i.A.CR("fl",0),G.iX=i.iX,G.iY=i.iY,G.B9=i.A.BP[4],G.BX=i.A.BP[4],G.A0=i.A.BP[2],G.AE=i.A.BP[2],G.append(i.A.A2.o),i.A.o[i.MP+"-marker"]&&G.append(i.A.o[i.MP+"-marker"]),G.parse(),G.J7=function(e){return i.J7(e)},G.DF()&&G.parse(),G.AO&&"none"!==G.AF&&(i.A.MW>t.A1-t.W&&G.paint(),i.E["marker.type"]=G.DV,f=i.C.K+"-node-area "+i.C.K+"-plotset-plot-"+i.A.L+"-node-area zc-node-area",t.AW&&g.reverse(),i.A.FV&&(""!==(_=ZC.AQ.PG(ZC.AQ.Z2(i.E.points),4))?i.A.A.HE.push(ZC.Q.FT("poly",i.A.EA,i.A.IL)+'class="'+f+'" '+i.a11y()+' id="'+i.K+"--"+i.MP+'" coords="'+_+'" />'):i.A.A.HE.push(ZC.Q.FT("circle",i.A.EA,i.A.IL)+'class="'+f+'" '+i.a11y()+' id="'+i.K+"--"+i.MP+'" coords="'+ZC._i_(G.iX+ZC.MAPTX)+","+ZC._i_(G.iY+ZC.MAPTX)+","+ZC._i_(1.5*ZC.BQ(3,G.AI))+'" />'))),i.A.U&&i.A.U.AO&&i.GZ()}}},paintPreview:function(e,i,t){var n=this;if(n.C.B7&&n.C.B7.HZ&&n.A.QS){var a,l=n.C.P,o=n.C.B7,r=n.A.mapPointsToPreview(t),s=new ZC.DR(n.A);s.copy(e),s.D0=!0,s.LA=!0,s.B1=0,s.AU=0,s.EU=0,s.G3=0,s.C5=n.A.HP,s.D2=[l.iX,l.iY,l.iX+l.I,l.iY+l.F],s.K=n.K+"-area-preview",s.Z=o.Z,s.D=r,s.paint();var A=n.A.mapPointsToPreview(i);n.A.VY?a=n.A.VY:(a=new ZC.CZ(n),n.A.VY=a),a.copy(e);var C=ZC.Q.ED(o.Z,n.G.AD);a.B1=1,ZC.CN.paint(C,a,A,null,3)}},A15:function(){var e=this,i=e.A.NG;if(!ZC.move){var t=e.A.AY;if(e.A.GB&&e.A.AO){var n=ZC.Q.ED(e.C.K+"-hover-c",e.G.AD),a=new ZC.DR(e.A);if(a.K=e.K+"-area-hover",a.Z=ZC.AM(e.C.K+"-hover-c"),a.LA=!0,a.copy(e),a.append(e.A.IH.o),a.D=e.E.pointsarea||[],a.parse(),a.AO){a.C5=e.A.HP;var l=e.C.P;a.D2=[l.iX,l.iY,l.iX+l.I,l.iY+l.F],ZC.CN.setup(n,a),a.paint()}var o=ZC.Q.ED(e.C.K+"-hover-c",e.G.AD),r=new ZC.CZ(e.A);r.K=e.K+"-line-hover",r.D0=!1,r.B9=e.A.BP[3],r.append(e.A.IH.o),r.parse(),r.J7=function(i){return e.J7(i)},r.DF()&&r.parse(),r.AO&&(ZC.CN.setup(o,r),ZC.CN.paint(o,r,e.E.points||[]))}if(e.A.MW>t.A1-t.W&&e.A.GB&&e.A.AO){e.b();var s=new ZC.DR(e.A);s.K=e.K+"-marker-max-hover",s.Z=ZC.AM(e.C.K+"-hover-c"),s.DV=e.E["marker.type"],i?(s.iY=e.iY,s.iX=e.E.R9):(s.iX=e.iX,s.iY=e.E.R9),s.B9=e.A.BP[4],s.BX=e.A.BP[4],s.A0=e.A.BP[2],s.AE=e.A.BP[2],s.append(e.A.GB.o),s.parse(),s.J7=function(i){return e.J7(i)},s.DF()&&s.parse(),s.AO&&"none"!==s.AF&&s.paint(),s.K=e.K+"-marker-min-hover",i?s.iX=e.E.NH:s.iY=e.E.NH,s.AO&&"none"!==s.AF&&s.paint()}}}}),ZC.A7N=ZC.LM.CC({bCXY:!0,U:null,$i:function(e){this.b(e)},parse:function(){this.b()},AB3:function(){this.b();var e=this.C.E;e.update.npv=e.update["node-percent-value"]=this.JZ("%npv")},JZ:function(e,i,t,n){var a=this,l=a.A.MU();ZC._cp_(i,l),-1===e.indexOf("%npv")&&-1===e.indexOf("%node-percent-value")||null!==ZC._n_(l.decimals)&&-1!==l.decimals||(l.decimals=1);var o=0,r="0";if(a.A.A.KO[a.L]>0&&(r=""+(o=100*a.AB/a.A.A.KO[a.L])),a.A.A.A3.length>1&&a.A.L===a.A.A.A3.length-1){var s=0;if(null===ZC._n_(a.A.o.totals)){for(var A=0;A0&&(c=""+(C=100*a.A.A.A3[A].S[a.L].AB/a.A.A.KO[a.L])),null!==ZC._n_(l.decimals)&&(c=C.toFixed(ZC.BQ(0,ZC._i_(l.decimals)))),s+=ZC._f_(c)}r=""+(o=Math.max(0,100-s))}}null!==ZC._n_(l.decimals)&&(r=o.toFixed(ZC.BQ(0,ZC._i_(l.decimals))));var u,p=ZC._f_(a.A.A.KO[a.L]||"0");return u=ZC.AP.G5(p,l,a.A),a.CV=[["%node-percent-value",r],["%npv",r],["%pie-total-value",u]],e=a.b(e,i,t,n)},V7:function(e){var i,t=this,n=(t.B4+t.BL)/2%360,a=0;null!==ZC._n_(i=e["offset-r"])&&(a=ZC._f_(ZC._p_(i))),a<1&&(a*=t.AI);var l=new ZC.CD(t.C,(t.CO+.5*(t.AI-t.CO)+t.DW+a)*ZC.EE(n),(t.CO+.5*(t.AI-t.CO)+t.DW+a)*ZC.EK(n),0).EB;return[l[0],l[1],{reference:t,center:!0}]},setup:function(){var e=this,i=e.C.BM(e.A.BW("k")[0]),t=e.L%i.H4,n=Math.floor(e.L/i.H4);e.iX=i.iX+t*i.GL+i.GL/2+i.BK,e.iY=i.iY+n*i.GG+i.GG/2+i.BJ,e.HZ||(e.copy(e.A),e.E7=e.A.E7,e.DF()&&e.parse(),e.HZ=!0)},ABF:function(e){var i={},t="out";return null!==ZC._n_(e.o.placement)&&(t=e.o.placement),i.color="out"===t?this.A0:this.C2,i},AC7:function(e){var i,t=this,n="out";null!==ZC._n_(i=e.o.placement)&&(n=i);var a,l,o,r,s,A=e.I,C=e.F,c=(t.B4+t.BL)/2%360,u=c;if("out"===n){c=u=t.A.A.YC["n"+t.L][t.A.L];var p=function(i,n){n<0&&(n=360+n),n%=360;var a=ZC.AQ.BN(t.iX,t.iY,i+t.DW+e.DW+20,n),l=t.C.EM["x-angle"];l>45&&t.A.A.A3.length>10&&(t.C.EM["x-angle"]=45+(l-45)/3),s=new ZC.CD(t.C,a[0]-ZC.AL.E1,a[1]-ZC.AL.E2,0),t.C.EM["x-angle"]=l,a[0]=s.EB[0],a[1]=s.EB[1];var o=a[0]+e.BK-A/2,r=a[1]+e.BJ-C/2;return n>=0&&n<=90||n>=270&&n<=360?o+=A/2+10:o-=A/2+10,[o,r]},Z=p(t.AI,u);a=Z[0],l=Z[1],t.U=e;var h={x:a,y:l,width:A,height:C},d=zingchart.DEV.SPREADTYPE;r=!0;for(var f=0,_=0,g=-1,v=0,B=0;r&&B<1024;){r=!1;for(var b=0,m=t.A.A.TS.length;b10?-8:-2)||h.x+e.I>t.C.P.iX+t.C.P.I||h.xt.C.P.iY+t.C.P.F||h.y100&&(v=0,0===d?(f=0,_+=4):1===d&&(_=0,f+=1,g*=-1)))}a=h.x,l=h.y,c=u+f,o={text:t.A.AN,x:h.x,y:h.y,width:A,height:C,plotindex:t.A.L,nodeindex:t.L},t.A.A.TS.push(o)}else if("in"===n){var E=t.CO<30?.65:.5,D=ZC.AQ.BN(t.iX,t.iY,t.CO+E*(t.AI-t.CO)+t.DW+e.DW,c);s=new ZC.CD(t.C,D[0]-ZC.AL.E1,D[1]-ZC.AL.E2,0),D[0]=s.EB[0],D[1]=s.EB[1],a=D[0]+e.BK-A/2,l=D[1]+e.BJ-C/2}else"center"===n&&(a=(s=new ZC.CD(t.C,t.iX-ZC.AL.E1,t.iY-ZC.AL.E2,0)).EB[0]+e.BK-A/2,l=s.EB[1]+e.BJ-C/2);return r&&(a=-9999,l=-9999,e.AO=!1),null!==ZC._n_(e.o.x)&&(a=e.iX),null!==ZC._n_(e.o.y)&&(l=e.iY),a>=-2&&(a=ZC._a_(a)),l>=-2&&(l=ZC._a_(l)),[ZC._i_(a),ZC._i_(l),c]},GZ:function(e,i){var t,n=this,a=n.b(e,i);if(e)return a;if(n.AO&&a.AO&&null!==ZC._n_(a.AN)&&""!==a.AN){var l="out";if(null!==ZC._n_(a.o.placement)&&(l=a.o.placement),"out"===l){var o=!0;if(null!==ZC._n_(t=a.o.connected)&&(o=ZC._b_(t)),o){var r=new ZC.DR(n.A);r.Z=r.C7=n.A.CR("bl",0),r.append(n.A.C3.o),r.B9=n.A0,r.DV="line",r.D=[];var s=a.E.positioninfo,A=(n.B4+n.BL)/2%360,C=0;A>=0&&A<=180&&(C=n.E.thickness/2);var c=ZC.AQ.BN(n.iX,n.iY,n.AI+n.DW+a.DW,A);(c=new ZC.CD(n.C,c[0]-ZC.AL.E1,c[1]-ZC.AL.E2,C).EB)[0]+=n.BK,c[1]+=n.BJ,r.D.push(c);var u=ZC.AQ.BN(n.iX,n.iY,n.AI+n.DW+a.DW+20,A);(u=new ZC.CD(n.C,u[0]-ZC.AL.E1,u[1]-ZC.AL.E2,C).EB)[0]+=n.BK,u[1]+=n.BJ,a.iX>=n.iX?r.D.push([u[0],u[1],s[0],s[1]+a.F/2]):r.D.push([u[0],u[1],s[0]+a.I+2,s[1]+a.F/2]),r.parse(),r.J7=function(e){return n.J7(e)},r.DF()&&r.parse(),r.AO&&r.paint()}}}},paint:function(){var e,i,t,n,a,l,o,r,s,A=this,C=A.C.CM,c=A.C.BM(A.A.BW("k")[0]),u=A.C.EM["x-angle"],p=A.C.EM["y-angle"];A.setup();var Z="pie-sel-"+A.A.L+"-"+A.L;if("undefined"!=typeof A.o.detached&&(A.C.E[Z]=ZC._b_(A.o.detached)),!(A.AB<0)){var h=ZC.BQ(.7,ZC.EE(u));A.AI=ZC.CY(c.GG/h,c.GL)/2,null!==ZC._n_(A.A.o.size)?A.AI=A.A.AI:A.AI=c.JS*A.AI,A.CO<1&&(A.CO*=A.AI),A.CO=Math.max(0,A.CO),A.o.slice=A.CO,A.DW<1&&(A.DW*=A.AI),A.o["offset-r"]=A.DW;var d=A.A.JI;-1===d&&(d=A.AI/5),A.E.thickness=d;var f=A.iX-ZC.AL.E1,_=A.iY-ZC.AL.E2;A.B4=ZC._i_(A.B4),A.BL=ZC._i_(A.BL);var g=(A.B4+A.BL)/2;A.C.E[Z]&&(A.DW+=ZC._i_(.15*A.AI)),A.DW>0&&(f+=A.DW*ZC.EE(g),_+=A.DW*ZC.EK(g));var v=A.O=A.A.IG(A,A);v.DG=A.K+"-3dfacet";var B=new ZC.CZ(A);if(B.copy(v),B.A0=ZC.AP.JO(ZC.AP.GD(B.A0)),B.AE=ZC.AP.JO(ZC.AP.GD(B.AE)),A.AB>=0||0===A.A.A.KO[A.L]){for(o=[],e=A.B4,o.push([f+A.CO*ZC.EE(e),_+A.CO*ZC.EK(e),0]),e=A.B4;e<=A.BL;e+=1)o.push([f+A.AI*ZC.EE(e),_+A.AI*ZC.EK(e),0]);for(e=A.BL,o.push([f+A.CO*ZC.EE(e),_+A.CO*ZC.EK(e),0]),e=A.BL;e>=A.B4;e-=1)o.push([f+A.CO*ZC.EE(e),_+A.CO*ZC.EK(e),0]);if((i=ZC.DK.DA(v,A.C,o)).K=A.K+"-facet1",C.add(i),t=null,A.B4%360>=0+p&&A.B4%360<180+p||A.BL%360>0+p){r=A.B4,s=A.BL;var b=function(e,i,n){var a,l=[];for(a=e,l.push([f+A.AI*ZC.EE(a),_+A.AI*ZC.EK(a),0]),a=e;a<=i;a+=1)l.push([f+A.AI*ZC.EE(a),_+A.AI*ZC.EK(a),0]);for(a=i,l.push([f+A.AI*ZC.EE(a),_+A.AI*ZC.EK(a),d]),a=i;a>=e;a-=1)l.push([f+A.AI*ZC.EE(a),_+A.AI*ZC.EK(a),d]);(t=ZC.DK.DA(B,A.C,l)).MG=[.01,1,1,1],t.K=A.K+"-facet2"+n,C.add(t)};r<180&&s>360?(b(r=r<0?r+360:r,180,1),b(360,s,2)):(r=ZC.BQ(r,s>360?365:5),(s=ZC.CY(s,s>360?535:175))>r&&b(r,s,1))}if(l=null,A.CO>0+p&&A.BL>180+p){for(o=[],e=A.B4,r=A.B4,A.B4<180+p&&A.BL>180+p&&(e=180+p,r=180+p),o.push([f+A.CO*ZC.EE(e),_+A.CO*ZC.EK(e),0]),e=r;e<=A.BL;e+=1)o.push([f+A.CO*ZC.EE(e),_+A.CO*ZC.EK(e),0]);for(e=A.BL,o.push([f+A.CO*ZC.EE(e),_+A.CO*ZC.EK(e),d]),e=A.BL;e>=r;e-=1)o.push([f+A.CO*ZC.EE(e),_+A.CO*ZC.EK(e),d]);(l=ZC.DK.DA(B,A.C,o)).K=A.K+"-facet3",C.add(l)}var m=function(e,i,t){return[[f+e*ZC.EE(t),_+e*ZC.EK(t),0],[f+e*ZC.EE(t),_+e*ZC.EK(t),d],[f+i*ZC.EE(t),_+i*ZC.EK(t),d],[f+i*ZC.EE(t),_+i*ZC.EK(t),0]]};(n=ZC.DK.DA(B,A.C,{points:m(A.CO,A.AI,A.B4),mathpoints:m(A.CO+1,A.AI+1,A.B4-1)})).K=A.K+"-facet4",C.add(n),(a=ZC.DK.DA(B,A.C,{points:m(A.CO,A.AI,A.BL),mathpoints:m(A.CO+1,A.AI+1,A.BL+1)})).K=A.K+"-facet5",C.add(a);var E=A.C.K+"-node-area "+A.C.K+"-plotset-plot-"+A.A.L+"-node-area zc-node-area",D=ZC.Q.FT("poly",A.A.EA)+'class="'+E+'" id="'+A.K,F=A.A.A.HE;F.push(D+'--top" '+A.a11y()+' data-z-sort="1" coords="'+i.FH()+'" />'),t&&F.push(D+'--outer" data-z-sort="1" coords="'+t.FH()+'" />'),(A.CO>0||A.DW>0)&&(l&&F.push(D+'--inner" data-z-sort="2" coords="'+l.FH()+'" />'),F.push(D+'--start" data-z-sort="2" coords="'+n.FH()+'" />',D+'--end" data-z-sort="2" coords="'+a.FH()+'" />'))}A.A.U&&A.GZ()}},X7:function(e,i){var t=this;if(t.b(e,i),"click"===i&&e.which<=1&&t.A.A7V){var n="pie-sel-"+t.A.L+"-"+t.L;t.C.E[n]="undefined"==typeof t.C.E[n]||!t.C.E[n],t.C.KB()}}}),ZC.A6Y=ZC.ZL.CC({setup:function(){this.R1()},V7:function(){var e=this;e.paint(!0);var i=e.C.BM(e.A.BW("v")[0]),t=e.iX+e.I/2,n=e.iY+(i.AW?e.F:0),a=new ZC.CD(e.C,t-ZC.AL.E1,n-ZC.AL.E2,e.A.E["z-start"]);return[ZC._i_(a.EB[0]),ZC._i_(a.EB[1]),{reference:e,center:!0}]},AC7:function(e){var i=this,t=i.b(e);if("-1/-1"!==t.join("/")){var n=new ZC.CD(i.C,t[0]+e.I/2-ZC.AL.E1,t[1]+e.F/2-ZC.AL.E2,i.A.E["z-mid"]);return[ZC._i_(n.EB[0])-e.I/2,ZC._i_(n.EB[1])-e.F/2]}return t},paint:function(e){var i,t=this;t.b(),void 0===e&&(e=!1);var n=t.C.CM,a=t.A.AY,l=t.A.CP;t.setup();var o,r,s,A,C,c,u,p,Z,h,d,f,_,g,v,B,b=t.A.ST(),m=b.AC,E=b.EV,D=b.CG,F=b.CT,K=b.F4,x=b.D5,I=b.F0;if(e?E=t.A.E["node-"+t.L+"-bar-index"]:t.A.E["node-"+t.L+"-bar-index"]=b.EV,t.A.CF){s=0;var y=t.A.A.KG[E];for(o=0;o0&&(t.CQ!==t.AB&&(M=(s-t.CQ+t.AB)/s),Y=(s-t.CQ)/s),l.AW){var X=M;M=Y,Y=X}t.A.LT&&(E=t.L);var L=t.iX-m/2+D+E*(x+K)-E*I;if(L=ZC._l_(L,t.iX-m/2+D,t.iX+m/2-F),t.A.D5>0){var G=x;(x=t.A.D5)<=1&&(x*=G),L+=(G-x)/2}var P=x,O=t.iY,S=null!==ZC._n_(t.A.LZ[t.L])?t.A.LZ[t.L]:0;if(O=t.A.CF&&"100%"===t.A.KS?l.AR(100*(t.CQ+S)/t.A.A.F8[t.L]["%total-"+t.A.E0]):l.AR(t.CQ+S),t.A.CF?(C=O-(A="100%"===t.A.KS?l.AR(100*(t.CQ-t.AB+S)/t.A.A.F8[t.L]["%total-"+t.A.E0]):l.AR(t.CQ-t.AB+S)),t.AB<0&&(O=A),l.AW?C>0&&(C=ZC._a_(C),O=A):C<0&&(O=A-(C=ZC._a_(C)))):O=(C=O-(A=l.AR(S)))<0?A-(C=ZC._a_(C)):A,D+F===0&&(L-=.5,P+=1),t.I=P,t.F=C,t.iX=L,t.iY=O,l.AW?t.AB>=l.H9?t.iYVal=O+t.F:t.iYVal=O:t.AB>=l.H9?t.iYVal=O:t.iYVal=O+t.F,t.C.CX){var N="middle";t.C.CX.o.marker&&null!==ZC._n_(i=t.C.CX.o.marker.alignment)&&(N=i),null!==ZC._n_(t.A.o["guide-marker"])&&null!==ZC._n_(i=t.A.o["guide-marker"].alignment)&&(N=i),"node"===N&&(t.E.A5P=t.iX+t.I/2)}if(!e){var k,z,Q,V=L-ZC.AL.E1,J=O-ZC.AL.E2,T=0,H=ZC.AL.FD,R=0,W=H;if(t.A.A3O){if(z=T,"mixed3d"===t.C.AF||"mixed"===t.C.AF){for(k=1,o=0,r=t.A.A.A3.length;oo&&R--);W/=k,R=k-R-1}z=R*W+.2*W,Q=(R+1)*W-.2*W}if(null!==ZC._n_(t.A.o["z-start"])&&(z=ZC._i_(t.A.o["z-start"])),null!==ZC._n_(t.A.o["z-end"])&&(Q=ZC._i_(t.A.o["z-end"])),null!==ZC._n_(t.A.o.depth)){var U=ZC._i_(t.A.o.depth);z=R*W+W/2-U,Q=R*W+W/2+U}T=z,H=Q-z,t.A.E["z-plots"]=k,t.A.E["z-cnt"]=R,t.A.E["z-depth"]=W,t.A.E["z-start"]=z,t.A.E["z-mid"]=(z+Q)/2;var j=t.O=t.A.IG(t,t.O);if(j.DG=t.K+"-3dfacet",t.A.HW&&(t.H5(j),j.parse()),j.AO){var q=new ZC.CZ(t);q.copy(j),q.A0=ZC.AP.JO(ZC.AP.GD(q.A0)),q.AE=ZC.AP.JO(ZC.AP.GD(q.AE)),q.BX=ZC.AP.JO(ZC.AP.GD(q.BX));var $=new ZC.CZ(t);$.copy(j),$.A0=ZC.AP.JO(ZC.AP.GD($.A0),15),$.AE=ZC.AP.JO(ZC.AP.GD($.AE),15),$.BX=ZC.AP.JO(ZC.AP.GD($.BX),15);var ee=new ZC.CZ(t);ee.copy(j);var ie=t.C.K+"-node-area "+t.C.K+"-plotset-plot-"+t.A.L+"-node-area zc-node-area",te=ZC.Q.FT("poly",t.A.EA,t.O.IL)+'class="'+ie+'" id="'+t.K,ne=t.C.EM.true3d,ae=t.I/2,le=H/2,oe=M*ae,re=Y*ae,se=Y*le,Ae=M*le;l.AW&&!t.A.CF?(c=t.AB>=0?0:t.F,u=t.AB>=0?t.F:0):(c=t.AB>=0?t.F:0,u=t.AB>=0?0:t.F);var Ce=t.A.A.HE,ce=ZC.CY(le,ae),ue=t.C.EM["y-angle"],pe=t.C.EM.angle,Ze=ZC.EE(pe)*le,he=ZC.EK(pe)*le;ne||(ce=ZC.CY(2*Ze,ae));var de=function(e){var i=0,n=t.A.L,o=t.L,r=t.A.A.A3.length,s=t.A.S.length;switch((t.A.CF?"s":"")+(a.AW?"k":"")+(l.AW?"v":"")){case"":case"v":i=10*n+1e4*o+e;break;case"sv":i=10*(r-n)+1e4*o+e;break;case"k":i=10*n+1e4*(s-o)+e;break;case"skv":i=10*(r-n)+1e4*(s-o)+e;break;case"kv":i=10*n+1e4*(s-o)+e;break;case"s":i=10*n+1e4*o+e;break;case"sk":i=10*n+1e4*(s-o)+e}return i},fe=ZC.MAX,_e=-ZC.MAX,ge=ZC.MAX,ve=-ZC.MAX,Be=ZC.MAX,be=-ZC.MAX,me=ZC.MAX,Ee=-ZC.MAX;if("cylinder"===t.A.CW)for(B=0;B<=360;B+=4)(Z=new ZC.CD(t.C,V+ZC.EK(B)*ce+ae,J,T+ZC.EE(B)*ce+le)).EB[0]ve&&(ve=Z.EB[0],_e=B),(Z=new ZC.CD(t.C,V+ZC.EK(B)*ce+ae,J+t.F,T+ZC.EE(B)*ce+le)).EB[0]Ee&&(Ee=Z.EB[0],be=B);var De=t.A.o.facets||{};switch(t.A.CW){default:De.bottom?((p=new ZC.CZ(t)).copy(q),p.append(De.bottom),p.parse(),_=ZC.DK.DD(p,t.C,V+.1,V+t.I-.1,J+t.F-.1,J+t.F-.1,T+.1,T+H-.1,"x")):_=ZC.DK.DD(q,t.C,V+.1,V+t.I-.1,J+t.F-.1,J+t.F-.1,T+.1,T+H-.1,"x"),_.K=t.K+"-facet1",_.G0=de(1),n.add(_),De.top?((p=new ZC.CZ(t)).copy(q),p.append(De.top),p.parse(),f=ZC.DK.DD(p,t.C,V+.1,V+t.I-.1,J+.1,J+.1,T+.1,T+H-.1,"x")):f=ZC.DK.DD(q,t.C,V+.1,V+t.I-.1,J+.1,J+.1,T+.1,T+H-.1,"x"),f.K=t.K+"-facet2",f.G0=de(3),n.add(f),De.left?((p=new ZC.CZ(t)).copy($),p.append(De.left),p.parse(),g=ZC.DK.DD(p,t.C,V+.1,V+.1,J+.1,J+t.F-.1,T+.1,T+H-.1,"z")):g=ZC.DK.DD($,t.C,V+.1,V+.1,J+.1,J+t.F-.1,T+.1,T+H-.1,"z"),g.K=t.K+"-facet3",g.G0=de(2),n.add(g),De.right?((p=new ZC.CZ(t)).copy($),p.append(De.right),p.parse(),v=ZC.DK.DD(p,t.C,V+t.I-.1,V+t.I-.1,J+.1,J+t.F-.1,T+.1,T+H-.1,"z")):v=ZC.DK.DD($,t.C,V+t.I-.1,V+t.I-.1,J+.1,J+t.F-.1,T+.1,T+H-.1,"z"),v.K=t.K+"-facet4",v.G0=de(4),n.add(v),De.front?((p=new ZC.CZ(t)).copy(ee),p.append(De.front),p.parse(),d=ZC.DK.DD(p,t.C,V+.1,V+t.I-.1,J+.1,J+t.F-.1,T+.1,T+.1,"y")):d=ZC.DK.DD(ee,t.C,V+.1,V+t.I-.1,J+.1,J+t.F-.1,T+.1,T+.1,"y"),d.K=t.K+"-facet5",d.G0=de(5),n.add(d),t.A.FV&&(1===Y&&Ce.push(te+'--top" coords="'+f.FH()+'" />'),Ce.push(te+'--left" coords="'+g.FH()+'" />',te+'--right" coords="'+v.FH()+'" />',te+'--front" coords="'+d.FH()+'" '+t.a11y()+' data-z-sort="-100" />'));break;case"pyramid":De.bottom?((p=new ZC.CZ(t)).copy(q),p.append(De.bottom),p.parse(),_=ZC.DK.DD(p,t.C,V+ae-oe,V+ae+oe,J+c,J+c,T+le-Ae,T+le+Ae,"x")):_=ZC.DK.DD(q,t.C,V+ae-oe,V+ae+oe,J+c,J+c,T+le-Ae,T+le+Ae,"x"),_.K=t.K+"-facet1",_.G0=de(l.AW&&!t.A.CF?6:1),n.add(_),h=[[V+ae-oe,J+c,T+le-Ae],[V+ae+oe,J+c,T+le-Ae]],t.A.CF&&0!==Y?h.push([V+ae+re,J+u,T+le-se],[V+ae-re,J+u,T+le-se]):h.push([V+ae,J+u,T+le]),De.front?((p=new ZC.CZ(t)).copy(j),p.append(De.front),p.parse(),d=ZC.DK.DA(p,t.C,h)):d=ZC.DK.DA(j,t.C,h),d.K=t.K+"-facet2",d.G0=de(3),n.add(d),h=[[V+ae-oe,J+c,T+le-Ae],[V+ae-oe,J+c,T+le+Ae]],t.A.CF&&0!==Y?h.push([V+ae-re,J+u,T+le+se],[V+ae-re,J+u,T+le-se]):h.push([V+ae,J+u,T+le]),De.left?((p=new ZC.CZ(t)).copy($),p.append(De.left),p.parse(),g=ZC.DK.DA(p,t.C,h)):g=ZC.DK.DA($,t.C,h),g.K=t.K+"-facet3",g.G0=de(2),n.add(g),h=[[V+ae+oe,J+c,T+le-Ae],[V+ae+oe,J+c,T+le+Ae]],t.A.CF&&0!==Y?h.push([V+ae+re,J+u,T+le+se],[V+ae+re,J+u,T+le-se]):h.push([V+ae,J+u,T+le]),De.right?((p=new ZC.CZ(t)).copy($),p.append(De.right),p.parse(),v=ZC.DK.DA(p,t.C,h)):v=ZC.DK.DA($,t.C,h),v.K=t.K+"-facet4",v.G0=de(4),n.add(v),t.A.CF&&0!==Y&&(h=[[V+ae-re,J+u,T+le-se],[V+ae-re,J+u,T+le+se],[V+ae+re,J+u,T+le+se],[V+ae+re,J+u,T+le-se]],De.top?((p=new ZC.CZ(t)).copy(q),p.append(De.top),p.parse(),f=ZC.DK.DA(p,t.C,h)):f=ZC.DK.DA(q,t.C,h),f.K=t.K+"-facet5",f.G0=de(5),n.add(f)),t.A.FV&&Ce.push(te+'--left" coords="'+g.FH()+'" />',te+'--right" coords="'+v.FH()+'" />',te+'--front" coords="'+d.FH()+'" '+t.a11y()+' data-z-sort="-100" />');break;case"cylinder":if(h=[],ne)for(B=0;B<=360;B+=5)h.push([V+ZC.EK(B)*ce+ae,J+t.F,T+ZC.EE(B)*ce+le]);else for(B=0;B<=360;B+=5)(Z=new ZC.CD(t.C,0,0,0)).EB=[L+ZC.EE(B)*ce+ae+Ze,O+t.F+ZC.EK(B)*(ce/2)-he],h.push(Z);if(De.bottom?((p=new ZC.CZ(t)).copy(q),p.append(De.bottom),p.parse(),_=ZC.DK.DA(p,t.C,h,!ne)):_=ZC.DK.DA(q,t.C,h,!ne),_.K=t.K+"-facet1",_.G0=de(1),n.add(_),h=[],ne)for(B=0;B<=360;B+=5)h.push([V+ZC.EK(B)*ce+ae,J,T+ZC.EE(B)*ce+le]);else for(B=0;B<=360;B+=5)(Z=new ZC.CD(t.C,0,0,0)).EB=[L+ZC.EE(B)*ce+ae+Ze,O+ZC.EK(B)*(ce/2)-he],h.push(Z);if(De.top?((p=new ZC.CZ(t)).copy(q),p.append(De.top),p.parse(),f=ZC.DK.DA(p,t.C,h,!ne)):f=ZC.DK.DA(q,t.C,h,!ne),f.K=t.K+"-facet2",f.G0=de(3),n.add(f),h=[],ne){for(B=ZC.CY(fe,_e);B<=ZC.BQ(fe,_e);B+=1)h.push([V+ZC.EK(B)*ce+ae,J,T+ZC.EE(B)*ce+le]);for(h.push([V+ZC.EK(B)*ce+ae,J+t.F,T+ZC.EE(B)*ce+le]),B=ZC.BQ(Be,be);B>=ZC.CY(Be,be);B-=1)h.push([V+ZC.EK(B)*ce+ae,J+t.F,T+ZC.EE(B)*ce+le])}else{for(B=0;B<=180;B+=5)(Z=new ZC.CD(t.C,0,0,0)).EB=[L+ZC.EE(B)*ce+ae+Ze,O+t.F+ZC.EK(B)*(ce/2)-he],h.push(Z);for(B=180;B>=0;B-=5)(Z=new ZC.CD(t.C,0,0,0)).EB=[L+ZC.EE(B)*ce+ae+Ze,O+ZC.EK(B)*(ce/2)-he],h.push(Z)}De.front?((p=new ZC.CZ(t)).copy(j),p.append(De.front),p.parse(),d=ZC.DK.DA(p,t.C,h,!ne)):d=ZC.DK.DA(j,t.C,h,!ne),d.K=t.K+"-facet3",d.G0=de(2),n.add(d),t.A.FV&&Ce.push(te+'--front" coords="'+d.FH()+'" '+t.a11y()+' data-z-sort="-100" />',te+'--top" coords="'+f.FH()+'" />');break;case"cone":if(h=[],ne)for(B=0;B<=360;B+=5)h.push([V+ZC.EK(B)*ce*M+ae,J+c,T+ZC.EE(B)*ce*M+le]);else for(B=0;B<=360;B+=5)(Z=new ZC.CD(t.C,0,0,0)).EB=[L+ZC.EE(B)*ce*M+ae+Ze,O+c+ZC.EK(B)*(ce/2)*M-he],h.push(Z);if(De.bottom?((p=new ZC.CZ(t)).copy(q),p.append(De.bottom),p.parse(),_=ZC.DK.DA(p,t.C,h,!ne)):_=ZC.DK.DA(q,t.C,h,!ne),_.K=t.K+"-facet1",_.G0=de(1),n.add(_),h=[],ne){for(B=90+ue;B<=270+ue;B+=5)h.push([V+ZC.EK(B)*ce*M+ae,J+c,T+ZC.EE(B)*ce*M+le]);if(t.A.CF&&0!==Y)for(B=270+ue;B>=90+ue;B-=5)h.push([V+ZC.EK(B)*ce*Y+ae,J+u,T+ZC.EE(B)*ce*Y+le]);else h.push([V+ae,J+u,T+le])}else{for(B=0;B<=180;B+=5)(Z=new ZC.CD(t.C,0,0,0)).EB=[L+ZC.EE(B)*ce*M+ae+Ze,O+c+ZC.EK(B)*(ce/2)*M-he],h.push(Z);if(t.A.CF&&0!==Y)for(B=180;B>=0;B-=5)(Z=new ZC.CD(t.C,0,0,0)).EB=[L+ZC.EE(B)*ce*Y+ae+Ze,O+u+ZC.EK(B)*(ce/2)*Y-he],h.push(Z);else(Z=new ZC.CD(t.C,0,0,0)).EB=[L+ae+Ze,O+u-he],h.push(Z)}if(De.front?((p=new ZC.CZ(t)).copy(j),p.append(De.front),p.parse(),d=ZC.DK.DA(p,t.C,h,!ne)):d=ZC.DK.DA(j,t.C,h,!ne),d.K=t.K+"-facet2",d.G0=de(2),n.add(d),t.A.CF&&0!==Y){if(h=[],ne)for(B=0;B<=360;B+=5)h.push([V+ZC.EK(B)*ce*Y+ae,J+u,T+ZC.EE(B)*ce*Y+le]);else for(B=0;B<=360;B+=5)(Z=new ZC.CD(t.C,0,0,0)).EB=[L+ZC.EE(B)*ce*Y+ae+Ze,O+u+ZC.EK(B)*(ce/2)*Y-he],h.push(Z);De.top?((p=new ZC.CZ(t)).copy(q),p.append(De.top),p.parse(),f=ZC.DK.DA(p,t.C,h,!ne)):f=ZC.DK.DA(q,t.C,h,!ne),f.K=t.K+"-facet3",n.add(f),f.G0=de(3)}t.A.FV&&Ce.push(te+'--front" coords="'+d.FH()+'" data-z-sort="-100" />')}t.A.U&&t.A.U.AO&&t.GZ()}t.paintPreview(j)}},A15:function(){}}),ZC.A6Z=ZC.ZM.CC({setup:function(){this.R1()},V7:function(){var e=this;e.paint(!0);var i=e.C.BM(e.A.BW("v")[0]),t=e.iX+(i.AW?0:e.I),n=e.iY+e.F/2,a=new ZC.CD(e.C,t-ZC.AL.E1,n-ZC.AL.E2,e.A.E["z-start"]);return[ZC._i_(a.EB[0]),ZC._i_(a.EB[1]),{reference:e,center:!0}]},AC7:function(e){var i=this,t=i.b(e);if("-1/-1"!==t.join("/")){var n=new ZC.CD(i.C,t[0]-ZC.AL.E1,t[1]-ZC.AL.E2,i.A.E["z-start"]);return[ZC._i_(n.EB[0]),ZC._i_(n.EB[1])]}return t},paint:function(e){var i=this;i.b(),void 0===e&&(e=!1);var t=i.C.CM,n=i.A.AY,a=i.A.CP;i.setup();var l,o,r,s,A,C,c,u,p,Z,h,d,f,_,g=i.A.ST(),v=g.AC,B=g.EV,b=g.CG,m=g.CT,E=g.F4,D=g.D5,F=g.F0;if(e?B=i.A.E["node-"+i.L+"-bar-index"]:i.A.E["node-"+i.L+"-bar-index"]=g.EV,i.A.CF){l=0;for(var K=i.A.A.KG[B],x=0;x0){var X=D;(D=i.A.D5)<=1&&(D*=X),Y+=(X-D)/2}var L=D,G=i.iX,P=null!==ZC._n_(i.A.LZ[i.L])?i.A.LZ[i.L]:0;if(G=i.A.CF&&"100%"===i.A.KS?a.AR(100*(i.CQ+P)/i.A.A.F8[i.L]["%total-"+i.A.E0]):a.AR(i.CQ+P),i.A.CF?(r=G-(o="100%"===i.A.KS?a.AR(100*(i.CQ-i.AB+P)/i.A.A.F8[i.L]["%total-"+i.A.E0]):a.AR(i.CQ-i.AB+P)),i.AB>0?G=o:r=ZC._a_(r),a.AW?r>0?(r=ZC._a_(r),G=o):G-=r=ZC._a_(r):r<0&&(G=o-(r=ZC._a_(r)))):G=(r=G-(o=a.AR(P)))<0?o-(r=ZC._a_(r)):o,b+m===0&&(Y-=.5,L+=1),i.I=r,i.F=L,i.iX=G,i.iY=Y,a.AW?i.AB>=a.H9?i.iXVal=G:i.iXVal=G+i.I:i.AB>=a.H9?i.iXVal=G+i.I:i.iXVal=G,!e){var O=G+r-ZC.AL.E1,S=Y-ZC.AL.E2,N=0,k=ZC.AL.FD;null!==ZC._n_(i.A.o["z-start"])&&(N=ZC._i_(i.A.o["z-start"])),null!==ZC._n_(i.A.o["z-end"])&&(k=ZC._i_(i.A.o["z-end"])-N),i.A.E["z-start"]=N,i.A.E["z-mid"]=N+k/2;var z=i.O=i.A.IG(i,i.O);if(z.DG=i.K+"-3dfacet",i.A.HW&&(i.H5(z),z.parse()),z.AO){var Q=new ZC.CZ(i);Q.copy(z),Q.A0=ZC.AP.JO(ZC.AP.GD(Q.A0)),Q.AE=ZC.AP.JO(ZC.AP.GD(Q.AE)),Q.BX=ZC.AP.JO(ZC.AP.GD(Q.BX));var V=new ZC.CZ(i);V.copy(z),V.A0=ZC.AP.JO(ZC.AP.GD(V.A0),15),V.AE=ZC.AP.JO(ZC.AP.GD(V.AE),15),V.BX=ZC.AP.JO(ZC.AP.GD(V.BX),15);var J=new ZC.CZ(i);J.copy(z);var T=i.C.K+"-node-area "+i.C.K+"-plotset-plot-"+i.A.L+"-node-area zc-node-area",H=ZC.Q.FT("poly",i.A.EA,i.O.IL)+'class="'+T+'" id="'+i.K,R=i.C.EM.true3d,W=i.F/2,U=k/2,j=y*W,q=w*W,$=w*U,ee=y*U;a.AW&&!i.A.CF?(A=i.AB>=0?0:i.I,s=i.AB>=0?i.I:0):(A=i.AB>=0?i.I:0,s=i.AB>=0?0:i.I);var ie=i.A.A.HE,te=ZC.CY(U,W),ne=i.C.EM["x-angle"],ae=i.C.EM.angle,le=ZC.EE(ae)*U,oe=ZC.EK(ae)*U;R||(te=ZC.CY(2*oe,W));var re=function(e){var t=-1,l=i.A.L,o=i.L,r=i.A.A.A3.length,s=i.A.S.length;switch((i.A.CF?"s":"")+(n.AW?"k":"")+(a.AW?"v":"")){case"":case"v":case"sv":t=10*(r-l)+1e4*o+e;break;case"k":case"skv":case"kv":t=10*(r-l)+1e4*(s-o)+e;break;case"s":t=10*l+1e4*o+e;break;case"sk":t=10*l+1e4*(s-o)+e}return ZC._i_(t)},se=i.A.o.facets||{};switch(i.A.CW){default:se.left?((C=new ZC.CZ(i)).copy(V),C.append(se.left),C.parse(),c=ZC.DK.DD(C,i.C,O-i.I+.1,O-.1,S+.1,S+.1,N+.1,N+k-.1,"x")):c=ZC.DK.DD(V,i.C,O-i.I+.1,O-.1,S+.1,S+.1,N+.1,N+k-.1,"x"),c.K=i.K+"-facet1",c.G0=re(5),t.add(c),se.right?((C=new ZC.CZ(i)).copy(V),C.append(se.right),C.parse(),h=ZC.DK.DD(C,i.C,O-i.I+.1,O-.1,S+i.F-.1,S+i.F-.1,N+.1,N+k-.1,"x")):h=ZC.DK.DD(V,i.C,O-i.I+.1,O-.1,S+i.F-.1,S+i.F-.1,N+.1,N+k-.1,"x"),h.K=i.K+"-facet2",h.G0=re(1),t.add(h),se.bottom?((C=new ZC.CZ(i)).copy(Q),C.append(se.bottom),C.parse(),u=ZC.DK.DD(C,i.C,O-i.I+.1,O-i.I+.1,S+i.F-.1,S+.1,N+.1,N+k-.1,"z")):u=ZC.DK.DD(Q,i.C,O-i.I+.1,O-i.I+.1,S+i.F-.1,S+.1,N+.1,N+k-.1,"z"),u.K=i.K+"-facet3",u.G0=re(2),t.add(u),se.top?((C=new ZC.CZ(i)).copy(Q),C.append(se.top),C.parse(),p=ZC.DK.DD(C,i.C,O-.1,O-.1,S+i.F-.1,S+.1,N+.1,N+k-.1,"z")):p=ZC.DK.DD(Q,i.C,O-.1,O-.1,S+i.F-.1,S+.1,N+.1,N+k-.1,"z"),p.K=i.K+"-facet4",p.G0=re(3),t.add(p),se.front?((C=new ZC.CZ(i)).copy(J),C.append(se.front),C.parse(),Z=ZC.DK.DD(C,i.C,O-i.I+.1,O-.1,S+i.F-.1,S+.1,N+.1,N+.1,"y")):Z=ZC.DK.DD(J,i.C,O-i.I+.1,O-.1,S+i.F-.1,S+.1,N+.1,N+.1,"y"),Z.K=i.K+"-facet5",Z.G0=re(4),t.add(Z),i.A.FV&&(i.A.CF||ie.push(H+'--top" coords="'+p.FH()+'" />'),ie.push(H+'--left" coords="'+c.FH()+'" />',H+'--right" coords="'+h.FH()+'" />',H+'--front" coords="'+Z.FH()+'" '+i.a11y()+' data-z-sort="-100" />'));break;case"pyramid":se.bottom?((C=new ZC.CZ(i)).copy(Q),C.append(se.bottom),C.parse(),u=ZC.DK.DD(C,i.C,O-A,O-A,S+W-j,S+W+j,U-ee,U+ee,"z")):u=ZC.DK.DD(Q,i.C,O-A,O-A,S+W-j,S+W+j,U-ee,U+ee,"z"),u.K=i.K+"-facet1",u.G0=re(a.AW&&!i.A.CF?6:1),t.add(u),_=[[O-A,S+W-j,U-ee],[O-A,S+W+j,U-ee]],i.A.CF&&0!==w?_.push([O-s,S+W+q,U-$],[O-s,S+W-q,U-$]):_.push([O-s,S+W,k/2]),se.front?((C=new ZC.CZ(i)).copy(z),C.append(se.front),C.parse(),Z=ZC.DK.DA(C,i.C,_)):Z=ZC.DK.DA(z,i.C,_),Z.K=i.K+"-facet2",Z.G0=re(3),t.add(Z),_=[[O-A,S+W-j,U-ee],[O-A,S+W-j,U+ee]],i.A.CF&&0!==w?_.push([O-s,S+W-q,U+$],[O-s,S+W-q,U-$]):_.push([O-s,S+i.F/2,k/2]),se.left?((C=new ZC.CZ(i)).copy(V),C.append(se.left),C.parse(),c=ZC.DK.DA(C,i.C,_)):c=ZC.DK.DA(V,i.C,_),c.K=i.K+"-facet3",c.G0=re(4),t.add(c),_=[[O-A,S+W+j,U-ee],[O-A,S+W+j,U+ee]],i.A.CF&&0!==w?_.push([O-s,S+W+q,U+$],[O-s,S+W+q,U-$]):_.push([O-s,S+W,k/2]),se.right?((C=new ZC.CZ(i)).copy(V),C.append(se.right),C.parse(),h=ZC.DK.DA(C,i.C,_)):h=ZC.DK.DA(V,i.C,_),h.K=i.K+"-facet4",h.G0=re(2),t.add(h),i.A.CF&&0!==w&&(se.top?((C=new ZC.CZ(i)).copy(Q),C.append(se.top),C.parse(),p=ZC.DK.DD(C,i.C,O-s,O-s,S+W-q,S+W+q,U-$,U+$,"z")):p=ZC.DK.DD(Q,i.C,O-s,O-s,S+W-q,S+W+q,U-$,U+$,"z"),p.K=i.K+"-facet5",p.G0=re(5),t.add(p)),i.A.FV&&ie.push(H+'--left" coords="'+c.FH()+'" />',H+'--right" coords="'+h.FH()+'" />',H+'--front" coords="'+Z.FH()+'" '+i.a11y()+' data-z-sort="-100" />');break;case"cylinder":if(_=[],R)for(d=0;d<=360;d+=5)_.push([O-i.I,S+ZC.EK(d)*te+W,N+ZC.EE(d)*te+U]);else for(d=0;d<=360;d+=5)(f=new ZC.CD(i.C,0,0,0)).EB=[G+ZC.EE(d)*(te/2)+le,Y+W+ZC.EK(d)*te-oe],_.push(f);if(se.bottom?((C=new ZC.CZ(i)).copy(Q),C.append(se.bottom),C.parse(),u=ZC.DK.DA(C,i.C,_,!R)):u=ZC.DK.DA(Q,i.C,_,!R),u.K=i.K+"-facet1",u.G0=re(1),t.add(u),_=[],R){for(d=90-ne;d<=270-ne;d+=5)_.push([O-i.I,S+ZC.EK(d)*te+W,N+ZC.EE(d)*te+U]);for(_.push([O,S+ZC.EK(d)*te+W,N+ZC.EE(d)*te+U]),d=270-ne;d>=90-ne;d-=5)_.push([O,S+ZC.EK(d)*te+W,N+ZC.EE(d)*te+U])}else{for(d=90;d<=270;d+=5)(f=new ZC.CD(i.C,0,0,0)).EB=[G+ZC.EE(d)*(te/2)+le,Y+W+ZC.EK(d)*te-oe],_.push(f);for(d=270;d>=90;d-=5)(f=new ZC.CD(i.C,0,0,0)).EB=[G+ZC.EE(d)*(te/2)+i.I+le,Y+W+ZC.EK(d)*te-oe],_.push(f)}if(se.front?((C=new ZC.CZ(i)).copy(z),C.append(se.front),C.parse(),Z=ZC.DK.DA(C,i.C,_,!R)):Z=ZC.DK.DA(z,i.C,_,!R),Z.K=i.K+"-facet2",Z.G0=re(2),t.add(Z),_=[],R)for(d=0;d<=360;d+=5)_.push([O,S+ZC.EK(d)*te+W,N+ZC.EE(d)*te+U]);else for(d=0;d<=360;d+=5)(f=new ZC.CD(i.C,0,0,0)).EB=[G+ZC.EE(d)*(te/2)+i.I+le,Y+W+ZC.EK(d)*te-oe],_.push(f);se.top?((C=new ZC.CZ(i)).copy(Q),C.append(se.top),C.parse(),p=ZC.DK.DA(C,i.C,_,!R)):p=ZC.DK.DA(Q,i.C,_,!R),p.K=i.K+"-facet3",p.G0=re(3),t.add(p),i.A.FV&&ie.push(H+'--front" coords="'+Z.FH()+'" '+i.a11y()+' data-z-sort="-100" />',H+'--top" coords="'+p.FH()+'" />');break;case"cone":if(_=[],R)for(d=0;d<=360;d+=5)_.push([O-A,S+ZC.EK(d)*te*y+W,ZC.EE(d)*te*y+U]);else for(d=0;d<=360;d+=5)(f=new ZC.CD(i.C,0,0,0)).EB=[G+s+ZC.EE(d)*(te/2)*y+le,Y+W+ZC.EK(d)*te*y-oe],_.push(f);if(se.bottom?((C=new ZC.CZ(i)).copy(Q),C.append(se.bottom),C.parse(),u=ZC.DK.DA(C,i.C,_,!R)):u=ZC.DK.DA(Q,i.C,_,!R),u.K=i.K+"-facet1",u.G0=re(1),t.add(u),_=[],R){for(d=90-ne;d<=270-ne;d+=5)_.push([O-A,S+ZC.EK(d)*te*y+W,ZC.EE(d)*te*y+U]);if(i.A.CF&&0!==w)for(d=270-ne;d>=90-ne;d-=5)_.push([O-s,S+ZC.EK(d)*te*w+W,ZC.EE(d)*te*w+U]);else _.push([O-s,S+W,te])}else{for(d=90;d<=270;d+=5)(f=new ZC.CD(i.C,0,0,0)).EB=[G+s+ZC.EE(d)*(te/2)*y+le,Y+W+ZC.EK(d)*te*y-oe],_.push(f);if(i.A.CF&&0!==w)for(d=270;d>=90;d-=5)(f=new ZC.CD(i.C,0,0,0)).EB=[G+A+ZC.EE(d)*(te/2)*w+le,Y+W+ZC.EK(d)*te*w-oe],_.push(f);else(f=new ZC.CD(i.C,0,0,0)).EB=[G+A+le,Y+W-oe],_.push(f)}if(se.front?((C=new ZC.CZ(i)).copy(z),C.append(se.front),C.parse(),Z=ZC.DK.DA(C,i.C,_,!R)):Z=ZC.DK.DA(z,i.C,_,!R),Z.K=i.K+"-facet2",Z.G0=re(2),t.add(Z),i.A.CF&&0!==w){if(_=[],R)for(d=0;d<=360;d+=5)_.push([O-s,S+ZC.EK(d)*te*w+W,ZC.EE(d)*te*w+U]);else for(d=0;d<=360;d+=5)(f=new ZC.CD(i.C,0,0,0)).EB=[G+A+ZC.EE(d)*(te/2)*w+le,Y+W+ZC.EK(d)*te*w-oe],_.push(f);se.top?((C=new ZC.CZ(i)).copy(Q),C.append(se.top),C.parse(),p=ZC.DK.DA(C,i.C,_,!R)):p=ZC.DK.DA(Q,i.C,_,!R),p.K=i.K+"-facet3",p.G0=re(3),t.add(p)}i.A.FV&&ie.push(H+'--front" coords="'+Z.FH()+'" data-z-sort="-100" />')}}i.A.U&&i.A.U.AO&&i.GZ()}},A15:function(){}}),ZC.A70=ZC.A31.CC({setup:function(){this.R1()},ABF:function(){return{color:this.O.B9}},Y4:function(){return{"background-color":this.O.B9,"border-color":this.O.B9,color:this.O.C2}},AC7:function(e){var i=this,t=i.b(e);return new ZC.CD(i.C,t[0]-ZC.AL.E1,t[1]-ZC.AL.E2,i.A.E["z-start"]).EB},paint:function(){var e,i,t=this;t.b();var n,a=t.E.points;(n="none"!==t.A.J2?t.O=t.A.IG(t,t.O):t.O).DG=t.K+"-3dfacet",t.A.HW&&t.H5(n);var l=0,o=-1,r=ZC.AL.FD;if("hide"===t.C.getToggleAction())t.A.CF?o=0:(l=t.A.A.A3.length,o=t.A.L,r/=l);else if(t.A.CF)o=0;else{for(e=0;ee&&o--);r/=l,o=l-o-1}n.A0=n.AE=n.B9,"spline"===t.A.CW&&(n.BX=n.B9);var s=t.A.A.HE,A=t.C.K+"-node-area "+t.C.K+"-plotset-plot-"+t.A.L+"-node-area zc-node-area",C=ZC.Q.FT("poly",t.A.EA,t.O.IL)+'class="'+A+'" id="'+t.K,c=o*r,u=(o+1)*r;if(null!==ZC._n_(t.A.o["z-start"])&&(c=ZC._i_(t.A.o["z-start"])),null!==ZC._n_(t.A.o["z-end"])&&(u=ZC._i_(t.A.o["z-end"])),null!==ZC._n_(t.A.o.depth)){var p=ZC._i_(t.A.o.depth);c=o*r+r/2-p,u=o*r+r/2+p}t.A.E["z-plots"]=l,t.A.E["z-cnt"]=o,t.A.E["z-depth"]=r,t.A.E["z-start"]=c,t.A.E["z-mid"]=(c+u)/2;var Z,h,d,f=[],_=[],g=n;ZC._a_(c-u)<=2&&(t.C.CM.SK[t.A.K]||(t.C.CM.SK[t.A.K]={zIndex:t.A.L,style:n,points:[]},t.C.CM.SK[t.A.K].style.MD=!1,t.C.CM.SK[t.A.K].style.B1=ZC.BQ(1,ZC._i_(ZC._a_(c-u)/1))));for(var v=0;v2){var B=-ZC._i_(ZC.U3(Math.atan((a[v+1][1]-a[v][1])/(a[v+1][0]-a[v][0]))));(g=new ZC.CZ(t)).copy(n),g.A0=ZC.AP.JO(ZC.AP.GD(g.A0),B),g.AE=ZC.AP.JO(ZC.AP.GD(g.AE),B),g.BX=ZC.AP.JO(ZC.AP.GD(g.BX),B)}var b,m,E,D;if(t.A.oP0&&ZC._a_(c-u)<=2?((b=t.A.oP0).parse(t.C,a[v][0]-ZC.AL.E1,a[v][1]-ZC.AL.E2,c),(m=t.A.oP1).parse(t.C,a[v+1][0]-ZC.AL.E1,a[v+1][1]-ZC.AL.E2,c),(E=t.A.oP2).parse(t.C,a[v+1][0]-ZC.AL.E1,a[v+1][1]-ZC.AL.E2,u-1),(D=t.A.oP3).parse(t.C,a[v][0]-ZC.AL.E1,a[v][1]-ZC.AL.E2,u-1)):(b=t.A.oP0=new ZC.CD(t.C,a[v][0]-ZC.AL.E1,a[v][1]-ZC.AL.E2,c),m=t.A.oP1=new ZC.CD(t.C,a[v+1][0]-ZC.AL.E1,a[v+1][1]-ZC.AL.E2,c),E=t.A.oP2=new ZC.CD(t.C,a[v+1][0]-ZC.AL.E1,a[v+1][1]-ZC.AL.E2,u-1),D=t.A.oP3=new ZC.CD(t.C,a[v][0]-ZC.AL.E1,a[v][1]-ZC.AL.E2,u-1)),ZC._a_(c-u)>2?((Z=new ZC.WE(g,t.C)).K=t.K+"-facet"+v,Z.add(b),Z.add(m),Z.add(E),Z.add(D),t.C.CM.add(Z)):(t.C.CM.SK[t.A.K].points.push(b.EB),v===a.length-2&&t.C.CM.SK[t.A.K].points.push(m.EB),"spline"===t.A.CW&&(b=new ZC.CD(t.C,a[v][0]-ZC.AL.E1,a[v][1]-ZC.AL.E2,c-10),D=new ZC.CD(t.C,a[v][0]-ZC.AL.E1,a[v][1]-ZC.AL.E2,u-1+10))),f.push(b.EB),_.push(D.EB),t.A.FV&&"spline"!==t.A.CW)if(ZC._a_(c-u)>2)i=Z.FH();else{for(h=ZC.AQ.Z2([b.EB,m.EB],4),d=0;d')}"spline"===t.A.CW?(t.E.polypoints=!0,t.E.points=f.concat(_.reverse())):t.E.points=null,t.A.A2.o&&("spline"===t.A.CW||"none"===t.A.A2.o.type||null!==ZC._n_(t.A.A2.o.visible)&&!ZC._b_(t.A.A2.o.visible))&&"spline"!==t.A.CW||t.PH(!0),t.A.U&&t.A.U.AO&&t.GZ(),t.paintPreview(n,a)},A15:function(){}}),ZC.A71=ZC.A32.CC({setup:function(){this.R1()},ABF:function(){return{color:this.O.B9}},Y4:function(){return{"background-color":this.O.B9,"border-color":this.O.B9,color:this.O.C2}},AC7:function(e){var i=this,t=i.b(e);return new ZC.CD(i.C,t[0]-ZC.AL.E1,t[1]-ZC.AL.E2,i.A.E["z-start"]).EB},paint:function(){var e,i,t=this;t.b();var n=t.A.CP,a=n.H9,l=n.AR(a);l=ZC._l_(l,n.iY,n.iY+n.F);var o,r=t.E.points,s=t.E.pointsarea;(o="none"!==t.A.J2?t.O=t.A.IG(t,t.O):t.O).DG=t.K+"-3dfacet",t.A.HW&&t.H5(o);var A=0,C=-1,c=ZC.AL.FD;if("hide"===t.C.getToggleAction())t.A.CF?C=0:(A=t.A.A.A3.length,C=t.A.L,c/=A);else if(t.A.CF)C=0;else{for(e=0;ee&&C--);c/=A,C=A-C-1}var u=new ZC.CZ(t);u.copy(o),u.A0=u.AE=o.B9,"spline"===t.A.CW&&(u.BX=o.B9);var p=new ZC.CZ(t);p.copy(o),p.LA=!0,p.AU=0,p.C5=t.A.HP,p.A0=ZC.AP.PM(ZC.AP.GD(p.A0),30),p.AE=ZC.AP.PM(ZC.AP.GD(p.AE),30);var Z,h,d=t.A.A.HE,f=t.C.K+"-node-area "+t.C.K+"-plotset-plot-"+t.A.L+"-node-area zc-node-area",_=ZC.Q.FT("poly",t.A.EA,t.O.IL)+'class="'+f+'" id="'+t.K,g=[],v=[],B=C*c,b=(C+1)*c;if(null!==ZC._n_(t.A.o["z-start"])&&(B=ZC._i_(t.A.o["z-start"])),null!==ZC._n_(t.A.o["z-end"])&&(b=ZC._i_(t.A.o["z-end"])),null!==ZC._n_(t.A.o.depth)){var m=ZC._i_(t.A.o.depth);B=C*c+c/2-m,b=C*c+c/2+m}t.A.E["z-plots"]=A,t.A.E["z-cnt"]=C,t.A.E["z-depth"]=c,t.A.E["z-start"]=B,t.A.E["z-mid"]=(B+b)/2;var E=new ZC.WE(p,t.C);for(Z=0,h=s.length;Z2){var K=-ZC._i_(ZC.U3(Math.atan((r[Z+1][1]-r[Z][1])/(r[Z+1][0]-r[Z][0]))));(F=new ZC.CZ(t)).copy(u),F.A0=ZC.AP.JO(ZC.AP.GD(F.A0),K),F.AE=ZC.AP.JO(ZC.AP.GD(F.AE),K),F.BX=ZC.AP.JO(ZC.AP.GD(F.BX),K)}var x=new ZC.CD(t.C,r[Z][0]-ZC.AL.E1,r[Z][1]-ZC.AL.E2,B),I=new ZC.CD(t.C,r[Z+1][0]-ZC.AL.E1,r[Z+1][1]-ZC.AL.E2,B),y=new ZC.CD(t.C,r[Z+1][0]-ZC.AL.E1,r[Z+1][1]-ZC.AL.E2,b-1),w=new ZC.CD(t.C,r[Z][0]-ZC.AL.E1,r[Z][1]-ZC.AL.E2,b-1);if(ZC._a_(B-b)>2?((E=new ZC.WE(F,t.C)).K=t.K+"-facet"+Z,E.add(x),E.add(I),E.add(y),E.add(w),t.C.CM.add(E)):(t.C.CM.SK[t.A.K].points.push(x.EB),Z===r.length-2&&t.C.CM.SK[t.A.K].points.push(I.EB),"spline"===t.A.CW&&(x=new ZC.CD(t.C,r[Z][0]-ZC.AL.E1,r[Z][1]-ZC.AL.E2,B-10),w=new ZC.CD(t.C,r[Z][0]-ZC.AL.E1,r[Z][1]-ZC.AL.E2,b-1+10))),g.push(x.EB),v.push(w.EB),t.A.FV&&"spline"!==t.A.CW)if(ZC._a_(B-b)>2)i=E.FH();else{for(var M=ZC.AQ.Z2([E.D[0].EB,E.D[1].EB],4),Y=0;Y')}"spline"===t.A.CW?(t.E.polypoints=!0,t.E.points=g.concat(v.reverse())):t.E.points=null,t.A.A2.o&&("none"===t.A.A2.o.type||null!==ZC._n_(t.A.A2.o.visible)&&!ZC._b_(t.A.A2.o.visible))&&"spline"!==t.A.CW||t.PH(!0),t.A.U&&t.A.U.AO&&t.GZ(),t.paintPreview(o,r,s)},A15:function(){}}),ZC.A8B=ZC.LM.CC({$i:function(e){this.b(e),this.WP=0,this.WO=0},JZ:function(e,i,t,n){var a=this,l=null;return l=a.A.L=3)i.A.U&&i.GZ();else{i.b();var t=i.O=i.A.IG(i,i),n=new ZC.DR(i.A);n.K=i.K,n.Z=i.A.CR("bl",1),n.C7=i.A.CR("bl",0),n.copy(t);var a=i.iX,l=i.iY;if(n.iX=a,n.iY=l,n.AI=i.AI,n.DV="circle",n.E.plotidx=i.A.L,n.E.nodeidx=i.L,n.parse(),i.FQ=n,i.A.GF&&!i.C.HK){var o=n,r={};o.iX=a,o.iY=l,r.x=a,r.y=l;var s=i.A.LD;if(o.C5=0,r.alpha=t.C5,3===s)o.AI=2,r.size=i.AI;else if(4===s){switch(i.A.L){case 0:o.iX=a-3*i.AI,o.iY=l;break;case 1:o.iX=a+3*i.AI,o.iY=l;break;case 2:o.iX=a,o.iY=l-3*i.AI}r.x=a,r.y=l}for(e in i.A.FY)o[ZC.E6.GN[ZC.EG(e)]]=i.A.FY[e],r[ZC.EG(e)]=t[ZC.E6.GN[ZC.EG(e)]];if(i.C.EQ||(i.C.EQ={}),null!==ZC._n_(i.C.EQ[i.A.L+"-"+i.L]))for(e in i.C.EQ[i.A.L+"-"+i.L])o[ZC.E6.GN[ZC.EG(e)]]=i.C.EQ[i.A.L+"-"+i.L][e];i.C.EQ[i.A.L+"-"+i.L]={},ZC._cp_(r,i.C.EQ[i.A.L+"-"+i.L]);var A=new ZC.E6(o,r,i.A.JG,i.A.LB,ZC.E6.RN[i.A.LE],function(){C()});A.AX=i,i.LU(A)}else n.paint(),C()}function C(){var e=i.C.K+"-node-area "+i.C.K+"-plotset-plot-"+i.A.L+"-node-area zc-node-area",t=ZC.Q.FT("circle",i.A.EA,i.A.IL)+'class="'+e+'" '+i.a11y()+' id="'+i.K+'" coords="'+ZC._i_(i.iX+ZC.MAPTX)+","+ZC._i_(i.iY+ZC.MAPTX)+","+ZC._i_(ZC.BQ(ZC.mobile?6:3,i.AI)*(ZC.mobile?2:1.2))+'" />';i.A.A.HE.push(t),i.A.U&&i.GZ()}},A15:function(e){var i=this;ZC.move||i.MB({layer:e,type:"shape",initcb:function(){this.DV="circle",this.A0=i.A.BP[3],this.AE=i.A.BP[3]},setupcb:function(){this.iX=i.iX,this.iY=i.iY,this.AI=i.AI}})}}),ZC.LM.prototype.N9=function(e,i){var t,n,a=this;if(void 0===i&&(i=!1),i)"undefined"!=typeof a.E.pointserror&&((t=new ZC.CZ(a)).copy(a.A),a.A.JB&&(t.copy(a.A.JB),t.append(a.A.JB.o["hover-state"])),t.parse(),t.K=a.K+"--error-hover",t.DG=a.A.A.A.K+"-node-errorbars",t.AO&&ZC.CN.paint(e,t,a.E.pointserror));else{var l=a.A.CP,o=a.A.AY;if(0!==a.A.S6.length){var r=null,s=null,A=!0;a.A.S6.length<=2?(null!==ZC._n_(a.A.S6[0])&&a.A.S6[0]instanceof Array&&(A=!1),null!==ZC._n_(a.A.S6[1])&&a.A.S6[1]instanceof Array&&(A=!1)):A=!1,A?(r=a.A.S6[0],s=a.A.S6[1]):null!==ZC._n_(n=a.A.S6[a.L])&&n instanceof Array&&(r=s=n[0],2===n.length&&(s=n[1])),a.E["node-error-plus"]=r,a.E["node-error-minus"]=s,-1!==(r+"").indexOf("%")&&(r=ZC.IM(r))<=1&&(r*=a.AB),-1!==(s+"").indexOf("%")&&(s=ZC.IM(s))<=1&&(s*=a.AB);var C=[],c=ZC.IM(a.A.JB&&a.A.JB.o.size||.5);c<=1&&(c="vbar"===a.A.AF?ZC._i_(c*a.I):"hbar"===a.A.AF?ZC._i_(c*a.F):ZC._i_(c*o.AC));var u,p=0;if(p=o.CL?a.F:a.I,null!==ZC._n_(r)){var Z=l.AR(a.CQ+r);o.CL?(u=l.AW?a.AB<0?a.iX+a.I:a.iX:a.AB>0?a.iX+a.I:a.iX,C.push([Z,a.iY+p/2-c/2],[Z,a.iY+p/2+c/2],null,[Z,a.iY+p/2],[u,a.iY+p/2])):(u=l.AW?a.AB>0?a.iY+a.F:a.iY:a.AB<0?a.iY+a.F:a.iY,C.push([a.iX+p/2-c/2,Z],[a.iX+p/2+c/2,Z],null,[a.iX+p/2,Z],[a.iX+p/2,u]))}if(null!==ZC._n_(s)){var h=l.AR(a.CQ-s);o.CL?(u=l.AW?a.AB<0?a.iX+a.I:a.iX:a.AB>0?a.iX+a.I:a.iX,C.push(null,[h,a.iY+p/2-c/2],[h,a.iY+p/2+c/2],null,[h,a.iY+p/2],[u,a.iY+p/2])):(u=l.AW?a.AB>0?a.iY+a.F:a.iY:a.AB<0?a.iY+a.F:a.iY,C.push(null,[a.iX+p/2-c/2,h],[a.iX+p/2+c/2,h],null,[a.iX+p/2,h],[a.iX+p/2,u]))}(t=new ZC.CZ(a)).copy(a.A),a.A.JB&&t.copy(a.A.JB),t.parse(),t.K=a.K+"--error",t.DG=a.A.A.A.K+"-node-errorbars",t.D0=!1,ZC.CN.paint(e,t,C),a.E.pointserror=C}}};var F3={$i:function(e){this.b(e);var i=this;i.G=i.A.A,i.BF="",i.V=[],i.BY=[],i.A4Y=[],i.DE=!1,i.M=null,i.BR=null,i.IU=null,i.D8=null,i.FZ=0,i.IB=null,i.G8=null,i.H9=0,i.P3=null,i.L=1,i.A9=0,i.A42=0,i.BU=0,i.AW=!1,i.CL=!1,i.AC=0,i.iStepMultiplier=1,i.DT=-1,i.RD=ZC.HD["thousands-separator"]||"",i.RX=ZC.HD["decimals-separator"]||".",i.A02=!1,i.SI=2,i.A2S=!1,i.TN="",i.A05="standard",i.CK=null,i.AF="",i.EI=ZC.MAX,i.M4=ZC.MAX,i.GO=!1,i.Y6=!1,i.KN=null,i.NP=null,i.Q5=[],i.E3=1,i.AZ=-1,i.BD=-1,i.SJ=-1,i.FS=-1,i.GV=-1,i.BS="lin",i.DX=10,i.F6=null,i.P4=1,i.PX=!0,i.A0F=!1,i.aAutoFit=[!1,!1],i.LW=null,i.WQ=null,i.TE=!1,i.I3=-1,i.YL=!1,i.BA="default",i.Q1=!1,i.VG=!1,i.R5=1,i.sMaster="",i.bNormalize=!0,i.bAllowDuplicates=!1,i.fMinValueFactor=0,i.fMaxValueFactor=0},parse:function(){this.b();var e,i=this;if(null!==ZC._n_(e=i.o.step))if(ZC.PE(e))i.E3=ZC._f_(e);else{var t=e.replace(/[0-9]/gi,""),n=parseInt(e.replace(/[^0-9]/gi,""),10);switch(n=n||1,t){case"second":i.E3=1e3*n;break;case"minute":i.E3=1e3*n*60;break;case"hour":i.E3=1e3*n*60*60;break;case"day":i.E3=1e3*n*60*60*24;break;case"week":i.E3=1e3*n*60*60*24*7;break;case"month":i.E3=2629743e3*n;break;case"year":i.E3=31556926e3*n}}if(null!==ZC._n_(i.o.multiplier)&&null===ZC._n_(i.o.short)&&(i.o.short=i.o.multiplier),i.assign_a([["labels","BY"],["tooltip-text","A4Y"],["format","CK"],["offset-start","A9","i"],["offset-start","A42","i"],["offset-end","BU","i"],["minor-ticks","FZ","i"],["step-multiplier","iStepMultiplier","i"],["index","L","i"],["mirrored","AW","b"],["zooming","GO","b"],["zoom-snap","Y6","b"],["fixed-step","Q1","b"],["zoom-to","KN"],["force-view","YL","b"],["zoom-to-values","NP"],["items-overlap","A0F","b"],["used","TE","b"],["max-labels","EI","i"],["max-items","EI","i"],["ref-value","H9","f"],["decimals","DT","ia"],["decimals-separator","RX"],["thousands-separator","RD"],["short","A2S","b"],["short-unit","TN"],["negation","A05"],["exponent","A02","b"],["exponent-decimals","SI","ia"],["progression","BS"],["log-base","DX","fa"],["scale-factor","P4","fa"],["show-labels","LW"],["max-decimals","I3","i"],["placement","BA"],["factor","R5","f"],["master","sMaster"],["blended","VG","b"],["ranged","DE","b"],["normalize","bNormalize","b"],["allow-duplicates","bAllowDuplicates","b"],["min-value-factor","fMinValueFactor","f"],["max-value-factor","fMaxValueFactor","f"]]),"linear"===i.BS&&(i.BS="lin"),"logarithmic"===i.BS&&(i.BS="log"),"log"===i.BS&&(i.FZ=Math.max(0,i.DX-2),null!==ZC._n_(i.KN)&&"v"===i.AF&&(i.KN[0]=ZC.FU(i.KN[0],i.DX),i.KN[1]=ZC.FU(i.KN[1],i.DX))),null!==ZC._n_(e=i.o["auto-fit"])&&(e.length?(i.aAutoFit[0]=ZC._b_(e[0]),i.aAutoFit[1]=ZC._b_(e[e.length-1])):i.aAutoFit[0]=i.aAutoFit[1]=ZC._b_(e)),"string"==typeof i.BY){var a=i.BY.split(":"),l=1;3===a.length&&(l=ZC._f_(a[2])),i.BY=[];for(var o=ZC._f_(a[0]);o1&&(i.BA="opposite"),null!==ZC._n_(e=i.o.markers))for(var u=0,p=e.length;u=0&&a<=1&&(a="x"===n||"y"===n?i.A.P["x"===n?"iX":"iY"]+ZC._i_(a*i.A.P["x"===n?"I":"F"]):ZC._i_(a*i.A.P[t[n]])),i[t[n]]=a}null!==ZC._n_(e=i.o.offset)&&(i.A9=i.BU=ZC._f_(ZC._p_(e))),null!==ZC._n_(e=i.o["offset-start"])&&(i.A9=ZC._f_(ZC._p_(e))),null!==ZC._n_(e=i.o["offset-end"])&&(i.BU=ZC._f_(ZC._p_(e)));var l="k"===i.AF&&!i.CL||"v"===i.AF&&i.CL?i.I:i.F;i.A9<1&&(i.A9*=l),i.BU<1&&(i.BU*=l)},Z6:function(e){var i=this;null!==ZC._n_(i.o.rules)&&(i.WQ||(i.WQ=new ZC.F3(i.A)),i.WQ.append(i.o),i.WQ.parse(),i.WQ.J7=e,i.WQ.DF()&&(i.WQ.parse(),i.DT=i.WQ.DT,i.CK=i.WQ.CK))},J4:function(){},A8E:function(){},ACB:function(){},AA1:function(){},clear:function(){},build:function(){},MU:function(){var e,i=this,t={negation:i.A05,"thousands-separator":i.RD,"decimals-separator":i.RX,decimals:i.DT,"max-decimals":i.I3,short:i.A2S,"short-unit":i.TN,exponent:i.A02,"exponent-decimals":i.SI,locale:i.G.UF};if(i.F6)switch(i.F6.o.type){case"date":t["transform-date"]=!0,null!==ZC._n_(e=i.F6.o.text)&&(i.F6.o.all=e);var n=i.V[i.A1]-i.V[i.W],a="",l="",o={},r=["msecond","second","minute","hour","day","month","year"];for(var s in r)o[r[s]]=ZC.HD["date-formats"][r[s]];l=0<=n&&n<=1e3?"msecond":1e3").length),"h"===s?(o+=e.F,r=ZC.BQ(r,ZC._a_(ZC.EK(c))*ZC.BQ(e.I,e.F))):"w"===s&&(o+=e.I,r=ZC.BQ(r,ZC._a_(ZC.EE(c))*ZC.BQ(e.I,e.F))),e.EO(),null===ZC._n_(n.o.tooltip)&&e.KC||(null!==ZC._n_(n.o.tooltip)&&(n.o.tooltip.text=n.o.tooltip.text||"%scale-value"),A.push(ZC.AP.O8(n.A.G.K,n.A.K,e))))}return{tdim:o,mdim:r,overlaps:!p}},VL:function(e,i){var t=this;if("v"===t.AF&&(t.H9!==t.AZ&&t.H9!==t.BD||(null===ZC._n_(t.o["ref-line"])||null!==ZC._n_(t.o["ref-line"])&&null===ZC._n_(t.o["ref-line"].visible))&&(t.P3.AO=!1)),t.P3.K=t.K+"-ref-line",t.V.length>0&&t.P3.AO&&!t.A.AJ["3d"]&&t.P3.B1>0){"inherit"===t.P3.o["line-color"]&&-1!==i&&(t.P3.B9=i);var n=t.H9;if("k"===t.AF&&!t.CL||"v"===t.AF&&t.CL){var a=t.AR(n);a>=t.iX&&a<=t.iX+t.I&&ZC.CN.paint(e,t.P3,[[a,t.iY],[a,t.iY+t.F]])}else{var l=t.AR(n);l>=t.iY&&l<=t.iY+t.F&&ZC.CN.paint(e,t.P3,[[t.iX,l],[t.iX+t.I,l]])}}},paint_:function(){},XW:function(){for(var e=this,i=0,t=e.Q5.length;i0&&e.Q5[i].paint()},gc:function(){ZC.AP.gc(this,["V","BY","Z","C7","D8","BR","M","G8","IB","P3","IU","J7","o","I8","J0","A","G"])}};ZC.F3=ZC.HS.CC(F3);var ZN={$i:function(e){this.b(e);var i=this;i.EH=!1,i.AF="k",i.D4=-1,i.DN=-1,i.W=-1,i.A1=-1,i.V0=1,i.DT=null,i.OO=0,i.A4M=!1,i.NV=!1,i.U8={},i.IT=[],i.iMinOffset=0,i.aForcedMinMax=[null,null,1]},zoomTo:function(e,i){var t=this;if(t.GO){null!==ZC._n_(e)?t.W=e:t.W=t.D4,null!==ZC._n_(i)?t.A1=i:t.A1=t.DN;var n=t.IT;if(n.length>0?(t.AZ=ZC.AV(n,t.V[t.W]),t.BD=ZC.AV(n,t.V[t.A1])):(t.AZ=t.V[t.W],t.BD=t.V[t.A1]),t.G.H3.C||(t.G.H3.C=t.A),t.A.H3&&null!==ZC._n_(t.A.H3.o.shared)&&ZC._b_(t.A.H3.o.shared)&&t.A.K===t.G.H3.C.K)for(var a=0,l=t.G.AG.length;a0&&e.BR.AA%180==0){for(var n=ZC.BQ(1,ZC._i_(i/20)),a=0,l=0;l||
|\n/),r=0,s=0,A=o.length;s/gi,"").replace(/<\/.+?>/gi,"").length);t+=r,a++}t=.75*t/Math.max(1,a)}else t=15;e.CL?e.EI=ZC._i_((e.F-e.A9-e.BU)/15):e.EI=ZC._i_((e.I-e.A9-e.BU)/t),e.EI=ZC.CY(e.EI,20),(e.BD-e.AZ)/e.E3+1ZC._f_(r[1])){var A=r[0];r[0]=r[1],r[1]=A}if(s<=0&&(s=1),r.length>1){for(var C=0,c=0,u=0,p=(""+s).split("."),Z=ZC._f_(r[0]);Z<=ZC._f_(r[1]);Z+=s){var h=(""+Z).split(".");p.length>1&&h.length>1&&p[1].length>0&&h[1].length>=9&&ZC._a_(h[1].length-p[1].length)>2?(C+=p[1].length,c=ZC.BQ(c,p[1].length),u++,null!==(l=ZC._n_(o.o.decimals))?o.V.push(ZC._f_(Number(Z).toFixed(ZC._i_(l)))):o.V.push(ZC._f_(ZC._fixed_(Number(Z),p[1].length))),Z=ZC._f_(ZC._fixed_(Number(Z),p[1].length))):(C+=h[1]?h[1].length:0,c=ZC.BQ(c,h[1]?h[1].length:0),u++,null!==(l=ZC._n_(o.o.decimals))?o.V.push(ZC._f_(Number(Z).toFixed(ZC._i_(l)))):o.V.push(Z))}null===ZC._n_(o.o.decimals)&&(C=Math.ceil(C/u),o.DT=ZC._a_(c-C)<=1?c:C)}}if(2===e){var d=0,f=[];0===o.V.length?(i=ZC.MAX,t=-ZC.MAX):(i=o.V[0],t=o.V[o.V.length-1]);var _,g,v=o.A.B0.A3,B=!1;for(n=0,a=v.length;no.V.length&&o.V.length>0&&!o.EH)for(n=o.V.length;n0&&(i=0),B&&t0&&(o.E3=Math.pow(10,Math.floor(ZC.FU(t-i)/Math.LN10))),o.NV||o.QL(i,t,!0),0===i&&0===t&&"0,1"===o.V.join(",")&&(o.V=[0]);else if(null!==ZC._n_(o.o["max-value"])){_=0,g=0,null!==ZC._n_(o.o["min-value"])&&(_=ZC._f_(o.o["min-value"])),g=ZC._f_(o.o["max-value"]),n=0;var x=_;if(o.F6&&null!==ZC._n_(o.F6.o.type))switch(o.F6.o.type){case"date":o.E3=o.A1Z(_,g)}else(g-_)/o.E3>1e4&&(o.E3=Math.pow(10,ZC.BQ(1,ZC._i_(ZC.FU(ZC._a_(g-_),10)-4))));for(;x0?(o.AZ=o.W,o.BD=o.A1):(o.AZ=ZC._f_(o.V[o.W]),o.BD=ZC._f_(o.V[o.A1])),o.NP){-1===ZC.AV(o.V,o.NP[0])&&ZC.PE(o.NP[0])&&null!==ZC._n_(o.V[0])&&-1!==o.SJ&&(o.NP[0]=o.V[0]+o.SJ*Math.floor((o.NP[0]-o.V[0])/o.SJ)),-1===ZC.AV(o.V,o.NP[1])&&ZC.PE(o.NP[1])&&null!==ZC._n_(o.V[0])&&-1!==o.SJ&&(o.NP[1]=o.V[0]+o.SJ*Math.ceil((o.NP[1]-o.V[0])/o.SJ));var I=ZC.AV(o.V,o.NP[0]),y=ZC.AV(o.V,o.NP[1]);o.KN=[-1===I?0:I,-1===y?o.V.length-1:y]}o.KN&&-1!==o.W&&-1!==o.A1&&((o.KN[0]>o.A1||o.KN[0]o.A1||o.KN[1]1e4&&(o=(p-u)/1e4,l=Math.ceil(ZC.FU(o)/Math.LN10),o=Math.pow(10,l)),null===ZC._n_(r.o["min-value"])&&u!==p&&(s&&A||(u-=u%o)),null===ZC._n_(r.o["max-value"])&&u!==p&&(s&&A||(p=p-p%o+(p%o==0?0:o))),l=Math.floor(ZC.FU(o)/Math.LN10);var Z,h=n[3];if(l=12&&B++,v=(v+g)%12,(31===b&&(3===v||5===v||8===v||10===v)||b>28&&1===v)&&(b=1===v?B%4==0&&B%100!=0||B%400==0?29:28:30);var m=new Date(B,v,b,ZC._i_(d[3]),ZC._i_(d[4]),ZC._i_(d[5])),E=m.getTimezoneOffset(),D=m.getTime()+6e4*(f-E);r.V.push(D),D1.005&&(M=!0,++w>ZC.CY(20,-1===r.I3?99:r.I3)&&(M=!1));else I=null!==w?ZC._f_(ZC._fixed_(Z,Math.max(w,K))):ZC._f_(ZC._fixed_(Z,K));r.V.push(I)}}else for(o=ZC._f_((i-e)/r.V0),a=0;a<=r.V0;a++)Z=e+o*a,h<0&&(Z=ZC._f_(Z.toFixed(-h))),r.V.push(Z);r.W=0,r.A1=r.V.length-1,r.D4=0,r.DN=r.V.length-1,r.AZ=ZC._f_(r.V[r.W]),r.BD=ZC._f_(r.V[r.A1])},A1Z:function(e,i,t){void 0===t&&(t=!1);var n=i-e,a=Math.floor(ZC.FU(n)/Math.LN10);return null===ZC._n_(this.o.step)||t?a<=3?1:4===a?1e3:5===a?1e4:6===a?2e4:7===a?3e4:8===a?6e4:9===a?6e5:10===a?12e5:11===a?18e5:36e5:this.E3},parse:function(){this.b()},clear:function(){this.b()},build:function(){this.b()},paint:function(){this.b(),null!==ZC._n_(this.o.values)&&(this.TE=!0)}};ZC.ZN=ZC.F3.CC(ZN);var WB={$i:function(e){this.b(e);var i=this;i.AF="v",i.W=-1,i.A1=-1,i.V0=0,i.DT=null,i.KS="normal",i.JN=[],i.bExtendMinValue=!0,i.bExtendMaxValue=!0},zoomTo:function(e,i){var t,n,a=this;if(a.GO){if(null!==ZC._n_(e)?a.AZ=e:a.AZ=a.FS,null!==ZC._n_(i)?a.BD=i:a.BD=a.GV,("piano"===a.A.AF||a.Q1)&&(a.AZ=ZC._i_(a.AZ),a.BD=ZC._i_(a.BD),a.AZ===a.BD&&(a.AZ=Math.floor(a.AZ),a.BD=a.AZ+a.E3)),a.QL(a.AZ,a.BD,!1),"lin"!==a.BS&&"log"!==a.BS){var l=ZC.evalFn(a.BS,window);l&&l.valueToCoord&&l&&l.values&&(a.V=l.values.call(a,{x:a.iX,y:a.iY,width:a.I,height:a.F,offsetStart:a.A9,offsetEnd:a.BU,inversed:a.CL,mirrored:a.AW,minValue:a.AZ,maxValue:a.BD,minValue_:a.FS,maxValue_:a.GV}),a.W=0,a.A1=a.V.length-1)}var o=a.A.BW("v");for(t=0;tZC._f_(g[1])){var v=g[0];g[0]=g[1],g[1]=v}if(r<=0&&(r=1),null!==ZC._n_(s.o["fixed-items"])&&(r=(ZC._f_(g[1])-ZC._f_(g[0]))/ZC.BQ(1,ZC._i_(s.o["fixed-items"])-1),s.V0=ZC.BQ(1,ZC._i_(s.o["fixed-items"])-1)),g.length>1){for(var B=0,b=0,m=0,E=(""+r).split("."),D=ZC._f_(g[0]);D<=ZC._f_(g[1]);D+=r)a=(""+D).split("."),E.length>1&&a.length>1&&E[1].length>0&&a[1].length>=9&&ZC._a_(a[1].length-E[1].length)>2?(B+=E[1].length,b=ZC.BQ(b,E[1].length),m++,s.V.push(ZC._f_(ZC._fixed_(Number(D),E[1].length)))):(B+=ZC._i_(a[1]?a[1].length:0),b=ZC.BQ(b,a[1]?a[1].length:0),m++,s.V.push(D));D-ZC._f_(g[1])!=0&&ZC._a_(D-ZC._f_(g[1]))/r<1e-8&&s.V.push(ZC._f_(g[1])),null===ZC._n_(s.o.decimals)&&(B=(a=(""+r).split("."))[1]?a[1].length:Math.ceil(B/m),s.DT=ZC._a_(b-B)<=1?b:B)}}s.W=0,s.A1=s.V.length-1,s.E3=r,u.length>1?(c=ZC.Y5(s.V,!0),s.AZ=ZC.Y5(s.V),s.BD=ZC.A1V(s.V)):(s.AZ=s.V[0],s.BD=s.V[s.V.length-1]),"log"===s.BS&&(0===s.AZ&&(C=Math.floor(ZC.FU(c,s.DX)),s.AZ=Math.pow(s.DX,Math.min(-1,C))),s.QL(ZC.FU(s.AZ,s.DX),ZC.FU(s.BD,s.DX),!1))}if(2===e){var F={};null===ZC._n_(s.o.values)&&(s.V=[],l=ZC.MAX,o=-ZC.MAX);var K=[],x=s.A.B0.A3;for(t=0,n=x.length;t=0||!y?F[x[t].E0][X]=[x[t].S[M].AB,0]:F[x[t].E0][X]=[0,x[t].S[M].AB]:x[t].S[M].AB>=0||!y?F[x[t].E0][X][0]+=x[t].S[M].AB:F[x[t].E0][X][1]+=x[t].S[M].AB,x[t].S[M].AB>=0||!y?x[t].S[M].CQ=F[x[t].E0][X][0]:x[t].S[M].CQ=F[x[t].E0][X][1],null===ZC._n_(s.o.values)&&K.push(F[x[t].E0][X][0]+L,F[x[t].E0][X][1]+L);else if(null===ZC._n_(s.o.values)){K.push(x[t].S[M].AB+L),0!==L&&K.push(L);for(var G=0,P=x[t].S[M].DS.length;G0&&(c=ZC.Y5(K,!0),l=ZC.Y5(K),o=ZC.A1V(K)),0!==s.V.length||l!==Number.MAX_VALUE&&o!==Number.MIN_VALUE||(s.V=[0,1],l=0,o=1),null===ZC._n_(s.o.values))if(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.BS&&(l=0),null!==ZC._n_(s.o["max-value"])&&(o=ZC._f_(s.o["max-value"])),l===ZC.MAX&&o===-ZC.MAX)s.W=0,s.A1=0,s.AZ=0,s.BD=0;else if("log"===s.BS)0===l&&(C=Math.floor(ZC.FU(c,s.DX)),l=Math.pow(s.DX,Math.min(-1,C))),s.QL(ZC.FU(l,s.DX),ZC.FU(o,s.DX),!1);else if("lin"===s.BS)s.QL(l,o,!0);else{s.QL(l,o,!0);var O=ZC.evalFn(s.BS,window);O&&O.values&&(s.V=O.values.call(s,{x:s.iX,y:s.iY,width:s.I,height:s.F,offsetStart:s.A9,offsetEnd:s.BU,inversed:s.CL,mirrored:s.AW,minValue:l,maxValue:o,minValue_:l,maxValue_:o}),s.W=0,s.A1=s.V.length-1)}}2===e&&(-1===s.FS&&-1===s.GV&&(s.FS=s.AZ,s.GV=s.BD),-1===s.SJ&&(s.SJ=s.E3)),"auto"===s.o["min-value"]&&null===ZC._n_(s.o["ref-value"])&&(s.H9=s.AZ),0===s.V0&&(s.V0=ZC._i_((s.BD-s.AZ)/s.E3));var S=s.G.E["graph"+s.A.L+".zoom"];if(null===ZC._n_(s.G.E.preservezoom)||s.G.E.preservezoom){var N=1===s.L?"":"-"+s.L;2===e&&void 0!==S&&null!==ZC._n_(S["ymin"+N])&&null!==ZC._n_(S["ymax"+N])&&(ZC.DQ(S["ymin"+N],s.AZ,s.BD)||(S["ymin"+N]=s.AZ),ZC.DQ(S["ymax"+N],s.AZ,s.BD)||(S["ymax"+N]=s.BD),s.KN=[S["ymin"+N],S["ymax"+N]])}else s.G.E["graph"+s.A.L+".zoom"]={};s.KN&&(s.A.ZE=!0)},QL:function(e,i,t){var n,a,l,o,r=this;e-=r.fMinValueFactor*(i-e),i+=r.fMaxValueFactor*(i-e),"piano"!==r.A.AF&&!r.Q1&&r.JN.length>1&&(e=0),r.TN.length&&null===ZC._n_(r.o["scale-factor"])&&(l=Math.floor(ZC.FU(ZC._a_(i),ZC._f_(r.TN[0]))),r.P4=Math.pow(ZC._f_(r.TN[0]),l)/Math.pow(1e3,l),r.E["max-power"]=l);var s=(o=r.F6&&"date"===r.F6.o.type?ZC.AQ.WJ(e,i,"lin"===r.BS?r.E3:null,r.P4,r.bNormalize,r.EI):ZC.AQ.WJ(e,i,"lin"===r.BS?r.o.step:null,r.P4,r.bNormalize,r.EI))[0],A=o[1],C=!1;a=Math.floor(o[0]),"log"===r.BS&&(l=Math.ceil(o[1]),o[1]-o[0]>=.5?C=!0:o=ZC.AQ.WJ(Math.pow(r.DX,o[0]),Math.pow(r.DX,o[1]),null,r.P4,r.bNormalize));var c,u,p=o[0],Z=o[1],h=o[2];if(null!==ZC._n_(r.o["fixed-items"])&&(h=(Z-p)/ZC.BQ(1,ZC._i_(r.o["fixed-items"])-1)),r.Q1&&i===e&&(i+h<=r.BD?i+=h:e-=h),1!==r.R5&&(p*=r.R5,Z*=r.R5,h*=r.R5),null!==ZC._n_(r.E["o-decimals"])?r.DT=r.E["o-decimals"]:r.E["o-decimals"]=r.DT,null===ZC._n_(r.o.decimals))if("log"===r.BS&&C)r.DT=a<0?null:0;else if(r.bNormalize)r.A2S||(r.DT=0);else{var d=ZC.FU(i-e,10);r.DT=o[3],r.DT>9&&(d>=1?r.DT=1:d>0&&d<1&&(r.DT=2))}var f,_,g,v=!0;if(C){var B,b;a=Math.floor(p),l=Math.ceil(Z),f=Math.pow(r.DX,e),_=Math.pow(r.DX,i),r.V=[];var m=[0,2,5];for(b=[0,1,2,3,4,5,6,7,8,9,10],n=a;n<=l;n++){var E=o[3];if(E=n<0?Math.max(ZC._a_(n),E):0,n===l)for(B=0;B=p&&u<=Z&&r.V.push(u):r.V.push(u),c+=h,c=ZC._f_(c.toFixed(o[3]))}while(c<=Z);v&&(r.DT+=1)}"log"===r.BS&&(s=ZC.FU(p,r.DX),A=ZC.FU(Z,r.DX),r.V.push(p),r.V.push(Z),r.V.sort(function(e,i){return e-i}))}r.E3=h,r.W=0,r.A1=r.V.length-1,t?(r.AZ=r.bExtendMinValue?s:e,r.BD=r.bExtendMaxValue?A:i):(r.AZ=e,r.BD=i)},parse:function(){var e=this;e.assign_a([["stack-type","KS"],["extend-min-value","bExtendMinValue","b"],["extend-max-value","bExtendMaxValue","b"]]),(e.A.CF&&"100%"===e.A.KS||"100%"===e.KS)&&null===ZC._n_(e.o.values)&&(e.o.values="0:100:20",e.o.format="%v%"),this.b()},clear:function(){this.b()},build:function(){this.b()},paint:function(){this.b(),null===ZC._n_(this.E.decimals)&&(this.E.decimals=null!==ZC._n_(this.DT)?this.DT:-1),null!==ZC._n_(this.o.values)&&(this.TE=!0)}};ZC.WB=ZC.F3.CC(WB);var Q8={$i:function(e){this.b(e)},parse:function(){this.b()},J4:function(){var e=this;e.A1===e.W?e.AC=e.I-e.A9-e.BU:e.AC=(e.I-e.A9-e.BU)/(e.A1-e.W+(e.DE?1:0))},AA1:function(e){this.b(e),this.J4()},zoomTo:function(e,i){this.b(e,i);this.J4()},clear:function(){},build:function(){this.b()},NI:function(e){var i,t=this;i=t.AW?(t.iX+t.I-t.A9-e)/(t.I-t.A9-t.BU):(e-t.iX-t.A9)/(t.I-t.A9-t.BU);var n=t.AZ,a=t.BD;null!==ZC._n_(t.aForcedMinMax[0])&&t.aForcedMinMax[0]!==n&&(n=t.aForcedMinMax[0]),null!==ZC._n_(t.aForcedMinMax[1])&&t.aForcedMinMax[1]!==a&&(a=t.aForcedMinMax[1]),"log"===t.BS&&(n=ZC.FU(n,t.DX),a=ZC.FU(a,t.DX));var l=n+ZC._f_((a-n)*i);return"log"===t.BS&&(l=Math.pow(t.DX,l)),l},OI:function(e,i,t){var n,a,l,o=this;void 0===t&&(t=!1);var r=o.DE?o.AC:0;l=o.AW?(o.iX+o.I-e-o.A9-r/2)/(o.I-o.A9-o.BU-r):(e-o.iX-o.A9-r/2)/(o.I-o.A9-o.BU-r);var s,A=!1;if(i)for(s in i.K7){A=!0;break}if(i&&!o.NV&&A){var C=o.V[o.W];"string"==typeof C&&(C=ZC.AV(o.IT,C)),"log"===o.BS&&(C=ZC.FU(C,o.DX));var c=o.V[o.A1];"string"==typeof c&&(c=ZC.AV(o.IT,c)),"log"===o.BS&&(c=ZC.FU(c,o.DX));var u=C+ZC._f_((c-C)*l);"log"===o.BS&&(u=Math.pow(o.DX,u));var p=ZC.MAX;for(s in a=null,i.K7)(n=Math.abs(s-u))i.A2H){var Z=Math.ceil((c-C)/(o.I-o.A9-o.BU));if(i.V.length<2&&(Z*=100),p>Z)return null}return a}var h=o.W,d=o.A1;return o.EH&&(null!==ZC._n_(n=o.V[h])&&(h=n),null!==ZC._n_(n=o.V[d])&&(d=n)),"log"===o.BS&&(h=ZC.FU(h,o.DX),d=ZC.FU(d,o.DX)),a=t?o.DE?h+(d-h+1)*l:h+(d-h)*l:(o.DE,o.W+(o.A1-o.W)*l),"log"===o.BS?(a=Math.pow(o.DX,a),a=Math.round(a)-1):(a=ZC._i_(a),a=ZC.BQ(0,a),a=ZC.CY(o.DN,a)),a},IE:function(e){var i=this;i.W,i.A1;return i.EH&&!i.NV&&(i.AZ,i.BD),"log"===i.BS&&(e=ZC.FU(e+1,i.DX)),i.AW?i.iX+i.I-i.A9-(e-i.W+(i.DE?1:0))*i.AC+(i.DE?i.AC/2:0):i.iX+i.A9+(e-i.W)*i.AC+(i.DE?i.AC/2:0)},AR:function(e){var i,t,n,a,l,o=this;if("log"===o.BS&&(0===e&&(e=o.AZ),e=ZC.FU(e,o.DX)),o.NV){var r=o.U8[e];return o.IE(r)}if(-1!==(i=ZC.AV(o.IT,e)))return o.IE(i);if(!o.A4M&&(o.EH||o.F6&&"date"===o.F6.o.type)){a=o.V[o.W],l=o.V[o.A1];var s=o.I;return"log"===o.BS&&(a=ZC.FU(a,o.DX),l=ZC.FU(l,o.DX),o.W===o.D4&&o.A1===o.DN&&(s=(o.A1-o.W)*o.AC+o.A9+o.BU)),l===a?t=0:(n=l-a,t=(s-o.A9-o.BU-(o.DE?o.AC:0))/n),o.AW?o.iX+s-o.A9-(e-a)*t-(o.DE?o.AC/2:0)+o.iMinOffset:o.iX+o.A9+(e-a)*t+(o.DE?o.AC/2:0)-o.iMinOffset}return a=o.AZ,l=o.BD,"log"===o.BS&&(a=ZC.FU(a,o.DX),l=ZC.FU(l,o.DX)),l===a?t=0:(n=l-a+(o.DE?1:0),t=(o.I-o.A9-o.BU)/n),o.AW?o.iX+o.I-o.A9-(e-a)*t-(o.DE?o.AC/2:0):o.iX+o.A9+(e-a)*t+(o.DE?o.AC/2:0)},paint:function(){var e,i,t,n,a,l,o,r,s,A,C,c,u,p,Z,h,d,f=this;f.b(),null!==ZC._n_(f.A.A.E[f.A.K+"-"+f.BF+"-feed-offset-start"])&&(f.A9=f.A.A.E[f.A.K+"-"+f.BF+"-feed-offset-start"]),"bubble"!==f.A.AF&&"scatter"!==f.A.AF||(-1===f.A9&&-1===f.BU||1===f.V.length)&&(f.A9=f.BU=f.I/(f.V.length+1),f.J4());var _=f.BD,g=f.AZ;if("log"===f.BS&&(null!==ZC._n_(f.o["max-value"])&&(_=ZC._f_(f.o["max-value"]),f.aForcedMinMax[1]=_),null!==ZC._n_(f.o["min-value"])&&(g=ZC._f_(f.o["min-value"]),f.aForcedMinMax[0]=g),f.iMinOffset=0,(_!==f.BD||g!==f.AZ)&&f.W===f.D4&&f.A1===f.DN&&1===f.aForcedMinMax[2])){f.aForcedMinMax[2]=0;var v=f.AC;f.AC=(f.I-f.A9-f.BU)/(ZC.FU(_,f.DX)-ZC.FU(g,f.DX))-.1;var B=ZC.FU(g,f.DX)-ZC.FU(f.AZ,f.DX),b=ZC.FU(f.BD,f.DX)-ZC.FU(_,f.DX);f.iMinOffset=B*(f.AC-v)*(f.V.length-1)/(b+B)}var m=f.A0Q(),E=0,D=1,F=1,K={};for(i=0,t=f.A.BO.length;i0;z--)f.iStepMultiplier>z&&f.A1-f.W<=z*f.iStepMultiplier&&(k=z);S*=k,N*=k;var Q,V,J,T=0,H=f.AC*S/(f.FZ+1),R=f.AW?f.iX+f.BU:f.iX+f.A9,W=f.AW?f.iX+f.I-f.A9:f.iX+f.I-f.BU;if(null===ZC._n_(y)&&(y=a),l=f.G.usc()?f.G.mc():ZC.AM(f.A.K+"-scales-ml-0-c"),r=ZC.Q.ED(l,f.G.AD),o=f.G.usc()?f.G.mc():ZC.AM(f.A.K+"-scales-bl-0-c"),s=ZC.Q.ED(o,f.G.AD),"inherit"===f.o["line-color"]&&-1!==m&&(f.B9=m),f.A.AJ["3d"]){if((Z=ZC.DK.DD(f,f.A,f.iX-ZC.AL.E1,f.iX-ZC.AL.E1+f.I,a-ZC.AL.E2,a-ZC.AL.E2,-1,ZC.AL.FD+1,"x")).K=f.K+"-line",f.A.EM.true3d&&(f.A.EM["x-angle"]>0?Z.MG=[1===f.L?-100:100,1,1]:Z.MG=[1===f.L?100:-100,1,1]),f.A.CM.add(Z),null!==ZC._n_(f.o.axis)){var U=new ZC.CZ(f);U.append(f.o.axis),U.parse(),U.A0=U.AE=U.B9,(Z=ZC.DK.DD(U,f.A,f.iX-ZC.AL.E1,f.iX-ZC.AL.E1+f.I,a-ZC.AL.E2,a-ZC.AL.E2,-U.B1/2,U.B1/2,"x")).K=f.K+"-axis",f.A.CM.add(Z)}}else{C=[[f.iX-1,O],[f.iX+f.I+1,O]];var j=f.K;f.K+="-line",ZC.CN.paint(r,f,C),f.K=j}if(f.V.length>0&&f.D8.AO){var q=null===ZC._n_(f.D8.o["offset-start"])?0:ZC._i_(f.D8.o["offset-start"]),$=null===ZC._n_(f.D8.o["offset-end"])?0:ZC._i_(f.D8.o["offset-end"]);if(f.D8.o.items&&f.D8.o.items.length>0&&!f.A.AJ["3d"])for(h=new ZC.HS(f),i=f.W;i0)for(f.GT=0,i=f.W;i<=f.A1+(f.DE?1:0);i++)if(f.K8=i,i===f.W||i===f.A1+(f.DE?1:0)||(i-f.W)%S==0){(f.D8.E7.length>0||i===f.W)&&((p=new ZC.CZ(f)).Z=p.C7=o,p.copy(f.D8),p.J7=Xe,p.DF()&&p.parse()),C=[],c=i-f.W,u="log"===f.BS?f.AR(f.V[i]):f.AW?f.iX+f.I-f.A9-c*f.AC:f.iX+f.A9+c*f.AC;var ee=f.iY+q,ie=f.F-q-$;if(p.AO)if(f.A.AJ["3d"]){var te=new ZC.CZ(f);te.copy(p),null!==ZC._n_(f.o["scale-z"])&&null!==ZC._n_(e=f.o["scale-z"].guide)&&(te.append(e),te.parse()),te.A0=te.AE=te.B9,Z=ZC.DK.DD(te,f.A,u-ZC.AL.E1-te.B1/2,u-ZC.AL.E1+te.B1/2,a-ZC.AL.E2,a-ZC.AL.E2,0,ZC.AL.FD,"z"),f.A.CM.add(Z),p.A0=p.AE=p.B9,(Z=ZC.DK.DD(p,f.A,u-ZC.AL.E1-p.B1/2,u-ZC.AL.E1+p.B1/2,ee-ZC.AL.E2,ee+ie-ZC.AL.E2,ZC.AL.FD+2,ZC.AL.FD+2,"y")).K=f.K+"-guide-"+i,f.A.CM.add(Z)}else C.push([u,ee],[u,ee+ie]),p.K=f.K+"-guide-"+i,ZC.CN.paint(s,p,C);f.GT++}}if(f.V.length>0&&f.G8.AO&&!f.A.AJ["3d"]&&f.G8.o.items&&f.G8.o.items.length>0)for(h=new ZC.HS(f),i=f.W;i0)for(i=f.W;i0&&f.IU.AO){switch(f.IU.o.placement){case"inner":break;case"outer":T+=L;break;default:T+=L/2}if(!zingchart.DEV.SMARTDATELABELS||!f.F6||"date"!==f.F6.o.type)for(f.GT=0,i=f.W;i<=f.A1+(f.DE?1:0);i++)if(i===f.W||i===f.A1+(f.DE?1:0)||(i-f.W)%S==0){f.K8=i;var ne=L;if(C=[],c=i-f.W,(f.IU.E7.length>0||i===f.W)&&((p=new ZC.DR(f)).copy(f.IU),"inherit"===f.IU.o["line-color"]&&-1!==m&&(p.B9=m),p.J7=Xe,p.DF()&&p.parse(),p.AI>1&&(ne=p.AI)),u="log"===f.BS?f.AR(f.V[i]):f.AW?f.iX+f.I-f.A9-c*f.AC:f.iX+f.A9+c*f.AC,ZC.DQ(u,R,W)){switch(p.o.placement){case"ref-auto":C.push([u,y+ne/2],[u,y-ne/2]);break;case"ref-top":C.push([u,y-ne],[u,y]);break;case"ref-bottom":C.push([u,y+ne],[u,y]);break;case"inner":C.push([u,a-(I?ne:-ne)],[u,a]);break;case"outer":C.push([u,a],[u,a+(I?ne:-ne)]);break;default:C.push([u,a+ne/2],[u,a-ne/2])}if(p.AO){for(V=ZC._i_(p.o["offset-x"]||"0"),J=ZC._i_(p.o["offset-y"]||"0"),Q=0;Q0&&f.FZ>0&&f.IB.AO&&!f.A.AJ["3d"])for(i=f.W;i0&&f.BR.AO)if(zingchart.DEV.SMARTDATELABELS&&f.F6&&"date"===f.F6.o.type){var be=f.getOptimalDateInterval(f.V[f.A1]-f.V[f.W]),me=be[0];de=be[1];var Ee=be[2],De=be[3];ge=be[4];var Fe=Ee*Math.ceil(f.V[f.W]/Ee),Ke=Ee*Math.floor(f.V[f.A1]/Ee),xe="";f.GT=0;var Ie=!0;for(i=Fe;i<=Ke;i+=Ee){Ie=!0;var ye=ZC.AP.YG(i,me,f.A.UJ,f.A.NE);if(ye!==xe){switch(De){case"yr":ge>15&&(Ie=ZC._i_(ye)%2==0);break;case"mon":ge>15&&(Ie=ZC._i_(ye)%3==0);break;case"day":ge>45?Ie=1===ZC._i_(ye)||15===ZC._i_(ye):ge>30?Ie=1===ZC._i_(ye)||10===ZC._i_(ye)||20===ZC._i_(ye):ge>15&&(Ie=1===ZC._i_(ye)||10===ZC._i_(ye)||15===ZC._i_(ye)||20===ZC._i_(ye)||25===ZC._i_(ye));break;case"hr":ge>45?Ie=ZC._i_(ye)%12==0:ge>30?Ie=ZC._i_(ye)%6==0:ge>15&&(Ie=ZC._i_(ye)%3==0);break;case"min":case"sec":ge>45?Ie=ZC._i_(ye)%30==0:ge>30?Ie=ZC._i_(ye)%10==0:ge>15&&(Ie=ZC._i_(ye)%5==0)}Ie&&(Le(i,!0),xe=ye)}}he.AO&&(he.K=f.K+"-ticks",ZC.CN.paint(r,he,Ze))}else for(f.GT=0,Le(f.W),f.GT=f.A1-f.W,Le(f.A1),f.GT=1,i=f.W+1;i0&&ZC.AM(f.A.A.K+"-map")&&(ZC.AM(f.A.A.K+"-map").innerHTML+=Be.join("")),null!==ZC._n_(f.o.transform)&&"date"===f.o.transform.type&&f.paintTransformDate()}function Xe(e){return e=(e=(e=(e=(e=(e=e.replace(/%scale-last-position/g,f.A1-f.W)).replace(/(%c)|(%scale-position)/g,f.GT)).replace(/(%i)|(%scale-index)/g,f.K8)).replace(/(%v)|(%scale-value)/g,null!==ZC._n_(f.V[f.K8])?f.V[f.K8]:"")).replace(/(%l)|(%scale-label)/g,null!==ZC._n_(f.BY[f.K8])?f.BY[f.K8]:"")).replace(/%scale-day-of-week/g,ZC.AP.YG(f.V[f.K8],"%w",f.A.UJ,f.A.NE))}function Le(e,i,t,n){var l;if(f.K8=e,c=e-f.W,(f.BR.E7.length>0||e===f.W||!Ce||f.BR.HW||t)&&(Ce=new ZC.DP(f)),Ce.copy(f.BR),Ce.GM=f.K+"-item "+f.A.K+"-scale-item zc-scale-item",Ce.K=f.A.K+"-"+f.BF.replace(/\-/g,"_")+"-item_"+(n?"c"+n:e),Ce.E["p-width"]=f.AC,f.CK=ue,f.DT=pe,t||f.Z6(Xe),l=i?ZC.AP.YG(e,de,f.A.UJ,f.A.NE):n||f.FR(e,null,null),!t&&f.BR.HW){var o=f.A.H0();ZC._cp_({index:e,cnt:c,text:l},o),f.H5(f.BR,Ce,null,o,f.BR.MN)}if(!(null!==ZC._n_(f.LW)&&-1===ZC.AV(f.LW,l)||(Ce.AN=l,Ce.Z=Ce.C7=f.G.usc()?f.G.mc():ZC.AM(f.A.K+"-scales-ml-0-c"),Ce.IO=f.G.usc()?ZC.AM(f.G.K+"-main"):ZC.AM(f.G.K+"-text"),Ce.E.nodeidx=e,Ce.parse(),f.BR.A25&&f.BR.AA%180==0&&(Ce.o.width=ZC._i_(.9*f.AC),Ce.parse()),"inherit"!==f.BR.o["font-color"]&&"inherit"!==f.BR.o.color||-1===m||(Ce.C2=m),t||(Ce.J7=Xe,Ce.DF()&&Ce.parse()),Ce.o["auto-fit"]&&(Ce.I=ZC._i_(f.AC)),i?(u=f.AR(e),Ce.iX=u-Ce.I/2-(f.DE?f.AC/2:0)):t?(u=f.AR(e),Ce.iX=u-Ce.I/2):"log"===f.BS?(u=f.AR(f.V[e]),Ce.iX=u-Ce.I/2+(f.DE?f.AC/2:0)*(f.AW?-1:1)):f.AW?(u=f.iX+f.I-f.A9-c*f.AC,Ce.iX=u-Ce.I/2-(f.DE?f.AC/2:0)):(u=f.iX+f.A9+c*f.AC,Ce.iX=u-Ce.I/2+(f.DE?f.AC/2:0)),uf.iX+f.I+1))){if(f.A.B7&&f.A.B7.BY&&f.A.B7.HZ){for(var r=!1,s=0;s10*ZC.SEC&&(o=2),e>30*ZC.SEC&&(o=5),e>60*ZC.SEC&&(o=10)):2*ZC.MIN10*ZC.MIN&&(o=2),e>30*ZC.MIN&&(o=5),e>60*ZC.MIN&&(o=10)):2*ZC.HR6*ZC.HR&&(o=2),e>12*ZC.HR&&(o=4),e>24*ZC.HR&&(o=6)):2*ZC.DAY12*ZC.DAY&&(l=[1,5,9,13,17,21,25,29]),e>24*ZC.DAY&&(l=[1,6,11,16,21,26])):2*ZC.MON9*ZC.MON&&(l=[1,4,7,10])):(t="%Y",n="%Y",e>9*ZC.YR&&(o=3),e>16*ZC.YR&&(o=4),e>25*ZC.YR&&(o=5))}(a.V[a.A1]-a.V[a.W]);var r=null,s=[],A=!1,C=!1;function c(e){var C,c;if(null!==ZC._n_(a.V[e])&&""!==a.V[e]){a.NV&&e!==a.W&&e!==a.A1&&null!==ZC._n_(a.V[e-1])&&""!==a.V[e-1]&&null!==ZC._n_(a.V[e])&&a.V[e];var u=ZC.AP.YG(a.V[e],t,a.A.UJ,a.A.NE);if(u!==r&&ZC._i_(u)%o==0&&(0===l.length||-1!==ZC.AV(l,ZC._i_(u)))){var p,Z=!0,h=e-a.W;C=a.AW?a.iX+a.I-a.A9-h*a.AC:a.iX+a.A9+h*a.AC+(a.DE?a.AC/2:0);var d=new ZC.DP(a);a.G.B6.load(d.o,"graph.SCALE.transform[date].item"),null!==ZC._n_(p=a.o.transform.item)&&d.append(p),d.GM=a.K+"-item "+a.A.K+"-scale-item zc-scale-item",d.K=a.K+"-date-item-"+e;var f=ZC.AP.YG(a.V[e],n,a.A.UJ,a.A.NE);d.AN=f,d.Z=d.C7=a.G.usc()?a.G.mc():ZC.AM(a.A.K+"-scales-ml-0-c"),d.IO=a.G.usc()?ZC.AM(a.G.K+"-main"):ZC.AM(a.G.K+"-text"),d.parse(),a.AW?d.iX=C-d.I/2-(a.DE?a.AC/2:0):d.iX=C,d.iY=a.iY,a.A.AJ["3d"]&&(a.A.O4(),c=new ZC.CD(a.A,d.iX+d.I/2-ZC.AL.E1,d.iY+d.F/2-ZC.AL.E2,0),d.iX=c.EB[0]-d.I/2,d.iY=c.EB[1]-d.F/2);var _=[d.iX+d.BK,d.iY+d.BJ,d.I,d.F];if(d.AA%180==90&&(_=[d.iX+d.BK+d.I/2-d.F/2,d.iY+d.BJ+d.F/2-d.I/2,d.F,d.I]),a.A.B7&&a.A.B7.HZ){for(var g=!1,v=0;v=a.iX&&d.iX+d.I<=a.iX+a.I&&a.A.B7.BY.push({x:ZC._i_(d.iX),text:d.AN})}if(d.AO&&A){if(Z=!0,!a.A0F){if(e===a.W||e===a.A1)Z=!0;else for(var B=0,b=s.length;Ba.iX+a.BK+a.I&&(Z=!1)}if(Z){s.push(_),d.paint(),d.EO();var m=new ZC.CZ(a);null!==ZC._n_(p=a.o.transform.guide)&&m.append(p),m.B1=1,m.B9="#ccc",m.parse();var E=[];if(E.push([C,a.iY],[C,a.iY+a.F]),a.A.AJ["3d"]){a.A.O4();for(var D=0,F=E.length;D0&&(A=!1,null!==ZC._n_(e=a.o.transform.item)&&(A=!(null!==ZC._n_(e.visible)&&!ZC._b_(e.visible))),C=!1,a.A.B7&&a.A.B7.BY&&(C=!0),A||C)){c(a.W),c(a.A1);for(var u=a.W+1;u0;S--)g.iStepMultiplier>S&&g.A1-g.W<=S*g.iStepMultiplier&&(O=S);P*=O,G*=O;var N=0,k=g.AC*P/(g.FZ+1);if(a=g.G.usc()?g.G.mc():ZC.AM(g.A.K+"-scales-ml-0-c"),l=ZC.Q.ED(a,g.G.AD),o=g.G.usc()?g.G.mc():ZC.AM(g.A.K+"-scales-bl-0-c"),r=ZC.Q.ED(o,g.G.AD),g.TE||g.YL||null!==ZC._n_(g.A.o[g.BF])){if("inherit"===g.o["line-color"]&&-1!==v&&(g.B9=v),g.A.AJ["3d"]){if((u=ZC.DK.DD(g,g.A,n-ZC.AL.E1,n-ZC.AL.E1,g.iY-ZC.AL.E2,g.iY-ZC.AL.E2+g.F,-1,ZC.AL.FD+1,"y")).K=g.K+"-line",g.A.EM.true3d&&(g.A.EM["y-angle"]>0?u.MG=[1===g.L?-100:100,1,1]:u.MG=[1===g.L?100:-100,1,1]),g.A.CM.add(u),null!==ZC._n_(g.o.axis)){var z=new ZC.CZ(g);z.append(g.o.axis),z.parse(),z.A0=z.AE=z.B9,(u=ZC.DK.DD(z,g.A,n-ZC.AL.E1,n-ZC.AL.E1,g.iY-ZC.AL.E2,g.iY-ZC.AL.E2+g.F,-z.B1/2,z.B1/2,"y")).K=g.K+"-axis",g.A.CM.add(u)}}else{A=[[L,g.iY+g.F],[L,g.iY]];var Q=g.K;g.K+="-line",ZC.CN.paint(l,g,A),g.K=Q}var V=0,J=0,T=[],H=[];if(g.TE||g.YL){if(g.V.length>0&&g.D8.AO){var R=null===ZC._n_(g.D8.o["offset-start"])?0:ZC._i_(g.D8.o["offset-start"]),W=null===ZC._n_(g.D8.o["offset-end"])?0:ZC._i_(g.D8.o["offset-end"]);if(g.D8.o.items&&g.D8.o.items.length>0&&!g.A.AJ["3d"])for(g.GT=0,p=new ZC.HS(g),i=g.W;i0)for(g.GT=0,i=g.W;i<=g.A1+(g.DE?1:0);i++)if(g.K8=i,i===g.W||i===g.A1||i%P==0){(g.D8.E7.length>0||i===g.W||"log"===g.BS)&&((c=new ZC.CZ(g)).Z=c.C7=o,"log"===g.BS?ZC.AQ._int_(ZC.FU(g.V[i],g.DX))?c.copy(g.D8):c.copy(g.G8):c.copy(g.D8),c.J7=Ze,c.DF()&&c.parse()),A=[],C=i-g.W;var j=g.iX+R,q=g.I-R-W;if(s=(g.BS,g.AR(g.V[i])),c.AO)if(g.A.AJ["3d"]){var $=new ZC.CZ(g);$.copy(c),null!==ZC._n_(g.o["scale-z"])&&null!==ZC._n_(e=g.o["scale-z"].guide)&&($.append(e),$.parse()),$.A0=$.AE=$.B9,u=ZC.DK.DD($,g.A,n-ZC.AL.E1,n-ZC.AL.E1,s-ZC.AL.E2-$.B1/2,s-ZC.AL.E2+$.B1/2,0,ZC.AL.FD,"y"),g.A.CM.add(u),c.A0=c.AE=c.B9,(u=ZC.DK.DD(c,g.A,j-ZC.AL.E1,j-ZC.AL.E1+q,s-ZC.AL.E2-c.B1/2,s-ZC.AL.E2+c.B1/2,ZC.AL.FD+2,ZC.AL.FD+2,"x")).K=g.K+"-guide-"+i,g.A.CM.add(u)}else A.push([j,s],[j+q,s]),c.K=g.K+"-guide-"+i,ZC.CN.paint(r,c,A);g.GT++}}if(g.V.length>0&&g.G8.AO&&k>2&&!g.A.AJ["3d"]){if(g.G8.o.items&&g.G8.o.items.length>0)for(p=new ZC.HS(g),i=g.W;i0&&"log"!==g.BS)for(i=g.W;i0&&g.IU.AO){switch(g.IU.o.placement){case"inner":break;case"outer":N+=M;break;default:N+=M/2}for(g.GT=0,d=ZC.AV(g.V,0),i=g.W;i<=g.A1+(g.DE?1:0);i++){g.K8=i;var ne=-1;if((i===g.W||i===g.A1||i%P==0||ZC._b_(g.o["show-zero"])&&i===d)&&(A=[],C=i-g.W,(g.IU.E7.length>0||i===g.W||"log"===g.BS)&&(c=new ZC.CZ(g),"log"===g.BS?ZC.AQ._int_(ZC.FU(g.V[i],g.DX))?c.copy(g.IU):(c.copy(g.IB),ne=M,M=Y):c.copy(g.IU),"inherit"===g.IU.o["line-color"]&&-1!==v&&(c.B9=v),c.J7=Ze,c.DF()&&c.parse()),s=(g.BS,g.AR(g.V[i])),ZC.DQ(s,g.A.P.iY,g.A.P.iY+g.A.P.F))){switch(c.o.placement){case"ref-right":A.push([K,s],[K+M,s]);break;case"ref-left":A.push([K,s],[K-M,s]);break;case"ref-auto":A.push([K-M/2,s],[K+M/2,s]);break;case"inner":A.push([n,s],[n+(F?M:-M),s]);break;case"outer":A.push([n,s],[n-(F?M:-M),s]);break;default:A.push([n+M/2,s],[n-M/2,s])}if(-1!==ne&&(M=ne,ne=-1),c.AO){for(ie=ZC._i_(c.o["offset-x"]||"0"),te=ZC._i_(c.o["offset-y"]||"0"),ee=0;ee0&&g.IB.AO&&g.FZ>0&&k>5&&!g.A.AJ["3d"]&&"log"!==g.BS)for(i=g.W;i0||e===g.W||!f||g.BR.HW)&&(f=new ZC.DP(g)),f.copy(g.BR),f.GM=g.K+"-item "+g.A.K+"-scale-item zc-scale-item",f.K=g.A.K+"-"+g.BF.replace(/\-/g,"_")+"-item_"+e,g.CK=se,g.DT=Ae,g.Z6(Ze),i=("piano"===g.A.AF||g.Q1)&&g.BY.length?g.FR(e+g.AZ):g.FR(e),g.BR.HW){var t=g.A.H0();ZC._cp_({index:e,cnt:C,text:i},t),g.H5(g.BR,f,null,t,g.BR.MN)}if(null===ZC._n_(g.LW)||-1!==ZC.AV(g.LW,i)){switch(f.AN=i,f.Z=f.C7=g.G.usc()?g.G.mc():ZC.AM(g.A.K+"-scales-ml-0-c"),f.IO=g.G.usc()?ZC.AM(g.G.K+"-main"):ZC.AM(g.G.K+"-text"),f.parse(),"inherit"!==g.BR.o["font-color"]&&"inherit"!==g.BR.o.color||-1===v||(f.C2=v),f.J7=Ze,f.DF()&&f.parse(),f.o.placement){case"ref-left":f.iX=K-f.I-M;break;case"ref-right":f.iX=K+M;break;case"ref-auto":x&&x.S[e]?(x.FM(e).setup(),x.FM(e).iX0&&g.BR.AO)if("log"===g.BS){var ce=[];for(i=g.W;i<=g.A1;i++)ZC.AQ._int_(ZC.FU(g.V[i],g.DX))&&(g.GT=i,Ce(i),ce.push(i));for(i=g.W;i<=g.A1;i++)-1===ZC.AV(ce,i)&&(g.GT=i,Ce(i))}else for(g.GT=0,Ce(g.W),g.GT=g.A1-g.W,Ce(g.A1),-1!==(d=ZC.AV(g.V,0))&&ZC._b_(g.o["show-zero"])&&(g.GT=d,Ce(d)),g.GT=1,i=g.W+1;i0&&ZC.AM(g.A.A.K+"-map")&&(ZC.AM(g.A.A.K+"-map").innerHTML+=H.join(""))}}function Ze(e){return e=(e=(e=(e=(e=e.replace(/%scale-last-position/g,g.A1-g.W)).replace(/(%c)|(%scale-position)/g,g.GT)).replace(/(%i)|(%scale-index)/g,g.K8)).replace(/(%v)|(%scale-value)/g,null!==ZC._n_(g.V[g.K8])?g.V[g.K8]:"")).replace(/(%l)|(%scale-label)/g,null!==ZC._n_(g.BY[g.K8])?g.BY[g.K8]:"")}}};ZC.Q9=ZC.WB.CC(Q9);var SY={$i:function(e){this.b(e),this.CL=!0},parse:function(){this.b()},J4:function(){var e=this;e.A1===e.W?e.AC=e.F-e.A9-e.BU:e.AC=(e.F-e.A9-e.BU)/(e.A1-e.W+(e.DE?1:0))},AA1:function(e){this.b(e),this.J4()},clear:function(){},build:function(){this.b()},zoomTo:function(e,i){this.b(e,i),this.J4()},NI:function(e){var i,t=this;i=t.AW?(e-t.iY-t.A9)/(t.F-t.A9-t.BU):(t.iY+t.F-t.A9-e)/(t.F-t.A9-t.BU);var n=t.AZ,a=t.BD;"log"===t.BS&&(n=ZC.FU(n,t.DX),a=ZC.FU(a,t.DX));var l=n+ZC._f_((a-n)*i);return"log"===t.BS&&(l=Math.pow(t.DX,l)),l},OI:function(e,i,t){var n,a,l,o,r=this;void 0===t&&(t=!1);var s=r.DE?r.AC:0;l=r.AW?(e-r.iY-r.A9-s/2)/(r.F-r.A9-r.BU-s):(r.iY+r.F-e-r.A9-s/2)/(r.F-r.A9-r.BU-s);var A=!1;if(i)for(o in i.K7){A=!0;break}if(i&&!r.NV&&A){var C=r.V[r.W];"string"==typeof C&&(C=ZC.AV(r.IT,C)),"log"===r.BS&&(C=ZC.FU(C,r.DX));var c=r.V[r.A1];"string"==typeof c&&(c=ZC.AV(r.IT,c)),"log"===r.BS&&(c=ZC.FU(c,r.DX));var u=C+ZC._f_((c-C)*l);"log"===r.BS&&(u=Math.pow(r.DX,u));var p=ZC.MAX;for(o in a=null,i.K7)(n=Math.abs(o-u))i.A2H){var Z=Math.ceil((c-C)/(r.I-r.A9-r.BU));if(i.V.length<2&&(Z*=100),p>Z)return null}return a}var h=r.W,d=r.A1;return r.EH&&(null!==ZC._n_(n=r.V[h])&&(h=n),null!==ZC._n_(n=r.V[d])&&(d=n)),"log"===r.BS&&(h=ZC.FU(h,r.DX),d=ZC.FU(d,r.DX)),a=t?r.DE?h+(d-h+1)*l:h+(d-h)*l:(r.DE,r.W+(r.A1-r.W)*l),"log"===r.BS?(a=Math.pow(r.DX,a),a=Math.floor(a)-1):(a=ZC._i_(a),a=ZC.BQ(0,a),a=ZC.CY(r.DN,a)),a},IE:function(e){var i=this;i.W,i.A1;return i.EH&&!i.NV&&(i.AZ,i.BD),"log"===i.BS&&(e=ZC.FU(e+1,i.DX)),i.AW?i.iY+i.A9+(e-i.W)*i.AC+(i.DE?i.AC/2:0):i.iY+i.F-i.A9-(e-i.W)*i.AC-(i.DE?i.AC/2:0)},AR:function(e){var i,t,n,a,l,o=this;if("log"===o.BS&&(0===e&&(e=o.AZ),e=ZC.FU(e,o.DX)),o.NV){var r=o.U8[e];return o.IE(r)}if(-1!==(i=ZC.AV(o.IT,e)))return o.IE(i);if(!o.A4M&&(o.EH||o.F6&&"date"===o.F6.o.type)){a=o.V[o.W],l=o.V[o.A1];var s=o.F;return"log"===o.BS&&(a=ZC.FU(a,o.DX),l=ZC.FU(l,o.DX),o.W===o.D4&&o.A1===o.DN&&(s=(o.A1-o.W)*o.AC+o.A9+o.BU)),l===a?n=0:(t=l-a,n=(s-o.A9-o.BU-(o.DE?o.AC:0))/t),o.AW?o.iY+o.A9+(e-a)*n+(o.DE?o.AC/2:0):o.iY+s-o.A9-(e-a)*n-(o.DE?o.AC/2:0)}return a=o.AZ,l=o.BD,"log"===o.BS&&(a=ZC.FU(a,o.DX),l=ZC.FU(l,o.DX)),l===a?n=0:(t=l-a+(o.DE?1:0),n=(o.F-o.A9-o.BU)/t),o.AW?o.iY+o.A9+(e-a)*n+(o.DE?o.AC/2:0):o.iY+o.F-o.A9-(e-a)*n-(o.DE?o.AC/2:0)},paint:function(){var e,i,t,n,a,l,o,r,s,A,C,c,u,p,Z,h,d,f=this;if(f.AO){f.b(),null!==ZC._n_(f.A.A.E[f.A.K+"-"+f.BF+"-feed-offset-start"])&&(f.A9=f.A.A.E[f.A.K+"-"+f.BF+"-feed-offset-start"]),"hbubble"!==f.A.AF&&"hscatter"!==f.A.AF||(-1===f.A9&&-1===f.BU||1===f.V.length)&&(f.A9=f.BU=f.F/(f.V.length+1),f.J4());var _=f.A0Q(),g=0,v=1,B=1,b={};for(i=0,t=f.A.BO.length;i0;P--)f.iStepMultiplier>P&&f.A1-f.W<=P*f.iStepMultiplier&&(G=P);X*=G,L*=G;var O,S,N,k=0,z=f.AC*X/(f.FZ+1);if(null===ZC._n_(D)&&(D=a),l=f.G.usc()?f.G.mc():ZC.AM(f.A.K+"-scales-ml-0-c"),o=ZC.Q.ED(l,f.G.AD),r=f.G.usc()?f.G.mc():ZC.AM(f.A.K+"-scales-bl-0-c"),s=ZC.Q.ED(r,f.G.AD),"inherit"===f.o["line-color"]&&-1!==_&&(f.B9=_),f.A.AJ["3d"])(p=ZC.DK.DD(f,f.A,a-ZC.AL.E1,a-ZC.AL.E1,f.iY-ZC.AL.E2,f.iY-ZC.AL.E2+f.F,-1,ZC.AL.FD+1,"y")).K=f.K+"-line",f.A.EM.true3d&&(f.A.EM["x-angle"]>0?p.MG=[1===f.L?-100:100,1,1]:p.MG=[1===f.L?100:-100,1,1]),f.A.CM.add(p);else{C=[[Y,f.iY+f.F],[Y,f.iY]];var Q=f.K;f.K+="-line",ZC.CN.paint(o,f,C),f.K=Q}if(f.V.length>0&&f.D8.AO){var V=null===ZC._n_(f.D8.o["offset-start"])?0:ZC._i_(f.D8.o["offset-start"]),J=null===ZC._n_(f.D8.o["offset-end"])?0:ZC._i_(f.D8.o["offset-end"]);if(f.D8.o.items&&f.D8.o.items.length>0&&!f.A.AJ["3d"])for(Z=new ZC.HS(f),i=f.W;i0)for(f.GT=0,i=f.W;i<=f.A1+(f.DE?1:0);i++)if(f.K8=i,i===f.W||i===f.A1+(f.DE?1:0)||(i-f.W)%X==0){(f.D8.E7.length>0||i===f.W)&&((u=new ZC.CZ(f)).Z=u.C7=r,u.copy(f.D8),u.J7=pe,u.DF()&&u.parse()),A=i-f.W,C=[],c=f.AW?f.iY+f.A9+A*f.AC:f.iY+f.F-f.A9-A*f.AC;var T=f.iX+V,H=f.I-V-J;if(u.AO)if(f.A.AJ["3d"]){var R=new ZC.CZ(f);R.copy(u),null!==ZC._n_(f.o["scale-z"])&&null!==ZC._n_(e=f.o["scale-z"].guide)&&(R.append(e),R.parse()),R.A0=R.AE=R.B9,p=ZC.DK.DD(R,f.A,a-ZC.AL.E1,a-ZC.AL.E1,c-ZC.AL.E2-R.B1/2,c-ZC.AL.E2+R.B1/2,0,ZC.AL.FD,"z"),f.A.CM.add(p),u.A0=u.AE=u.B9,(p=ZC.DK.DD(u,f.A,T-ZC.AL.E1,T-ZC.AL.E1+H,c-ZC.AL.E2-R.B1/2,c-ZC.AL.E2+R.B1/2,ZC.AL.FD+2,ZC.AL.FD+2,"x")).K=f.K+"-guide-"+i,f.A.CM.add(p)}else C.push([T,c],[T+H,c]),u.K=f.K+"-guide-"+i,ZC.CN.paint(s,u,C);f.GT++}}if(f.V.length>0&&f.G8.AO&&!f.A.AJ["3d"]){if(f.G8.o.items&&f.G8.o.items.length>0)for(Z=new ZC.HS(f),i=f.W;i0)for(i=f.W;i0&&f.IU.AO&&(!f.A.AJ["3d"]||!f.A.EM.true3d)){switch(f.IU.o.placement){case"inner":break;case"outer":k+=y;break;default:k+=y/2}for(f.GT=0,i=f.W;i<=f.A1+(f.DE?1:0);i++)if(f.K8=i,i===f.W||i===f.A1+(f.DE?1:0)||(i-f.W)%X==0){switch(C=[],A=i-f.W,(f.IU.E7.length>0||i===f.W)&&((u=new ZC.CZ(f)).copy(f.IU),"inherit"===f.IU.o["line-color"]&&-1!==_&&(u.B9=_),u.J7=pe,u.DF()&&u.parse()),c=f.AW?f.iY+f.A9+A*f.AC:f.iY+f.F-f.A9-A*f.AC,u.o.placement){case"ref-auto":C.push([D-y/2,c],[D+y/2,c]);break;case"ref-left":C.push([D-y,c],[D,c]);break;case"ref-right":C.push([D+y,c],[D,c]);break;case"inner":C.push([a,c],[a+(E?y:-y),c]);break;case"outer":C.push([a,c],[a-(E?y:-y),c]);break;default:C.push([a+y/2,c],[a-y/2,c])}if(u.AO){for(S=ZC._i_(u.o["offset-x"]||"0"),N=ZC._i_(u.o["offset-y"]||"0"),O=0;O0&&f.FZ>0&&f.IB.AO&&!f.A.AJ["3d"])for(i=f.W;i1&&f.BR.AO)for(f.GT=0,Ze(f.W),f.GT=f.A1-f.W,Ze(f.A1),f.GT=1,i=f.W+1;i0&&ZC.AM(f.A.A.K+"-map")&&(ZC.AM(f.A.A.K+"-map").innerHTML+=Ae.join(""))}}function pe(e){return e=(e=(e=(e=(e=e.replace(/%scale-last-position/g,f.A1-f.W)).replace(/(%c)|(%scale-position)/g,f.GT)).replace(/(%i)|(%scale-index)/g,f.K8)).replace(/(%v)|(%scale-value)/g,null!==ZC._n_(f.V[f.K8])?f.V[f.K8]:"")).replace(/(%l)|(%scale-label)/g,null!==ZC._n_(f.BY[f.K8])?f.BY[f.K8]:"")}function Ze(e,i,t){f.K8=e,A=e-f.W,(f.BR.E7.length>0||e===f.W||!q||f.BR.HW)&&(q=new ZC.DP(f)),q.copy(f.BR),q.K=f.A.K+"-"+f.BF.replace(/\-/g,"_")+"-item_"+(t?"c"+t:e),q.GM=f.K+"-item "+f.A.K+"-scale-item zc-scale-item",q.E["p-height"]=f.AC,f.CK=ne,f.DT=ae,f.Z6(pe);var n="";if(n=t||f.FR(e),f.BR.HW){var l=f.A.H0();ZC._cp_({index:e,cnt:A,text:n},l),f.H5(f.BR,q,null,l,f.BR.MN)}if(null===ZC._n_(f.LW)||-1!==ZC.AV(f.LW,n)){switch(q.AN=n,q.Z=q.C7=f.G.usc()?f.G.mc():ZC.AM(f.A.K+"-scales-ml-0-c"),q.IO=f.G.usc()?ZC.AM(f.G.K+"-main"):ZC.AM(f.G.K+"-text"),q.E.nodeidx=e,q.parse(),"inherit"!==f.BR.o["font-color"]&&"inherit"!==f.BR.o.color||-1===_||(q.C2=_),q.J7=pe,q.DF()&&q.parse(),q.o["auto-fit"]&&(q.F=ZC._i_(f.AC)),q.o.placement){case"inner":q.iX=E?a+y:a-q.I-y;break;case"ref-left":q.iX=D-q.I-y;break;case"ref-right":q.iX=D+y;break;case"ref-auto":F&&F.S[e]?(F.S[e].setup(),F.S[e].iX0;P--)g.iStepMultiplier>P&&g.A1-g.W<=P*g.iStepMultiplier&&(G=P);L*=G,X*=G;var O=0,S=g.AC*L/(g.FZ+1);if(a=g.G.usc()?g.G.mc():ZC.AM(g.A.K+"-scales-ml-0-c"),l=ZC.Q.ED(a,g.G.AD),o=g.G.usc()?g.G.mc():ZC.AM(g.A.K+"-scales-bl-0-c"),r=ZC.Q.ED(o,g.G.AD),g.TE||g.YL||null!==ZC._n_(g.A.o[g.BF])){if("inherit"===g.o["line-color"]&&-1!==v&&(g.B9=v),g.A.AJ["3d"])(u=ZC.DK.DD(g,g.A,g.iX-ZC.AL.E1,g.iX-ZC.AL.E1+g.I,n-ZC.AL.E2,n-ZC.AL.E2,-1,ZC.AL.FD+1,"x")).K=g.K+"-line",g.A.EM.true3d&&(g.A.EM["y-angle"]>0?u.MG=[1===g.L?-100:100,1,1]:u.MG=[1===g.L?100:-100,1,1]),g.A.CM.add(u);else{s=[[g.iX,Y],[g.iX+g.I,Y]];var N=g.K;g.K+="-line",ZC.CN.paint(l,g,s),g.K=N}var k=[],z=0,Q=0,V=[];if(g.TE||g.YL){if(g.V.length>0&&g.D8.AO){var J=null===ZC._n_(g.D8.o["offset-start"])?0:ZC._i_(g.D8.o["offset-start"]),T=null===ZC._n_(g.D8.o["offset-end"])?0:ZC._i_(g.D8.o["offset-end"]);if(g.D8.o.items&&g.D8.o.items.length>0&&!g.A.AJ["3d"])for(g.GT=0,d=new ZC.HS(g),i=g.W;i0)for(g.GT=0,i=g.W;i<=g.A1+(g.DE?1:0);i++)if(g.K8=i,i===g.W||i===g.A1||i%L==0){(g.D8.E7.length>0||i===g.W||"log"===g.BS)&&((c=new ZC.CZ(g)).Z=c.C7=o,"log"===g.BS?ZC.AQ._int_(ZC.FU(g.V[i],g.DX))?c.copy(g.D8):c.copy(g.G8):c.copy(g.D8),c.J7=ce,c.DF()&&c.parse()),s=[],A=i-g.W;var R=g.iY+J,W=g.F-J-T;if(C=(g.BS,g.AR(g.V[i])),c.AO)if(g.A.AJ["3d"]){var U=new ZC.CZ(g);U.copy(c),null!==ZC._n_(g.o["scale-z"])&&null!==ZC._n_(e=g.o["scale-z"].guide)&&(U.append(e),U.parse()),U.A0=U.AE=U.B9,u=ZC.DK.DD(U,g.A,C-ZC.AL.E1-U.B1/2,C-ZC.AL.E1+U.B1/2,n-ZC.AL.E2,n-ZC.AL.E2,0,ZC.AL.FD,"z"),g.A.CM.add(u),c.A0=c.AE=c.B9,(u=ZC.DK.DD(c,g.A,C-ZC.AL.E1-c.B1/2,C-ZC.AL.E1+c.B1/2,R-ZC.AL.E2,R-ZC.AL.E2+W,ZC.AL.FD+2,ZC.AL.FD+2,"y")).K=g.K+"-guide-"+i,g.A.CM.add(u)}else s.push([C,R],[C,R+W]),c.K=g.K+"-guide-"+i,ZC.CN.paint(r,c,s);g.GT++}}if(g.V.length>0&&g.G8.AO&&S>2&&!g.A.AJ["3d"]){if(g.G8.o.items&&g.G8.o.items.length>0)for(d=new ZC.HS(g),i=g.W;i0&&"log"!==g.BS)for(i=g.W;i0&&g.IU.AO&&(!g.A.AJ["3d"]||!g.A.EM.true3d)){switch(g.IU.o.placement){case"inner":break;case"outer":O+=y;break;default:O+=y/2}for(g.GT=0,f=ZC.AV(g.V,0),i=g.W;i<=g.A1+(g.DE?1:0);i++){g.K8=i;var ee=-1;if((i===g.W||i===g.A1||i%L==0||ZC._b_(g.o["show-zero"])&&i===f)&&(s=[],A=i-g.W,(g.IU.E7.length>0||i===g.W||"log"===g.BS)&&(c=new ZC.CZ(g),"log"===g.BS?ZC.AQ._int_(ZC.FU(g.V[i],g.DX))?c.copy(g.IU):(c.copy(g.IB),ee=y,y=w):c.copy(g.IU),"inherit"===g.IU.o["line-color"]&&-1!==v&&(c.B9=v),c.J7=ce,c.DF()&&c.parse()),C=(g.BS,g.AR(g.V[i])),ZC.DQ(C,g.A.P.iX,g.A.P.iX+g.A.P.I))){switch(c.o.placement){case"inner":s.push([C,n-(F?y:-y)],[C,n]);break;case"outer":s.push([C,n],[C,n+(F?y:-y)]);break;default:s.push([C,n+y/2],[C,n-y/2])}if(-1!==ee&&(y=ee,ee=-1),c.AO){for(q=ZC._i_(c.o["offset-x"]||"0"),$=ZC._i_(c.o["offset-y"]||"0"),j=0;j0&&g.IB.AO&&g.FZ>0&&S>5&&!g.A.AJ["3d"]&&"log"!==g.BS)for(i=g.W;i0||e===g.W||!_||g.BR.HW)&&(_=new ZC.DP(g)),_.copy(g.BR),_.GM=g.K+"-item "+g.A.K+"-scale-item zc-scale-item",_.K=g.A.K+"-"+g.BF.replace(/\-/g,"_")+"-item_"+e,g.CK=le,g.DT=oe,g.Z6(ce),i=("piano"===g.A.AF||g.Q1)&&g.BY.length?g.FR(e+g.AZ):g.FR(e),g.BR.HW){var t=g.A.H0();ZC._cp_({index:e,cnt:A,text:i},t),g.H5(g.BR,_,null,t,g.BR.MN)}if(null===ZC._n_(g.LW)||-1!==ZC.AV(g.LW,i)){switch(_.AN=i,_.Z=_.C7=g.G.usc()?g.G.mc():ZC.AM(g.A.K+"-scales-ml-0-c"),_.IO=g.G.usc()?ZC.AM(g.G.K+"-main"):ZC.AM(g.G.K+"-text"),_.parse(),"inherit"!==g.BR.o["font-color"]&&"inherit"!==g.BR.o.color||-1===v||(_.C2=v),_.J7=ce,_.E7=g.BR.E7,_.DF()&&_.parse(),_.o.placement){case"inner":_.iY=F?n-_.KF-y:n+y;break;default:_.iY=F?n+y:n-_.KF-y}if("log"===g.BS?_.iX=g.AR(g.V[e])-_.I/2:_.iX=g.AR(g.V[e])-_.I/2-(g.AW?1:-1)*(g.DE?g.AC/2:0),ae=g.N1(_,ae,"h"),g.BR.o["auto-align"]&&g.BR.AA%180!=0){var a=ZC.DQ(g.BR.AA,0,180)?F?1:-1:1===F?-1:1;_.iX+=a*_.I*ZC.EE(g.BR.AA)/2,_.iY+=a*(_.I*ZC.EK(g.BR.AA)/2-_.F*ZC.EK(g.BR.AA)/2)}if(ZC.DQ(_.iX+_.I/2,g.A.P.iX-1,g.A.P.iX+g.A.P.I+1)||g.A.AJ["3d"]){var l=g.X9(_,e,{items:0,lcoords:k,lstep:X,tdim:z,mdim:Q,dim:"h",html:V});z=l.tdim,Q=l.mdim,g.GT++}}};if(g.V.length>0&&g.BR.AO)if("log"===g.BS){var se=[];for(i=g.W;i<=g.A1;i++)ZC.AQ._int_(ZC.FU(g.V[i],g.DX))&&(g.GT=i,re(i),se.push(i));for(i=g.W;i<=g.A1;i++)-1===ZC.AV(se,i)&&(g.GT=i,re(i))}else for(g.GT=0,re(g.W),g.GT=g.A1-g.W,re(g.A1),-1!==(f=ZC.AV(g.V,0))&&ZC._b_(g.o["show-zero"])&&(g.GT=f,re(f)),g.GT=1,i=g.W+1;i0&&ZC.AM(g.A.A.K+"-map")&&(ZC.AM(g.A.A.K+"-map").innerHTML+=V.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.GT)).replace(/(%i)|(%scale-index)/g,g.K8)).replace(/(%v)|(%scale-value)/g,null!==ZC._n_(g.V[g.K8])?g.V[g.K8]:"")).replace(/(%l)|(%scale-label)/g,null!==ZC._n_(g.BY[g.K8])?g.BY[g.K8]:"")}}};ZC.SZ=ZC.WB.CC(SZ);var TA={$i:function(e){this.b(e);var i=this;i.N4="",i.KU=1,i.H4=1,i.GL=0,i.GG=0,i.JS=.6},parse:function(){var e=this;e.b(),e.iX+=e.DZ,e.iY+=e.E9,e.I-=e.DZ+e.E8,e.F-=e.E9+e.DU,e.YE("layout","N4"),null!==ZC._n_(e.o["size-factor"])&&(e.JS=ZC._f_(ZC._p_(e.o["size-factor"])))},AA1:function(e){var i=this;i.b(e),0===i.V.length&&(i.V=[""]);var t=ZC.AQ.A2G(i.N4,i.V.length,!1);i.KU=t[0],i.H4=t[1],i.GL=i.I/i.H4,i.GG=i.F/i.KU},A5F:function(){var e=this;e.b(),e.GL=e.I/e.H4,e.GG=e.F/e.KU},clear:function(){},build:function(){this.b()},paint:function(){var e,i,t,n,a,l=this;if(l.AO){if(l.b(),e=ZC.Q.ED(l.G.usc()?l.G.K+"-main-c":l.A.K+"-scales-ml-0-c",l.G.AD),i=ZC.Q.ED(l.G.usc()?l.G.K+"-main-c":l.A.K+"-scales-bl-0-c",l.G.AD),(t=[]).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.CN.paint(e,l,t),l.D8.AO){if(l.D8.o.items&&l.D8.o.items.length>0)for(n=0,a=l.V.length;n0){for(t=[],n=0;n<=l.H4;n++)t.push([l.iX+n*l.GL,l.iY],[l.iX+n*l.GL,l.iY+l.F],null);for(n=0;n<=l.KU;n++)t.push([l.iX,l.iY+n*l.GG],[l.iX+l.I,l.iY+n*l.GG],null);ZC.CN.paint(i,l.D8,t)}}var C,c=[];if(l.BR.AO){for(n=0,a=l.V.length;n0&&ZC.AM(l.A.A.K+"-map")&&(ZC.AM(l.A.A.K+"-map").innerHTML+=c.join(""))}}function u(e){(l.BR.E7.length>0||0===e)&&(C=new ZC.DP(l)),C.copy(l.BR);var i=e%l.H4,t=Math.floor(e/l.H4);C.GM=l.K+"-item "+l.A.K+"-scale-item zc-scale-item",C.K=l.A.K+"-"+l.BF.replace(/\-/g,"_")+"-item_"+e;var n=l.FR(e);if((null===ZC._n_(l.LW)||-1!==ZC.AV(l.LW,n))&&(C.AN=n,C.Z=l.G.usc()?l.G.mc():ZC.AM(l.A.K+"-scales-ml-0-c"),C.parse(),C.J7=function(i){return i=(i=(i=i.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]:"")},C.E7=l.BR.E7,C.DF()&&C.parse(),C.AO)){var a="bottom";null!==ZC._n_(l.BR.o.placement)&&(a=l.BR.o.placement);var o=l.iX+i*l.GL,r=l.iY+t*l.GG;switch(a){case"top-left":C.iX=o,C.iY=r;break;case"top-right":C.iX=o+l.GL-C.I,C.iY=r;break;case"bottom-left":C.iX=o,C.iY=r+l.GG-C.F;break;case"bottom-right":C.iX=o+l.GL-C.I,C.iY=r+l.GG-C.F;break;case"top":C.iX=o+l.GL/2-C.I/2,C.iY=r;break;case"right":C.iX=o+l.GL-C.I,C.iY=r+l.GG/2-C.F/2;break;case"left":C.iX=o,C.iY=r+l.GG/2-C.F/2;break;default:C.iX=o+l.GL/2-C.I/2,C.iY=r+l.GG-C.F}C.paint(),C.EO(),null===ZC._n_(l.o.tooltip)&&C.KC||c.push(ZC.AP.O8(l.A.G.K,l.A.K,C))}}}};ZC.TA=ZC.ZN.CC(TA);var A2C={$i:function(e){this.b(e);this.DJ=0,this.EL=360},parse:function(){var e,i=this;i.b(),null!==ZC._n_(e=i.o["ref-angle"])&&(i.DJ=ZC._i_(e)%360),null!==ZC._n_(e=i.o.aperture)&&(i.EL=ZC._i_(e)%360,0===i.EL&&(i.EL=360))}};ZC.A2C=ZC.ZN.CC(A2C);var A5B={$i:function(e){this.b(e)},parse:function(){this.b()},J4:function(){},AA1:function(e){this.b(e),this.J4()},clear:function(){this.b()},build:function(){this.b()},paint:function(){this.b()}};ZC.A5B=ZC.WB.CC(A5B),ZC.A87=ZC.A5B.CC({$i:function(e){this.b(e);var i=this;i.DJ=-90,i.EL=180,i.QE=null,i.IX=null,i.CW="circle"},parse:function(){var e,i=this;i.b(),null!==ZC._n_(e=i.o["ref-angle"])&&(i.DJ=ZC._i_(e)%360),null!==ZC._n_(e=i.o.aperture)&&(i.EL=ZC._i_(e)),null!==ZC._n_(e=i.o.center)&&(i.QE=new ZC.DR(i),i.QE.append(e),i.QE.parse()),null!==ZC._n_(e=i.o.ring)&&(i.IX=new ZC.DR(i),i.G.B6.load(i.IX.o,[i.A.AF+"."+i.BF+".ring"]),i.IX.append(e),i.IX.parse())},AA1:function(e){this.b(e)},clear:function(){},build:function(){this.b()},AR:function(e){var i=this,t=i.A.BM("scale"),n=t.iX+t.I/2,a=t.iY+t.F/2,l=i.A.BM("scale-"+i.L);l||(l=i.A.BM("scale"));var o=ZC.CY(l.GL/2,l.GG/2)*l.JS,r=i.BD-i.AZ,s=i.EL/r;return ZC.AQ.BN(n,a,o,i.DJ-i.EL/2+s*(e-i.AZ))},IE:function(e){return this.AR(this.V[e])},paintMarker:function(e){var i,t=this;if(e.F9){var n,a=t.A.BM("scale-"+t.L);if(a||(a=t.A.BM("scale")),e.AO){var l=t.A.K+"-scales-"+("top"===e.BA?"f":"b")+"l-0-c";e.Z=e.C7=ZC.AM(t.G.usc()?a.G.K+"-main-c":l),n=ZC.Q.ED(e.Z,t.G.AD);var o=ZC.CY(a.GL/2,a.GG/2)*a.JS,r=ZC.IM(e.o["offset-start"]||"0");r>0&&r<1&&(r*=o);var s=ZC.IM(e.o["offset-end"]||"0");s>0&&s<1&&(s*=o),e.M&&(e.M.Z=t.G.usc()?t.G.mc():ZC.AM(t.A.K+"-scales-ml-0-c"),e.M.K=e.A.A.K+"-"+e.A.BF.replace(/\-/g,"_")+"-marker_"+e.L,e.M.GM=e.A.K+"-marker-label "+e.A.A.K+"-scale-marker-label zc-scale-marker-label");for(var A=0;A0){var h=t.DJ-t.EL/2+t.EL*(e.F9[0]-t.AZ)/(t.BD-t.AZ);C=h;var d=[];d.push(ZC.AQ.BN(p,Z,r,h)),d.push(ZC.AQ.BN(p,Z,o-s,h)),2===d.length&&(ZC.CN.setup(n,e),ZC.CN.paint(n,e,d))}break;case"area":if(e.F9.length>1){var f=t.DJ-t.EL/2+t.EL*(e.F9[0]-t.AZ)/(t.BD-t.AZ),_=t.DJ-t.EL/2+t.EL*(e.F9[1]-t.AZ)/(t.BD-t.AZ);C=(f+_)/2;var g=new ZC.DR(e);g.Z=e.Z,g.append(e.o),g.append({size:o-s,slice:r,type:"pie","angle-start":f,"angle-end":_}),g.K=a.K+"-marker-"+e.L,g.iX=p,g.iY=Z,g.parse(),g.paint()}}if(e.M){var v;null!==ZC._n_(i=e.M.o["offset-r"])?v=ZC._f_(ZC._p_(i)):v<1?v*=o-s-r:v=0;var B=ZC.AQ.BN(p,Z,(o-s-r)/2+v,C);e.M.iX=B[0]-e.M.I/2,e.M.iY=B[1]-e.M.F/2,e.M.paint()}}}}},paint:function(){var e,i,t,n,a,l,o,r,s,A=this;if(A.AO&&0!==A.V.length){A.AW&&A.V.reverse(),e=ZC.Q.ED(A.G.usc()?A.G.K+"-main-c":A.A.K+"-scales-bl-0-c",A.G.AD);var C=ZC._i_(A.IU.o.size||8),c=ZC._i_(A.IB.o.size||4),u=0,p=ZC.BQ(1,Math.ceil((A.A1-A.W)/(A.M4-1))),Z=ZC.BQ(1,Math.ceil((A.A1-A.W)/(A.EI-1))),h=A.A.BM("scale-"+A.L);h||(h=A.A.BM("scale"));for(var d,f,_,g=ZC.CY(h.GL/2,h.GG/2)*h.JS,v=A.EL/(A.V.length-1),B=0;B0)for(i=0;i0)for(i=0,t=A.V.length;i0&&A.FZ>0)for(i=0,t=A.V.length;i0&&(a.paint(),360===A.EL&&(a.K=A.K+"-ring-inner",a.o.size=g-n,a.parse(),a.paint())),A.IX.o.items&&A.IX.o.items.length>0||A.IX.o.rules))for(i=0;i0&&a.paint();if(A.IU.AO){switch(A.IU.o.placement){case"outer":u+=C;break;default:u+=C/2}for(l=[],i=0,t=A.V.length;i0){for(l=[],i=0,t=A.V.length;i0&&ZC.AM(A.A.A.K+"-map")&&(ZC.AM(A.A.A.K+"-map").innerHTML+=K.join(""))}}}function M(e){return e=(e=(e=(e=e.replace(/%i/g,i)).replace(/%k/g,i)).replace(/%v/g,null!==ZC._n_(A.V[i])?A.V[i]:"")).replace(/%l/g,null!==ZC._n_(A.BY[i])?A.BY[i]:"")}},paint_:function(){var e=this,i=e.A.BM("scale-"+e.L);i||(i=e.A.BM("scale"));for(var t=0;t0){var v=0;for(t=0,n=s.V.length-(360===s.EL||s.DE?0:1);t0)for(t=0,n=s.V.length+(s.DE?1:0);t0&&ZC.AM(s.A.A.K+"-map")&&(ZC.AM(s.A.A.K+"-map").innerHTML+=x.join(""))}}function I(e){return e=(e=(e=e.replace(/(%i)|(%scale-index)/g,t)).replace(/(%v)|(%scale-value)/g,null!==ZC._n_(s.V[t])?s.V[t]:"")).replace(/(%l)|(%scale-label)/g,null!==ZC._n_(s.BY[t])?s.BY[t]:"")}function y(e){(s.BR.E7.length>0||0===e)&&(c=new ZC.DP(s)),c.copy(s.BR),c.GM=s.K+"-item "+s.A.K+"-scale-item zc-scale-item",c.K=s.A.K+"-"+s.BF.replace(/\-/g,"_")+"-item_"+e;var i=s.FR(e);if(null===ZC._n_(s.LW)||-1!==ZC.AV(s.LW,i)){c.AN=i,c.Z=c.C7=s.G.usc()?s.G.mc():ZC.AM(s.A.K+"-scales-ml-0-c"),c.parse(),c.J7=function(i){return i=(i=(i=i.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]:"")},c.E7=s.BR.E7,c.DF()&&c.parse();var t=ZC.IM(c.DW,!0);if(t>-1&&t<1&&(t*=h),r=s.DJ+e*g+(s.DE?g/2:0),s.BR.o["auto-align"]){var n=1.25;1-ZC._a_(ZC.EE(r))>.7&&(n=2.5*(1-ZC._a_(ZC.EE(r))));var a=(1-ZC._a_(ZC.EE(r)))*c.DH*n;K=ZC.AQ.BN(f,_,h+t+p+a,r),ZC.EE(r)>0?(c.iX=K[0],c.iY=K[1]-c.F/2):(c.iX=K[0]-c.I,c.iY=K[1]-c.F/2)}else s.BR.o["auto-rotate"]?(K=ZC.AQ.BN(f,_,h+t+p+c.F/2,r),c.iX=K[0]-c.I/2,c.iY=K[1]-c.F/2,c.AA=r+90):(K=ZC.AQ.BN(f,_,h+t+p+ZC._a_(10*ZC.EK(r))+ZC._a_(c.I/2*ZC.EE(r)),r),c.iX=K[0]-c.I/2,c.iY=K[1]-c.F/2);c.AO&&(c.paint(),c.EO(),null===ZC._n_(s.o.tooltip)&&c.KC||(null!==ZC._n_(s.o.tooltip)&&(s.o.tooltip.text=s.o.tooltip.text||"%scale-value"),x.push(ZC.AP.O8(s.A.G.K,s.A.K,c))))}}}};ZC.ZP=ZC.A2C.CC(ZP);var ZO={$i:function(e){this.b(e)},parse:function(){this.b()},J4:function(){var e=this,i=e.A.BM("scale"),t=ZC.CY(i.I/2,i.F/2)*i.JS;e.AC=(t-e.A9-e.BU)/(e.A1-e.W)},AA1:function(e){this.b(e),this.J4()},A8E:function(){var e=this,i=e.A.BM("scale"),t=ZC.CY(i.I/2,i.F/2)*i.JS;e.EI=ZC.BQ(2,ZC._i_((t-e.A9-e.BU)/20))},UB:function(e){var i=this,t=i.A.BM("scale"),n=ZC.CY(t.I/2,t.F/2)*t.JS,a=i.BD-i.AZ,l=(n-i.A9-i.BU)/a;return(e-i.AZ)*l},AR:function(e){var i=this,t=i.UB(e),n=i.A.BM("scale-k"),a=i.A.BM("scale"),l=a.iX+a.I/2+a.BK,o=a.iY+a.F/2+a.BJ;return ZC.AQ.BN(l,o,t,n.DJ)},clear:function(){},build:function(){this.b()},paint:function(){var e,i,t,n,a,l,o,r=this;if(r.AO&&0!==r.V.length){r.b(),e=ZC.Q.ED(r.G.usc()?r.G.K+"-main-c":r.A.K+"-scales-ml-0-c",r.G.AD),i=ZC.Q.ED(r.G.usc()?r.G.K+"-main-c":r.A.K+"-scales-bl-0-c",r.G.AD);var s,A,C=r.A.BM("scale-k"),c=ZC._i_(r.IU.o.size||8),u=Math.ceil((r.A1-r.W)/(r.EI-1)),p=Math.ceil((r.A1-r.W)/(r.M4-1)),Z=r.A.BM("scale"),h=ZC.CY(Z.I/2,Z.F/2)*Z.JS,d=Z.iX+Z.I/2+Z.BK,f=Z.iY+Z.F/2+Z.BJ,_=C.EL/(C.V.length-(360===C.EL||C.DE?0:1));if(r.D8.AO){if(r.D8.o.items&&r.D8.o.items.length>0)for(t=0,n=r.V.length;t=0;a--)o.push(ZC.AQ.BN(d,f,r.A9+(t+1)*r.AC,C.DJ+a*_));B.D=o,B.parse(),B.B1=0,B.AU=0,B.EU=0,B.G3=0;var b=r.A.P;B.D2=[b.iX,b.iY,b.iX+b.I,b.iY+b.F],B.paint()}}if(r.D8.B1>0)for(t=0,n=r.V.length;t0&&((o=[]).push(ZC.AQ.BN(d,f,r.A9,C.DJ),ZC.AQ.BN(d,f,h-r.BU,C.DJ)),ZC.CN.paint(e,r.P3,o)),r.IU.AO){switch(r.IU.o.placement){case"inner":break;case"outer":c;break;default:c/2}for(o=[],t=0,n=r.V.length;t0&&r.BR.AO)for(r.GT=0,M(r.W),r.GT=r.A1-r.W,M(r.A1),r.GT=1,t=r.W+1;t0&&ZC.AM(r.A.A.K+"-map")&&(ZC.AM(r.A.A.K+"-map").innerHTML+=A.join(""))}function y(e){return e=(e=(e=e.replace(/(%i)|(%scale-index)/g,t)).replace(/(%v)|(%scale-value)/g,null!==ZC._n_(r.V[t])?r.V[t]:"")).replace(/(%l)|(%scale-label)/g,null!==ZC._n_(r.BY[t])?r.BY[t]:"")}function w(e){return e=(e=(e=(e=e.replace(/(%c)|(%scale-position)/g,r.GT)).replace(/(%i)|(%scale-index)/g,r.K8)).replace(/(%v)|(%scale-value)/g,null!==ZC._n_(r.V[r.K8])?r.V[r.K8]:"")).replace(/(%l)|(%scale-label)/g,null!==ZC._n_(r.BY[r.K8])?r.BY[r.K8]:"")}function M(e){r.K8=e,(s=new ZC.DP(r)).copy(r.BR),s.K=r.A.K+"-"+r.BF.replace(/\-/g,"_")+"-item_"+e,s.GM=r.K+"-item "+r.A.K+"-scale-item zc-scale-item";var i=r.FR(e);if(s.AN=i,null===ZC._n_(r.LW)||-1!==ZC.AV(r.LW,i)){s.Z=s.C7=r.G.usc()?r.G.mc():ZC.AM(r.A.K+"-scales-fl-0-c"),s.parse(),s.J7=w,s.DF()&&s.parse();var t=ZC.AQ.BN(d,f,r.A9+e*r.AC,C.DJ);switch(s.F=s.KF,s.I=s.NM,C.DJ%180==0?(s.iX=t[0]-s.I/2,s.iY=t[1]):(s.iX=t[0],s.iY=t[1]-s.F/2),r.IU.o.placement){case"inner":break;case"outer":C.DJ%180==0?s.iY+=c:s.iX+=c;break;default:C.DJ%180==0?s.iY+=c/2:s.iX+=c/2}s.AO&&(s.paint(),s.EO(),null===ZC._n_(r.o.tooltip)&&s.KC||(null!==ZC._n_(r.o.tooltip)&&(r.o.tooltip.text=r.o.tooltip.text||"%scale-value"),A.push(ZC.AP.O8(r.A.G.K,r.A.K,s))))}}}};ZC.ZO=ZC.WB.CC(ZO);var A0N={$i:function(e){this.b(e);var i=this;i.C5=.95,i.L=0,i.AF=null,i.M=null,i.F9=null,i.A65=!1,i.BA="bottom",i.A9=0,i.BU=0,i.MM="normal",i.O6="normal",i.KE=[5,5],i.A0C=[0,0],i.YS=""},parse:function(){this.b();var e,i=this;i.assign_a([["type","AF"],["value-range","A65","b"],["offset-start","A9","i"],["offset-end","BU","i"],["placement","BA"],["pair-scale","YS"],["label-placement","MM"],["label-alignment","O6"],["range","F9"]]),null===ZC._n_(i.o.alpha)&&(i.o.alpha="area"===i.AF?.25:.95),null!==ZC._n_(e=i.o["label-tolerance"])&&("object"==typeof e&&e.length?(i.KE[0]=ZC._i_(e[0]||"5"),i.KE[1]=ZC._i_(e[1]||"5")):i.KE[0]=i.KE[1]=ZC._i_(e||"5")),i.assign_a([["alpha","C5","f",0,1]]),null===ZC._n_(e=i.o.label)&&null===ZC._n_(i.o.text)||(i.M=new ZC.DP(i),i.A.A.A.B6.load(i.M.o,["("+i.A.AF+").SCALE.marker.label"]),null!==ZC._n_(i.o.text)&&i.M.append({text:i.o.text}),i.M.append(e),i.M.parse(),i.A0C=[i.M.BK,i.M.BJ])},paint:function(){var e,i,t,n,a,l,o,r=this;if(r.F9)if(-1===r.A.BF.indexOf("scale-r")){if(r.AO){var s,A,C,c,u=r.A,p=r.A.A.P.AU,Z=u.A.K+"-scales-"+("top"===r.BA?"f":"b")+"l-0-c";r.Z=r.C7=ZC.AM(u.G.usc()?u.G.K+"-main-c":Z),e=ZC.Q.ED(r.Z,u.G.AD),a=[];var h,d=0,f=0;r.BK>-1&&r.BK<1&&(r.BK=Math.ceil(r.BK*u.AC)),r.BJ>-1&&r.BJ<1&&(r.BJ=Math.ceil(r.BJ*u.AC)),r.M&&(r.M.Z=u.G.usc()?u.G.mc():ZC.AM(u.A.K+"-scales-ml-0-c"),r.M.K=r.A.A.K+"-"+r.A.BF.replace(/\-/g,"_")+"-marker_"+r.L,r.M.GM=r.A.K+"-marker-label "+r.A.A.K+"-scale-marker-label zc-scale-marker-label");var _=r.A.A,g=function(e,i){var t;return-1!==(i+"").indexOf("%")?(t=ZC._f_(i.replace("%","")),t="k"===e.AF?ZC._i_(t*(e.DN-e.D4)/100):t*(e.GV-e.FS)/100):t=i,r.A65||"v"===e.AF?e.AR(t):e.IE(t)};if("poly"===r.AF){var v,B,b,m;for(_=r.A.A,"k"===u.AF?(v=u,B=""===r.YS?_.BW("v")[0]:_.BM(r.YS)||_.BW("v")[0]):"v"===u.AF&&(B=u,v=""===r.YS?_.BW("k")[0]:_.BM(r.YS)||_.BW("k")[0]),l=0,o=r.F9.length;l=3){if(a[0].join("/")!==a[a.length-1].join("/")&&a.push([a[0][0],a[0][1]]),u.A.AJ["3d"])for(u.A.O4(),i=0,t=a.length;i=4)){if(u.A.AJ["3d"])for(u.A.O4(),i=0,t=a.length;iu.iY+u.F/2?"normal":"opposite"),r.M.BK=r.M.BJ=0,(-1!==u.BF.indexOf("scale-x")&&!u.CL||-1!==u.BF.indexOf("scale-y")&&u.CL)&&null===ZC._n_(r.M.o.angle)&&(r.M.AA=270),-1!==u.BF.indexOf("scale-x")&&!u.CL||-1!==u.BF.indexOf("scale-y")&&u.CL?(r.M.AA%180==90&&(r.M.BK-=(u.AW?-1:1)*(r.M.I/2-r.M.F/2),r.M.BJ-=r.M.I/2-r.M.F/2,"opposite"===r.MM&&(r.M.BJ=-r.M.I/2+r.M.F/2),"opposite"===x&&(r.M.BK-=r.M.F)),r.M.AA%180==0&&("opposite"===r.MM&&(r.M.BJ=-r.M.I+r.M.F),"opposite"===x&&(r.M.BK-=r.M.I))):(r.M.AA%180==90&&(r.M.BK-=r.M.I/2-r.M.F/2,r.M.BJ-=(u.AW?-1:1)*(r.M.I/2-r.M.F/2),"opposite"===r.MM&&(r.M.BK=r.M.I/2-r.M.F/2),"opposite"===x&&(r.M.BJ+=r.M.I)),r.M.AA%180==0&&"opposite"===x&&(r.M.BJ+=r.M.F)),r.M.BK+=r.A0C[0]+r.BK,r.M.BJ+=r.A0C[1]+r.BJ),u.A.AJ["3d"]&&(n=new ZC.CD(u.A,r.M.iX-ZC.AL.E1,r.M.iY-ZC.AL.E2,ZC.AL.FD),r.M.iX=n.EB[0],r.M.iY=n.EB[1]),ZC.DQ(r.M.iX+r.M.BK+(r.M.AA%180==0?r.M.I/2:r.M.F/2),r.A.A.P.iX-r.KE[0],r.A.A.P.iX+r.A.A.P.I+r.KE[0])&&ZC.DQ(r.M.iY+r.M.BJ+(r.M.AA%180==0?r.M.F/2:r.M.I/2),r.A.A.P.iY-r.KE[1],r.A.A.P.iY+r.A.A.P.F+r.KE[1])&&(r.M.paint(),r.M.EO(),!r.M.KC&&"normal"===zingchart.OBJECTMODE&&(u.E["marker_text_"+r.L]=r.M.AN,ZC.AM(_.A.K+"-map"))))){var I=ZC.AP.O8(_.G.K,_.K,r.M);ZC.AM(_.A.K+"-map").innerHTML=ZC.AM(_.A.K+"-map").innerHTML+I}}}else r.A.paintMarker(r)}};ZC.A0N=ZC.DR.CC(A0N);var VP={$i:function(e){var i=this;i.LX=null,i.A4N=0,i.OZ=[],i.BF=e,i.A3H=!0},add:function(e){var i=this;i.OZ.push(e),e.K5=i,e.LX=i.LX,e.BZ.TL=!0,e.X3=i.OZ.length-1,i.A3H=!1}};ZC.VP=ZC.C9.CC(VP);var E6={$i:function(e,i,t,n,a,l){var o=this;for(var r in o.LX=null,o.BZ=e,o.AX=null,o.A4O=0,o.HU=null,o.N=i||{},o.A4P=t||500,o.XD=n||-1,o.A0E=null,o.T8=null,o.OE=null,null!==ZC._n_(l)&&(o.T8=l),o.A4Q=ZC.E6.linear,null!==ZC._n_(a)&&""!==a&&(o.A4Q=a),o.ADJ={},o.C6={},o.ACL=[],o.RF=ZC._i_(o.A4P/ZC.PL.U4),o.RF>100&&(o.RF=100),(ZC.vml||ZC.mobile)&&(o.RF=ZC._i_(o.RF/4)),o.RF<5&&(o.RF=5),o.N)null!==ZC._n_(ZC.E6.GN[r])?o.C6[r]=o.BZ[ZC.E6.GN[r]]:o.C6[r]=o.BZ[r];o.Y=0,o.K5=null,o.X3=-1},status:function(){return this.Y+1>this.RF?0:1},step:function(){var e,i,t,n,a,l,o=this,r=1,s=o.LX.C.G.AD;if(o.Y++,o.Y>o.RF&&(o.Y===o.RF+1&&-1!==o.X3&&(o.K5.A4N++,o.K5.A4N===o.K5.OZ.length&&(o.K5.A3H=!0)),r=0),r){var A={};if(o.Y===o.RF)A=o.N,o.A4O=1;else for(var C in o.A4O=o.A4Q(o.Y,0,1,o.RF),o.N)switch(C){case"points":var c=[];for(a=0,l=o.N[C].length;a0?window.setTimeout(function(){t.start()},i+1):t.start()))},add:function(e){var i=this;e.LX=i,e.XD>0?(i.OZ.push(e),window.setTimeout(function(){e.BZ.TL=!0,i.RG||i.start()},e.XD+1)):(e.BZ.TL=!0,i.OZ.push(e),i.RG||i.start())},start:function(){var e=this;e.RG=!0,ZC.AP.C0("animation_start",e.C.A,{id:e.C.A.K,graphid:e.C.K});var i=!0;!function t(){i||e.step(),i=!1,e.RG&&(e.C4=window.requestAnimFrame(t))}()},step:function(){var e,i=this,t=0;if(i.RG){for(var n=0,a=i.OZ.length;nZC.AP.NA(i)?1:-1});var e='',n=i.innerHTML.indexOf(e);-1!==n?i.innerHTML=i.innerHTML.substring(0,n+e.length)+t.C.a11y()+t.C.B0.HE.join("")+i.innerHTML.substring(n+e.length):i.innerHTML+=t.C.a11y()+t.C.B0.HE.join("")}},33),t.C.A72(),t.RG=!1;for(var n=0,a=t.OZ.length;n0&&c<1&&(c*=f),s=[].concat(h);var _=0,g="";for(A=1,t=h.length-1;t>=0;t--)h[t].values&&null!==ZC._n_(h[t].values[0])&&h[t].values[0]",h[t].slice=Z,d.push(h[t]),h.splice(t,1),A++);_>0&&(A>2?(C={values:[_],detach:!1,"data-group":[1],"tooltip-text":g=g.substring(0,g.length-4)},ZC._cp_(u,C),h.push(C),zingchart.bind(e.id,"plot_click",function(i){if(i.xdata.group){var t=zingchart.getLoader(i.id);if(!t)return;var n=zingchart.getGraph(t,i.graphid);for(var a in n.getAttributes())"pie-sel-"===a.substring(0,8)&&n.setAttribute(a,null);zingchart.exec(e.id,"setseriesdata",{data:d}),window.setTimeout(function(){var i=zingchart.exec(e.id,"getobjectinfo",{object:"node",plotindex:0,nodeindex:0}),t={id:"navpie_btnback",x:i.x,y:i.y,text:"< Back",anchor:"c",cursor:"hand"};ZC._cp_(p,t),zingchart.exec(e.id,"addobject",{type:"label",data:t})},1)}}),zingchart.bind(e.id,"label_click",function(i){if("navpie_btnback"===i.label.id){var t=zingchart.getLoader(i.id);if(!t)return;var n=zingchart.getGraph(t,i.graphid);for(var a in n.getAttributes())"pie-sel-"===a.substring(0,8)&&n.setAttribute(a,null);zingchart.exec(e.id,"removeobject",{type:"label",id:"navpie_btnback"}),zingchart.exec(e.id,"setseriesdata",{data:h})}})):o.series=[].concat(s))}else{var v=0,B=[];for(t=0;t0&&c<1&&(c*=v),s=[].concat(h);var b=[],m=[];for(A=1,t=h.length-1;t>=0;t--)if(B[t]";d.push(h[t]),h.splice(t,1),A++}if(b.length)if(A>2){for(n=0;n array( - 'markets_endpoint' => 'https://api-pub.bitfinex.com/v2/tickers?symbols=ALL', - 'markets_nested_path' => false, // Delimit multiple depths with > - 'all_markets_support' => '0', // false|true[IF key name is the ID]|market_info_key_name - 'search_endpoint' => false, // false|[API endpoint with all market pairings] - ), - - 'bitflyer' => array( 'markets_endpoint' => 'https://api.bitflyer.com/v1/getticker?product_code=[MARKET]', 'markets_nested_path' => false, // Delimit multiple depths with > @@ -543,10 +535,6 @@ function etherscan($block_info) { global $ct; - if ( trim($ct['conf']['ext_apis']['etherscan_api_key']) == '' ) { - return false; - } - $url = 'https://api.etherscan.io/api?module=proxy&action=eth_blockNumber&apikey=' . $ct['conf']['ext_apis']['etherscan_api_key']; $response = @$ct['cache']->ext_data('url', $url, $ct['conf']['power']['blockchain_stats_cache_time']); @@ -2666,21 +2654,6 @@ function market($asset_symb, $sel_exchange, $mrkt_id, $pair=false) { elseif ( $sel_exchange == 'alphavantage_stock' ) { - - - if ( trim($ct['conf']['ext_apis']['alphavantage_api_key']) == null ) { - - $ct['gen']->log( - 'notify_error', - '"alphavantage_api_key" (free API key) is not configured in Admin Config EXTERNAL APIS section', - false, - 'alphavantage_api_key' - ); - - return false; - - } - $result = array( 'alphavantage_asset' => preg_replace("/\.(.*)/i", "", $data["01. symbol"]), @@ -2761,7 +2734,7 @@ function market($asset_symb, $sel_exchange, $mrkt_id, $pair=false) { - elseif ( $sel_exchange == 'bitfinex' || $sel_exchange == 'ethfinex' ) { + elseif ( $sel_exchange == 'bitfinex' ) { $finex_price = $data[( sizeof($data) - 4 )]; diff --git a/app-lib/php/classes/core/asset.php b/app-lib/php/classes/core/asset.php index 36cce388f..2424a844a 100644 --- a/app-lib/php/classes/core/asset.php +++ b/app-lib/php/classes/core/asset.php @@ -1503,11 +1503,7 @@ function market_id_parse($exchange_key, $market_id, $known_pairing=false, $known elseif ( $exchange_key == 'bybit' && substr($cleaned_market_id, 0, 4) == '1000' ) { $cleaned_market_id = substr($cleaned_market_id, 4); } - elseif ( - $exchange_key == 'bitfinex' && substr($cleaned_market_id, 0, 1) == 't' - || - $exchange_key == 'ethfinex' && substr($cleaned_market_id, 0, 1) == 't' - ) { + elseif ( $exchange_key == 'bitfinex' && substr($cleaned_market_id, 0, 1) == 't' ) { $cleaned_market_id = substr($cleaned_market_id, 1); } diff --git a/app-lib/php/classes/core/cache.php b/app-lib/php/classes/core/cache.php index dad278c3b..faa9f93e9 100644 --- a/app-lib/php/classes/core/cache.php +++ b/app-lib/php/classes/core/cache.php @@ -2766,6 +2766,33 @@ function ext_data($mode, $request_params, $ttl, $api_server=null, $post_encoding $endpoint_tld_or_ip = $ct['gen']->get_tld_or_ip($api_endpoint); + + if ( $endpoint_tld_or_ip == 'alphavantage.co' && trim($ct['conf']['ext_apis']['alphavantage_api_key']) == '' ) { + + $ct['gen']->log( + 'notify_error', + '"alphavantage_api_key" (free API key) is not configured in Admin Config EXTERNAL APIS section', + false, + 'alphavantage_api_key' + ); + + return false; + + } + elseif ( $endpoint_tld_or_ip == 'etherscan.io' && trim($ct['conf']['ext_apis']['etherscan_api_key']) == '' ) { + + $ct['gen']->log( + 'notify_error', + '"etherscan_api_key" (free API key) is not configured in Admin Config EXTERNAL APIS section', + false, + 'etherscan_api_key' + ); + + return false; + + } + + // IPV6 friendly filename (no illegal filename characters) $safe_name = $ct['gen']->safe_name($endpoint_tld_or_ip); diff --git a/app-lib/php/classes/core/general.php b/app-lib/php/classes/core/general.php index 66ccd9737..af893bf42 100644 --- a/app-lib/php/classes/core/general.php +++ b/app-lib/php/classes/core/general.php @@ -2705,26 +2705,17 @@ function sanitize_string($method, $ext_key, $data, $mysqli_connection=false) { // ***WHEN HASHES / DIGESTS ARE RUN THROUGH THE HEXIDECIMAL DECODER FURTHER DOWN IN THIS FUNCTION***) if ( - // QR Code Generator (GET / POST, for crypto addresses) - $ext_key == 'qr_code_crypto_address' + // Security tokens, WITH 'token' IN NAME + stristr($ext_key, 'token') - // General security token (GET ONLY, for user area [NOT logged into admin]) - || strtolower($method) == 'get' && $ext_key == 'token' + // Security tokens, WITH 'nonce' IN NAME + || stristr($ext_key, 'nonce') - // Admin hashed nonce security tokens (GET ONLY...for EXPIRED logout link UX, WE *CAN SAFELY* SKIP $ct['gen']->admin_logged_in() REQUIREMENT) - || strtolower($method) == 'get' && $ext_key == 'admin_nonce' + // Admin 2FA setup security token + || $ext_key == '2fa_setup' - // Admin 2FA setup security token (GET ONLY) - || $ct['gen']->admin_logged_in() && strtolower($method) == 'get' && $ext_key == '2fa_setup' - - // Admin iframe security tokens (GET ONLY) - || $ct['gen']->admin_logged_in() && strtolower($method) == 'get' && $ext_key == 'iframe_nonce' - - // Admin hashed nonce security tokens (POST ONLY) - || $ct['gen']->admin_logged_in() && strtolower($method) == 'post' && $ext_key == 'admin_nonce' - - // Admin medium security level's hashed nonce security token (POST ONLY) - || $ct['gen']->admin_logged_in() && strtolower($method) == 'post' && $ext_key == 'medium_security_nonce' + // QR Code Generator (for crypto addresses) + || $ext_key == 'qr_code_crypto_address' ) { return $data; diff --git a/app-lib/php/inline/ajax/jstree/asset-markets.php b/app-lib/php/inline/ajax/jstree/asset-markets.php index 7b3311647..f1502db55 100644 --- a/app-lib/php/inline/ajax/jstree/asset-markets.php +++ b/app-lib/php/inline/ajax/jstree/asset-markets.php @@ -30,7 +30,7 @@ { "text" : "", - "state" : { "opened" : true, "disabled" : }, + "state" : { "opened" : true, "disabled" : }, "children" : [ @@ -41,7 +41,7 @@ { "text" : "", - "state" : { "selected" : false, "disabled" : }, + "state" : { "selected" : false, "disabled" : }, "icon" : "jstree-file", "a_attr": { "title" : "Market ID: " } diff --git a/app-lib/php/inline/ajax/setup-wizards/markets/markets-add/add-markets-step-3.php b/app-lib/php/inline/ajax/setup-wizards/markets/markets-add/add-markets-step-3.php index 3c8f1f51d..b0ec6509f 100644 --- a/app-lib/php/inline/ajax/setup-wizards/markets/markets-add/add-markets-step-3.php +++ b/app-lib/php/inline/ajax/setup-wizards/markets/markets-add/add-markets-step-3.php @@ -205,8 +205,9 @@ -FOR QUICKER / MORE SPECIFIC SEARCH RESULTS, TRY INCLUDING A PAIRING IN YOUR SEARCH PARAMETERS.

+FOR QUICKER / MORE SPECIFIC SEARCH RESULTS, TRY INCLUDING A PAIRING IN YOUR SEARCH PARAMETERS (example: /).

diff --git a/app-lib/php/inline/ajax/setup-wizards/markets/markets-remove/remove-markets-step-3/remove-selected-assets.php b/app-lib/php/inline/ajax/setup-wizards/markets/markets-remove/remove-markets-step-3/remove-selected-assets.php index c45d12806..13364a733 100644 --- a/app-lib/php/inline/ajax/setup-wizards/markets/markets-remove/remove-markets-step-3/remove-selected-assets.php +++ b/app-lib/php/inline/ajax/setup-wizards/markets/markets-remove/remove-markets-step-3/remove-selected-assets.php @@ -38,7 +38,7 @@

-
BTC / ETH / SOL assets are required (for currency conversions / other PRIMARY features), SO THEY CANNOT BE REMOVED.
+
BTC / ETH / SOL assets are required (for currency conversions / other app features), SO THEY CANNOT BE REMOVED.
diff --git a/app-lib/php/inline/ajax/setup-wizards/markets/markets-remove/remove-markets-step-3/remove-selected-markets.php b/app-lib/php/inline/ajax/setup-wizards/markets/markets-remove/remove-markets-step-3/remove-selected-markets.php index 48ff635cb..e2a52f297 100644 --- a/app-lib/php/inline/ajax/setup-wizards/markets/markets-remove/remove-markets-step-3/remove-selected-markets.php +++ b/app-lib/php/inline/ajax/setup-wizards/markets/markets-remove/remove-markets-step-3/remove-selected-markets.php @@ -14,11 +14,11 @@ if ( this.value == "BTC" || this.value == "ETH" || this.value == "SOL" ) { $("#asset_markets_alerts").show(250, "linear"); // 0.25 seconds - $("#asset_markets_alerts").html("BTC / ETH / SOL assets require AT LEAST ONE EXCHANGE PER-PAIRING (for currency conversions / other PRIMARY features), SO THE FIRST EXCHANGE INSIDE EACH PAIRING CANNOT BE REMOVED."); + $("#asset_markets_alerts").html("BTC / ETH / SOL assets require AT LEAST ONE EXCHANGE PER-PAIRING (for currency conversions / other app features), SO THE FIRST EXCHANGE INSIDE EACH PAIRING CANNOT BE REMOVED."); } else { - $("#asset_markets_alerts").hide(250, "linear"); // 0.25 seconds - $("#asset_markets_alerts").html(""); + $("#asset_markets_alerts").show(250, "linear"); // 0.25 seconds + $("#asset_markets_alerts").html("BTC / ETH / SOL pairings are required (for currency conversions / other app features), SO THEY CANNOT BE REMOVED, AND THE FIRST EXCHANGE INSIDE THESE PAIRINGS ALSO CANNOT BE REMOVED."); } } @@ -88,7 +88,7 @@

- +
diff --git a/app-lib/php/inline/config/config-auto-adjust.php b/app-lib/php/inline/config/config-auto-adjust.php index 466235865..2291347ec 100644 --- a/app-lib/php/inline/config/config-auto-adjust.php +++ b/app-lib/php/inline/config/config-auto-adjust.php @@ -77,12 +77,8 @@ $ct['conf']['news']['strict_news_feed_servers'] = array_map("strtolower", $ct['conf']['news']['strict_news_feed_servers']); -$ct['conf']['currency']['conversion_currency_symbols'] = array_map("strtolower", $ct['conf']['currency']['conversion_currency_symbols']); - $ct['conf']['currency']['bitcoin_preferred_currency_markets'] = array_map("strtolower", $ct['conf']['currency']['bitcoin_preferred_currency_markets']); -$ct['conf']['currency']['crypto_pair'] = array_map("strtolower", $ct['conf']['currency']['crypto_pair']); - $ct['conf']['currency']['crypto_pair_preferred_markets'] = array_map("strtolower", $ct['conf']['currency']['crypto_pair_preferred_markets']); $ct['conf']['charts_alerts']['tracked_markets'] = array_map("strtolower", $ct['conf']['charts_alerts']['tracked_markets']); @@ -205,7 +201,7 @@ $conversion_array = explode('=', $val); $conversion_array = array_map("trim", $conversion_array); // Auto-formatting - $ct['opt_conf']['conversion_currency_symbols'][ strtolower($conversion_array[0]) ] = strtoupper($conversion_array[1]); + $ct['opt_conf']['conversion_currency_symbols'][ strtolower($conversion_array[0]) ] = $conversion_array[1]; } // Alphabetically sort @@ -270,7 +266,7 @@ $conversion_array = explode('=', $val); $conversion_array = array_map("trim", $conversion_array); // Auto-formatting - $ct['opt_conf']['crypto_pair'][ strtolower($conversion_array[0]) ] = strtoupper($conversion_array[1]); + $ct['opt_conf']['crypto_pair'][ strtolower($conversion_array[0]) ] = $conversion_array[1]; } // Alphabetically sort @@ -500,7 +496,8 @@ && !isset($ct['opt_conf']['conversion_currency_symbols'][$btc_currency_pair]) ) { // Just set the ticker as the symbol, since we really should include this automatically for better (more) currency support - $ct['opt_conf']['conversion_currency_symbols'][$btc_currency_pair] = strtoupper($btc_currency_pair); + // (ADD A SPACE AT END, SO IT DOESN'T LOOK WEIRD) + $ct['opt_conf']['conversion_currency_symbols'][$btc_currency_pair] = strtoupper($btc_currency_pair) . ' '; } } diff --git a/config.php b/config.php index 012bedcb4..ae1afced8 100644 --- a/config.php +++ b/config.php @@ -844,7 +844,7 @@ // MANA 'mana-2||binance||btc||both', 'mana-3||kucoin||btc||none', - 'mana-4||ethfinex||usd||none', + 'mana-4||bitfinex||usd||none', 'mana-5||binance||eth||none', @@ -2670,7 +2670,7 @@ 'usd' => array( 'coinbase' => 'MANA-USD', - 'ethfinex' => 'tMNAUSD', + 'bitfinex' => 'tMNAUSD', 'presale_usd_value' => 'mana', ), diff --git a/plugins/address-balance-tracker/plug-lib/plug-class.php b/plugins/address-balance-tracker/plug-lib/plug-class.php index e0e250a4c..669927f30 100644 --- a/plugins/address-balance-tracker/plug-lib/plug-class.php +++ b/plugins/address-balance-tracker/plug-lib/plug-class.php @@ -53,7 +53,7 @@ function btc_addr_bal($address) { $data = json_decode($response, true); - if ( isset($data['final_balance']) ) { + if ( isset($data['final_balance']) && is_numeric($data['final_balance']) ) { return $ct['var']->num_to_str( $data['final_balance'] / 100000000 ); // Convert sats to BTC } elseif ( !isset($data['address']) ) { @@ -91,8 +91,8 @@ function eth_addr_bal($address) { $data = json_decode($response, true); - if ( isset($data['result']) ) { - return $ct['var']->num_to_str( $data['result'] / 1000000000000000000 ); // Convert wei to ETH + if ( isset($data['result']) && is_numeric($data['result']) ) { + return $ct['var']->num_to_str($data['result'] / 1000000000000000000); // Convert wei to ETH } elseif ( !isset($data['message']) ) { @@ -128,10 +128,10 @@ function sol_addr_bal($address=false, $spl_token=false) { if ( isset($data['value']) ) { - if ( $spl_token == false ) { + if ( $spl_token == false && is_numeric($data['value']) ) { return $ct['var']->num_to_str( $data['value'] / 1000000000 ); // Convert lamports to SOL } - else { + elseif ( isset($data['value']['amount']) && is_numeric($data['value']['amount']) ) { $divide_by = str_pad(1, (1 + $data['value']['decimals']), "0"); return $ct['var']->num_to_str( $data['value']['amount'] / $divide_by ); // Convert to spl token's unit value } diff --git a/templates/back-end/main-config.template b/templates/back-end/main-config.template index 012bedcb4..ae1afced8 100644 --- a/templates/back-end/main-config.template +++ b/templates/back-end/main-config.template @@ -844,7 +844,7 @@ $ct['conf']['charts_alerts']['tracked_markets'] = array( // MANA 'mana-2||binance||btc||both', 'mana-3||kucoin||btc||none', - 'mana-4||ethfinex||usd||none', + 'mana-4||bitfinex||usd||none', 'mana-5||binance||eth||none', @@ -2670,7 +2670,7 @@ $ct['conf']['assets'] = array( 'usd' => array( 'coinbase' => 'MANA-USD', - 'ethfinex' => 'tMNAUSD', + 'bitfinex' => 'tMNAUSD', 'presale_usd_value' => 'mana', ), diff --git a/templates/interface/css/root-css-combined.php b/templates/interface/css/root-css-combined.php index 91d3c4924..f3b02af71 100644 --- a/templates/interface/css/root-css-combined.php +++ b/templates/interface/css/root-css-combined.php @@ -23,8 +23,12 @@ // Loop the css Array foreach ($css as $css_file) { - // Load the content of the css file - $css_content .= "\n\n\n\n" . '/******* COMBINED CSS FILE: '.$css_file.' *******/ ' . "\n\n\n\n" . file_get_contents($css_file); + +$file_contents = file_get_contents($css_file); + +// Load the content of the css file +$css_content .= "\n\n\n\n" . '/******* COMBINED CSS FILE: '.$css_file.' *******/ ' . "\n\n\n\n" . $file_contents; + } // print the css content diff --git a/templates/interface/css/style.css b/templates/interface/css/style.css index 017841dc2..39341e6e2 100644 --- a/templates/interface/css/style.css +++ b/templates/interface/css/style.css @@ -157,13 +157,6 @@ input[type=range]::-moz-range-thumb { } -fieldset { - width: auto; - padding: 25px; /* To give a bit of padding on the left and right */ - border-radius: 8px; -} - - legend { float: none !important; width:auto; @@ -443,6 +436,7 @@ border: 0.2em solid #808080 !important; .chart_wrapper { position: relative; border-radius: 0.9em; +min-width: 100% !important; } @@ -728,6 +722,11 @@ padding-right: 9px; } +#admin_wrapper .full_width_wrapper { +margin-left: 0.45em !important; +} + + .countdown_notice { display: inline; float: right; @@ -1606,4 +1605,15 @@ display: none; } +/* --------------------------------------------------- + *fit-content* CAN FLIP OUT COLOR-CODING IN EDITORS +----------------------------------------------------- */ + + +fieldset { + min-width: fit-content !important; + padding: 25px; /* To give a bit of padding on the left and right */ + border-radius: 8px; +} + diff --git a/templates/interface/php/admin/admin-sections/apis/webhook-int-api.php b/templates/interface/php/admin/admin-sections/apis/webhook-int-api.php index 4eaa401b9..b41fbba8d 100644 --- a/templates/interface/php/admin/admin-sections/apis/webhook-int-api.php +++ b/templates/interface/php/admin/admin-sections/apis/webhook-int-api.php @@ -504,7 +504,6 @@ "coingecko_usd", "coinspot", "crypto.com", - "ethfinex", "gateio", "gemini", "hitbtc", diff --git a/templates/interface/php/wrap/wrap-elements/head-tag-contents.php b/templates/interface/php/wrap/wrap-elements/head-tag-contents.php index 20df65218..bd4b18173 100644 --- a/templates/interface/php/wrap/wrap-elements/head-tag-contents.php +++ b/templates/interface/php/wrap/wrap-elements/head-tag-contents.php @@ -198,23 +198,6 @@ list_files($preloaded_files_dir); - - $loop = 0; - foreach ( $preloaded_files as $preload_file ) { - ?> - - var loader_image_ = new Image(); - loader_image_.src = '/'; - - list_files($preloaded_files_dir); + + $loop = 0; + foreach ( $preloaded_files as $preload_file ) { + ?> + + var loader_image_ = new Image(); + loader_image_.src = '/'; + + diff --git a/templates/interface/php/wrap/wrap-elements/help-faq-modal.php b/templates/interface/php/wrap/wrap-elements/help-faq-modal.php index e19313c25..288f5f341 100644 --- a/templates/interface/php/wrap/wrap-elements/help-faq-modal.php +++ b/templates/interface/php/wrap/wrap-elements/help-faq-modal.php @@ -363,7 +363,7 @@ Support for over 70 exchanges (contact me to request more):

-aevo_futures / alphavantage_stock / binance / binance_us / bit2c / bitbns / bitfinex / bitflyer / bitmart / bitmex / bitmex_u20 / bitmex_z20 / bitso / bitstamp / btcmarkets / btcturk / buyucoin / bybit / cex / coinbase / coindcx / coinex / coingecko_aed / coingecko_ars / coingecko_bdt / coingecko_btc / coingecko_clp / coingecko_czk / coingecko_dkk / coingecko_eth / coingecko_gel / coingecko_hkd / coingecko_huf / coingecko_idr / coingecko_inr / coingecko_kwd / coingecko_lkr / coingecko_myr / coingecko_ngn / coingecko_nis / coingecko_nok / coingecko_nzd / coingecko_php / coingecko_pkr / coingecko_pln / coingecko_rmb / coingecko_rub / coingecko_sar / coingecko_sek / coingecko_sgd / coingecko_terminal / coingecko_thb / coingecko_twd / coingecko_uah / coingecko_usd / coingecko_vnd / coinspot / crypto.com / ethfinex / gateio / gemini / hitbtc / huobi / idex / jupiter_ag / korbit / kraken / kucoin / loopring_amm / luno / okcoin / okex / poloniex / presale_usd_value / unocoin / upbit / wazirx / zebpay +aevo_futures / alphavantage_stock / binance / binance_us / bit2c / bitbns / bitfinex / bitflyer / bitmart / bitmex / bitmex_u20 / bitmex_z20 / bitso / bitstamp / btcmarkets / btcturk / buyucoin / bybit / cex / coinbase / coindcx / coinex / coingecko_aed / coingecko_ars / coingecko_bdt / coingecko_btc / coingecko_clp / coingecko_czk / coingecko_dkk / coingecko_eth / coingecko_gel / coingecko_hkd / coingecko_huf / coingecko_idr / coingecko_inr / coingecko_kwd / coingecko_lkr / coingecko_myr / coingecko_ngn / coingecko_nis / coingecko_nok / coingecko_nzd / coingecko_php / coingecko_pkr / coingecko_pln / coingecko_rmb / coingecko_rub / coingecko_sar / coingecko_sek / coingecko_sgd / coingecko_terminal / coingecko_thb / coingecko_twd / coingecko_uah / coingecko_usd / coingecko_vnd / coinspot / crypto.com / gateio / gemini / hitbtc / huobi / idex / jupiter_ag / korbit / kraken / kucoin / loopring_amm / luno / okcoin / okex / poloniex / presale_usd_value / unocoin / upbit / wazirx / zebpay