travel/admin/node_modules/tui-chart/dist/tui-chart-polyfill.min.js

26 lines
518 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*!
* tui-chart-polyfill.min
* @fileoverview tui-chart
* @author NHN. FE Development Lab <dl_javascript@nhn.com>
* @version 3.11.3
* @license MIT
* @link https://github.com/nhn/tui.chart
* bundle created at "Fri Jan 29 2021 15:51:13 GMT+0900 (Korean Standard Time)"
*/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("raphael")):"function"==typeof define&&define.amd?define(["raphael"],e):"object"==typeof exports?exports.chart=e(require("raphael")):(t.tui=t.tui||{},t.tui.chart=e(t.Raphael))}(this,function(t){return function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var i={};return e.m=t,e.c=i,e.p="/dist/",e(0)}([function(t,e,i){t.exports=i(2)},,function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}i(3),i(53),i(58),i(62),i(65),i(68),i(83),i(86),i(92),i(96),i(118),i(121),i(126),i(129);var o=i(133),r=n(o);t.exports=r["default"]},function(t,e,i){var n=i(4);t.exports=n},function(t,e,i){i(5);var n=i(39),o=n.Object;t.exports=function(t,e){return o.create(t,e)}},function(t,e,i){var n=i(6),o=i(9),r=i(49);n({target:"Object",stat:!0,sham:!o},{create:r})},function(t,e,i){var n=i(7),o=i(8).f,r=i(22),a=i(25),s=i(26),u=i(36),l=i(48);t.exports=function(t,e){var i,h,c,p,d,f,m=t.target,g=t.global,y=t.stat;if(h=g?n:y?n[m]||s(m,{}):(n[m]||{}).prototype)for(c in e){if(d=e[c],t.noTargetGet?(f=o(h,c),p=f&&f.value):p=h[c],i=l(g?c:m+(y?".":"#")+c,t.forced),!i&&void 0!==p){if(typeof d==typeof p)continue;u(d,p)}(t.sham||p&&p.sham)&&r(d,"sham",!0),a(h,c,d,t)}}},function(t,e){(function(e){var i=function(t){return t&&t.Math==Math&&t};t.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof e&&e)||Function("return this")()}).call(e,function(){return this}())},function(t,e,i){var n=i(9),o=i(11),r=i(12),a=i(13),s=i(17),u=i(19),l=i(20),h=Object.getOwnPropertyDescriptor;e.f=n?h:function(t,e){if(t=a(t),e=s(e,!0),l)try{return h(t,e)}catch(i){}if(u(t,e))return r(!o.f.call(t,e),t[e])}},function(t,e,i){var n=i(10);t.exports=!n(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e){"use strict";var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!i.call({1:2},1);e.f=o?function(t){var e=n(this,t);return!!e&&e.enumerable}:i},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,i){var n=i(14),o=i(16);t.exports=function(t){return n(o(t))}},function(t,e,i){var n=i(10),o=i(15),r="".split;t.exports=n(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==o(t)?r.call(t,""):Object(t)}:Object},function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,i){var n=i(18);t.exports=function(t,e){if(!n(t))return t;var i,o;if(e&&"function"==typeof(i=t.toString)&&!n(o=i.call(t)))return o;if("function"==typeof(i=t.valueOf)&&!n(o=i.call(t)))return o;if(!e&&"function"==typeof(i=t.toString)&&!n(o=i.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},function(t,e,i){var n=i(9),o=i(10),r=i(21);t.exports=!n&&!o(function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})},function(t,e,i){var n=i(7),o=i(18),r=n.document,a=o(r)&&o(r.createElement);t.exports=function(t){return a?r.createElement(t):{}}},function(t,e,i){var n=i(9),o=i(23),r=i(12);t.exports=n?function(t,e,i){return o.f(t,e,r(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e,i){var n=i(9),o=i(20),r=i(24),a=i(17),s=Object.defineProperty;e.f=n?s:function(t,e,i){if(r(t),e=a(e,!0),r(i),o)try{return s(t,e,i)}catch(n){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},function(t,e,i){var n=i(18);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,i){var n=i(7),o=i(22),r=i(19),a=i(26),s=i(27),u=i(29),l=u.get,h=u.enforce,c=String(String).split("String");(t.exports=function(t,e,i,s){var u=!!s&&!!s.unsafe,l=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet;return"function"==typeof i&&("string"!=typeof e||r(i,"name")||o(i,"name",e),h(i).source=c.join("string"==typeof e?e:"")),t===n?void(l?t[e]=i:a(e,i)):(u?!p&&t[e]&&(l=!0):delete t[e],void(l?t[e]=i:o(t,e,i)))})(Function.prototype,"toString",function(){return"function"==typeof this&&l(this).source||s(this)})},function(t,e,i){var n=i(7),o=i(22);t.exports=function(t,e){try{o(n,t,e)}catch(i){n[t]=e}return e}},function(t,e,i){var n=i(28),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return o.call(t)}),t.exports=n.inspectSource},function(t,e,i){var n=i(7),o=i(26),r="__core-js_shared__",a=n[r]||o(r,{});t.exports=a},function(t,e,i){var n,o,r,a=i(30),s=i(7),u=i(18),l=i(22),h=i(19),c=i(31),p=i(35),d=s.WeakMap,f=function(t){return r(t)?o(t):n(t,{})},m=function(t){return function(e){var i;if(!u(e)||(i=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}};if(a){var g=new d,y=g.get,_=g.has,v=g.set;n=function(t,e){return v.call(g,t,e),e},o=function(t){return y.call(g,t)||{}},r=function(t){return _.call(g,t)}}else{var T=c("state");p[T]=!0,n=function(t,e){return l(t,T,e),e},o=function(t){return h(t,T)?t[T]:{}},r=function(t){return h(t,T)}}t.exports={set:n,get:o,has:r,enforce:f,getterFor:m}},function(t,e,i){var n=i(7),o=i(27),r=n.WeakMap;t.exports="function"==typeof r&&/native code/.test(o(r))},function(t,e,i){var n=i(32),o=i(34),r=n("keys");t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,i){var n=i(33),o=i(28);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=!1},function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++i+n).toString(36)}},function(t,e){t.exports={}},function(t,e,i){var n=i(19),o=i(37),r=i(8),a=i(23);t.exports=function(t,e){for(var i=o(e),s=a.f,u=r.f,l=0;l<i.length;l++){var h=i[l];n(t,h)||s(t,h,u(e,h))}}},function(t,e,i){var n=i(38),o=i(40),r=i(47),a=i(24);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(a(t)),i=r.f;return i?e.concat(i(t)):e}},function(t,e,i){var n=i(39),o=i(7),r=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?r(n[t])||r(o[t]):n[t]&&n[t][e]||o[t]&&o[t][e]}},function(t,e,i){var n=i(7);t.exports=n},function(t,e,i){var n=i(41),o=i(46),r=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,r)}},function(t,e,i){var n=i(19),o=i(13),r=i(42).indexOf,a=i(35);t.exports=function(t,e){var i,s=o(t),u=0,l=[];for(i in s)!n(a,i)&&n(s,i)&&l.push(i);for(;e.length>u;)n(s,i=e[u++])&&(~r(l,i)||l.push(i));return l}},function(t,e,i){var n=i(13),o=i(43),r=i(45),a=function(t){return function(e,i,a){var s,u=n(e),l=o(u.length),h=r(a,l);if(t&&i!=i){for(;l>h;)if(s=u[h++],s!=s)return!0}else for(;l>h;h++)if((t||h in u)&&u[h]===i)return t||h||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,e,i){var n=i(44),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},function(t,e,i){var n=i(44),o=Math.max,r=Math.min;t.exports=function(t,e){var i=n(t);return i<0?o(i+e,0):r(i,e)}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,i){var n=i(10),o=/#|\.prototype\./,r=function(t,e){var i=s[a(t)];return i==l||i!=u&&("function"==typeof e?n(e):!!e)},a=r.normalize=function(t){return String(t).replace(o,".").toLowerCase()},s=r.data={},u=r.NATIVE="N",l=r.POLYFILL="P";t.exports=r},function(t,e,i){var n,o=i(24),r=i(50),a=i(46),s=i(35),u=i(52),l=i(21),h=i(31),c=">",p="<",d="prototype",f="script",m=h("IE_PROTO"),g=function(){},y=function(t){return p+f+c+t+p+"/"+f+c},_=function(t){t.write(y("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=function(){var t,e=l("iframe"),i="java"+f+":";return e.style.display="none",u.appendChild(e),e.src=String(i),t=e.contentWindow.document,t.open(),t.write(y("document.F=Object")),t.close(),t.F},T=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(t){}T=n?_(n):v();for(var e=a.length;e--;)delete T[d][a[e]];return T()};s[m]=!0,t.exports=Object.create||function(t,e){var i;return null!==t?(g[d]=o(t),i=new g,g[d]=null,i[m]=t):i=T(),void 0===e?i:r(i,e)}},function(t,e,i){var n=i(9),o=i(23),r=i(24),a=i(51);t.exports=n?Object.defineProperties:function(t,e){r(t);for(var i,n=a(e),s=n.length,u=0;s>u;)o.f(t,i=n[u++],e[i]);return t}},function(t,e,i){var n=i(41),o=i(46);t.exports=Object.keys||function(t){return n(t,o)}},function(t,e,i){var n=i(38);t.exports=n("document","documentElement")},function(t,e,i){var n=i(54);t.exports=n},function(t,e,i){i(55);var n=i(39);t.exports=n.Object.assign},function(t,e,i){var n=i(6),o=i(56);n({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(t,e,i){"use strict";var n=i(9),o=i(10),r=i(51),a=i(47),s=i(11),u=i(57),l=i(14),h=Object.assign,c=Object.defineProperty;t.exports=!h||o(function(){if(n&&1!==h({b:1},h(c({},"a",{enumerable:!0,get:function(){c(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol(),o="abcdefghijklmnopqrst";return t[i]=7,o.split("").forEach(function(t){e[t]=t}),7!=h({},t)[i]||r(h({},e)).join("")!=o})?function(t,e){for(var i=u(t),o=arguments.length,h=1,c=a.f,p=s.f;o>h;)for(var d,f=l(arguments[h++]),m=c?r(f).concat(c(f)):r(f),g=m.length,y=0;g>y;)d=m[y++],n&&!p.call(f,d)||(i[d]=f[d]);return i}:h},function(t,e,i){var n=i(16);t.exports=function(t){return Object(n(t))}},function(t,e,i){var n=i(59);t.exports=n},function(t,e,i){i(60);var n=i(39);t.exports=n.Object.entries},function(t,e,i){var n=i(6),o=i(61).entries;n({target:"Object",stat:!0},{entries:function(t){return o(t)}})},function(t,e,i){var n=i(9),o=i(51),r=i(13),a=i(11).f,s=function(t){return function(e){for(var i,s=r(e),u=o(s),l=u.length,h=0,c=[];l>h;)i=u[h++],n&&!a.call(s,i)||c.push(t?[i,s[i]]:s[i]);return c}};t.exports={entries:s(!0),values:s(!1)}},function(t,e,i){var n=i(63);t.exports=n},function(t,e,i){i(64);var n=i(39);t.exports=n.Object.values},function(t,e,i){var n=i(6),o=i(61).values;n({target:"Object",stat:!0},{values:function(t){return o(t)}})},function(t,e,i){var n=i(66);t.exports=n},function(t,e,i){i(67);var n=i(39);t.exports=n.Object.keys},function(t,e,i){var n=i(6),o=i(57),r=i(51),a=i(10),s=a(function(){r(1)});n({target:"Object",stat:!0,forced:s},{keys:function(t){return r(o(t))}})},function(t,e,i){var n=i(69);t.exports=n},function(t,e,i){i(70);var n=i(82);t.exports=n("Array","forEach")},function(t,e,i){"use strict";var n=i(6),o=i(71);n({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,e,i){"use strict";var n=i(72).forEach,o=i(80),r=i(81),a=o("forEach"),s=r("forEach");t.exports=a&&s?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,i){var n=i(73),o=i(14),r=i(57),a=i(43),s=i(75),u=[].push,l=function(t){var e=1==t,i=2==t,l=3==t,h=4==t,c=6==t,p=5==t||c;return function(d,f,m,g){for(var y,_,v=r(d),T=o(v),b=n(f,m,3),x=a(T.length),A=0,D=g||s,E=e?D(d,x):i?D(d,0):void 0;x>A;A++)if((p||A in T)&&(y=T[A],_=b(y,A,v),t))if(e)E[A]=_;else if(_)switch(t){case 3:return!0;case 5:return y;case 6:return A;case 2:u.call(E,y)}else if(h)return!1;return c?-1:l||h?h:E}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},function(t,e,i){var n=i(74);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 0:return function(){return t.call(e)};case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,o){return t.call(e,i,n,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,i){var n=i(18),o=i(76),r=i(77),a=r("species");t.exports=function(t,e){var i;return o(t)&&(i=t.constructor,"function"!=typeof i||i!==Array&&!o(i.prototype)?n(i)&&(i=i[a],null===i&&(i=void 0)):i=void 0),new(void 0===i?Array:i)(0===e?0:e)}},function(t,e,i){var n=i(15);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,i){var n=i(7),o=i(32),r=i(19),a=i(34),s=i(78),u=i(79),l=o("wks"),h=n.Symbol,c=u?h:h&&h.withoutSetter||a;t.exports=function(t){return r(l,t)||(s&&r(h,t)?l[t]=h[t]:l[t]=c("Symbol."+t)),l[t]}},function(t,e,i){var n=i(10);t.exports=!!Object.getOwnPropertySymbols&&!n(function(){return!String(Symbol())})},function(t,e,i){var n=i(78);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,i){"use strict";var n=i(10);t.exports=function(t,e){var i=[][t];return!!i&&n(function(){i.call(null,e||function(){throw 1},1)})}},function(t,e,i){var n=i(9),o=i(10),r=i(19),a=Object.defineProperty,s={},u=function(t){throw t};t.exports=function(t,e){if(r(s,t))return s[t];e||(e={});var i=[][t],l=!!r(e,"ACCESSORS")&&e.ACCESSORS,h=r(e,0)?e[0]:u,c=r(e,1)?e[1]:void 0;return s[t]=!!i&&!o(function(){if(l&&!n)return!0;var t={length:-1};l?a(t,1,{enumerable:!0,get:u}):t[1]=1,i.call(t,h,c)})}},function(t,e,i){var n=i(7),o=i(73),r=Function.call;t.exports=function(t,e,i){return o(r,n[t].prototype[e],i)}},function(t,e,i){var n=i(84);t.exports=n},function(t,e,i){i(85);var n=i(39);t.exports=n.Array.isArray},function(t,e,i){var n=i(6),o=i(76);n({target:"Array",stat:!0},{isArray:o})},function(t,e,i){var n=i(87);t.exports=n},function(t,e,i){i(88);var n=i(82);t.exports=n("Array","filter")},function(t,e,i){"use strict";var n=i(6),o=i(72).filter,r=i(89),a=i(81),s=r("filter"),u=a("filter");n({target:"Array",proto:!0,forced:!s||!u},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,i){var n=i(10),o=i(77),r=i(90),a=o("species");t.exports=function(t){return r>=51||!n(function(){var e=[],i=e.constructor={};return i[a]=function(){return{foo:1}},1!==e[t](Boolean).foo})}},function(t,e,i){var n,o,r=i(7),a=i(91),s=r.process,u=s&&s.versions,l=u&&u.v8;l?(n=l.split("."),o=n[0]+n[1]):a&&(n=a.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/),n&&(o=n[1]))),t.exports=o&&+o},function(t,e,i){var n=i(38);t.exports=n("navigator","userAgent")||""},function(t,e,i){var n=i(93);t.exports=n},function(t,e,i){i(94);var n=i(82);t.exports=n("Array","reduce")},function(t,e,i){"use strict";var n=i(6),o=i(95).left,r=i(80),a=i(81),s=r("reduce"),u=a("reduce",{1:0});n({target:"Array",proto:!0,forced:!s||!u},{reduce:function(t){return o(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(t,e,i){var n=i(74),o=i(57),r=i(14),a=i(43),s=function(t){return function(e,i,s,u){n(i);var l=o(e),h=r(l),c=a(l.length),p=t?c-1:0,d=t?-1:1;if(s<2)for(;;){if(p in h){u=h[p],p+=d;break}if(p+=d,t?p<0:c<=p)throw TypeError("Reduce of empty array with no initial value")}for(;t?p>=0:c>p;p+=d)p in h&&(u=i(u,h[p],p,l));return u}};t.exports={left:s(!1),right:s(!0)}},function(t,e,i){var n=i(97);t.exports=n},function(t,e,i){i(98),i(109);var n=i(39);t.exports=n.Array.from},function(t,e,i){"use strict";var n=i(99).charAt,o=i(29),r=i(100),a="String Iterator",s=o.set,u=o.getterFor(a);r(String,"String",function(t){s(this,{type:a,string:String(t),index:0})},function(){var t,e=u(this),i=e.string,o=e.index;return o>=i.length?{value:void 0,done:!0}:(t=n(i,o),e.index+=t.length,{value:t,done:!1})})},function(t,e,i){var n=i(44),o=i(16),r=function(t){return function(e,i){var r,a,s=String(o(e)),u=n(i),l=s.length;return u<0||u>=l?t?"":void 0:(r=s.charCodeAt(u),r<55296||r>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):r:t?s.slice(u,u+2):(r-55296<<10)+(a-56320)+65536)}};t.exports={codeAt:r(!1),charAt:r(!0)}},function(t,e,i){"use strict";var n=i(6),o=i(101),r=i(103),a=i(107),s=i(105),u=i(22),l=i(25),h=i(77),c=i(33),p=i(106),d=i(102),f=d.IteratorPrototype,m=d.BUGGY_SAFARI_ITERATORS,g=h("iterator"),y="keys",_="values",v="entries",T=function(){return this};t.exports=function(t,e,i,h,d,b,x){o(i,e,h);var A,D,E,S=function(t){if(t===d&&w)return w;if(!m&&t in M)return M[t];switch(t){case y:return function(){return new i(this,t)};case _:return function(){return new i(this,t)};case v:return function(){return new i(this,t)}}return function(){return new i(this)}},C=e+" Iterator",L=!1,M=t.prototype,P=M[g]||M["@@iterator"]||d&&M[d],w=!m&&P||S(d),O="Array"==e?M.entries||P:P;if(O&&(A=r(O.call(new t)),f!==Object.prototype&&A.next&&(c||r(A)===f||(a?a(A,f):"function"!=typeof A[g]&&u(A,g,T)),s(A,C,!0,!0),c&&(p[C]=T))),d==_&&P&&P.name!==_&&(L=!0,w=function(){return P.call(this)}),c&&!x||M[g]===w||u(M,g,w),p[e]=w,d)if(D={values:S(_),keys:b?w:S(y),entries:S(v)},x)for(E in D)!m&&!L&&E in M||l(M,E,D[E]);else n({target:e,proto:!0,forced:m||L},D);return D}},function(t,e,i){"use strict";var n=i(102).IteratorPrototype,o=i(49),r=i(12),a=i(105),s=i(106),u=function(){return this};t.exports=function(t,e,i){var l=e+" Iterator";return t.prototype=o(n,{next:r(1,i)}),a(t,l,!1,!0),s[l]=u,t}},function(t,e,i){"use strict";var n,o,r,a=i(103),s=i(22),u=i(19),l=i(77),h=i(33),c=l("iterator"),p=!1,d=function(){return this};[].keys&&(r=[].keys(),"next"in r?(o=a(a(r)),o!==Object.prototype&&(n=o)):p=!0),void 0==n&&(n={}),h||u(n,c)||s(n,c,d),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},function(t,e,i){var n=i(19),o=i(57),r=i(31),a=i(104),s=r("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=o(t),n(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,i){var n=i(10);t.exports=!n(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},function(t,e,i){var n=i(23).f,o=i(19),r=i(77),a=r("toStringTag");t.exports=function(t,e,i){t&&!o(t=i?t:t.prototype,a)&&n(t,a,{configurable:!0,value:e})}},function(t,e){t.exports={}},function(t,e,i){var n=i(24),o=i(108);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(i,[]),e=i instanceof Array}catch(r){}return function(i,r){return n(i),o(r),e?t.call(i,r):i.__proto__=r,i}}():void 0)},function(t,e,i){var n=i(18);t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,i){var n=i(6),o=i(110),r=i(117),a=!r(function(t){Array.from(t)});n({target:"Array",stat:!0,forced:a},{from:o})},function(t,e,i){"use strict";var n=i(73),o=i(57),r=i(111),a=i(112),s=i(43),u=i(113),l=i(114);t.exports=function(t){var e,i,h,c,p,d,f=o(t),m="function"==typeof this?this:Array,g=arguments.length,y=g>1?arguments[1]:void 0,_=void 0!==y,v=l(f),T=0;if(_&&(y=n(y,g>2?arguments[2]:void 0,2)),void 0==v||m==Array&&a(v))for(e=s(f.length),i=new m(e);e>T;T++)d=_?y(f[T],T):f[T],u(i,T,d);else for(c=v.call(f),p=c.next,i=new m;!(h=p.call(c)).done;T++)d=_?r(c,y,[h.value,T],!0):h.value,u(i,T,d);return i.length=T,i}},function(t,e,i){var n=i(24);t.exports=function(t,e,i,o){try{return o?e(n(i)[0],i[1]):e(i)}catch(r){var a=t["return"];throw void 0!==a&&n(a.call(t)),r}}},function(t,e,i){var n=i(77),o=i(106),r=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[r]===t)}},function(t,e,i){"use strict";var n=i(17),o=i(23),r=i(12);t.exports=function(t,e,i){var a=n(e);a in t?o.f(t,a,r(0,i)):t[a]=i}},function(t,e,i){var n=i(115),o=i(106),r=i(77),a=r("iterator");t.exports=function(t){if(void 0!=t)return t[a]||t["@@iterator"]||o[n(t)]}},function(t,e,i){var n=i(116),o=i(15),r=i(77),a=r("toStringTag"),s="Arguments"==o(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(i){}};t.exports=n?o:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=u(e=Object(t),a))?i:s?o(e):"Object"==(n=o(e))&&"function"==typeof e.callee?"Arguments":n}},function(t,e,i){var n=i(77),o=n("toStringTag"),r={};r[o]="z",t.exports="[object z]"===String(r)},function(t,e,i){var n=i(77),o=n("iterator"),r=!1;try{var a=0,s={next:function(){return{done:!!a++}},"return":function(){r=!0}};s[o]=function(){return this},Array.from(s,function(){throw 2})}catch(u){}t.exports=function(t,e){if(!e&&!r)return!1;var i=!1;try{var n={};n[o]=function(){return{next:function(){return{done:i=!0}}}},t(n)}catch(a){}return i}},function(t,e,i){var n=i(119);t.exports=n},function(t,e,i){i(120);var n=i(82);t.exports=n("Array","map")},function(t,e,i){"use strict";var n=i(6),o=i(72).map,r=i(89),a=i(81),s=r("map"),u=a("map");n({target:"Array",proto:!0,forced:!s||!u},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,i){var n=i(122);t.exports=n},function(t,e,i){i(123);var n=i(82);t.exports=n("Array","fill")},function(t,e,i){var n=i(6),o=i(124),r=i(125);n({target:"Array",proto:!0},{fill:o}),r("fill")},function(t,e,i){"use strict";var n=i(57),o=i(45),r=i(43);t.exports=function(t){for(var e=n(this),i=r(e.length),a=arguments.length,s=o(a>1?arguments[1]:void 0,i),u=a>2?arguments[2]:void 0,l=void 0===u?i:o(u,i);l>s;)e[s++]=t;return e}},function(t,e,i){var n=i(77),o=i(49),r=i(23),a=n("unscopables"),s=Array.prototype;void 0==s[a]&&r.f(s,a,{configurable:!0,value:o(null)}),t.exports=function(t){s[a][t]=!0}},function(t,e,i){var n=i(127);t.exports=n},function(t,e,i){i(128);var n=i(39);n.JSON||(n.JSON={stringify:JSON.stringify}),t.exports=function(t,e,i){return n.JSON.stringify.apply(null,arguments)}},function(t,e,i){var n=i(6),o=i(38),r=i(10),a=o("JSON","stringify"),s=/[\uD800-\uDFFF]/g,u=/^[\uD800-\uDBFF]$/,l=/^[\uDC00-\uDFFF]$/,h=function(t,e,i){var n=i.charAt(e-1),o=i.charAt(e+1);return u.test(t)&&!l.test(o)||l.test(t)&&!u.test(n)?"\\u"+t.charCodeAt(0).toString(16):t},c=r(function(){return'"\\udf06\\ud834"'!==a("<22><>")||'"\\udead"'!==a("<22>")});a&&n({target:"JSON",stat:!0,forced:c},{stringify:function(t,e,i){var n=a.apply(null,arguments);return"string"==typeof n?n.replace(s,h):n}})},function(t,e,i){var n=i(130);t.exports=n},function(t,e,i){i(131);var n=i(82);t.exports=n("Function","bind")},function(t,e,i){var n=i(6),o=i(132);n({target:"Function",proto:!0},{bind:o})},function(t,e,i){"use strict";var n=i(74),o=i(18),r=[].slice,a={},s=function(t,e,i){if(!(e in a)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";a[e]=Function("C,a","return new C("+n.join(",")+")")}return a[e](t,i)};t.exports=Function.bind||function(t){var e=n(this),i=r.call(arguments,1),a=function(){var n=i.concat(r.call(arguments));return this instanceof a?s(e,n.length,n):e.apply(t,n)};return o(e.prototype)&&(a.prototype=e.prototype),a}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}var o=i(134),r=i(179),a=n(r),s=i(148),u=n(s),l=i(158),h=n(l),c=i(298),p=n(c);i(307),a["default"].registerPlugin("Raphael",o.pluginRaphael,o.callback),a["default"].renderUtil=u["default"],a["default"].arrayUtil=h["default"],a["default"].colorutil=p["default"],t.exports=a["default"]},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){var e=document.createElementNS("http://www.w3.org/2000/svg","filter"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),n=document.createElementNS("http://www.w3.org/2000/svg","feFlood"),o=document.createElementNS("http://www.w3.org/2000/svg","feComposite"),r=document.createElementNS("http://www.w3.org/2000/svg","feMorphology"),a=document.createElementNS("http://www.w3.org/2000/svg","feMerge"),s=document.createElementNS("http://www.w3.org/2000/svg","feMergeNode"),u=document.createElementNS("http://www.w3.org/2000/svg","feMergeNode");e.id="glow",n.setAttribute("result","flood"),n.setAttribute("flood-color","#ffffff"),n.setAttribute("flood-opacity","0.5"),o.setAttribute("in","flood"),o.setAttribute("result","mask"),o.setAttribute("in2","SourceGraphic"),o.setAttribute("operator","in"),r.setAttribute("in","mask"),r.setAttribute("result","dilated"),r.setAttribute("operator","dilate"),r.setAttribute("radius","2"),i.setAttribute("in","dilated"),i.setAttribute("result","blurred"),i.setAttribute("stdDeviation","1"),s.setAttribute("in","blurred"),u.setAttribute("in","SourceGraphic"),e.appendChild(n),e.appendChild(o),e.appendChild(r),e.appendChild(i),e.appendChild(a),a.appendChild(s),a.appendChild(u),t.defs.appendChild(e)}function r(t){var e=document.createElementNS("http://www.w3.org/2000/svg","filter"),i=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),n=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),o=document.createElementNS("http://www.w3.org/2000/svg","feBlend");e.setAttributeNS(null,"id","shadow"),e.setAttributeNS(null,"x","-15%"),e.setAttributeNS(null,"y","-15%"),e.setAttributeNS(null,"width","180%"),e.setAttributeNS(null,"height","180%"),i.setAttributeNS(null,"result","offOut"),i.setAttributeNS(null,"in","SourceAlpha"),i.setAttributeNS(null,"dx","2"),i.setAttributeNS(null,"dy","2"),n.setAttributeNS(null,"result","blurOut"),n.setAttributeNS(null,"in","offOut"),n.setAttributeNS(null,"stdDeviation","2"),o.setAttributeNS(null,"in","SourceGraphic"),o.setAttributeNS(null,"in2","blurOut"),o.setAttributeNS(null,"mode","normal"),e.appendChild(i),e.appendChild(n),e.appendChild(o),t.defs.appendChild(e)}e.__esModule=!0,e.callback=e.pluginRaphael=void 0;var a=i(135),s=n(a),u=i(136),l=n(u),h=i(160),c=n(h),p=i(161),d=n(p),f=i(162),m=n(f),g=i(165),y=n(g),_=i(167),v=n(_),T=i(168),b=n(T),x=i(169),A=n(x),D=i(170),E=n(D),S=i(171),C=n(S),L=i(172),M=n(L),P=i(174),w=n(P),O=i(175),R=n(O),I=i(176),k=n(I),B=i(177),N=n(B),F=i(178),G=n(F);e.pluginRaphael={bar:l["default"],boxplot:c["default"],bullet:d["default"],column:l["default"],line:m["default"],area:y["default"],pie:v["default"],bubble:A["default"],scatter:A["default"],heatmap:E["default"],treemap:E["default"],map:C["default"],radial:b["default"],legend:M["default"],mapLegend:w["default"],circleLegend:R["default"],radialPlot:G["default"],title:k["default"],axis:N["default"]},e.callback=function(t,e){var i=(0,s["default"])(t,e.width,e.height),n=i.rect(0,0,e.width,e.height);return i.raphael.svg&&(o(i),r(i)),i.pushDownBackgroundToBottom=function(){n.toBack()},i.changeChartBackgroundColor=function(t){n.attr({fill:t})},i.changeChartBackgroundOpacity=function(t){n.attr({"fill-opacity":t})},i.resizeBackground=function(t,e){n.attr({width:t,height:e})},n.attr({fill:"#fff","stroke-width":0}),i}},function(e,i){e.exports=t},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var a=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=i(135),u=n(s),l=i(137),h=n(l),c=i(138),p=n(c),d=i(139),f=n(d),m=i(143),g=n(m),y=700,_=1,v=.3,T=.2,b=8,x=2,A=.4,D=function(){function t(){r(this,t)}return t.prototype.render=function(t,e){var i=e.groupBounds,n=e.theme,o=e.seriesDataModel,r=e.chartType,a=e.options;return i?(this.paper=t,this.theme=n,this.seriesDataModel=o,this.chartType=r,this.paper.setStart(),this.options=a,this.theme=n,this.groupBars=this._renderBars(i),this.groupBorders=this._renderBarBorders(i),this.overlay=this._renderOverlay(),this.groupBounds=i,this.paper.setFinish()):null},t.prototype._renderOverlay=function(){var t={width:1,height:1,left:0,top:0},e={"fill-opacity":0},i=this._renderBar(t,"#fff",e);return i.node.setAttribute("class","auto-shape-rendering"),i},t.prototype._renderBar=function(t,e,i){if(t.width<0||t.height<0)return null;var n=g["default"].renderRect(this.paper,t,Object.assign({fill:e,stroke:"none"},i)).toFront();return n.node.setAttribute("class","auto-shape-rendering"),n},t.prototype._renderBars=function(t){var e=this,i=this.theme.colors,n=this.options,o=n.colorByPoint,r=n.animationDuration,a=t.map(function(t,n){return t.map(function(t,a){if(!t)return null;var s=e.seriesDataModel.getSeriesItem(n,a),u=o?i[n]:i[a],l=e._renderBar(r?t.start:t.end,u);return{rect:l,color:u,bound:t.end,item:s,groupIndex:n,index:a,isRange:s.isRange}})});return a},t.prototype._makeRectPoints=function(t){return{leftTop:{left:Math.ceil(t.left),top:Math.ceil(t.top)},rightTop:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top)},rightBottom:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top+t.height)},leftBottom:{left:Math.ceil(t.left),top:Math.ceil(t.top+t.height)}}},t.prototype._makeTopLinePath=function(t,e,i){var n=i.value,o=null;if("bar"===e||n>=0||i.isRange){var r=Object.assign({},t.leftTop);r.left-="column"===e||n<0?1:0,o=g["default"].makeLinePath(r,t.rightTop).join(" ")}return o},t.prototype._makeRightLinePath=function(t,e,i){var n=null;return("column"===e||i.value>=0||i.isRange)&&(n=g["default"].makeLinePath(t.rightTop,t.rightBottom).join(" ")),n},t.prototype._makeBottomLinePath=function(t,e,i){var n=null;return("bar"===e||i.value<0||i.isRange)&&(n=g["default"].makeLinePath(t.leftBottom,t.rightBottom).join(" ")),n},t.prototype._makeLeftLinePath=function(t,e,i){var n=null;return("column"===e||i.value<0||i.isRange)&&(n=g["default"].makeLinePath(t.leftTop,t.leftBottom).join(" ")),n},t.prototype._makeBorderLinesPaths=function(t,e,i){var n=this._makeRectPoints(t),o={top:this._makeTopLinePath(n,e,i),right:this._makeRightLinePath(n,e,i),bottom:this._makeBottomLinePath(n,e,i),left:this._makeLeftLinePath(n,e,i)};return Object.keys(o).forEach(function(t){o[t]||delete o[t]}),o},t.prototype._renderBorderLines=function(t,e,i,n){var o=this._makeBorderLinesPaths(t,i,n),r={};return Object.entries(o).forEach(function(t){var i=a(t,2),n=i[0],o=i[1];r[n]=g["default"].renderLine(self.paper,o,{color:e,strokeWidth:1})}),r},t.prototype._renderBarBorders=function(t){var e=this,i=this.theme.borderColor;if(!i)return null;var n=t.map(function(t,n){return t.map(function(t,o){if(!t)return null;var r=e.seriesDataModel.getSeriesItem(n,o);return e._renderBorderLines(t.start,i,self.chartType,r)})});return n},t.prototype._animateRect=function(t,e,i){t.animate({x:e.width?e.left:e.left-x/2,y:e.height?e.top:e.top-x/2,width:e.width?e.width:x,height:e.height?e.height:x,opacity:e.height&&e.width?1:A},i,">")},t.prototype._animateBorders=function(t,e,i,n){var o=this._makeBorderLinesPaths(e,i,n);(0,f["default"])(t,function(t,e){t.animate({path:o[e]},y,">")})},t.prototype.animate=function(t){var e=this,i=this.groupBorders||[],n=this.options.animationDuration;g["default"].forEach2dArray(this.groupBars,function(t,o,r){var a=i[o]&&i[o][r];t&&(n&&e._animateRect(t.rect,t.bound,n),a&&e._animateBorders(a,t.bound,e.chartType,t.item))}),t&&(this.callbackTimeout=setTimeout(function(){t(),delete e.callbackTimeout},n))},t.prototype.showAnimation=function(t){var e=this.groupBars[t.groupIndex][t.index],i=e.bound;this.overlay.attr({width:i.width+b,height:i.height+b,stroke:"#fff","stroke-width":"1",x:i.left-4,y:i.top-4,"fill-opacity":1}),this.resortBarIndex(t.groupIndex),this.overlay.toFront(),e.rect.toFront(),this.labelSet&&this.labelSet.toFront(),this.overlay.node.setAttribute("filter","url(#shadow)")},t.prototype.hideAnimation=function(t){this.resortBarIndex(t.groupIndex),this.overlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0}),this.labelSet&&this.labelSet.toFront()},t.prototype.resortBarIndex=function(t){
this.groupBars[t].forEach(function(t){t.rect.toFront()})},t.prototype._updateRectBound=function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},t.prototype.resize=function(t){var e=this,i=this.groupBorders||[],n=t.dimension,o=t.groupBounds;this.groupBounds=o,this.paper.setSize(n.width,n.height),g["default"].forEach2dArray(this.groupBars,function(t,n,r){if(t){var a=i[n]&&i[n][r],s=o[n][r].end;t.bound=s,g["default"].updateRectBound(t.rect,s),a&&e._updateBordersPath(a,s,e.chartType,t.item)}})},t.prototype._changeBordersColor=function(t,e){(0,f["default"])(t,function(t){t.attr({stroke:e})})},t.prototype._changeBarColor=function(t,e,i){var n=this.groupBars[t.groupIndex][t.index];if(n.rect.attr({fill:e}),i){var o=this.groupBorders[t.groupIndex][t.index];this._changeBordersColor(o,i)}},t.prototype.selectSeries=function(t){var e=this.groupBars[t.groupIndex][t.index],i=u["default"].color(e.color),n=this.theme.selectionColor,o=n||g["default"].makeChangedLuminanceColor(i.hex,T),r=this.theme.borderColor;if(r){var a=u["default"].color(r);r=g["default"].makeChangedLuminanceColor(a.hex,T)}this._changeBarColor(t,o,r)},t.prototype.unselectSeries=function(t){var e=this.groupBars[t.groupIndex][t.index],i=this.theme.borderColor;this._changeBarColor(t,e.color,i)},t.prototype.selectLegend=function(t){var e=this.groupBorders||[],i=(0,h["default"])(t);g["default"].forEach2dArray(this.groupBars,function(n,o,r){if(n){var a=e[o]&&e[o][r],s=i||t===r?_:v;n.rect.attr({"fill-opacity":s}),a&&(0,f["default"])(a,function(t){t.attr({"stroke-opacity":s})})}})},t.prototype.renderSeriesLabel=function(t,e,i,n,o){var r=o||"column"===this.chartType?"middle":"start",a={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,opacity:0,"text-anchor":r},s=this.labelSet=t.set();return i.forEach(function(i,n){i.forEach(function(i,o){var r=e[n][o],u=g["default"].renderText(t,r.end,i.end,a),l=u.node.style;if(l.userSelect="none",l.cursor="default",s.push(u),r.start){var h=g["default"].renderText(t,r.start,i.start,a);h.node.style.userSelect="none",h.node.style.cursor="default",s.push(h)}})}),s},t.prototype._calculateConnectorPosition=function(t,e){for(var i=[],n="bar"===this.chartType,o=a(t,2),r=o[0],s=o[1],u=a(e,2),l=u[0],h=u[1],c=0;c<r.length;c+=1){var p=l.items[c].value<0,d=h.items[c].value<0,f=r[c].end,m=f.top,g=f.left,y=f.width,_=f.height,v=s[c].end,T=v.top,b=v.left,x=v.height,A=v.width;i.push([{top:m+(!n&&p?_:0)+(n?_:0),left:g+(n&&p?0:y)},{top:T+(!n&&d?x:0),left:b+(n&&!d?A:0)}])}return i},t.prototype._makeConnectorModel=function(t){for(var e=t.groupBounds,i=t.seriesDataModel,n=i.groups,r=[],a=0;a<e.length-1;a+=1){var s=[e[a],e[a+1]],u=[n[a],n[a+1]];r.push.apply(r,o(this._calculateConnectorPosition(s,u)))}return r},t.prototype.renderConnector=function(t,e,i){var n=this._makeConnectorModel(e),o=this.connectorSet=t.set(),r=i.connector,s=(0,p["default"])(r),u=s&&r.width||1,l=s&&r.color||"#ddd",h=s&&"dotted"===r.type||!1;return n.forEach(function(e){var i=a(e,2),n=i[0],r=i[1];o.push(g["default"].renderLine(t,g["default"].makeLinePath(n,r).join(" "),{color:l,strokeWidth:u,dotted:h,connector:!0}))}),o},t}();e["default"]=D},function(t,e){"use strict";function i(t){return null===t}t.exports=i},function(t,e){"use strict";function i(t){return t===Object(t)}t.exports=i},function(t,e,i){"use strict";function n(t,e,i){o(t)?r(t,e,i):a(t,e,i)}var o=i(140),r=i(141),a=i(142);t.exports=n},function(t,e){"use strict";function i(t){return t instanceof Array}t.exports=i},function(t,e){"use strict";function i(t,e,i){var n=0,o=t.length;for(i=i||null;n<o&&e.call(i,t[n],n,t)!==!1;n+=1);}t.exports=i},function(t,e){"use strict";function i(t,e,i){var n;i=i||null;for(n in t)if(t.hasOwnProperty(n)&&e.call(i,t[n],n,t)===!1)break}t.exports=i},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){return(0,l["default"])(t)&&"number"==typeof t}function r(){var t=!!document.createElement("canvas").getContext;if(!t)return null;var e=document.createElement("canvas"),i=e.getContext("2d");return"function"==typeof i.fillText?e:null}e.__esModule=!0;var a=i(144),s=n(a),u=i(146),l=n(u),h=i(145),c=n(h),p=i(147),d=n(p),f=i(135),m=n(f),g=i(148),y=n(g),_=1.11,v={cacheFontInfo:"",elementForTextSize:null,canvasElement:r()};e["default"]={makeLinePath:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=[t.left,t.top],o=[e.left,e.top],r=i%2/2;return n.forEach(function(t,e){t===o[e]&&(n[e]=o[e]=Math.round(t)-r)}),["M"].concat(n,["L"],o)},renderLine:function(t,e,i){var n=i.color,o=i.strokeWidth,r=i.dotted,a=i.connector,s=t.path([e]),u={stroke:n,"stroke-width":(0,c["default"])(o)?2:o,"stroke-linecap":"butt",opacity:a?0:1};return"transparent"===n&&(u.stroke="#fff",u["stroke-opacity"]=0),s.attr(u).node.setAttribute("class","auto-shape-rendering"),r&&s.attr(u).node.setAttribute("class","stroke-dasharray"),s},getEllipsisText:function(t,e,i){for(var n=String(t).split(""),o=n.length,r=this.getRenderedTextSize(".",i.fontSize,i.fontFamily).width,a="",s=2*r,u=0;u<o;u+=1){if(s+=this.getRenderedTextSize(n[u],i.fontSize,i.fontFamily).width,s>=e){a+="..";break}a+=n[u]}return a},renderText:function(t,e,i,n){var o=t.text(e.left,e.top,(0,d["default"])(String(i)));return n&&(n["dominant-baseline"]?o.node.setAttribute("dominant-baseline",n["dominant-baseline"]):o.node.setAttribute("dominant-baseline","central"),o.attr(n)),o},renderArea:function(t,e,i){var n=t.path(e);return i=Object.assign({"stroke-opacity":0},i),n.attr(i),n},renderCircle:function(t,e,i,n){var o=t.circle(e.left,e.top,i);return n&&o.attr(n),o},renderRect:function(t,e,i){var n=t.rect(e.left,e.top,e.width,e.height);return i&&n.attr(i),n},updateRectBound:function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},forEach2dArray:function(t,e){t&&t.forEach(function(t,i){t.forEach(function(t,n){e(t,i,n)})})},makeChangedLuminanceColor:function(t,e){t=t.replace("#",""),e=e||0;var i=(0,s["default"])(3).map(function(i){var n=parseInt(t.substr(2*i,2),16),o=n+n*e;return o=Math.round(Math.min(Math.max(0,o),255)).toString(16),y["default"].formatToZeroFill(o,2)}).join("");return"#"+i},getRenderedTextSize:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:11,i=arguments[2],n=v.canvasElement;return n?this._getTextDimensionWithCanvas(t,e,i):this._getTextDimensionUseHtmlElement(t,e,i)},_getTextDimensionWithCanvas:function(t,e,i){var n=v.canvasElement,o=v.cacheFontInfo,r=n.getContext("2d"),a=e+"px "+i;return o!==a&&(v.cacheFontInfo=a,r.font=a),{width:r.measureText(t).width,height:e*_}},_getTextDimensionUseHtmlElement:function(t,e,i){var n=v.cacheFontInfo,o=v.elementForTextSize;if(!o){o=document.createElement("div");var r=o.style;this._setBasicHtmlElementStyleForGetTextSize(r),document.body.appendChild(o),v.elementForTextSize=o}var a=e+"px "+i;if(n!==a){var s=o.style;s.fontFamily=i,s.fontSize=e+"px",v.cacheFontInfo=a}return o.innerHTML=t,{width:o.clientWidth,height:o.clientHeight}},_setBasicHtmlElementStyleForGetTextSize:function(t){t.visibility="hidden",t.position="absolute",t.margin=0,t.padding=0,t.lineHeight=_,t.whiteSpace="nowrap"},animateOpacity:function(t,e,i,n){var r=o(n)?n:600,a=o(e)?e:0,s=o(i)?i:1,u=m["default"].animation({opacity:s},r);t.attr({opacity:a}),t.animate(u)},getDefaultAnimationDuration:function(t){switch(t){case"boxplot":case"combo":case"pie":case"scatter":case"bubble":case"area":case"line":case"column":case"bar":return 700;case"heatmap":case"treemap":return 600;default:return 0}}}},function(t,e,i){"use strict";function n(t,e,i){var n,r=[];for(o(e)&&(e=t||0,t=0),i=i||1,n=i<0?-1:1,e*=n;t*n<e;t+=i)r.push(t);return r}var o=i(145);t.exports=n},function(t,e){"use strict";function i(t){return void 0===t}t.exports=i},function(t,e,i){"use strict";function n(t){return!o(t)&&!r(t)}var o=i(145),r=i(137);t.exports=n},function(t,e){"use strict";function i(t){var e={"&quot;":'"',"&amp;":"&","&lt;":"<","&gt;":">","&#39;":"'","&nbsp;":" "};return t.replace(/&amp;|&lt;|&gt;|&quot;|&#39;|&nbsp;/g,function(t){return e[t]?e[t]:t})}t.exports=i},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function r(t,e){t=(0,u["default"])(t)?t:[t],(0,x["default"])(t,e)}function a(t){return"alpha(opacity="+t*S["default"].OLD_BROWSER_OPACITY_100+")"}e.__esModule=!0;var s=i(140),u=n(s),l=i(149),h=n(l),c=i(146),p=n(c),d=i(150),f=n(d),m=i(145),g=n(m),y=i(151),_=n(y),v=i(139),T=n(v),b=i(141),x=n(b),A=i(153),D=n(A),E=i(154),S=n(E),C=i(155),L=n(C),M=i(158),P=n(M),w=D["default"].msie&&D["default"].version<=8,O=window.getComputedStyle||!1,R="clipRectForAnimation",I=0,k={concatStr:function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return String.prototype.concat.apply("",e)},oneLineTrim:function(){var t=function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return t.reduce(function(t,e,n){return t+i[n-1]+e})};return t.apply(void 0,arguments).replace(/\n\s*/g,"")},makeFontCssText:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=[];return t.fontSize&&e.push(this.concatStr("font-size:",t.fontSize,"px")),t.fontFamily&&e.push(this.concatStr("font-family:",t.fontFamily)),t.color&&e.push(this.concatStr("color:",t.color)),t.fontWeight&&e.push(this.concatStr("font-weight:",t.fontWeight)),e.length?e.join(";"):""},_makeCachingKey:function(t,e,i){var n=[t,i];return(0,T["default"])(e,function(t,e){n.push(t+e)}),n.join("-")},_addCssStyle:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.fontSize,n=e.fontFamily,o=e.fontWeight,r=e.cssText;t.style.fontSize=(i||S["default"].DEFAULT_LABEL_FONT_SIZE)+"px",n&&(t.style.fontFamily=n),o&&(t.style.fontWeight=o),r&&(t.style.cssText+=r)},sizeCache:{},_getRenderedLabelSize:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2];if(t=String(t),!t)return 0;var n=this._makeCachingKey(t,e,i),o=this.sizeCache[n];if(!o){var r=this._createSizeCheckEl(),a=r.firstChild;a.innerText=t,this._addCssStyle(r,e),document.body.appendChild(r),o=a[i],document.body.removeChild(r),this.sizeCache[n]=o}return o},checkEl:null,_createSizeCheckEl:function(){if(this.checkEl)this.checkEl.style.cssText="";else{var t=L["default"].create("DIV","tui-chart-size-check-element"),e=L["default"].create("SPAN");t.appendChild(e),this.checkEl=t}return this.checkEl},getRenderedLabelWidth:function(t,e){return this._getRenderedLabelSize(t,e,"offsetWidth")},getRenderedLabelHeight:function(t,e){return this._getRenderedLabelSize(t,e,"offsetHeight")},_getRenderedLabelsMaxSize:function(t,e,i){var n=0;if(t&&t.length){var o=t.map(function(t){return i(t,e)});n=P["default"].max(o)}return n},getRenderedLabelsMaxWidth:function(t,e,i){var n=this.getRenderedLabelWidth.bind(this),o=this._getRenderedLabelsMaxSize(t,e,n);return i?Math.min(i,o):o},getRenderedLabelsMaxHeight:function(t,e){var i=this.getRenderedLabelHeight.bind(this);return this._getRenderedLabelsMaxSize(t,e,i)},renderDimension:function(t,e){var i=e.width,n=void 0===i?0:i,o=e.height,r=void 0===o?0:o;t.style.cssText=[this.concatStr("width:",n,"px"),this.concatStr("height:",r,"px")].join(";")},renderPosition:function(t,e){(0,g["default"])(e)||(0,x["default"])(["top","bottom","left","right"],function(i){var n=e[i];(0,f["default"])(n)&&(t.style[i]=n+"px")})},renderBackground:function(t,e){e&&(t.style.background=e)},renderFontFamily:function(t,e){e&&(t.style.fontFamily=e)},renderTitle:function(t,e,i){if(!t)return null;var n=k.makeFontCssText(e),o=L["default"].create("DIV",i);return o.innerHTML=t,e.background&&(n+=";"+this.concatStr("background:",e.background)),o.style.cssText=n,o},expandBound:function(t){var e=t.dimension,i=t.position;return{dimension:{width:e.width+2*S["default"].SERIES_EXPAND_SIZE,height:e.height+2*S["default"].SERIES_EXPAND_SIZE},position:{left:i.left-S["default"].SERIES_EXPAND_SIZE,top:i.top-S["default"].SERIES_EXPAND_SIZE}}},_properCase:function(t){return t.substring(0,1).toUpperCase()+t.substring(1)},makeMouseEventDetectorName:function(t,e,i){return t+this._properCase(e)+this._properCase(i)},formatValue:function(t){var e=t.value,i=t.formatFunctions,n=t.valueType,r=void 0===n?"value":n,a=t.areaType,s=t.legendName,u=t.chartType,l=[String(e)].concat(o(i||[]));return l.reduce(function(t,e){return e(t,u,a,r,s)})},formatValues:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.chartType,o=i.areaType,r=i.valueType;return e&&e.length?t.map(function(t){return k.formatValue({value:t,formatFunctions:e,chartType:n,areaType:o,valueType:r})}):t},formatDate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S["default"].DEFAULT_DATE_FORMAT,i=(0,h["default"])(t)?t:new Date(t);return(0,_["default"])(e,i)||t},formatDates:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S["default"].DEFAULT_DATE_FORMAT;return t.map(function(t){return e.formatDate(t,i)})},cancelAnimation:function(t){t&&t.id&&(cancelAnimationFrame(t.id),delete t.id)},startAnimation:function(t,e,i){function n(){var a=(new Date).getTime()-r,s=Math.min(a/t,1);e(s),1===s?(delete o.id,i&&i()):o.id=requestAnimationFrame(n)}var o={},r=(new Date).getTime();return o.id=requestAnimationFrame(n),o},isOldBrowser:function(){return w},formatToZeroFill:function(t,e){var i="0";if(t=String(t),t.length>=e)return t;for(;t.length<e;)t=i+t;return t},formatToDecimal:function(t,e){var i=10,n=Math.pow(i,e);return 0===e?Math.round(t):(t=Math.round(t*n)/n,t=parseFloat(t).toFixed(e))},formatToComma:function(t){t=String(t);var e=",",i=3,n=t,r=t.indexOf("-")>-1?"-":"",a="",s=void 0,u=void 0,l=void 0;if(t.indexOf(".")>-1?(s=t.split("."),t=String(Math.abs(s[0])),a="."+s[1]):t=String(Math.abs(t)),t.length<=i)l=n;else{var h;s=t.split("").reverse(),u=s.length-1,s=s.map(function(t,n){var o=[t];return n<u&&(n+1)%i===0&&o.push(e),o}),l=r+(h=[]).concat.apply(h,o(s)).reverse().join("")+a}return l},makeCssTextFromMap:function(t){return t.map(function(t,e){return k.concatStr(e,":",t)}).join(";")},_perseString:function(t){return"string"==typeof t||"number"==typeof t?String(t):""},addPrefixSuffix:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return i=this._perseString(i),n=this._perseString(n),""!==i||""!==n?t.map(function(t){return e.addPrefixSuffixItem(t,i,n)}):t},addPrefixSuffixItem:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e=this._perseString(e),i=this._perseString(i),e+t+i},getStyle:function(t){var e=void 0;return e=O?window.getComputedStyle(t,""):t.currentStyle},generateClipRectId:function(){var t=R+I;return I+=1,t}};w?(k.makeOpacityCssText=function(t){var e="";if((0,p["default"])(t)){var i=a(t);e=";filter:"+i}return e},k.setOpacity=function(t,e){var i=a(e);r(t,function(t){t.style.filter=i})}):(k.makeOpacityCssText=function(t){var e="";return(0,p["default"])(t)&&(e=";opacity:"+t),e},k.setOpacity=function(t,e){r(t,function(t){t.style.opacity=e})}),e["default"]=k},function(t,e){"use strict";function i(t){return t instanceof Date}t.exports=i},function(t,e){"use strict";function i(t){return"number"==typeof t||t instanceof Number}t.exports=i},function(t,e,i){"use strict";function n(t,e,i){var n,o,r,a;return t=Number(t),e=Number(e),i=Number(i),n=t>-1&&t<100||t>1969&&t<2070,o=e>0&&e<13,!(!n||!o)&&(a=l[e],2===e&&t%4===0&&(t%100===0&&t%400!==0||(a=29)),r=i>0&&i<=a)}function o(t,e,i){var o,u,l,c=r(i,"meridiemSet","AM")||"AM",p=r(i,"meridiemSet","PM")||"PM";return u=a(e)?{year:e.getFullYear(),month:e.getMonth()+1,date:e.getDate(),hour:e.getHours(),minute:e.getMinutes()}:{year:e.year,month:e.month,date:e.date,hour:e.hour,minute:e.minute},!!n(u.year,u.month,u.date)&&(u.meridiem="",/([^\\]|^)[aA]\b/.test(t)&&(o=u.hour>11?p:c,u.hour>12&&(u.hour%=12),0===u.hour&&(u.hour=12),u.meridiem=o),l=t.replace(s,function(t){return t.indexOf("\\")>-1?t.replace(/\\/,""):h[t](u)||""}))}var r=i(152),a=i(149),s=/[\\]*YYYY|[\\]*YY|[\\]*MMMM|[\\]*MMM|[\\]*MM|[\\]*M|[\\]*DD|[\\]*D|[\\]*HH|[\\]*H|[\\]*A/gi,u=["Invalid month","January","February","March","April","May","June","July","August","September","October","November","December"],l=[0,31,28,31,30,31,30,31,31,30,31,30,31],h={M:function(t){return Number(t.month)},MM:function(t){var e=t.month;return Number(e)<10?"0"+e:e},MMM:function(t){return u[Number(t.month)].substr(0,3)},MMMM:function(t){return u[Number(t.month)]},D:function(t){return Number(t.date)},d:function(t){return h.D(t)},DD:function(t){var e=t.date;return Number(e)<10?"0"+e:e},dd:function(t){return h.DD(t)},YY:function(t){return Number(t.year)%100},yy:function(t){return h.YY(t)},YYYY:function(t){var e="20",i=t.year;return i>69&&i<100&&(e="19"),Number(i)<100?e+String(i):i},yyyy:function(t){return h.YYYY(t)},A:function(t){return t.meridiem},a:function(t){return t.meridiem},hh:function(t){var e=t.hour;return Number(e)<10?"0"+e:e},HH:function(t){return h.hh(t)},h:function(t){return String(Number(t.hour))},H:function(t){return h.h(t)},m:function(t){return String(Number(t.minute))},mm:function(t){var e=t.minute;return Number(e)<10?"0"+e:e}};t.exports=o},function(t,e,i){"use strict";function n(t,e){for(var i=arguments,n=i[0],a=1,s=i.length;a<s;a+=1){if(o(n)||r(n))return;n=n[i[a]]}return n}var o=i(145),r=i(137);t.exports=n},function(t,e){"use strict";function i(){var t,e,i=window.navigator,o=i.appName.replace(/\s/g,"_"),r=i.userAgent,a=/MSIE\s([0-9]+[.0-9]*)/,s=/Trident.*rv:11\./,u=/Edge\/(\d+)\./,l={firefox:/Firefox\/(\d+)\./,chrome:/Chrome\/(\d+)\./,safari:/Version\/([\d.]+).*Safari\/(\d+)/},h={Microsoft_Internet_Explorer:function(){var t=r.match(a);t?(n.msie=!0,n.version=parseFloat(t[1])):n.others=!0},Netscape:function(){var i=!1;if(s.exec(r))n.msie=!0,n.version=11,i=!0;else if(u.exec(r))n.edge=!0,n.version=r.match(u)[1],i=!0;else for(t in l)if(l.hasOwnProperty(t)&&(e=r.match(l[t]),e&&e.length>1)){n[t]=i=!0,n.version=parseFloat(e[1]||0);break}i||(n.others=!0)}},c=h[o];c&&h[o]()}var n={chrome:!1,firefox:!1,safari:!1,msie:!1,edge:!1,others:!1,version:0};window&&window.navigator&&i(),t.exports=n},function(t,e){"use strict";e.__esModule=!0,e["default"]={CLASS_NAME_LEGEND_LABEL:"tui-chart-legend-label",CLASS_NAME_LEGEND_CHECKBOX:"tui-chart-legend-checkbox",CLASS_NAME_SERIES_LABEL:"tui-chart-series-label",CLASS_NAME_SERIES_LEGEND:"tui-chart-series-legend",CLASS_NAME_RESET_ZOOM_BTN:"tui-chart-reset-zoom-btn",CLASS_NAME_ZOOM_OUT_BTN:"tui-chart-zoom-out-btn",CLASS_NAME_CHART_EXPORT_MENU_AREA:"tui-chart-chartExportMenu-area",CLASS_NAME_CHART_EXPORT_MENU_ITEM:"tui-chart-chartExportMenu-item",CLASS_NAME_CHART_EXPORT_MENU_BUTTON:"tui-chart-chartExportMenu-button",CLASS_NAME_CHART_EXPORT_MENU_HEAD:"tui-chart-chartExportMenu-head",CLASS_NAME_CHART_EXPORT_MENU_BODY:"tui-chart-chartExportMenu-body",CLASS_NAME_TOOLTIP_VALUE:"tui-chart-tooltip-value",CLASS_NAME_TOOLTIP_HEAD:"tui-chart-tooltip-head",CLASS_NAME_TOOLTIP_BODY:"tui-chart-tooltip-body",CLASS_NAME_SVG_AUTOSHAPE:"auto-shape-rendering",CHART_TYPE_BAR:"bar",CHART_TYPE_COLUMN:"column",CHART_TYPE_LINE:"line",CHART_TYPE_AREA:"area",CHART_TYPE_COMBO:"combo",CHART_TYPE_COLUMN_LINE_COMBO:"columnLineCombo",CHART_TYPE_LINE_SCATTER_COMBO:"lineScatterCombo",CHART_TYPE_LINE_AREA_COMBO:"lineAreaCombo",CHART_TYPE_PIE_DONUT_COMBO:"pieDonutCombo",CHART_TYPE_PIE:"pie",CHART_TYPE_BUBBLE:"bubble",CHART_TYPE_SCATTER:"scatter",CHART_TYPE_HEATMAP:"heatmap",CHART_TYPE_TREEMAP:"treemap",CHART_TYPE_MAP:"map",CHART_TYPE_RADIAL:"radial",CHART_TYPE_BOXPLOT:"boxplot",CHART_TYPE_BULLET:"bullet",CHART_PADDING:10,CHART_DEFAULT_WIDTH:500,CHART_DEFAULT_HEIGHT:400,OVERLAPPING_WIDTH:1,TEXT_PADDING:2,SERIES_EXPAND_SIZE:10,SERIES_AREA_V_PADDING:10,SERIES_LABEL_PADDING:5,SERIES_EXTRA_EVENT_AREA_FOR_ZERO:2,DEFAULT_TITLE_FONT_SIZE:14,DEFAULT_AXIS_TITLE_FONT_SIZE:10,DEFAULT_LABEL_FONT_SIZE:12,DEFAULT_SERIES_LABEL_FONT_SIZE:11,DEFAULT_PLUGIN:"Raphael",DEFAULT_TICK_COLOR:"black",DEFAULT_THEME_NAME:"default",MAX_HEIGHT_WORD:"A",NORMAL_STACK_TYPE:"normal",PERCENT_STACK_TYPE:"percent",DEFAULT_STACK:"___DEFAULT___STACK___",DUMMY_KEY:"___DUMMY___KEY___",TREEMAP_ROOT_ID:"___TUI_TREEMAP_ROOT___",TREEMAP_ID_PREFIX:"___TUI_TREEMAP_ID___",TREEMAP_DEPTH_KEY_PREFIX:"___TUI_TREEMAP_DEPTH___",TREEMAP_PARENT_KEY_PREFIX:"___TUI_TREEMAP_PARENT___",TREEMAP_LEAF_KEY_PREFIX:"___TUI_TREEMAP_LEAF___",TREEMAP_LIMIT_DEPTH_KEY_PREFIX:"___TUI_TREEMAP_LIMIT_DEPTH___",TREEMAP_DEFAULT_BORDER:"#ffffff",TREEMAP_DEFAULT_BORDER_WIDTH:4,EMPTY_AXIS_LABEL:"",ANGLE_85:85,ANGLE_90:90,ANGLE_360:360,RAD:Math.PI/180,RERENDER_TIME:700,ADDING_DATA_ANIMATION_DURATION:300,LABEL_ALIGN_OUTER:"outer",LEGEND_ALIGN_TOP:"top",LEGEND_ALIGN_BOTTOM:"bottom",LEGEND_ALIGN_LEFT:"left",LEGEND_PAGINATION_BUTTON_WIDTH:20,LEGEND_PAGINATION_BUTTON_PADDING_RIGHT:6,SERIES_OUTER_LABEL_PADDING:20,PIE_GRAPH_DEFAULT_RATIO:.9,PIE_GRAPH_SMALL_RATIO:.75,PIE_GRAPH_LEGEND_LABEL_SIZE:16,PIE_GRAPH_LEGEND_LABEL_INTERVAL:20,SPECTRUM_LEGEND_TICK_COUNT:4,LABEL_SEPARATOR:"\n",MAP_CHART_LABEL_DEFAULT_POSITION_RATIO:{x:.5,y:.5},MAP_CHART_ZOOM_AREA_WIDTH:24,MAP_CHART_ZOOM_AREA_HEIGHT:58,DOT_RADIUS:4,SCATTER_RADIUS:7,THEME_PROPS_MAP:{yAxis:["tickColor","title","label"],series:["label","colors","borderColor","borderWidth","selectionColor","startColor","endColor","overColor","dot","ranges"]},TITLE_AREA_WIDTH_PADDING:20,CHART_EXPORT_MENU_SIZE:24,XAXIS_LABEL_TOP_MARGIN:10,V_LABEL_RIGHT_PADDING:10,TOOLTIP_PREFIX:"tui-chart-tooltip",TOOLTIP_ZINDEX:500,TOOLTIP_ANIMATION_TIME:10,TOOLTIP_PIE_ANIMATION_TIME:50,MIN_PIXEL_TYPE_STEP_SIZE:45,MAX_PIXEL_TYPE_STEP_SIZE:65,PERCENT_STACKED_AXIS_SCALE:{limit:{min:0,max:100},step:25,labels:[0,25,50,75,100]},MINUS_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:0},step:25,labels:[0,-25,-50,-75,-100]},DUAL_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:100},step:25,labels:[-100,-75,-50,-25,0,25,50,75,100]},DIVERGING_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:100},step:25,labels:[100,75,50,25,0,25,50,75,100]},AXIS_TYPE_DATETIME:"datetime",DEFAULT_DATE_FORMAT:"YYYY.MM.DD hh:mm:dd",DATE_TYPE_YEAR:"year",DATE_TYPE_MONTH:"month",DATE_TYPE_WEEK:"week",DATE_TYPE_DATE:"date",DATE_TYPE_HOUR:"hour",DATE_TYPE_MINUTE:"minute",DATE_TYPE_SECOND:"second",TITLE_PADDING:20,TITLE_ALIGN_CENTER:"center",TITLE_ALIGN_RIGHT:"right",TITLE_ALIGN_LEFT:"left",DEFAULT_HEADER_HEIGHT:10,LEGEND_AREA_H_PADDING:15,LEGEND_AREA_V_PADDING:7,LEGEND_CHECKBOX_SIZE:14,LEGEND_ICON_WIDTH:10,LEGEND_ICON_HEIGHT:10,LEGEND_LABEL_LEFT_PADDING:8,LEGEND_V_LABEL_RIGHT_PADDING:20,LEGEND_H_LABEL_RIGHT_PADDING:25,LEGEND_LINE_ICON_PATH:"M1,9 L1,3 C1,1.8954305 1.8954305,1 3,1 L3,1 C4.1045695,1 5,1.8954305 5,3 L5,7 C5,8.1045695 5.8954305,9 7,9 L7,9 C8.1045695,9 9,8.1045695 9,7 L9,1",MIN_LEGEND_WIDTH:100,MAP_LEGEND_AREA_PADDING_WIDE:22,VERTICAL_MAP_LEGEND_AREA_TOP_PADDING:26,MAP_LEGEND_AREA_PADDING_NARROW:10,MAP_LEGEND_TOOLTIP_VERTICAL_PADDING:4,MAP_LEGEND_TOOLTIP_HORIZONTAL_PADDING:6,MAP_LEGEND_WEDGE_SIZE:4,MAP_LEGEND_PADDING_BTW_GRAPH_AND_WEDGE:4,VERTICAL_MAP_LEGEND_HEIGHT:320,HORIZONTAL_MAP_LEGEND_WIDTH:400,MAP_LEGEND_GRAPH_SIZE:6,MAP_LEGEND_LABEL_PADDING:5,CIRCLE_LEGEND_LABEL_FONT_SIZE:9,CIRCLE_LEGEND_PADDING:10,HALF_RATIO:.5,AXIS_BACKGROUND_RIGHT_PADDING:4,X_AXIS_LABEL_PADDING:7,X_AXIS_TITLE_PADDING:5,Y_AXIS_LABEL_PADDING:17,Y_AXIS_TITLE_PADDING:7,DEGREE_CANDIDATES:[25,45,65,85],TICK_INTERVAL_AUTO:"auto",YAXIS_ALIGN_CENTER:"center",XAXIS_LABEL_GUTTER:2,AXIS_STANDARD_MULTIPLE_NUMS:[1,2,5,10,20,50,100],AXIS_LAST_STANDARD_MULTIPLE_NUM:100,AXIS_EDGE_RATIO:8,LABEL_PADDING_TOP:7,LINE_MARGIN_TOP:14,TOOLTIP_GAP:5,TOOLTIP_DIRECTION_FORWARD:"forword",TOOLTIP_DIRECTION_CENTER:"center",TOOLTIP_DIRECTION_BACKWARD:"backword",TOOLTIP_DEFAULT_ALIGN_OPTION:"center top",TOOLTIP_DEFAULT_HORIZONTAL_ALIGN_OPTION:"right middle",TOOLTIP_DEFAULT_GROUP_ALIGN_OPTION:"right middle",TOOLTIP_DEFAULT_GROUP_HORIZONTAL_ALIGN_OPTION:"center bottom",HIDE_DELAY:200,OLD_BROWSER_OPACITY_100:100,SERIES_LABEL_OPACITY:.3,WHEEL_TICK:120,MAX_ZOOM_MAGN:5,ZOOM_POSITION_TOP_EXIST_TITLE:5,ZOOM_POSITION_TOP_NONE_TITLE:1,FF_WHEELDELTA_ADJUSTING_VALUE:-40,PUBLIC_EVENT_PREFIX:"public_",PUBLIC_EVENT_MAP:{load:!0,selectLegend:!0,selectSeries:!0,unselectSeries:!0,beforeShowTooltip:!0,afterShowTooltip:!0,beforeHideTooltip:!0,changeCheckedLegends:!0,zoom:!0},RADIAL_PLOT_PADDING:15,RADIAL_MARGIN_FOR_CATEGORY:60,RADIAL_CATEGORY_PADDING:20,COMPONENT_TYPE_DOM:"DOM",COMPONENT_TYPE_RAPHAEL:"Raphael",IMAGE_EXTENSIONS:["png","jpeg"],DATA_EXTENSIONS:["xls","csv"],GUIDE_AREACHART_AREAOPACITY_TYPE:"areaOpacity should be a number between 0 and 1",BULLET_TYPE_ACTUAL:"Actual",BULLET_TYPE_RANGE:"Ranges",BULLET_TYPE_MARKER:"Markers",BULLET_MARKER_STROKE_TICK:3,BULLET_MARKER_BUFFER_POSITION:5,BULLET_RANGES_HEIGHT_RATIO:.7,BULLET_ACTUAL_HEIGHT_RATIO:.28,BULLET_MARKERS_HEIGHT_RATIO:.55,BULLET_MARKER_DETECT_PADDING:3}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}e.__esModule=!0;var r=i(140),a=n(r),s=i(156),u=n(s),l=i(157),h=n(l),c=i(141),p=n(c);e["default"]={create:function(t,e){var i=document.createElement(t);return e&&this.addClass(i,e),i},_getClassNames:function(t){var e=void 0,i=void 0;return t.classList?i=[].concat(o(t.classList)):(e=t.className||"",i=e&&(0,u["default"])(e)?e.split(" "):[]),i},addClass:function(t,e){if(t&&e){var i=this._getClassNames(t),n=(0,h["default"])(e,i);n>-1||(i.push(e),t.className=i.join(" "))}},removeClass:function(t,e){var i=this._getClassNames(t),n=(0,h["default"])(e,i);n!==-1&&(i.splice(n,1),t.className=i.join(" "))},hasClass:function(t,e){var i=this._getClassNames(t),n=(0,h["default"])(e,i);return n>-1},findParentByClass:function(t,e,i){var n=t.parentNode,o=void 0;return o=n?this.hasClass(n,e)?n:"BODY"===n.nodeName||this.hasClass(n,i)?null:this.findParentByClass(n,e,i):null},append:function(t,e){t&&e&&(e=(0,a["default"])(e)?e:[e],(0,p["default"])(e,function(e){e&&t.appendChild(e)}))}}},function(t,e){"use strict";function i(t){return"string"==typeof t||t instanceof String}t.exports=i},function(t,e,i){"use strict";function n(t,e,i){var n,r;if(i=i||0,!o(e))return-1;if(Array.prototype.indexOf)return Array.prototype.indexOf.call(e,t,i);for(r=e.length,n=i;i>=0&&n<r;n+=1)if(e[n]===t)return n;return-1}var o=i(140);t.exports=n},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function r(t,e,i){var n=void 0;if(e){var r=p(t,1);n=r[0];var a=t.slice(1),s=e.call(i,n,0);a.forEach(function(t,o){var r=e.call(i,t,o+1);r<s&&(s=r,n=t)})}else n=Math.min.apply(Math,o(t));return n}function a(t,e,i){var n=void 0;if(e){var r=p(t,1);n=r[0];var a=t.slice(1),s=e.call(i,n,0);(0,T["default"])(a,function(t,o){var r=e.call(i,t,o+1);r>s&&(s=r,n=t)})}else n=Math.max.apply(Math,o(t));return n}function s(t,e,i){var n=!1;return(0,_["default"])(t,function(o,r){return e.call(i,o,r,t)&&(n=!0),!n}),n}function u(t,e,i){var n=!!(t||[]).length;return(0,_["default"])(t,function(o,r){return e.call(i,o,r,t)||(n=!1),n!==!1}),n}function l(t,e,i,n){var o=[];if((0,f["default"])(e)||(n=i,i=e,e=!1),i=i||function(t){return t},e){var r=void 0;(0,T["default"])(t,function(e,a){e=i.call(n,e,a,t),a&&r===e||o.push(e),r=e})}else(0,T["default"])(t,function(e,r){e=i.call(n,e,r,t),(0,g["default"])(e,o)===-1&&o.push(e)});return o}function h(t){var e=[],i=a(t.map(function(t){return t.length}));return t.forEach(function(t){for(var n=0;n<i;n+=1)e[n]||(e[n]=[]),e[n].push(t[n])}),e}function c(t,e){var i=Number(e),n=-1,o=!0,r=!1,a=void 0;try{for(var s,u=t.entries()[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var l=p(s.value,2),h=l[0],c=l[1];if(Number(c)===i){n=h;break}}}catch(d){r=!0,a=d}finally{try{!o&&u["return"]&&u["return"]()}finally{if(r)throw a}}return n}e.__esModule=!0;var p=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=i(159),f=n(d),m=i(157),g=n(m),y=i(139),_=n(y),v=i(141),T=n(v);e["default"]={min:r,max:a,any:s,all:u,unique:l,pivot:h,findIndexFromDateTypeArray:c}},function(t,e){"use strict";function i(t){return"boolean"==typeof t||t instanceof Boolean}t.exports=i},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var a=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=o(["\n M",",","\n V","\n "],["\n M",",","\n V","\n "]),u=i(135),l=n(u),h=i(137),c=n(h),p=i(150),d=n(p),f=i(143),m=n(f),g=i(148),y=n(g),_=1,v=.3,T=.2,b=1,x=1,A=1,D=function(){function t(){r(this,t)}return t.prototype.render=function(t,e){var i=e.groupBounds;return i?(this.paper=t,this.theme=e.theme,this.options=e.options,this.seriesDataModel=e.seriesDataModel,this.chartType=e.chartType,this.animationDuration=e.options.animationDuration,this.paper.setStart(),this.groupWhiskers=[],this.groupMedians=[],this.groupBoxes=this._renderBoxplots(i),this.groupBorders=this._renderBoxBorders(i),this.circleOverlay=this._renderCircleOverlay(),this.groupBounds=i,this.paper.setFinish()):null},t.prototype._renderCircleOverlay=function(){var t={left:0,top:0},e={"fill-opacity":0};return m["default"].renderCircle(this.paper,t,0,Object.assign({"stroke-width":0},e))},t.prototype._renderBox=function(t,e,i){if(t.width<0||t.height<0)return null;var n=m["default"].renderRect(this.paper,t,Object.assign({fill:e,stroke:"none"},i));return n},t.prototype._renderBoxes=function(t){var e=this,i=this.theme.colors,n=this.options.colorByPoint;return t.map(function(t,o){return t.map(function(t,r){if(!t)return null;var a=e.seriesDataModel.getSeriesItem(o,r),s=n?i[o]:i[r],u=e.animationDuration?t.start:t.end,l=void 0;return u&&(l=e._renderBox(u,s)),{rect:l,color:s,bound:t.end,item:a,groupIndex:o,index:r}})})},t.prototype._renderBoxplots=function(t){var e=this._renderBoxes(t);return this.groupWhiskers=this._renderWhiskers(t),this.groupMedians=this._renderMedianLines(t),this.groupOutliers=this._renderOutliers(t),e},t.prototype._renderWhisker=function(t,e,i){var n=this.paper,o=this.animationDuration,r=e.top-t.top,a=r>0?1:-1,u=t.left,l=t.width,h=l/4,c="M"+(u+h)+","+t.top+"H"+(u+3*h),p=y["default"].oneLineTrim(s,u+2*h,t.top,t.top+Math.abs(r)*a),d=m["default"].renderLine(n,c,{color:i,strokeWidth:b}),f=m["default"].renderLine(n,p,{color:i,strokeWidth:A}),g=[];return d.attr({opacity:o?0:1}),f.attr({opacity:o?0:1}),g.push(d),g.push(f),g},t.prototype._renderWhiskers=function(t){var e=this,i=this.theme.colors,n=this.options.colorByPoint,o=[];return t.forEach(function(t,r){var a=[];t.forEach(function(t,o){var s=n?i[r]:i[o];t&&(a=a.concat(e._renderWhisker(t.min,t.start,s)),a=a.concat(e._renderWhisker(t.max,t.end,s)))}),o.push(a)}),o},t.prototype._renderMedianLine=function(t){var e=t.width,i="M"+t.left+","+t.top+",H"+(t.left+e),n=m["default"].renderLine(this.paper,i,{
color:"#fff",strokeWidth:x});return n.attr({opacity:this.animationDuration?0:1}),n},t.prototype._renderMedianLines=function(t){var e=this,i=[];return t.forEach(function(t){var n=[];t.forEach(function(t){t&&n.push(e._renderMedianLine(t.median))}),i.push(n)}),i},t.prototype._renderOutlier=function(t,e){var i=m["default"].renderCircle(this.paper,{left:t.left,top:t.top},3.5,{stroke:e,"stroke-width":2});return i.attr({opacity:this.animationDuration?0:1}),i},t.prototype._renderOutliers=function(t){var e=this,i=this.theme.colors,n=this.options.colorByPoint,o=[];return t.forEach(function(t,r){var a=[];t.forEach(function(t,o){var s=n?i[r]:i[o],u=[];t&&(t.outliers.length&&t.outliers.forEach(function(t){u.push(e._renderOutlier(t,s))}),a.push(u))}),o.push(a)}),o},t.prototype._makeRectPoints=function(t){return{leftTop:{left:Math.ceil(t.left),top:Math.ceil(t.top)},rightTop:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top)},rightBottom:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top+t.height)},leftBottom:{left:Math.ceil(t.left),top:Math.ceil(t.top+t.height)}}},t.prototype._renderBorderLines=function(t,e,i,n){var o=this,r=this._makeBorderLinesPaths(t,i,n),s={};return Object.entries(r).forEach(function(t){var i=a(t,2),n=i[0],r=i[1];s[n]=m["default"].renderLine(o.paper,r,{color:e,strokeWidth:1})}),s},t.prototype._renderBoxBorders=function(t){var e=this,i=this.theme.borderColor;return i?t.map(function(t,n){return t.map(function(t,o){if(!t)return null;var r=e.seriesDataModel.getSeriesItem(n,o);return e._renderBorderLines(t.start,i,e.chartType,r)})}):null},t.prototype._animateRect=function(t,e,i){t.animate({x:e.left,y:e.top,width:e.width,height:e.height},i,">")},t.prototype.animate=function(t){var e=this;if(this.animationDuration){var i=l["default"].animation({opacity:1},this.animationDuration);m["default"].forEach2dArray(this.groupBoxes,function(t){t&&e._animateRect(t.rect,t.bound,e.animationDuration)}),m["default"].forEach2dArray(this.groupWhiskers,function(t){t.animate(i.delay(e.animationDuration))}),m["default"].forEach2dArray(this.groupMedians,function(t){t.animate(i.delay(e.animationDuration))}),m["default"].forEach2dArray(this.groupOutliers,function(t){t.forEach(function(t){t.animate(i.delay(e.animationDuration))})}),t&&(this.callbackTimeout=setTimeout(function(){t(),delete e.callbackTimeout},this.animationDuration))}},t.prototype.showAnimation=function(t){(0,d["default"])(t.outlierIndex)?this.showOutlierAnimation(t):this.showRectAnimation(t)},t.prototype.showRectAnimation=function(t){var e=this.groupBoxes[t.groupIndex][t.index];this.hoveredBar=e.rect,this.hoveredBar.attr({stroke:"#ffffff","stroke-width":4}),this.hoveredBar.node.setAttribute("filter","url(#shadow)")},t.prototype.showOutlierAnimation=function(t){var e=this.groupOutliers[t.groupIndex][t.index][t.outlierIndex].attr();this.circleOverlay.attr({r:e.r,cx:e.cx,cy:e.cy,fill:e.stroke,"fill-opacity":1,stroke:e.stroke,"stroke-width":4})},t.prototype.hideAnimation=function(){this.circleOverlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0,"stroke-width":2}),this.hoveredBar.attr({stroke:"none"}),this.hoveredBar.node.setAttribute("filter","none")},t.prototype._updateRectBound=function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},t.prototype.resize=function(t){var e=t.dimension,i=t.groupBounds;this.groupBounds=i,this.paper.setSize(e.width,e.height),m["default"].forEach2dArray(this.groupBoxes,function(t,e,n){if(t){var o=i[e][n].end;t.bound=o,m["default"].updateRectBound(t.rect,o)}})},t.prototype._changeBordersColor=function(t,e){t.forEach(function(t){t.attr({stroke:e})})},t.prototype._changeBoxColor=function(t,e,i){var n=this.groupBoxes[t.groupIndex][t.index];if(n.rect.attr({stroke:e}),i){var o=this.groupBorders[t.groupIndex][t.index];this._changeBordersColor(o,i)}},t.prototype.selectSeries=function(t){var e=this.groupBoxes[t.groupIndex][t.index],i=l["default"].color(e.color),n=this.theme.selectionColor,o=m["default"].makeChangedLuminanceColor,r=n||o(i.hex,T),a=this.theme.borderColor;if(a){var s=l["default"].color(a);a=m["default"].makeChangedLuminanceColor(s.hex,T)}this._changeBoxColor(t,r,a)},t.prototype.unselectSeries=function(t){var e=this.groupBoxes[t.groupIndex][t.index],i=this.theme.borderColor;this._changeBoxColor(t,e.color,i)},t.prototype.selectLegend=function(t){var e=(0,c["default"])(t);m["default"].forEach2dArray(this.groupBoxes,function(i,n,o){if(i){var r=e||t===o?_:v;i.rect.attr({"stroke-opacity":r})}}),m["default"].forEach2dArray(this.groupWhiskers,function(i,n,o){var r=e||t===o?_:v;i.attr({"stroke-opacity":r})}),m["default"].forEach2dArray(this.groupMedians,function(i,n,o){var r=e||t===o?_:v;i.attr({"stroke-opacity":r})})},t.prototype.renderSeriesLabel=function(t,e,i,n,o){var r={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,opacity:0,"text-anchor":o?"middle":"start"},a=t.set();return i.forEach(function(i,n){i.forEach(function(i,o){var s=e[n][o],u=m["default"].renderText(t,s.end,i.end,r);if(u.node.style.userSelect="none",u.node.style.cursor="default",u.node.setAttribute("filter","url(#glow)"),a.push(u),s.start){var l=m["default"].renderText(t,s.start,i.start,r);l.node.style.userSelect="none",l.node.style.cursor="default",l.node.setAttribute("filter","url(#glow)"),a.push(l)}})}),a},t}();e["default"]=D},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e,i,n){var o=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),r=t.rect(e.left,e.top,i.width,i.height);return r.id=n+"_rect",o.id=n,o.appendChild(r.node),t.defs.appendChild(o),r}e.__esModule=!0;var a=i(137),s=n(a),u=i(153),l=n(u),h=i(143),c=n(h),p=i(154),d=n(p),f=i(148),m=n(f),g=l["default"].msie&&l["default"].version<=8,y=1,_=.3,v=20,T=function(){function t(){o(this,t)}return t.prototype.render=function(t,e){var i=e.groupBounds,n=e.seriesDataModel;return i&&i.length?(this.paper=t,this.theme=e.theme,this.dimension=e.dimension,this.position=e.position,this.options=e.options,this.chartType=e.chartType,this.isVertical=e.isVertical,this.animationDuration=e.options.animationDuration,this.seriesDataModel=n,this.maxRangeCount=n.maxRangeCount,this.maxMarkerCount=n.maxMarkerCount,this._graphColors=[],this.rangeOpacities={},this.paper.setStart(),this._renderBounds(i),this.paper.setFinish()):null},t.prototype._getRangeOpacity=function(t){var e=this.maxRangeCount;return this.prevMaxRangeCount!==e&&this._updateOpacityStep(e),t<e&&!this.rangeOpacities[t]&&(this.rangeOpacities[t]=1-this.opacityStep*(t+1)),this.rangeOpacities[t]},t.prototype._updateOpacityStep=function(t){this.rangeOpacities={},this.opacityStep=Number(1/(t+1)).toFixed(2),this.prevMaxRangeCount=t},t.prototype._renderBounds=function(t){var e=this,i=this.theme.ranges,n=this.paper;this.groupBars=[],this.groupLines=[],t.forEach(function(t,o){var r=e.theme.colors[o],a=0,s=n.set(),u=n.set();t.forEach(function(t){var n=t.type;n===d["default"].BULLET_TYPE_ACTUAL?s.push(e._renderActual(t,r)):n===d["default"].BULLET_TYPE_RANGE?(s.push(e._renderRange(t,r,a,i[a])),a+=1):n===d["default"].BULLET_TYPE_MARKER&&u.push(e._renderMarker(t,r))}),e.groupBars.push(s),e.groupLines.push(u)},this)},t.prototype._renderActual=function(t,e){return t?this._renderBar(t,e):null},t.prototype._renderRange=function(t,e,i,n){var o=this._getRangeOpacity(i),r={opacity:o},a=e;return t?(n&&(a=n.color||a,r.opacity=n.opacity||o),this._renderBar(t,a,r)):null},t.prototype._renderBar=function(t,e,i){return t.width<0||t.height<0?null:c["default"].renderRect(this.paper,t,Object.assign({fill:e,stroke:"none"},i))},t.prototype._renderMarker=function(t,e){return t?this._renderLine(t,e):null},t.prototype._renderLine=function(t,e){var i=t.top,n=t.left,o=t.length,r=this.isVertical?"L"+(n+o)+","+i:"L"+n+","+(i+o),a="M"+n+","+(i+r);return c["default"].renderLine(this.paper,a,{color:e,strokeWidth:d["default"].BULLET_MARKER_STROKE_TICK})},t.prototype.animate=function(t,e){var i=this,n=this.paper,o=this.dimension,a=this.position,s=this.animationDuration,u=this._getClipRectId(),l=o.width-v,h=o.height-v,c={},p={},d=this.clipRect;this.isVertical?(c.width=l,c.height=s?0:h,p.height=h):(c.width=s?0:l,c.height=h,p.width=l),!g&&o&&(d?(d.attr({x:a.left,y:a.top}),d.attr(c)):(d=r(n,a,c,u),this.clipRect=d),e.forEach(function(t){"set"===t.type?t.forEach(function(t){t.node.setAttribute("clip-path","url(#"+u+")")}):t.node.setAttribute("clip-path","url(#"+u+")")}),s&&d.animate(p,s,">",t)),t&&(this.callbackTimeout=setTimeout(function(){t(),delete i.callbackTimeout},s))},t.prototype.resize=function(t){var e=t.dimension,i=t.groupBounds,n=e.width,o=e.height;this.dimension=t.dimension,this.groupBounds=i,this.resizeClipRect(n,o),this.paper.setSize(n,o)},t.prototype.resizeClipRect=function(t,e){var i=this.paper.getById(this._getClipRectId()+"_rect");i&&i.attr({width:t,height:e})},t.prototype._getClipRectId=function(){return this.clipRectId||(this.clipRectId=m["default"].generateClipRectId()),this.clipRectId},t.prototype._changeBordersColor=function(t,e){t.forEach(function(t){t.attr({stroke:e})})},t.prototype.selectLegend=function(t){var e=this,i=(0,s["default"])(t);this.groupBars.forEach(function(n,o){var r=i||t===o?y:_;e.groupBars[o].attr({"fill-opacity":r}),e.groupLabels[o].attr({opacity:r}),e.groupLabels[o].forEach(function(t){t.attr({opacity:r})})})},t.prototype.renderSeriesLabel=function(t,e,i,n){var o=this,r={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,opacity:0,"text-anchor":this.isVertical?"middle":"start"},a=t.set();return this.groupLabels=i.map(function(i,n){var s=t.set();return i.forEach(function(i,u){var l=o._renderLabel(t,e[n][u],r,i);s.push(l),a.push(l)}),s},this),a},t.prototype._renderLabel=function(t,e,i,n){var o=c["default"].renderText(t,e,n,i),r=o.node,a=r.style;return a.userSelect="none",a.cursor="default",r.setAttribute("filter","url(#glow)"),o},t.prototype.getGraphColors=function(){var t=this;return this._graphColors.length||(this._graphColors=this.groupBars.map(function(e,i){var n=[],o=t.groupLines[i].length;e.forEach(function(t){n.push(t.attrs.fill)});for(var r=n[n.length-1],a=0;a<=o;a+=1)n.push(r);return n})),this._graphColors},t}();e["default"]=T},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(137),u=n(s),l=i(150),h=n(l),c=i(163),p=n(c),d=i(143),f=n(d),m=1,g=.3,y=function(t){function e(){o(this,e);var i=r(this,t.call(this));return i.selectedLegendIndex=null,i.chartType="line",i.lineWidth=6,i}return a(e,t),e.prototype.render=function(t,e){var i=e.dimension,n=e.groupPositions,o=e.theme,r=e.options,a=e.position,s=o.colors,u=r.showDot?1:0,l=r.spline,c=this.lineWidth=(0,h["default"])(r.pointWidth)?r.pointWidth:this.lineWidth,p=this.makeBorderStyle(o.dot.strokeColor,u,o.dot.strokeWidth),d=this.makeOutDotStyle(u,p),f=void 0;return f=l?this._getSplineLinesPath(n,r.connectNulls):this._getLinesPath(n,r.connectNulls),this.paper=t,this.theme=o,this.isSpline=l,this.dimension=i,this.position=a,t.setStart(),this.groupLines=this._renderLines(t,f,s,c),this.tooltipLine=this._renderTooltipLine(t,i.height),this.groupDots=this._renderDots(t,n,s,u),r.allowSelect&&(this.selectionDot=this._makeSelectionDot(t),this.selectionColor=o.selectionColor),this.colors=s,this.borderStyle=p,this.outDotStyle=d,this.groupPositions=n,this.groupPaths=f,this.dotOpacity=u,this.animationDuration=r.animationDuration,delete this.pivotGroupDots,t.raphael.svg&&this.appendShadowFilterToDefs(),t.setFinish()},e.prototype.appendShadowFilterToDefs=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),n=document.createElementNS("http://www.w3.org/2000/svg","feBlend");t.setAttributeNS(null,"id","shadow"),t.setAttributeNS(null,"x","-50%"),t.setAttributeNS(null,"y","-50%"),t.setAttributeNS(null,"width","180%"),t.setAttributeNS(null,"height","180%"),e.setAttributeNS(null,"result","offOut"),e.setAttributeNS(null,"in","SourceAlpha"),e.setAttributeNS(null,"dx","0"),e.setAttributeNS(null,"dy","0"),i.setAttributeNS(null,"result","blurOut"),i.setAttributeNS(null,"in","offOut"),i.setAttributeNS(null,"stdDeviation","2"),n.setAttributeNS(null,"in","SourceGraphic"),n.setAttributeNS(null,"in2","blurOut"),n.setAttributeNS(null,"mode","normal"),t.appendChild(e),t.appendChild(i),t.appendChild(n),this.paper.defs.appendChild(t)},e.prototype._getLinesPath=function(t,e){var i=this;return t.map(function(t){return i._makeLinesPath(t,null,e)})},e.prototype._getSplineLinesPath=function(t,e){var i=this;return t.map(function(t){return i._makeSplineLinesPath(t,{connectNulls:e})})},e.prototype._renderLines=function(t,e,i,n){return e.map(function(e,o){var r=i[o]||"transparent",a=f["default"].renderLine(t,e.join(" "),{color:r,strokeWidth:n});return a.node.setAttribute("class","auto-shape-rendering"),a})},e.prototype.resize=function(t){var e=this,i=t.dimension,n=t.groupPositions;this.resizeClipRect(i.width,i.height),this.groupPositions=n,this.groupPaths=this.isSpline?this._getSplineLinesPath(n):this._getLinesPath(n),this.paper.setSize(i.width,i.height),this.tooltipLine.attr({top:i.height}),this.groupPaths.forEach(function(t,i){e.groupLines[i].attr({path:t.join(" ")}),e.groupDots[i].forEach(function(t,o){t.endDot&&e._moveDot(t.endDot.dot,n[i][o])})})},e.prototype.selectLegend=function(t){var e=this,i=(0,u["default"])(t);this.selectedLegendIndex&&this.selectedLegendIndex!==-1&&this.resetSeriesOrder(this.selectedLegendIndex),this.selectedLegendIndex=t,this.groupLines.forEach(function(n,o){var r=t===o,a=i||r?m:g,s=e.groupDots[o];n.attr({"stroke-opacity":a}),r&&e.moveSeriesToFront(n,s)}),i&&this.groupLines.forEach(function(t,i){e.moveSeriesToFront(t,e.groupDots[i])})},e.prototype.resetSeriesOrder=function(t){var e=t+1<this.groupLines.length?this.groupLines[t+1]:null;e&&(this.groupLines[t].insertBefore(e),this.groupDots[t].forEach(function(t){t&&t.endDot&&t.endDot.dot.insertBefore(e)}))},e.prototype.moveSeriesToFront=function(t,e){t.toFront(),e.forEach(function(t){t.endDot.dot.toFront()})},e.prototype.animateForAddingData=function(t,e,i,n){var o=this,r=t.options.spline,a=r?this._getSplineLinesPath(i):this._getLinesPath(i),s=0;i.length&&(n&&(s=1),this.groupLines.forEach(function(t,r){var u=o.groupDots[r],l=i[r];n&&o._removeFirstDot(u),u.forEach(function(t,i){var n=l[i+s];o._animateByPosition(t.endDot.dot,n,e)}),o._animateByPath(t,a[r],e)}))},e.prototype.renderSeriesLabel=function(t,e,i,n){var o={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,"text-anchor":"middle",opacity:0},r=t.set();return i.forEach(function(i,n){i.forEach(function(i,a){var s=e[n][a],u=f["default"].renderText(t,s.end,i.end,o);if(r.push(u),u.node.style.userSelect="none",u.node.style.cursor="default",u.node.setAttribute("filter","url(#glow)"),s.start){var l=f["default"].renderText(t,s.start,i.start,o);l.node.style.userSelect="none",l.node.style.cursor="default",l.node.setAttribute("filter","url(#glow)"),r.push(l)}})}),r},e}(p["default"]);e["default"]=y},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e,i,n,o){var r=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),a=t.rect(e.left,e.top,o?0:i.width,i.height);return a.id=n+"_rect",r.id=n,r.appendChild(a.node),t.defs.appendChild(r),a}e.__esModule=!0;var s=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=i(153),l=n(u),h=i(146),c=n(h),p=i(137),d=n(p),f=i(150),m=n(f),g=i(145),y=n(g),_=i(143),v=n(_),T=i(148),b=n(T),x=i(164),A=n(x),D=i(158),E=n(D),S=i(154),C=n(S),L=l["default"].msie&&l["default"].version<=8,M=6,P=7,w=.3,O=300,R="over",I="out",k=function(){function t(){r(this,t)}return t.prototype._makeLinesPath=function(t,e,i){var n,r=[],a=!1;return e=e||"top",[].concat(t).forEach(function(t){var n=a&&!i?"M":"L";t?(r.push([n,t.left,t[e]]),a&&(a=!1)):a=!0}),r=(n=[]).concat.apply(n,o(r)),r.length>0&&(r[0]="M"),r},t.prototype._getAnchor=function(t,e,i,n){var o=(e.left-t.left)/2,r=(i.left-e.left)/2,a=void 0,s=void 0;n?(a=Math.atan((t.left-e.left)/Math.abs(t.top-e.top)),s=Math.atan((e.left-i.left)/Math.abs(i.top-e.top))):(a=Math.atan((e.left-t.left)/Math.abs(e.top-t.top)),s=Math.atan((i.left-e.left)/Math.abs(e.top-i.top))),a=t.top<e.top?Math.PI-a:a,s=i.top<e.top?Math.PI-s:s;var u=Math.PI/2-(a+s)%(2*Math.PI)/2,l=o*Math.sin(u+a),h=o*Math.cos(u+a),c=r*Math.sin(u+s),p=r*Math.cos(u+s),d={x1:e.left-l,y1:e.top+h,x2:e.left+c,y2:e.top+p};return n&&(d.y1=e.top-h,d.y2=e.top-p),d},t.prototype._getSplinePositionsGroups=function(t,e){var i=[],n=[];return t.forEach(function(o,r){var a=r===t.length-1;o&&n.push(o),(!o&&n.length>0&&!e||a)&&(i.push(n),n=[])}),i},t.prototype._getSplinePartialPaths=function(t,e){var i=this,n=[],o=void 0,r=void 0,a=void 0,u=void 0,l=void 0;return t.forEach(function(t){var h=s(t,1),c=h[0],p=c;r=t.length,a=p,o=t[r-1],u=t.slice(1).slice(0,r-2),l=u.map(function(n,o){var r=t[o+2],s=i._getAnchor(a,n,r,e);return a=n,Math.abs(s.y1-c.top)>Math.abs(c.top-n.top)&&(s.y1=n.top),Math.abs(s.y2-r.top)>Math.abs(r.top-n.top)&&(s.y2=n.top),c=n,[s.x1,s.y1,n.left,n.top,s.x2,s.y2]}),l.push([o.left,o.top,o.left,o.top]),l.unshift(["M",p.left,p.top,"C",p.left,p.top]),n.push(l)}),n},t.prototype._makeSplineLinesPath=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this._getSplinePositionsGroups(t,e.connectNulls),n=this._getSplinePartialPaths(i,e.isReverseDirection),o=[];return n.forEach(function(t){o=o.concat(t)}),e.isBeConnected&&(o[0]=o[0].slice(3)),o},t.prototype._renderTooltipLine=function(t,e){var i=v["default"].makeLinePath({left:10,top:e},{left:10,top:0});return v["default"].renderLine(t,i,{color:"transparent",strokeWidth:1})},t.prototype.appendShadowFilterToDefs=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),n=document.createElementNS("http://www.w3.org/2000/svg","feBlend");t.setAttributeNS(null,"id","shadow"),t.setAttributeNS(null,"x","-50%"),t.setAttributeNS(null,"y","-50%"),t.setAttributeNS(null,"width","180%"),t.setAttributeNS(null,"height","180%"),e.setAttributeNS(null,"result","offOut"),e.setAttributeNS(null,"in","SourceAlpha"),e.setAttributeNS(null,"dx","0"),e.setAttributeNS(null,"dy","0"),i.setAttributeNS(null,"result","blurOut"),i.setAttributeNS(null,"in","offOut"),i.setAttributeNS(null,"stdDeviation","2"),n.setAttributeNS(null,"in","SourceGraphic"),n.setAttributeNS(null,"in2","blurOut"),n.setAttributeNS(null,"mode","normal"),t.appendChild(e),t.appendChild(i),t.appendChild(n),this.paper.defs.appendChild(t)},t.prototype.makeBorderStyle=function(t,e,i){var n={"stroke-width":i,"stroke-opacity":e};return t&&(n.stroke=t),n},t.prototype.makeOutDotStyle=function(t,e){var i={"fill-opacity":t,"stroke-opacity":t,r:M};return e&&Object.assign(i,e),i},t.prototype.renderDot=function(t,e,i,n){var o=this.theme&&this.theme.dot||{dot:{}},r=void 0;if(e){var a=t.circle(e.left,e.top,(0,y["default"])(o.radius)?M:o.radius),s={fill:o.fillColor||i,"fill-opacity":(0,m["default"])(n)?n:o.fillOpacity,stroke:o.strokeColor||i,"stroke-opacity":(0,m["default"])(n)?n:o.strokeOpacity,"stroke-width":o.strokeWidth};a.attr(s),r={dot:a,color:i}}return r},t.prototype._moveDotsToFront=function(t){v["default"].forEach2dArray(t,function(t){t.endDot.dot.toFront(),t.startDot&&t.startDot.dot.toFront()})},t.prototype._renderDots=function(t,e,i,n,o){var r=this,a=e.map(function(e,a){var s=i[a];return Object.values(e).map(function(e){var i={endDot:r.renderDot(t,e,s,n)};if(r.hasRangeData){var a=Object.assign({},e);a.top=a.startTop,i.startDot=r.renderDot(t,a,s,n)}return o&&(o.push(i.endDot.dot),i.startDot&&o.push(i.startDot.dot)),i})});return a},t.prototype._getCenter=function(t,e){return{left:(t.left+e.left)/2,top:(t.top+e.top)/2}},t.prototype._showDot=function(t,e){var i=this.theme.dot.hover,n={"fill-opacity":i.fillOpacity,stroke:i.strokeColor||t.color,"stroke-opacity":i.strokeOpacity,"stroke-width":i.strokeWidth,r:i.radius,filter:"url(#shadow)"};this._setPrevDotAttributes(e,t.dot),i.fillColor&&(n.fill=i.fillColor),t.dot.attr(n),t.dot.node&&t.dot.node.setAttribute("filter","url(#shadow)"),t.dot.toFront()},t.prototype._setPrevDotAttributes=function(t,e){this._prevDotAttributes||(this._prevDotAttributes={}),this._prevDotAttributes[t]=e.attr()},t.prototype._updateLineStrokeOpacity=function(t,e){var i=1,n=!(0,d["default"])(this.selectedLegendIndex);this.groupLines&&((t===R||n)&&(i="radial"===this.chartType&&this.showArea?0:w),t===I&&n&&(e=this.getLine(this.selectedLegendIndex)),this.groupLines.forEach(function(t){t.attr({"stroke-opacity":i})}),e.attr({"stroke-opacity":1}))},t.prototype.getLine=function(t){return this.groupLines?this.groupLines[t]:this.groupAreas[t]},t.prototype._updateAreaOpacity=function(t){this.groupAreas&&this.groupAreas.forEach(function(e){e.area.attr({"fill-opacity":t===R?w:1})})},t.prototype._updateLineStrokeWidth=function(t,e){var i={"stroke-width":e};t.attrs&&(i.stroke=t.attrs.stroke),t.attr(i)},t.prototype.showAnimation=function(t){var e=t.index,i=this.groupDots[e],n=this._findDotItem(i,t.groupIndex),o=this.groupLines?this.groupLines[e]:this.groupAreas[e],r=void 0,a=void 0;if(n){if("area"===this.chartType){var s=o;a=s.startLine,o=s.line,r=5,this._updateAreaOpacity(R)}else r=this.lineWidth;this._updateLineStrokeOpacity(R,o),this._updateLineStrokeWidth(o,r),a&&this._updateLineStrokeWidth(a,r),this._showDot(n.endDot,e),n.startDot&&this._showDot(n.startDot,e)}},t.prototype._findDotItem=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],i=A["default"].isRadialChart(this.chartType);return i&&t.length===e&&(e=0),t[e]},t.prototype._getPivotGroupDots=function(){return!this.pivotGroupDots&&this.groupDots&&(this.pivotGroupDots=E["default"].pivot(this.groupDots)),this.pivotGroupDots},t.prototype._showGroupDots=function(t){var e=this,i=this._getPivotGroupDots();i&&i[t]&&i[t].forEach(function(t,i){t.endDot&&e._showDot(t.endDot,i),t.startDot&&e._showDot(t.startDot,i)})},t.prototype.showGroupTooltipLine=function(t,e){var i=Math.max(t.position.left,11),n=v["default"].makeLinePath({left:i,top:e.position.top+t.dimension.height},{left:i,top:e.position.top});this.tooltipLine&&this.tooltipLine.attr({path:n,stroke:"#999","stroke-opacity":1})},t.prototype.showGroupAnimation=function(t){this._showGroupDots(t)},t.prototype._hideDot=function(t,e,i){var n=this._prevDotAttributes[e],o=this.outDotStyle;n&&!(0,y["default"])(i)&&(o={r:n.r,stroke:n.stroke,fill:n.fill,"stroke-opacity":n["stroke-opacity"],"stroke-width":n["stroke-width"],"fill-opacity":n["fill-opacity"]}),t.attr(o),t.node&&t.node.setAttribute("filter",""),this.resetSeriesOrder(e)},t.prototype.hideAnimation=function(t){var e=t.groupIndex,i=t.index,n=this.groupDots[i],o=this._findDotItem(n,e),r=void 0,a=void 0,s=void 0,u=this.dotOpacity;if(o){if(r=this.groupLines?this.groupLines[i]:this.groupAreas[i],"area"===this.chartType){a=this.lineWidth;var l=r;s=l.startLine,r=l.line,this._updateAreaOpacity(I)}else a=this.lineWidth;u&&!(0,d["default"])(this.selectedLegendIndex)&&this.selectedLegendIndex!==i&&(u=w),this._updateLineStrokeOpacity(I,r),this._updateLineStrokeWidth(r,a),s&&this._updateLineStrokeWidth(s,a),o&&(this._hideDot(o.endDot.dot,i,u),o.startDot&&this._hideDot(o.startDot.dot,i,u))}},t.prototype._hideGroupDots=function(t){var e=this,i=!(0,d["default"])(this.selectedLegendIndex),n=this.dotOpacity,o=this._getPivotGroupDots();o&&o[t]&&o[t].forEach(function(t,o){var r=n;r&&i&&e.selectedLegendIndex!==o&&(r=w),t.endDot&&e._hideDot(t.endDot.dot,o,r),t.startDot&&e._hideDot(t.startDot.dot,o,r)})},t.prototype.hideGroupTooltipLine=function(){this.tooltipLine.attr({"stroke-opacity":0})},t.prototype.hideGroupAnimation=function(t){this._hideGroupDots(t)},t.prototype._moveDot=function(t,e){var i={cx:e.left,cy:e.top};this.dotOpacity&&(i=Object.assign({"fill-opacity":this.dotOpacity},i,this.borderStyle)),t.attr(i)},t.prototype.animate=function(t,e){var i=this.paper,n=this.dimension,o=this.position,r=this.animationDuration,s=this._getClipRectId(),u=this._makeClipRectPosition(o),l=this.clipRect;!L&&n&&(l?(this._makeClipRectPosition(o),l.attr({width:r?0:n.width,height:n.height,x:u.left,y:u.top})):(l=a(i,u,n,s,!!r),this.clipRect=l),e.forEach(function(t){t.node.setAttribute("clip-path","url(#"+s+")")}),r&&l.animate({width:n.width},r,">",t))},t.prototype._makeClipRectPosition=function(t){return{left:t.left-C["default"].SERIES_EXPAND_SIZE,top:t.top-C["default"].SERIES_EXPAND_SIZE}},t.prototype._makeSelectionDot=function(t){var e=t.circle(0,0,P);return e.attr({fill:"#ffffff","fill-opacity":0,"stroke-opacity":0,"stroke-width":2}),e},t.prototype.selectSeries=function(t){var e=this.groupDots[t.index][t.groupIndex],i=this.groupPositions[t.index][t.groupIndex];this.selectedItem=e,this.selectionDot.attr({cx:i.left,cy:i.top,"fill-opacity":.5,"stroke-opacity":1,stroke:this.selectionColor||e.endDot.color}),this.selectionStartDot&&this.selectionStartDot.attr({cx:i.left,cy:i.startTop,"fill-opacity":.5,"stroke-opacity":1,stroke:this.selectionColor||e.startDot.color})},t.prototype.unselectSeries=function(t){var e=this.groupDots[t.index][t.groupIndex];this.selectedItem===e&&this.selectionDot.attr({"fill-opacity":0,"stroke-opacity":0}),this.selectionStartDot&&this.selectionStartDot.attr({"fill-opacity":0,"stroke-opacity":0})},t.prototype.setSize=function(t,e){t=t||this.dimension.width,e=e||this.dimension.height,this.paper.setSize(t,e)},t.prototype._animateByPosition=function(t,e,i){var n={cx:e.left,cy:e.top};(0,c["default"])(i)&&(n.transform="t-"+i+",0"),t.animate(n,O)},t.prototype._animateByPath=function(t,e,i){var n={path:e.join(" ")};(0,c["default"])(i)&&(n.transform="t-"+i+",0"),t.animate(n,O)},t.prototype._removeFirstDot=function(t){var e=t.shift();e.endDot.dot.remove(),e.startDot&&e.startDot.dot.remove()},t.prototype.clear=function(){delete this.paper.dots,this.paper.clear()},t.prototype.resizeClipRect=function(t,e){var i=this.paper.getById(this._getClipRectId()+"_rect");i.attr({width:t,height:e})},t.prototype._getClipRectId=function(){return this.clipRectId||(this.clipRectId=b["default"].generateClipRectId()),this.clipRectId},t.prototype.resetSeriesOrder=function(){},t.prototype.moveSeriesToFront=function(){},t}();e["default"]=k},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(159),r=n(o),a=i(138),s=n(a),u=i(154),l=n(u),h=i(158),c=n(h),p={isBarChart:function(t){return t===l["default"].CHART_TYPE_BAR},isColumnChart:function(t){return t===l["default"].CHART_TYPE_COLUMN},isBarTypeChart:function(t){return p.isBarChart(t)||p.isColumnChart(t)},isColumnTypeChart:function(t,e){return p.isHeatmapChart(t)||p.isColumnChart(t)||p.isBoxplotChart(t)||p.isLineColumnComboChart(t,e)},isBoxplotChart:function(t){return t===l["default"].CHART_TYPE_BOXPLOT},isBulletChart:function(t){return t===l["default"].CHART_TYPE_BULLET},isRadialChart:function(t){return t===l["default"].CHART_TYPE_RADIAL},isDivergingChart:function(t,e){return this.isBarTypeChart(t)&&e},isNormalStackChart:function(t,e){var i=p.isAllowedStackOption(t),n=p.isNormalStack(e);return i&&n},isPercentStackChart:function(t,e){var i=p.isAllowedStackOption(t),n=p.isPercentStack(e);return i&&n},isComboChart:function(t){return t===l["default"].CHART_TYPE_COMBO},isLineColumnComboChart:function(t,e){var i=c["default"].all(e||[],function(t){return p.isLineChart(t)||p.isColumnChart(t)});return p.isComboChart(t)&&i},isPieDonutComboChart:function(t,e){var i=c["default"].all(e,function(t){return p.isPieChart(t)});return p.isComboChart(t)&&i},isLineChart:function(t){return t===l["default"].CHART_TYPE_LINE},isAreaChart:function(t){return t===l["default"].CHART_TYPE_AREA},isLineAreaComboChart:function(t,e){var i=c["default"].all(e||[],function(t){return p.isLineChart(t)||p.isAreaChart(t)});return p.isComboChart(t)&&i},hasLineChart:function(t,e){var i=c["default"].any(e||[],function(t){return p.isLineChart(t)});return p.isComboChart(t)&&i},isLineScatterComboChart:function(t,e){var i=c["default"].all(e||[],function(t){return p.isLineChart(t)||p.isScatterChart(t)});return p.isComboChart(t)&&i},isLineTypeChart:function(t,e){return p.isLineChart(t)||p.isAreaChart(t)||p.isLineAreaComboChart(t,e)},isBubbleChart:function(t){return t===l["default"].CHART_TYPE_BUBBLE},isScatterChart:function(t){return t===l["default"].CHART_TYPE_SCATTER},isHeatmapChart:function(t){return t===l["default"].CHART_TYPE_HEATMAP},isTreemapChart:function(t){return t===l["default"].CHART_TYPE_TREEMAP},isBoxTypeChart:function(t){return p.isHeatmapChart(t)||p.isTreemapChart(t)},isMapTypeChart:function(t){return this.isMapChart(t)||this.isHeatmapChart(t)||this.isTreemapChart(t)},isPieChart:function(t){return t&&t.indexOf(l["default"].CHART_TYPE_PIE)!==-1},isMapChart:function(t){return t===l["default"].CHART_TYPE_MAP},isCoordinateTypeChart:function(t){return p.isBubbleChart(t)||p.isScatterChart(t)},allowMinusPointRender:function(t){return p.isLineTypeChart(t)||p.isCoordinateTypeChart(t)||p.isBoxTypeChart(t)||p.isBulletChart(t)},isChartToDetectMouseEventOnSeries:function(t){return p.isPieChart(t)||p.isMapChart(t)||p.isCoordinateTypeChart(t)},isLabelAlignOuter:function(t){return t===l["default"].LABEL_ALIGN_OUTER},isShowLabel:function(t){return t.showLabel||t.showLegend},isShowOuterLabel:function(t){return p.isShowLabel(t)&&p.isLabelAlignOuter(t.labelAlign)},isLegendAlignLeft:function(t){return t===l["default"].LEGEND_ALIGN_LEFT},isLegendAlignTop:function(t){return t===l["default"].LEGEND_ALIGN_TOP},isLegendAlignBottom:function(t){return t===l["default"].LEGEND_ALIGN_BOTTOM},isHorizontalLegend:function(t){return p.isLegendAlignTop(t)||p.isLegendAlignBottom(t)},isVerticalLegend:function(t){return!p.isHorizontalLegend(t)},isAllowedStackOption:function(t){return p.isBarChart(t)||p.isColumnChart(t)||p.isAreaChart(t)},isNormalStack:function(t){return!!t&&t.type===l["default"].NORMAL_STACK_TYPE},isPercentStack:function(t){return!!t&&t.type===l["default"].PERCENT_STACK_TYPE},isValidStackOption:function(t){return p.isNormalStack(t)||p.isPercentStack(t)},isAllowRangeData:function(t){return p.isBarTypeChart(t)||p.isAreaChart(t)},isYAxisAlignCenter:function(t,e){return!t&&e===l["default"].YAXIS_ALIGN_CENTER},isMinusLimit:function(t){return t.min<=0&&t.max<=0},isAutoTickInterval:function(t){return t===l["default"].TICK_INTERVAL_AUTO},isValidLabelInterval:function(t,e){return t&&t>1&&!e},isDatetimeType:function(t){return t===l["default"].AXIS_TYPE_DATETIME},isSupportPublicShowTooptipAPI:function(t){
return this.isBarChart(t)||this.isColumnChart(t)||this.isLineChart(t)||this.isAreaChart(t)||this.isBoxplotChart(t)},isSupportPublicHideTooptipAPI:function(t){return this.isBarChart(t)||this.isColumnChart(t)||this.isLineChart(t)||this.isAreaChart(t)||this.isBoxplotChart(t)},isRenderConnector:function(t){return(0,r["default"])(t)&&t||(0,s["default"])(t)&&("solid"===t.type||"dotted"===t.type)}};e["default"]=p},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var u=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=i(137),h=n(l),c=i(150),p=n(c),d=i(145),f=n(d),m=i(163),g=n(m),y=i(143),_=n(y),v=i(154),T=n(v),b=i(166),x=n(b),A=T["default"].GUIDE_AREACHART_AREAOPACITY_TYPE,D=T["default"].CLASS_NAME_SVG_AUTOSHAPE,E=1,S=.3,C=function(t){function e(){r(this,e);var i=a(this,t.call(this));return i.selectedLegendIndex=null,i.chartType="area",i.lineWidth=0,i}return s(e,t),e.prototype.render=function(t,e){var i=e.dimension,n=e.groupPositions,o=e.theme,r=void 0===o?{}:o,a=e.position,s=e.zeroTop,u=e.hasRangeData,l=e.options,h=r.dot,c=void 0===h?{}:h,d=r.colors,f=l.spline,m=l.allowSelect,g=l.connectNulls,y=l.pointWidth,_=l.showDot,v=l.areaOpacity,T=this._isAreaOpacityNumber(v)?v:1,b=_?1:0,x=this.makeBorderStyle(c.strokeColor,b,c.strokeWidth),A=this.makeOutDotStyle(b,x),D=this.lineWidth=(0,p["default"])(y)?y:this.lineWidth;this.paper=t,this.theme=r,this.isSpline=f,this.dimension=i,this.position=a,this.zeroTop=s,this.hasRangeData=u,this.animationDuration=e.options.animationDuration,t.setStart(),this.groupPaths=this._getAreaChartPath(n,null,g),this.groupAreas=this._renderAreas(t,this.groupPaths,d,D,T),this.tooltipLine=this._renderTooltipLine(t,i.height),this.groupDots=this._renderDots(t,n,d,b),m&&(this.selectionDot=this._makeSelectionDot(t),this.selectionColor=r.selectionColor,this.hasRangeData&&(this.selectionStartDot=this._makeSelectionDot(t))),this.outDotStyle=A,this.groupPositions=n,this.dotOpacity=b,this.pivotGroupDots=null;var E=t.setFinish();return this._moveSeriesToFrontAll(),this.tooltipLine.toFront(),E},e.prototype._moveSeriesToFrontAll=function(){for(var t=this.groupPaths?this.groupPaths.length:0,e=0;e<t;e+=1)this.moveSeriesToFront(this.groupAreas[e],this.groupDots[e])},e.prototype._getAreaChartPath=function(t,e,i){return this.isSpline?this._makeSplineAreaChartPath(t,e):this._makeAreaChartPath(t,e,i)},e.prototype._renderAreas=function(t,e,i,n,o){i=i.slice(0,e.length),i.reverse(),e.reverse();var r=e.map(function(e,r){var a={},s=i[r]||"transparent",u=s,l=_["default"].renderArea(t,e.area.join(" "),{fill:s,opacity:o,stroke:s}),h=_["default"].renderLine(t,e.line.join(" "),{color:u,strokeWidth:n});return l.node.setAttribute("class",D),h.node.setAttribute("class",D),a.area=l,a.line=h,e.startLine&&(a.startLine=_["default"].renderLine(t,e.startLine.join(" "),{color:u,strokeWidth:0})),a});return r.reverse()},e.prototype._makeHeight=function(t,e){return Math.abs(t-e)},e.prototype._makeAreasPath=function(t,e){var i,n=[],r=t.length,a=[],s=[],l=[],h=!1;if(Object.entries(t).forEach(function(t){var e=u(t,2),i=e[0],o=e[1],a=void 0;o?(h?(a="M",h=!1):a="L",l.push([a,o.left,o.top]),s.unshift(["L",o.left,o.startTop])):(h=!0,s.push(["z"])),o&&parseInt(i,10)!==r-1||(n.push(l.concat(s)),l=[],s=[])}),n.forEach(function(t){a=a.concat(t)}),e!==!1){var c=t.length-1;a.splice(c+1,0,a[c],a[c+1])}return a=(i=[]).concat.apply(i,o(a)),a[0]="M",a},e.prototype._makeAreaChartPath=function(t,e,i){var n=this;return t.map(function(t){var o={area:n._makeAreasPath(t,e),line:n._makeLinesPath(t,null,i)};return n.hasRangeData&&(o.startLine=n._makeLinesPath(t,"startTop")),o})},e.prototype._makeSplineAreaChartPath=function(t,e){var i=this;return t.map(function(t){var n=t.concat().reverse().map(function(t){return{left:t.left,top:t.startTop}}),o=i._makeSplineLinesPath(t),r=i._makeSplineLinesPath(n,{isReverseDirection:!0,isBeConnected:!0}),a=JSON.parse(JSON.stringify(o)),s=JSON.parse(JSON.stringify(r));if(e!==!1){var u=t[t.length-1],l=n[n.length-1];a.push(["K",u.left,u.top]),a.push(["L",u.left,u.startTop]),s.push(["K",l.left,l.top]),s.push(["L",l.left,l.top])}return{area:a.concat(s),line:o}})},e.prototype.resize=function(t){var e=this,i=t.dimension,n=t.groupPositions,o=t.zeroTop;this.resizeClipRect(i.width,i.height),this.zeroTop=o,this.groupPositions=n,this.groupPaths=this._getAreaChartPath(n),this.paper.setSize(i.width,i.height),this.tooltipLine.attr({top:i.height}),this.groupPaths.forEach(function(t,i){var o=e.groupAreas[i];o.area.attr({path:t.area.join(" ")}),o.line.attr({path:t.line.join(" ")}),o.startLine&&o.startLine.attr({path:t.startLine.join(" ")}),e.groupDots[i].forEach(function(t,o){var r=n[i][o];if(t.endDot&&e._moveDot(t.endDot.dot,r),t.startDot){var a=Object.assign({},r);a.top=a.startTop,e._moveDot(t.startDot.dot,a)}})})},e.prototype.selectLegend=function(t){var e=this,i=(0,h["default"])(t);this.selectedLegendIndex&&this.selectedLegendIndex!==-1&&this.resetSeriesOrder(this.selectedLegendIndex),this.selectedLegendIndex=t,this.groupAreas.forEach(function(n,o){var r=t===o,a=i||r?E:S,s=e.groupDots[o];n.area.attr({"fill-opacity":a}),n.line.attr({"stroke-opacity":a}),n.startLine&&n.startLine.attr({"stroke-opacity":a}),r&&e.moveSeriesToFront(n,s)})},e.prototype.resetSeriesOrder=function(t){var e=t+1<this.groupAreas.length?this.groupAreas[t+1]:null;if(e){var i=e.area;this.groupAreas[t].area.insertBefore(i),this.groupAreas[t].line.insertBefore(i),this.groupDots[t].forEach(function(t){t&&t.endDot&&t.endDot.dot.insertBefore(i)})}},e.prototype.moveSeriesToFront=function(t,e){t.line.toFront(),t.area.toFront(),t.startLine&&t.startLine.toFront(),e.forEach(function(t){t.endDot&&t.endDot.dot.toFront(),t.startDot&&t.startDot.dot.toFront()})},e.prototype.animateForAddingData=function(t,e,i,n,o){var r=this,a=this._getAreaChartPath(i,!1),s=0;i.length&&(n&&(s=1),this.zeroTop=o,this.groupAreas.forEach(function(t,o){var u=r.groupDots[o],l=i[o],h=a[o];n&&r._removeFirstDot(u),u.forEach(function(t,i){var n=l[i+s];r._animateByPosition(t.endDot.dot,n,e),t.startDot&&r._animateByPosition(t.startDot.dot,{left:n.left,top:n.startTop},e)}),r._animateByPath(t.area,h.area,e),r._animateByPath(t.line,h.line,e),t.startLine&&r._animateByPath(t.startLine,h.startLine,e)}))},e.prototype.renderSeriesLabel=function(t,e,i,n){var o={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,"text-anchor":"middle",opacity:0},r=t.set();return i.forEach(function(i,n){i.forEach(function(i,a){var s=e[n][a],u=_["default"].renderText(t,s.end,i.end,o);if(r.push(u),u.node.style.userSelect="none",u.node.style.cursor="default",u.node.setAttribute("filter","url(#glow)"),s.start){var l=_["default"].renderText(t,s.start,i.start,o);l.node.style.userSelect="none",l.node.style.cursor="default",l.node.setAttribute("filter","url(#glow)"),r.push(l)}})}),r},e.prototype._isAreaOpacityNumber=function(t){var e=(0,p["default"])(t);return e?(t<0||t>1)&&x["default"].print(A,"warn"):(0,f["default"])(t)||x["default"].print(A,"error"),e},e}(g["default"]);e["default"]=C},function(t,e){"use strict";e.__esModule=!0,e["default"]={print:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";window.console&&window.console[e](t)}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(146),s=n(a),u=i(137),l=n(u),h=i(135),c=n(h),p=i(143),d=n(p),f=180,m=360,g=.01,y=Math.PI/f,_=1,v=.3,T=.2,b="overlay",x=20,A=function(){function t(){o(this,t)}return t.prototype.render=function(t,e,i){var n=t.set();this.animationDuration=e.options.animationDuration,this.paper=t;var o=r(e.options.radiusRange,1);return this.holeRatio=o[0],this.chartBackground=e.chartBackground,this.chartType=e.chartType,this.callbacks=i,this.selectionColor=e.theme.selectionColor,this.circleBound=e.circleBound,this.sectorName="sector_"+this.chartType,this._setSectorAttr(),this.sectorInfos=this._renderPie(e.sectorData,e.theme.colors,e.additionalIndex,n),this.overlay=this._renderOverlay(),this.labelInfos={value:[],legend:[]},this.prevPosition=null,this.prevHoverSector=null,n},t.prototype.clear=function(){this.paper.clear()},t.prototype._makeSectorPath=function(t,e,i,n,o){var r=n*y,a=o*y,s=t+i*Math.sin(r),u=e-i*Math.cos(r),l=t+i*Math.sin(a),h=e-i*Math.cos(a),c=o-n>f?1:0,p=["M",t,e,"L",s,u,"A",i,i,0,c,1,l,h,"Z"];return{path:p}},t.prototype._makeDonutSectorPath=function(t,e,i,n,o,r){var a=n*y,s=o*y,u=r||i*this.holeRatio,l=t+i*Math.sin(a),h=e-i*Math.cos(a),c=t+u*Math.sin(a),p=e-u*Math.cos(a),d=t+i*Math.sin(s),m=e-i*Math.cos(s),g=t+u*Math.sin(s),_=e-u*Math.cos(s),v=o-n>f?1:0,T=["M",l,h,"A",i,i,0,v,1,d,m,"L",g,_,"A",u,u,0,v,0,c,p,"Z"];return{path:T}},t.prototype._setSectorAttr=function(){var t=void 0;this.paper.customAttributes[this.sectorName]||(t=this.holeRatio?this._makeDonutSectorPath:this._makeSectorPath,this.paper.customAttributes[this.sectorName]=t.bind(this))},t.prototype._renderOverlay=function(){var t={paper:this.paper,circleBound:{cx:0,cy:0,r:0},angles:{startAngle:0,endAngle:0},attrs:{fill:"none",opacity:0,stroke:this.chartBackground.color,"stroke-width":1}},e=this._renderSector(t);return e.node.setAttribute("class","auto-shape-rendering"),e.data("id",b),e.data("chartType",this.chartType),e},t.prototype._renderSector=function(t){var e=t.circleBound,i=t.angles,n=t.attrs;return n[this.sectorName]=[e.cx,e.cy,e.r,i.startAngle,i.endAngle],t.paper.path().attr(n)},t.prototype._renderPie=function(t,e,i,n){var o=this,r=this.circleBound,a=this.chartBackground,s=this.animationDuration,u=[];return t.forEach(function(t,l){var h=t.ratio,c=t.angles,p=e[l],d=o._renderSector({paper:o.paper,circleBound:r,angles:s?c.start:c.end,attrs:{fill:s?a.color:p,stroke:a.color,"stroke-width":0}});d.node.setAttribute("class","auto-shape-rendering"),d.data("index",l),d.data("legendIndex",l+i),d.data("chartType",o.chartType),u.push({sector:d,color:p,angles:c.end,ratio:h}),n.push(d)}),u},t.prototype._showOverlay=function(t,e){var i=this.overlay,n=this.sectorInfos[t],o=n.angles.startAngle,r=n.angles.endAngle,a=this.circleBound,s={fill:"#fff",opacity:1,"stroke-width":7,"stroke-color":"#fff","stroke-miterlimit":15};s[this.sectorName]=[a.cx,a.cy,a.r,o,r,a.r*this.holeRatio],i.attr(s),i.data("index",t),i.data("legendIndex",e),i.node.setAttribute("filter","url(#shadow)"),this._indexingOverlapElement([i,n.sector,this.labelInfos.legend[t],this.labelInfos.value[t]])},t.prototype._indexingOverlapElement=function(t){t.forEach(function(t){t&&t.toFront()})},t.prototype._hideOverlay=function(){var t=this.overlay,e={fill:"none",opacity:0};t.attr(e),this._indexingOverlapElement(this.labelInfos.legend),this._indexingOverlapElement(this.labelInfos.value)},t.prototype.animate=function(t){var e=this.sectorName,i=this.circleBound,n=this.animationDuration,o=[i.cx,i.cy,i.r],r=0;this.sectorInfos.forEach(function(t){var i=t.angles,a={fill:t.color};if(n){var s=n*t.ratio;0===i.startAngle&&i.endAngle===m&&(i.endAngle=m-g),a[e]=o.concat([i.startAngle,i.endAngle]);var u=c["default"].animation(a,s,">");t.sector.animate(u.delay(r)),r+=s}}),t&&setTimeout(t,r)},t.prototype.resize=function(t){var e=t.dimension,i=t.circleBound;this.circleBound=i,this.paper.setSize(e.width,e.height)},t.prototype.findSectorInfo=function(t){var e=this.paper&&this.paper.getElementByPoint(t.left,t.top),i=null;return e&&(i={legendIndex:(0,s["default"])(e.data("legendIndex"))?e.data("legendIndex"):-1,index:(0,s["default"])(e.data("index"))?e.data("index"):-1,chartType:e.data("chartType")}),i},t.prototype._isChangedPosition=function(t,e){return!t||t.left!==e.left||t.top!==e.top},t.prototype._showTooltip=function(t,e){var i=[{},0,t.data("index"),{left:e.left-x,top:e.top-x}];this.callbacks.showTooltip.apply(null,i)},t.prototype._isValidSector=function(t){return t&&t.data("chartType")===this.chartType},t.prototype.moveMouseOnSeries=function(t){var e=this.paper&&this.paper.getElementByPoint(t.left,t.top);this._isValidSector(e)?(this.prevHoverSector!==e&&(this._showOverlay(e.data("index"),e.data("legendIndex")),this.prevHoverSector=e),this._isChangedPosition(this.prevPosition,t)&&this._showTooltip(e,t)):this.prevHoverSector&&(this._hideOverlay(),this.callbacks.hideTooltip(),this.prevHoverSector=null),this.prevPosition=t},t.prototype.selectSeries=function(t){var e=this.sectorInfos[t.index];if(e){var i=c["default"].color(e.color),n=d["default"].makeChangedLuminanceColor(i.hex,T),o=this.selectionColor||n;e.sector.attr({fill:o})}},t.prototype.unselectSeries=function(t){var e=this.sectorInfos[t.index];e&&e.sector.attr({fill:e.color})},t.prototype.selectLegend=function(t){var e=(0,l["default"])(t);this.sectorInfos.forEach(function(i,n){var o=e||t===n?_:v;i.sector.attr({"fill-opacity":o})})},t.prototype.getRenderedLabelWidth=function(t,e){return d["default"].getRenderedTextSize(t,e.fontSize,e.fontFamily).width},t.prototype.getRenderedLabelHeight=function(t,e){return d["default"].getRenderedTextSize(t,e.fontSize,e.fontFamily).height},t.prototype.renderLabels=function(t){var e=this,i=t.theme,n=t.labelFilter,o=t.dataType,r=t.ratioValues,a=t.seriesNames,s={"font-size":i.fontSize,"font-family":t.fontFamily?t.fontFamily:t.theme.fontFamily,"font-weight":i.fontWeight,"text-anchor":"middle",fill:i.color||"#fff",opacity:0};t.positions.forEach(function(i,u){var l=r[u],h=n&&!n({value:t.labels[u],labelType:o,seriesName:a[u],ratio:l}),c=void 0;h||(t.colors&&(s.fill=t.colors[u]),i&&(c=d["default"].renderText(t.paper,i,t.labels[u],s),c.node.style.userSelect="none",c.node.style.cursor="default",c.node.setAttribute("class","auto-shape-rendering")),e.labelInfos[o].push(c),t.labelSet.push(c))},this),this.labelSet||(this.labelSet=t.labelSet)},t}();e["default"]=A},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(137),u=n(s),l=i(163),h=n(l),c=i(143),p=n(c),d=1,f=.3,m=6,g=function(t){function e(){o(this,e);var i=r(this,t.call(this));return i.selectedLegendIndex=null,i.chartType="radial",i.lineWidth=m,i}return a(e,t),e.prototype.render=function(t,e){var i=e.dimension,n=e.groupPositions,o=e.theme,r=o.colors,a=e.options,s=a.pointWidth,u=a.showDot,l=a.showArea,h=u?1:0,c=this._getLinesPath(n),p=this.makeBorderStyle(o.strokeColor,h,o.strokeWidth),d=this.makeOutDotStyle(h,p),f=t.set(),m=this.lineWidth=s?s:this.lineWidth,g=n.map(function(t){return t.pop(),t});return this.paper=t,this.theme=o,this.dimension=i,this.position=e.position,l&&(this.groupAreas=this._renderArea(t,c,r,f)),this.groupLines=this._renderLines(t,c,r,m,f),this.groupDots=this._renderDots(t,g,r,h,f),e.options.allowSelect&&(this.selectionDot=this._makeSelectionDot(t),this.selectionColor=o.selectionColor),this.colors=r,this.borderStyle=p,this.outDotStyle=d,this.groupPositions=n,this.groupPaths=c,this.dotOpacity=h,this.showArea=l,f},e.prototype._getLinesPath=function(t){var e=this;return t.map(function(t){return e._makeLinesPath(t)})},e.prototype._renderLines=function(t,e,i,n,o){return e.map(function(e,r){var a=i[r]||"transparent",s=p["default"].renderLine(t,e.join(" "),{color:a,strokeWidth:n});return o.push(s),s})},e.prototype._renderArea=function(t,e,i,n){var o=this;return e.map(function(e,r){var a=i[r]||"transparent",s=p["default"].renderArea(t,e,{fill:a,opacity:.4,"stroke-width":o.lineWidth,stroke:a});return n.push(s),s},this)},e.prototype.resize=function(t){var e=this,i=t.dimension,n=t.groupPositions;this.groupPositions=n,this.groupPaths=this._getLinesPath(n),this.paper.setSize(i.width,i.height),this.groupPaths.forEach(function(t,i){e.groupLines[i].attr({path:t.join(" ")}),e.showArea&&e.groupAreas[i].attr({path:t.join(" ")}),e.groupDots[i].forEach(function(t,o){e._moveDot(t.endDot.dot,n[i][o])})})},e.prototype.selectLegend=function(t){var e=(0,u["default"])(t);this.selectedLegendIndex=t,this.groupLines.forEach(function(i,n){var o=e||t===n?d:f;i.attr({"stroke-opacity":o})})},e}(h["default"]);e["default"]=g},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(135),a=n(r),s=i(146),u=n(s),l=i(137),h=n(l),c=i(145),p=n(c),d=i(143),f=n(d),m=.8,g=1,y=.8,_=.3,v=.2,T=2,b=20,x=function(){function t(){o(this,t)}return t.prototype.render=function(t,e,i){var n=t.set();return this.paper=t,this.animationDuration=e.options.animationDuration,this.theme=e.theme,this.seriesDataModel=e.seriesDataModel,this.groupBounds=e.groupBounds,this.callbacks=i,this.overlay=this._renderOverlay(),this.groupCircleInfos=this._renderCircles(n),this.prevCircle=null,this.prevOverCircle=null,this.animationTimeoutId=null,this.selectedLegend=null,this.paper.raphael.svg&&this.appendShadowFilterToDefs(),n},t.prototype._renderOverlay=function(){var t={left:0,top:0},e={fill:"none",stroke:"#fff","stroke-opacity":g,"stroke-width":2},i=f["default"].renderCircle(this.paper,t,0,e);return i},t.prototype._renderCircles=function(t){var e=this,i=this.theme.colors;return this.groupBounds.map(function(n,o){return n.map(function(n,r){var a=null;if(n){var s=i[r],u=f["default"].renderCircle(e.paper,n,e.animationDuration?0:n.radius,{fill:s,opacity:e.animationDuration?0:m,stroke:"none"});t.push(u),u.data("groupIndex",o),u.data("index",r),a={circle:u,color:s,bound:n}}return a})})},t.prototype._animateCircle=function(t,e,i){t.animate({r:e,opacity:m},i,">")},t.prototype.animate=function(){var t=this;f["default"].forEach2dArray(this.groupCircleInfos,function(e){e&&t.animationDuration&&t._animateCircle(e.circle,e.bound.radius,t.animationDuration)})},t.prototype._updatePosition=function(t,e){t.attr({cx:e.left,cy:e.top,r:e.radius})},t.prototype.resize=function(t){var e=this,i=t.dimension,n=t.groupBounds;this.groupBounds=n,this.paper.setSize(i.width,i.height),f["default"].forEach2dArray(this.groupCircleInfos,function(t,i,o){var r=n[i][o];t&&(t.bound=r,e._updatePosition(t.circle,r))})},t.prototype.findIndexes=function(t){var e=this.paper.getElementByPoint(t.left,t.top),i=null;return e&&(i={index:e.data("index"),groupIndex:e.data("groupIndex")}),i},t.prototype.appendShadowFilterToDefs=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),n=document.createElementNS("http://www.w3.org/2000/svg","feBlend");t.setAttributeNS(null,"id","shadow"),t.setAttributeNS(null,"x","-50%"),t.setAttributeNS(null,"y","-50%"),t.setAttributeNS(null,"width","180%"),t.setAttributeNS(null,"height","180%"),e.setAttributeNS(null,"result","offOut"),e.setAttributeNS(null,"in","SourceAlpha"),e.setAttributeNS(null,"dx","0"),e.setAttributeNS(null,"dy","0"),i.setAttributeNS(null,"result","blurOut"),i.setAttributeNS(null,"in","offOut"),i.setAttributeNS(null,"stdDeviation","2"),n.setAttributeNS(null,"in","SourceGraphic"),n.setAttributeNS(null,"in2","blurOut"),n.setAttributeNS(null,"mode","normal"),t.appendChild(e),t.appendChild(i),t.appendChild(n),this.paper.defs.appendChild(t)},t.prototype._isChangedPosition=function(t,e){return!t||t.left!==e.left||t.top!==e.top},t.prototype.showAnimation=function(t){var e=this.groupCircleInfos[t.groupIndex][t.index],i=e.bound;this.circle=e.circle,this.overlay.attr({fill:e.color,cx:i.left,cy:i.top,r:i.radius+T,stroke:"#fff",opacity:1}),this.circle.attr({opacity:1}),this.overlay.node.setAttribute("filter","url(#shadow)"),this.overlay.toFront(),this.circle.toFront()},t.prototype.hideAnimation=function(t){var e=_;this.overlay.attr({cx:0,cy:0,r:0,opacity:0}),((0,h["default"])(this.selectedLegend)||t.index===this.selectedLegend)&&(e=y),this.circle.attr({opacity:e})},t.prototype._findCircle=function(t){for(var e=[],i=this.paper,n=void 0;(0,p["default"])(n);){var o=i.getElementByPoint(t.left,t.top);o?o.attrs.opacity>_?n=o:(e.push(o),o.hide()):n=null}return n||(n=e[0]),e.forEach(function(t){t.show()}),n},t.prototype.moveMouseOnSeries=function(t){var e=this._findCircle(t);if(e&&(0,u["default"])(e.data("groupIndex"))){var i=e.data("groupIndex"),n=e.data("index"),o=[{},i,n,{left:t.left-b,top:t.top-b}];this._isChangedPosition(this.prevPosition,t)&&(this.callbacks.showTooltip.apply(null,o),this.prevOverCircle=e)}else this.prevOverCircle&&(this.callbacks.hideTooltip(),this.prevOverCircle=null);this.prevPosition=t},t.prototype.selectSeries=function(t){var e=t.groupIndex,i=t.index,n=this.groupCircleInfos[e][i],o=a["default"].color(n.color),r=this.theme.selectionColor,s=r||f["default"].makeChangedLuminanceColor(o.hex,v);n.circle.attr({fill:s})},t.prototype.unselectSeries=function(t){var e=t.groupIndex,i=t.index,n=this.groupCircleInfos[e][i];n.circle.attr({fill:n.color})},t.prototype.selectLegend=function(t){var e=(0,h["default"])(t);this.selectedLegend=t,f["default"].forEach2dArray(this.groupCircleInfos,function(i,n,o){if(i){var r=e||t===o?y:_;i.circle.attr({opacity:r})}})},t}();e["default"]=x},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(146),a=n(r),s=i(143),u=n(s),l=i(164),h=n(l),c=100,p=0,d=4,f=function(){function t(){o(this,t)}return t.prototype.render=function(t,e){var i=t.set();return this.paper=t,this.chartType=e.chartType,this.theme=e.theme||{},this.colorSpectrum=e.colorSpectrum,this.chartBackground=e.chartBackground,this.zoomable=e.zoomable,this.useColorValue=e.options.useColorValue,this.borderColor=this.theme.borderColor||"none",this.borderWidth=this.theme.borderWidth,this.groupBounds=e.groupBounds,this.boundMap=e.boundMap,this._bindGetBoundFunction(),this._bindGetColorFunction(),this.seriesDataModel=e.seriesDataModel,this.boxesSet=this._renderBoxes(e.seriesDataModel,e.startDepth,!!e.isPivot,i),this.rectOverlay=this._renderRectOverlay(),i},t.prototype._renderRectOverlay=function(){var t={width:1,height:1,left:0,top:0},e={"fill-opacity":0},i=u["default"].renderRect(this.paper,t,Object.assign({"stroke-width":0},e));return i.node.setAttribute("filter","url(#shadow)"),i},t.prototype._bindGetBoundFunction=function(){this.boundMap?this._getBound=this._getBoundFromBoundMap:this._getBound=this._getBoundFromGroupBounds},t.prototype._bindGetColorFunction=function(){this.colorSpectrum?this._getColor=this._getColorFromSpectrum:this._getColor=this._getColorFromColors},t.prototype._getBoundFromGroupBounds=function(t){return this.groupBounds[t.groupIndex][t.index].end},t.prototype._getBoundFromBoundMap=function(t){return this.boundMap[t.id]},t.prototype._getColorFromSpectrum=function(t,e){var i=void 0;return i=t.hasChild&&t.depth===e?"none":this.colorSpectrum.getColor(t.colorRatio||t.ratio)||this.chartBackground},t.prototype._getColorFromColors=function(t,e){return t.depth===e?this.theme.colors[t.group]:"#000"},t.prototype._renderRect=function(t,e,i,n){return u["default"].renderRect(this.paper,t,{fill:e,stroke:this.borderColor,"stroke-width":i,"fill-opacity":n})},t.prototype._getStrokeWidth=function(t){var e=void 0;return e=this.borderWidth?this.borderWidth:t?d:p},t.prototype._renderBoxes=function(t,e,i,n){var o=this,r=h["default"].isTreemapChart(this.chartType);return t.map(function(t,i){if(r&&!o.colorSpectrum&&t.getSeriesItemCount()){var a=t.getSeriesItem(0);o._setTreeFillOpacity({id:a.parent},e)}return t.map(function(t,r){var a=null,s=t.depth,u=o.colorSpectrum?o.borderWidth:o._getStrokeWidth(s===e),l=o.colorSpectrum?1:t.fillOpacity;t.groupIndex=i,t.index=r;var h=o._getBound(t);if(h){var c=o._getColor(t,e);a={rect:o._renderRect(h,c,u,l),seriesItem:t,color:c},n&&n.push(a.rect)}return a})},i)},t.prototype._setTreeFillOpacity=function(t,e){var i=this,n=this.seriesDataModel.findSeriesItemsByParent(t.id);n.forEach(function(n,o){var r=n.depth;r===e?n.fillOpacity=1:r===e+1?n.fillOpacity=.05*o:r<e?n.fillOpacity=0:n.fillOpacity=t.fillOpacity+.05*o,n.hasChild&&i._setTreeFillOpacity({id:n.id,fillOpacity:n.fillOpacity},e)})},t.prototype._animateChangingColor=function(t,e,i,n,o){var r={"fill-opacity":(0,a["default"])(i)?i:1,stroke:n,"stroke-width":o};e&&(r.fill=e),t.animate(r,c,">")},t.prototype.showAnimation=function(t){var e=this.boxesSet[t.groupIndex][t.index];if(e){var i=e.rect.node,n=e.color;"treemap"!==this.chartType||this.zoomable||this.useColorValue||(n=this.theme.colors[t.index]),this.rectOverlay.attr({x:i.getAttribute("x"),y:i.getAttribute("y"),width:i.getAttribute("width"),height:i.getAttribute("height"),fill:n,"fill-opacity":1,stroke:"#ffffff","stroke-width":4,"stroke-opacity":1}),this.rectOverlay.toFront(),this.labelSet&&this.labelSet.toFront()}},t.prototype.hideAnimation=function(t){var e=this.boxesSet[t.groupIndex][t.index];e&&this.rectOverlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0,"stroke-opacity":0})},t.prototype.resize=function(t){var e=this,i=t.dimension;this.boundMap=t.boundMap,this.groupBounds=t.groupBounds,this.paper.setSize(i.width,i.height),u["default"].forEach2dArray(this.boxesSet,function(t,i,n){if(t){var o=e._getBound(t.seriesItem,i,n);o&&u["default"].updateRectBound(t.rect,o)}})},t.prototype.renderSeriesLabel=function(t,e,i,n){var o=t.set(),r={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:"#ffffff",opacity:0};return i.forEach(function(i,n){i.forEach(function(i,a){var s=u["default"].renderText(t,e[n][a].end,i,r);s.node.style.userSelect="none",s.node.style.cursor="default",o.push(s)})}),this.labelSet=o,o},t.prototype.renderSeriesLabelForTreemap=function(t,e,i,n){var o=t.set(),r={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,opacity:0};return i.forEach(function(i,n){if(e[n]){var a=u["default"].renderText(t,e[n],i,r);a.node.style.userSelect="none",a.node.style.cursor="default",o.push(a)}}),this.labelSet=o,o},t}();e["default"]=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e,i){var n=document.createElementNS("http://www.w3.org/2000/svg","g");return n.id=i,e.forEach(function(t){g["default"].append(n,t.node)}),t.canvas.appendChild(n),n}e.__esModule=!0;var s=o(["\n s",",",",0,0\n t",",","\n "],["\n s",",",",0,0\n t",",","\n "]),u=o(["\n s",",",",0,0\n t",",","\n "],["\n s",",",",0,0\n t",",","\n "]),l=i(145),h=n(l),c=i(153),p=n(c),d=i(143),f=n(d),m=i(155),g=n(m),y=i(148),_=n(y),v=p["default"].msie&&p["default"].version<=8,T="gray",b=100,x="tui-chart-series-group",A="#eee",D=function(){function t(){r(this,t)}return t.prototype.render=function(t,e){var i=e.mapModel.getMapDimension();this.ratio=this._getDimensionRatio(e.layout.dimension,i),this.dimension=e.layout.dimension,this.position=e.layout.position,this.paper=t,this.sectorSet=t.set(),this.sectors=this._renderMap(e,this.ratio),v||(this.g=a(t,this.sectorSet,x)),this.overColor=e.theme.overColor},t.prototype._getDimensionRatio=function(t,e){return Math.min(t.height/e.height,t.width/e.width)},t.prototype._renderMap=function(t,e){var i=this.sectorSet,n=this.paper,o=t.layout.position,r=t.colorSpectrum;return t.mapModel.getMapData().map(function(t,a){var u=t.ratio,l=t.path,h=u?r.getColor(u):A,c=f["default"].renderArea(n,l,{fill:h,opacity:1,stroke:T,"stroke-width":.2,"stroke-opacity":1,transform:_["default"].oneLineTrim(s,e,e,o.left/e,o.top/e)});return c.data("index",a),i.push(c),{sector:c,color:h,ratio:u}})},t.prototype.findSectorIndex=function(t){var e=this.paper.getElementByPoint(t.left,t.top),i=e&&e.data("index"),n=!(0,h["default"])(i)&&this.sectors[i];return n&&!(0,h["default"])(n.ratio)?i:null},t.prototype.changeColor=function(t){var e=this.sectors[t],i={stroke:"#ffffff","stroke-width":4};this.overColor&&(i.fill=this.overColor),e.sector.animate(i,b,">"),e.sector.node.setAttribute("filter","url(#shadow)"),e.sector.toFront()},t.prototype.restoreColor=function(t){var e=this.sectors[t];e.sector.animate({fill:e.color,stroke:T,"stroke-width":.2},b,">"),e.sector.node.setAttribute("filter","none")},t.prototype.scaleMapPaths=function(t,e,i,n,o){var r=this.g.transform.baseVal,a=this.paper.canvas.createSVGTransform(),s=this.paper.canvas.createSVGMatrix(),u=this.paper.raphael.matrix(),l=r.numberOfItems?r.getItem(0).matrix:{a:1,b:0,c:0,d:1,e:0,f:0},h=o.width-this.dimension.width,c=o.height-this.dimension.height,p=l.e/l.a,d=l.f/l.d,f=-h/l.a,m=-c/l.d;u.scale(t,t,e.left*i-p*t,e.top*i-d*t);var g=u.e/u.a+p,y=u.f/u.d+d;g>=0?u.e=-p*u.a:g<f&&(u.e=f-p),y>=0?u.f=-d*u.a:y<m&&(u.f=m-d),s.a=u.a,s.b=u.b,s.c=u.c,s.d=u.d,s.e=u.e,s.f=u.f,a.setMatrix(s),r.appendItem(a),r.initialize(r.consolidate())},t.prototype.moveMapPaths=function(t,e){var i=this.paper.canvas.createSVGMatrix(),n=this.paper.raphael.matrix(),o=this.g.transform.baseVal,r=this.paper.canvas.createSVGTransform(),a=e.width-this.dimension.width,s=e.height-this.dimension.height,u=o.numberOfItems?o.getItem(0).matrix:{a:1,b:0,c:0,d:1,e:0,f:0};n.translate(t.x,t.y),this._translateXForRaphaelMatrix({raphaelMatrix:n,transformMatrix:u,maxRight:a}),this._translateYForRaphaelMatrix({raphaelMatrix:n,transformMatrix:u,maxTop:s}),i.a=n.a,i.b=n.b,i.c=n.c,i.d=n.d,i.e=n.e,i.f=n.f,r.setMatrix(i),o.appendItem(r),o.initialize(o.consolidate())},t.prototype._translateXForRaphaelMatrix=function(t){var e=t.raphaelMatrix,i=t.transformMatrix,n=t.maxRight,o=e.e/e.a,r=o+i.e/i.a;r>=0&&o>0?e.e=0:r<0&&r<-n/i.a&&o<0&&(e.e=0)},t.prototype._translateYForRaphaelMatrix=function(t){var e=t.raphaelMatrix,i=t.transformMatrix,n=t.maxTop,o=e.f/e.d,r=o+i.f/i.d;r>=0&&o>0?e.f=0:r<0&&r<-n/i.d&&o<0&&(e.f=0)},t.prototype.renderSeriesLabels=function(t,e,i){var n={"font-size":i.fontSize,
"font-family":i.fontFamily,"font-weight":i.fontWeight,fill:i.color,"text-anchor":"middle",opacity:0,transform:_["default"].oneLineTrim(u,this.ratio,this.ratio,this.position.left/this.ratio,this.position.top/this.ratio)},o=t.set();return e.forEach(function(e){var i=e.position,r=f["default"].renderText(t,i,e.name||e.code,n);o.push(r),r.node.style.userSelect="none",r.node.style.cursor="default",r.node.setAttribute("filter","url(#glow)"),v||self.g.appendChild(r.node)}),o},t}();e["default"]=D},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(){return y["default"].LEGEND_ICON_WIDTH+y["default"].LEGEND_LABEL_LEFT_PADDING}e.__esModule=!0;var s=o(["\n M","\n ,","\n l","\n ,","\n l","\n ,-","\n "],["\n M","\n ,","\n l","\n ,","\n l","\n ,-","\n "]),u=i(146),l=n(u),h=i(137),c=n(h),p=i(150),d=n(p),f=i(145),m=n(f),g=i(154),y=n(g),_=i(143),v=n(_),T=i(158),b=n(T),x=i(148),A=n(x),D=i(173),E=n(D),S=.5,C=8,L=10,M=L/2,P=3,w=function(){function t(){r(this,t),this._checkBoxWidth=0,this._checkBoxHeight=0,this._legendItemHeight=0,this._currentPageCount=1,this._showCheckbox=!0}return t.prototype._renderLegendItems=function(t){var e=this,i=y["default"].LEGEND_LABEL_LEFT_PADDING,n=Object.assign({},this.basePosition);t.forEach(function(t,o){var r=t.iconType,a=t.index,s=t.isUnselected,u=t.labelHeight,l=t.checkbox,h=t.colorByPoint?"#aaa":t.theme.color,c=n.left+e._calculateSingleLegendWidth(a,r),p=c>=e.paper.width;e.isHorizontal&&p&&(n.top+=e._legendItemHeight+y["default"].LABEL_PADDING_TOP,n.left=e.basePosition.left),e._showCheckbox&&(e._renderCheckbox(n,{isChecked:l.checked,legendIndex:a,legendSet:e.legendSet}),n.left+=e._checkBoxWidth+i),e._renderIcon(n,{legendColor:h,iconType:r,labelHeight:u,isUnselected:s,legendIndex:a,legendSet:e.legendSet}),n.left+=y["default"].LEGEND_ICON_WIDTH+i,e._renderLabel(n,{labelText:t.label,labelHeight:u,isUnselected:s,legendIndex:a,legendSet:e.legendSet}),e.isHorizontal?n.left+=e.labelWidths[o]+y["default"].LEGEND_H_LABEL_RIGHT_PADDING:(n.left=e.basePosition.left,n.top+=e._legendItemHeight+y["default"].LINE_MARGIN_TOP)})},t.prototype._getLegendData=function(t,e){var i=this.basePosition.top,n=this.dimension.height,o=this.paper.height,r=t;if(!this.isHorizontal&&n+2*i>o){this._legendItemHeight=Math.max(t[0].labelHeight,y["default"].LEGEND_CHECKBOX_SIZE);var a=o-2*i,s=this._legendItemHeight+y["default"].LINE_MARGIN_TOP,u=Math.floor(a/s);r=t.slice((e-1)*u,e*u)}return r},t.prototype.render=function(t){this.eventBus=t.eventBus,this.paper=t.paper,this.dimension=t.dimension,this.legendSet=this.paper.set(),this.labelWidths=t.labelWidths,this.labelTheme=t.labelTheme,this.basePosition=t.position,this.isHorizontal=t.isHorizontal,this.originalLegendData=t.legendData;var e=[];if(this.originalLegendData.length){this._showCheckbox=(0,l["default"])(t.legendData[0].checkbox),this._setComponentDimensionsBaseOnLabelHeight(t.legendData[0].labelHeight);var i=this._getLegendData(t.legendData,this._currentPageCount);if(this._renderLegendItems(i),!this.isHorizontal&&i&&i.length<t.legendData.length){var n=this.paper.height-2*this.basePosition.top;this.availablePageCount=Math.ceil(t.dimension.height/n),e=this._renderPaginationArea(this.basePosition,{width:t.dimension.width,height:n})}}return{legendSet:this.legendSet,paginationElem:e}},t.prototype._paginateLegendAreaTo=function(t){var e=this._currentPageCount;this._removeLegendItems(),"next"===t?e+=1:e-=1,this._renderLegendItems(this._getLegendData(this.originalLegendData,e))},t.prototype._removeLegendItems=function(){this.legendSet.forEach(function(t){var e=t.events||[];e.forEach(function(t){t.unbind()}),t.remove()})},t.prototype._renderPaginationArea=function(t,e){var i=this,n=y["default"].LEGEND_PAGINATION_BUTTON_WIDTH,o=y["default"].LEGEND_PAGINATION_BUTTON_PADDING_RIGHT,r=y["default"].LEGEND_AREA_V_PADDING,a=y["default"].LEGEND_AREA_H_PADDING,s=t.top+e.height-r,u=t.left-a,l=u+a,h=E["default"].sum([l,o,n]),c=["M",h+5,",",s+P+4,"L",h+M+5,",",s+C+4,"L",h+L+5,",",s+P+4].join(""),p=["M",l+5,",",s+C+4,"L",l+M+5,",",s+P+4,"L",l+L+5,",",s+C+4].join(""),d=this._renderPaginationRect({top:s,left:l}),f={color:"#555",strokeWidth:2},m=v["default"].renderLine(this.paper,p,f),g=this._renderPaginationRect({top:s,left:h}),_=v["default"].renderLine(this.paper,c,f),T=this.paper.set(),b=this.paper.set();return d.className="tui-chart-icon",T.push(d),T.push(m),g.className="tui-chart-icon",b.push(g),b.push(_),T.click(function(){i._currentPageCount>1&&(i._paginateLegendAreaTo("previous"),i._currentPageCount-=1)}),b.click(function(){i._currentPageCount<i.availablePageCount&&(i._paginateLegendAreaTo("next"),i._currentPageCount+=1)}),[T,b]},t.prototype._renderPaginationRect=function(t){var e=y["default"].LEGEND_PAGINATION_BUTTON_WIDTH,i={left:t.left,top:t.top,width:e,height:e},n=v["default"].renderRect(this.paper,i,{fill:"#f4f4f4",rx:"1px",ry:"1px",stroke:"none"});return n},t.prototype.makeLabelWidths=function(t,e,i){return t.map(function(t){var n=v["default"].getRenderedTextSize(t.label,e.fontSize,e.fontFamily).width;return i&&n>i&&(n=i),n+y["default"].LEGEND_LABEL_LEFT_PADDING})},t.prototype.getRenderedLabelHeight=function(t,e){return v["default"].getRenderedTextSize(t,e.fontSize,e.fontFamily).height},t.prototype._renderLabel=function(t,e){var i=this.eventBus,n=this.labelTheme,o={left:t.left,top:t.top+this._legendItemHeight/2},r={fill:n.color,"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,opacity:e.isUnselected?S:1,"text-anchor":"start"},a=v["default"].renderText(this.paper,o,e.labelText,r);a.data("index",e.legendIndex),a.node.style.userSelect="none",a.node.style.cursor="pointer",e.legendSet.push(a),a.click(function(){i.fire("labelClicked",e.legendIndex)})},t.prototype._renderCheckbox=function(t,e){var i=this,n=t.left,o=t.top+(this._legendItemHeight-this._checkBoxHeight)/2,r=this._checkBoxWidth/3,a=this._checkBoxWidth/5.7,u=A["default"].oneLineTrim(s,.25*this._checkBoxWidth+n,.5*this._checkBoxHeight+o,a,a,r,r),l=this.paper.set(),h=this.paper.rect(n,o,this._checkBoxWidth,this._checkBoxHeight,0).attr({fill:"#fff",stroke:"#aaa","stroke-width":1});if(h.node.setAttribute("class","auto-shape-rendering"),l.push(h),e.isChecked){var c=this.paper.path(u).attr({stroke:"#555","stroke-width":2});c.node.setAttribute("class","auto-shape-rendering"),l.push(c)}l.data("index",e.legendIndex),l.click(function(){i.eventBus.fire("checkboxClicked",e.legendIndex)}),l.forEach(function(t){e.legendSet.push(t)})},t.prototype._renderIcon=function(t,e){var i=this,n=void 0;this.paper.setStart(),"line"!==e.iconType&&"radial"!==e.iconType||!this.paper.canvas.transform?n=v["default"].renderRect(this.paper,{left:t.left,top:t.top+(y["default"].LEGEND_CHECKBOX_SIZE-y["default"].LEGEND_ICON_HEIGHT)/2,width:y["default"].LEGEND_ICON_WIDTH,height:y["default"].LEGEND_ICON_HEIGHT},{"stroke-width":0,fill:e.legendColor,opacity:e.isUnselected?S:1}):(n=this.paper.path(y["default"].LEGEND_LINE_ICON_PATH),n.attr({stroke:e.legendColor,"stroke-width":2,"stroke-opacity":e.isUnselected?S:1}),n.translate(t.left,t.top)),n.data("icon",e.iconType),n.data("index",e.legendIndex),n.click(function(){i.eventBus.fire("labelClicked",e.legendIndex)}),e.legendSet.push(n)},t.prototype.selectLegend=function(t,e){e.forEach(function(e){var i=e.data("index"),n="line"===e.data("icon")?"stroke-opacity":"opacity";(0,c["default"])(i)||(0,m["default"])(i)?e.attr(n,1):(0,m["default"])(i)||((0,d["default"])(t)&&i!==t?e.attr(n,S):e.attr(n,1))})},t.prototype._getCheckboxWidth=function(){return this._showCheckbox?this._checkBoxWidth+y["default"].LEGEND_LABEL_LEFT_PADDING:0},t.prototype._getLabelWidth=function(t){var e=void 0;return e=t?this.labelWidths[t]||0:b["default"].max(this.labelWidths)},t.prototype._calculateLegendWidth=function(){return this._calculateSingleLegendWidth()},t.prototype._calculateSingleLegendWidth=function(t){return y["default"].LEGEND_AREA_H_PADDING+this._getCheckboxWidth()+a()+this._getLabelWidth(t)+y["default"].LEGEND_AREA_H_PADDING},t.prototype._setComponentDimensionsBaseOnLabelHeight=function(t){this._legendItemHeight=Math.max(t,y["default"].LEGEND_CHECKBOX_SIZE),this._checkBoxWidth=this._checkBoxHeight=y["default"].LEGEND_CHECKBOX_SIZE},t}();e["default"]=w},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(144),r=n(o),a=i(158),s=n(a),u=100,l={calculateLimit:function(t,e){var i={},n=0;t<0&&(n=t,e-=t,t=0);var o=(e-t)/20;return i.max=e+o+n,e/6>t?i.min=n:i.min=t-o+n,i},makeTickPixelPositions:function(t,e,i,n){var o=[];return i=i||0,e>0&&(o=(0,r["default"])(0,e).map(function(n){var o=0===n?0:n/(e-1);return o*t+i}),o[o.length-1]-=1),n&&o.push(n),o},makeLabelsFromLimit:function(t,e){var i=l.findMultipleNum(e),n=Math.round(t.min*i),o=Math.round(t.max*i),a=(0,r["default"])(n,o+1,e*i);return a.map(function(t){return t/i})},calculateStepFromLimit:function(t,e){return l.divide(l.subtract(t.max,t.min),e-1)},sumPlusValues:function(t){var e=t.filter(function(t){return t>0});return l.sum(e)},sumMinusValues:function(t){var e=t.filter(function(t){return t<0});return l.sum(e)},makePercentageValue:function(t,e){return t/e*u},calculateRatio:function(t,e,i,n){return e?(t-i)/e*n:0}},h=function(t){var e=String(t).split(".");return 2===e.length?e[1].length:0},c=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=e.map(function(t){return l.getDecimalLength(t)}),o=s["default"].max(n);return Math.pow(10,o)},p=function(t,e){var i=l.findMultipleNum(e),n=void 0;return n=1===i?t%e:t*i%(e*i)/i},d=function(t,e){var i=l.findMultipleNum(t,e);return(t*i+e*i)/i},f=function(t,e){var i=l.findMultipleNum(t,e);return(t*i-e*i)/i},m=function(t,e){var i=l.findMultipleNum(t,e);return t*i*(e*i)/(i*i)},g=function(t,e){var i=l.findMultipleNum(t,e);return t*i/(e*i)},y=function(t){var e=t.slice();return e.unshift(0),e.reduce(function(t,e){return l.add(parseFloat(t),parseFloat(e))})},_=function(t){for(var e,i=[],n=2;n*n<=t;n+=1)t%n===0&&(e=t/n,i.push(n),e!==n&&i.push(e));return i.sort(function(t,e){return t-e}),i};l.getDecimalLength=h,l.findMultipleNum=c,l.mod=p,l.add=d,l.subtract=f,l.multiply=m,l.divide=g,l.divisors=_,l.sum=y,e["default"]=l},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(143),s=n(a),u=i(154),l=n(u),h=i(148),c=n(h),p=i(164),d=n(p),f=i(173),m=n(f),g=360,y=270,_=2.5,v=function(){function t(){o(this,t),this.verticalRightBasePath=["M",-4,0,"L",-8,2.5,"L",-8,12.5,"L",-28,12.5,"L",-28,-12.5,"L",-8,-12.5,"L",-8,-2.5],this.verticalLeftBasePath=["M",10,0,"L",14,2.5,"L",14,12.5,"L",34,12.5,"L",34,-12.5,"L",14,-12.5,"L",14,-2.5],this.horizontalTopBasePath=["M",0,10,"L",2.5,14,"L",12.5,14,"L",12.5,34,"L",-12.5,34,"L",-12.5,14,"L",-2.5,14],this.horizontalBottomBasePath=["M",0,-4,"L",2.5,-8,"L",12.5,-8,"L",12.5,-28,"L",-12.5,-28,"L",-12.5,-8,"L",-2.5,-8]}return t.prototype.render=function(t){var e=t.layout,i=t.align,n=t.legendSet,o=t.theme,a=t.labels,s=d["default"].isHorizontalLegend(i),u=r(a,1),h=u[0],p=a[a.length-1],f=c["default"].getRenderedLabelsMaxWidth([h,p]),m=c["default"].getRenderedLabelHeight(h,o),g=d["default"].isBoxTypeChart(this.chartType),y=e.position;this.layout=e,this.isHorizontal=s,this.isLeftLegend=d["default"].isLegendAlignLeft(i),this.isTopLegend=d["default"].isLegendAlignTop(i),this.theme=o,this.paper=t.paper,this.legendSet=t.legendSet,this.colorSpectrum=t.colorSpectrum,d["default"].isLegendAlignTop(i)?y.top+=l["default"].MAP_LEGEND_AREA_PADDING_WIDE+m+2*l["default"].MAP_LEGEND_LABEL_PADDING:d["default"].isLegendAlignBottom(i)?(y.top+=this._calculateHorizontalLegendTooltipHeight(a,o)+l["default"].MAP_LEGEND_PADDING_BTW_GRAPH_AND_WEDGE,g?y.top-=l["default"].MAP_LEGEND_TOOLTIP_VERTICAL_PADDING:y.top+=l["default"].MAP_LEGEND_AREA_PADDING_WIDE):d["default"].isLegendAlignLeft(i)?y.left+=f+l["default"].MAP_LEGEND_LABEL_PADDING:y.left=e.position.right-f-l["default"].MAP_LEGEND_LABEL_PADDING-l["default"].MAP_LEGEND_GRAPH_SIZE;var _=this._renderGradientBar(this.paper,e,this.colorSpectrum,s);n.push(_),this.wedge=this._renderWedge(this.paper,y),this.wedgeText=this._renderWedgeText(this.paper,y,o),n.push(this.wedge),this.gradientBar=_},t.prototype.renderTickLabels=function(t,e,i,n,o){var a=this,u=this.theme,h={"font-size":u.fontSize,"font-family":u.fontFamily,"font-weight":u.fontWeight,fill:"#000"},p=r(i,1),f=p[0],m=i[i.length-1],g=c["default"].getRenderedLabelsMaxWidth([f,m]),y=c["default"].getRenderedLabelHeight(f,u);i.forEach(function(i,r){var u=e.step*r,c=Object.assign({},e.position);d["default"].isHorizontalLegend(n)?(c.left+=u,a.isTopLegend?c.top-=y/2:c.top+=y/2):(c.top+=u,a.isLeftLegend?(h["text-anchor"]="end",c.left=l["default"].CHART_PADDING+g):h["text-anchor"]="start"),o.push(s["default"].renderText(t,c,i,h))},this)},t.prototype._renderGradientBar=function(t,e,i,n){var o=void 0,r=void 0,a=void 0;n?(o=e.dimension.width,r=l["default"].MAP_LEGEND_GRAPH_SIZE,a=g,this._makeWedghPath=this._makeHorizontalWedgePath):(o=l["default"].MAP_LEGEND_GRAPH_SIZE,r=e.dimension.height,a=y,this._makeWedghPath=this._makeVerticalWedgePath);var u={left:e.position.left,top:e.position.top,width:o,height:r};return s["default"].renderRect(t,u,{fill:a+"-"+i.start+"-"+i.end,stroke:"none"})},t.prototype._renderWedgeText=function(t,e,i){return this.isLeftLegend&&(e.left+=l["default"].MAP_LEGEND_WEDGE_SIZE+l["default"].MAP_LEGEND_TOOLTIP_HORIZONTAL_PADDING),s["default"].renderText(t,e,"",{"font-size":i.fontSize,"font-family":i.fontFamily,"font-weight":i.fontWeight,fill:i.color})},t.prototype._renderWedge=function(t,e){return t.path(this.verticalBasePath).attr({fill:"gray",stroke:"white","stroke-opacity":.2,opacity:0,transform:"t"+e.left+","+e.top})},t.prototype._makeVerticalWedgePath=function(t,e){var i=this.isLeftLegend,n=this.verticalBasePath=i?this.verticalLeftBasePath:this.verticalRightBasePath,o=l["default"].MAP_LEGEND_TOOLTIP_HORIZONTAL_PADDING,r=l["default"].MAP_LEGEND_TOOLTIP_VERTICAL_PADDING,a=e.width,s=e.height;return n[2]=t,n[5]=t+_,n[8]=n[11]=t+s/2+r,n[14]=n[17]=t-s/2-r,n[20]=t-_,i?n[10]=n[13]=n[4]+a+2*o:n[10]=n[13]=n[4]-a-2*o,n},t.prototype._makeHorizontalWedgePath=function(t,e){var i=this.horiziontalBaseBath=this.isTopLegend?this.horizontalTopBasePath:this.horizontalBottomBasePath,n=l["default"].MAP_LEGEND_TOOLTIP_HORIZONTAL_PADDING,o=l["default"].MAP_LEGEND_TOOLTIP_VERTICAL_PADDING,r=e.width,a=e.height;return i[1]=t,i[4]=t+_,i[7]=i[10]=t+r/2+n,i[13]=i[16]=t-r/2-n,i[19]=t-_,this.isTopLegend?i[11]=i[14]=i[5]+a+2*o:i[11]=i[14]=i[5]-a-2*o,i},t.prototype.showWedge=function(t,e){var i=this.theme,n=s["default"].getRenderedTextSize(e,i.fontSize,i.fontFamily),o=this.isHorizontal?this.layout.dimension.width:this.layout.dimension.height,r=this._makeWedghPath(o*t,n);this.wedge.attr({path:r,opacity:1,fill:this.colorSpectrum.getColor(t)});var a=this.wedge.getBBox(),u=m["default"].sum([a.y,l["default"].MAP_LEGEND_TOOLTIP_VERTICAL_PADDING,n.height/2]),h=m["default"].sum([a.x,l["default"].MAP_LEGEND_TOOLTIP_HORIZONTAL_PADDING,n.width/2]);this.isLeftLegend&&(h+=l["default"].MAP_LEGEND_WEDGE_SIZE),this.isTopLegend&&(u+=l["default"].MAP_LEGEND_WEDGE_SIZE),this.wedgeText.attr({x:h,y:u,text:e,opacity:1}),this.wedge.toFront(),this.wedgeText.toFront()},t.prototype.hideWedge=function(){this.wedge.attr({opacity:0}),this.wedgeText.attr({opacity:0})},t.prototype.removeLocationURLFromFillAttribute=function(){var t=this.gradientBar,e=t.node.getAttribute("fill"),i=/url\('?([^#]+)#[^#]+'?\)/,n=i.exec(e),o=r(n,2);this.locationURL=o[1],t.node.setAttribute("fill",e.replace(this.locationURL,""))},t.prototype.restoreLocationURLToFillAttribute=function(){var t=this.gradientBar,e=t.node.getAttribute("fill");t.node.setAttribute("fill",e.replace("#",this.locationURL+"#"))},t.prototype._calculateHorizontalLegendTooltipHeight=function(t,e){var i=t.length?t[t.length-1]:"",n=c["default"].getRenderedLabelHeight(i,e);return m["default"].sum([2*l["default"].MAP_LEGEND_TOOLTIP_VERTICAL_PADDING,n,l["default"].MAP_LEGEND_WEDGE_SIZE])},t.prototype._calculateVerticalLegendTooltipWidth=function(t,e){var i=t.length?t[t.length-1]:"",n=c["default"].getRenderedLabelWidth(i,e);return m["default"].sum([2*l["default"].MAP_LEGEND_TOOLTIP_HORIZONTAL_PADDING,n,l["default"].MAP_LEGEND_WEDGE_SIZE])},t}();e["default"]=v},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(143),a=n(r),s=function(){function t(){o(this,t)}return t.prototype.render=function(t,e,i,n,o){var r=e.position.left+e.dimension.width/2,s=t.set();return n.forEach(function(n,u){var l=i*n,h=e.position.top+e.dimension.height-l,c=a["default"].renderCircle(t,{left:r,top:h},l,{fill:"none",opacity:1,stroke:"#888","stroke-width":1});s.push(c),s.push(a["default"].renderText(t,{left:r,top:h-l-5},o[u]))}),s},t}();e["default"]=s},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(143),a=n(r),s=i(154),u=n(s),l=function(){function t(){o(this,t)}return t.prototype.render=function(t){var e=t.paper,i=t.titleText,n=t.offset,o=t.theme,r=t.align,s=void 0===r?u["default"].TITLE_ALIGN_LEFT:r,l=t.chartTitleAreaWidth,h=o.fontSize,c=o.fontFamily,p=a["default"].getRenderedTextSize(i,h,c),d=e.set(),f=this.getTitlePosition(p,s,l,n),m={left:"start",right:"end",center:"middle"};return d.push(a["default"].renderText(e,f,i,{"font-family":o.fontFamily,"font-size":o.fontSize,"font-weight":o.fontWeight,fill:o.color,"text-anchor":m[s]})),d},t.prototype.getTitlePosition=function(t,e,i,n){var o=void 0;o=e===u["default"].TITLE_ALIGN_CENTER?i/2:e===u["default"].TITLE_ALIGN_RIGHT?i:u["default"].CHART_PADDING;var r={left:o,top:u["default"].CHART_PADDING+t.height/2};return n&&(n.x?r.left+=n.x:n.y&&(r.top+=n.y)),r},t.prototype.resize=function(t,e){e.attr({left:u["default"].CHART_PADDING})},t}();e["default"]=l},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){var i=l["default"].getRenderedTextSize(t,e.fontSize,e.fontFamily);return i.height}function a(t,e){var i=l["default"].getRenderedTextSize(t,e.fontSize,e.fontFamily);return i.width}function s(t,e){e&&(e.x&&(t.left+=e.x),e.y&&(t.top+=e.y))}e.__esModule=!0;var u=i(143),l=n(u),h=i(154),c=n(h),p=c["default"].Y_AXIS_TITLE_PADDING,d=c["default"].AXIS_BACKGROUND_RIGHT_PADDING,f=function(){function t(){o(this,t),this.ticks=[]}return t.prototype.renderBackground=function(t,e,i,n){var o=n&&n.background||{},r=o.color,a=void 0===r?"#fff":r,s=o.opacity,u=void 0===s?1:s;return l["default"].renderRect(t,{left:0,top:e.top,width:i.width+e.left-d,height:i.height},{fill:a,opacity:u,"stroke-width":0})},t.prototype.renderTitle=function(t,e){var i=e.theme,n=e.rotationInfo,o=i.fontFamily,r=i.fontSize,a=i.fontWeight,s=i.color,u=this.getRenderTitleAnchor(n),h={"dominant-baseline":"auto","font-family":o,"font-size":r,"font-weight":a,fill:s,transform:"none","text-anchor":u},c=this.calculatePosition(t,e),p=l["default"].renderText(t,c,e.text,h);p.node.style.userSelect="none",p.node.style.cursor="default",e.set.push(p)},t.prototype.getRenderTitleAnchor=function(t){var e="middle";return t.isPositionRight||!t.isVertical&&!t.isXAxisTitleLeft?e="end":(t.isVertical&&!t.isCenter||!t.isVertical&&t.isXAxisTitleLeft)&&(e="start"),e},t.prototype.renderLabel=function(t){var e=t.positionTopAndLeft,i=t.labelText,n=t.paper,o=t.theme,r=t.isVertical,a=t.isCenter,s={"dominant-baseline":"central","font-family":o.fontFamily,"font-size":o.fontSize,"font-weight":o.fontWeight,fill:o.color};t.isPositionRight?s["text-anchor"]="end":r&&!a?s["text-anchor"]="start":s["text-anchor"]="middle";var u=l["default"].renderText(n,e,i,s);u.node.style.userSelect="none",u.node.style.cursor="default",t.set.push(u),this.ticks.push(u)},t.prototype.renderRotatedLabel=function(t){var e=t.positionTopAndLeft,i=t.labelText,n=t.paper,o=t.theme,r=l["default"].renderText(n,e,i,{"dominant-baseline":"central","font-family":o.fontFamily,"font-size":o.fontSize,"font-weight":o.fontWeight,fill:o.color,"text-anchor":"end",transform:"r"+-t.degree+","+e.left+","+e.top});r.node.style.userSelect="none",r.node.style.cursor="arrow",t.set.push(r),this.ticks.push(r)},t.prototype.renderTicks=function(t){var e=this,i=t.paper,n=t.positions,o=t.additionalSize,r=t.isVertical,a=t.isCenter,s=t.isDivided,u=t.isPositionRight,l=t.tickColor,h=t.layout,c=h.position.left+h.dimension.width,p=h.position.top,d=h.position.left,f=s?t.otherSideDimension.width:0,m=function(t){var e=r?"height":"width";return t>h.dimension[e]+f},g=void 0;n.forEach(function(n){var s="M";n+=o,m(n)||(r?a?(s+=d+","+(p+n),s+="H"+(d+5),s+="M"+c+","+(p+n),s+="H"+(c-5)):u?(s+=d+","+(p+n),s+="H"+(d+5)):(s+=c+","+(p+n),s+="H"+(c-5)):(s+=d+n+","+p,s+="V"+(p+5)),isNaN(n)||(g=i.path(s).attr({stroke:l,opacity:.5}),t.set.push(g),e.ticks.push(g)))})},t.prototype.renderStandardLine=function(t){var e=t.areaSize,i=t.layout,n=i.position,o=i.dimension,r=t.paper,a=t.isVertical,s=n.left,u=Math.abs(t.axisLimit.min),l=Math.abs(t.axisLimit.max),h=1-l/(u+l),c="M",p=n.top,d=s+o.width;if(a){var f=p;d+=t.seriesDimension.width*h,c+=d+","+f;var m=p+e;c+="V"+m}else{c+=s,p-=t.seriesDimension.height*h,c+=","+p+"H";var g=s+e;c+=g}t.set.push(r.path(c).attr({"stroke-width":1,opacity:.5}))},t.prototype.renderTickLine=function(t){var e=t.areaSize,i=t.paper,n=t.layout,o=n.position,r=o.top,a=o.left,s=n.dimension,u=t.isNegativeStandard,l=t.isNotDividedXAxis,h=t.additionalSize,c=t.isPositionRight,p=t.isCenter,d=t.isVertical,f=t.tickColor,m=t.seriesDimension,g=e,y=s.height+r,_=a+s.width,v="M",T=void 0,b=void 0;c?(v+=a+","+r,v+="V"+y):d?(T=r,u&&(_+=m.width/2),v+=_+","+T,p?(v+="V"+y,v+="M"+a+","+T,v+="V"+y):(b=r+g,v+="V"+b)):v=this._makeNormalTickPath(v,{isNotDividedXAxis:l,baseTop:r,baseLeft:a,additionalSize:h,isNegativeStandard:u,seriesDimension:m,lineSize:g}),t.set.push(i.path(v).attr({"stroke-width":1,stroke:f,opacity:.5}))},t.prototype._makeNormalTickPath=function(t,e){t+=e.isNotDividedXAxis?e.baseLeft:e.baseLeft+e.additionalSize,e.isNegativeStandard&&(e.baseTop-=e.seriesDimension.height/2),t+=","+e.baseTop+"H";var i=e.baseLeft+e.lineSize;return e.isNotDividedXAxis||(i+=e.additionalSize),t+=i},t.prototype.animateForAddingData=function(t){this.ticks.forEach(function(e){e.animate({transform:"t-"+t+",0"},300)})},t.prototype.calculatePosition=function(t,e){var i=e.rotationInfo,n=e.text,o=e.theme,u=e.additionalWidth,l=e.otherSideDimension,h=e.areaSize,c=e.layout,d=r(n,o),f=a(n,o),m=c.dimension.height,g=c.dimension.width,y=c.position,_=y.top,v=y.left,T=v+u,b=f-l.width,x={top:_+m-d/2,left:T+(b<0?0:b)};return i.isVertical?i.isCenter?(x.top+=d/2,x.left=v+g/2):i.isDiverging||(x.top=_-d/2-p):i.isVertical||(i.isDiverging&&i.isYAxisCenter?x.left=v+h/2:i.isDiverging&&!i.isYAxisCenter?x.left=v+g/2:i.isXAxisTitleLeft?x.left=c.position.left:x.left=c.position.left+g),i.isPositionRight&&(x.left+=g),i.isCenter||s(x,e.offset),x},t}();e["default"]=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(143),s=n(a),u=i(158),l=n(u),h=8,c=3,p=function(){function t(){o(this,t)}return t.prototype.render=function(t){var e=t.paper.set();return this.paper=t.paper,this.layout=t.layout,this.plotPositions=t.plotPositions,this.theme=t.theme,this.options=t.options,this.labelData=t.labelData,this._renderPlot(e),this._renderLabels(e),e.toBack(),this.paper.pushDownBackgroundToBottom(),e},t.prototype._renderPlot=function(t){"circle"===this.options.type?this._renderCirclePlot(t):this._renderSpiderwebPlot(t),this._renderCategoryDots(t)},t.prototype._renderSpiderwebPlot=function(t){var e=this._getLinesPath(this.plotPositions);this._renderLines(e,this.theme.lineColor,t)},t.prototype._renderCirclePlot=function(t){for(var e=this.plotPositions,i=r(e,1),n=r(i[0],1),o=n[0],a=this.theme.lineColor,u=1;u<e.length;u+=1){var l=r(e[u],1),h=l[0],c=o.top-h.top;t.push(s["default"].renderCircle(this.paper,o,c,{stroke:a,"stroke-opacity":.05}))}},t.prototype._renderCategoryDots=function(t){var e=this,i=this._makePlotDotBounds(l["default"].pivot(this.plotPositions));i.forEach(function(i){var n=s["default"].renderRect(e.paper,i,{fill:"#000000","fill-opacity":.5,"stroke-width":0});t.push(n)},this)},t.prototype._makePlotDotBounds=function(t){var e=t.map(function(t){var e=t[t.length-1],i={top:e.top-2,left:e.left-2,width:4,height:4};return i});return e.pop(),e},t.prototype._renderLabels=function(t){var e=this.paper,i=this.theme,n=this.labelData,o={fill:i.lineColor,"font-size":i.label.fontSize,"font-family":i.label.fontFamily,"text-anchor":"end","font-weight":"100","dominant-baseline":"middle"};n.category.forEach(function(i){var n=Object.assign({},o,{"text-anchor":i.position.anchor,fill:"#333333"}),r=s["default"].renderText(e,i.position,i.text,n);r.node.style.userSelect="none",r.node.style.cursor="default",t.push(r)}),n.step.forEach(function(i){var n=s["default"].renderText(e,i.position,i.text,o);i.position.top-=h,i.position.left-=c,n.node.style.userSelect="none",n.node.style.cursor="default",t.push(n)})},t.prototype._renderLines=function(t,e,i){var n=this.paper;return t.map(function(t){var o=s["default"].renderLine(n,t.join(" "),{color:e,strokeWidth:1});return o.node.setAttribute("stroke-opacity",.05),i.push(o),o})},t.prototype._getLinesPath=function(t){var e=this;return t.map(function(t){return e._makeLinesPath(t)})},t.prototype._makeLinesPath=function(t,e,i){var n=[],o=!1;return e=e||"top",t.forEach(function(t){var r=o&&!i?"M":"L";t?(n.push([r,t.left,t[e]]),o&&(o=!1)):o=!0}),n=Array.prototype.concat.apply([],n),n[0]="M",n},t}();e["default"]=p},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2],n=arguments[3];if(e.table&&(e=N["default"].makeDataWithTable(e.table)),e.series||(e.series=[]),e=k["default"].deepCopy(e),"combo"!==n){var o=e.series;e.series={},e.series[n]=o}i=i?k["default"].deepCopy(i):{},i.chartType=n,i.theme=i.theme||E["default"].DEFAULT_THEME_NAME,i.series&&i.series.stackType&&(i.series.stack={type:i.series.stackType},delete i.series.stackType),i.series&&(0,A["default"])(i.series.stack)&&(i.series.stack={type:i.series.stack});var r=i.series&&i.series.colorByPoint,a=w["default"].get(i.theme,n,e.series,r),s=C["default"].get(i.chartType,e,a,i);return s.render(t),s.animateChart(),s}function r(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_BAR)}function a(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_COLUMN)}function s(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_LINE)}function u(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_AREA)}function l(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_BUBBLE)}function h(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_SCATTER)}function c(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_HEATMAP)}function p(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_TREEMAP)}function d(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_COMBO)}function f(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_PIE)}function m(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_MAP)}function g(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_RADIAL)}function y(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_BOXPLOT)}function _(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_BULLET)}function v(t,e){w["default"].register(t,e)}function T(t,e){R["default"].register(t,e)}function b(t,e,i){M["default"].register(t,e),G["default"].addRendererType(t,i)}var x=i(156),A=n(x),D=i(154),E=n(D),S=i(180),C=n(S),L=i(182),M=n(L),P=i(183),w=n(P),O=i(185),R=n(O),I=i(186),k=n(I),B=i(188),N=n(B),F=i(191),G=n(F);i(192),i(193),i(306),t.exports={barChart:r,columnChart:a,lineChart:s,areaChart:u,bubbleChart:l,scatterChart:h,heatmapChart:c,treemapChart:p,comboChart:d,pieChart:f,mapChart:m,radialChart:g,boxplotChart:y,bulletChart:_,registerTheme:v,registerMap:T,registerPlugin:b}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(154),r=n(o),a=i(181),s=n(a),u=i(164),l=n(u),h={};e["default"]={_findKey:function(t,e){var i=null;if(l["default"].isComboChart(t)){var n=s["default"].getChartTypeMap(e);n[r["default"].CHART_TYPE_COLUMN]&&n[r["default"].CHART_TYPE_LINE]?i=r["default"].CHART_TYPE_COLUMN_LINE_COMBO:n[r["default"].CHART_TYPE_LINE]&&n[r["default"].CHART_TYPE_SCATTER]?i=r["default"].CHART_TYPE_LINE_SCATTER_COMBO:n[r["default"].CHART_TYPE_AREA]&&n[r["default"].CHART_TYPE_LINE]?i=r["default"].CHART_TYPE_LINE_AREA_COMBO:n[r["default"].CHART_TYPE_PIE]&&(i=r["default"].CHART_TYPE_PIE_DONUT_COMBO)}else i=t;return i},get:function(t,e,i,n){var o=this._findKey(t,e),r=h[o];if(!r)throw new Error("Not exist "+t+" chart.");return new r(e,i,n)},register:function(t,e){h[t]=e}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=i(138),a=n(r),s=i(139),u=n(s),l=i(154),h=n(l),c=i(164),p=n(c),d=i(158),f=n(d);e["default"]={pickStacks:function(t,e){var i=t.map(function(t){return t.stack}),n=f["default"].unique(i);e&&(n=n.slice(0,2));var o=n.filter(function(t){return!!t});return o.length<n.length&&o.push(h["default"].DEFAULT_STACK),o},_sortSeriesData:function(t,e){var i=[];return e||(e=this.pickStacks(t)),e.forEach(function(e){var n=t.filter(function(t){return(t.stack||h["default"].DEFAULT_STACK)===e});i=i.concat(n)}),i},removeSeriesStack:function(t){Object.values(t).forEach(function(t){delete t.stack})},findChartType:function(t,e){var i=void 0;return t&&(i=t[e]),i||e},getChartTypeMap:function(t){var e=this,i={};return(0,a["default"])(t.series)&&(0,u["default"])(t.series,function(n,o){i[e.findChartType(t.seriesAlias,o)]=!0}),i},_createMinusValues:function(t){return t.map(function(t){return t<0?0:-t})},_createPlusValues:function(t){return t.map(function(t){return t<0?0:t})},_makeNormalDivergingRawSeriesData:function(t){return t.length=Math.min(t.length,2),t[0].data=this._createMinusValues(t[0].data),t[1]&&(t[1].data=this._createPlusValues(t[1].data)),t},
_makeRawSeriesDataForStackedDiverging:function(t){var e=this,i=this.pickStacks(t,!0),n=[],r=o(i,2),a=r[0],s=r[1];return t=this._sortSeriesData(t,i),t.forEach(function(t){var i=t.stack||h["default"].DEFAULT_STACK;i===a?(t.data=e._createMinusValues(t.data),n.push(t)):i===s&&(t.data=e._createPlusValues(t.data),n.push(t))}),n},_makeRawSeriesDataForDiverging:function(t,e){return t=p["default"].isValidStackOption(e)?this._makeRawSeriesDataForStackedDiverging(t):this._makeNormalDivergingRawSeriesData(t)},updateRawSeriesDataByOptions:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};p["default"].isValidStackOption(i.stack)&&Object.keys(t.series).forEach(function(i){t.series[i]=e._sortSeriesData(t.series[i])}),i.diverging&&Object.entries(t.series).forEach(function(n){var r=o(n,2),a=r[0],s=r[1];t.series[a]=e._makeRawSeriesDataForDiverging(s,i.stack)})},appendOutliersToSeriesData:function(t){var e=t.series.boxplot;e.forEach(function(t){var e=t.outliers;e&&e.length&&e.forEach(function(e){t.data[e[0]].push(e[1])})})},filterCheckedRawData:function(t,e){var i=JSON.parse(JSON.stringify(t));if(e&&Object.entries(i.series).forEach(function(t){var n=o(t,2),r=n[0],a=n[1];e[r]?e[r].length&&(i.series[r]=a.filter(function(t,i){return e[r][i]})):i.series[r]=[]}),i.series.bullet){var n=[];e.bullet.forEach(function(e,i){e&&n.push(t.categories[i])}),i.categories=n}return i},_makeRawSeriesDataForBulletChart:function(t){var e=t.series.bullet,i=void 0===e?[]:e;t.categories=t.categories||[],t.categories=i.map(function(t){return t.name||""})}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(154),r=n(o),a={};e["default"]={get:function(t,e){var i=a[t||r["default"].DEFAULT_PLUGIN];if(!i)throw new Error("Not exist "+t+" plugin.");var n=i[e];if(!n)throw new Error("Not exist "+e+" chart renderer.");var o=new n;return o},register:function(t,e){a[t]=e}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=i(140),a=n(r),s=i(146),u=n(s),l=i(138),h=n(l),c=i(139),p=n(c),d=i(154),f=n(d),m=i(164),g=n(m),y=i(184),_=n(y),v={};e["default"]={register:function(t,e){e=JSON.parse(JSON.stringify(e)),v[t]=e},_pickSeriesNames:function(t,e){var i=[];return g["default"].isComboChart(t)?Object.keys(e).forEach(function(t){i.push(t)}):i.push(t),i},_overwriteTheme:function(t,e){var i=this;Object.entries(e).forEach(function(n){var r=o(n,2),s=r[0],u=r[1],l=t[s];(l||0===l)&&((0,a["default"])(l)?e[s]=l.slice():(0,h["default"])(l)?i._overwriteTheme(l,u):e[s]=l)})},_pickValidTheme:function(t,e){var i={};return f["default"].THEME_PROPS_MAP[e].forEach(function(e){(0,u["default"])(t[e])&&(i[e]=t[e])}),i},_createComponentThemeWithSeriesName:function(t,e,i,n){var o=this,r={};return e=e||{},t.forEach(function(t){var a=e[t]||o._pickValidTheme(e,n);Object.keys(a).length?(r[t]=JSON.parse(JSON.stringify(_["default"][n])),o._overwriteTheme(a,r[t])):r[t]=JSON.parse(JSON.stringify(i))}),r},_makeEachSeriesColors:function(t,e,i){for(var n=[],o=t.length,r=i||0,a=0;a<e;a+=1)n.push(t[r]),r+=1,r>=o&&(r=0);return n},_setSeriesColors:function(t,e,i,n,o){var r=this,a=void 0,s=void 0,u=void 0,l=0;i=i||{},t.forEach(function(t){i[t]?(a=i[t].colors,u=!0):(a=i.colors||_["default"].series.colors,u=!1),s=r._getSeriesThemeColorCount(n[t],o),e[t].colors=r._makeEachSeriesColors(a,s,!u&&l),u||(l=(s+l)%a.length)})},_getSeriesThemeColorCount:function(t,e){var i=0;if(t&&t.length){var n=t[0]&&t[0].data&&t[0].data.length;i=e&&n?Math.max(t.length,t[0].data.length):t.length}return i},_initTheme:function(t,e,i,n,o){var r=void 0;return t!==f["default"].DEFAULT_THEME_NAME?(r=JSON.parse(JSON.stringify(_["default"])),this._overwriteTheme(e,r)):r=JSON.parse(JSON.stringify(e)),r.yAxis=this._createComponentThemeWithSeriesName(i,e.yAxis,r.yAxis,"yAxis"),r.series=this._createComponentThemeWithSeriesName(i,e.series,r.series,"series"),this._setSeriesColors(i,r.series,e.series,n,o),r},_createTargetThemesForFontInherit:function(t){var e=[t.title,t.xAxis.title,t.xAxis.label,t.legend.label,t.plot.label];return(0,p["default"])(t.yAxis,function(t){e.push(t.title,t.label)}),(0,p["default"])(t.series,function(t){e.push(t.label)}),e},_inheritThemeFont:function(t){var e=this._createTargetThemesForFontInherit(t),i=t.chart.fontFamily;e.forEach(function(t){t.fontFamily||(t.fontFamily=i)})},_copySeriesColorTheme:function(t,e,i){e[i]={colors:t.colors,borderColor:t.borderColor,selectionColor:t.selectionColor}},_copySeriesColorThemeToOther:function(t){var e=this;(0,p["default"])(t.series,function(i,n){e._copySeriesColorTheme(i,t.legend,n),e._copySeriesColorTheme(i,t.tooltip,n)})},get:function(t,e,i,n){var o=v[t];if(!o)throw new Error("Not exist "+t+" theme.");var r=this._pickSeriesNames(e,i),a=this._initTheme(t,o,r,i,n);return this._inheritThemeFont(a,r),this._copySeriesColorThemeToOther(a),a}}},function(t,e){"use strict";e.__esModule=!0;var i="#000000",n="#ffffff",o="lighter",r="Arial",a=e.DEFAULT_LEGEND_LABEL_FONTCOLOR="#333",s="",u={tickColor:i,title:{fontSize:11,fontFamily:r,color:"#bbbbbb",fontWeight:"bold"},label:{fontSize:11,fontFamily:r,color:"#333",fontWeight:"normal"}};e["default"]={chart:{background:{color:n,opacity:1},fontFamily:r},title:{fontSize:18,fontFamily:r,color:i,fontWeight:o},yAxis:u,xAxis:u,plot:{lineColor:"#000000",background:"#ffffff",label:{fontSize:11,fontFamily:r,color:"#888"}},series:{label:{fontSize:11,fontFamily:r,color:i,fontWeight:o},colors:["#00a9ff","#ffb840","#ff5a46","#00bd9f","#785fff","#f28b8c","#989486","#516f7d","#29dbe3","#dddddd"],borderColor:s,borderWidth:s,selectionColor:s,startColor:"#FFE98A",endColor:"#D74177",overColor:s,dot:{fillColor:s,fillOpacity:1,strokeColor:s,strokeOpacity:s,strokeWidth:0,radius:6,hover:{fillColor:s,fillOpacity:1,strokeColor:"#fff",strokeOpacity:1,strokeWidth:4,radius:6}},ranges:[]},legend:{label:{fontSize:11,fontFamily:r,color:a,fontWeight:o}},tooltip:{},chartExportMenu:{backgroundColor:"#fff",borderRadius:0,borderWidth:1,color:"#000"}}},function(t,e){"use strict";e.__esModule=!0;var i={};e["default"]={get:function(t){var e=i[t];if(!e)throw new Error("Not exist "+t+" map.");return e},register:function(t,e){i[t]=e}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=i(140),a=n(r),s=i(149),u=n(s),l=i(187),h=n(l),c=i(138),p=n(c),d=function f(t){var e=void 0;return(0,a["default"])(t)?(e=[],t.forEach(function(t,i){e[i]=f(t)})):(0,h["default"])(t)||(0,u["default"])(t)?e=t:(0,p["default"])(t)?(e={},Object.entries(t).forEach(function(t){var i=o(t,2),n=i[0],r=i[1];e[n]=f(r)})):e=t,e};e["default"]={deepCopy:d}},function(t,e){"use strict";function i(t){return t instanceof Function}t.exports=i},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){var e=void 0;return t.length>0&&(e={},e.categories=[],e.series=[],e.categories=t.shift().slice(1),t.forEach(function(t){var i={name:t[0],data:t.slice(1)};e.series.push(i)})),e}function r(t){var e=[];if(t){var i=[],n=(0,p["default"])(t.getElementsByTagName("TR"));(0,u["default"])(n,function(t,e){var n=0===e?"TH":"TD",o=(0,p["default"])(t.getElementsByTagName(n)),r=(0,h["default"])(o,"innerText");i.push(r)}),i[0].length<i[1].length&&i[0].unshift(""),e=f["default"].pivot(i)}return e}function a(t){var e=void 0;t.element&&"TABLE"===t.element.tagName?e=t.element:t.elementId&&(e=document.getElementById(t.elementId));var i=o(r(e));return i}e.__esModule=!0;var s=i(139),u=n(s),l=i(189),h=n(l),c=i(190),p=n(c),d=i(158),f=n(d);e["default"]={makeDataWithTable:a}},function(t,e,i){"use strict";function n(t,e){var i=[];return o(t,function(t){i.push(t[e])}),i}var o=i(139);t.exports=n},function(t,e,i){"use strict";function n(t){var e;try{e=Array.prototype.slice.call(t)}catch(i){e=[],o(t,function(t){e.push(t)})}return e}var o=i(141);t.exports=n},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(155),a=n(r),s=i(146),u=n(s),l={DOM:function(t){var e=a["default"].create("DIV");return a["default"].append(t,e),e}},h=function(){function t(){o(this,t)}return t.prototype.initDimension=function(t){this.dimension=t},t.prototype.getPaper=function(t,e){var i=this[e+"Paper"],n=(0,u["default"])(t)&&i&&a["default"].findParentByClass(i.canvas,"tui-chart")!==t;return i&&!n||(i=l[e].call(this,t,this.dimension),"DOM"!==e&&(this[e+"Paper"]=i)),i},t.addRendererType=function(t,e){l[t]=e},t}();e["default"]=h},function(t,e){"use strict";!function(){for(var t=0,e=["ms","moz","webkit","o"],i=0;i<e.length&&!window.requestAnimationFrame;++i)window.requestAnimationFrame=window[e[i]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[i]+"CancelAnimationFrame"]||window[e[i]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e){var i=(new Date).getTime(),n=Math.max(0,16-(i-t)),o=window.setTimeout(function(){e(i+n)},n);return t=i+n,o}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})}()},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}var o=i(154),r=n(o),a=i(180),s=n(a),u=i(194),l=n(u),h=i(284),c=n(h),p=i(285),d=n(p),f=i(287),m=n(f),g=i(288),y=n(g),_=i(290),v=n(_),T=i(291),b=n(T),x=i(292),A=n(x),D=i(293),E=n(D),S=i(294),C=n(S),L=i(295),M=n(L),P=i(296),w=n(P),O=i(299),R=n(O),I=i(300),k=n(I),B=i(303),N=n(B),F=i(304),G=n(F),H=i(305),V=n(H);s["default"].register(r["default"].CHART_TYPE_BAR,l["default"]),s["default"].register(r["default"].CHART_TYPE_COLUMN,c["default"]),s["default"].register(r["default"].CHART_TYPE_LINE,d["default"]),s["default"].register(r["default"].CHART_TYPE_AREA,m["default"]),s["default"].register(r["default"].CHART_TYPE_COLUMN_LINE_COMBO,y["default"]),s["default"].register(r["default"].CHART_TYPE_LINE_SCATTER_COMBO,v["default"]),s["default"].register(r["default"].CHART_TYPE_LINE_AREA_COMBO,b["default"]),s["default"].register(r["default"].CHART_TYPE_PIE_DONUT_COMBO,A["default"]),s["default"].register(r["default"].CHART_TYPE_PIE,E["default"]),s["default"].register(r["default"].CHART_TYPE_BUBBLE,C["default"]),s["default"].register(r["default"].CHART_TYPE_SCATTER,M["default"]),s["default"].register(r["default"].CHART_TYPE_HEATMAP,w["default"]),s["default"].register(r["default"].CHART_TYPE_TREEMAP,R["default"]),s["default"].register(r["default"].CHART_TYPE_MAP,k["default"]),s["default"].register(r["default"].CHART_TYPE_RADIAL,N["default"]),s["default"].register(r["default"].CHART_TYPE_BOXPLOT,G["default"]),s["default"].register(r["default"].CHART_TYPE_BULLET,V["default"])},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(195),u=n(s),l=i(154),h=n(l),c=i(181),p=n(c),d=i(164),f=n(d),m=function(t){function e(i,n,a){o(this,e),p["default"].updateRawSeriesDataByOptions(i,a.series);var s=r(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0}));return s.className="tui-bar-chart",s._updateOptionsRelatedDiverging(),s}return a(e,t),e.prototype._updateOptionsRelatedDiverging=function(){var t=this.options;if(t.series=t.series||{},t.series.diverging){t.yAxis=t.yAxis||{},t.xAxis=t.xAxis||{},t.plot=t.plot||{},t.series.stack=t.series.stack||{type:h["default"].NORMAL_STACK_TYPE};var e=f["default"].isYAxisAlignCenter(this.hasRightYAxis,t.yAxis.align);t.yAxis.isCenter=e,t.xAxis.divided=e,t.series.divided=e,t.plot.divided=e}},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("barSeries","barSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.hasRightYAxis&&this.componentManager.register("rightYAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){return{xAxis:!0}},e.prototype.onChangeCheckedLegends=function(t){var e=void 0;this.hasRightYAxis&&(e={optionChartTypes:["bar","bar"]}),u["default"].prototype.onChangeCheckedLegends.call(this,t,null,e)},e.prototype.addDataRatios=function(t){var e=this.options.series,i=void 0===e?{}:e,n=this.chartType,o=i[n]||i,r=o.stack;this.dataProcessor.addDataRatios(t[n],r,n)},e}(u["default"]);e["default"]=m},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(140),a=n(r),s=i(146),u=n(s),l=i(156),h=n(l),c=i(139),p=n(c),d=i(196),f=n(d),m=i(198),g=n(m),y=i(154),_=n(y),v=i(200),T=n(v),b=i(260),x=n(b),A=i(181),D=n(A),E=i(155),S=n(E),C=i(148),L=n(C),M=i(186),P=n(M),w=i(272),O=n(w),R=i(183),I=n(R),k=i(164),B=n(k),N="UA-129983528-1",F=function(){function t(e){o(this,t),this.theme=e.theme,e.seriesTypes&&(this.seriesTypes=e.seriesTypes),e.chartTypes&&(this.chartTypes=e.chartTypes),this.originalOptions=P["default"].deepCopy(e.options),this._initializeOptions(e.options),this.chartType=this.options.chartType,this.hasAxes=e.hasAxes,this.isVertical=!!e.isVertical,this.dataProcessor=this._createDataProcessor(e),this.eventBus=new g["default"],this.prevXAxisData=null,this.componentManager=this._createComponentManager(),this.hasRightYAxis=(0,a["default"])(this.options.yAxis)&&this.options.yAxis.length>1,this.addComponents(),this._attachToEventBus(),this.componentManager.presetAnimationConfig(this.options.series.animation),this.options.usageStatistics&&(0,f["default"])("chart",N)}return t.prototype.destroy=function(){var t=this;this.eventBus.off(),this.chartContainer.outerHTML="",(0,p["default"])(this,function(e,i){t[i]=null})},t.prototype.selectSeries=function(t){var e=t.legendIndex,i=t.index,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.componentManager.get("mouseEventDetector").selectSeries({chartType:this.chartType,indexes:{groupIndex:i,index:e}},n)},t.prototype.unselectSeries=function(){this.componentManager.get("mouseEventDetector").unselectSeries()},t.prototype._attachToEventBus=function(){this.eventBus.on("changeCheckedLegends",this.onChangeCheckedLegends,this),this.onZoom&&this.eventBus.on({zoom:this.onZoom,resetZoom:this.onResetZoom},this)},t.prototype._setOffsetProperty=function(t,e,i){(0,u["default"])(t[e])&&(t.offset=t.offset||{},t.offset[i]=t[e],delete t[e])},t.prototype._initializeOffset=function(t){t&&(this._setOffsetProperty(t,"offsetX","x"),this._setOffsetProperty(t,"offsetY","y"))},t.prototype._initializeTitleOptions=function(t){var e=this;if(t){var i=(0,a["default"])(t)?t:[t];i.forEach(function(t){var i=t.title;(0,h["default"])(i)&&(t.title={text:i}),e._initializeOffset(t.title)})}},t.prototype._initializeTooltipOptions=function(t){t.grouped=!!t.grouped,this._initializeOffset(t),delete t.position},t.prototype._initializeOptions=function(t){var e=P["default"].deepCopy(t),i={chartTypes:this.chartTypes,xAxis:{},series:{},tooltip:{},usageStatistics:!0,chartExportMenu:Object.assign({visible:!0},e.chartExportMenu),legend:Object.assign({visible:!0},e.legend)};delete e.chartExportMenu,delete e.legend,Object.assign(t,i,e),this._initializeTitleOptions(t.chart),this._initializeTitleOptions(t.xAxis),this._initializeTitleOptions(t.yAxis),this._initializeTooltipOptions(t.tooltip),this.options=t},t.prototype._createDataProcessor=function(t){var e=t.DataProcessor||x["default"],i=new e(t.rawData,this.chartType,t.options,this.seriesTypes);return i},t.prototype._createComponentManager=function(){return new T["default"]({options:this.options,theme:this.theme,dataProcessor:this.dataProcessor,hasAxes:this.hasAxes,eventBus:this.eventBus,isVertical:this.isVertical,seriesTypes:this.seriesTypes||[this.chartType]})},t.prototype.addComponents=function(){},t.prototype.getScaleOption=function(){},t.prototype._buildBoundsAndScaleData=function(t,e){return O["default"].build(this.dataProcessor,this.componentManager,{chartType:this.chartType,seriesTypes:this.seriesTypes,options:this.options,theme:this.theme,hasAxes:this.hasAxes,scaleOption:this.getScaleOption(),isVertical:this.isVertical,hasRightYAxis:this.hasRightYAxis,addedDataCount:this._dynamicDataHelper?this._dynamicDataHelper.addedDataCount:null,prevXAxisData:t,addingDataMode:e})},t.prototype.addDataRatios=function(){},t.prototype.readyForRender=function(t){var e=this._buildBoundsAndScaleData(this.prevXAxisData,t);return e.axisDataMap.xAxis&&(this.prevXAxisData=e.axisDataMap.xAxis),this.addDataRatios(e.limitMap),e},t.prototype.render=function(t){var e=S["default"].create("DIV","tui-chart "+this.className),i=this.componentManager,n=this.dataProcessor,o=n.getLegendVisibility(),r=D["default"].filterCheckedRawData(n.rawData,o),a=i.drawingToolPicker.getPaper(e,_["default"].COMPONENT_TYPE_RAPHAEL);this.dataProcessor.initData(r),a.changeChartBackgroundColor(this.theme.chart.background.color),a.changeChartBackgroundOpacity(this.theme.chart.background.opacity),L["default"].renderFontFamily(e,this.theme.chart.fontFamily),S["default"].append(t,e);var s=this.readyForRender();L["default"].renderDimension(e,s.dimensionMap.chart),i.render("render",s,{checkedLegends:o},e),this.chartContainer=e,this.paper=a},t.prototype.protectedRerender=function(t,e){var i=this.dataProcessor;e||(e=D["default"].filterCheckedRawData(i.getCurrentData(),t)),this.dataProcessor.initData(e);var n=this.readyForRender();this.componentManager.render("rerender",n,{checkedLegends:t},this.chartContainer)},t.prototype.rerender=function(t,e){t=t||this.getCheckedLegend(),e=e||this.dataProcessor.getOriginalRawData();var i=e.series;e.series=Object.keys(i).reduce(function(e,n){var o=i[n],r=t[n];return e[n]=o.map(function(t,e){return t.visible=r[e],t}),e},{}),this.setData(e)},t.prototype.setData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this._initializeRawData(t),n=this.dataProcessor,o=this.options,r=o.chartType,a=o.theme;n.initData(i,!0);var s=I["default"].get(a,r,i.series);this.theme=s,this.componentManager.presetBeforeRerender(),this.componentManager.presetForChangeData(s),this.componentManager.presetAnimationConfig(e),this.protectedRerender(n.getLegendVisibility())},t.prototype.getCheckedLegend=function(){var t=this.componentManager,e=this.dataProcessor,i=t.has("legend");return i?t.get("legend").getCheckedIndexes():e.getLegendVisibility()},t.prototype._initializeRawData=function(t){this.prevXAxisData=null;var e=P["default"].deepCopy(t),i=this.originalOptions,n=i.chartType,o=i.series;if("combo"!==n&&(0,a["default"])(e.series)){var r=e.series;e.series={},e.series[n]=r}return D["default"].updateRawSeriesDataByOptions(e,o),"boxplot"===n&&D["default"].appendOutliersToSeriesData(e),e},t.prototype.onChangeCheckedLegends=function(t,e,i){this.protectedRerender(t,e,i)},t.prototype.animateChart=function(){this.componentManager.execute("animateComponent")},t.prototype.on=function(t,e){_["default"].PUBLIC_EVENT_MAP[t]&&this.eventBus.on(_["default"].PUBLIC_EVENT_PREFIX+t,e)},t.prototype.off=function(t,e){_["default"].PUBLIC_EVENT_MAP[t]&&this.eventBus.off(_["default"].PUBLIC_EVENT_PREFIX+t,e)},t.prototype._updateChartDimension=function(t){var e=!1,i=this.options;return i.chart=i.chart||{},t.width&&t.width>0&&i.chart.width!==t.width&&(i.chart.width=t.width,e=!0),t.height&&t.height>0&&i.chart.height!==t.height&&(i.chart.height=t.height,e=!0),e},t.prototype.resize=function(t){var e=this.dataProcessor,i=e.getLegendVisibility();if(t){var n=this._updateChartDimension(t);if(n){var o=this.readyForRender(),r=o.dimensionMap.chart;L["default"].renderDimension(this.chartContainer,r),this.paper.resizeBackground(r.width,r.height),this.paper.setSize(r.width,r.height),this.componentManager.render("resize",o,{checkedLegends:i})}}},t.prototype.setTooltipAlign=function(t){this.componentManager.get("tooltip").setAlign(t)},t.prototype.setTooltipOffset=function(t){this.componentManager.get("tooltip").setOffset(t)},t.prototype.setTooltipPosition=function(t){this.componentManager.get("tooltip").setPosition(t)},t.prototype.resetTooltipAlign=function(){this.componentManager.get("tooltip").resetAlign()},t.prototype.resetTooltipOffset=function(){this.componentManager.get("tooltip").resetOffset()},t.prototype.resetTooltipPosition=function(){this.resetTooltipOffset()},t.prototype.showSeriesLabel=function(){var t=this.componentManager.where({componentType:"series"});t.forEach(function(t){t.showLabel()})},t.prototype.hideSeriesLabel=function(){var t=this.componentManager.where({componentType:"series"});t.forEach(function(t){t.hideLabel()})},t.prototype.addData=function(){},t.prototype.addPlotLine=function(){},t.prototype.addPlotBand=function(){},t.prototype.removePlotLine=function(){},t.prototype.removePlotBand=function(){},t.prototype._getSeriesData=function(t,e,i){var n={index:t,seriesIndex:e,outlierIndex:i};return e<0?null:this.componentManager.get("mouseEventDetector").findDataByIndexes(n)},t.prototype._findSeriesIndexByLabel=function(t,e){for(var i=this.dataProcessor.getLegendLabels(t),n=i?i.length:0,o=-1,r=0;r<n;r+=1)if(i[r]===e){o=r;break}return o},t.prototype._findDataByIndexes=function(t,e){return this.componentManager.get("mouseEventDetector").findDataByIndexes(t,e)},t.prototype.showTooltip=function(t){var e=void 0,i=void 0;if(B["default"].isSupportPublicShowTooptipAPI(this.chartType)){var n=this.options.tooltip&&this.options.tooltip.grouped,o=this.componentManager.get("mouseEventDetector");n?i={indexes:{groupIndex:t.index}}:(e=this._findSeriesIndexByLabel(t.chartType,t.legend),i=this._getSeriesData(t.index,e,t.outlierIndex)),i?(i.silent=!0,o._showTooltip(i)):this.hideTooltip()}},t.prototype.hideTooltip=function(){if(B["default"].isSupportPublicShowTooptipAPI(this.chartType)){var t=this.options.tooltip&&this.options.tooltip.grouped,e=this.componentManager.get("mouseEventDetector");(t&&e.prevIndex>=0||!t&&e.prevFoundData)&&e._hideTooltip({silent:!0})}},t}();e["default"]=F},function(t,e,i){"use strict";function n(t){var e=(new Date).getTime();return e-t>s}function o(t,e){var i="https://www.google-analytics.com/collect",o=location.hostname,s="event",u="use",l="TOAST UI "+t+" for "+o+": Statistics",h=window.localStorage.getItem(l);(r(window.tui)||window.tui.usageStatistics!==!1)&&(h&&!n(h)||(window.localStorage.setItem(l,(new Date).getTime()),setTimeout(function(){"interactive"!==document.readyState&&"complete"!==document.readyState||a(i,{v:1,t:s,tid:e,cid:o,dp:o,dh:t,el:t,ec:u})},1e3)))}var r=i(145),a=i(197),s=6048e5;t.exports=o},function(t,e,i){"use strict";function n(t,e){var i=document.createElement("img"),n="";return o(e,function(t,e){n+="&"+e+"="+t}),n=n.substring(1),i.src=t+"?"+n,i.style.display="none",document.body.appendChild(i),document.body.removeChild(i),i}var o=i(142);t.exports=n},function(t,e,i){"use strict";function n(){this.events=null,this.contexts=null}var o=i(199),r=i(146),a=i(156),s=i(138),u=i(140),l=i(187),h=i(139),c=/\s+/g;n.mixin=function(t){o(t.prototype,n.prototype)},n.prototype._getHandlerItem=function(t,e){var i={handler:t};return e&&(i.context=e),i},n.prototype._safeEvent=function(t){var e,i=this.events;return i||(i=this.events={}),t&&(e=i[t],e||(e=[],i[t]=e),i=e),i},n.prototype._safeContext=function(){var t=this.contexts;return t||(t=this.contexts=[]),t},n.prototype._indexOfContext=function(t){for(var e=this._safeContext(),i=0;e[i];){if(t===e[i][0])return i;i+=1}return-1},n.prototype._memorizeContext=function(t){var e,i;r(t)&&(e=this._safeContext(),i=this._indexOfContext(t),i>-1?e[i][1]+=1:e.push([t,1]))},n.prototype._forgetContext=function(t){var e,i;r(t)&&(e=this._safeContext(),i=this._indexOfContext(t),i>-1&&(e[i][1]-=1,e[i][1]<=0&&e.splice(i,1)))},n.prototype._bindEvent=function(t,e,i){var n=this._safeEvent(t);this._memorizeContext(i),n.push(this._getHandlerItem(e,i))},n.prototype.on=function(t,e,i){var n=this;a(t)?(t=t.split(c),h(t,function(t){n._bindEvent(t,e,i)})):s(t)&&(i=e,h(t,function(t,e){n.on(e,t,i)}))},n.prototype.once=function(t,e,i){function n(){e.apply(i,arguments),o.off(t,n,i)}var o=this;return s(t)?(i=e,void h(t,function(t,e){o.once(e,t,i)})):void this.on(t,n,i)},n.prototype._spliceMatches=function(t,e){var i,n=0;if(u(t))for(i=t.length;n<i;n+=1)e(t[n])===!0&&(t.splice(n,1),i-=1,n-=1)},n.prototype._matchHandler=function(t){var e=this;return function(i){var n=t===i.handler;return n&&e._forgetContext(i.context),n}},n.prototype._matchContext=function(t){var e=this;return function(i){var n=t===i.context;return n&&e._forgetContext(i.context),n}},n.prototype._matchHandlerAndContext=function(t,e){var i=this;return function(n){var o=t===n.handler,r=e===n.context,a=o&&r;return a&&i._forgetContext(n.context),a}},n.prototype._offByEventName=function(t,e){var i=this,n=l(e),o=i._matchHandler(e);t=t.split(c),h(t,function(t){var e=i._safeEvent(t);n?i._spliceMatches(e,o):(h(e,function(t){i._forgetContext(t.context)}),i.events[t]=[])})},n.prototype._offByHandler=function(t){var e=this,i=this._matchHandler(t);h(this._safeEvent(),function(t){e._spliceMatches(t,i)})},n.prototype._offByObject=function(t,e){var i,n=this;this._indexOfContext(t)<0?h(t,function(t,e){n.off(e,t)}):a(e)?(i=this._matchContext(t),n._spliceMatches(this._safeEvent(e),i)):l(e)?(i=this._matchHandlerAndContext(e,t),h(this._safeEvent(),function(t){n._spliceMatches(t,i)})):(i=this._matchContext(t),h(this._safeEvent(),function(t){n._spliceMatches(t,i)}))},n.prototype.off=function(t,e){a(t)?this._offByEventName(t,e):arguments.length?l(t)?this._offByHandler(t):s(t)&&this._offByObject(t,e):(this.events={},this.contexts=[])},n.prototype.fire=function(t){this.invoke.apply(this,arguments)},n.prototype.invoke=function(t){var e,i,n,o;if(!this.hasListener(t))return!0;for(e=this._safeEvent(t),i=Array.prototype.slice.call(arguments,1),n=0;e[n];){if(o=e[n],o.handler.apply(o.context,i)===!1)return!1;n+=1}return!0},n.prototype.hasListener=function(t){return this.getListenerLength(t)>0},n.prototype.getListenerLength=function(t){var e=this._safeEvent(t);return e.length},t.exports=n},function(t,e){"use strict";function i(t,e){var i,n,o,r,a=Object.prototype.hasOwnProperty;for(o=1,r=arguments.length;o<r;o+=1){i=arguments[o];for(n in i)a.call(i,n)&&(t[n]=i[n])}return t}t.exports=i},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(140),s=n(a),u=i(159),l=n(u),h=i(150),c=n(h),p=i(138),d=n(p),f=i(152),m=n(f),g=i(154),y=n(g),_=i(155),v=n(_),T=i(201),b=n(T),x=i(202),A=n(x),D=i(203),E=n(D),S=i(204),C=n(S),L=i(206),M=n(L),P=i(191),w=n(P),O=i(212),R=n(O),I=i(217),k=n(I),B=i(218),N=n(B),F=i(219),G=n(F),H=i(225),V=n(H),j=i(227),z=n(j),W=i(228),Y=n(W),U=i(232),X=n(U),Z=i(239),K=n(Z),q=i(243),J=n(q),Q=i(244),$=n(Q),tt=i(246),et=n(tt),it=i(247),nt=n(it),ot=i(248),rt=n(ot),at=i(250),st=n(at),ut=i(251),lt=n(ut),ht=i(252),ct=n(ht),pt=i(253),dt=n(pt),ft=i(254),mt=n(ft),gt=i(256),yt=n(gt),_t=i(257),vt=n(_t),Tt=i(258),bt=n(Tt),xt=i(143),At=n(xt),Dt={axis:b["default"],plot:A["default"],radialPlot:C["default"],legend:R["default"],spectrumLegend:k["default"],circleLegend:N["default"],tooltip:G["default"],groupTooltip:V["default"],mapChartTooltip:z["default"],mapChartEventDetector:Y["default"],mouseEventDetector:X["default"],barSeries:K["default"],columnSeries:J["default"],lineSeries:$["default"],radialSeries:et["default"],areaSeries:nt["default"],bubbleSeries:rt["default"],scatterSeries:st["default"],mapSeries:lt["default"],pieSeries:ct["default"],heatmapSeries:dt["default"],treemapSeries:mt["default"],boxplotSeries:yt["default"],bulletSeries:vt["default"],zoom:bt["default"],chartExportMenu:M["default"],title:E["default"]},Et=function(){function t(e){o(this,t);var i=e.options.chart,n=(0,m["default"])(i,"width")||y["default"].CHART_DEFAULT_WIDTH,r=(0,m["default"])(i,"height")||y["default"].CHART_DEFAULT_HEIGHT;this.components=[],this.componentMap={},this.theme=e.theme||{},this.options=e.options||{},this.dataProcessor=e.dataProcessor,this.hasAxes=e.hasAxes,this.isVertical=e.isVertical,this.eventBus=e.eventBus,this.drawingToolPicker=new w["default"],this.drawingToolPicker.initDimension({width:n,height:r}),this.seriesTypes=e.seriesTypes}return t.prototype._makeComponentOptions=function(t,e,i,n){return t=t||this.options[e],t=(0,s["default"])(t)?t[n]:t||{}},t.prototype.register=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.index||0,o=Dt[e],r=o.componentType;i.name=t,i.chartTheme=this.theme,i.chartOptions=this.options,i.seriesTypes=this.seriesTypes;var a=this._getOptionKey(r,t);i.theme=this._makeTheme(a,t),i.options=this._makeOptions(a,t,n),i.dataProcessor=this.dataProcessor,i.hasAxes=this.hasAxes,i.isVertical=this.isVertical,i.eventBus=this.eventBus,i.alternativeModel=this.alternativeModel;var s=o(i);s&&(s.componentName=t,s.componentType=r,this.components.push(s),this.componentMap[t]=s)},t.prototype.presetBeforeRerender=function(){this.componentMap.mouseEventDetector.zoomable&&this.componentMap.mouseEventDetector.presetBeforeRerender()},t.prototype.presetForChangeData=function(t){var e=this;this.theme=t,this.components.forEach(function(t){if(t.presetForChangeData){var i=t.componentType,n=t.componentName,o=e._getOptionKey(i,n);t.presetForChangeData(e._makeTheme(o,n))}})},t.prototype.presetAnimationConfig=function(t){var e=this;this.seriesTypes.forEach(function(i){(0,d["default"])(e.options.series[i])?e.options.series[i].animationDuration=e._getAnimationDuration(t):e.options.series.animationDuration=e._getAnimationDuration(t)})},t.prototype._getAnimationDuration=function(t){return(0,l["default"])(t)&&!t?0:(0,d["default"])(t)&&(0,c["default"])(t.duration)?t.duration:At["default"].getDefaultAnimationDuration(this.options.chartType)},t.prototype._makeOptions=function(t,e,i){var n=this.options[t];return n||"rightYAxis"!==t||(n=this.options.yAxis),
"series"===t&&this.seriesTypes.forEach(function(t){return 0!==e.indexOf(t)||(n=n[t]||n,(0,s["default"])(n)&&(n=n[i]||{}),!1)}),n},t.prototype._getOptionKey=function(t,e){return"axis"===t?e:t},t.prototype._makeTheme=function(t,e){var i=this.theme[t];return i||"rightYAxis"!==t||(i=this.theme.yAxis),"series"===t&&this.seriesTypes.forEach(function(t){return 0!==e.indexOf(t)||(i=i[t],!1)}),i},t.prototype._makeDataForRendering=function(t,e,i,n,o){var r=Object.assign({paper:i},o);return n&&(Object.assign(r,n),r.layout={dimension:r.dimensionMap[t]||r.dimensionMap[e],position:r.positionMap[t]||r.positionMap[e]}),r},t.prototype.render=function(t,e,i,n){var o=this,r=this.components.map(function(r){var a=null;if(r[t]){var s=r.componentName,u=r.componentType,l=o.drawingToolPicker.getPaper(n,r.drawingType),h=o._makeDataForRendering(s,u,l,e,i),c=r[t](h);c&&!c.paper&&(a=c)}return a});n&&v["default"].append(n,r)},t.prototype.where=function(t){return this.components.filter(function(e){var i=!0;return Object.entries(t).forEach(function(t){var n=r(t,2),o=n[0],a=n[1];return e[o]!==a&&(i=!1),i}),i})},t.prototype.execute=function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];this.components.forEach(function(e){e[t]&&e[t].apply(e,i)})},t.prototype.get=function(t){return this.componentMap[t]},t.prototype.has=function(t){return!!this.get(t)},t}();e["default"]=Et},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t){var e=t.chartOptions,i=t.name,n=t.theme,o=t.seriesTypes,r=e.chartType,a=e.series;return t.isYAxis="yAxis"===i||"rightYAxis"===i,t.shifting=a.shifting,"combo"===r?t.isYAxis?t.theme=n[o[0]]:"rightYAxis"===i&&(t.componentType="yAxis",t.theme=n[o[1]],t.index=1):t.isYAxis?t.theme=n[r]:t.theme=n,new A(t)}e.__esModule=!0,e["default"]=r;var a=i(145),s=n(a),u=i(154),l=n(u),h=i(164),c=n(h),p=i(173),d=n(p),f=i(182),m=n(f),g=i(148),y=n(g),_=i(143),v=n(_),T=l["default"].AXIS_EDGE_RATIO,b=l["default"].X_AXIS_LABEL_PADDING,x=l["default"].COMPONENT_TYPE_RAPHAEL,A=function(){function t(e){o(this,t);var i=e.dataProcessor,n=e.options,r=e.chartTheme,a=e.theme,s=e.name,u=e.isYAxis,l=e.shifting;this.className="tui-chart-axis-area",this.dataProcessor=i,this.options=n||{},this.theme=Object.assign({},a,{background:r.chart.background}),this.isLabelAxis=!1,this.isYAxis=u,this.shifting=l,this.data={},this.layout=null,this.dimensionMap=null,this.axisDataMap=null,this.graphRenderer=m["default"].get(x,"axis"),this.drawingType=x,this.paperAdditionalWidth=0,this.paperAdditionalHeight=0,this._elBg=null,this.isRightYAxis="rightYAxis"===s}return t.prototype._renderBackground=function(){var t=Object.assign({},this.layout.dimension),e=Object.assign({},this.layout.position);this._elBg&&this._elBg.remove(),this._elBg=this.graphRenderer.renderBackground(this.paper,e,t,this.theme.background)},t.prototype._renderChildContainers=function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=this.isYAxis&&this.data.aligned,r=this.limitMap[this.dataProcessor.chartType],a=!this.data.limit&&r&&r.min<0,s=c["default"].isBarTypeChart(this.dataProcessor.chartType),u=this.dataProcessor.getOption("series")||{},l=u.diverging;this.isYAxis&&!this.data.isPositionRight&&!this.options.isCenter&&this.shifting&&this._renderBackground(),this._renderTitleArea(t,n),this.options.showLabel!==!1&&this._renderLabelArea(t,e,i,n),o||this._renderTickArea(t,e,n),a&&s&&!l&&this._renderNegativeStandardsLine(t,n,this.dimensionMap.series,r)},t.prototype._renderDividedAxis=function(t){var e=t.width,i=this.data,n=i.tickCount,o=i.labels,r=Math.round(e/2),a=e-r-1,s=parseInt(n/2,10)+1,u=o.slice(0,s),l=o.slice(s-1,n),h=r/s,c=r+this.dimensionMap.yAxis.width-1;this.paperAdditionalWidth=h,this._renderChildContainers(r,s,u,0),this._renderChildContainers(a+1,s,l,c)},t.prototype._renderNotDividedAxis=function(t){var e=t.width,i=t.height,n=this.data,o=n.positionRatio,r=n.tickCount,a=n.labels,s=this.isYAxis,u=s?i:e,l=0;o&&(l=u*o),this._renderChildContainers(u,r,a,l)},t.prototype._renderAxisArea=function(){var t=this.layout.dimension,e=this.data.isLabelAxis,i=this.options,n=i.divided,o=i.isCenter,r=t.width;this.isLabelAxis=e,n?(this.containerWidth=r+this.dimensionMap.yAxis.width,this._renderDividedAxis(t),r=this.containerWidth):(r+=o?1:0,this._renderNotDividedAxis(t))},t.prototype._setDataForRendering=function(t){var e=t.layout,i=t.dimensionMap,n=t.limitMap,o=t.axisDataMap;this.layout=e,this.dimensionMap=i,this.limitMap=n,this.data=o[this.componentName],this.options=this.data.options},t.prototype.render=function(t){var e=t.paper;this.paper=e,this.axisSet=e.set(),this._setDataForRendering(t),this._renderAxisArea()},t.prototype.rerender=function(t){this.axisSet.remove(),this.render(t)},t.prototype.resize=function(t){this.rerender(t)},t.prototype.zoom=function(t){this.rerender(t)},t.prototype._getOtherSideDimension=function(){return this.dimensionMap[this.isYAxis?"xAxis":"yAxis"]},t.prototype._renderTitleArea=function(t,e){var i=this.options.title,n=void 0===i?{}:i,o=this.dataProcessor.getOption("xAxis"),r=this.dataProcessor.getOption("yAxis"),a=this.dataProcessor.getOption("series")||{};n.text&&this.graphRenderer.renderTitle(this.paper,{text:n.text,offset:n.offset,theme:this.theme.title,rotationInfo:{isVertical:this.isYAxis,isPositionRight:this.data.isPositionRight,isCenter:this.options.isCenter,isColumnType:c["default"].isColumnTypeChart(this.dataProcessor.chartType,this.dataProcessor.seriesTypes),isDiverging:a.diverging,isYAxisCenter:r&&"center"===r.align,isXAxisTitleLeft:o&&o.title&&"left"===o.title.align},layout:this.layout,areaSize:t,additionalWidth:e,otherSideDimension:this._getOtherSideDimension(),tickCount:this.data.tickCount,set:this.axisSet})},t.prototype._renderTickLine=function(t,e,i){this.graphRenderer.renderTickLine({areaSize:t,additionalSize:i,additionalWidth:this.paperAdditionalWidth,additionalHeight:this.paperAdditionalHeight,isPositionRight:this.data.isPositionRight,isCenter:this.data.options.isCenter,isNotDividedXAxis:e,isVertical:this.isYAxis,tickColor:this.theme.tickColor,layout:this.layout,paper:this.paper,set:this.axisSet})},t.prototype._renderTicks=function(t,e,i,n){var o=this.theme.tickColor,r=this.data,a=r.remainLastBlockInterval,s=r.sizeRatio,u=void 0===s?1:s,l=r.tickCount,h=r.isPositionRight,c=a?t:0,p=this.isYAxis,f=this.data.options,m=f.isCenter,g=f.divided,y=d["default"].makeTickPixelPositions(t*u,e,0,c),_=this.paperAdditionalHeight+1,v=this.paperAdditionalWidth,T=c?l+1:l;y.length=T,this.graphRenderer.renderTicks({paper:this.paper,layout:this.layout,positions:y,isVertical:p,isCenter:m,isDivided:g,additionalSize:n,additionalWidth:v,additionalHeight:_,otherSideDimension:this._getOtherSideDimension(),isPositionRight:h,tickColor:o,set:this.axisSet})},t.prototype._renderNegativeStandardsLine=function(t,e,i,n){this.graphRenderer.renderStandardLine({areaSize:t,isVertical:this.isYAxis,layout:this.layout,paper:this.paper,set:this.axisSet,seriesDimension:i,axisLimit:n})},t.prototype._renderTickArea=function(t,e,i){var n=!this.isYAxis&&!this.options.divided;this._renderTickLine(t,n,i||0),this._renderTicks(t,e,n,i||0)},t.prototype._renderLabelArea=function(t,e,i,n){var o=this.data,r=o.sizeRatio,a=void 0===r?1:r,s=o.remainLastBlockInterval,u=s?t:0,l=d["default"].makeTickPixelPositions(t*a,e,0,u),h=l[1]-l[0];this._renderLabels(l,i,h,n||0)},t.prototype._renderRotationLabels=function(t,e,i,n){var o=this,r=this.graphRenderer,a=this.isYAxis,s=this.theme.label,u=this.data.degree,l=i/2,h=i/T,c=this.layout.position,p=c.top,d=c.left,f=p+b,m=d,g=this.options.labelMargin||0;t.forEach(function(t,c){var p=t+(n||0),d={};a?(d.top=p+l,d.left=i+g):(d.top=f+g,d.left=m+p+h),r.renderRotatedLabel({degree:u,labelText:e[c],paper:o.paper,positionTopAndLeft:d,set:o.axisSet,theme:s})},this)},t.prototype._renderNormalLabels=function(t,e,i,n){var o=this,r=this.graphRenderer,a=this.isYAxis,s=this.isLabelAxis,u=this.dataProcessor,l=this.layout,h=this.data.isPositionRight,p=this.theme.label,d=this.options,f=d.labelMargin,m=void 0===f?0:f,g=d.pointOnColumn,_=d.isCenter,T=d.maxWidth,b=c["default"].isLineTypeChart(u.chartType,u.seriesTypes),x=b&&g,A=c["default"].isAutoTickInterval(this.options.tickInterval);t.forEach(function(u,c){var d=u+n,f=i/2,g=o._isOverLapXAxisLabel(e[c],u,t[c+1]),D={};if(!(d<0||!a&&A&&g)){D=a?o._getYAxisLabelPosition(l,{labelPosition:d,isCategoryLabel:s,halfLabelDistance:f,isPositionRight:h}):o._getXAxisLabelPosition(l,{labelMargin:m,labelHeight:y["default"].getRenderedLabelsMaxHeight(e,p),labelPosition:d,isCategoryLabel:s,isLineTypeChart:b,isPointOnColumn:x,halfLabelDistance:f}),D.top=Math.round(D.top),D.left=Math.round(D.left);var E=e[c];T&&(E=v["default"].getEllipsisText(e[c],T,p)),r.renderLabel({isPositionRight:h,isVertical:a,isCenter:_,labelSize:i,labelText:E,paper:o.paper,positionTopAndLeft:D,set:o.axisSet,theme:p})}},this)},t.prototype._isOverLapXAxisLabel=function(t,e,i){var n=y["default"].getRenderedLabelWidth(t);return!(0,s["default"])(i)&&i-e<n},t.prototype._getYAxisLabelPosition=function(t,e){var i=void 0,n=e.labelPosition;return e.isCategoryLabel?n+=e.halfLabelDistance+t.position.top:n=t.dimension.height+t.position.top-n,i=e.isPositionRight?t.position.left+t.dimension.width:this.options.isCenter?t.position.left+t.dimension.width/2:t.position.left,{top:n,left:i}},t.prototype._getXAxisLabelPosition=function(t,e){var i=d["default"].sum([t.position.top,b,e.labelMargin,e.labelHeight/2]),n=e.labelPosition+t.position.left;return e.isCategoryLabel&&(e.isLineTypeChart&&!e.isPointOnColumn||(n+=e.halfLabelDistance)),{top:i,left:n}},t.prototype._renderLabels=function(t,e,i,n){var o=this.options,r=o.rotateLabel,a=o.prefix,s=o.suffix,u=this.data,l=u.degree,h=u.multilineLabels,c=!this.isYAxis&&this.isLabelAxis&&r===!1,p="xAxis"===this.componentName&&l,d=void 0;d=c?h:e,d.length&&(t.length=d.length),d=y["default"].addPrefixSuffix(d,a,s),p?this._renderRotationLabels(t,d,i,n):this._renderNormalLabels(t,d,i,n)},t.prototype.animateForAddingData=function(t){this.isYAxis||this.graphRenderer.animateForAddingData(t.tickSize)},t}();r.componentType="axis",r.Axis=A},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){return t.start-e.start}function a(t){var e=t.seriesTypes,i=t.chartOptions,n=i.chartType,o=i.xAxis.type;return t.chartType=n,t.chartTypes=e,t.xAxisTypeOption=o,new x(t)}e.__esModule=!0;var s=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e["default"]=a;var u=i(140),l=n(u),h=i(146),c=n(h),p=i(137),d=n(p),f=i(145),m=n(f),g=i(154),y=n(g),_=i(164),v=n(_),T=i(173),b=n(T),x=function(){function t(e){o(this,t),this.className="tui-chart-plot-area",this.dataProcessor=e.dataProcessor,this.options=e.options||{},this.options.showLine=!!(0,m["default"])(this.options.showLine)||this.options.showLine,this.options.lines=this.options.lines||[],this.options.bands=this.options.bands||[],this.xAxisTypeOption=e.xAxisTypeOption,this.theme=e.theme||{},this.chartType=e.chartType,this.chartTypes=e.chartTypes,this.layout=null,this.axisDataMap=null,this.drawingType=y["default"].COMPONENT_TYPE_RAPHAEL}return t.prototype.presetForChangeData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.theme;this.theme=t},t.prototype._renderPlotArea=function(t){var e=this.layout.dimension;v["default"].isLineTypeChart(this.chartType,this.chartTypes)&&this._renderOptionalLines(t,e),this.options.showLine&&this._renderPlotLines(t,e)},t.prototype._setDataForRendering=function(t){t&&(this.layout=t.layout,this.dimensionMap=t.dimensionMap,this.axisDataMap=t.axisDataMap,this.paper=t.paper)},t.prototype.render=function(t){var e=t&&t.paper||this.paper;this.plotSet=e.set(),this.additionalPlotSet=e.set(),this._setDataForRendering(t),this._renderPlotArea(this.paper),this.additionalPlotSet.toBack(),this.plotSet.toBack(),e.pushDownBackgroundToBottom()},t.prototype.rerender=function(t){this.additionalPlotSet.remove(),this.plotSet.remove(),this.render(t)},t.prototype.resize=function(t){this.rerender(t)},t.prototype.zoom=function(t){this.rerender(t)},t.prototype._makeVerticalLineTemplateParams=function(t){return Object.assign({className:"vertical",positionType:"left",width:"1px"},t)},t.prototype._makeHorizontalLineTemplateParams=function(t){return Object.assign({className:"horizontal",positionType:"bottom",height:"1px"},t)},t.prototype._renderLine=function(t,e){var i=this.layout,n=i.position.top,o=i.dimension.height,r="M"+t+","+n+"V"+(n+o),a=this.paper.path(r);return a.attr({opacity:e.opacity||1,stroke:e.color}),this.additionalPlotSet.push(a),a},t.prototype._renderBand=function(t,e,i){var n=this.layout,o=n.position,r=n.dimension,a=r.width-t+o.left,s=e<0?a:e,u=this.paper.rect(t,o.top,s,r.height);return u.attr({fill:i.color,opacity:i.opacity||1,stroke:i.color}),this.additionalPlotSet.push(u),u},t.prototype._createOptionalLineValueRange=function(t){var e=t.range||[t.value];return v["default"].isDatetimeType(this.xAxisTypeOption)&&(e=e.map(function(t){var e=new Date(t);return e.getTime()||t})),e},t.prototype._createOptionalLinePosition=function(t,e,i){var n=t.dataMin,o=t.distance,r=(i-n)/o,a=r*e;return 1===r&&(a-=1),a<0&&(a=null),a},t.prototype._calculateXAxisLabelDistance=function(t,e){var i=e.sizeRatio,n=void 0===i?1:i,o=e.tickCount,r=e.remainLastBlockInterval,a=r?t:0,s=b["default"].makeTickPixelPositions(t*n,o,0,a);return s[1]-s[0]},t.prototype._createOptionalLinePositionWhenLabelAxis=function(t,e,i){var n=this.dataProcessor,o=v["default"].isLineTypeChart(n.chartType,n.seriesTypes),r=o&&e.options.pointOnColumn,a=n.findCategoryIndex(i),s=this._calculateXAxisLabelDistance(t,e)/2,u=null,l=void 0;if(!(0,d["default"])(a)){var h=n.getCategoryCount(),c=r?h:h-1;l=0===a?0:a/c,u=l*t,r&&(u+=s)}return 1===l&&(u-=1),u},t.prototype._createOptionalLinePositionMap=function(t,e,i){var n=this.dataProcessor.getCategories(),o=n.length,r=this.dataProcessor.valuesMap.linex,a=this._createOptionalLineValueRange(t),s=void 0,u=void 0;if(e.isLabelAxis?(s=this._createOptionalLinePositionWhenLabelAxis(i,e,a[0]),u=this._createOptionalLinePositionWhenLabelAxis(i,e,a[1])):(s=this._createOptionalLinePosition(e,i,a[0]),u=a[1]&&this._createOptionalLinePosition(e,i,a[1])),(0,d["default"])(s)){var l=o?n[0]:r[0];s=this._isBeforeVisibleValue(a[0],l)?0:-1}if((0,d["default"])(u)||u>i){var h=o?n[o-1]:r[r.length-1];u=this._isAfterVisibleValue(a[1],h)?i:-1}return{start:s,end:u}},t.prototype._isBeforeVisibleValue=function(t,e){var i=this.dataProcessor;if(!(0,c["default"])(t))return!1;if(v["default"].isDatetimeType(this.xAxisTypeOption))return t<e;var n=i.findAbsoluteCategoryIndex(t),o=i.findAbsoluteCategoryIndex(e);return n>=0&&n<o},t.prototype._isAfterVisibleValue=function(t,e){var i=this.dataProcessor;if(!(0,c["default"])(t))return!1;if(v["default"].isDatetimeType(this.xAxisTypeOption))return t>e;var n=i.findAbsoluteCategoryIndex(t),o=i.findAbsoluteCategoryIndex(e);return n>=0&&n>o},t.prototype._renderOptionalLine=function(t,e,i,n){var o=this._createOptionalLinePositionMap(n,t,e),r=void 0;return o.start>=0&&o.start<=e&&(i.width=1,i.color=n.color||"transparent",i.opacity=n.opacity,r=this._renderLine(o.start+this.layout.position.left,i)),r},t.prototype._makeOptionalBand=function(t,e,i,n){var o=this,a=n.range;a&&a.length&&this._makeRangeTo2DArray(n);var s=n.range.map(function(i){return o._createOptionalLinePositionMap({range:i},t,e)});return n.mergeOverlappingRanges&&(s.sort(r),s=this._mergeOverlappingPositionMaps(s)),s.map(function(t){var r=t.start>=0&&t.start<=e,a=void 0;if(r&&t.end>=0){i.color=n.color||"transparent",i.opacity=n.opacity;var s=t.end-t.start;a=o._renderBand(t.start+o.layout.position.left,s,i)}return a},this)},t.prototype._makeOptionalLines=function(t,e){var i=e.width,n=e.height,o=this.axisDataMap.xAxis,r=this._makeVerticalLineTemplateParams({height:n+"px"}),a=this._renderOptionalLine.bind(this,o,i,r);return t.map(a)},t.prototype._makeOptionalBands=function(t,e){var i=e.width,n=e.height,o=this.axisDataMap.xAxis,r=this._makeVerticalLineTemplateParams({height:n+"px"}),a=this._makeOptionalBand.bind(this,o,i,r);return t.map(a)},t.prototype._renderOptionalLines=function(t,e){this.optionalBands=this._makeOptionalBands(this.options.bands,e),this.optionalLines=this._makeOptionalLines(this.options.lines,e)},t.prototype._renderVerticalLines=function(t){var e=this,i=t.width,n=this._makeHorizontalPositions(i),o=this.layout,r=this.theme.lineColor,a=o.position,s=a.top,u=a.left;n.forEach(function(t){var i="M"+(t+u)+","+s+"V"+(s+o.dimension.height),n=e.paper.path(i);n.attr({stroke:r,"stroke-width":1,"stroke-opacity":.05}),e.plotSet.push(n)})},t.prototype._renderHorizontalLines=function(t){var e=this,i=t.height,n=this._makeVerticalPositions(i),o=this.layout,r=this.theme.lineColor,a=o.position,s=a.left,u=a.top,l=n.length>1?n[1]-n[0]:0;n.forEach(function(t,i){var n="M"+s+","+(l*i+u)+"H"+(s+o.dimension.width),a=e.paper.path(n);a.attr({stroke:r,"stroke-width":1,"stroke-opacity":.05}),e.plotSet.push(a)})},t.prototype._renderPlotLines=function(t,e){this.options.hideLine||(this._renderVerticalLines(e),this._renderHorizontalLines(e))},t.prototype._makeVerticalPositions=function(t){var e=this.axisDataMap,i=e.yAxis||e.rightYAxis,n=b["default"].makeTickPixelPositions(t,i.validTickCount);return n.shift(),n},t.prototype._makeDividedPlotPositions=function(t,e){var i=this.dimensionMap.yAxis.width;e=parseInt(e/2,10)+1,t-=i;var n=Math.round(t/2),o=t-n,r=b["default"].makeTickPixelPositions(n,e),a=b["default"].makeTickPixelPositions(o,e,n+i);return r.pop(),a.shift(),r.concat(a)},t.prototype._makeHorizontalPositions=function(t){var e=this.axisDataMap.xAxis.validTickCount,i=void 0;return this.options.divided?i=this._makeDividedPlotPositions(t,e):(i=b["default"].makeTickPixelPositions(t,e),i.shift()),i},t.prototype.addPlotLine=function(t){this.options.lines.push(t),this.rerender()},t.prototype.addPlotBand=function(t){this.options.bands.push(t),this.rerender()},t.prototype.removePlotLine=function(t){this.options.lines=this.options.lines.filter(function(e){return e.id!==t}),this.rerender()},t.prototype.removePlotBand=function(t){this.options.bands=this.options.bands.filter(function(e){return e.id!==t}),this.rerender()},t.prototype.animateForAddingData=function(t){var e=this,i=this.options.lines,n=this.options.bands;this.dataProcessor.isCoordinateType()||t.shifting&&(this._animateItemForAddingData(this.optionalLines,t,function(t){i.splice(t,1)}),this.optionalBands.forEach(function(i,o){e._animateItemForAddingData(i,t,function(t){n[o].range.splice(t,1)})}))},t.prototype._animateItemForAddingData=function(t,e,i){var n=this;t.forEach(function(t,o){var r=t.getBBox();r.x-e.tickSize<n.layout.position.left?t.animate({transform:"T-"+e.tickSize+",0",opacity:0},300,"linear",function(){i(o),t.remove()}):t.animate({transform:"T-"+e.tickSize+",0"},300)})},t.prototype._makeRangeTo2DArray=function(t){var e=t.range,i=e&&(0,l["default"])(e)&&(0===e.length||!(0,l["default"])(e[0]));i&&(t.range=[e])},t.prototype._mergeOverlappingPositionMaps=function(t){var e=t.length,i=void 0,n=void 0;if(e){i=[t[0]];var o=i,r=s(o,1);n=r[0]}for(var a=1;a<e;a+=1){var u=t[a];u.start<=n.end?n.end=Math.max(u.end,n.end):(i.push(u),n=u)}return i},t}();a.componentType="plot",a.Plot=x},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t){var e=t.chartOptions.chart||{title:{}},i=null;return e.title&&e.title.text&&(t.text=e.title.text,t.offset=e.title.offset,t.align=e.title.align,i=new h(t)),i}e.__esModule=!0,e["default"]=r;var a=i(154),s=n(a),u=i(182),l=n(u),h=function(){function t(e){o(this,t),this.theme=e.theme||{},this.titleText=e.text,this.offset=e.offset,this.align=e.align,this.graphRenderer=l["default"].get(s["default"].COMPONENT_TYPE_RAPHAEL,"title"),this.drawingType=s["default"].COMPONENT_TYPE_RAPHAEL}return t.prototype.render=function(t){this.titleSet=this._renderTitleArea(t)},t.prototype.resize=function(t){var e=t.dimensionMap,i=e.legend?e.legend.width:0,n=e.series.width+i;this.graphRenderer.resize(n,this.titleSet)},t.prototype.rerender=function(t){this.titleSet.remove(),this.render(t)},t.prototype._renderTitleArea=function(t){var e=t.paper,i=t.dimensionMap,n=this._calculateForTitleAreaWidth(i);return this.graphRenderer.render({paper:e,titleText:this.titleText,offset:this.offset,theme:this.theme,align:this.align,chartTitleAreaWidth:n})},t.prototype._calculateForTitleAreaWidth=function(t){var e=t.chartExportMenu,i=t.chart,n=e?2*e.width:0;return i.width-n},t}();r.componentType="title",r.Title=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t){for(var e=t.width,i=t.height,n=t.centerX,o=t.centerY,r=t.angleStepCount,a=t.stepCount,s=Math.min(e,i)/2,u=360/r,h=[],c=s/(a-1),p=0;p<a;p+=1){for(var d=[],f=o+c*p,m=0;m<r;m+=1){var g=l["default"].rotatePointAroundOrigin(n,o,n,f,u*m);d.push({left:g.x,top:i-g.y})}d.push(d[0]),h[p]=d}return h}function a(t){for(var e=t.width,i=t.height,n=t.centerX,o=t.centerY,r=t.angleStepCount,a=Math.min(i,e)/2,s=360/r,u=[],h=o+a,c=0;c<r;c+=1){var p=360-s*c,d=l["default"].rotatePointAroundOrigin(n,o,n,h,p),f=void 0;f=p>0&&p<180?"end":p>180&&p<360?"start":"middle",u.push({left:d.x,top:i-d.y,anchor:f})}return u}function s(t){return new T(t)}e.__esModule=!0,e["default"]=s;var u=i(205),l=n(u),h=i(173),c=n(h),p=i(154),d=n(p),f=i(182),m=n(f),g=d["default"].COMPONENT_TYPE_RAPHAEL,y=d["default"].RADIAL_PLOT_PADDING,_=d["default"].RADIAL_MARGIN_FOR_CATEGORY,v=d["default"].RADIAL_CATEGORY_PADDING,T=function(){function t(e){o(this,t),this.className="tui-chart-plot-area",this.options=Object.assign({type:"spiderweb"},e.options),this.theme=e.theme||{},this.graphRenderer=m["default"].get(g,"radialPlot"),this.drawingType=g}return t.prototype._renderPlotArea=function(t,e,i,n){var o={paper:t,layout:e,plotPositions:i,labelData:n,theme:this.theme,options:this.options};return this.graphRenderer.render(o)},t.prototype._makePositions=function(t,e){var i=e.dimension,n=e.position,o=n.left,a=n.top,s=i.width,u=i.height;s=s-y-_,u=u-y-_;var l=c["default"].sum([s/2,y/2,_/2,o]),h=u/2-y/2-_/2-a,p=t.yAxis.tickCount,d=t.xAxis.labels.length;return r({width:s,height:u,centerX:l,centerY:h,angleStepCount:d,stepCount:p})},t.prototype._makeCategoryPositions=function(t,e){var i=e.dimension,n=e.position,o=n.left,r=n.top,s=i.width,u=i.height;s=s-y-v,u=u-y-v;var l=c["default"].sum([s/2,y/2,v/2,o]),h=u/2-y/2-v/2-r,p=t.xAxis.labels.length;return a({width:s,height:u,centerX:l,centerY:h,angleStepCount:p})},t.prototype._makeLabelData=function(t,e,i){for(var n=t.xAxis.labels,o=t.yAxis.labels,r=this._makeCategoryPositions(t,e),a=[],s=[],u=0;u<n.length;u+=1)a.push({text:n[u],position:r[u]});for(var l=0;l<o.length-1;l+=1)s.push({text:o[l],position:i[l][0]});return{category:a,step:s}},t.prototype.render=function(t){var e=t.axisDataMap,i=t.layout,n=t.paper,o=this._makePositions(e,i),r=this._makeLabelData(e,i,o);this.plotSet=this._renderPlotArea(n,i,o,r)},t.prototype.rerender=function(t){this.plotSet.remove(),this.render(t)},t.prototype.resize=function(t){this.rerender(t)},t}();s.componentType="plot",s.RadialPlot=T},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e,i,n,o){var r=o*(Math.PI/180),a=(i-t)*Math.cos(r)-(n-e)*Math.sin(r),s=(i-t)*Math.sin(r)+(n-e)*Math.cos(r);return a+=t,s+=e,{x:a,y:s}}function r(t,e){return Math.cos(t*h["default"].RAD)*e}function a(t,e){return Math.sin(t*h["default"].RAD)*e}function s(t,e,i){var n=r(t,e/2),o=r(h["default"].ANGLE_90-t,i/2);return 2*(n+o)}function u(t,e,i){var n=a(t,e/2),o=a(h["default"].ANGLE_90-t,i/2);return 2*(n+o)}e.__esModule=!0;var l=i(154),h=n(l);e["default"]={rotatePointAroundOrigin:o,calculateAdjacent:r,calculateRotatedHeight:u,calculateRotatedWidth:s,calculateOpposite:a}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t){var e=t.options.visible,i=t.chartOptions.chart,n=void 0===i?{}:i,o=t.chartOptions.chartExportMenu,r=null;return n.title&&(t.chartTitle=n.title.text),o&&o.filename&&(t.exportFilename=o.filename),e&&(r=new S(t)),r}e.__esModule=!0,e["default"]=r;var a=i(154),s=n(a),u=i(207),l=n(u),h=i(155),c=n(h),p=i(211),d=n(p),f=i(164),m=n(f),g=i(148),y=n(g),_=["xls","csv","png","jpeg"],v="menu-opened",T=s["default"].CLASS_NAME_CHART_EXPORT_MENU_BUTTON,b=s["default"].CLASS_NAME_CHART_EXPORT_MENU,x=s["default"].CLASS_NAME_CHART_EXPORT_MENU_HEAD,A=s["default"].CLASS_NAME_CHART_EXPORT_MENU_BODY,D=s["default"].CLASS_NAME_CHART_EXPORT_MENU_ITEM,E=s["default"].COMPONENT_TYPE_DOM,S=function(){function t(e){o(this,t),this.className="tui-chart-chartExportMenu-area",this.dataProcessor=e.dataProcessor,this.chartTitle=e.chartTitle||"tui-chart",this.exportFilename=e.exportFilename||this.chartTitle,this.chartType=e.chartType,this.layout=null,this.chartExportMenuContainer=null,this.chartExportMenu=null,this.options=e.options,this.eventBus=e.eventBus,this.drawingType=E,this.theme=e.theme||null}return t.prototype._createChartExportMenuButton=function(){var t=c["default"].create("div",T);return this.options.buttonClass&&c["default"].addClass(t,this.options.buttonClass),t},t.prototype._renderChartExportMenuArea=function(t){var e=this._createChartExportMenuButton(),i=this.layout.dimension;t.appendChild(e),y["default"].renderDimension(t,i),y["default"].renderPosition(t,this.layout.position)},t.prototype._renderChartExportMenu=function(t){var e=this.dataProcessor.seriesDataModelMap,i=this.isDataDownloadAvailable(e),n=l["default"].isDownloadSupported,o=l["default"].isImageExtension,r=l["default"].isImageDownloadAvailable,a=c["default"].create("ul",b),s=c["default"].create("li",x),u=c["default"].create("li",A),h=a.style,p=this.theme,d=p.borderWidth,f=p.borderRadius,m=p.backgroundColor,g=p.color,y=[];n&&(i||r)?y=_.map(function(t){var e=void 0;return(!o(t)&&i||o(t)&&r)&&(e=c["default"].create("li",D),e.id=t,e.innerHTML=t),e}):(h.width="200px",y[0]=c["default"].create("li",D),y[0].innerHTML="Browser does not support client-side download."),this.theme&&(d&&(h.borderWidth=d),f&&(h.borderRadius=f),m&&(h.backgroundColor=m),g&&(h.color=g)),this.options.menuClass&&c["default"].addClass(a,this.options.menuClass),s.innerHTML="Export to",c["default"].append(u,y),c["default"].append(a,s),c["default"].append(a,u),this.chartExportMenu=a,c["default"].append(t,a)},t.prototype._setDataForRendering=function(t){t&&(this.layout=t.layout,this.dimensionMap=t.dimensionMap,this.axisDataMap=t.axisDataMap)},t.prototype.render=function(t){var e=null;return l["default"].isDownloadSupported&&(e=this.container=t.paper,c["default"].addClass(e,this.className),this._setDataForRendering(t),this._renderChartExportMenuArea(e),this._renderChartExportMenu(e),this.chartExportMenuContainer=e,this._attachEvent()),e},t.prototype.rerender=function(){this._hideChartExportMenu()},t.prototype.resize=function(){},t.prototype._showChartExportMenu=function(){c["default"].addClass(this.chartExportMenuContainer,v),this.chartExportMenu.style.display="block"},t.prototype._hideChartExportMenu=function(){this.chartExportMenuContainer&&(c["default"].removeClass(this.chartExportMenuContainer,v),this.chartExportMenu.style.display="none")},t.prototype._onClick=function(t){var e=t.target||t.srcElement;if(c["default"].hasClass(e,D)){if(e.id){var i=this._getMainSvgElemenmt(this.container.parentNode);this.eventBus.fire("beforeImageDownload"),l["default"].exportChart(this.exportFilename,e.id,this.dataProcessor.rawData,i,this.options),this.eventBus.fire("afterImageDownload")}this._hideChartExportMenu()}else c["default"].hasClass(e,T)&&this.chartExportMenuContainer===e.parentNode&&!c["default"].hasClass(this.chartExportMenuContainer,v)?this._showChartExportMenu():this._hideChartExportMenu()},t.prototype._getMainSvgElemenmt=function(t){var e=Array.from(t.getElementsByTagName("svg")),i=void 0;return e.forEach(function(e){t===e.parentNode&&(i=e)}),i},t.prototype.isDataDownloadAvailable=function(t){var e=!0;return m["default"].isTreemapChart(this.chartType)?e=!1:Object.values(t).forEach(function(t){return t.isCoordinateType&&(e=!1),!1}),e},t.prototype._attachEvent=function(){d["default"].on(this.chartExportMenuContainer.parentNode,"click",this._onClick,this)},t.prototype._detachEvent=function(){d["default"].off(this.chartExportMenuContainer.parentNode,"click",this._onClick)},t}();r.componentType="chartExportMenu"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){return f["default"].any(_["default"].getExtensions(),function(e){return t===e})}function r(t){return f["default"].any(g["default"].getExtensions(),function(e){return t===e})}function a(t,e,i,n,a){var s=a&&a[e]?a[e]:{};o(e)?_["default"].downloadImage(t,e,n):r(e)&&g["default"].downloadData(t,e,i,s)}e.__esModule=!0;var s=i(153),u=n(s),l=i(146),h=n(l),c=i(156),p=n(c),d=i(158),f=n(d),m=i(208),g=n(m),y=i(210),_=n(y),v=u["default"].msie&&(10===u["default"].version||11===u["default"].version),T=!v||v&&document.createElement("canvas").getContext("2d").drawSvg,b=(0,h["default"])(document.createElement("a").download),x=window.Blob&&window.navigator.msSaveOrOpenBlob;e["default"]={exportChart:a,isDownloadSupported:b||x,isImageDownloadAvailable:T,isImageExtension:o,addExtension:function(t,e){var i=e&&(0,p["default"])(e),n=void 0,o=void 0;"data"===t?n=g["default"]:"image"===t&&(n=_["default"]),n&&i&&(o=n.getExtensions(),o.push(e))}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function a(t){var e=[],i=t.categories&&(0,T["default"])(t.categories.x),n=t.series&&(0,T["default"])(t.series.bullet),o=!1;if(t){var a=void 0;if(i?o=p(t):n?o=h(t):t.categories&&(a=t.categories),o)return o;e.push([""].concat(a)),Object.values(t.series||{}).forEach(function(t){t.forEach(function(t){var i=(0,_["default"])(t.data)?t.data:[t.data];e.push([t.name].concat(r(i)))})})}return e}function s(t,e){for(var i=["",P["default"].BULLET_TYPE_ACTUAL],n=0;n<t;n+=1)i.push(P["default"].BULLET_TYPE_RANGE+n);for(var o=0;o<e;o+=1)i.push(P["default"].BULLET_TYPE_MARKER+o);return i}function u(t,e){for(var i=[],n=0;n<e;n+=1){var o="";if(t&&t[n]){var r=t[n].length>0?t[n][0]:"",a=t[n].length>1?t[n][1]:"";o=r+"~"+a}i.push(o)}return i}function l(t,e){for(var i=[],n=0;n<e;n+=1){var o=t&&t[n]?t[n]:"";i.push(o)}return i}function h(t){var e=[],i=c(t.series.bullet),n=i.maxRangeCount,o=i.maxMarkerCount;return e.push(s(n,o)),(0,D["default"])(t.series.bullet,function(t){var i=u(t.ranges,n),a=l(t.markers,o),s=[t.name,t.data].concat(r(i),r(a));e.push(s)}),e}function c(t){var e=0,i=0;return(0,D["default"])(t,function(t){e=Math.max(e,t.ranges.length),i=Math.max(i,t.markers.length)}),{maxRangeCount:e,maxMarkerCount:i}}function p(t){var e=[];return e.push([""].concat(r(t.categories.x))),(0,D["default"])(t.series,function(i){(0,D["default"])(i,function(i,n){var o=[t.categories.y[n]].concat(r(i));e.push(o)})}),e}function d(t){var e="<table>";return(0,D["default"])(t,function(t,i){
var n=0===i?"th":"td";e+="<tr>",(0,D["default"])(t,function(t,o){var r=0!==i||0===o?' class="number"':"",a="<"+n+r+">"+t+"</"+n+">";e+=a}),e+="</tr>"}),e+="</table>"}function f(t){var e=O["default"].oneLineTrim(g,d(t));return e}function m(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.lineDelimiter,n=void 0===i?"\n":i,o=e.itemDelimiter,r=void 0===o?",":o,a=t.length-1,s="";return(0,S["default"])(t,function(t,e){var i=t.length-1;(0,S["default"])(t,function(t,e){var n=(0,x["default"])(t)?t:'"'+t+'"';s+=n,e<i&&(s+=r)}),e<a&&(s+=n)}),s}e.__esModule=!0;var g=o(['<html xmlns:o="urn:schemas-microsoft-com:office:office" \n xmlns:x="urn:schemas-microsoft-com:office:excel" \n xmlns="http://www.w3.org/TR/REC-html40">\n <head>\n <!--[if gte mso 9]>\n <xml>\n <x:ExcelWorkbook>\n <x:ExcelWorksheets>\n <x:ExcelWorksheet>\n <x:Name>Ark1</x:Name>\n <x:WorksheetOptions>\n <x:DisplayGridlines/>\n </x:WorksheetOptions>\n </x:ExcelWorksheet>\n </x:ExcelWorksheets>\n </x:ExcelWorkbook>\n </xml>\n <![endif]-->\n <meta name=ProgId content=Excel.Sheet>\n <meta charset=UTF-8>\n </head>\n <body>\n ',"\n </body>\n </html>"],['<html xmlns:o="urn:schemas-microsoft-com:office:office" \n xmlns:x="urn:schemas-microsoft-com:office:excel" \n xmlns="http://www.w3.org/TR/REC-html40">\n <head>\n <!--[if gte mso 9]>\n <xml>\n <x:ExcelWorkbook>\n <x:ExcelWorksheets>\n <x:ExcelWorksheet>\n <x:Name>Ark1</x:Name>\n <x:WorksheetOptions>\n <x:DisplayGridlines/>\n </x:WorksheetOptions>\n </x:ExcelWorksheet>\n </x:ExcelWorksheets>\n </x:ExcelWorkbook>\n </xml>\n <![endif]-->\n <meta name=ProgId content=Excel.Sheet>\n <meta charset=UTF-8>\n </head>\n <body>\n ',"\n </body>\n </html>"]),y=i(140),_=n(y),v=i(146),T=n(v),b=i(150),x=n(b),A=i(139),D=n(A),E=i(141),S=n(E),C=i(209),L=n(C),M=i(154),P=n(M),w=i(148),O=n(w),R={xls:"data:application/vnd.ms-excel;base64,",csv:"data:text/csv;charset=utf-8,%EF%BB%BF"},I={xls:f,csv:m},k=[].concat(r(P["default"].DATA_EXTENSIONS)),B={downloadData:function(t,e,i,n){var o=a(i),r=R[e].replace(/(data:|;base64,|,%EF%BB%BF)/g,""),s=I[e](o,n);this._isNeedDataEncodeing()&&("csv"!==e&&(s=window.btoa(unescape(encodeURIComponent(s)))),s=R[e]+s),L["default"].execDownload(t,e,s,r)},_isNeedDataEncodeing:function(){var t=(0,T["default"])(document.createElement("a").download),e=window.Blob&&window.navigator.msSaveOrOpenBlob;return!(e||!t)},getExtensions:function(){return k}};Object.assign(B,{_makeCsvBodyWithRawData:m,_makeXlsBodyWithRawData:f,_get2DArrayFromRawData:a,_get2DArrayFromBulletRawData:h,_get2DArrayFromHeatmapRawData:p,_makeTCellsFromBulletRanges:u,_makeTCellsFromBulletMarkers:l,_makeTHeadForBullet:s}),e["default"]=B},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(){var t=(0,c["default"])(document.createElement("a").download),e=window.Blob&&window.navigator.msSaveOrOpenBlob,i=void 0;return e?i="msSaveOrOpenBlob":t&&(i="downloadAttribute"),i}function r(t){for(var e=t.substr(0,t.indexOf(";base64,")).substr(t.indexOf(":")+1),i=1024,n=atob(t.substr(t.indexOf(",")+1)),o=[],r=0;r<n.length;r+=i){for(var a=n.slice(r,r+i),s=new Array(a.length),u=0;u<a.length;u+=1)s[u]=a.charCodeAt(u);var l=new window.Uint8Array(s);o.push(l)}var h=new Blob(o,{type:e});return h}function a(t){return m["default"].any(y["default"].IMAGE_EXTENSIONS,function(e){return t===e})}function s(t,e,i,n){var o=a(e)?r(i):new Blob([i],{type:n});window.navigator.msSaveOrOpenBlob(o,t+"."+e)}function u(t,e,i){if(i){var n=document.createElement("a");n.href=i,n.target="_blank",n.download=t+"."+e,document.body.appendChild(n),n.click(),n.remove()}}function l(t,e,i,n){var r=o();r&&(0,d["default"])(i)&&_[r](t,e,i,n)}e.__esModule=!0;var h=i(146),c=n(h),p=i(156),d=n(p),f=i(158),m=n(f),g=i(154),y=n(g),_={downloadAttribute:u,msSaveOrOpenBlob:s};e["default"]={execDownload:l}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function r(t){var e=t.parentNode,i=document.createElement("DIV");i.appendChild(t);var n=i.innerHTML;return e.appendChild(t),i=null,e=null,n}function a(t,e,i,n){var o=t.getContext("2d");f&&(e=e.replace(/xmlns:NS1=""/,""),e=e.replace(/NS1:xmlns:xlink="http:\/\/www\.w3\.org\/1999\/xlink"/,""),e=e.replace(/xmlns="http:\/\/www\.w3\.org\/2000\/svg"/,""),e=e.replace(/xmlns:xlink="http:\/\/www\.w3\.org\/1999\/xlink"/,"")),o.drawSvg(e,0,0),l["default"].execDownload(i,n,t.toDataURL("image/"+n,1))}function s(t,e,i,n){var o=t.getContext("2d"),r=new Blob([e],{type:"image/svg+xml"}),a=m.createObjectURL(r),s=new Image;s.onload=function(){o.drawImage(s,0,0,t.width,t.height),l["default"].execDownload(i,n,t.toDataURL("image/"+n,1)),m.revokeObjectURL(a)},s.src=a}e.__esModule=!0;var u=i(209),l=n(u),h=i(154),c=n(h),p=i(153),d=n(p),f=d["default"].msie&&(10===d["default"].version||11===d["default"].version),m=window.URL||window.webkitURL||window,g=[].concat(o(c["default"].IMAGE_EXTENSIONS));e["default"]={downloadImage:function(t,e,i){var n=void 0;if("svg"===i.tagName){var o=i.parentNode,u=r(i);n=document.createElement("canvas"),n.width=o.offsetWidth,n.height=o.offsetHeight,f?a(n,u,t,e):s(n,u,t,e)}else"canvas"===i.tagName&&(n=i,l["default"].execDownload(t,e,n.toDataURL("image/"+e,1)))},getExtensions:function(){return g}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(156),r=n(o),a=i(139),s=n(a),u={},l={_attachEvent:function(t,e,i,n){var o=void 0;o=n?i.bind(n):i,u[e+i]=o,t.attachEvent("on"+e,o)},_addEventListener:function(t,e,i,n){var o=void 0;o=n?i.bind(n):i,u[e+i]=o,t.addEventListener(e,o)},_bindEvent:function(t,e,i,n){var o=void 0;"addEventListener"in t?o=this._addEventListener:"attachEvent"in t&&(o=this._attachEvent),l._bindEvent=o,o(t,e,i,n)},on:function(t,e,i,n){var o={};(0,r["default"])(e)?o[e]=i:(o=e,n=i),(0,s["default"])(o,function(e,i){l._bindEvent(t,i,e,n)})},_detachEvent:function(t,e,i){u[e+i]&&(t.detachEvent("on"+e,u[e+i]),delete u[e+i])},_removeEventListener:function(t,e,i){t.removeEventListener(e,u[e+i]),delete u[e+i]},_unbindEvent:function(t,e,i){var n=void 0;"removeEventListener"in t?n=l._removeEventListener:"detachEvent"in t&&(n=l._detachEvent),l._unbindEvent=n,n(t,e,i)},off:function(t,e,i){var n={};(0,r["default"])(e)?n[e]=i:n=e,(0,s["default"])(n,function(e,i){l._unbindEvent(t,i,e)})}};e["default"]=l},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t){var e=t.options,i=t.dataProcessor.seriesTypes,n=t.chartOptions.chartType,o=!!(0,l["default"])(e.visible)||e.visible,r=null;return o&&(t.seriesTypes=i,t.chartType=n,r=new L(t)),r}e.__esModule=!0,e["default"]=r;var a=i(137),s=n(a),u=i(145),l=n(u),h=i(213),c=n(h),p=i(198),d=n(p),f=i(154),m=n(f),g=i(216),y=n(g),_=i(182),v=n(_),T=i(164),b=n(T),x=i(143),A=n(x),D=m["default"].LEGEND_ICON_HEIGHT,E=m["default"].LINE_MARGIN_TOP,S=m["default"].LEGEND_AREA_H_PADDING,C=m["default"].PUBLIC_EVENT_PREFIX,L=function(){function t(e){o(this,t),this.theme=e.theme,this.options=e.options||{},this.chartType=e.chartType,this.seriesTypes=e.seriesTypes||[this.chartType],this.eventBus=e.eventBus,this.className="tui-chart-legend-area",this.dataProcessor=e.dataProcessor,this.legendModel=new y["default"]({theme:this.theme,labels:e.dataProcessor.getLegendLabels(),legendData:e.dataProcessor.getLegendData(),seriesTypes:this.seriesTypes,chartType:this.chartType}),this.layout=null,this.graphRenderer=v["default"].get(m["default"].COMPONENT_TYPE_RAPHAEL,"legend"),this.paper=null,this.drawingType=m["default"].COMPONENT_TYPE_RAPHAEL}return t.prototype.presetForChangeData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.theme;this.theme=t,this.legendModel=new y["default"]({theme:this.theme,labels:this.dataProcessor.getLegendLabels(),legendData:this.dataProcessor.getLegendData(),seriesTypes:this.seriesTypes,chartType:this.chartType})},t.prototype._setDataForRendering=function(t){t&&(this.layout=t.layout,this.paper=t.paper)},t.prototype._render=function(t){this._setDataForRendering(t);var e=this._renderLegendArea(t.paper),i=e.legendSet,n=e.paginationElem;this.legendSet=i,this.paginationArea=n},t.prototype.render=function(t){this._render(t),this._listenEvents()},t.prototype.rerender=function(t){this.legendSet.remove(),this.paginationArea.forEach(function(t){return t.remove()}),this._render(t)},t.prototype.resize=function(t){this.rerender(t)},t.prototype._getLegendRenderingData=function(t,e,i){var n=this,o=(b["default"].isBarTypeChart(this.chartType)||b["default"].isBoxplotChart(this.chartType))&&this.dataProcessor.options.series.colorByPoint,r=t.map(function(t,r){var a=n.options.showCheckbox===!1?null:{checked:n.legendModel.isCheckedIndex(r)},s=t.label;return n.options.maxWidth&&(s=A["default"].getEllipsisText(s,n.options.maxWidth,n.theme.label)),{checkbox:a,iconType:t.chartType||"rect",colorByPoint:o,index:r,theme:t.theme,label:s,labelHeight:e,labelWidth:i[r],isUnselected:n.legendModel.isUnselectedIndex(r)}});return(b["default"].isAreaChart(this.chartType)||b["default"].isColumnChart(this.chartType))&&(0,c["default"])(this.dataProcessor.options.series.stack)&&"top"!==this.options.align&&"bottom"!==this.options.align&&r.reverse(),r},t.prototype._renderLegendArea=function(t){var e=this.legendModel.getData(),i=this.graphRenderer,n=b["default"].isHorizontalLegend(this.options.align),o=this.layout.position,r=i.makeLabelWidths(e,this.theme.label,this.options.maxWidth),a=e[0]?e[0].theme:{},s=i.getRenderedLabelHeight("DEFAULT_TEXT",a)-1,u=r.length,l=Math.max(D,s),h=(E+l)*(n?1:u),c=o.top,p=o.left;return b["default"].isLegendAlignLeft(this.options.align)||(p+=S),i.render({paper:t,legendData:this._getLegendRenderingData(e,s,r),isHorizontal:n,position:{left:p,top:c},dimension:{height:h,width:this.layout.dimension.width},labelTheme:this.theme.label,labelWidths:r,eventBus:this.eventBus})},t.prototype._fireChangeCheckedLegendsEvent=function(){this.eventBus.fire("changeCheckedLegends",this.legendModel.getCheckedIndexes())},t.prototype._fireChangeCheckedLegendsPublicEvent=function(){this.eventBus.fire(C+"changeCheckedLegends",this.legendModel.getCheckedIndexes())},t.prototype._fireSelectLegendEvent=function(t){var e=this.legendModel.getSelectedIndex(),i=(0,s["default"])(e)?e:t.seriesIndex;this.eventBus.fire("selectLegend",t.chartType,i)},t.prototype._fireSelectLegendPublicEvent=function(t){var e=t.label,i=t.index,n=t.chartType;this.eventBus.fire(C+"selectLegend",{legend:e,chartType:n,index:i})},t.prototype._selectLegend=function(t){var e=this.legendModel.getDatum(t);this.legendModel.toggleSelectedIndex(t),(0,s["default"])(this.legendModel.getSelectedIndex())||this.legendModel.isCheckedSelectedIndex()||(this.legendModel.checkSelectedIndex(),this._fireChangeCheckedLegendsEvent()),this.dataProcessor.selectLegendIndex=this.legendModel.getSelectedIndex(),this.graphRenderer.selectLegend(this.dataProcessor.selectLegendIndex,this.legendSet),this._fireSelectLegendEvent(e),this._fireSelectLegendPublicEvent(e)},t.prototype._getCheckedIndexes=function(){var t=[];return this.legendModel.checkedWholeIndexes.forEach(function(e,i){e&&t.push(i)}),t},t.prototype.getCheckedIndexes=function(){return this.legendModel.getCheckedIndexes()},t.prototype._checkLegend=function(){var t=this.legendModel.getSelectedDatum();this.legendModel.isCheckedSelectedIndex()||this.legendModel.updateSelectedIndex(null),this._fireChangeCheckedLegendsEvent(),this._fireChangeCheckedLegendsPublicEvent(),t&&this._fireSelectLegendEvent(t)},t.prototype._checkboxClick=function(t){this.legendModel.toggleCheckedIndex(t);var e=this._getCheckedIndexes();e.length>0?(this.legendModel.updateCheckedLegendsWith(e),this._checkLegend()):this.legendModel.toggleCheckedIndex(t)},t.prototype._labelClick=function(t){this._selectLegend(t)},t.prototype._listenEvents=function(){this.eventBus.on("checkboxClicked",this._checkboxClick,this),this.eventBus.on("labelClicked",this._labelClick,this)},t}();d["default"].mixin(L),r.componentType="legend",r.Legend=L},function(t,e,i){"use strict";function n(t){return!o(t)}var o=i(214);t.exports=n},function(t,e,i){"use strict";function n(t){return a(t)&&""===t}function o(t){var e;for(e in t)if(t.hasOwnProperty(e))return!0;return!1}function r(t){return!(s(t)&&!n(t))||(u(t)||l(t)?0===t.length:!(h(t)&&!c(t))||!o(t))}var a=i(156),s=i(146),u=i(140),l=i(215),h=i(138),c=i(187);t.exports=r},function(t,e,i){"use strict";function n(t){var e=o(t)&&("[object Arguments]"===Object.prototype.toString.call(t)||!!t.callee);return e}var o=i(146);t.exports=n},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var a=i(137),s=n(a),u=i(145),l=n(u),h=function(){function t(e){r(this,t),this.theme=e.theme,this.labels=e.labels,this.legendData=e.legendData,this.seriesTypes=e.seriesTypes||[],this.chartType=e.chartType,this.data=null,this.selectedIndex=null,this.checkedIndexesMap={},this.checkedWholeIndexes=[],this._setData(),this._initCheckedIndexes()}return t.prototype._initCheckedIndexes=function(){var t=this,e=[];this.legendData.forEach(function(i,n){var o=i.visible;o&&e.push(n),t.checkedWholeIndexes[n]=o}),this.updateCheckedLegendsWith(e)},t.prototype._setThemeToLegendData=function(t,e,i){var n=e.colors,o=e.borderColor,r=0;t.forEach(function(t,e){var a={color:n[e]};o&&(a.borderColor=o),t.theme=a,t.index=e,i&&(0,l["default"])(i[e])?t.seriesIndex=-1:(t.seriesIndex=r,r+=1)})},t.prototype._setData=function(){var t=this,e=this.theme,i=this.chartType,n=this.seriesTypes,r=this.legendData,a=this.checkedIndexesMap,s=void 0;if(!n||n.length<2)this._setThemeToLegendData(r,e[i],a[i]),s=r;else{var u,l=0,h=n.map(function(i){var n=t.labels[i].length,o=l+n,s=r.slice(l,o),u=a[i];return l=o,t._setThemeToLegendData(s,e[i],u),s});s=(u=[]).concat.apply(u,o(h))}this.data=s},t.prototype.getData=function(){return this.data},t.prototype.getDatum=function(t){return this.data[t]},t.prototype.getDatumByLabel=function(t){var e=null;return this.data.forEach(function(i){return i.label===t&&(e=i),!e}),e},t.prototype.getSelectedDatum=function(){return this.getDatum(this.selectedIndex)},t.prototype.updateSelectedIndex=function(t){this.selectedIndex=t},t.prototype.toggleSelectedIndex=function(t){var e=void 0;e=this.selectedIndex===t?null:t,this.updateSelectedIndex(e)},t.prototype.getSelectedIndex=function(){return this.selectedIndex},t.prototype.isUnselectedIndex=function(t){return!(0,s["default"])(this.selectedIndex)&&this.selectedIndex!==t},t.prototype.isCheckedSelectedIndex=function(){return this.isCheckedIndex(this.selectedIndex)},t.prototype.toggleCheckedIndex=function(t){this.checkedWholeIndexes[t]=!this.checkedWholeIndexes[t]},t.prototype._updateCheckedIndex=function(t){this.checkedWholeIndexes[t]=!0},t.prototype.isCheckedIndex=function(t){return!!this.checkedWholeIndexes[t]},t.prototype._addSendingDatum=function(t){var e=this.getDatum(t),i=e.chartType,n=e.index;this.checkedIndexesMap[i]||(this.checkedIndexesMap[i]=new Array(this.labels[i].length).fill(!1)),this.checkedIndexesMap[i][n]=!0},t.prototype.checkSelectedIndex=function(){this._updateCheckedIndex(this.selectedIndex),this._addSendingDatum(this.selectedIndex),this._setData()},t.prototype.getCheckedIndexes=function(){var t=this;return Object.keys(this.checkedIndexesMap).reduce(function(e,i){return e[i]=Array.from(t.checkedIndexesMap[i],function(t){return!!t}),e},{})},t.prototype._resetCheckedData=function(){this.checkedWholeIndexes=[],this.checkedIndexesMap={}},t.prototype.updateCheckedLegendsWith=function(t){var e=this;this._resetCheckedData(),t.forEach(function(t){e._updateCheckedIndex(t),e._addSendingDatum(t)}),this._setData()},t}();e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t){var e=!!(0,s["default"])(t.options.visible)||t.options.visible,i=t.chartOptions.chartType,n=null;return e&&(t.chartType=i,n=new v(t)),n}e.__esModule=!0,e["default"]=r;var a=i(145),s=n(a),u=i(154),l=n(u),h=i(164),c=n(h),p=i(182),d=n(p),f=i(184),m=l["default"].COMPONENT_TYPE_RAPHAEL,g=l["default"].MAP_LEGEND_LABEL_PADDING,y=l["default"].MAP_LEGEND_GRAPH_SIZE,_=l["default"].CHART_PADDING,v=function(){function t(e){o(this,t);var i=e.libType,n=e.chartType,r=e.theme,a=e.options,s=void 0===a?{}:a,u=e.dataProcessor,l=e.colorSpectrum,h=e.eventBus;this.chartType=n,this.theme=r,this._isDefaultLegendLabelColor(this.theme.label.color)&&(this.theme.label.color="#fff"),this.options=s,this.dataProcessor=u,this.colorSpectrum=l,this.eventBus=h,this.graphRenderer=d["default"].get(i,"mapLegend"),this.isHorizontal=c["default"].isHorizontalLegend(this.options.align),this.scaleData=null,this.drawingType=m,this._attachToEventBus()}return t.prototype._isDefaultLegendLabelColor=function(t){return t===f.DEFAULT_LEGEND_LABEL_FONTCOLOR},t.prototype._attachToEventBus=function(){this.eventBus.on({showWedge:this.onShowWedge,hideTooltip:this.onHideWedge},this),this.eventBus.on("beforeImageDownload",this._removeLocationURLFromFillAttribute.bind(this)),this.eventBus.on("afterImageDownload",this._restoreLocationURLToFillAttribute.bind(this))},t.prototype._removeLocationURLFromFillAttribute=function(){this.graphRenderer.removeLocationURLFromFillAttribute()},t.prototype._restoreLocationURLToFillAttribute=function(){this.graphRenderer.restoreLocationURLToFillAttribute()},t.prototype._makeBaseDataToMakeTickArea=function(){var t=this.layout.dimension,e=this.scaleData,i=this.options.align,n=e.stepCount||e.tickCount-1,o={};return o.position=this.layout.position,this.isHorizontal?(o.step=t.width/n,c["default"].isLegendAlignTop(i)?o.position.top-=g:o.position.top+=y+g):(o.step=t.height/n,c["default"].isLegendAlignLeft(i)?o.position.left=_:o.position.left+=y+g),o},t.prototype._renderTickArea=function(t){this.options.reversed&&this.scaleData.labels.sort(function(t,e){return e-t}),this.graphRenderer.renderTickLabels(this.paper,this._makeBaseDataToMakeTickArea(),this.scaleData.labels,this.options.align,t)},t.prototype._makeVerticalGraphDimension=function(){return{width:y,height:this.layout.dimension.height}},t.prototype._makeHorizontalGraphDimension=function(){return{width:this.layout.dimension.width,height:y}},t.prototype._renderGraph=function(t){var e=this.layout.position,i=void 0;if(i=this.isHorizontal?this._makeHorizontalGraphDimension():this._makeVerticalGraphDimension(),this.options.reversed){var n=this.colorSpectrum.start;this.colorSpectrum.start=this.colorSpectrum.end,this.colorSpectrum.end=n}this.graphRenderer.render({paper:this.paper,layout:{dimension:i,position:e},colorSpectrum:this.colorSpectrum,align:this.options.align,legendSet:t,theme:this.theme.label,labels:this.scaleData.labels})},t.prototype._renderLegendArea=function(){var t=this.paper.set();return this._renderGraph(t),this._renderTickArea(t),t},t.prototype._setDataForRendering=function(t){var e=t.layout,i=t.paper,n=t.legendScaleData;this.layout=e,this.paper=i,this.scaleData=n},t.prototype.render=function(t){this._setDataForRendering(t),this.legendSet=this._renderLegendArea()},t.prototype.rerender=function(t){this.legendSet.remove(),this.render(t)},t.prototype.resize=function(t){this.rerender(t)},t.prototype.onShowWedge=function(t,e){t=this.options.reversed?1-t:t,this.graphRenderer.showWedge(t,e)},t.prototype.onHideWedge=function(){this.graphRenderer.hideWedge()},t}();r.componentType="legend",r.SpectrumLegend=v},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t){var e=t.chartTheme,i=t.chartOptions.chartType,n=(0,l["default"])(t.chartOptions,"circleLegend","visible"),o=null,r=void 0;return r=!!(0,s["default"])(n)||n,r&&(t.chartType=i,t.baseFontFamily=e.chart.fontFamily,o=new _(t)),o}e.__esModule=!0,e["default"]=r;var a=i(145),s=n(a),u=i(152),l=n(u),h=i(154),c=n(h),p=i(173),d=n(p),f=i(148),m=n(f),g=i(182),y=n(g),_=function(){function t(e){var i=e.libType,n=e.chartType,r=e.dataProcessor,a=e.baseFontFamily;o(this,t),this.circleRatios=[1,.5,.25],this.chartType=n,this.dataProcessor=r,this.labelTheme={fontSize:c["default"].CIRCLE_LEGEND_LABEL_FONT_SIZE,fontFamily:a},this.graphRenderer=y["default"].get(i,"circleLegend"),this.layout=null,this.maxRadius=null,this.drawingType=c["default"].COMPONENT_TYPE_RAPHAEL}return t.prototype._formatLabel=function(t,e){var i=this.dataProcessor.getFormatFunctions(),n=void 0;return n=0===e?String(parseInt(t,10)):m["default"].formatToDecimal(String(t),e),m["default"].formatValue({value:n,formatFunctions:i,chartType:this.chartType,areaType:"circleLegend",valueType:"r"})},t.prototype._makeLabels=function(){var t=this,e=this.dataProcessor.getMaxValue(this.chartType,"r"),i=d["default"].getDecimalLength(e);return this.circleRatios.map(function(n){return t._formatLabel(e*n,i)})},t.prototype._render=function(t){return this.graphRenderer.render(t,this.layout,this.maxRadius,this.circleRatios,this._makeLabels())},t.prototype._setDataForRendering=function(t){this.layout=t.layout,this.maxRadius=t.maxRadius},t.prototype.render=function(t){this._setDataForRendering(t),this.circleLegendSet=this._render(t.paper)},t.prototype.rerender=function(t){this.circleLegendSet.remove(),this._setDataForRendering(t),this.circleLegendSet=this._render(t.paper)},t.prototype.resize=function(t){this.rerender(t)},t}();r.componentType="legend",r.CircleLegend=_},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e,i){var n=(100*t.ratio).toFixed(4),o=parseFloat(n),r=o<9e-4||n.length>5;n=r?n.substr(0,4):String(o);var a=n+"&nbsp;%&nbsp;"||"";return e.ratioLabel=i+a,e.label=t.tooltipLabel||(t.label?t.label:""),e}function r(t){var e=t.chartOptions.chartType,i=t.seriesTypes,n=t.chartOptions.xAxis,r=[],a=void 0,u=Object.values(t.chartTheme.legend).filter(function(t){return(0,m["default"])(t.colors)});return u.forEach(function(t){r=r.concat(t.colors)}),a="map"===e?c["default"]:t.options.grouped?l["default"]:s["default"],("pie"===e||d["default"].isPieDonutComboChart(e,i))&&(t.labelFormatter=o),t.chartType=e,t.chartTypes=i,t.xAxisType=n.type,t.dateFormat=n.dateFormat,t.colors=r,a(t)}e.__esModule=!0,e["default"]=r;var a=i(220),s=n(a),u=i(225),l=n(u),h=i(227),c=n(h),p=i(164),d=n(p),f=i(140),m=n(f);r.componentType="tooltip"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new E(t)}e.__esModule=!0,e["default"]=s;var u=i(140),l=n(u),h=i(150),c=n(h),p=i(152),d=n(p),f=i(221),m=n(f),g=i(222),y=n(g),_=i(154),v=n(_),T=i(164),b=n(T),x=i(223),A=n(x),D="#aaa",E=function(t){function e(i){o(this,e);var n=r(this,t.call(this,i));return n.colorSpectrum=i.colorSpectrum,n}return a(e,t),e.prototype._makeTooltipHtml=function(t,e){var i=this._getTooltipTemplate(e);return i(Object.assign({categoryVisible:t?"show":"hide",category:t},e))},e.prototype._getTooltipTemplate=function(t){var e=A["default"].tplDefault;return b["default"].isBoxplotChart(this.chartType)?e=this._getBoxplotTooltipTemplate(t):b["default"].isPieChart(this.chartType)||b["default"].isPieDonutComboChart(this.chartType,this.chartTypes)?e=A["default"].tplPieChart:this.dataProcessor.coordinateType?e=A["default"].tplCoordinatetypeChart:b["default"].isBulletChart(this.chartType)?e=A["default"].tplBulletChartDefault:b["default"].isHeatmapChart(this.chartType)&&(e=A["default"].tplHeatmapChart),e},e.prototype._getBoxplotTooltipTemplate=function(t){var e=A["default"].tplBoxplotChartDefault;return(0,c["default"])(t.outlierIndex)&&(e=A["default"].tplBoxplotChartOutlier,t.label=t.outliers[t.outlierIndex].label),e},e.prototype._makeHtmlForValueTypes=function(t,e){return e.map(function(e){return t[e]?"<tr><td>"+e+'</td><td class="'+v["default"].CLASS_NAME_TOOLTIP_VALUE+'">'+t[e]+"</td></tr>":""}).join("")},e.prototype._makeSingleTooltipHtml=function(t,e){var i=e.groupIndex,n=this._findTooltipData(t,e),o=this._findTooltipColor(t,e,n);return b["default"].isBoxplotChart(this.chartType)&&(0,c["default"])(e.outlierIndex)&&(n.outlierIndex=e.outlierIndex),this.colorSpectrum&&(o=this.colorSpectrum.getColor(n.colorRatio||n.ratio)),n.color=o,n.chartType=this.chartType,n.cssText="background-color: "+o,n=Object.assign({suffix:this.suffix},n),n.valueTypes=this._makeHtmlForValueTypes(n,["x","y","r"]),this.templateFunc(n.category,n,this.getRawCategory(i))},e.prototype._findTooltipData=function(t,e){var i=this.data[t],n=e.groupIndex;return b["default"].isRadialChart(t)&&i.length===n&&(n=0),Object.assign({},(0,d["default"])(i,n,e.index))},e.prototype._findTooltipColor=function(t,e,i){var n=b["default"].isBarTypeChart(this.chartType),o=b["default"].isBoxplotChart(this.chartType),r=(n||o)&&this.dataProcessor.options.series.colorByPoint,a=e.groupIndex,s=e.index;return b["default"].isBulletChart(this.chartType)?s=a:b["default"].isTreemapChart(this.chartType)&&(s=i.tooltipColorIndex),r?D:this.tooltipColors[t][s]},e.prototype._setDefaultTooltipPositionOption=function(){this.options.align||(this.isVertical?this.options.align=v["default"].TOOLTIP_DEFAULT_ALIGN_OPTION:this.options.align=v["default"].TOOLTIP_DEFAULT_HORIZONTAL_ALIGN_OPTION)},e.prototype._makeShowTooltipParams=function(t,e){var i=t.index,n=this.dataProcessor.getLegendItem(i);if(!n)return null;var o=n.chartType,r=n.label,a=Object.assign({chartType:o,legend:r,legendIndex:i,index:t.groupIndex},e);return b["default"].isBoxplotChart(o)&&(0,c["default"])(t.outlierIndex)&&(a.outlierIndex=t.outlierIndex),a},e.prototype._makeTooltipDatum=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments[2],n=i.tooltipLabel,o=this.labelFormatter,r={legend:t,label:n||(i.label?i.label:""),category:e};return o&&(r=o(i,r,"")),r.category=e,Object.assign(r,i.pickValueMapForTooltip())},e.prototype.makeTooltipData=function(){var t=this,e=this.dataProcessor.getLegendLabels(),i=b["default"].isTreemapChart(this.chartType),n={},o={};return(0,l["default"])(e)?n[this.chartType]=e:n=e,this.dataProcessor.eachBySeriesGroup(function(e,i,r){r=r||t.chartType;var a=b["default"].isBulletChart(r),s=e.map(function(e,o){var s=t.dataProcessor.makeTooltipCategory(i,o,t.isVertical),u=a?i:o;return e?t._makeTooltipDatum(n[r][u],s,e):null});o[r]||(o[r]=[]),o[r].push(s)},i),o},e}(m["default"]);y["default"].mixin(E),s.componentType="tooltip",s.NormalTooltip=E},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(146),a=n(r),s=i(135),u=n(s),l=i(186),h=n(l),c=i(154),p=n(c),d=i(155),f=n(d),m=i(164),g=n(m),y=i(148),_=n(y),v=function(){function t(e){o(this,t);var i=g["default"].isPieChart(e.chartType);this.chartType=e.chartType,this.chartTypes=e.chartTypes,this.dataProcessor=e.dataProcessor,this.options=e.options,this.colors=e.colors,this.theme=e.theme,this.originalTheme=h["default"].deepCopy(e.theme),this.isVertical=e.isVertical,this.eventBus=e.eventBus,this.labelTheme=e.labelTheme,this.xAxisType=e.xAxisType,this.dateFormat=e.dateFormat,this.labelFormatter=e.labelFormatter,this.className="tui-chart-tooltip-area",this.tooltipContainer=null,this.suffix=this.options.suffix?"&nbsp;"+this.options.suffix:"",this.templateFunc=this.options.template||this._makeTooltipHtml.bind(this),this.animationTime=i?p["default"].TOOLTIP_PIE_ANIMATION_TIME:p["default"].TOOLTIP_ANIMATION_TIME,this.data=[],this.layout=null,this.dimensionMap=null,this.positionMap=null,this.drawingType=p["default"].COMPONENT_TYPE_DOM,this._setDefaultTooltipPositionOption(),this._saveOriginalPositionOptions(),this._attachToEventBus()}return t.prototype.presetForChangeData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.theme;this.theme=t,this.originalTheme=h["default"].deepCopy(t)},t.prototype._attachToEventBus=function(){this.eventBus.on({showTooltip:this.onShowTooltip,hideTooltip:this.onHideTooltip},this),this.onShowTooltipContainer&&this.eventBus.on({showTooltipContainer:this.onShowTooltipContainer,hideTooltipContainer:this.onHideTooltipContainer},this)},t.prototype._makeTooltipHtml=function(){},t.prototype._setDefaultTooltipPositionOption=function(){},t.prototype._saveOriginalPositionOptions=function(){this.orgPositionOptions={align:this.options.align,offset:this.options.offset}},t.prototype.makeLineLegendIcon=function(t){for(var e=t.length,i=0;i<e;i+=1){var n=t[i],o=n.style["background-color"],r=(0,u["default"])(n,10,10),a=r.path(p["default"].LEGEND_LINE_ICON_PATH);n.style["background-color"]="",a.attr({stroke:o,"stroke-width":2,"stroke-opacity":1})}},t.prototype.makeTooltipData=function(){},t.prototype._setDataForRendering=function(t){this.layout=t.layout,this.dimensionMap=t.dimensionMap,this.positionMap=t.positionMap},t.prototype.render=function(t){var e=t.paper;return f["default"].addClass(e,this.className),this._setDataForRendering(t),this.data=this.makeTooltipData(),this.tooltipColors=this.makeTooltipLegendColor(t.checkedLegends),_["default"].renderPosition(e,this.layout.position),this.tooltipContainer=e,e},t.prototype.rerender=function(t){this.resize(t),this.data=this.makeTooltipData(),this.tooltipColors=this.makeTooltipLegendColor(t.checkedLegends)},t.prototype.makeTooltipLegendColor=function(t){var e=this,i={};return t&&Object.keys(this.theme).forEach(function(n){i[n]||(i[n]=[]),(t[n]||[]).forEach(function(t,o){t&&i[n].push(e.theme[n].colors[o])})}),i},t.prototype.resize=function(t){this._setDataForRendering(t),_["default"].renderPosition(this.tooltipContainer,this.layout.position),this.positionModel&&this.positionModel.updateBound(this.layout)},t.prototype.zoom=function(){this.data=this.makeTooltipData()},t.prototype._getTooltipElement=function(){if(!this.tooltipElement){var t=this.tooltipElement=f["default"].create("DIV","tui-chart-tooltip");f["default"].append(this.tooltipContainer,t)}return this.tooltipElement},t.prototype.onShowTooltip=function(t){var e=this._getTooltipElement(),i=g["default"].isComboChart(this.chartType)&&g["default"].isScatterChart(t.chartType),n=void 0;g["default"].isChartToDetectMouseEventOnSeries(t.chartType)&&!i||!e.offsetWidth||(n={
left:e.offsetLeft,top:e.offsetTop}),this._showTooltip(e,t,n)},t.prototype.getTooltipDimension=function(t){var e=t.offsetWidth,i=t.offsetHeight;return{width:e,height:i}},t.prototype._moveToPosition=function(t,e,i){i?this._slideTooltip(t,i,e):_["default"].renderPosition(t,e)},t.prototype._slideTooltip=function(t,e,i){var n=i.top-e.top,o=i.left-e.left;_["default"].cancelAnimation(this.slidingAnimation),this.slidingAnimation=_["default"].startAnimation(this.animationTime,function(i){var r=o*i,a=n*i;t.style.left=e.left+r+"px",t.style.top=e.top+a+"px"})},t.prototype.onHideTooltip=function(t,e){var i=this._getTooltipElement();this._hideTooltip(i,t,e)},t.prototype.setAlign=function(t){this.options.align=t,this.positionModel&&this.positionModel.updateOptions(this.options)},t.prototype._updateOffsetOption=function(t){this.options.offset=t,this.positionModel&&this.positionModel.updateOptions(this.options)},t.prototype.setOffset=function(t){var e=Object.assign({},this.options.offset);(0,a["default"])(t.x)&&(e.x=t.x),(0,a["default"])(t.y)&&(e.y=t.y),this._updateOffsetOption(Object.assign({},this.options.offset,e))},t.prototype.setPosition=function(t){var e=Object.assign({},this.options.offset);(0,a["default"])(t.left)&&(e.x=t.left),(0,a["default"])(t.top)&&(e.y=t.y),this._updateOffsetOption(e)},t.prototype.resetAlign=function(){var t=this.orgPositionOptions.align;this.options.align=t,this.positionModel&&this.positionModel.updateOptions(this.options)},t.prototype.resetOffset=function(){this.options.offset=this.orgPositionOptions.offset,this._updateOffsetOption(this.options.offset)},t.prototype.getRawCategory=function(t,e){var i=this.isVertical?"x":"y",n=this.dataProcessor.categoriesMap?this.dataProcessor.categoriesMap[i]:null,o="";return n&&(o=n[t]),e&&(o=_["default"].formatDate(o,e)),o},t}();e["default"]=v},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(137),r=n(o),a=i(154),s=n(a),u=i(164),l=n(u),h=i(155),c=n(h),p=i(148),d=n(p);e["default"]={_setIndexesCustomAttribute:function(t,e){t.setAttribute("data-groupIndex",e.groupIndex),t.setAttribute("data-index",e.index)},_getIndexesCustomAttribute:function(t){var e=t.getAttribute("data-groupIndex"),i=t.getAttribute("data-index"),n=null;return(0,r["default"])(e)||(0,r["default"])(i)||(n={groupIndex:parseInt(e,10),index:parseInt(i,10)}),n},_setShowedCustomAttribute:function(t,e){t.setAttribute("data-showed",e)},_isShowedTooltip:function(t){var e=t.getAttribute("data-showed");return"true"===e||e===!0},_makeTooltipPositionForBulletChart:function(t){var e=t.mousePosition,i=this.layout.position;return{left:e.left-i.left,top:e.top-i.top}},_makeLeftPositionOfNotBarChart:function(t,e,i,n){var o=t,r=i||0,a=n||s["default"].TOOLTIP_GAP;return e.indexOf("left")>-1?o-=r+a:e.indexOf("center")>-1&&r?o-=r/2:o+=a,o},_makeTopPositionOfNotBarChart:function(t,e,i,n){var o=t,r=i||0;return e.indexOf("bottom")>-1?o+=r+n:e.indexOf("middle")>-1&&r?o+=r/2:o-=r+s["default"].TOOLTIP_GAP,o},_makeTooltipPositionForNotBarChart:function(t){var e=t.bound,i=t.positionOption,n=t.dimension,o=t.alignOption,r=void 0===o?"":o,a=n.width-(e.width||0),u=e.width?0:s["default"].TOOLTIP_GAP,l=n.height,h=e.left-this.layout.position.left+i.left,c=e.top-this.layout.position.top+i.top-s["default"].TOOLTIP_GAP;return{left:this._makeLeftPositionOfNotBarChart(h,r,a,u),top:this._makeTopPositionOfNotBarChart(c,r,l,u)}},_makeTooltipPositionToMousePosition:function(t){return t.bound||(t.bound=t.bound||{},Object.assign(t.bound,t.mousePosition)),this._makeTooltipPositionForNotBarChart(t)},_makeLeftPositionForBarChart:function(t,e,i){var n=t;return e.indexOf("left")>-1?n-=i:e.indexOf("center")>-1?n-=i/2:n+=s["default"].TOOLTIP_GAP,n},_makeTopPositionForBarChart:function(t,e,i){var n=t;return e.indexOf("top")>-1?n-=i:e.indexOf("middle")>-1&&(n-=i/2),n},_makeTooltipPositionForBarChart:function(t){var e=this.layout.position,i=t.bound,n=t.positionOption,o=t.dimension,r=t.alignOption,a=void 0===r?"":r,s=o.height-(i.height||0),u=o.width,l=i.left+i.width+n.left-e.left,h=i.top+n.top-e.top;return{left:this._makeLeftPositionForBarChart(l,a,u),top:this._makeTopPositionForBarChart(h,a,s)}},_makeTooltipPositionForTreemapChart:function(t){var e=this.layout.position,i=t.bound,n=t.positionOption,o=t.dimension,r=d["default"].getRenderedLabelHeight(s["default"].MAX_HEIGHT_WORD,this.labelTheme);return{left:i.left+(i.width-o.width)/2+n.left-e.left,top:i.top+i.height/2-r+n.top-e.top}},_adjustPosition:function(t,e){var i=this.dimensionMap.chart,n=this.layout.position;return e.left=Math.max(e.left,-n.left),e.left=Math.min(e.left,i.width-n.left-t.width),e.top=Math.max(e.top,-n.top),e.top=Math.min(e.top,i.height-n.top-t.height),e},_makeTooltipPosition:function(t){var e={};if(t.mousePosition)e=this._makeTooltipPositionToMousePosition(t);else{var i=void 0,n=void 0,o=void 0;l["default"].isBarChart(t.chartType)?(e=this._makeTooltipPositionForBarChart(t),i="width",n="left",o=1):l["default"].isTreemapChart(t.chartType)?e=this._makeTooltipPositionForTreemapChart(t):(e=this._makeTooltipPositionForNotBarChart(t),i="height",n="top",o=-1),t.allowNegativeTooltip&&(e=this._moveToSymmetry(e,{bound:t.bound,indexes:t.indexes,dimension:t.dimension,chartType:t.chartType,sizeType:i,positionType:n,addPadding:o})),e=this._adjustPosition(t.dimension,e)}return e},_moveToSymmetry:function(t,e){var i=e.bound,n=e.sizeType,o=e.positionType,r=e.indexes,a=e.seriesType||e.chartType,s=this.dataProcessor.getValue(r.groupIndex,r.index,a),u=l["default"].isBarChart(this.chartType)?-1:1;if(s<0){var h=e.dimension[n],c=i[n],p=t[o]+(c+h)*u;t[o]=p}return t},_isChangedIndexes:function(t,e){return!!t&&(t.groupIndex!==e.groupIndex||t.index!==e.index)},_showTooltip:function(t,e,i){var n=this.tooltipContainer.parentNode.getBoundingClientRect(),o=e.indexes,r=this._getIndexesCustomAttribute(t),a=this.options.offset||{},u={},l=t&&t.getAttribute("data-chart-type");!e.bound&&e.mousePosition&&(e.bound={left:e.mousePosition.left-n.left+s["default"].CHART_PADDING,top:e.mousePosition.top-n.top+s["default"].CHART_PADDING}),(this._isChangedIndexes(r,o)||l!==e.chartType)&&this.eventBus.fire("hoverOffSeries",r,l),t.innerHTML=this._makeSingleTooltipHtml(e.seriesType||e.chartType,o),"line"===e.chartType&&this.makeLineLegendIcon(t.querySelectorAll(".tui-chart-legend-rect.line")),t.setAttribute("data-chart-type",e.chartType),this._setIndexesCustomAttribute(t,o),this._setShowedCustomAttribute(t,!0),this._fireBeforeShowTooltipPublicEvent(o,e.silent),c["default"].addClass(t,"show"),u.left=a.x||0,u.top=a.y||0;var h=this._makeTooltipPosition(Object.assign({dimension:this.getTooltipDimension(t),positionOption:u,alignOption:this.options.align||""},e));this._moveToPosition(t,h,i),this.eventBus.fire("hoverSeries",o,e.chartType),this._fireAfterShowTooltipPublicEvent(o,{element:t,position:h},e.silent),delete e.silent},_fireBeforeShowTooltipPublicEvent:function(t,e){if(!e){var i=this._makeShowTooltipParams(t);this.eventBus.fire(s["default"].PUBLIC_EVENT_PREFIX+"beforeShowTooltip",i)}},_fireAfterShowTooltipPublicEvent:function(t,e,i){if(!i){var n=this._makeShowTooltipParams(t,e);this.eventBus.fire(s["default"].PUBLIC_EVENT_PREFIX+"afterShowTooltip",n)}},_executeHidingTooltip:function(t){c["default"].removeClass(t,"show"),t.removeAttribute("data-groupIndex"),t.removeAttribute("data-index"),t.style.cssText=""},_hideTooltip:function(t,e,i){var n=this,o=this._getIndexesCustomAttribute(t),r=t.getAttribute("data-chart-type"),a=!(!i||!i.silent);l["default"].isChartToDetectMouseEventOnSeries(r)?(this.eventBus.fire("hoverOffSeries",o,r),this._fireBeforeHideTooltipPublicEvent(o,a),this._executeHidingTooltip(t)):r&&(this._setShowedCustomAttribute(t,!1),this.eventBus.fire("hoverOffSeries",o,r),this._isChangedIndexes(this.prevIndexes,o)&&delete this.prevIndexes,setTimeout(function(){n._isShowedTooltip(t)||(n._fireBeforeHideTooltipPublicEvent(o,a),n._executeHidingTooltip(t))},s["default"].HIDE_DELAY))},_fireBeforeHideTooltipPublicEvent:function(t,e){var i=void 0;e||this.eventBus.fire(s["default"].PUBLIC_EVENT_PREFIX+"beforeHideTooltip",i)},onShowTooltipContainer:function(){this.tooltipContainer.style.zIndex=s["default"].TOOLTIP_ZINDEX},onHideTooltipContainer:function(){this.tooltipContainer.style.zIndex=0},mixin:function(t){Object.assign(t.prototype,this)}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(224),r=n(o),a={HTML_DEFAULT_TEMPLATE:'<div class="tui-chart-default-tooltip">\n <div class="tui-chart-tooltip-head {{ categoryVisible }}">{{ category }}</div>\n <div class="tui-chart-tooltip-body">\n <span class="tui-chart-legend-rect {{ chartType }}" style="{{ cssText }}"></span>\n <span>{{ legend }}</span>\n <span class="tui-chart-tooltip-value">{{ label }}{{ suffix }}</span>\n </div>\n </div>',HTML_PIE_TEMPLATE:'<div class="tui-chart-default-tooltip">\n <div class="tui-chart-tooltip-head {{ categoryVisible }}">{{ category }}</div>\n <div class="tui-chart-tooltip-body">\n <span class="tui-chart-legend-rect {{ chartType }}" style="{{ cssText }}"></span>\n <span>{{ legend }}</span>\n <span class="tui-chart-tooltip-value">{{ ratioLabel }} ( {{ label }} {{ suffix }})</span>\n </div>\n </div>',HTML_COORDINATE_TYPE_CHART_TEMPLATE:'<div class="tui-chart-default-tooltip">\n <div class="tui-chart-tooltip-head {{ categoryVisible }}">\n <span class="tui-chart-legend-rect {{ chartType }}" style="{{ cssText }}"></span>\n {{ category }}\n </div>\n <div class="tui-chart-tooltip-body">\n <span class="tui-chart-legend-rect {{ chartType }}" style="{{ cssText }}"></span>\n <span>{{ legend }}</span>\n <span class="tui-chart-tooltip-value">{{ label }}</span>\n </div>\n <table class="tui-chart-tooltip-body">{{ valueTypes }}</table>\n </div>',HTML_GROUP:'<div class="tui-chart-default-tooltip tui-chart-group-tooltip">\n <div class="tui-chart-tooltip-head">{{ category }}</div>\n <table class="tui-chart-tooltip-body">\n {{ items }}\n </table>\n </div>',HTML_GROUP_TYPE:'\n <tr>\n <td colspan="3" class="tui-chart-tooltip-type">{{ type }}</div>\n </tr>',HTML_GROUP_ITEM:'<tr>\n <td><div class="tui-chart-legend-rect {{ chartType }}" style="{{ cssText }}"></div></td>\n <td>{{ legend }}</td>\n <td class="tui-chart-tooltip-value">{{ value }} {{ suffix }}</td>\n </tr>',GROUP_CSS_TEXT:"background-color:{{ color }}",HTML_MAP_CHART_DEFAULT_TEMPLATE:'<div class="tui-chart-default-tooltip">\n <div class="tui-chart-tooltip-body">\n <span class="tui-chart-legend-rect {{ chartType }}" style="{{ cssText }}"></span>\n <span>{{ name }}</span>\n <span class="tui-chart-tooltip-value">{{ value }}{{ suffix }}</span>\n </div>\n </div>',HTML_HEATMAP_TEMPLATE:'<div class="tui-chart-default-tooltip">\n <div class="tui-chart-tooltip-head {{ categoryVisible }}">{{ category }}</div>\n <div class="tui-chart-tooltip-body">\n <span class="tui-chart-legend-rect {{ chartType }}" style="{{ cssText }}"></span>\n <span>{{ label }}{{ suffix }}</span>\n </div>\n </div>',HTML_BOXPLOT_TEMPLATE:'<div class="tui-chart-default-tooltip">\n <div class="tui-chart-tooltip-head {{ categoryVisible }}">{{ category }}</div>\n <table class="tui-chart-tooltip-body">\n <tr>\n <td colspan="2">\n <span class="tui-chart-legend-rect {{ chartType }}" style="{{ cssText }}"></span>\n {{ legend }}\n </td>\n </tr>\n <tr>\n <td>Maximum: </td>\n <td class="tui-chart-tooltip-value">{{ maxLabel }} {{ suffix }}</td>\n </tr>\n <tr>\n <td>Upper Quartile: </td>\n <td class="tui-chart-tooltip-value">{{ uqLabel }} {{ suffix }}</td>\n </tr>\n <tr>\n <td>Median: </td>\n <td class="tui-chart-tooltip-value">{{ medianLabel }} {{ suffix }}</td>\n </tr>\n <tr>\n <td>Lower Quartile: </td>\n <td class="tui-chart-tooltip-value">{{ lqLabel }} {{ suffix }}</td>\n </tr>\n <tr>\n <td>Minimum: </td>\n <td class="tui-chart-tooltip-value">{{ minLabel }} {{ suffix }}</td>\n </tr>\n </table>\n </div>',HTML_BOXPLOT_OUTLIER:'<div class="tui-chart-default-tooltip">\n <div class="tui-chart-tooltip-head {{ categoryVisible }}">{{ category }}</div>\n <div class="tui-chart-tooltip-body">\n <span>{{ legend }}</span>\n </div>\n <div class="tui-chart-tooltip-body">\n <span>Outlier: </span>\n <span class="tui-chart-tooltip-value">{{ label }} {{ suffix }}</span>\n </div>\n </div>',HTML_BULLET_TEMPLATE:'<div class="tui-chart-default-tooltip">\n <div class="tui-chart-tooltip-body {{ categoryVisible }}">\n <span class="tui-chart-legend-rect {{ chartType }}" style="{{ cssText }}"></span>\n <span>{{ category }}</span>\n <span class="tui-chart-tooltip-value">{{ label }} {{ suffix }}</span>\n </div>\n </div>'};e["default"]={tplDefault:r["default"].template(a.HTML_DEFAULT_TEMPLATE),tplPieChart:r["default"].template(a.HTML_PIE_TEMPLATE),tplCoordinatetypeChart:r["default"].template(a.HTML_COORDINATE_TYPE_CHART_TEMPLATE),tplGroup:r["default"].template(a.HTML_GROUP),tplGroupType:r["default"].template(a.HTML_GROUP_TYPE),tplGroupItem:r["default"].template(a.HTML_GROUP_ITEM),tplGroupCssText:r["default"].template(a.GROUP_CSS_TEXT),tplMapChartDefault:r["default"].template(a.HTML_MAP_CHART_DEFAULT_TEMPLATE),tplHeatmapChart:r["default"].template(a.HTML_HEATMAP_TEMPLATE),tplBoxplotChartDefault:r["default"].template(a.HTML_BOXPLOT_TEMPLATE),tplBoxplotChartOutlier:r["default"].template(a.HTML_BOXPLOT_OUTLIER),tplBulletChartDefault:r["default"].template(a.HTML_BULLET_TEMPLATE)}},function(t,e){"use strict";e.__esModule=!0;var i=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e["default"]={template:function(t){return function(e){var n=t;return Object.entries(e).forEach(function(t){var e=i(t,2),o=e[0],r=e[1],a=new RegExp("{{\\s*"+o+"\\s*}}","g");n=n.replace(a,String(r).replace("$",""))}),n}}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new O(t)}e.__esModule=!0,e["default"]=s;var u=i(137),l=n(u),h=i(189),c=n(h),p=i(221),d=n(p),f=i(226),m=n(f),g=i(154),y=n(g),_=i(155),v=n(_),T=i(148),b=n(T),x=i(184),A=n(x),D=i(223),E=n(D),S=i(164),C=n(S),L=y["default"].TOOLTIP_DEFAULT_GROUP_ALIGN_OPTION,M=y["default"].TOOLTIP_DEFAULT_GROUP_HORIZONTAL_ALIGN_OPTION,P=y["default"].SERIES_EXPAND_SIZE,w=y["default"].PUBLIC_EVENT_PREFIX,O=function(t){function e(i){o(this,e);var n=r(this,t.call(this,i));return n.prevIndex=null,n.tickInterval=null,n.isBullet=C["default"].isBulletChart(i.chartType),n}return a(e,t),e.prototype._makeTooltipHtml=function(t,e,i,n){var o=E["default"].tplGroupItem,r=E["default"].tplGroupCssText,a=C["default"].isBarChart(this.chartType),s=C["default"].isBarTypeChart(this.chartType),u=C["default"].isBoxplotChart(this.chartType),l=this.dataProcessor.options.series,h=(s||u)&&l&&l.colorByPoint,c=!a&&l&&l.stack,p=this._makeColors(this.theme,n),d=void 0,f=e.map(function(t,e){var i=t.type,n="data"!==i&&d!==i,a="";return d=i,t.value?(n&&(a=E["default"].tplGroupType({type:i})),a+=o(Object.assign({cssText:r({color:h?"#aaa":p[e]})},t))):null});return c&&f.reverse(),E["default"].tplGroup({category:t,items:f.join("")})},e.prototype._setDefaultTooltipPositionOption=function(){this.options.align||(this.isVertical?this.options.align=L:this.options.align=M)},e.prototype.render=function(t){var e=d["default"].prototype.render.call(this,t),i=this.dimensionMap.chart,n=this.layout;return t.checkedLegends&&(this.theme=this._updateLegendTheme(t.checkedLegends)),this.positionModel=new m["default"](i,n,this.isVertical,this.options),e},e.prototype.rerender=function(t){d["default"].prototype.rerender.call(this,t),this.prevIndex=null,t.checkedLegends&&(this.theme=this._updateLegendTheme(t.checkedLegends))},e.prototype.zoom=function(){this.prevIndex=null,this.tickInterval=null,d["default"].prototype.zoom.call(this)},e.prototype._updateLegendTheme=function(t){var e=this,i=[],n=Object.keys(this.originalTheme);return n.forEach(function(n){var o=e.originalTheme[n].colors;o.forEach(function(e,o){var r=t[n]||t;r[o]&&i.push(e)})}),{colors:i}},e.prototype.makeTooltipData=function(){var t=this,e=this.dataProcessor.getCategoryCount(this.isVertical);return this.dataProcessor.getSeriesGroups().map(function(i,n){var o=i.map(function(t){return{type:t.type||"data",label:t.tooltipLabel||t.label}});return{category:t.dataProcessor.makeTooltipCategory(n,e-n,t.isVertical),values:o}})},e.prototype._makeColors=function(t,e){var i=0,n=this.dataProcessor.getLegendData(),o=void 0,r=void 0;if(this.isBullet)return this.dataProcessor.getGraphColors()[e];if(t.colors)return t.colors;var a=A["default"].series.colors.slice(0,n.length);return(0,c["default"])(n,"chartType").map(function(e){r!==e&&(o=t[e]?t[e].colors:a,i=0),r=e;var n=o[i];return i+=1,n})},e.prototype._makeItemRenderingData=function(t,e){var i=this,n=this.dataProcessor,o=this.suffix,r=this._makeColors(this.theme,e);return t.map(function(t,a){var s={value:t.label,type:t.type,suffix:o,legend:"",color:r[a]},u=void 0;return i.isBullet?u=n.getLegendItem(e):(u=n.getLegendItem(a),s.legend=u.label),s.chartType=u.chartType,s})},e.prototype._makeGroupTooltipHtml=function(t){var e=this.data[t],i="";if(e){var n=this._makeItemRenderingData(e.values,t);i=this.templateFunc(e.category,n,this.getRawCategory(t),t)}return i},e.prototype._getTooltipSectorElement=function(){if(!this.groupTooltipSector){var t=this.groupTooltipSector=v["default"].create("DIV","tui-chart-group-tooltip-sector");v["default"].append(this.tooltipContainer,t)}return this.groupTooltipSector},e.prototype._makeVerticalTooltipSectorBound=function(t,e,i){var n=void 0;return n=i?1:e.end-e.start,{dimension:{width:n,height:t},position:{left:e.start+this.tickInterval/2,top:P}}},e.prototype._makeHorizontalTooltipSectorBound=function(t,e){return{dimension:{width:t,height:e.end-e.start},position:{left:P,top:e.start}}},e.prototype._makeTooltipSectorBound=function(t,e,i,n){return i?this._makeVerticalTooltipSectorBound(t,e,n):this._makeHorizontalTooltipSectorBound(t,e)},e.prototype._showTooltipSector=function(t,e,i,n,o){var r=this._getTooltipSectorElement(),a=e.start===e.end,s=this._makeTooltipSectorBound(t,e,i,a);a?this.eventBus.fire("showGroupTooltipLine",s):(b["default"].renderDimension(r,s.dimension),b["default"].renderPosition(r,s.position),v["default"].addClass(r,"show")),o&&(n-=1),this.eventBus.fire("showGroupAnimation",n)},e.prototype._hideTooltipSector=function(t){var e=this._getTooltipSectorElement();v["default"].hasClass(e,"show")?v["default"].removeClass(e,"show"):this.eventBus.fire("hideGroupTooltipLine"),this.eventBus.fire("hideGroupAnimation",t),this.eventBus.fire("hideGroupTooltipLine")},e.prototype._showTooltip=function(t,e,i){(0,l["default"])(this.prevIndex)||this.eventBus.fire("hideGroupAnimation",this.prevIndex),(0,l["default"])(this.tickInterval)&&(this.tickInterval=e.tickInterval),t.innerHTML=this._makeGroupTooltipHtml(e.index),this._fireBeforeShowTooltipPublicEvent(e.index,e.range,e.silent),document.getElementsByClassName&&this.makeLineLegendIcon(t.querySelectorAll(".tui-chart-legend-rect.line")),v["default"].addClass(t,"show"),this._showTooltipSector(e.size,e.range,e.isVertical,e.index,e.isMoving);var n=this.getTooltipDimension(t),o=this.positionModel.calculatePosition(n,e.range);this._moveToPosition(t,o,i),this._fireAfterShowTooltipPublicEvent(e.index,e.range,{element:t,position:o},e.silent),this.prevIndex=e.index},e.prototype._fireBeforeShowTooltipPublicEvent=function(t,e,i){i||this.eventBus.fire(w+"beforeShowTooltip",{chartType:this.chartType,index:t,range:e})},e.prototype._fireAfterShowTooltipPublicEvent=function(t,e,i,n){n||this.eventBus.fire(w+"afterShowTooltip",Object.assign({chartType:this.chartType,index:t,range:e},i))},e.prototype._hideTooltip=function(t,e,i){var n=!(!i||!i.silent);this.prevIndex=null,this._fireBeforeHideTooltipPublicEvent(e,n),this._hideTooltipSector(e),v["default"].removeClass(t,"show"),t.style.cssText=""},e.prototype._fireBeforeHideTooltipPublicEvent=function(t,e){e||this.eventBus.fire(w+"beforeHideTooltip",{chartType:this.chartType,index:t})},e}(d["default"]);s.componentType="tooltip",s.GroupTooltip=O},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(154),a=n(r),s=function(){function t(e,i,n,r){o(this,t),this.chartDimension=e,this.areaBound=i,this.isVertical=n,this.options=r,this.positions={},this._setData(e,i,n,r)}return t.prototype._getHorizontalDirection=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=void 0;return e=t.indexOf("left")>-1?a["default"].TOOLTIP_DIRECTION_BACKWARD:t.indexOf("center")>-1?a["default"].TOOLTIP_DIRECTION_CENTER:a["default"].TOOLTIP_DIRECTION_FORWARD},t.prototype._makeVerticalData=function(t,e,i){var n=this._getHorizontalDirection(i);return{positionType:"left",sizeType:"width",direction:n,areaPosition:e.position.left,areaSize:e.dimension.width,chartSize:t.width,basePosition:a["default"].SERIES_EXPAND_SIZE}},t.prototype._getVerticalDirection=function(t){var e=void 0;return t=t||"",e=t.indexOf("top")>-1?a["default"].TOOLTIP_DIRECTION_BACKWARD:t.indexOf("bottom")>-1?a["default"].TOOLTIP_DIRECTION_FORWARD:a["default"].TOOLTIP_DIRECTION_CENTER},t.prototype._makeHorizontalData=function(t,e,i){var n=this._getVerticalDirection(i);return{positionType:"top",sizeType:"height",direction:n,areaPosition:e.position.top,areaSize:e.dimension.height,chartSize:t.height,basePosition:a["default"].SERIES_EXPAND_SIZE}},t.prototype._setData=function(t,e,i,n){var o=this._makeVerticalData(t,e,n.align),r=this._makeHorizontalData(t,e,n.align),a=n.offset||{};i?(this.mainData=o,this.subData=r):(this.mainData=r,this.subData=o),this.positionOption={},this.positionOption.left=a.x||0,this.positionOption.top=a.y||0,this.positions={}},t.prototype._calculateMainPositionValue=function(t,e,i){var n=e.start===e.end,o=9,r=5,s=n?o:r,u=i.basePosition;return u+=i.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?e.end+s:i.direction===a["default"].TOOLTIP_DIRECTION_BACKWARD?e.start-t-s:n?e.start-t/2:e.start+(e.end-e.start-t)/2},t.prototype._calculateSubPositionValue=function(t,e){var i=e.areaSize/2,n=void 0;return n=e.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?i+e.basePosition:e.direction===a["default"].TOOLTIP_DIRECTION_BACKWARD?i-t+e.basePosition:i-t/2+e.basePosition},t.prototype._makePositionValueDiff=function(t,e,i){return t+i.areaPosition+e-i.chartSize},t.prototype._adjustBackwardPositionValue=function(t,e,i,n){var o=void 0;return t<-n.areaPosition&&(o=this._calculateMainPositionValue(i,e,{direction:a["default"].TOOLTIP_DIRECTION_FORWARD,basePosition:n.basePosition}),t=this._makePositionValueDiff(o,i,n)>0?-n.areaPosition:o),t},t.prototype._adjustForwardPositionValue=function(t,e,i,n){var o=this._makePositionValueDiff(t,i,n);if(o>0){var r=this._calculateMainPositionValue(i,e,{direction:a["default"].TOOLTIP_DIRECTION_BACKWARD,basePosition:n.basePosition});r<-n.areaPosition?t-=o:t=r}return t},t.prototype._adjustMainPositionValue=function(t,e,i,n){return n.direction===a["default"].TOOLTIP_DIRECTION_BACKWARD?t=this._adjustBackwardPositionValue(t,e,i,n):n.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?t=this._adjustForwardPositionValue(t,e,i,n):(t=Math.max(t,-n.areaPosition),t=Math.min(t,n.chartSize-n.areaPosition-i)),t},t.prototype._adjustSubPositionValue=function(t,e,i){return t=i.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?Math.min(t,i.chartSize-i.areaPosition-e):Math.max(t,-i.areaPosition)},t.prototype._makeCachingKey=function(t){var e=t.start,i=t.end;return e+"-"+i},t.prototype._addPositionOptionValue=function(t,e){return t+this.positionOption[e]},t.prototype._makeMainPositionValue=function(t,e,i){var n=this._calculateMainPositionValue(t[i.sizeType],e,i);return n=this._addPositionOptionValue(n,i.positionType),n=this._adjustMainPositionValue(n,e,t[i.sizeType],i)},t.prototype._makeSubPositionValue=function(t,e){var i=this._calculateSubPositionValue(t[e.sizeType],e);return i=this._addPositionOptionValue(i,e.positionType),i=this._adjustSubPositionValue(i,t[e.sizeType],e)},t.prototype.calculatePosition=function(t,e){var i=this._makeCachingKey(e),n=this.mainData,o=this.subData,r=this.positions[i];return r||(r={},r[n.positionType]=this._makeMainPositionValue(t,e,n),r[o.positionType]=this._makeSubPositionValue(t,o),this.positions[i]=r),r},t.prototype.updateOptions=function(t){this.options=t,this._setData(this.chartDimension,this.areaBound,this.isVertical,t)},t.prototype.updateBound=function(t){this.areaBound=t,this._setData(this.chartDimension,t,this.isVertical,this.options)},t}();e["default"]=s},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new g(t)}e.__esModule=!0,e["default"]=s;var u=i(154),l=n(u),h=i(221),c=n(h),p=i(222),d=n(p),f=i(223),m=n(f),g=function(t){function e(i){o(this,e);var n=r(this,t.call(this,i));return n.mapModel=i.mapModel,n.colorSpectrum=i.colorSpectrum,n}return a(e,t),e.prototype._makeTooltipHtml=function(t){return m["default"].tplMapChartDefault(t)},e.prototype._makeSingleTooltipHtml=function(t,e){var i=this.mapModel.getDatum(e.index),n=this.options.suffix?" "+this.options.suffix:"",o=this.colorSpectrum.getColor(i.ratio);return this.templateFunc({name:i.name||i.code,value:i.label,suffix:n,cssText:"background-color: "+o,color:o})},e.prototype._makeShowTooltipParams=function(t,e){var i=this.mapModel.getDatum(t.index),n=Object.assign({chartType:this.chartType,code:i.code,name:i.name,value:i.label,index:t.index},e);return n},e.prototype._setDefaultTooltipPositionOption=function(){this.options.align||(this.options.align=l["default"].TOOLTIP_DEFAULT_ALIGN_OPTION)},e}(c["default"]);d["default"].mixin(g),s.componentType="tooltip"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new T(t)}e.__esModule=!0,e["default"]=s;var u=i(229),l=n(u),h=i(154),c=n(h),p=i(211),d=n(p),f=i(155),m=n(f),g=i(148),y=n(g),_=i(153),v=n(_),T=function(t){function e(i){o(this,e);var n=r(this,t.call(this));return n.chartType=i.chartType,n.eventBus=i.eventBus,n.isDown=!1,n.drawingType=c["default"].COMPONENT_TYPE_DOM,n}return a(e,t),e.prototype._renderMouseEventDetectorArea=function(t){y["default"].renderDimension(t,this.layout.dimension),y["default"].renderPosition(t,this.layout.position)},e.prototype._onClick=function(){},e.prototype._onMousedown=function(t){this.isDown=!0,this.eventBus.fire("dragStartMapSeries",{left:t.clientX,top:t.clientY})},e.prototype._dragEnd=function(){this.isDrag=!1,m["default"].removeClass(this.mouseEventDetectorContainer,"drag"),this.eventBus.fire("dragEndMapSeries")},e.prototype._onMouseup=function(t){this.isDown=!1,this.isDrag?this._dragEnd():this._onMouseEvent("click",t),this.isMove=!1},e.prototype._onMousemove=function(t){this.isDown?(this.isDrag||m["default"].addClass(this.mouseEventDetectorContainer,"drag"),this.isDrag=!0,this.eventBus.fire("dragMapSeries",{left:t.clientX,top:t.clientY})):(this.isMove=!0,this._onMouseEvent("move",t))},e.prototype._onMouseout=function(t){this.isDrag?this._dragEnd():this._onMouseEvent("move",t),this.isDown=!1},e.prototype._onMousewheel=function(t){var e=t.wheelDelta||t.detail*c["default"].FF_WHEELDELTA_ADJUSTING_VALUE;return this.eventBus.fire("wheel",e,{left:t.clientX,top:t.clientY}),t.preventDefault&&t.preventDefault(),!1},e.prototype.attachEvent=function(t){l["default"].prototype.attachEvent.call(this,t),v["default"].firefox?d["default"].on(t,"DOMMouseScroll",this._onMousewheel,this):d["default"].on(t,"mousewheel",this._onMousewheel,this)},e}(l["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(145),a=n(r),s=i(198),u=n(s),l=i(230),h=n(l),c=i(231),p=n(c),d=i(154),f=n(d),m=i(211),g=n(m),y=i(164),_=n(y),v=i(155),T=n(v),b=i(148),x=n(b),A=function(){function t(e){if(o(this,t),e){this.chartType=e.chartType,this.chartTypes=e.chartTypes,this.isVertical=e.isVertical,this.dataProcessor=e.dataProcessor,this.allowSelect=e.allowSelect,this.eventBus=e.eventBus,this.layout=null,this.selectedData=null;var i=_["default"].isLineTypeChart(this.chartType,this.chartTypes);this.expandSize=i?f["default"].SERIES_EXPAND_SIZE:0,this.seriesItemBoundsData=[],this.seriesCount=_["default"].isComboChart(this.chartType)?2:1,this._attachToEventBus(),this.drawingType=f["default"].COMPONENT_TYPE_DOM}}return t.prototype._attachToEventBus=function(){this.eventBus.on("receiveSeriesData",this.onReceiveSeriesData,this)},t.prototype._getRenderingBound=function(){var t=x["default"].expandBound(this.layout);return t},t.prototype._renderMouseEventDetectorArea=function(t,e){this.dimension=this.layout.dimension;var i=new h["default"](this.layout,e,this.chartType,this.isVertical,this.chartTypes);this.tickBaseCoordinateModel=i;var n=this._getRenderingBound(),o=n.dimension,r=n.position;x["default"].renderDimension(t,o),x["default"].renderPosition(t,r)},t.prototype._setDataForRendering=function(t){this.layout=t.layout},t.prototype._pickTickCount=function(t){return this.isVertical?t.xAxis.eventTickCount||t.xAxis.tickCount:t.yAxis.tickCount},t.prototype.render=function(t){this.positionMap=t.positionMap;var e=t.paper,i=void 0;return T["default"].addClass(e,"tui-chart-series-custom-event-area"),e.style.backgroundColor="aliceblue",t.axisDataMap.xAxis&&(i=this._pickTickCount(t.axisDataMap)),this._setDataForRendering(t),this._renderMouseEventDetectorArea(e,i),
this.attachEvent(e),this.mouseEventDetectorContainer=e,this.transparentChild=this._createTransparentChild(),T["default"].append(e,this.transparentChild),e},t.prototype._createTransparentChild=function(){var t=document.createElement("DIV"),e=t.style;return e.backgroundColor="#fff",e.height=x["default"].getStyle(this.mouseEventDetectorContainer).height,x["default"].setOpacity(t,0),t},t.prototype._calculateLayerPosition=function(t,e,i){var n=this.mouseEventDetectorContainer.getBoundingClientRect(),o=n.left,r=n.right,s=n.top,u=this.positionMap.series,l=this.expandSize,h={};if(i=!!(0,a["default"])(i)||i){var c=r-l,p=o+l;t=Math.min(Math.max(t,p),c)}return h.x=t-o+u.left-f["default"].CHART_PADDING,(0,a["default"])(e)||(h.y=e-s+u.top-f["default"].CHART_PADDING),h},t.prototype.onReceiveSeriesData=function(t){var e=this.seriesCount,i=this.seriesItemBoundsData;i.length===e&&(i=[]),i.push(t),i.length===e&&(this.boundsBaseCoordinateModel=new p["default"](i))},t.prototype.rerender=function(t){var e=void 0;this.positionMap=t.positionMap,t.axisDataMap.xAxis&&(e=this._pickTickCount(t.axisDataMap)),this.selectedData=null,this._setDataForRendering(t),this._renderMouseEventDetectorArea(this.mouseEventDetectorContainer,e),this.transparentChild.style.height=x["default"].getStyle(this.mouseEventDetectorContainer).height},t.prototype.resize=function(t){this.containerBound=null,this.rerender(t)},t.prototype._isChangedSelectData=function(t,e){return!t||!e||t.chartType!==e.chartType||t.indexes.groupIndex!==e.indexes.groupIndex||t.indexes.index!==e.indexes.index},t.prototype._findDataFromBoundsCoordinateModel=function(t){var e=t.x,i=t.y,n=void 0;return n=_["default"].isTreemapChart(this.chartType)?0:this.tickBaseCoordinateModel.findIndex(this.isVertical?e:i),this.boundsBaseCoordinateModel.findData(n,e,i)},t.prototype._findData=function(t,e){var i=this._calculateLayerPosition(t,e);return this._findDataFromBoundsCoordinateModel(i)},t.prototype._showTooltip=function(){},t.prototype._hideTooltip=function(){},t.prototype._onMouseEvent=function(t,e){T["default"].addClass(this.mouseEventDetectorContainer,"hide"),this.eventBus.fire(t+"Series",{left:e.clientX,top:e.clientY}),T["default"].removeClass(this.mouseEventDetectorContainer,"hide")},t.prototype.unselectSeries=function(){this.selectedData&&(this.eventBus.fire("unselectSeries",this.selectedData),this.selectedData=null)},t.prototype._onClick=function(t){var e=this._findData(t.clientX,t.clientY);this.selectSeries(e)},t.prototype.selectSeries=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._isChangedSelectData(this.selectedData,t)?t&&(this.selectedData&&this.unselectSeries(),this.eventBus.fire("selectSeries",t,e),this.allowSelect&&(this.selectedData=t)):this.unselectSeries()},t.prototype._onMousedown=function(){},t.prototype._onMouseup=function(){},t.prototype._onMousemove=function(){},t.prototype._onMouseout=function(){},t.prototype.attachEvent=function(t){g["default"].on(t,{click:this._onClick,mousedown:this._onMousedown,mouseup:this._onMouseup,mousemove:this._onMousemove,mouseout:this._onMouseout},this)},t.prototype.findDataByIndexes=function(){},t.prototype._setPrevClientPosition=function(t){t?this.prevClientPosition={x:t.clientX,y:t.clientY}:this.prevClientPosition=null},t}();u["default"].mixin(A),e["default"]=A},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(144),a=n(r),s=i(164),u=n(s),l=i(158),h=n(l),c=function(){function t(e,i,n,r,a){o(this,t),this.isLineType=u["default"].isLineTypeChart(n,a),this.data=this._makeData(e,i,r)}return t.prototype._getRanges=function(t,e,i){var n=e,o=i/2;return(0,a["default"])(0,t).map(function(){var t={min:n-o,max:n+o};return n+=i,t})},t.prototype._makeLineTypeData=function(t,e,i){var n=(t+1)/(e-1),o=this._getRanges(e,i||0,n);return o[e-1].max-=1,o},t.prototype._makeNormalData=function(t,e,i){var n=e-1,o=t/n,r=i||0;return(0,a["default"])(0,n).map(function(){var e=h["default"].min([t+r,o+r]),i={min:r,max:e};return r=e,i})},t.prototype._makeData=function(t,e,i){var n=i?"width":"height",o=i?"left":"top";return this.isLineType?this._makeLineTypeData(t.dimension[n],e,t.position[o]):this._makeNormalData(t.dimension[n],e,t.position[o])},t.prototype.findIndex=function(t){var e=-1;return this.data.forEach(function(i,n){return!(i.min<t&&i.max>=t)||(e=n,!1)}),e},t.prototype.getLastIndex=function(){return this.data.length-1},t.prototype.makeRange=function(t,e){var i=this.data[t],n=void 0;return this.isLineType?(n=parseInt(i.max-(i.max-i.min)/2,10),{start:n,end:n}):{start:i.min-(e||0),end:i.max-(e||0)}},t}();e["default"]=c},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var a=i(150),s=n(a),u=i(154),l=n(u),h=i(164),c=n(h),p=i(158),d=n(p),f=function(){function t(e){r(this,t),this.data=this._makeData(e)}return t.prototype._makeTooltipData=function(t,e,i,n){return{sendData:{chartType:t,indexes:e,allowNegativeTooltip:i,bound:n},bound:{left:n.left,top:n.top,right:n.left+n.width,bottom:n.top+n.height}}},t.prototype._makeRectTypePositionData=function(t,e){var i=this,n=!c["default"].isBoxTypeChart(e);return t.map(function(t,o){return t.map(function(t,r){return t?i._makeTooltipData(e,{groupIndex:o,index:r},n,t.end||t):null})})},t.prototype._makeOutliersPositionDataForBoxplot=function(t,e,i){var n=this,r=!c["default"].isBoxTypeChart(e),a=[].concat(o(t));a.forEach(function(t,o){t.forEach(function(t,a){var s=void 0;t.outliers&&t.outliers.length&&(s=t.outliers.map(function(t,i){var s={top:t.top-3,left:t.left-3,width:6,height:6};return n._makeTooltipData(e,{groupIndex:o,index:a,outlierIndex:i},r,s)}),i[o]=i[o].concat(s))})})},t.prototype._makeDotTypePositionData=function(t,e){return t?d["default"].pivot(t).map(function(t,i){return t.map(function(t,n){return t?{sendData:{chartType:e,indexes:{groupIndex:i,index:n},bound:t},bound:{left:t.left-l["default"].DOT_RADIUS,top:t.top-l["default"].DOT_RADIUS,right:t.left+l["default"].DOT_RADIUS,bottom:t.top+l["default"].DOT_RADIUS}}:null})}):[]},t.prototype._joinData=function(t){var e=[];return t.forEach(function(t){t.forEach(function(t,i){var n=void 0;e[i]?(n=e[i].length,t.forEach(function(t){t&&(t.sendData.indexes.legendIndex=t.sendData.indexes.index+n)}),e[i]=e[i].concat(t)):e[i]=t})}),e},t.prototype._makeData=function(t){var e=this,i=t.map(function(t){var i=void 0;return i=c["default"].isLineTypeChart(t.chartType)?e._makeDotTypePositionData(t.data.groupPositions,t.chartType):e._makeRectTypePositionData(t.data.groupBounds,t.chartType),c["default"].isBoxplotChart(t.chartType)&&e._makeOutliersPositionDataForBoxplot(t.data.groupBounds,t.chartType,i),i});return this._joinData(i)},t.prototype._findCandidates=function(t,e,i){var n=this;return t.filter(function(t){var o=t&&t.bound;return!!o&&(o.top===o.bottom&&(o.top-=l["default"].SERIES_EXTRA_EVENT_AREA_FOR_ZERO,o.bottom+=l["default"].SERIES_EXTRA_EVENT_AREA_FOR_ZERO),o.left===o.right&&(o.left-=l["default"].SERIES_EXTRA_EVENT_AREA_FOR_ZERO,o.right+=l["default"].SERIES_EXTRA_EVENT_AREA_FOR_ZERO),n._isCandidateTarget(o,{layerX:e,layerY:i}))})},t.prototype._isCandidateTarget=function(t,e){var i=e.layerX,n=e.layerY,o=t.left<=i&&t.right>=i,r=t.top<=n&&t.bottom>=n;return o&&r},t.prototype.findData=function(t,e,i){var n=1e4,o=null;if(t>-1&&this.data[t]){var r=this._findCandidates(this.data[t],e,i);r.forEach(function(t){var e=Math.abs(i-t.bound.top);n>e&&(n=e,o=t.sendData)})}return o},t.prototype.findDataByIndexes=function(t){var e=this.data[t.index][t.seriesIndex].sendData;return(0,s["default"])(t.outlierIndex)?this._findOutlierDataByIndexes(t):e},t.prototype._findOutlierDataByIndexes=function(t){var e=null;return this.data[t.index].forEach(function(i){var n=i.sendData.indexes,o=n.index===t.seriesIndex&&n.outlierIndex===t.outlierIndex;return o&&(e=i.sendData),!o}),e},t}();e["default"]=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){var e=t.chartOptions,i=t.seriesTypes,n=e.chartType,o=e.series,r=o.zoomable,s=o.allowSelect,l=e.xAxis.pointOnColumn,c=void 0;return c=t.chartOptions.tooltip.grouped?p["default"]:a["default"].isMapChart(n)?g["default"]:a["default"].isBarTypeChart(n)||a["default"].isBoxplotChart(n)||a["default"].isHeatmapChart(n)||a["default"].isTreemapChart(n)||a["default"].isBulletChart(n)?f["default"]:a["default"].isCoordinateTypeChart(n)||a["default"].isPieChart(n)||a["default"].isPieDonutComboChart(n,i)?h["default"]:u["default"],t.chartType=n,t.chartTypes=i,t.zoomable=r,t.allowSelect=s,t.pointOnColumn=!!l,c(t)}e.__esModule=!0,e["default"]=o;var r=i(164),a=n(r),s=i(233),u=n(s),l=i(236),h=n(l),c=i(237),p=n(c),d=i(238),f=n(d),m=i(228),g=n(m);o.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new f(t)}e.__esModule=!0,e["default"]=s;var u=i(229),l=n(u),h=i(234),c=n(h),p=i(235),d=n(p),f=function(t){function e(i){o(this,e);var n=r(this,t.call(this,i));return n.prevFoundData=null,n.prevClientPosition=null,n.zoomable=i.zoomable,n.zoomable&&(Object.assign(n,c["default"]),n._initForZoom(i.zoomable)),n}return a(e,t),e.prototype.animateForAddingData=function(){if(this.prevClientPosition){var t=this._findData(this.prevClientPosition.x,this.prevClientPosition.y);if(t){var e=this.prevFoundData.indexes.groupIndex===t.indexes.groupIndex,i=this.prevFoundData&&e;this._showTooltip(t,i)}this.prevFoundData=t}},e.prototype.onReceiveSeriesData=function(t){var e=this.seriesCount;this.seriesItemBoundsData.length===e&&(this.seriesItemBoundsData=[]),this.seriesItemBoundsData.push(t),this.seriesItemBoundsData.length===e&&(this.dataModel=new d["default"](this.seriesItemBoundsData)),this.zoomable&&this._showTooltipAfterZoom()},e.prototype._findData=function(t,e){var i=this._calculateLayerPosition(t,e),n=this.dataProcessor.selectLegendIndex,o=this.dataProcessor.isCoordinateType();return this.dataModel.findData(i,n,{distanceLimit:this.dataModel.leftStepLength,isCoordinateTypeChart:o})},e.prototype._findDataForZoomable=function(t,e){var i=this._calculateLayerPosition(t,e);return this.dataModel.findData(i)},e.prototype._getFirstData=function(t){return this.dataModel.getFirstData(t)},e.prototype._getLastData=function(t){return this.dataModel.getLastData(t)},e.prototype._showTooltip=function(t){this.eventBus.fire("showTooltip",t),this.prevFoundData=t},e.prototype._hideTooltip=function(t){this.eventBus.fire("hideTooltip",this.prevFoundData,t),this.prevFoundData=null},e.prototype._onMousemove=function(t){var e=void 0;this._setPrevClientPosition(t);var i=this._findData(t.clientX,t.clientY);this.zoomable&&(e=this._isAfterDragMouseup()),!e&&this._isChangedSelectData(this.prevFoundData,i)&&(i?this._showTooltip(i):this.prevFoundData&&this._hideTooltip(),this.prevFoundData=i)},e.prototype._onMouseout=function(){this.prevFoundData&&this._hideTooltip(),this.prevClientPosition=null,this.prevFoundData=null},e.prototype.findDataByIndexes=function(t){return this.dataModel.findDataByIndexes(t)},e.prototype._setPrevClientPosition=function(t){t?this.prevClientPosition={x:t.clientX,y:t.clientY}:this.prevClientPosition=null},e}(l["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=i(137),a=n(r),s=i(229),u=n(s),l=i(154),h=n(l),c=i(155),p=n(c),d=i(164),f=n(d),m=i(158),g=n(m),y=i(148),_=n(y),v=i(211),T=n(v);e["default"]={_initForZoom:function(t){this.zoomable=t,this.dragStartIndexes=null,this.startClientPosition=null,this.startLayerX=null,this.dragSelectionElement=null,this.containerBound=null,this.isShowTooltipAfterZoom=!1,this.afterMouseup=!1,this.prevDistanceOfRange=null,this.reverseMove=null,this.resetZoomBtn=null},presetBeforeRerender:function(){this.resetZoomBtn&&(this.mouseEventDetectorContainer.removeChild(this.resetZoomBtn),this.resetZoomBtn=null),this._hideTooltip(),this.prevDistanceOfRange=null},_showTooltipAfterZoom:function(){var t=this.isShowTooltipAfterZoom,e=void 0;this.isShowTooltipAfterZoom=!1,t&&this.dragStartIndexes&&(e=this.reverseMove?this._getFirstData(this.dragStartIndexes.index):this._getLastData(this.dragEndIndexes.index),e&&this._showTooltip(e))},_updateDimensionForDragSelection:function(t){_["default"].renderDimension(t,{height:this.layout.dimension.height})},_renderDragSelection:function(){var t=p["default"].create("DIV","tui-chart-drag-selection");return this._updateDimensionForDragSelection(t),t},render:function(t){var e=u["default"].prototype.render.call(this,t),i=this._renderDragSelection();return p["default"].append(e,i),this.dragSelectionElement=i,e},resize:function(t){this.containerBound=null,u["default"].prototype.resize.call(this,t),this._updateDimensionForDragSelection(this.dragSelectionElement)},_onClick:function(){},_isAfterDragMouseup:function(){var t=this.afterMouseup;return t&&(this.afterMouseup=!1),t},_bindDragEvent:function(t){t.setCapture&&t.setCapture(),T["default"].on(document,"mousemove",this._onDrag,this),T["default"].off(this.mouseEventDetectorContainer,"mouseup",this._onMouseup,this),T["default"].on(document,"mouseup",this._onMouseupAfterDrag,this)},_unbindDragEvent:function(){this.downTarget&&this.downTarget.releaseCapture&&this.downTarget.releaseCapture(),T["default"].off(document,"mousemove",this._onDrag,this),T["default"].off(document,"mouseup",this._onMouseupAfterDrag,this),T["default"].on(this.mouseEventDetectorContainer,"mouseup",this._onMouseup,this)},_onMousedown:function(t){if(this.zoomable){var e=t.target||t.srcElement;this.startClientPosition={x:t.clientX,y:t.clientY},this.startLayerX=this._calculateLayerPosition(t.clientX).x,this.downTarget=e,this._bindDragEvent(e)}},_showDragSelection:function(t){var e=this.mouseEventDetectorContainer.getBoundingClientRect(),i=e.left,n=this._calculateLayerPosition(t).x,o=this.startClientPosition,r=i-(o.x-this.startLayerX),a=Math.min(n,this.startLayerX)-r,s=Math.abs(n-this.startLayerX),u=this.dragSelectionElement;u.style.left=a+"px",u.style.width=s+"px",p["default"].addClass(u,"show")},_hideDragSelection:function(){p["default"].removeClass(this.dragSelectionElement,"show")},_onDrag:function(t){var e=this.startClientPosition,i=t.target||t.srcElement;if(e){var n=this._findDataForZoomable(e.x,e.y);p["default"].hasClass(i,h["default"].CLASS_NAME_RESET_ZOOM_BTN)||((0,a["default"])(this.dragStartIndexes)?this.dragStartIndexes=n?n.indexes:{}:this._showDragSelection(t.clientX))}},_changeIndexToHaveMinimumIndexes:function(t){var e=o(t,2),i=e[0],n=e[1],r=n-i;return 0===r?0===i?n+=2:(i-=1,n+=1):1===r&&(0===i?n+=1:i-=1),{startIndex:i,endIndex:n}},_adjustIndexRange:function(t,e){var i=[t,e].sort(function(t,e){return t-e});return this._changeIndexToHaveMinimumIndexes(i)},_fireZoom:function(){this.dataProcessor.isLineCoordinateType()?this._fireZoomUsingValue(this.dragStartIndexes,this.dragEndIndexes):this._fireZoomUsingIndex(this.dragStartIndexes.groupIndex,this.dragEndIndexes.groupIndex)},_fireZoomUsingIndex:function(t,e){var i=t>e,n=this._adjustIndexRange(t,e),o=n.startIndex,r=n.endIndex,a=r-o;this.prevDistanceOfRange!==a&&(this.prevDistanceOfRange=a,this.reverseMove=i,this.eventBus.fire("zoom",[o,r]))},_adjustValueRange:function(t,e){var i=void 0,n=void 0,o=this.dataProcessor,r=o.integratedXAxisData,a=o.options.xAxis,s=f["default"].isDatetimeType(a.type);s?(i=g["default"].findIndexFromDateTypeArray(r,new Date(t)),n=g["default"].findIndexFromDateTypeArray(r,new Date(e))):(i=r.indexOf(t),n=r.indexOf(e));var u=[i,n].sort(function(t,e){return t-e}),l=this._changeIndexToHaveMinimumIndexes(u),h=l.startIndex,c=l.endIndex;return[r[h],r[c]]},_fireZoomUsingValue:function(t,e){var i=t.index,n=t.groupIndex,r=e.index,a=e.groupIndex,s=this.dataProcessor.rawData.series.line,u=o(s[i].data[n],1),l=u[0],h=o(s[r].data[a],1),c=h[0],p=this._adjustValueRange(l,c);this.eventBus.fire("zoom",p)},_setIsShowTooltipAfterZoomFlag:function(t,e){var i=this._calculateLayerPosition(t,e,!1).x,n=this._calculateLayerPosition(t,e).x;this.isShowTooltipAfterZoom=i===n},_onMouseupAfterDrag:function(t){var e=this._findDataForZoomable(t.clientX,t.clientY);if(this._unbindDragEvent(),(0,a["default"])(this.dragStartIndexes)){var i=t.target||t.srcElement;p["default"].hasClass(i,h["default"].CLASS_NAME_RESET_ZOOM_BTN)?(this._hideTooltip(),this.prevDistanceOfRange=null,this.eventBus.fire("resetZoom")):u["default"].prototype._onClick.call(this,t)}else this.dragStartIndexes&&e?(this.dragEndIndexes=e.indexes,this._setIsShowTooltipAfterZoomFlag(t.clientX,t.clientY),this._hideDragSelection(),this._fireZoom()):(this._setIsShowTooltipAfterZoomFlag(t.clientX,t.clientY),this._hideDragSelection());this.startClientPosition=null,this.dragStartIndexes=null,this.startLayerX=null,this.afterMouseup=!0},_renderResetZoomBtn:function(){var t=p["default"].create("DIV",h["default"].CLASS_NAME_RESET_ZOOM_BTN);return t},zoom:function(t){this.prevFoundData=null,this.rerender(t),this._updateDimensionForDragSelection(this.dragSelectionElement),this.resetZoomBtn?t.isResetZoom&&(this.mouseEventDetectorContainer.removeChild(this.resetZoomBtn),this.resetZoomBtn=null):(this.resetZoomBtn=this._renderResetZoomBtn(),p["default"].append(this.mouseEventDetectorContainer,this.resetZoomBtn))}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var a=i(164),s=n(a),u=i(158),l=n(u),h=i(137),c=n(h),p=function(){function t(e){r(this,t),this.data=this._makeData(e),this.lastGroupIndex=0}return t.prototype._makeData=function(t){var e,i,n=this,r=t.length,a=0,u=t.map(function(t,e){var i=t.chartType,o=t.data,u=o.groupPositions||o.groupBounds;(s["default"].isLineTypeChart(i)||s["default"].isRadialChart(i))&&(u=l["default"].pivot(u)),a=Math.max(u.length-1,a);var h=u.length>1&&u[1][0]&&u[0][0];return n.leftStepLength=h?u[1][0].left-u[0][0].left:0,u.map(function(t,n){return t.map(function(t,o){var a=null;return t&&(a={chartType:i,indexes:{groupIndex:n,index:o},bound:t}),r>1&&(a.indexes.legendIndex=e),a})})});return u=(e=[]).concat.apply(e,o(u)),this.lastGroupIndex=a,(i=[]).concat.apply(i,o(u)).filter(function(t){return!!t})},t.prototype.findData=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.distanceLimit,o=i.isCoordinateTypeChart,r=n&&n<this.leftStepLength,a=o||r;return a?this._findDataForCoordinateDistance(t,n,e):this._findDataForFirstXPosition(t,e)},t.prototype._findDataForFirstXPosition=function(t,e){var i=this.data.reduce(function(e,i){var n=Math.abs(t.x-i.bound.left);return n<=e.xMin&&(e.xMin=n,e.xMinValue=i.bound.left),e},{xMin:Number.MAX_VALUE,xMinValue:0}),n=i.xMinValue,o=this.data.reduce(function(i,o){var r=Math.abs(t.y-o.bound.top),a={};return o.bound.left!==n?a=i:(0,c["default"])(e)||e!==o.indexes.index?r<=i.yMin?(a.yMin=r,a.findFound=o):a=i:(a.yMin=Number.MIN_VALUE,a.findFound=o),a},{yMin:Number.MAX_VALUE,findFound:null}),r=o.findFound;return r},t.prototype._findDataForCoordinateDistance=function(t,e,i){var n=1e5,o=void 0;return e=e||Number.MAX_VALUE,this.data.forEach(function(r){var a=t.x-r.bound.left,s=t.y-r.bound.top,u=Math.sqrt(Math.pow(a,2)+Math.pow(s,2));u>e||((0,c["default"])(i)||i===r.indexes.index)&&u<=n&&(n=u,o=r)}),o},t.prototype.findDataByIndexes=function(t){var e=t.index,i=t.seriesIndex,n=null;return this.data.forEach(function(t){return t.indexes.groupIndex===e&&t.indexes.index===i&&(n=t),!n}),n},t.prototype.getFirstData=function(t){var e={index:0,seriesIndex:t};return this.findDataByIndexes(e)},t.prototype.getLastData=function(t){var e={index:this.lastGroupIndex,seriesIndex:t};return this.findDataByIndexes(e)},t}();e["default"]=p},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new f(t)}e.__esModule=!0,e["default"]=s;var u=i(154),l=n(u),h=i(229),c=n(h),p=i(148),d=n(p),f=function(t){function e(i){o(this,e);var n=r(this,t.call(this));return n.chartType=i.chartType,n.drawingType=l["default"].COMPONENT_TYPE_DOM,n.eventBus=i.eventBus,n}return a(e,t),e.prototype._renderMouseEventDetectorArea=function(t){d["default"].renderDimension(t,this.layout.dimension),d["default"].renderPosition(t,this.layout.position)},e.prototype.onReceiveSeriesData=function(){},e.prototype._onClick=function(t){this._onMouseEvent("click",t)},e.prototype._onMousemove=function(t){this._onMouseEvent("move",t)},e.prototype._onMouseout=function(t){this._onMouseEvent("move",t)},e}(c["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new y(t)}e.__esModule=!0;var u=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e["default"]=s;var l=i(137),h=n(l),c=i(154),p=n(c),d=i(229),f=n(d),m=i(234),g=n(m),y=function(t){function e(i){o(this,e);var n=r(this,t.call(this,i));return n.prevIndex=null,n.zoomable=i.zoomable,n.sizeType=n.isVertical?"height":"width",n.pointOnColumn=i.pointOnColumn,n.zoomable&&(Object.assign(n,g["default"]),n._initForZoom(i.zoomable)),n}return a(e,t),e.prototype.initMouseEventDetectorData=function(t){f["default"].prototype.initMouseEventDetectorData.call(this,t),this.zoomable&&this._showTooltipAfterZoom()},e.prototype._findGroupData=function(t,e){var i=this._calculateLayerPosition(t,e,!0),n=void 0;return n=this.isVertical?i.x:i.y,{indexes:{groupIndex:this.tickBaseCoordinateModel.findIndex(n)}}},e.prototype._findDataForZoomable=function(t,e){return this._findGroupData(t,e)},e.prototype._getFirstData=function(){return{indexes:{groupIndex:0}}},e.prototype._getLastData=function(){return{indexes:{groupIndex:this.tickBaseCoordinateModel.getLastIndex()}}},e.prototype._isOuterPosition=function(t,e){var i=this.dimension,n=i.width,o=i.height,r=this.layout.position,a=r.top,s=r.left;return t<s||t>s+n||e<a||e>a+o},e.prototype._showTooltip=function(t,e){var i=t.indexes.groupIndex,n=(this.isVertical?this.layout.position.left:this.layout.position.top)-p["default"].CHART_PADDING,o=this.tickBaseCoordinateModel.data,r=o.length,a=this.pointOnColumn?r-1>i:r>i;if(a){var s=0;if(this.pointOnColumn){var l=u(o,1),h=l[0],c=h.min,d=h.max;s=d-c}this.eventBus.fire("showTooltip",{index:i,range:this.tickBaseCoordinateModel.makeRange(i,n),size:this.dimension[this.sizeType],isVertical:this.isVertical,isMoving:e,silent:t.silent,tickInterval:s}),this.prevIndex=i}},e.prototype._hideTooltip=function(t){this.eventBus.fire("hideTooltip",this.prevIndex,t),this.prevIndex=null},e.prototype._onMousemove=function(t){if(!this.zoomable||!this._isAfterDragMouseup()){var e=this._findGroupData(t.clientX,t.clientY),i=e.indexes.groupIndex;i===-1?this._onMouseout(t):this.prevIndex!==i&&this._showTooltip(e)}},e.prototype._onMouseout=function(t){var e=this._calculateLayerPosition(t.clientX,t.clientY,!1),i=e.x,n=e.y;this._isOuterPosition(i,n)&&!(0,h["default"])(this.prevIndex)&&this._hideTooltip()},e}(f["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new g(t)}e.__esModule=!0,e["default"]=s;var u=i(229),l=n(u),h=i(154),c=n(h),p=i(164),d=n(p),f=i(155),m=n(f),g=function(t){function e(){o(this,e);for(var i=arguments.length,n=Array(i),a=0;a<i;a++)n[a]=arguments[a];var s=r(this,t.call.apply(t,[this].concat(n)));return s.prevFoundData=null,s.zoomHistory=[-1],s.historyBackBtn=null,s}return a(e,t),e.prototype._attachToEventBus=function(){l["default"].prototype._attachToEventBus.call(this),this.eventBus.on("afterZoom",this.onAfterZoom,this)},e.prototype._showTooltip=function(t){this.eventBus.fire("showTooltip",t),this.prevFoundData=t},e.prototype._hideTooltip=function(t){this.eventBus.fire("hideTooltip",this.prevFoundData,t),this.prevFoundData=null,this.styleCursor(!1)},e.prototype.styleCursor=function(t){var e=this.mouseEventDetectorContainer;t?e.style.cursor="pointer":e.style.cursor="default"},e.prototype._onMousemove=function(t){var e=t.clientX,i=t.clientY,n=this._calculateLayerPosition(e,i),o=this._findDataFromBoundsCoordinateModel(n);if(this._isChangedSelectData(this.prevFoundData,o)&&(this.prevFoundData&&this._hideTooltip(),this.prevFoundData=o,o)){if(d["default"].isTreemapChart(this.chartType)){var r=this._getSeriesItemByIndexes(o.indexes);this.styleCursor(r.hasChild)}else d["default"].isBulletChart(this.chartType)&&(o.mousePosition={left:e,top:i});this._showTooltip(o)}},e.prototype._zoomHistoryBack=function(){var t=this.zoomHistory[this.zoomHistory.length-2];this.zoomHistory.pop(),this.eventBus.fire("zoom",t),1===this.zoomHistory.length&&(this.mouseEventDetectorContainer.removeChild(this.historyBackBtn),this.historyBackBtn=null)},e.prototype._getSeriesItemByIndexes=function(t){var e=this.dataProcessor.getSeriesDataModel(c["default"].CHART_TYPE_TREEMAP);return e.getSeriesItem(t.groupIndex,t.index,!0)},e.prototype._onClick=function(t){var e=t.target||t.srcElement;if(l["default"].prototype._onClick.call(this,t),d["default"].isTreemapChart(this.chartType)){if(m["default"].hasClass(e,c["default"].CLASS_NAME_RESET_ZOOM_BTN))return this._hideTooltip(),void this._zoomHistoryBack();var i=this._calculateLayerPosition(t.clientX,t.clientY),n=this._findDataFromBoundsCoordinateModel(i);if(n){var o=this._getSeriesItemByIndexes(n.indexes);if(!o.hasChild)return;this._hideTooltip(),this.eventBus.fire("zoom",n.indexes.index)}}},e.prototype._onMouseout=function(t){var e=t.clientX,i=t.clientY,n=this.mouseEventDetectorContainer.getBoundingClientRect(),o=n.left,r=n.right,a=n.top,s=n.bottom;o<=e&&a<=i&&r>=e&&s>=i||(this.prevFoundData&&this._hideTooltip(),this.prevFoundData=null)},e.prototype.onAfterZoom=function(t){this.historyBackBtn||(this.historyBackBtn=m["default"].create("DIV",c["default"].CLASS_NAME_RESET_ZOOM_BTN),m["default"].append(this.mouseEventDetectorContainer,this.historyBackBtn)),this.zoomHistory[this.zoomHistory.length-1]!==t&&this.zoomHistory.push(t)},e.prototype.findDataByIndexes=function(t){return this.boundsBaseCoordinateModel.findDataByIndexes(t)},e}(l["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.chartTheme,i=t.chartOptions.libType;return t.libType=i,t.chartType="bar",t.chartBackground=e.chart.background,new _(t)}e.__esModule=!0,e["default"]=s;var u=i(240),l=n(u),h=i(241),c=n(h),p=i(154),d=n(p),f=i(164),m=n(f),g=d["default"].OVERLAPPING_WIDTH,y=d["default"].TEXT_PADDING,_=function(t){function e(){return o(this,e),r(this,t.apply(this,arguments))}return a(e,t),e.prototype._makeBound=function(t,e,i,n,o){return{start:{top:i,left:n,width:0,height:e},end:{top:i,left:o,width:t,height:e}}},e.prototype._calculateAdditionalLeft=function(t){var e=0;return this.options.divided&&t>0&&(e=this.dimensionMap.yAxis.width+g),e},e.prototype._makeBarChartBound=function(t,e,i,n,o){var r=t.baseBarSize,a=t.basePosition,s=t.barSize,u=t.itemCount,l=t.groupSize,h=t.pointInterval,c=n.ratioDistance,p=n.value,d=n.startRatio,f=n.stack,m=r*c,g=this._calculateAdditionalLeft(p),y=r*d,_=a+y+g,v=f!==e.prevStack,T=s*u>l,b=T?h:s,x=void 0;if(!i||!this.options.diverging&&v){var A=i?this.dataProcessor.findStackIndex(f):o;e.top=e.baseTop+b*A,e.plusLeft=0,e.minusLeft=0}p>=0?(x=_+e.plusLeft,e.plusLeft+=m):(e.minusLeft-=m,x=_+e.minusLeft),e.prevStack=f;var D=e.top+h-s/2;return T||(D+=(h-s)/2*(u-1)),this._makeBound(m,s,D,_,x)},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=m["default"].isValidStackOption(this.options.stack),n=this.layout,o=n.dimension,r=o.width,a=o.height,s=n.position.top,u=this._makeBaseDataForMakingBound(a,r);return e.map(function(e,n){var o=n*u.groupSize+s,r={baseTop:o,top:o,plusLeft:0,minusLeft:0,prevStack:null},a=t._makeBarChartBound.bind(t,u,r,i);return e.map(a)})},e.prototype._calculateTopPositionOfSumLabel=function(t,e){return t.top+(t.height-e+y)/2},e}(l["default"]);
c["default"].mixin(_),s.componentType="series",s.BarChartSeries=_},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(140),a=n(r),s=i(214),u=n(s),l=i(146),h=n(l),c=i(137),p=n(c),d=i(154),f=n(d),m=i(155),g=n(m),y=i(164),_=n(y),v=i(148),T=n(v),b=i(182),x=n(b),A=i(143),D=n(A),E=f["default"].COMPONENT_TYPE_RAPHAEL,S=f["default"].PUBLIC_EVENT_PREFIX,C=f["default"].CLASS_NAME_SERIES_LABEL,L=function(){function t(e){o(this,t);var i=e.libType;this.className="tui-chart-series-area",this.chartType=e.chartType,this.seriesType=e.seriesType||e.chartType,this.componentType=e.componentType,this.dataProcessor=e.dataProcessor,this.eventBus=e.eventBus,this.chartBackground=e.chartBackground,this.options=e.options||{},this.orgTheme=this.theme=e.theme,this.graphRenderer=x["default"].get(i,e.chartType),this.seriesContainer=null,this.seriesLabelContainer=null,this.seriesData={},this.selectedLegendIndex=null,this.labelShowEffector=null,this.paper=null,this.limit=null,this.aligned=null,this.layout=null,this.dimensionMap=null,this.positionMap=null,this.axisDataMap=null,this.beforeAxisDataMap=null,this.drawingType=E,this.supportSeriesLable=!0,this._attachToEventBus()}return t.prototype.decorateLabel=function(t){var e=this.options,i=e.labelPrefix,n=void 0===i?"":i,o=e.labelSuffix,r=void 0===o?"":o,s=T["default"].addPrefixSuffix,u=T["default"].addPrefixSuffixItem,l=((0,a["default"])(t)?s:u).bind(T["default"]);return l(t,n,r)},t.prototype.presetForChangeData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.orgTheme;this.orgTheme=t,this.theme=t,"treemap"===this.chartType&&(this.boundMap=null)},t.prototype._attachToEventBus=function(){var t=function(){this.isInitRenderCompleted=!0,this.eventBus.off("load",t)}.bind(this);this.eventBus.on(S+"load",t),this.eventBus.on({selectLegend:this.onSelectLegend,selectSeries:this.onSelectSeries,unselectSeries:this.onUnselectSeries,hoverSeries:this.onHoverSeries,hoverOffSeries:this.onHoverOffSeries,showGroupAnimation:this.onShowGroupAnimation,hideGroupAnimation:this.onHideGroupAnimation},this),this.onShowTooltip&&this.eventBus.on("showTooltip",this.onShowTooltip,this),this.onShowGroupTooltipLine&&this.eventBus.on({showGroupTooltipLine:this.onShowGroupTooltipLine,hideGroupTooltipLine:this.onHideGroupTooltipLine},this),this.onClickSeries&&this.eventBus.on({clickSeries:this.onClickSeries,moveSeries:this.onMoveSeries},this)},t.prototype._getSeriesDataModel=function(){return this.dataProcessor.getSeriesDataModel(this.seriesType)},t.prototype._makeSeriesData=function(){},t.prototype.getSeriesData=function(){return this.seriesData},t.prototype._renderSeriesLabel=function(){},t.prototype._renderConnector=function(){},t.prototype._renderSeriesLabelArea=function(t){return this._renderSeriesLabel(t)},t.prototype._sendBoundsToMouseEventDetector=function(t){this.eventBus.fire("receiveSeriesData",{chartType:this.chartType,data:t})},t.prototype._renderSeriesArea=function(t,e){var i=this.dimensionMap.extendedSeries,n=this.seriesData=this._makeSeriesData();this._sendBoundsToMouseEventDetector(n),(this.hasDataForRendering(n)||"map"===this.chartType)&&(e&&(this.seriesSet=e(i,n,t)),_["default"].isShowLabel(this.options)&&this.supportSeriesLable&&(this.labelSet=this._renderSeriesLabelArea(t)),_["default"].isBarTypeChart(this.chartType)&&_["default"].isValidStackOption(this.options.stack)&&_["default"].isRenderConnector(this.options.stack.connector)&&(this.connectorSet=this._renderConnector(t,n,this.options.stack)))},t.prototype._makeParamsForGraphRendering=function(t,e){return Object.assign({dimension:t,position:this.layout.position,chartType:this.seriesType,theme:this.theme,options:this.options},e)},t.prototype._renderGraph=function(t,e,i){var n=this._makeParamsForGraphRendering(t,e);return this.graphRenderer.render(i,n)},t.prototype._setDataForRendering=function(t){this.paper=t.paper,this.limit=t.limitMap[this.chartType],t.axisDataMap&&t.axisDataMap.xAxis&&(this.aligned=t.axisDataMap.xAxis.aligned),this.layout=t.layout,this.dimensionMap=t.dimensionMap,this.positionMap=t.positionMap,this.axisDataMap=t.axisDataMap},t.prototype.render=function(t){if(this.paper=t.paper,this._setDataForRendering(t),this._clearSeriesContainer(),this.beforeAxisDataMap=this.axisDataMap,t.checkedLegends){var e=t.checkedLegends[this.seriesType];this.options.colorByPoint||(this.theme=this._getCheckedSeriesTheme(this.orgTheme,e))}this._renderSeriesArea(t.paper,this._renderGraph.bind(this)),this.paper.pushDownBackgroundToBottom&&this.paper.pushDownBackgroundToBottom()},t.prototype._getCheckedSeriesTheme=function(t,e){if(!e.length)return t;var i=JSON.parse(JSON.stringify(t));return i.colors=i.colors.filter(function(t,i){return e[i]}),i},t.prototype._clearSeriesContainer=function(){this.seriesSet&&this.seriesSet.remove&&(this.seriesSet.forEach(function(t){t.remove()},this),this.seriesSet.remove()),this.labelSet&&this.labelSet.remove&&(this.labelSet.forEach(function(t){t.remove()},this),this.labelSet.remove()),this.connectorSet&&this.connectorSet.remove&&(this.connectorSet.forEach(function(t){t.remove()},this),this.connectorSet.remove()),this.seriesData={}},t.prototype.rerender=function(t){var e=void 0;"map"===this.seriesType||this.dataProcessor.getGroupCount(this.seriesType)?(t.checkedLegends&&(e=t.checkedLegends[this.seriesType],this.theme=this._getCheckedSeriesTheme(this.orgTheme,e)),this._setDataForRendering(t),this._clearSeriesContainer(),this._renderSeriesArea(t.paper,this._renderGraph.bind(this)),this.labelShowEffector&&clearInterval(this.labelShowEffector.timerId),!e&&this.isInitRenderCompleted||this.animateComponent(!0),(0,p["default"])(this.selectedLegendIndex)||this.graphRenderer.selectLegend(this.selectedLegendIndex)):this._clearSeriesContainer()},t.prototype._isLabelVisible=function(){return!(!this.options.showLabel&&!this.options.showLegend)},t.prototype._resizeGraph=function(t,e){return this.graphRenderer.resize(Object.assign({dimension:this.dimensionMap.chart},e)),this.seriesSet},t.prototype.resize=function(t){this._clearSeriesContainer(),this._setDataForRendering(t),this._renderSeriesArea(t.paper,this._resizeGraph.bind(this)),this.rerender(t)},t.prototype._renderPosition=function(t,e){var i=T["default"].isOldBrowser()?1:0;T["default"].renderPosition(t,{top:e.top-i,left:e.left-2*i})},t.prototype._getLimitDistanceFromZeroPoint=function(t,e){var i=e.min,n=e.max,o=n-i,r=0,a=0;return i<=0&&n>=0?(r=(o+i)/o*t,a=(o-n)/o*t):i>0&&(r=t),{toMax:r,toMin:a}},t.prototype._findLabelElement=function(t){return g["default"].hasClass(t,C)?t:g["default"].findParentByClass(t,C)},t.prototype.onHoverSeries=function(t,e){e===this.chartType&&this.graphRenderer.showAnimation&&this.graphRenderer.showAnimation(t)},t.prototype.onHoverOffSeries=function(t,e){e===this.chartType&&this.graphRenderer.hideAnimation&&t&&this.graphRenderer.hideAnimation(t)},t.prototype.onShowGroupAnimation=function(t){this.graphRenderer.showGroupAnimation&&this.graphRenderer.showGroupAnimation(t)},t.prototype.onHideGroupAnimation=function(t){this.graphRenderer.hideGroupAnimation&&this.graphRenderer.hideGroupAnimation(t)},t.prototype.animateComponent=function(t){var e=this;this.graphRenderer.animate?(this.seriesSet&&this.graphRenderer.animate(this.animateSeriesLabelArea.bind(this,t),this.seriesSet),this.connectorSet&&this.graphRenderer.animate(this.animateSeriesConnector.bind(this,t),this.connectorSet)):(this.animateSeriesLabelArea(t),this.animateSeriesConnector()),setTimeout(function(){e.options.animationDuration=D["default"].getDefaultAnimationDuration(e.chartType)})},t.prototype._fireLoadEvent=function(t){t||this.eventBus.fire(S+"load")},t.prototype.animateSeriesLabelArea=function(t){return this._isLabelVisible()?void(this.labelSet&&this.labelSet.length&&D["default"].animateOpacity(this.labelSet,0,1,this.options.animationDuration)):void this._fireLoadEvent(t)},t.prototype.animateSeriesConnector=function(){this.connectorSet&&this.connectorSet.length&&D["default"].animateOpacity(this.connectorSet,0,1,this.options.animationDuration)},t.prototype._makeExportationSeriesData=function(t){var e=t.indexes,i=(0,h["default"])(e.legendIndex)?e.legendIndex:e.index,n=this.dataProcessor.getLegendItem(i),o=(0,h["default"])(e.groupIndex)?e.groupIndex:0,r=this._getSeriesDataModel().getSeriesItem(o,e.index),a=void 0;return(0,h["default"])(r)&&(a={chartType:n.chartType,legend:n.label,legendIndex:i},a.index=r.index),a},t.prototype._executeGraphRenderer=function(t,e){var i=!1;this.eventBus.fire("hideTooltipContainer"),this.seriesLabelContainer&&g["default"].hasClass(this.seriesLabelContainer,"show")&&(g["default"].removeClass(this.seriesLabelContainer,"show"),i=!0);var n=this.graphRenderer[e](t);return i&&g["default"].addClass(this.seriesLabelContainer,"show"),this.eventBus.fire("showTooltipContainer"),n},t.prototype.onSelectSeries=function(t,e){if(t.chartType===this.chartType){var i=S+"selectSeries";this.eventBus.fire(i,this._makeExportationSeriesData(t)),e=!!(0,u["default"])(e)||e,this.options.allowSelect&&this.graphRenderer.selectSeries&&e&&this.graphRenderer.selectSeries(t.indexes)}},t.prototype.onUnselectSeries=function(t){if(t.chartType===this.chartType){var e=S+"unselectSeries";this.eventBus.fire(e,this._makeExportationSeriesData(t)),this.options.allowSelect&&this.graphRenderer.unselectSeries&&this.graphRenderer.unselectSeries(t.indexes)}},t.prototype.onSelectLegend=function(t,e){this.seriesType===t||(0,p["default"])(e)||(e=-1),this.selectedLegendIndex=e,this._getSeriesDataModel().getGroupCount()&&this.graphRenderer.selectLegend(e)},t.prototype.showLabel=function(){this.options.showLabel=!0,!this.seriesLabelContainer&&this.supportSeriesLable&&this._renderSeriesLabelArea(this.paper)},t.prototype.hideLabel=function(){this.options.showLabel=!1,this.seriesLabelContainer&&(g["default"].removeClass(this.seriesLabelContainer,"show"),g["default"].removeClass(this.seriesLabelContainer,"opacity"))},t.prototype.isAvailableSeriesData=function(){return!!(this.seriesData&&this.seriesData.isAvailable&&this.seriesData.isAvailable())},t.prototype.hasDataForRendering=function(t){return!(!t||!t.isAvailable())},t}();e["default"]=L},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(154),a=n(r),s=i(242),u=n(s),l=i(164),h=n(l),c=i(173),p=n(c),d=i(148),f=n(d),m=i(143),g=n(m),y=i(146),_=n(y),v=a["default"].CHART_PADDING,T=a["default"].LEGEND_LABEL_LEFT_PADDING,b=.85,x=function(){function t(){o(this,t)}return t.prototype._makeSeriesData=function(){var t=this._makeBounds(this.layout.dimension);return this.groupBounds=t,{groupBounds:t,seriesDataModel:this._getSeriesDataModel(),isAvailable:function(){return t&&t.length>0}}},t.prototype._getBarWidthOptionSize=function(t,e){var i=0;return e&&(e/2>=t?e=2*t:e<0&&(e=0),i=e),i},t.prototype._calculateAdditionalPosition=function(t,e,i){var n=0;return e&&e<t&&(n=t/2+(t-e)*i/2),n},t.prototype._makeBaseDataForMakingBound=function(t,e){var i=h["default"].isValidStackOption(this.options.stack),n=this._getSeriesDataModel(),o=t/n.getGroupCount(),r=-this.layout.position.top+v,a=this._getLimitDistanceFromZeroPoint(e,this.limit).toMin,s=void 0,u=void 0;if(s=h["default"].isColumnChart(this.chartType)?r:h["default"].isBoxplotChart(this.chartType)?this.layout.position.top-v:this.layout.position.left,n.rawSeriesData.length>0){var l=void 0;l=i?this.options.diverging?1:this.dataProcessor.getStackCount(this.seriesType):n.getFirstSeriesGroup().getSeriesItemCount();var c=o/(l+1),p=this.options.barWidth||this.options.pointWidth,d=c*b,f=a+s;d=this._getBarWidthOptionSize(c,p)||d,h["default"].isColumnChart(this.chartType)&&(f=e-f),h["default"].isBoxplotChart(this.chartType)&&a&&(f-=2*a),u={baseBarSize:e,groupSize:o,barSize:d,pointInterval:c,basePosition:f,itemCount:l,firstAdditionalPosition:c}}return u},t.prototype._renderConnector=function(t,e,i){return this.graphRenderer.renderConnector(t,e,i)},t.prototype._renderNormalSeriesLabel=function(t){var e=this,i=this.graphRenderer,n=this._getSeriesDataModel(),o=this.seriesData.groupBounds,r=this.theme.label,a=this.selectedLegendIndex,s=n.map(function(t){return t.map(function(t){var i=t.start,n=t.startLabel,o=t.endLabel,r={end:e.decorateLabel(o)};return(0,_["default"])(i)&&(r.start=e.decorateLabel(n)),r})}),l=void 0;return l=h["default"].isBarChart(this.chartType)?u["default"].boundsToLabelPositionsForBarChart(n,o,r):u["default"].boundsToLabelPositionsForColumnChart(n,o,r),i.renderSeriesLabel(t,l,s,r,a)},t.prototype._makeSumValues=function(t){return f["default"].formatValue({value:p["default"].sum(t),formatFunctions:this.dataProcessor.getFormatFunctions(),chartType:this.chartType,areaType:"series"})},t.prototype._makeStackedLabelPosition=function(t){var e=t.top,i=t.left,n=t.width,o=t.height;return{left:i+n/2,top:e+o/2}},t.prototype._makeStackedLabelPositions=function(t){var e=this,i=t.seriesGroup,n=i.map(function(i,n){var o=t.bounds[n],r=void 0;return o&&i&&(r=e._makeStackedLabelPosition(o.end)),{end:r}});return n},t.prototype.getGroupLabels=function(t,e,i){var n=this,o=h["default"].isNormalStack(this.options.stack);return t.map(function(t){var r=t.map(function(t){return{end:n.decorateLabel(t.endLabel)}});if(o){e.push(p["default"].sumPlusValues(t.pluck("value")));var a=p["default"].sumMinusValues(t.pluck("value"));a<0&&i.push(a)}return r})},t.prototype.getGroupPositions=function(t,e){var i=this;return t.map(function(t,n){return i._makeStackedLabelPositions({seriesGroup:t,bounds:e[n]})})},t.prototype._renderStackedSeriesLabel=function(t){var e=this,i=[],n=[],o=this.theme.label,r=this.seriesData.groupBounds,a=this._getSeriesDataModel(),s=this.getGroupPositions(a,r),u=this.getGroupLabels(a,i,n),l=!0,c=h["default"].isNormalStack(this.options.stack),p=h["default"].isBarChart(this.chartType),d=p?"width":"height",m=p?"left":"top",y=p?1:-1;return c&&(u.forEach(function(t,o){var r=i[o],a=n[o];a<0&&e.options.diverging&&(a*=-1),t.push({end:e.decorateLabel(f["default"].formatToComma(r))}),n.length&&t.push({end:e.decorateLabel(f["default"].formatToComma(a))})}),s.forEach(function(t,a){var s=r[a],u=s[s.length-1].end,l=s[Math.max(parseInt(s.length/2,10),1)-1].end,h=e._makeStackedLabelPosition(u),c=e._makeStackedLabelPosition(l),p=i[a],f=n[a],_=g["default"].getRenderedTextSize(p,o.fontSize,o.fontFamily),v=g["default"].getRenderedTextSize(f,o.fontSize,o.fontFamily),b=(u[d]+_[d])/2,x=(l[d]+v[d])/2;h[m]+=(b+T)*y,c[m]-=(x+T)*y,t.push({end:h}),n.length&&t.push({end:c})})),this.graphRenderer.renderSeriesLabel(t,s,u,o,l)},t.prototype._renderSeriesLabel=function(t){return this.options.stack?this._renderStackedSeriesLabel(t):this._renderNormalSeriesLabel(t)},t}();x.mixin=function(t){Object.assign(t.prototype,x.prototype)},e["default"]=x},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(154),r=n(o),a=i(148),s=n(a),u=r["default"].MAX_HEIGHT_WORD,l=r["default"].SERIES_LABEL_PADDING;e["default"]={_calculateLeftPositionForCenterAlign:function(t){return t.left+t.width/2},_calculateTopPositionForMiddleAlign:function(t){return t.top+t.height/2},_makePositionForBoundType:function(t){return{left:this._calculateLeftPositionForCenterAlign(t),top:this._calculateTopPositionForMiddleAlign(t)}},_makePositionMap:function(t,e,i,n,o){var r=t.value,a=r>=0,s={end:o(e,i,t.endLabel||t.label,n,a)};return t.isRange&&(a=r<0,s.start=o(e,i,t.startLabel,n,a)),s},boundsToLabelPositions:function(t,e,i,n,o){var r=this,a=s["default"].getRenderedLabelHeight(u,i);return n=n||this._makePositionForBoundType.bind(this),o=!!o,t.map(function(t,o){var s=e[o];return t.map(function(t,e){var o=s[e].end;return r._makePositionMap(t,o,a,i,n)})},o)},_makePositionForBarChart:function(t,e,i,n,o){var r=s["default"].getRenderedLabelWidth(i,n),a=t.left;return o?a+=t.width+l:a-=r+l,{left:a,top:this._calculateTopPositionForMiddleAlign(t)}},boundsToLabelPositionsForBarChart:function(t,e,i){var n=this._makePositionForBarChart.bind(this);return this.boundsToLabelPositions(t,e,i,n)},_makePositionForColumnChart:function(t,e,i,n,o){var r=t.top;return o?r-=e+l:r+=t.height+l,{left:this._calculateLeftPositionForCenterAlign(t),top:r}},boundsToLabelPositionsForColumnChart:function(t,e,i){var n=this._makePositionForColumnChart.bind(this);return this.boundsToLabelPositions(t,e,i,n)},boundsToLabelPostionsForTreemap:function(t,e){var i=this,n=t.map(function(t){var n=e[t.id],o=void 0;return n&&(o=i._makePositionForBoundType(n)),o});return n}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="column",t.chartBackground=t.chartTheme.chart.background,new _(t)}e.__esModule=!0,e["default"]=s;var u=i(240),l=n(u),h=i(241),c=n(h),p=i(154),d=n(p),f=i(164),m=n(f),g=i(148),y=n(g),_=function(t){function e(){return o(this,e),r(this,t.apply(this,arguments))}return a(e,t),e.prototype._makeBound=function(t,e,i,n,o){return{start:{top:n,left:i,width:t,height:0},end:{top:o,left:i,width:t,height:e}}},e.prototype._makeColumnChartBound=function(t,e,i,n,o){var r=t.baseBarSize,a=t.basePosition,s=t.barSize,u=t.itemCount,l=t.groupSize,h=t.pointInterval,c=Math.abs(r*n.ratioDistance),p=r*n.startRatio,f=a+p+d["default"].SERIES_EXPAND_SIZE,m=n.stack!==e.prevStack,g=s*u>l,y=g?h:s,_=void 0,v=void 0;if(!i||!this.options.diverging&&m){var T=i?this.dataProcessor.findStackIndex(n.stack):o;e.left=e.baseLeft+y*T,e.plusTop=0,e.minusTop=0}return n.value>=0?(e.plusTop-=c,_=f+e.plusTop):(_=f+e.minusTop,e.minusTop+=c),e.prevStack=n.stack,v=g?e.left+h-s/2:e.left+h-s/2+(h-s)/2*(u-1),this._makeBound(s,c,v,f,_)},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=m["default"].isValidStackOption(this.options.stack),n=this.layout.dimension,o=n.width,r=n.height,a=this._makeBaseDataForMakingBound(o,r);return e.map(function(e,n){var o=n*a.groupSize+t.layout.position.left,r={baseLeft:o,left:o,plusTop:0,minusTop:0,prevStack:null},s=t._makeColumnChartBound.bind(t,a,r,i);return e.map(s)})},e.prototype._calculateLeftPositionOfSumLabel=function(t,e){var i=t.left,n=t.width,o=y["default"].getRenderedLabelWidth(e,this.theme.label);return i+(n-o+d["default"].TEXT_PADDING)/2},e}(l["default"]);c["default"].mixin(_),s.componentType="series",s.ColumnChartSeries=_},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="line",t.chartBackground=t.chartTheme.chart.background,new p(t)}e.__esModule=!0,e["default"]=s;var u=i(240),l=n(u),h=i(245),c=n(h),p=function(t){function e(){o(this,e);for(var i=arguments.length,n=Array(i),a=0;a<i;a++)n[a]=arguments[a];var s=r(this,t.call.apply(t,[this].concat(n)));return s.movingAnimation=null,s}return a(e,t),e.prototype._makePositions=function(t){return this._makeBasicPositions(t)},e.prototype._makeSeriesData=function(){var t=this._makePositions();return{chartBackground:this.chartBackground,groupPositions:t,isAvailable:function(){return t&&t.length>0}}},e.prototype.rerender=function(t){return this._cancelMovingAnimation(),l["default"].prototype.rerender.call(this,t)},e}(l["default"]);c["default"].mixin(p),s.componentType="series"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(146),a=n(r),s=i(137),u=n(s),l=i(158),h=n(l),c=i(154),p=n(c),d=i(164),f=n(d),m=i(173),g=n(m),y=i(148),_=n(y),v=p["default"].SERIES_EXPAND_SIZE,T=p["default"].SERIES_LABEL_PADDING,b=p["default"].MAX_HEIGHT_WORD,x=p["default"].ADDING_DATA_ANIMATION_DURATION,A=function(){function t(){o(this,t)}return t.prototype._makePositionsForDefaultType=function(t){var e=this.layout.dimension,i=e.height,n=e.width,o=this._getSeriesDataModel(),r=t||n||0,s=o.getGroupCount(),l=this.layout.position.top,h=this.layout.position.left,c=void 0;return this.aligned?c=r/(s>1?s-1:s):(c=r/s,h+=c/2),o.map(function(t){return t.map(function(t,e){var n=void 0;return(0,u["default"])(t.end)||(n={left:h+c*e,top:l+i-t.ratio*i},(0,a["default"])(t.startRatio)&&(n.startTop=l+i-t.startRatio*i)),n})},!0)},t.prototype._makePositionForCoordinateType=function(t){var e=this.layout.dimension,i=this._getSeriesDataModel(),n=e.height,o=this.axisDataMap.xAxis,r=this.layout.position.top,s=this.layout.position.left,l=t||e.width||0,h=0;return o.sizeRatio&&(h=g["default"].multiply(l,o.positionRatio),l=g["default"].multiply(l,o.sizeRatio)),i.map(function(t){return t.map(function(t){var e=void 0;return(0,u["default"])(t.end)||(e={left:s+t.ratioMap.x*l+h,top:r+n-t.ratioMap.y*n},(0,a["default"])(t.ratioMap.start)&&(e.startTop=n-t.ratioMap.start*n+p["default"].SERIES_EXPAND_SIZE)),e})},!0)},t.prototype._makeBasicPositions=function(t){return this.dataProcessor.isCoordinateType()?this._makePositionForCoordinateType(t):this._makePositionsForDefaultType(t)},t.prototype._calculateLabelPositionTop=function(t,e,i,n){var o=t.top,r=void 0;return r=f["default"].isValidStackOption(this.options.stack)?(t.startTop+o-i)/2+1:e>=0&&!n||e<0&&n?o-i-T:o+T},t.prototype._makeLabelPosition=function(t,e,i,n,o){return{left:t.left,top:this._calculateLabelPositionTop(t,n,e/2,o)}},t.prototype._getLabelPositions=function(t,e){var i=this,n=h["default"].pivot(this.seriesData.groupPositions),o=_["default"].getRenderedLabelHeight(b,e);return t.map(function(t,e){return t.map(function(t,r){var a=n[e][r];if(!a)return{end:0,start:0};var s=i._makeLabelPosition(a,o,t.endLabel,t.end),u={end:s};return t.isRange&&(a.top=a.startTop,u.start=i._makeLabelPosition(a,o,t.startLabel,t.start)),u})})},t.prototype._getLabelTexts=function(t){var e=this;return t.map(function(t){return t.map(function(t){var i=t.endLabel,n=t.isRange,o=t.startLabel,r={end:e.decorateLabel(i)};return n&&(r.start=e.decorateLabel(o)),r})})},t.prototype._renderSeriesLabel=function(t){var e=this.theme.label,i=this._getSeriesDataModel(),n=this._getLabelTexts(i),o=this._getLabelPositions(i,e);return this.graphRenderer.renderSeriesLabel(t,o,n,e)},t.prototype.onShowGroupTooltipLine=function(t){this.graphRenderer.showGroupTooltipLine&&this.graphRenderer.showGroupTooltipLine(t,this.layout)},t.prototype.onHideGroupTooltipLine=function(){this.isAvailableSeriesData()&&this.graphRenderer.hideGroupTooltipLine&&this.graphRenderer.hideGroupTooltipLine()},t.prototype.zoom=function(t){this._cancelMovingAnimation(),this._clearSeriesContainer(t.paper),this._setDataForRendering(t),this._renderSeriesArea(t.paper,this._renderGraph.bind(this)),(0,u["default"])(this.selectedLegendIndex)||this.graphRenderer.selectLegend(this.selectedLegendIndex)},t.prototype._isChangedLimit=function(t,e){return t.min!==e.min||t.max!==e.max},t.prototype._isChangedAxisLimit=function(){var t=this.beforeAxisDataMap,e=this.axisDataMap,i=!0;return t&&(i=this._isChangedLimit(t.yAxis.limit,e.yAxis.limit),e.xAxis.limit&&(i=i||this._isChangedLimit(t.xAxis.limit,e.xAxis.limit))),this.beforeAxisDataMap=e,i},t.prototype._animate=function(t){var e=this,i=x,n=this._isChangedAxisLimit();n&&this.seriesLabelContainer&&(this.seriesLabelContainer.innerHTML=""),t&&(this.movingAnimation=_["default"].startAnimation(i,t,function(){e.movingAnimation=null}))},t.prototype._makeZeroTopForAddingData=function(){var t=this.layout.dimension.height,e=this.axisDataMap.yAxis.limit;return this._getLimitDistanceFromZeroPoint(t,e).toMax+v},t.prototype.animateForAddingData=function(t){var e=t.tickSize,i=t.limitMap,n=t.axisDataMap,o=this.dimensionMap.extendedSeries,r=this.options.shifting,a=this.layout.dimension.width;this.limit=i[this.chartType],this.axisDataMap=n;var s=this._makeSeriesData(),u=this._makeParamsForGraphRendering(o,s);r&&(a+=e);var l=this._makePositions(a),h=this._makeZeroTopForAddingData();this.graphRenderer.animateForAddingData(u,e,l,r,h)},t.prototype._cancelMovingAnimation=function(){this.movingAnimation&&(cancelAnimationFrame(this.movingAnimation.id),this.movingAnimation=null)},t}();A.mixin=function(t){Object.assign(t.prototype,A.prototype)},e["default"]=A},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType=t.chartOptions.chartType,t.chartBackground=t.chartTheme.background,new b(t)}e.__esModule=!0,e["default"]=s;var u=i(137),l=n(u),h=i(240),c=n(h),p=i(154),d=n(p),f=i(173),m=n(f),g=i(205),y=n(g),_=d["default"].COMPONENT_TYPE_RAPHAEL,v=d["default"].RADIAL_PLOT_PADDING,T=d["default"].RADIAL_MARGIN_FOR_CATEGORY,b=function(t){function e(){o(this,e);for(var i=arguments.length,n=Array(i),a=0;a<i;a++)n[a]=arguments[a];var s=r(this,t.call.apply(t,[this].concat(n)));return s.options=Object.assign({showDot:!1,showArea:!1},s.options),s.movingAnimation=null,s.drawingType=_,s}return a(e,t),e.prototype._makePositionsForRadial=function(t,e){var i=this.layout,n=i.dimension,o=i.position,r=o.top,a=o.left,s=n.width-v-T,u=n.height-v-T,h=m["default"].sum([s/2,v/2,T/2,a]),c=m["default"].sum([u/2,-(v/2),-(T/2),-r]),p=360/e,d=Math.min(s,u)/2;return t.map(function(t){var e=t.map(function(t,e){var i=void 0;if(!(0,l["default"])(t.end)){var n=t.ratio*d,o=c+n,r=360-p*e,a=y["default"].rotatePointAroundOrigin(h,c,h,o,r);i={left:a.x,top:u-a.y}}return i});return e.push(e[0]),e})},e.prototype._getSeriesGroups=function(){var t=this._getSeriesDataModel();return t.map(function(t){return t.map(function(t){return t})},!0)},e.prototype._makeSeriesData=function(){var t=this._getSeriesGroups(),e=this._makePositionsForRadial(t,this._getSeriesDataModel().getGroupCount());return{groupPositions:e,isAvailable:function(){return e&&e.length>0}}},e.prototype.rerender=function(t){return c["default"].prototype.rerender.call(this,t)},e}(c["default"]);s.componentType="series",s.RadialChartSeries=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.chartTheme,i=t.chartOptions.libType;return t.libType=i,t.chartType="area",t.chartBackground=e.chart.background,new f(t)}e.__esModule=!0,e["default"]=s;var u=i(240),l=n(u),h=i(245),c=n(h),p=i(164),d=n(p),f=function(t){function e(){o(this,e);for(var i=arguments.length,n=Array(i),a=0;a<i;a++)n[a]=arguments[a];var s=r(this,t.call.apply(t,[this].concat(n)));return s.movingAnimation=null,s}return a(e,t),e.prototype._makePositionTopOfZeroPoint=function(){var t=this.layout,e=t.dimension.height,i=t.position.top,n=this.axisDataMap.yAxis.limit,o=this._getLimitDistanceFromZeroPoint(e,n).toMax+i;return n.min>=0&&!o&&(o=e),o},e.prototype._makeStackedPositions=function(t){var e=this.layout,i=e.dimension.height,n=e.position.top,o=this._makePositionTopOfZeroPoint(),r=[];return t.map(function(t){return t.map(function(t,e){var a=r[e]||o,s=t?t.top:0,u=i-s+n,l=t?a-u:a;return t&&(t.startTop=a,t.top=l),r[e]=l,t})})},e.prototype._makePositions=function(t){var e=this._makeBasicPositions(t);return d["default"].isValidStackOption(this.options.stack)&&(e=this._makeStackedPositions(e)),e},e.prototype._makeSeriesData=function(){var t=this.layout,e=t.dimension.height,i=t.position.top,n=this._getLimitDistanceFromZeroPoint(e,this.limit).toMax+i,o=this._makePositions();return{chartBackground:this.chartBackground,groupPositions:o,hasRangeData:this._getSeriesDataModel().hasRangeData(),zeroTop:n,isAvailable:function(){return o&&o.length>0}}},e.prototype.rerender=function(t){return this._cancelMovingAnimation(),l["default"].prototype.rerender.call(this,t)},e}(l["default"]);c["default"].mixin(f),s.componentType="series",s.AreaChartSeries=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.chartOptions.libType,i=t.chartTheme;return t.libType=e,t.chartType="bubble",t.chartBackground=i.chart.background,new g(t)}e.__esModule=!0,e["default"]=s;var u=i(154),l=n(u),h=i(240),c=n(h),p=i(249),d=n(p),f=i(146),m=n(f),g=function(t){function e(){o(this,e);for(var i=arguments.length,n=Array(i),a=0;a<i;a++)n[a]=arguments[a];var s=r(this,t.call.apply(t,[this].concat(n)));return s.prevClickedIndex=null,s.maxRadius=null,s.drawingType=l["default"].COMPONENT_TYPE_RAPHAEL,s}return a(e,t),e.prototype._calculateStep=function(){var t=this.dataProcessor.isXCountGreaterThanYCount(this.chartType),e=0;if(this.dataProcessor.hasCategories(t)){var i=this.layout.dimension,n=this.dataProcessor.getCategoryCount(t),o=void 0;o=t?i.height:i.width,e=o/n}return e},e.prototype._makeBound=function(t,e,i){var n=this.layout,o=n.dimension,r=o.width,a=o.height,s=n.position,u=(0,m["default"])(t.x)?t.x*r:e,l=(0,m["default"])(t.y)?t.y*a:e;return{left:s.left+u,top:s.top+a-l,radius:Math.max(i*t.r,2)}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=this.maxRadius,n=this._calculateStep(),o=n?n/2:0;return e.map(function(e,r){var a=o+n*r;return e.map(function(e){var n=e&&e.ratioMap;return n?t._makeBound(e.ratioMap,a,i):null})})},e.prototype._setDataForRendering=function(t){this.maxRadius=t.maxRadius,c["default"].prototype._setDataForRendering.call(this,t);
},e}(c["default"]);d["default"].mixin(g),s.componentType="series",s.BubbleChartSeries=g},function(t,e){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var n=function(){function t(){i(this,t)}return t.prototype._makeSeriesData=function(){var t=this._makeBounds();return{groupBounds:t,seriesDataModel:this._getSeriesDataModel(),isAvailable:function(){return t&&t.length>0}}},t.prototype.showTooltip=function(t,e,i,n,o){this.eventBus.fire("showTooltip",Object.assign({indexes:{groupIndex:i,index:n},mousePosition:o},t))},t.prototype.hideTooltip=function(){this.eventBus.fire("hideTooltip")},t.prototype._renderGraph=function(t,e,i){var n=this.showTooltip.bind(this,{chartType:this.chartType}),o={showTooltip:n,hideTooltip:this.hideTooltip.bind(this)},r=this._makeParamsForGraphRendering(t,e);return this.graphRenderer.render(i,r,o)},t.prototype.onClickSeries=function(t){var e=this._executeGraphRenderer(t,"findIndexes"),i=this.prevClickedIndexes,n=this.options.allowSelect,o=this.chartType;if(e&&i&&(this.onUnselectSeries({chartType:o,indexes:i}),this.prevClickedIndexes=null),e){var r=!i||e.index!==i.index||e.groupIndex!==i.groupIndex;n&&r&&(this.onSelectSeries({chartType:o,indexes:e},r),this.prevClickedIndexes=e)}},t.prototype.onMoveSeries=function(t){this._executeGraphRenderer(t,"moveMouseOnSeries")},t}();n.mixin=function(t){Object.assign(t.prototype,n.prototype)},e["default"]=n},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="scatter",t.chartBackground=t.chartTheme.chart.background,new f(t)}e.__esModule=!0,e["default"]=s;var u=i(240),l=n(u),h=i(249),c=n(h),p=i(154),d=n(p),f=function(t){function e(){o(this,e);for(var i=arguments.length,n=Array(i),a=0;a<i;a++)n[a]=arguments[a];var s=r(this,t.call.apply(t,[this].concat(n)));return s.prevClickedIndex=null,s}return a(e,t),e.prototype._makeBound=function(t){var e=this.layout,i=e.dimension,n=e.position;return{left:n.left+t.x*i.width,top:i.height-t.y*i.height+n.top,radius:d["default"].SCATTER_RADIUS}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel();return e.map(function(e){return e.map(function(e){var i=e&&e.ratioMap;return i?t._makeBound(e.ratioMap):null})})},e}(l["default"]);c["default"].mixin(f),s.componentType="series",s.ScatterChartSeries=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="map",new b(t)}e.__esModule=!0,e["default"]=s;var u=i(137),l=n(u),h=i(145),c=n(h),p=i(153),d=n(p),f=i(240),m=n(f),g=i(154),y=n(g),_=d["default"].msie&&d["default"].version<=8,v=y["default"].TOOLTIP_GAP,T=y["default"].PUBLIC_EVENT_PREFIX,b=function(t){function e(i){o(this,e);var n=r(this,t.call(this,i));return n.basePosition={left:0,top:0},n.zoomMagn=1,n.mapRatio=1,n.graphDimension={},n.limitPosition={},n.mapModel=i.mapModel,n.colorSpectrum=i.colorSpectrum,n.prevPosition=null,n.prevMovedIndex=null,n.isDrag=!1,n.startPosition=null,n}return a(e,t),e.prototype._attachToEventBus=function(){m["default"].prototype._attachToEventBus.call(this),_||this.eventBus.on({dragStartMapSeries:this.onDragStartMapSeries,dragMapSeries:this.onDragMapSeries,dragEndMapSeries:this.onDragEndMapSeries,zoomMap:this.onZoomMap},this)},e.prototype._setMapRatio=function(t){var e=this.layout.dimension,i=t||this.mapModel.getMapDimension(),n=e.width/i.width,o=e.height/i.height;this.mapRatio=Math.min(n,o)},e.prototype._setGraphDimension=function(){var t=this.layout.dimension,e=t.width,i=t.height;this.graphDimension={width:e*this.zoomMagn,height:i*this.zoomMagn}},e.prototype.render=function(t){m["default"].prototype.render.call(this,t),this.seriesSet=this.graphRenderer.sectorSet,this._setMapRatio()},e.prototype.rerender=function(t){m["default"].prototype.rerender.call(this,t),this.seriesSet=this.graphRenderer.sectorSet,this._setMapRatio()},e.prototype.resize=function(t){this.rerender(t)},e.prototype._setLimitPositionToMoveMap=function(){var t=this.layout.dimension,e=this.graphDimension;this.limitPosition={left:t.width-e.width,top:t.height-e.height}},e.prototype._renderGraph=function(){this._setGraphDimension(),this._setLimitPositionToMoveMap(),this.graphRenderer.render(this.paper,{colorSpectrum:this.colorSpectrum,mapModel:this.mapModel,layout:this.layout,theme:this.theme})},e.prototype._renderSeriesLabel=function(){var t=this.mapModel.getLabelData(this.zoomMagn*this.mapRatio);return this.graphRenderer.renderSeriesLabels(this.paper,t,this.theme.label)},e.prototype._renderSeriesArea=function(t,e,i){m["default"].prototype._renderSeriesArea.call(this,t,e,i)},e.prototype._adjustMapPosition=function(t){return{left:Math.max(Math.min(t.left,0),this.limitPosition.left),top:Math.max(Math.min(t.top,0),this.limitPosition.top)}},e.prototype._updateBasePositionForZoom=function(t,e,i){var n=this.basePosition,o=n.left-e.left/2,r=n.top-e.top/2,a={left:o*i+this.limitPosition.left/2,top:r*i+this.limitPosition.top/2};this.basePosition=this._adjustMapPosition(a)},e.prototype._zoom=function(t,e){var i=this.graphDimension,n=this.limitPosition;this._setGraphDimension(),this._setLimitPositionToMoveMap(),this._updateBasePositionForZoom(i,n,t),this._setMapRatio(this.graphDimension),this.graphRenderer.scaleMapPaths(t,e,this.mapRatio,i,i)},e.prototype._updatePositionsToResize=function(t){var e=this.mapRatio/t;this.basePosition.left*=e,this.basePosition.top*=e,this.limitPosition.left*=e,this.limitPosition.top*=e},e.prototype.onClickSeries=function(t){var e=this._executeGraphRenderer(t,"findSectorIndex");(0,l["default"])(e)||this.eventBus.fire("selectSeries",{chartType:this.chartType,index:e,code:this.mapModel.getDatum(e).code})},e.prototype._isChangedPosition=function(t,e){return!t||t.left!==e.left||t.top!==e.top},e.prototype._showWedge=function(t){var e=this.mapModel.getDatum(t),i=e.ratio,n=e.label;(0,c["default"])(i)||this.eventBus.fire("showWedge",i,n)},e.prototype._showTooltip=function(t,e){var i=e.left,n=e.top;this.eventBus.fire("showTooltip",{chartType:this.chartType,indexes:{index:t},mousePosition:{left:i,top:n-v}})},e.prototype.onMoveSeries=function(t){var e=this._executeGraphRenderer(t,"findSectorIndex");(0,l["default"])(e)?(0,l["default"])(this.prevMovedIndex)||(this.graphRenderer.restoreColor(this.prevMovedIndex),this.eventBus.fire("hideTooltip"),this.prevMovedIndex=null):(this.prevMovedIndex!==e&&((0,l["default"])(this.prevMovedIndex)||(this.graphRenderer.restoreColor(this.prevMovedIndex),this.eventBus.fire("hideTooltip")),this.graphRenderer.changeColor(e)),this._isChangedPosition(this.prevPosition,t)&&(this._showTooltip(e,{left:t.left,top:t.top}),this.prevMovedIndex=e),this._showWedge(e)),this.prevPosition=t},e.prototype.onDragStartMapSeries=function(t){this.startPosition={left:t.left,top:t.top}},e.prototype._movePosition=function(t,e){var i={x:(e.left-t.left)*this.mapRatio,y:(e.top-t.top)*this.mapRatio};this.graphRenderer.moveMapPaths(i,this.graphDimension)},e.prototype.onDragMapSeries=function(t){this._movePosition(this.startPosition,t),this.startPosition=t,this.isDrag||(this.isDrag=!0,this.eventBus.fire("hideTooltip"))},e.prototype.onDragEndMapSeries=function(){this.isDrag=!1},e.prototype.onZoomMap=function(t,e){var i=t/this.zoomMagn,n=this.layout,o=n.position,r=o.top,a=o.left,s=n.dimension,u=s.width,l=s.height,h=e?e:{left:u/2,top:l/2};this.zoomMagn=t,this._zoom(i,{left:h.left-a,top:h.top-r}),this.eventBus.fire(T+"zoom",t)},e.prototype._makeExportationSeriesData=function(t){return t},e}(m["default"]);s.componentType="series",s.MapChartSeries=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.chartOptions,i=e.libType,n=e.chartType,o=e.legend,r=t.chartTheme;if(t.libType=i,t.chartType="pie","combo"===n){var a=t.name.split("Series"),s=u(a,1);t.seriesType=s[0],t.isCombo=!0}return o&&(t.legendMaxWidth=o.maxWidth),t.chartBackground=r.chart.background,new I(t)}e.__esModule=!0;var u=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e["default"]=s;var l=i(146),h=n(l),c=i(156),p=n(c),d=i(145),f=n(d),m=i(240),g=n(m),y=i(154),_=n(y),v=i(164),T=n(v),b=i(143),x=n(b),A=_["default"].COMPONENT_TYPE_RAPHAEL,D=_["default"].ANGLE_360,E=_["default"].PIE_GRAPH_LEGEND_LABEL_INTERVAL,S=_["default"].ANGLE_90,C=_["default"].PIE_GRAPH_SMALL_RATIO,L=_["default"].PIE_GRAPH_DEFAULT_RATIO,M=_["default"].RAD,P=_["default"].PIE_GRAPH_LEGEND_LABEL_SIZE,w=_["default"].SERIES_OUTER_LABEL_PADDING,O=_["default"].SERIES_LABEL_PADDING,R="pie1",I=function(t){function e(i){o(this,e);var n=r(this,t.call(this,i));return n.isCombo=!!i.isCombo,n.isShowOuterLabel=T["default"].isShowOuterLabel(n.options),n.isLabelAlignOuter=T["default"].isLabelAlignOuter(n.options.labelAlign),n.legendMaxWidth=i.legendMaxWidth,n.drawingType=A,n.quadrantRange=null,n.prevClickedIndex=null,n.legendLabels=[],n.valueLabels=[],n.ratioValues=[],n.legendLongestWidth=0,n.labelTheme=n.theme.label,n._setDefaultOptions(),n}return a(e,t),e.prototype._getLegendLabels=function(){var t=this,e=this.dataProcessor.getLegendLabels(this.seriesType);return e.map(function(e){return x["default"].getEllipsisText(e,t.legendMaxWidth,t.labelTheme)})},e.prototype._makeValidAngle=function(t,e){return(0,f["default"])(t)?t=e:t<0?t=D-Math.abs(t)%D:t>0&&(t%=D),t},e.prototype._transformRadiusRange=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["0%","100%"];return t.map(function(t){var e=.01*parseInt(t,10);return Math.max(Math.min(e,1),0)})},e.prototype._setDefaultOptions=function(){var t=this.options;t.startAngle=this._makeValidAngle(t.startAngle,0),t.endAngle=this._makeValidAngle(t.endAngle,t.startAngle),t.radiusRange=this._transformRadiusRange(t.radiusRange),1===t.radiusRange.length&&t.radiusRange.unshift(0)},e.prototype._calculateAngleForRendering=function(){var t=this.options,e=t.startAngle,i=t.endAngle,n=void 0;return n=e<i?i-e:e>i?D-(e-i):D},e.prototype._makeSectorData=function(t){var e=this,i=t.cx,n=t.r,o=t.cy,r=u(this.options.radiusRange,1),a=r[0],s=this._calculateAngleForRendering(),l=this._getSeriesDataModel().getFirstSeriesGroup(),h=this.options.startAngle,c=.5*n;if(a&&(c+=c*a),!l)return null;var p=l.map(function(t){var r=t?t.ratio:0,a=s*r,u=h+a,l=h+a/2,p={start:{startAngle:h,endAngle:h},end:{startAngle:h,endAngle:u}},d={cx:i,cy:o,angle:l};return h=u,{ratio:r,angles:p,centerPosition:e._getArcPosition(Object.assign({r:c},d)),outerPosition:e._getArcPosition(Object.assign({r:n+e.legendLongestWidth/2+E},d))}});return p},e.prototype._makeValueLabel=function(){var t=this._getSeriesDataModel().getFirstSeriesGroup();return t.map(function(t){return t.label})},e.prototype._makeRatioValues=function(){var t=this._getSeriesDataModel().getFirstSeriesGroup();return t.map(function(t){return t.ratio})},e.prototype._makeSeriesData=function(){this.valueLabels=this._makeValueLabel(),this.legendLabels=this._getLegendLabels(),this.legendLongestWidth=this._getMaxLengthLegendWidth(),this.ratioValues=this._makeRatioValues();var t=this._makeCircleBound(),e=this._makeSectorData(t);return{chartBackground:this.chartBackground,circleBound:t,sectorData:e,isAvailable:function(){return e&&e.length>0}}},e.prototype._getQuadrantFromAngle=function(t,e){var i=parseInt(t/S,10)+1;return e&&t%S===0&&(i+=1===i?3:-1),i},e.prototype._getRangeForQuadrant=function(){return this.quadrantRange||(this.quadrantRange={start:this._getQuadrantFromAngle(this.options.startAngle),end:this._getQuadrantFromAngle(this.options.endAngle,!0)}),this.quadrantRange},e.prototype._isInQuadrantRange=function(t,e){var i=this._getRangeForQuadrant();return i.start===t&&i.end===e},e.prototype._calculateBaseSize=function(){var t=this.layout.dimension,e=t.width,i=t.height;if(!this.isCombo){var n=this._getRangeForQuadrant();this._isInQuadrantRange(2,3)||this._isInQuadrantRange(4,1)?i*=2:this._isInQuadrantRange(1,2)||this._isInQuadrantRange(3,4)?e*=2:n.start===n.end&&(e*=2,i*=2)}return Math.min(e,i)},e.prototype._calculateRadius=function(){var t=this.isCombo&&this.seriesType===R,e=this._calculateBaseSize(),i=0,n=this.isShowOuterLabel;return t&&(n=this.dataProcessor.isComboDonutShowOuterLabel()),i=n?C:L,e*i*this.options.radiusRange[1]/2},e.prototype._calculateCenterXY=function(t){var e=this.layout,i=e.dimension,n=i.width,o=i.height,r=e.position,a=r.top,s=r.left,u=t/2,l=n/2+s,h=o/2+a;return this.isCombo||(this._isInQuadrantRange(1,1)?(l-=u,h+=u):this._isInQuadrantRange(1,2)?l-=u:this._isInQuadrantRange(2,2)?(l-=u,h-=u):this._isInQuadrantRange(2,3)?h-=u:this._isInQuadrantRange(3,3)?(l+=u,h-=u):this._isInQuadrantRange(3,4)?l+=u:this._isInQuadrantRange(4,1)?h+=u:this._isInQuadrantRange(4,4)&&(l+=u,h+=u)),{cx:l,cy:h}},e.prototype._makeCircleBound=function(){var t=this._calculateRadius(),e=this._calculateCenterXY(t);return Object.assign({r:t},e)},e.prototype._getArcPosition=function(t){return{left:t.cx+t.r*Math.sin(t.angle*M),top:t.cy-t.r*Math.cos(t.angle*M)}},e.prototype._renderGraph=function(t,e,i){var n=this.showTooltip.bind(this,{allowNegativeTooltip:!!this.allowNegativeTooltip,seriesType:this.seriesType,chartType:this.chartType}),o={showTooltip:n,hideTooltip:this.hideTooltip.bind(this)},r=this._makeParamsForGraphRendering(t,e),a=this.seriesType,s=this.dataProcessor.seriesDataModelMap,u=[],l=0;return(this.dataProcessor.seriesTypes||[]).forEach(function(t){var e=!0;return t!==a?u.push(t):e=!1,e}),u.forEach(function(t){l+=s[t].baseGroups.length}),r.additionalIndex=l,this.graphRenderer.render(i,r,o)},e.prototype.showTooltip=function(t,e,i,n,o){this.eventBus.fire("showTooltip",Object.assign({indexes:{groupIndex:i,index:n},mousePosition:o},t))},e.prototype.hideTooltip=function(){this.eventBus.fire("hideTooltip")},e.prototype._getMaxLengthLegendWidth=function(){var t=this,e=this.legendLabels.map(function(e){return x["default"].getRenderedTextSize(e,t.labelTheme.fontSize,t.labelTheme.fontFamily).width});return e.sort(function(t,e){return t-e}),e[e.length-1]},e.prototype._makeSeriesDataBySelection=function(t){return{indexes:{index:t,groupIndex:t}}},e.prototype._pickPositionsFromSectorData=function(t,e){var i=this,n=this.options,o=n.showLegend,r=n.showLabel,a=x["default"].getRenderedTextSize(this.legendLabels[0],this.labelTheme.fontSize,this.labelTheme.fontFamily).height,s=x["default"].getRenderedTextSize(this.valueLabels[0],P,this.labelTheme.fontFamily).height;return(this.seriesData.sectorData||[]).map(function(n){var u=n.ratio?Object.assign({},n[t]):null,l=u&&o&&r&&!i.isLabelAlignOuter;return l&&("value"===e?u.top-=s/2:"legend"===e&&(u.top+=a/2)),u})},e.prototype._addEndPosition=function(t,e){e.forEach(function(e){if(e){var i=Object.assign({},e.middle);i.left<t?i.left-=w:i.left+=w,e.end=i}})},e.prototype._moveToOuterPosition=function(t,e,i){var n=e.end,o=n.left,r=n.top,a=this.graphRenderer.getRenderedLabelWidth(i,this.labelTheme)/2+O;return{left:o<t?o-a:o+a,top:r}},e.prototype._setSeriesPosition=function(t,e){var i=[];return i=t.funcMoveToPosition?t.positions.map(function(i,n){return i?t.funcMoveToPosition(i,e[n]):null}):t.positions},e.prototype._renderSeriesLabel=function(t){var e=[],i={},n=t.set(),o=function(o,r){var a=void 0,s=Object.assign({},this.theme.label),u=this.ratioValues;this.isLabelAlignOuter&&"legend"===o&&(a=this.theme.colors,s.fontWeight="bold"),s.fontSize="value"===o?16:s.fontSize,e=this._setSeriesPosition(i,r),this.graphRenderer.renderLabels({dataType:o,paper:t,labelSet:n,positions:e,labels:r,ratioValues:u,theme:s,colors:a,seriesNames:this.legendLabels,labelFilter:this.options.labelFilter})}.bind(this);if(this.options.showLabel&&(i.positions=this._pickPositionsFromSectorData("centerPosition","value"),o("value",this.decorateLabel(this.valueLabels))),this.options.showLegend){var r=this.isLabelAlignOuter?"outerPosition":"centerPosition";i.positions=this._pickPositionsFromSectorData(r,"legend"),o("legend",this.legendLabels)}return n},e.prototype._isDetectedLabel=function(t){var e=document.elementFromPoint(t.left,t.top);return(0,p["default"])(e.className)},e.prototype.onClickSeries=function(t){var e=this._executeGraphRenderer(t,"findSectorInfo"),i=this.prevClickedIndex,n=this.options.allowSelect;if((e||this._isDetectedLabel(t))&&(0,h["default"])(i)&&n&&(this.onUnselectSeries({indexes:{index:i}}),this.prevClickedIndex=null),e&&e.chartType===this.seriesType){var o=e.index,r=o>-1&&o!==i;n&&!r||(this.onSelectSeries({chartType:this.chartType,indexes:{index:o,legendIndex:e.legendIndex}},r),n&&o>-1&&(this.prevClickedIndex=o))}},e.prototype.onMoveSeries=function(t){this._executeGraphRenderer(t,"moveMouseOnSeries")},e}(g["default"]);s.componentType="series",s.PieChartSeries=I},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="heatmap",new p(t)}e.__esModule=!0,e["default"]=s;var u=i(240),l=n(u),h=i(242),c=n(h),p=function(t){function e(i){o(this,e);var n=r(this,t.call(this,i));return n.colorSpectrum=i.colorSpectrum,n}return a(e,t),e.prototype._makeSeriesData=function(){var t=this._makeBounds(),e=this._getSeriesDataModel();return{colorSpectrum:this.colorSpectrum,groupBounds:t,seriesDataModel:e,isAvailable:function(){return t&&t.length>0}}},e.prototype._makeBound=function(t,e,i,n){var o=this.layout,r=o.dimension.height,a=o.position,s=a.top,u=a.left;return{end:{left:u+t*i,top:s+r-e*(n+1),width:t,height:e}}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=this.layout.dimension,n=i.width,o=i.height,r=n/this.dataProcessor.getCategoryCount(!1),a=o/this.dataProcessor.getCategoryCount(!0);return e.map(function(e,i){return e.map(function(e,n){return t._makeBound(r,a,i,n)})})},e.prototype.onShowTooltip=function(t){var e=t.indexes,i=this._getSeriesDataModel(),n=i.getSeriesItem(e.groupIndex,e.index),o=n.ratio,r=n.label;this.eventBus.fire("showWedge",o,r)},e.prototype._renderSeriesLabel=function(t){var e=this,i=this._getSeriesDataModel(),n=this.seriesData.groupBounds,o=this.theme.label,r=this.selectedLegendIndex,a=c["default"].boundsToLabelPositions(i,n,o),s=i.map(function(t){return e.decorateLabel(t.valuesMap.value)});return this.graphRenderer.renderSeriesLabel(t,a,s,o,r)},e.prototype.resize=function(){this.boundMap=null;for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];l["default"].prototype.resize.apply(this,e)},e.prototype._makeExportationSeriesData=function(t){var e=t.indexes;return{x:e.groupIndex,y:e.index}},e}(l["default"]);s.componentType="series",s.HeatmapChartSeries=p},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="treemap",t.chartBackground=t.chartTheme.chart.background,new T(t)}e.__esModule=!0,e["default"]=s;var u=i(145),l=n(u),h=i(240),c=n(h),p=i(255),d=n(p),f=i(242),m=n(f),g=i(154),y=n(g),_=i(164),v=n(_),T=function(t){function e(i){o(this,e);var n=r(this,t.call(this,i));return n.theme.borderColor=n.theme.borderColor||y["default"].TREEMAP_DEFAULT_BORDER,n.theme.label.color=n.options.useColorValue?"#000":"#fff",n.rootId=y["default"].TREEMAP_ROOT_ID,n.startDepth=1,n.selectedGroup=null,n.boundMap=null,n.colorSpectrum=i.colorSpectrum,n._initOptions(),n}return a(e,t),e.prototype._initOptions=function(){this.options.useColorValue=!!this.options.useColorValue,(0,l["default"])(this.options.zoomable)&&(this.options.zoomable=!this.options.useColorValue),(0,l["default"])(this.options.useLeafLabel)&&(this.options.useLeafLabel=!this.options.zoomable)},e.prototype._makeSeriesData=function(){var t=this._getBoundMap(),e=this._makeBounds(t);return{boundMap:t,groupBounds:e,seriesDataModel:this._getSeriesDataModel(),startDepth:this.startDepth,isPivot:!0,colorSpectrum:this.options.useColorValue?this.colorSpectrum:null,chartBackground:this.chartBackground,zoomable:this.options.zoomable,isAvailable:function(){return e&&e.length>0}}},e.prototype._makeBoundMap=function(t,e,i){var n=this,o=this._getSeriesDataModel(),r=Object.assign({},this.layout.dimension,this.layout.position),a=o.findSeriesItemsByParent(t);return i=i||r,e=Object.assign(e||{},d["default"].squarify(i,a)),a.forEach(function(t){e=n._makeBoundMap(t.id,e,e[t.id])}),e},e.prototype._makeBounds=function(t){var e=this.startDepth,i=this._getSeriesDataModel(),n=void 0;return n=this.options.zoomable?function(t){return t.depth===e}:function(t){return!t.hasChild},i.map(function(e){return e.map(function(e){var i=t[e.id],o=null;return i&&n(e)&&(o={end:i}),o},!0)},!0)},e.prototype._getBoundMap=function(){return this.boundMap||(this.boundMap=this._makeBoundMap(this.rootId)),this.boundMap},e.prototype._shouldDimmed=function(t,e,i){var n=!1;if(e&&i.id!==e.id&&i.group===e.group){var o=t.findParentByDepth(i.id,e.depth+1);o&&o.parent===e.id&&(n=!0)}return n},e.prototype._renderSeriesLabel=function(t){var e=this,i=this._getSeriesDataModel(),n=this._getBoundMap(),o=this.theme.label,r=this.options.labelTemplate,a=void 0;a=this.options.useLeafLabel?i.findLeafSeriesItems(this.selectedGroup):i.findSeriesItemsByDepth(this.startDepth,this.selectedGroup);var s=a.map(function(t){var i=r?r(t.pickLabelTemplateData()):t.label;return e.decorateLabel(i)}),u=m["default"].boundsToLabelPostionsForTreemap(a,n,o);return this.graphRenderer.renderSeriesLabelForTreemap(t,u,s,o)},e.prototype.resize=function(){this.boundMap=null;for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];c["default"].prototype.resize.apply(this,e)},e.prototype._zoom=function(t,e,i){this._clearSeriesContainer(),this.boundMap=null,this.rootId=t,this.startDepth=e,this.selectedGroup=i,this._renderSeriesArea(this.paper,this._renderGraph.bind(this)),this.animateComponent(!0)},e.prototype.zoom=function(t){var e=t.index;if(this.labelSet.remove(),e===-1)return void this._zoom(y["default"].TREEMAP_ROOT_ID,1,null);var i=this._getSeriesDataModel(),n=i.getSeriesItem(0,e,!0);n&&n.hasChild&&(this._zoom(n.id,n.depth+1,n.group),this.eventBus.fire("afterZoom",e))},e.prototype._makeExportationSeriesData=function(t){var e=t.indexes,i=this._getSeriesDataModel().getSeriesItem(e.groupIndex,e.index,!0);return Object.assign({chartType:this.chartType,indexes:i.indexes})},e.prototype.onHoverSeries=function(t){if(v["default"].isShowLabel(this.options)){var e=this._getSeriesDataModel().getSeriesItem(t.groupIndex,t.index,!0),i=e.colorRatio;this.graphRenderer.showAnimation(t,this.options.useColorValue,.6),i>-1&&this.eventBus.fire("showWedge",i,e.colorValue)}},e.prototype.onHoverOffSeries=function(t){v["default"].isShowLabel(this.options)&&t&&this.graphRenderer.hideAnimation(t,this.options.useColorValue)},e}(c["default"]);s.componentType="series",s.TreemapChartSeries=T},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(189),r=n(o),a=i(173),s=n(a),u=i(158),l=n(u);e["default"]={boundMap:{},_makeBaseBound:function(t){return Object.assign({},t)},_calculateScale:function(t,e,i){return e*i/s["default"].sum(t)},_makeBaseData:function(t,e,i){var n=this._calculateScale((0,r["default"])(t,"value"),e,i),o=t.map(function(t){return{id:t.id,weight:t.value*n}}).sort(function(t,e){return e.weight-t.weight});return o},_worst:function(t,e,i,n){var o=t*t,r=n*n;return Math.max(r*i/o,o/(r*e))},_changedStackDirection:function(t,e,i,n){var o=l["default"].min(e),r=l["default"].max(e),a=this._worst(t,o,r,i),s=this._worst(t+n,Math.min(o,n),Math.max(r,n),i);return s>=a},_isVerticalStack:function(t){return t.height<t.width},_selectBaseSize:function(t){return this._isVerticalStack(t)?t.height:t.width},_calculateFixedSize:function(t,e,i){if(!e){var n=(0,r["default"])(i,"weight");e=s["default"].sum(n)}return e/t},_addBounds:function(t,e,i,n){[t].concat(e).reduce(function(t,e){var o=e.weight/i;return n(o,t,e.id),t+o})},_addBound:function(t,e,i,n,o){this.boundMap[o]={left:t,top:e,width:i,height:n}},_addBoundsForVerticalStack:function(t,e,i,n){var o=this,r=this._calculateFixedSize(i,n,t);this._addBounds(e.top,t,r,function(t,i,n){o._addBound(e.left,i,r,t,n)}),e.left+=r,e.width-=r},_addBoundsForHorizontalStack:function(t,e,i,n){var o=this,r=this._calculateFixedSize(i,n,t);this._addBounds(e.left,t,r,function(t,i,n){o._addBound(i,e.top,t,r,n)}),e.top+=r,e.height-=r},_getAddingBoundsFunction:function(t){return this._isVerticalStack(t)?this._addBoundsForVerticalStack.bind(this):this._addBoundsForHorizontalStack.bind(this)},squarify:function(t,e){var i=this,n=this._makeBaseBound(t),o=this._makeBaseData(e,n.width,n.height),a=[],u=void 0,l=void 0;return this.boundMap={},o.forEach(function(t){var e=(0,r["default"])(a,"weight"),o=s["default"].sum(e);a.length&&i._changedStackDirection(o,e,u,t.weight)&&(l(a,n,u,o),a=[]),a.length||(u=i._selectBaseSize(n),l=i._getAddingBoundsFunction(n)),a.push(t)}),a.length&&l(a,n,u),this.boundMap}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.chartOptions.libType,i=t.chartTheme;return t.libType=e,t.chartType="boxplot",t.chartBackground=i.chart.background,new T(t)}e.__esModule=!0,e["default"]=s;var u=i(240),l=n(u),h=i(241),c=n(h),p=i(154),d=n(p),f=i(164),m=n(f),g=i(148),y=n(g),_=d["default"].SERIES_EXPAND_SIZE,v=d["default"].TEXT_PADDING,T=function(t){function e(){o(this,e);for(var i=arguments.length,n=Array(i),a=0;a<i;a++)n[a]=arguments[a];var s=r(this,t.call.apply(t,[this].concat(n)));return s.supportSeriesLable=!1,s}return a(e,t),e.prototype._makeBoxplotChartBound=function(t,e,i,n,o){var r=t.pointInterval,a=t.barSize,s=t.baseBarSize,u=t.basePosition,l=Math.abs(s*n.ratioDistance),h=s*(1-n.lqRatio),c=u+h+_,p=u+_,d=o,f=void 0;e.left=e.baseLeft+r*d,e.plusTop=0,e.minusTop=0,n.value>=0?(e.plusTop-=l,f=c+e.plusTop):(f=c+e.minusTop,e.minusTop+=l);var m=e.left+r-a/2,g=(n.outliers||[]).map(function(t){return{top:s*(1-t.ratio)+p,left:m+a/2}});return{start:{top:c,left:m,width:a,height:0},end:{top:f,left:m,width:a,height:l},min:{top:s*(1-n.minRatio)+p,left:m,width:a,height:0},max:{top:s*(1-n.maxRatio)+p,left:m,width:a,height:0},median:{top:s*(1-n.medianRatio)+p,left:m,width:a,height:0},outliers:g}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=m["default"].isValidStackOption(this.options.stack),n=this.layout.dimension,o=n.width,r=n.height,a=this._makeBaseDataForMakingBound(o,r);return e.map(function(e,n){var o=n*a.groupSize+t.layout.position.left,r={baseLeft:o,left:o,plusTop:0,minusTop:0,prevStack:null},s=t._makeBoxplotChartBound.bind(t,a,r,i);return e.map(s)})},e.prototype._calculateLeftPositionOfSumLabel=function(t,e){var i=t.left,n=t.width,o=y["default"].getRenderedLabelWidth(e,this.theme.label);return i+(n-o+v)/2},e}(l["default"]);c["default"].mixin(T),s.componentType="series",s.BoxplotChartSeries=T},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.chartType="bullet",t.libType=t.chartOptions.libType,t.chartBackground=t.chartTheme.chart.background,new x(t)}e.__esModule=!0,e["default"]=s;var u=i(240),l=n(u),h=i(148),c=n(h),p=i(154),d=n(p),f=d["default"].BULLET_TYPE_ACTUAL,m=d["default"].BULLET_ACTUAL_HEIGHT_RATIO,g=d["default"].BULLET_TYPE_RANGE,y=d["default"].BULLET_RANGES_HEIGHT_RATIO,_=d["default"].BULLET_TYPE_MARKER,v=d["default"].BULLET_MARKERS_HEIGHT_RATIO,T=d["default"].BULLET_MARKER_DETECT_PADDING,b=d["default"].MAX_HEIGHT_WORD,x=function(t){function e(i){o(this,e);var n=r(this,t.call(this,i));return n.isVertical=i.isVertical,n}return a(e,t),e.prototype._makeSeriesData=function(){var t=this._makeBounds();return{groupBounds:t,seriesDataModel:this._getSeriesDataModel(),isVertical:this.isVertical,isAvailable:function(){return t&&t.length>0;
}}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=this._makeBaseDataForMakingBound(),n={renderedItemCount:0,top:i.categoryAxisTop,left:i.categoryAxisLeft};return e.map(function(e){var o=t._makeBulletChartBound.bind(t,i,n),r=e.map(o);return t._updateIterationData(n,i.itemWidth),r})},e.prototype._makeBaseDataForMakingBound=function(){var t=this._getSeriesDataModel().getGroupCount(),e=this.layout,i=e.dimension,n=i.width,o=i.height,r=e.position,a=r.left,s=r.top,u=void 0,l=void 0;this.isVertical?(s+=o,u=n,l=o):(u=o,l=n);var h=u/t;return{categoryAxisTop:s,categoryAxisLeft:a,categoryAxisWidth:u,valueAxisWidth:l,itemWidth:h}},e.prototype._makeBulletChartBound=function(t,e,i){var n=i.type,o=void 0;return n===f?o=this._makeBarBound(i,m,t,e):n===g?o=this._makeBarBound(i,y,t,e):n===_&&(o=this._makeLineBound(i,v,t,e)),o.type=n,o},e.prototype._makeBarBound=function(t,e,i,n){var o=t.ratioDistance,r=t.endRatio,a=i.itemWidth*e,s=i.valueAxisWidth*o,u=i.valueAxisWidth*r,l=void 0;return l=this.isVertical?this._makeVerticalBarBound(n,i,a,s,u):this._makeHorizontalBarBound(n,i,a,s,u)},e.prototype._makeVerticalBarBound=function(t,e,i,n,o){return{top:t.top-o,left:t.left+(e.itemWidth-i)/2,width:i,height:n}},e.prototype._makeHorizontalBarBound=function(t,e,i,n,o){return{top:t.top+(e.itemWidth-i)/2,left:t.left+o-n,width:n,height:i}},e.prototype._makeLineBound=function(t,e,i,n){var o=i.itemWidth,r=i.valueAxisWidth,a=o*e,s=r*t.endRatio,u=T,l=T,h=void 0,c=void 0;return this.isVertical?(h=n.top-s,c=n.left+(o-a)/2,l=a):(h=n.top+(o-a)/2,c=n.left+s,u=a),{top:h,left:c,width:l,height:u,length:a}},e.prototype._updateIterationData=function(t,e){t.renderedItemCount+=1,this.isVertical?t.left+=e:t.top+=e},e.prototype._renderSeriesArea=function(t,e){l["default"].prototype._renderSeriesArea.call(this,t,e),this.dataProcessor.setGraphColors(this.graphRenderer.getGraphColors())},e.prototype._renderSeriesLabel=function(t){var e=this.theme.label,i=this._getSeriesDataModel(),n=this._getLabelTexts(i),o=this._calculateLabelPositions(i,e);return this.graphRenderer.renderSeriesLabel(t,o,n,e)},e.prototype._getLabelTexts=function(t){var e=this;return t.map(function(t){var i=[];return t.each(function(t){t.type!==g&&i.push(e.decorateLabel(t.endLabel))}),i})},e.prototype._calculateLabelPositions=function(t,e){var i=this,n=this.seriesData.groupBounds,o=c["default"].getRenderedLabelHeight(b,e);return n.map(function(t){var e=[];return t.forEach(function(t){t.type!==g&&e.push(i._makePositionByBound(t,o))}),e})},e.prototype._makePositionByBound=function(t,e){var i=t.top,n=t.left,o={};if(this.isVertical){var r=t.width||t.length;o.top=i-e,o.left=n+r/2}else{var a=t.width||0,s=t.height||t.length;o.top=i+s/2,o.left=n+5+(a||0)}return o},e}(l["default"]);s.componentType="series",s.BulletChartSeries=x},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t){return new C(t)}e.__esModule=!0,e["default"]=r;var a=i(153),s=n(a),u=i(259),l=n(u),h=i(154),c=n(h),p=i(155),d=n(p),f=i(173),m=n(f),g=i(148),y=n(g),_=i(211),v=n(_),T=i(164),b=n(T),x=c["default"].COMPONENT_TYPE_DOM,A=c["default"].MAP_CHART_ZOOM_AREA_HEIGHT,D=c["default"].MAP_CHART_ZOOM_AREA_WIDTH,E=c["default"].CHART_PADDING,S=s["default"].msie&&s["default"].version<=8,C=function(){function t(e){o(this,t),this.className="tui-chart-zoom-area";var i=e.seriesTypes,n=!(!i||!i.length)&&b["default"].isMapChart(i[0]),r=e.dataProcessor.options.legend,a=b["default"].isLegendAlignTop(r.align),s=r.visible!==!1;this.isMapLegendTop=n&&a&&s,this.eventBus=e.eventBus,this.magn=1,this.stackedWheelDelta=0,this.drawingType=x,this._attachToEventBus()}return t.prototype._attachToEventBus=function(){this.eventBus.on("wheel",this.onWheel,this)},t.prototype.render=function(t){var e=void 0;if(!S){var i=m["default"].sum([t.positionMap.series.top,-A,D]);this.isMapLegendTop&&(i=t.positionMap.legend.top-D);var n={top:i,right:E};e=d["default"].create("DIV",this.className),e.innerHTML+=l["default"].ZOOM_BUTTONS,y["default"].renderPosition(e,n),this._attachEvent(e)}return e},t.prototype._findBtnElement=function(t){var e="tui-chart-zoom-btn",i=t;return d["default"].hasClass(t,e)||(i=d["default"].findParentByClass(t,e)),i},t.prototype._zoom=function(t,e){this.eventBus.fire("zoomMap",t,e)},t.prototype._onClick=function(t){var e=t.target||t.srcElement,i=this._findBtnElement(e),n=i.getAttribute("data-magn"),o=this._calculateMagn(n);return o>5?this.magn=5:o<1?this.magn=1:o>=1&&this._zoom(o),t.preventDefault&&t.preventDefault(),!1},t.prototype._attachEvent=function(t){v["default"].on(t,"click",this._onClick,this)},t.prototype._calculateMagn=function(t){return t>0?this.magn+=.1:t<0&&(this.magn-=.1),this.magn},t.prototype.onWheel=function(t,e){var i=this._calculateMagn(t);i>5?this.magn=5:i<1?this.magn=1:i>=1&&this._zoom(i,e)},t}();r.componentType="zoom"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(224),r=n(o),a={HTML_SERIES_LABEL:'<div class="tui-chart-series-label" style="{{ cssText }}"{{ rangeLabelAttribute }}>{{ label }}</div>',TEXT_CSS_TEXT:"left:{{ left }}px;top:{{ top }}px;font-family:{{ fontFamily }};font-size:{{ fontSize }}px;font-weight:{{ fontWeight }}{{opacity}}",TEXT_CSS_TEXT_FOR_LINE_TYPE:"left:{{ left }}%;top:{{ top }}%;font-family:{{ fontFamily }};font-size:{{ fontSize }}px;font-weight:{{ fontWeight }}{{opacity}}",HTML_ZOOM_BUTTONS:'<a class="tui-chart-zoom-btn zoom-in" href="#" data-magn="1"></a><a class="tui-chart-zoom-btn zoom-out" href="#" data-magn="-1"></a>',HTML_SERIES_BLOCK:'<div class="tui-chart-series-block" style="{{ cssText }}">{{ label }}</div>'};e["default"]={tplSeriesLabel:r["default"].template(a.HTML_SERIES_LABEL),tplCssText:r["default"].template(a.TEXT_CSS_TEXT),tplCssTextForLineType:r["default"].template(a.TEXT_CSS_TEXT_FOR_LINE_TYPE),ZOOM_BUTTONS:a.HTML_ZOOM_BUTTONS,tplSeriesBlock:r["default"].template(a.HTML_SERIES_BLOCK)}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var u=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=i(145),h=n(l),c=i(140),p=n(c),d=i(146),f=n(d),m=i(137),g=n(m),y=i(157),_=n(y),v=i(261),T=n(v),b=i(154),x=n(b),A=i(262),D=n(A),E=i(263),S=n(E),C=i(267),L=n(C),M=i(269),P=n(M),w=i(270),O=n(w),R=i(264),I=n(R),k=i(181),B=n(k),N=i(164),F=n(N),G=i(148),H=n(G),V=i(173),j=n(V),z=i(186),W=n(z),Y=function(t){function e(i,n,o,s){r(this,e);var u=a(this,t.call(this));return u.originalRawData=W["default"].deepCopy(i),u.chartType=n,u.options=o,u.seriesTypes=s,u.originalLegendData=null,u.selectLegendIndex=null,u.dynamicData=[],u.defaultValues=[0,500],u.initData(i),u.initZoomedRawData(),u.baseInit(),u.isLineCoordinateType()&&(u.integratedXAxisData=u._integrateXAxisData()),u}return s(e,t),e.prototype._integrateXAxisData=function(){var t=this.rawData.series.line,e=this.options.xAxis||{},i=[],n=!1;return n=(0,p["default"])(e)?e.filter(function(t){return t.type&&F["default"].isDatetimeType(t.type)}):e.type&&F["default"].isDatetimeType(e.type),t.forEach(function(t){t.data.forEach(function(t){(0,g["default"])(t)||i.push(t[0])})}),i=[].concat(o(new Set(i))),n&&(i=i.map(function(t){return new Date(t)})),i.sort(function(t,e){return t-e})},e.prototype.getOriginalRawData=function(){return W["default"].deepCopy(this.originalRawData)},e.prototype.getCurrentData=function(){var t=this.zoomedRawData;return t=t?W["default"].deepCopy(t):this.getOriginalRawData()},e.prototype._filterSeriesDataByIndexRange=function(t,e,i){var n=[].concat(o(t));return n.forEach(function(t){t.data=t.data.slice(e,i+1)}),n},e.prototype._filterRawDataByIndexRange=function(t,e){var i=this,n=u(e,2),o=n[0],r=n[1],a=Object.assign({},t);return Object.entries(a.series).forEach(function(t){var e=u(t,2),n=e[0],s=e[1];a.series[n]=i._filterSeriesDataByIndexRange(s,o,r)}),a.categories&&(a.categories=a.categories.slice(o,r+1)),a},e.prototype._filterSeriesDataByValue=function(t,e,i){var n=F["default"].isDatetimeType(this.options.xAxis.type),r=[].concat(o(t));return r.forEach(function(t){t.data=t.data.filter(function(t){var o=n?new Date(t[0]):t[0];return o>=e&&o<=i})}),r},e.prototype._filterRawDataByValue=function(t,e){var i=this,n=u(e,2),o=n[0],r=n[1],a=Object.assign({},t);return Object.entries(a.series).forEach(function(t){var e=u(t,2),n=e[0],s=e[1];a.series[n]=i._filterSeriesDataByValue(s,o,r)}),a},e.prototype.updateRawDataForZoom=function(t){var e=this.getCurrentData(),i=this.getRawData(),n=this.isLineCoordinateType()?this._filterRawDataByValue.bind(this):this._filterRawDataByIndexRange.bind(this);this.zoomedRawData=n(e,t),i=n(i,t),this.initData(i)},e.prototype.initZoomedRawData=function(){this.zoomedRawData=null},e.prototype.initData=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.rawData=t,e&&(this.originalRawData=W["default"].deepCopy(t),this.originalLegendData=null),this.categoriesMap=null,this.categoriesIsDateTime={},this.stacks=null,this.seriesDataModelMap={},this.legendVisibilities=null,this.zoomedRawData=null,this.seriesGroups=null,this.valuesMap={},this.legendLabels=null,this.legendData=null,this.multilineCategories=null,this.coordinateType=null,this.lineCoordinateType=null},e.prototype.getRawData=function(){return this.rawData},e.prototype.findChartType=function(t){return B["default"].findChartType(this.rawData.seriesAlias,t)},e.prototype._escapeCategories=function(t){return t.map(function(t){return(0,T["default"])(String(t))})},e.prototype._mapCategories=function(t,e){var i=this,n=e+"Axis",o=this.options[n]||{},r=!1;return r=(0,p["default"])(o)?o.filter(function(t){return t.type&&F["default"].isDatetimeType(t.type)}):o.type&&F["default"].isDatetimeType(o.type),t=r?t.map(function(t){return i.chageDatetypeToTimestamp(t)}):this._escapeCategories(t),this.categoriesIsDateTime[e]=r,t},e.prototype._processCategories=function(t){var e=this.rawData.categories,i={};return(0,p["default"])(e)?i[t]=this._mapCategories(e,t):e&&(e.x&&(i.x=this._mapCategories(e.x,"x")),e.y&&(i.y=this._mapCategories(e.y,"y").reverse())),i},e.prototype.getCategories=function(t){var e=t?"y":"x",i=[];return this.categoriesMap||(this.categoriesMap=this._processCategories(e)),(0,f["default"])(t)?i=this.categoriesMap[e]||[]:Object.values(this.categoriesMap).every(function(t){return i=t,!1}),i},e.prototype.getCategorieDateType=function(t){var e=t?"y":"x";return this.categoriesIsDateTime[e]},e.prototype.chageDatetypeToTimestamp=function(t){var e=new Date(t);return e.getTime()>0||(e=new Date(parseInt(t,10))),e.getTime()||t},e.prototype.getCategoryCount=function(t){var e=this.getCategories(t);return e?e.length:0},e.prototype.hasCategories=function(t){return!!this.getCategoryCount(t)},e.prototype.isXCountGreaterThanYCount=function(t){var e=this.getSeriesDataModel(t);return e.isXCountGreaterThanYCount()},e.prototype.hasXValue=function(t){var e=this.isXCountGreaterThanYCount(t);return!this.hasCategories(e)||e},e.prototype.hasYValue=function(t){var e=this.isXCountGreaterThanYCount(t);return!this.hasCategories(e)||!e},e.prototype.getCategory=function(t,e){return this.getCategories(e)[t]},e.prototype.findCategoryIndex=function(t){var e=this,i=this.getCategories(),n=this.getCategorieDateType(),o=null;return i.forEach(function(i,r){return n&&(t=e.chageDatetypeToTimestamp(t)),i===t&&(o=r),(0,g["default"])(o)}),o},e.prototype.findAbsoluteCategoryIndex=function(t){var e=this.originalRawData?this.originalRawData.categories:null,i=-1;return e?(e.forEach(function(e,n){var o=e===t;return o&&(i=n),!o}),i):i},e.prototype._getTooltipCategory=function(t,e){var i=this.getCategory(t,e),n=e?"yAxis":"xAxis",o=this.options[n]||{},r=this.options.tooltip||{};return F["default"].isDatetimeType(r.type)?i=H["default"].formatDate(i,r.dateFormat):F["default"].isDatetimeType(o.type)&&(i=H["default"].formatDate(i,o.dateFormat)),i},e.prototype.makeTooltipCategory=function(t,e,i){var n=!i,o=this._getTooltipCategory(t,n),r=this.getCategoryCount(!n);return r&&(o+=", "+this._getTooltipCategory(r-e-1,!n)),o},e.prototype.getStacks=function(t){return this.stacks||(this.stacks=B["default"].pickStacks(this.rawData.series[t])),this.stacks},e.prototype.getStackCount=function(t){return this.getStacks(t).length},e.prototype.findStackIndex=function(t){return(0,_["default"])(t,this.getStacks())},e.prototype.isLineCoordinateType=function(){var t=this.lineCoordinateType;if(!(0,f["default"])(t)){var e=this.chartType;t=F["default"].isLineTypeChart(e)&&!this.hasCategories(),this.lineCoordinateType=t}return t},e.prototype.isCoordinateType=function(){var t=this.coordinateType;if(!(0,f["default"])(t)){var e=this.chartType;t=F["default"].isCoordinateTypeChart(e),t=t||F["default"].isLineScatterComboChart(e,this.seriesTypes),t=t||F["default"].isLineTypeChart(e)&&!this.hasCategories(),this.coordinateType=t}return t},e.prototype.getSeriesDataModel=function(t){if(!this.seriesDataModelMap[t]){var e=this.findChartType(t),i=this.rawData.series[t],n=void 0;n=F["default"].isBoxplotChart(this.chartType)?L["default"]:F["default"].isTreemapChart(this.chartType)?O["default"]:F["default"].isBulletChart(this.chartType)?P["default"]:S["default"],this.seriesDataModelMap[t]=new n(i,e,this.options,this.getFormatFunctions(),this.isCoordinateType())}return this.seriesDataModelMap[t]},e.prototype.getOption=function(t){return this.options[t]},e.prototype.getGroupCount=function(t){return this.getSeriesDataModel(t).getGroupCount()},e.prototype._pushCategory=function(t){this.rawData.categories&&(this.rawData.categories.push(t),this.originalRawData.categories.push(t))},e.prototype._shiftCategory=function(){this.rawData.categories&&(this.rawData.categories.shift(),this.originalRawData.categories.shift())},e.prototype._findRawSeriesDatumByName=function(t,e){var i=this.rawData.series[e],n=null;return i.forEach(function(e){var i=e.name===t;return i&&(n=e),!i}),n},e.prototype._pushValue=function(t,e,i){var n=this._findRawSeriesDatumByName(t.name,i);t.data.push(e),n&&n.data.push(e)},e.prototype._pushValues=function(t,e,i){var n=this;t.forEach(function(t,o){n._pushValue(t,e[o],i)})},e.prototype._pushSeriesData=function(t){var e=this;if("combo"!==this.chartType&&(0,p["default"])(t)){var i=t;t={},t[this.chartType]=i}Object.entries(this.originalRawData.series).forEach(function(i){var n=u(i,2),o=n[0],r=n[1];e._pushValues(r,t[o],o)})},e.prototype._shiftValues=function(t,e){var i=this;t.forEach(function(t){var n=i._findRawSeriesDatumByName(t.name,e);t.data.shift(),n&&n.data.shift()})},e.prototype._shiftSeriesData=function(){var t=this;Object.entries(this.originalRawData.series).forEach(function(e){var i=u(e,2),n=i[0],o=i[1];t._shiftValues(o,n)})},e.prototype.addDynamicData=function(t,e){this.dynamicData.push({category:t,values:e})},e.prototype._pushDynamicData=function(t){this._pushCategory(t.category),this._pushSeriesData(t.values)},e.prototype._pushDynamicDataForCoordinateType=function(t){var e=this;Object.values(this.originalRawData.series).forEach(function(i){e._pushValue(i,t[i.name])})},e.prototype.addDataFromDynamicData=function(){var t=this.dynamicData.shift();return t&&(this.isCoordinateType()?this._pushDynamicDataForCoordinateType(t.values):this._pushDynamicData(t),this.initData(this.rawData)),!!t},e.prototype.shiftData=function(){this._shiftCategory(),this._shiftSeriesData(),this.initData(this.rawData)},e.prototype.addDataFromRemainDynamicData=function(t){var e=this,i=this.dynamicData;this.dynamicData=[],i.forEach(function(i){e._pushCategory(i.category),e._pushSeriesData(i.values),t&&(e._shiftCategory(),e._shiftSeriesData())}),this.initData(this.rawData)},e.prototype._eachByAllSeriesDataModel=function(t){var e=this,i=this.seriesTypes||[this.chartType];i.forEach(function(i){return t(e.getSeriesDataModel(i),i)})},e.prototype.isValidAllSeriesDataModel=function(){var t=!0;return this._eachByAllSeriesDataModel(function(e){t=!!e.getGroupCount()}),t},e.prototype._makeSeriesGroups=function(){var t=[];this._eachByAllSeriesDataModel(function(e){e.each(function(e,i){t[i]||(t[i]=[]),t[i]=t[i].concat(e.items)})});var e=t.map(function(t){return new I["default"](t)});return e},e.prototype.getSeriesGroups=function(){return this.seriesGroups||(this.seriesGroups=this._makeSeriesGroups()),this.seriesGroups},e.prototype.getValue=function(t,e,i){return this.getSeriesDataModel(i).getValue(t,e)},e.prototype.getDefaultDatetimeValues=function(){var t=36e5,e=Date.now();return[e-t,e]},e.prototype.isSeriesDataEmpty=function(t){var e=this.rawData,i=e&&!e.series;return!e||i||!e.series[t]||e.series[t]&&!e.series[t].length},e.prototype.isLimitOptionsEmpty=function(t){var e=this.options[t]||{};return(0,h["default"])(e.min)&&(0,h["default"])(e.max)},e.prototype.isLimitOptionsInsufficient=function(t){var e=this.options[t]||{};return(0,h["default"])(e.min)||(0,h["default"])(e.max)},e.prototype._createValues=function(t,e,i){var n=void 0,o=this.options,r=o.plot,a=o[i]||{},s=a.type,u=this.isSeriesDataEmpty(t),l=this.isLimitOptionsEmpty(i),h=this.isLimitOptionsInsufficient(i),c=F["default"].isLineChart(t)||F["default"].isAreaChart(t)||F["default"].isLineAreaComboChart(t,this.seriesTypes),p=this.defaultValues;if(F["default"].isComboChart(t))n=[],this._eachByAllSeriesDataModel(function(t){n=n.concat(t.getValues(e))});else if(u&&h)if(!l&&h&&(p=p.concat([a.min||a.max])),"x"===e&&"datetime"===s){if(n=this.getDefaultDatetimeValues(),c&&r){var d=this.getValuesFromPlotOptions(r,s);n=n.concat(d)}}else n=p;else n=this.getSeriesDataModel(t).getValues(e);return n},e.prototype.getValuesFromPlotOptions=function(t,e){var i=[];return t.lines&&t.lines.forEach(function(t){i.push("datetime"!==e?t.value:new Date(t.value))}),t.bands&&t.bands.forEach(function(t){var n=t.range.map(function(t){return"datetime"!==e?t:new Date(t)});i=i.concat(n)}),i},e.prototype.getValues=function(t,e,i){var n=t+e;return this.valuesMap[n]||(this.valuesMap[n]=this._createValues(t,e,i)),this.valuesMap[n]},e.prototype.eachBySeriesGroup=function(t,e){this._eachByAllSeriesDataModel(function(i,n){i.each(function(e,i){t(e,i,n)},e)})},e.prototype._pickLegendLabel=function(t){return!(0,g["default"])(t)&&t.name?(0,T["default"])(t.name):null},e.prototype._isVisibleLegend=function(t){var e=!0;return((0,g["default"])(t)||(0,f["default"])(t.visible)&&t.visible===!1)&&(e=!1),e},e.prototype._pickLegendData=function(t){var e=this.rawData.series,i={},n=void 0;return"visibility"===t?n=this._isVisibleLegend:"label"===t&&(n=this._pickLegendLabel),n&&Object.entries(e).forEach(function(t){var e=u(t,2),o=e[0],r=e[1],a=r.map(n);(0,f["default"])(a)&&(i[o]=a)}),i},e.prototype.getLegendLabels=function(t){return this.legendLabels||(this.legendLabels=this._pickLegendData("label")),this.legendLabels[t]||this.legendLabels},e.prototype.getLegendVisibility=function(t){return this.legendVisibilities||(this.legendVisibilities=this._pickLegendData("visibility")),this.legendVisibilities[t]||this.legendVisibilities},e.prototype._makeLegendData=function(){var t,e=this.getLegendLabels(this.chartType),i=this.getLegendVisibility(),n=this.seriesTypes||[this.chartType],r=void 0;(0,p["default"])(e)?(r=[this.chartType],r[this.chartType]=e):(n=this.seriesTypes,r=e);var a=n.map(function(t){return r[t].map(function(e,n){var o=(0,p["default"])(i[t]);return{chartType:t,label:e,visible:o?i[t][n]:i[n]}})});return(t=[]).concat.apply(t,o(a))},e.prototype.getLegendData=function(){return this.legendData||(this.legendData=this._makeLegendData()),this.originalLegendData||(this.originalLegendData=this.legendData),this.legendData},e.prototype.getOriginalLegendData=function(){return this.originalLegendData},e.prototype.getLegendItem=function(t){return this.getLegendData()[t]},e.prototype.getFirstItemLabel=function(t){return this.getSeriesDataModel(t).getFirstItemLabel()},e.prototype.addDataRatiosOfPieChart=function(t){this.getSeriesDataModel(t).addDataRatiosOfPieChart()},e.prototype.addDataRatiosForCoordinateType=function(t,e,i){F["default"].isLineTypeChart(t)&&this._addStartValueToAllSeriesItem(e.yAxis,t),this.getSeriesDataModel(t).addDataRatiosForCoordinateType(e,i)},e.prototype._addStartValueToAllSeriesItem=function(t,e){var i=0;t.min>=0?i=t.min:t.max<=0&&(i=t.max),this.getSeriesDataModel(e).addStartValueToAllSeriesItem(i)},e.prototype.addDataRatios=function(t,e,i){var n=this.getSeriesDataModel(i);this._addStartValueToAllSeriesItem(t,i),n.addDataRatios(t,e)},e.prototype.addDataRatiosForTreemapChart=function(t,e){this.getSeriesDataModel(e).addDataRatios(t)},e.prototype._createBaseValuesForNormalStackedChart=function(t){var e=this.getSeriesDataModel(t),i=[];return e.each(function(t){var e=t._makeValuesMapPerStack();Object.values(e).forEach(function(t){var e=j["default"].sumPlusValues(t),n=j["default"].sumMinusValues(t);i=i.concat([e,n])})}),i},e.prototype.createBaseValuesForLimit=function(t,e,i,n,o){var r=void 0;return F["default"].isComboChart(this.chartType)&&e?(r=this.getValues(this.chartType,n),F["default"].isNormalStackChart(t,i)&&(r=r.concat(this._createBaseValuesForNormalStackedChart(t)))):r=F["default"].isTreemapChart(t)?this.getValues(t,"colorValue"):F["default"].isNormalStackChart(t,i)?this._createBaseValuesForNormalStackedChart(t):this.getValues(t,n,o),r},e.prototype.findOverflowItem=function(t,e){var i=this.getSeriesDataModel(t),n=i.getMaxValue("r"),o=function(t){return t.r/n>x["default"].HALF_RATIO};return{minItem:i.findMinSeriesItem(e,o),maxItem:i.findMaxSeriesItem(e,o)}},e.prototype.setGraphColors=function(t){this.graphColors=t},e.prototype.getGraphColors=function(){return this.graphColors},e.prototype.isComboDonutShowOuterLabel=function(){var t=this.options.series;return t&&t.pie2&&"outer"===t.pie2.labelAlign},e}(D["default"]);e["default"]=Y},function(t,e){"use strict";function i(t){var e={'"':"quot","&":"amp","<":"lt",">":"gt","'":"#39"};return t.replace(/[<>&"']/g,function(t){return e[t]?"&"+e[t]+";":t})}t.exports=i},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(187),a=n(r),s=i(156),u=n(s),l=i(152),h=n(l),c=i(158),p=n(c),d=i(148),f=n(d),m=i(173),g=n(m),y=function(){function t(){o(this,t)}return t.prototype.baseInit=function(){this.formatFunctions=null},t.prototype.getValues=function(){},t.prototype.getCurrentData=function(){},t.prototype.getMaxValue=function(t,e){return p["default"].max(this.getValues(t,e))},t.prototype.getMinValue=function(t,e){return p["default"].min(this.getValues(t,e))},t.prototype.getFormattedMaxValue=function(t,e,i){var n=this.getMaxValue(t,i),o=this.getFormatFunctions();return f["default"].formatValue({value:n,formatFunctions:o,chartType:t,areaType:e,valueType:i})},t.prototype.getFormattedMinValue=function(t,e,i){var n=this.getMinValue(t,i),o=this.getFormatFunctions();return f["default"].formatValue({value:n,formatFunctions:o,chartType:t,areaType:e,valueType:i})},t.prototype._pickMaxLenUnderPoint=function(t){var e=0;return t.forEach(function(t){var i=g["default"].getDecimalLength(t);i>e&&(e=i)}),e},t.prototype._isZeroFill=function(t){return t.length>2&&"0"===t.charAt(0)},t.prototype._isDecimal=function(t){var e=t.indexOf(".");return e>-1&&e<t.length-1},t.prototype._isComma=function(t){return t.indexOf(",")>-1},t.prototype._formatToZeroFill=function(t,e){var i=e<0;return e=f["default"].formatToZeroFill(Math.abs(e),t),(i?"-":"")+e},t.prototype._formatToDecimal=function(t,e){return f["default"].formatToDecimal(e,t)},t.prototype._findSimpleTypeFormatFunctions=function(t){var e=[],i=void 0;if(this._isDecimal(t))i=this._pickMaxLenUnderPoint([t]),e=[this._formatToDecimal.bind(this,i)];else if(this._isZeroFill(t))return i=t.length,e=[this._formatToZeroFill.bind(this,i)];return this._isComma(t)&&e.push(f["default"].formatToComma),e},t.prototype._findFormatFunctions=function(){var t=(0,h["default"])(this.options,"chart","format"),e=[];return(0,a["default"])(t)?e=[t]:(0,u["default"])(t)&&(e=this._findSimpleTypeFormatFunctions(t)),e},t.prototype.getFormatFunctions=function(){return this.formatFunctions||(this.formatFunctions=this._findFormatFunctions()),this.formatFunctions},t}();e["default"]=y},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var a=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=i(140),u=n(s),l=i(146),h=n(l),c=i(152),p=n(c),d=i(264),f=n(d),m=i(265),g=n(m),y=i(266),_=n(y),v=i(164),T=n(v),b=i(173),x=n(b),A=i(158),D=n(A),E=Array.prototype.concat,S=function(){function t(e,i,n,o,a){r(this,t),this.chartType=i,this.options=n||{},this.formatFunctions=o,this.rawSeriesData=e||[],this.isCoordinateType=a,this.baseGroups=null,this.groups=null,this.options.series=this.options.series||{},this.isDivergingChart=T["default"].isDivergingChart(i,this.options.series.diverging),this.valuesMap={},this._removeRangeValue()}return t.prototype._removeRangeValue=function(){var t=(0,p["default"])(this.options,"series")||{},e=T["default"].isAllowRangeData(this.chartType)&&!T["default"].isValidStackOption(t.stack)&&!t.spline;e||this.isCoordinateType||Object.values(this.rawSeriesData).forEach(function(t){(0,u["default"])(t.data)&&t.data.forEach(function(e,i){if((0,h["default"])(e)){var n=E.apply(e),o=a(n,1);t.data[i]=o[0]}})})},t.prototype._createBaseGroups=function(){var t=this.chartType,e=this.formatFunctions,i=this.isDivergingChart,n=this.isCoordinateType,o=this.options.xAxis,r=T["default"].isPieChart(this.chartType),a=T["default"].isHeatmapChart(this.chartType)||T["default"].isTreemapChart(this.chartType),s=void 0,l=void 0;return n?(l=_["default"],s=function(t){t.sort(function(t,e){return t.x-e.x})}):(l=g["default"],s=function(){}),this.rawSeriesData.map(function(c){var p=void 0,d=void 0,f=void 0;d=(0,u["default"])(c)?c:[].concat(c.data),a||(p=c.stack),c.name&&(f=c.name),(n||r)&&(d=d.filter(h["default"]));var m=d.map(function(n,r){return new l({datum:n,chartType:t,formatFunctions:e,index:r,legendName:f,stack:p,isDivergingChart:i,xAxisType:o.type,dateFormat:o.dateFormat})});return s(m),m})},t.prototype._getBaseGroups=function(){return this.baseGroups||(this.baseGroups=this._createBaseGroups()),this.baseGroups},t.prototype._createSeriesGroupsFromRawData=function(t){var e=this._getBaseGroups();return t&&(e=D["default"].pivot(e)),e.map(function(t){return new f["default"](t)})},t.prototype._getSeriesGroups=function(){return this.groups||(this.groups=this._createSeriesGroupsFromRawData(!0)),this.groups},t.prototype.getGroupCount=function(){return this._getSeriesGroups().length},t.prototype._getPivotGroups=function(){return this.pivotGroups||(this.pivotGroups=this._createSeriesGroupsFromRawData()),this.pivotGroups},t.prototype.getSeriesGroup=function(t,e){return e?this._getPivotGroups()[t]:this._getSeriesGroups()[t]},t.prototype.getFirstSeriesGroup=function(t){return this.getSeriesGroup(0,t)},t.prototype.getFirstItemLabel=function(){return this.getFirstSeriesGroup().getFirstSeriesItem().label},t.prototype.getSeriesItem=function(t,e,i){return this.getSeriesGroup(t,i).getSeriesItem(e)},t.prototype.getFirstSeriesItem=function(){return this.getSeriesItem(0,0)},t.prototype.getValue=function(t,e){return this.getSeriesItem(t,e).value},t.prototype.getMinValue=function(t){return D["default"].min(this.getValues(t))},t.prototype.getMaxValue=function(t){return D["default"].max(this.getValues(t))},t.prototype._findSeriesItem=function(t){var e=void 0;return this.each(function(i){return e=i.find(t),!e}),e},t.prototype._findSeriesItemByValue=function(t,e,i){return i=i||function(){return null},this._findSeriesItem(function(n){return n&&n[t]===e&&i(n)})},t.prototype.findMinSeriesItem=function(t,e){var i=this.getMinValue(t);return this._findSeriesItemByValue(t,i,e)},t.prototype.findMaxSeriesItem=function(t,e){var i=this.getMaxValue(t);return this._findSeriesItemByValue(t,i,e)},t.prototype._createValues=function(t){var e,i=this.map(function(e){return e.getValues(t)});return i=(e=[]).concat.apply(e,o(i)),i.filter(function(t){return!isNaN(t)})},t.prototype.getValues=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"value";return this.valuesMap[t]||(this.valuesMap[t]=this._createValues(t)),this.valuesMap[t]},t.prototype.isXCountGreaterThanYCount=function(){return this.getValues("x").length>this.getValues("y").length},t.prototype._addRatiosWhenNormalStacked=function(t){var e=Math.abs(t.max-t.min);this.each(function(t){t.addRatios(e)})},t.prototype._calculateBaseRatio=function(){var t=this.getValues(),e=x["default"].sumPlusValues(t),i=Math.abs(x["default"].sumMinusValues(t)),n=e>0&&i>0?.5:1;return n},t.prototype._addRatiosWhenPercentStacked=function(){var t=this._calculateBaseRatio();this.each(function(e){e.addRatiosWhenPercentStacked(t)})},t.prototype._addRatiosWhenDivergingStacked=function(){this.each(function(t){var e=t.pluck("value"),i=x["default"].sumPlusValues(e),n=Math.abs(x["default"].sumMinusValues(e));t.addRatiosWhenDivergingStacked(i,n)})},t.prototype._makeSubtractionValue=function(t){var e=T["default"].allowMinusPointRender(this.chartType),i=0;return!e&&T["default"].isMinusLimit(t)?i=t.max:(e||t.min>=0)&&(i=t.min),i},t.prototype._addRatios=function(t){var e=Math.abs(t.max-t.min),i=this._makeSubtractionValue(t);this.each(function(t){t.addRatios(e,i)})},t.prototype.addDataRatios=function(t,e){var i=T["default"].isAllowedStackOption(this.chartType);i&&T["default"].isNormalStack(e)?this._addRatiosWhenNormalStacked(t):i&&T["default"].isPercentStack(e)?this.isDivergingChart?this._addRatiosWhenDivergingStacked():this._addRatiosWhenPercentStacked():this._addRatios(t)},t.prototype.addDataRatiosOfPieChart=function(){this.each(function(t){var e=x["default"].sum(t.pluck("value"));t.addRatios(e)})},t.prototype.addDataRatiosForCoordinateType=function(t,e){var i=t.xAxis,n=t.yAxis,o=e?D["default"].max(this.getValues("r")):0,r=void 0,a=void 0,s=void 0,u=void 0;i&&(r=Math.abs(i.max-i.min),a=this._makeSubtractionValue(i)),n&&(s=Math.abs(n.max-n.min),u=this._makeSubtractionValue(n)),this.each(function(t){t.each(function(t){t&&(t.addRatio("x",r,a),t.addRatio("y",s,u),t.addRatio("r",o,0),(0,h["default"])(t.start)&&t.addRatio("start",s,u))})})},t.prototype.addStartValueToAllSeriesItem=function(t){this.each(function(e){e.addStartValueToAllSeriesItem(t)})},t.prototype.hasRangeData=function e(){
var e=!1;return this.each(function(t){return e=t.hasRangeData(),!e}),e},t.prototype.each=function(t,e){var i=e?this._getPivotGroups():this._getSeriesGroups();i.forEach(function(e,i){return t(e,i)})},t.prototype.map=function(t,e){var i=[];return this.each(function(e,n){i.push(t(e,n))},e),i},t}();e["default"]=S},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(146),s=n(a),u=i(189),l=n(u),h=i(173),c=n(h),p=function(){function t(e){o(this,t),this.items=e,this.valuesMap={},this.valuesMapPerStack=null}return t.prototype.getSeriesItemCount=function(){return this.items.length},t.prototype.getSeriesItem=function(t){return this.items[t]},t.prototype.getFirstSeriesItem=function(){return this.getSeriesItem(0)},t.prototype._createValues=function(t){var e=[];return this.each(function(i){i&&((0,s["default"])(i[t])&&e.push(i[t]),(0,s["default"])(i.start)&&e.push(i.start))}),e},t.prototype.getValues=function(t){return t=t||"value",this.valuesMap[t]||(this.valuesMap[t]=this._createValues(t)),this.valuesMap[t]},t.prototype._makeValuesMapPerStack=function(){var t={};return this.each(function(e){t[e.stack]||(t[e.stack]=[]),t[e.stack].push(e.value)}),t},t.prototype.getValuesMapPerStack=function(){return this.valuesMapPerStack||(this.valuesMapPerStack=this._makeValuesMapPerStack()),this.valuesMapPerStack},t.prototype._makeSumMapPerStack=function(){var t=this.getValuesMapPerStack(),e={};return Object.entries(t).forEach(function(t){var i=r(t,2),n=i[0],o=i[1];e[n]=c["default"].sum(o.map(function(t){return Math.abs(t)}))}),e},t.prototype.addStartValueToAllSeriesItem=function(t){this.each(function(e){e&&e.addStart(t)})},t.prototype.addRatiosWhenPercentStacked=function(t){var e=this._makeSumMapPerStack();this.each(function(i){var n=e[i.stack];i.addRatio(n,0,t)})},t.prototype.addRatiosWhenDivergingStacked=function(t,e){this.each(function(i){var n=i.value>=0?t:e;i.addRatio(n,0,.5)})},t.prototype.addRatios=function(t,e){this.each(function(i){i&&i.addRatio(t,e)})},t.prototype.hasRangeData=function e(){var e=!1;return this.each(function(t){return e=t&&t.isRange,!e}),e},t.prototype.each=function(t){this.items.forEach(t)},t.prototype.map=function(t){return this.items.map(t)},t.prototype.pluck=function(t){var e=this.items.filter(s["default"]);return(0,l["default"])(e,t)},t.prototype.find=function(t){var e=void 0;return this.each(function(i){return t(i)&&(e=i),!e}),e||null},t.prototype.filter=function(t){return this.items.filter(t)},t}();e["default"]=p},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(146),s=n(a),u=i(137),l=n(u),h=i(154),c=n(h),p=i(148),d=n(p),f=i(173),m=n(f),g=i(164),y=n(g),_=function(){function t(e){o(this,t),this.chartType=e.chartType,this.stack=e.stack||c["default"].DEFAULT_STACK,this.isDivergingChart=e.isDivergingChart,this.formatFunctions=e.formatFunctions,this.isRange=!1,this.value=null,this.label=null,this.tooltipLabel=null,this.ratio=null,this.end=null,this.endLabel=null,this.endRatio=null,this.start=null,this.startLabel=null,this.startRatio=null,this.ratioDistance=null,y["default"].isBulletChart(this.chartType)&&(this.type=e.type),this.legendName=e.legendName,this._initValues(e.datum,e.index)}return t.prototype._initValues=function(t,e){var i=this,n=this._createValues(t),o=n.length>1,a=r(n,1),s=a[0];this.value=this.end=s,this.index=e,this.isDivergingChart&&(s=Math.abs(s)),(0,l["default"])(s)?this._setLabel(""):["label","tooltipLabel"].forEach(function(t){i[t]=d["default"].formatValue({value:s,formatFunctions:i.formatFunctions,chartType:i.chartType,areaType:"tooltipLabel"===t?"makingTooltipLabel":"makingSeriesLabel",legendName:i.legendName})}),this.endLabel=this.label,o&&(this.addStart(n[1],!0),this._updateFormattedValueforRange(),this.isRange=!0)},t.prototype._setLabel=function(t){this.label=t,this.tooltipLabel=t},t.prototype._createValues=function(t){var e=[].concat(t).map(function(t){return(0,l["default"])(t)?null:parseFloat(t)});return e=e.sort(function(t,e){return t<0&&e<0?t-e:e-t})},t.prototype.addStart=function(t){(0,l["default"])(this.start)&&(this.start=t,this.startLabel=d["default"].formatValue({value:t,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series",legendName:this.legendName}))},t.prototype._updateFormattedValueforRange=function(){this._setLabel(this.startLabel+" ~ "+this.endLabel)},t.prototype.addRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;this.ratio=this.endRatio=m["default"].calculateRatio(this.value,t,e,i),(0,s["default"])(this.start)&&(this.startRatio=m["default"].calculateRatio(this.start,t,e,i),this.ratioDistance=Math.abs(this.endRatio-this.startRatio))},t.prototype._getFormattedValueForTooltip=function(t){return d["default"].formatValue({value:this[t],formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t,legendName:this.legendName})},t.prototype.pickValueMapForTooltip=function(){var t={value:this._getFormattedValueForTooltip("value"),ratio:this.ratio};return(0,s["default"])(this.start)&&(t.start=this._getFormattedValueForTooltip("start"),t.end=this._getFormattedValueForTooltip("end"),t.startRatio=this.startRatio,t.endRatio=this.endRatio),t},t}();e["default"]=_},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(140),s=n(a),u=i(149),l=n(u),h=i(146),c=n(h),p=i(150),d=n(p),f=i(164),m=n(f),g=i(148),y=n(g),_=function(){function t(e){o(this,t),this.chartType=e.chartType,this.formatFunctions=e.formatFunctions,this.xAxisType=e.xAxisType,this.dateFormat=e.dateFormat,this.ratioMap={},this._initData(e.datum,e.index)}return t.prototype._initData=function(t,e){var i=void 0;if((0,s["default"])(t))if(this.x=t[0]||0,this.y=t[1]||0,m["default"].isBubbleChart(this.chartType)){var n=r(t,4);this.r=n[2];var o=n[3];this.label=void 0===o?"":o}else{var a=r(t,3),u=a[2];this.label=void 0===u?"":u}else this.x=t.x,this.y=t.y,this.r=t.r,this.label=t.label||"";if(m["default"].isDatetimeType(this.xAxisType)&&(i=(0,l["default"])(this.x)?this.x:new Date(this.x),this.x=i.getTime()||0),this.index=e,!this.label){m["default"].isLineTypeChart(this.chartType)&&m["default"].isDatetimeType(this.xAxisType)?this.label=y["default"].formatDate(this.x,this.dateFormat):this.label=y["default"].formatValue({value:this.x,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series"});var h=y["default"].formatValue({value:this.y,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series"});this.label+=",&nbsp;"+h}},t.prototype.addStart=function(t){this.start=t},t.prototype.addRatio=function(t,e,i){!(0,c["default"])(this.ratioMap[t])&&e&&(this.ratioMap[t]=(this[t]-i)/e)},t.prototype._getFormattedValueForTooltip=function(t){var e=this.ratioMap[t],i=this[t],n=y["default"].formatValue({value:i,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t});return(0,d["default"])(e)?n:i},t.prototype.pickValueMapForTooltip=function(){var t={x:this._getFormattedValueForTooltip("x"),y:this._getFormattedValueForTooltip("y"),xRatio:this.ratioMap.x,yRatio:this.ratioMap.y};return(0,c["default"])(this.r)&&(t.r=this._getFormattedValueForTooltip("r"),t.rRatio=this.ratioMap.r),t},t}();e["default"]=_},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(268),u=n(s),l=i(263),h=n(l),c=i(140),p=n(c),d=Array.prototype.concat,f=function(t){function e(i,n,a,s){o(this,e);var u=r(this,t.call(this));return u.chartType=n,u.options=a||{},u.formatFunctions=s,u.rawSeriesData=i||[],u.baseGroups=null,u.groups=null,u.options.series=u.options.series||{},u.valuesMap={},u}return a(e,t),e.prototype._createBaseGroups=function(){var t=this.chartType,e=this.formatFunctions;return this.rawSeriesData.map(function(i){var n=(0,p["default"])(i)?i:[].concat(i.data),o=n.map(function(n,o){return new u["default"]({datum:n,chartType:t,formatFunctions:e,index:o,legendName:i.name})});return o})},e.prototype._createValues=function(){var t=[];return this.map(function(e){return e.items.forEach(function(e){t.push(e.min),t.push(e.max),t.push(e.uq),t.push(e.lq),t.push(e.median)})}),t=d.apply([],t),t.filter(function(t){return!isNaN(t)})},e}(h["default"]);e["default"]=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(146),s=n(a),u=i(137),l=n(u),h=i(148),c=n(h),p=i(173),d=n(p),f=function(){function t(e){o(this,t),this.chartType=e.chartType,this.formatFunctions=e.formatFunctions,this.value=null,this.label=null,this.ratio=null,this.min=null,this.minLabel=null,this.minRatio=null,this.max=null,this.maxLabel=null,this.maxRatio=null,this.median=null,this.medianLabel=null,this.medianRatio=null,this.lq=null,this.lqLabel=null,this.lqRatio=null,this.uq=null,this.uqLabel=null,this.uqRatio=null,this.ratioDistance=null,this.legendName=e.legendName,this._initValues(e.datum,e.index)}return t.prototype._initValues=function(t,e){var i=this,n=this._createValues(t),o=r(n,5),a=o[0],s=o[1],u=o[2],l=o[3],h=o[4],p=n.length>5,d=void 0,f=function(t){return c["default"].formatValue({value:t,formatFunctions:i.formatFunctions,chartType:i.chartType,areaType:"makingSeriesLabel",legendName:i.legendName})};this.value=this.max=h,this.uq=l,this.median=u,this.lq=s,this.min=a,this.index=e,p&&(this.outliers=[],d=this.outliers,n.slice(5).forEach(function(t){d.push({value:t,label:f(t)})})),this.label=f(h),this.uqLabel=f(l),this.medianLabel=f(u),this.lqLabel=f(s),this.minLabel=f(a),this.maxLabel=this.label},t.prototype._createValues=function(t){return[].concat(t).map(function(t){return(0,l["default"])(t)?null:parseFloat(t)})},t.prototype.addStart=function(t){(0,l["default"])(this.min)&&(this.min=t,this.minLabel=c["default"].formatValue({value:t,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series",legendName:this.legendName}))},t.prototype._updateFormattedValueforRange=function(){this.label=this.minLabel+"~"+this.maxLabel},t.prototype.addRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=d["default"].calculateRatio;this.ratio=this.maxRatio=n(this.max,t,e,i),this.uqRatio=n(this.uq,t,e,i),this.medianRatio=n(this.median,t,e,i),this.lqRatio=n(this.lq,t,e,i),this.minRatio=n(this.min,t,e,i),(this.outliers||[]).forEach(function(o){o.ratio=n(o.value,t,e,i)}),this.ratioDistance=Math.abs(this.uqRatio-this.lqRatio)},t.prototype._getFormattedValueForTooltip=function(t){return c["default"].formatValue({value:this[t],formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t,legendName:this.legendName})},t.prototype.pickValueMapForTooltip=function(){var t={value:this._getFormattedValueForTooltip("value"),ratio:this.ratio};return(0,s["default"])(this.min)&&(t.min=this._getFormattedValueForTooltip("min"),t.max=this._getFormattedValueForTooltip("max"),t.minRatio=this.minRatio,t.maxRatio=this.maxRatio,t.maxLabel=this.maxLabel,t.minLabel=this.minLabel,t.uqLabel=this.uqLabel,t.lqLabel=this.lqLabel,t.medianLabel=this.medianLabel,t.outliers=this.outliers),t},t}();e["default"]=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(265),u=n(s),l=i(263),h=n(l),c=i(154),p=n(c),d=function(t){function e(){return o(this,e),r(this,t.apply(this,arguments))}return a(e,t),e.prototype._createBaseGroups=function(){var t=this.chartType,e=this.formatFunctions,i=0,n=0,o=this.rawSeriesData.map(function(o){var r=[],a=o.data,s=o.markers,l=o.ranges,h=s.length,c=l.length;return l&&c&&(l.forEach(function(i){r.push(new u["default"]({datum:i,chartType:t,formatFunctions:e,type:p["default"].BULLET_TYPE_RANGE}))}),i=Math.max(i,c)),a&&r.push(new u["default"]({datum:a,chartType:t,formatFunctions:e,type:p["default"].BULLET_TYPE_ACTUAL})),s&&h&&(s.forEach(function(i){r.push(new u["default"]({datum:i,chartType:t,formabutFunctions:e,type:p["default"].BULLET_TYPE_MARKER}))}),n=Math.max(n,h)),r});return this.maxMarkerCount=n,this.maxRangeCount=i,o},e.prototype._createSeriesGroupsFromRawData=function(){return h["default"].prototype._createSeriesGroupsFromRawData.call(this)},e}(h["default"]);e["default"]=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=i(189),l=n(u),h=i(146),c=n(h),p=i(137),d=n(p),f=i(145),m=n(f),g=i(263),y=n(g),_=i(271),v=n(_),T=i(154),b=n(T),x=i(173),A=n(x),D=function(t){function e(){o(this,e);for(var i=arguments.length,n=Array(i),a=0;a<i;a++)n[a]=arguments[a];var s=r(this,t.call.apply(t,[this].concat(n)));return s.foundSeriesItemsMap={},s.seriesItemMap={},s}return a(e,t),e.prototype._flattenHierarchicalData=function(t,e,i){var n=this,o=[],r=void 0;return e?r=e+"_":(r=b["default"].TREEMAP_ID_PREFIX,e=b["default"].TREEMAP_ROOT_ID),i=i||[],t.forEach(function(t,a){var s=r+a,u=t.children,l=i.concat(a);t.indexes=l,(0,d["default"])(t.value)||o.push(t),t.id||(t.id=s),t.parent||(t.parent=e),u&&(o=o.concat(n._flattenHierarchicalData(u,s,l)),delete t.children)}),o},e.prototype._partitionRawSeriesDataByParent=function(t,e){var i=[],n=[];return t.forEach(function(t){t.parent===e?i.push(t):n.push(t)}),[i,n]},e.prototype._setTreeProperties=function(t,e,i,n){var o=this,r=this._partitionRawSeriesDataByParent(t,i),a=s(r,1),u=a[0],h=s(r,2),c=h[1],p=e+1;return u.forEach(function(t,i){t.depth=e,t.group=(0,m["default"])(n)?i:n;var r=o._setTreeProperties(c,p,t.id,t.group,t.fillOpacity),a=r.filter(function(t){return t.depth===p});a.length?(t.value=A["default"].sum((0,l["default"])(a,"value")),t.hasChild=!0):t.hasChild=!1,r.length&&r.sort(function(t,e){return e.value-t.value}),u=u.concat(r)}),u},e.prototype._setRatio=function(t,e){var i=this,n=this._partitionRawSeriesDataByParent(t,e),o=s(n,2),r=o[0],a=o[1],u=A["default"].sum((0,l["default"])(r,"value"));r.forEach(function(t){var e=(0,d["default"])(t.value)?0:t.value;t.ratio=e/u,t.hasChild&&i._setRatio(a,t.id)})},e.prototype._createBaseGroups=function(){var t=this.chartType,e=this.seriesItemMap,i=this.formatFunctions,n=this._flattenHierarchicalData(this.rawSeriesData);return n=this._setTreeProperties(n,1,b["default"].TREEMAP_ROOT_ID),this._setRatio(n,b["default"].TREEMAP_ROOT_ID),[n.map(function(n){var o=new v["default"](n,i,t);return e[o.id]=o,o})]},e.prototype._findSeriesItems=function(t,e){return this.foundSeriesItemsMap[t]||(this.foundSeriesItemsMap[t]=this.getFirstSeriesGroup(!0).filter(e)),this.foundSeriesItemsMap[t]},e.prototype._makeCacheKey=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=e[0];return e.length>1&&(n+=e.slice(1).join("_")),n},e.prototype._isValidGroup=function(t,e){return!(0,c["default"])(e)||t===e},e.prototype.findSeriesItemsByDepth=function(t,e){var i=this,n=this._makeCacheKey(b["default"].TREEMAP_DEPTH_KEY_PREFIX,t,e);return this._findSeriesItems(n,function(n){return n.depth===t&&i._isValidGroup(n.group,e)})},e.prototype.findSeriesItemsByParent=function(t){var e=this._makeCacheKey(b["default"].TREEMAP_PARENT_KEY_PREFIX,t);return this._findSeriesItems(e,function(e){return e.parent===t})},e.prototype.findLeafSeriesItems=function(t){var e=this,i=this._makeCacheKey(b["default"].TREEMAP_LEAF_KEY_PREFIX,t);return this._findSeriesItems(i,function(i){return!i.hasChild&&e._isValidGroup(i.group,t)})},e.prototype.findParentByDepth=function(t,e){var i=this.seriesItemMap[t]||null;return i&&i.depth!==e&&(i=this.findParentByDepth(i.parent,e)),i},e.prototype.initSeriesItemsMap=function(){this.foundSeriesItemsMap=null},e}(y["default"]);e["default"]=D},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(173),a=n(r),s=i(148),u=n(s),l=i(146),h=n(l),c=function(){function t(e,i,n){o(this,t),this.chartType=n,this.formatFunctions=i,this.id=e.id,this.parent=e.parent,this.value=e.value,this.ratio=e.ratio,this.colorValue=e.colorValue,this.depth=e.depth,this.label=e.label||"",this.group=e.group,this.hasChild=!!e.hasChild,this.indexes=e.indexes,this.fillOpacity=e.fillOpacity}return t.prototype.addRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.colorRatio=a["default"].calculateRatio(this.colorValue,t,e,1)||-1},t.prototype.pickValueMapForTooltip=function(){var t=this.formatFunctions,e=this.chartType,i=this.colorValue,n=u["default"].formatValue({value:this.value,formatFunctions:t,chartType:e,areaType:"tooltipValue"}),o=n,r={legend:this.label||"",value:n,label:o,ratio:this.ratio,tooltipColorIndex:this.indexes[0]};return(0,h["default"])(i)&&(r.colorValue=u["default"].formatValue({value:i,formatFunctions:t,chartType:e,areaType:"tooltipColorValue"}),r.colorRatio=this.colorRatio),r},t.prototype.pickLabelTemplateData=function(){var t={value:this.value,ratio:this.ratio,label:this.label};return(0,h["default"])(this.colorValue)&&(t.colorValue=this.colorValue,t.colorValueRatio=this.ratio),t},t}();e["default"]=c},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(273),r=n(o),a=i(279),s=n(a),u=i(154),l=n(u),h=i(164),c=n(h);e["default"]={_createBoundsModel:function(t,e){return new r["default"]({chartType:e.chartType,seriesTypes:e.seriesTypes,options:e.options,theme:e.theme,dataProcessor:t,hasAxes:e.hasAxes,isVertical:e.isVertical})},_createScaleDataModel:function(t,e,i){return new s["default"]({chartType:i.chartType,seriesTypes:i.seriesTypes,options:i.options,theme:i.theme,dataProcessor:t,boundsModel:e,hasRightYAxis:i.hasRightYAxis,addedDataCount:i.addedDataCount})},addYAxisScale:function(t,e,i,n){t.addScale(e,i&&i.options||n||{},{valueType:i.valueType||"value",areaType:i.areaType,chartType:i.chartType},i.additionalOptions)},_registerYAxisDimension:function(t,e,i,n,o){var r=t.get(n),a=null,s=[];if(r){var u=i[n];u&&(a=u.limit,s=u.labels),e.registerYAxisDimension({limit:a,axisName:n,options:r.options,theme:r.theme,yAxisLabels:s,isVertical:o})}},_setLayoutBoundsAndScale:function(t,e,i,n,o){var r=o.options,a=o.scaleOption,s=void 0===a?{}:a,u=o.addingDataMode,h=o.isVertical;e.has("xAxis")&&i.registerXAxisHeight(),e.has("legend")&&(e.get("legend").colorSpectrum?i.registerSpectrumLegendDimension():i.registerLegendDimension()),s.yAxis&&this.addYAxisScale(n,"yAxis",s.yAxis,o.options.yAxis),s.rightYAxis&&this.addYAxisScale(n,"rightYAxis",s.rightYAxis),s.legend&&n.addScale("legend",{},{chartType:o.chartType},{tickCounts:[l["default"].SPECTRUM_LEGEND_TICK_COUNT]});var p=n.scaleDataMap;p.legend&&e.get("legend")&&e.get("legend").colorSpectrum&&i.registerSpectrumLegendDimension(p.legend.limit),this._registerYAxisDimension(e,i,p,"yAxis",h),this._registerYAxisDimension(e,i,p,"rightYAxis",h),s.xAxis&&n.addScale("xAxis",r.xAxis,{valueType:s.xAxis.valueType||"value"},s.xAxis.additionalOptions),o.hasAxes&&n.setAxisDataMap(),i.registerSeriesDimension(),e.has("circleLegend")&&r.circleLegend.visible&&i.registerCircleLegendDimension(n.axisDataMap),e.has("xAxis")&&(c["default"].isAutoTickInterval(r.xAxis.tickInterval)&&n.updateXAxisDataForAutoTickInterval(o.prevXAxisData,u),n.updateXAxisDataForLabel(u)),i.registerBoundsData(n.axisDataMap.xAxis)},build:function(t,e,i){var n=this._createBoundsModel(t,i),o=this._createScaleDataModel(t,n,i);this._setLayoutBoundsAndScale(t,e,n,o,i);var r={dimensionMap:n.dimensionMap,positionMap:n.positionMap,limitMap:o.makeLimitMap(i.seriesTypes||[i.chartType],i.isVertical)};return o.axisDataMap&&(r.axisDataMap=o.axisDataMap),c["default"].isBubbleChart(i.chartType)&&(r.maxRadius=n.calculateMaxRadius(o.axisDataMap)),o.scaleDataMap.legend&&(r.legendScaleData=o.scaleDataMap.legend),r}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(153),a=n(r),s=i(140),u=n(s),l=i(146),h=n(l),c=i(189),p=n(c),d=i(154),f=n(d),m=i(164),g=n(m),y=i(148),_=n(y),v=i(143),T=n(v),b=i(274),x=n(b),A=i(275),D=n(A),E=i(276),S=n(E),C=i(277),L=n(C),M=i(278),P=n(M),w=f["default"].LEGEND_AREA_H_PADDING,O=a["default"].msie&&a["default"].version<=8,R=function(){function t(e){o(this,t),this.options=e.options||{},this.options.legend=this.options.legend||{},this.options.yAxis=this.options.yAxis||{},this.theme=e.theme||{},this.hasAxes=e.hasAxes,this.chartType=e.chartType,this.seriesTypes=e.seriesTypes||[],this.dataProcessor=e.dataProcessor,this.initBoundsData()}return t.prototype.initBoundsData=function(){this.dimensionMap={legend:{width:0},yAxis:{width:0},rightYAxis:{width:0},xAxis:{height:0},circleLegend:{width:0},chartExportMenu:{width:0}},this.positionMap={},this.chartLeftPadding=f["default"].CHART_PADDING,this.maxRadiusForBubbleChart=null,this._registerChartDimension(),this._registerTitleDimension(),this._registerChartExportMenuDimension()},t.prototype._registerDimension=function(t,e){this.dimensionMap[t]=Object.assign(this.dimensionMap[t]||{},e)},t.prototype.getBound=function(t){return{dimension:this.dimensionMap[t]||{},position:this.positionMap[t]||{}}},t.prototype._setBound=function(t,e){this.dimensionMap[t]=e.dimension,this.positionMap[t]=e.position},t.prototype.getDimension=function(t){return this.dimensionMap[t]},t.prototype.getDimensionMap=function(t){var e=this,i={};return t&&t.length?t.forEach(function(t){i[t]=e.dimensionMap[t]}):i=this.dimensionMap,JSON.parse(JSON.stringify(i))},t.prototype.getPosition=function(t){return this.positionMap[t]},t.prototype._registerChartDimension=function(){var t=this.options.chart||{},e={width:t.width||f["default"].CHART_DEFAULT_WIDTH,height:t.height||f["default"].CHART_DEFAULT_HEIGHT};this._registerDimension("chart",e)},t.prototype._registerTitleDimension=function(){var t=this.options.chart||{},e=(0,h["default"])(t.title),i=this.theme.title,n=e?T["default"].getRenderedTextSize(t.title.text,i.fontSize,i.fontFamily).height:0,o=n||0;o&&(o+=f["default"].TITLE_PADDING),this._registerDimension("title",{height:o})},t.prototype._registerChartExportMenuDimension=function(){var t=void 0;t=this.options.chartExportMenu.visible===!1?{width:0,height:0}:{height:f["default"].CHART_EXPORT_MENU_SIZE+f["default"].SERIES_AREA_V_PADDING,width:f["default"].CHART_EXPORT_MENU_SIZE},this._registerDimension("chartExportMenu",t)},t.prototype.registerXAxisHeight=function(){this._registerDimension("xAxis",{height:D["default"].calculateXAxisHeight(this.options.xAxis,this.theme.xAxis)})},t.prototype.registerLegendDimension=function(){var t=(0,p["default"])(this.dataProcessor.getOriginalLegendData(),"label"),e=this.options.legend,i=this.theme.legend.label,n=this.getDimension("chart").width,o=S["default"].calculate(e,i,t,n);this._registerDimension("legend",o)},t.prototype.registerSpectrumLegendDimension=function(t){var e=t?t.max:this.dataProcessor.getFormattedMaxValue(this.chartType,"legend"),i=t?t.min:"",n=this.theme.label,o=this.options.legend.align,r=void 0;if(g["default"].isHorizontalLegend(o)){var a=g["default"].isBoxTypeChart(this.chartType),s=g["default"].isLegendAlignTop(o);r=P["default"]._makeHorizontalDimension(e,n,a,s)}else r=P["default"]._makeVerticalDimension(e,i,n);this._registerDimension("legend",r),this.useSpectrumLegend=!0},t.prototype.registerYAxisDimension=function(t){var e=t.limit,i=t.options,n=t.theme,o=t.yAxisLabels,r=t.isVertical,a=t.axisName,s=this.options.series&&this.options.series.diverging,l=void 0,h=void 0;if(e)l=[e.min,e.max];else{if(!g["default"].isHeatmapChart(this.chartType)&&r)return;l=this.dataProcessor.getCategories(!0)}h=(0,u["default"])(i)?"yAxis"===a?i[0]:i[1]:i,this._registerDimension(a,{width:D["default"].calculateYAxisWidth(l,h,n,o,s)})},t.prototype.calculateSeriesWidth=function(){var t=this.dataProcessor.getFormattedMaxValue(this.chartType,"series","value"),e=this.getDimensionMap(["chart","yAxis","legend","rightYAxis"]),i=0;g["default"].isColumnTypeChart(this.chartType)||(i=_["default"].getRenderedLabelHeight(t,this.theme.title));var n=L["default"].calculateWidth(e,this.options.legend,i);return g["default"].isMapChart(this.chartType)&&!O&&(n-=f["default"].MAP_CHART_ZOOM_AREA_WIDTH+w),n},t.prototype.calculateSeriesHeight=function(){var t=this.getDimensionMap(["chart","title","legend","xAxis","chartExportMenu"]),e=0;return this.options.yAxis&&this.options.yAxis.title&&(e=_["default"].getRenderedLabelHeight(this.options.yAxis.title,this.theme.title)),L["default"].calculateHeight(t,this.options.legend,e)},t.prototype.getBaseSizeForLimit=function(t){var e=void 0;return e=t?this.calculateSeriesHeight():this.calculateSeriesWidth()},t.prototype._makeSeriesDimension=function(){return{width:this.calculateSeriesWidth(),height:this.calculateSeriesHeight()}},t.prototype.registerSeriesDimension=function(){var t=this._makeSeriesDimension();this._registerDimension("series",t)},t.prototype._updateLegendAndSeriesWidth=function(t,e){var i=this.options.legend;g["default"].isVerticalLegend(i.align)&&i.visible&&this._registerDimension("legend",{width:t}),this._registerDimension("series",{width:this.getDimension("series").width-e})},t.prototype.registerCircleLegendDimension=function(t){var e=this.getDimension("series"),i=this.options.legend,n=this.dataProcessor.getFormattedMaxValue(this.chartType,"circleLegend","r"),o=this.theme.chart.fontFamily,r=x["default"].calculateCircleLegendWidth(e,t,n,o),a=void 0;a=g["default"].isVerticalLegend(i.align)&&i.visible?this.getDimension("legend").width:0,r=Math.min(r,Math.max(a,f["default"].MIN_LEGEND_WIDTH));var s=r-a;this._registerDimension("circleLegend",{width:r,height:r}),s>0&&this._updateLegendAndSeriesWidth(r,s)},t.prototype._makePlotDimension=function(){var t=this.getDimension("series");return{width:t.width,height:t.height+f["default"].OVERLAPPING_WIDTH}},t.prototype._registerCenterComponentsDimension=function(){var t=this.getDimension("series");this._registerDimension("tooltip",t),this._registerDimension("mouseEventDetector",t)},t.prototype._registerAxisComponentsDimension=function(){var t=this._makePlotDimension();this._registerDimension("plot",t),this._registerDimension("xAxis",{width:t.width}),this._registerDimension("yAxis",{height:t.height}),this._registerDimension("rightYAxis",{height:t.height})},t.prototype._updateDimensionsWidth=function(t){var e=Math.max(t.overflowLeft,0),i=t.overflowRight?Math.max(t.overflowRight,0):0,n=e+i;this.chartLeftPadding+=e,this.dimensionMap.plot.width-=n,this.dimensionMap.series.width-=n,this.dimensionMap.mouseEventDetector.width-=n,this.dimensionMap.xAxis.width-=n},t.prototype._updateDimensionsHeight=function(t){this.dimensionMap.plot.height-=t,this.dimensionMap.series.height-=t,this.dimensionMap.mouseEventDetector.height-=t,this.dimensionMap.tooltip.height-=t,this.dimensionMap.yAxis.height-=t,this.dimensionMap.rightYAxis.height-=t,this.dimensionMap.xAxis.height+=t},t.prototype._updateDimensionsForXAxisLabel=function(t){(t.overflowRight>0||t.overflowLeft>0)&&this._updateDimensionsWidth(t),t.overflowHeight&&this._updateDimensionsHeight(t.overflowHeight)},t.prototype._registerAxisComponentsPosition=function(t){var e=this.getPosition("series"),i=this.getDimension("series"),n=this.getDimension("yAxis").width,o=t+n+i.width;this.positionMap.plot={top:e.top,left:e.left},this.positionMap.yAxis={top:e.top,left:this.chartLeftPadding+t},this.positionMap.xAxis={top:e.top+i.height,left:e.left},this.positionMap.rightYAxis={top:e.top,left:this.chartLeftPadding+o-f["default"].OVERLAPPING_WIDTH
}},t.prototype._makeLegendPosition=function(){var t=this.dimensionMap,e=t.series,i=this.getPosition("series").top,n=this.options.legend,o=0,r=void 0,a=void 0;return g["default"].isHorizontalLegend(n.align)?(a=(this.getDimension("chart").width-this.getDimension("legend").width)/2,o=g["default"].isLegendAlignBottom(n.align)?i+e.height+this.getDimension("xAxis").height+f["default"].SERIES_AREA_V_PADDING:i-t.legend.height+f["default"].LEGEND_AREA_V_PADDING):(g["default"].isLegendAlignLeft(n.align)?a=this.chartLeftPadding:(r=this.getDimension("yAxis").width+this.getDimension("rightYAxis").width,a=this.chartLeftPadding+r+e.width),o=i+f["default"].SERIES_AREA_V_PADDING),{top:o,left:a}},t.prototype._makeSpectrumLegendPosition=function(){var t=this.options.legend,e=this.options.legend.align,i=this.getPosition("series"),n=this.getDimension("series"),o=this.getDimension("legend"),r=void 0,a=void 0,s=void 0;g["default"].isHorizontalLegend(e)?(a=(this.getDimension("chart").width-o.width)/2,r=g["default"].isLegendAlignTop(e)?i.top-o.height:i.top+n.height+this.getDimension("xAxis").height):(g["default"].isLegendAlignLeft(t.align)?a=this.chartLeftPadding:(s=this.getDimension("chart").width-this.chartLeftPadding,a=s-this.getDimension("legend").width),r=g["default"].isBoxTypeChart(this.chartType)?i.top:i.top+.75*f["default"].MAP_CHART_ZOOM_AREA_HEIGHT);var u={top:r,left:a};return s&&(u.right=s),u},t.prototype._makeChartExportMenuPosition=function(){var t=this.getPosition("series").top-f["default"].SERIES_AREA_V_PADDING-f["default"].CHART_EXPORT_MENU_SIZE;return{top:t,right:f["default"].CHART_PADDING}},t.prototype._makeCircleLegendPosition=function(){var t=this.getPosition("series"),e=this.getDimension("series"),i=this.getDimension("circleLegend"),n=this.options.legend,o=void 0,r=void 0;return o=g["default"].isLegendAlignLeft(n.align)?0:t.left+e.width,g["default"].isVerticalLegend(n.align)&&n.visible&&(r=this.getDimension("legend").width+f["default"].CHART_PADDING,o+=(r-i.width)/2),{top:t.top+e.height-i.height,left:o}},t.prototype._isNeedExpansionSeries=function(){var t=this.chartType;return!(g["default"].isPieChart(t)||g["default"].isMapChart(t)||g["default"].isTreemapChart(t)||g["default"].isRadialChart(t)||g["default"].isPieDonutComboChart(t,this.seriesTypes))},t.prototype._registerEssentialComponentsPositions=function(){var t=this.getPosition("series"),e=void 0;this.positionMap.mouseEventDetector=Object.assign({},t),this.positionMap.legend=this.useSpectrumLegend?this._makeSpectrumLegendPosition():this._makeLegendPosition(),this.positionMap.chartExportMenu=this._makeChartExportMenuPosition(),this.getDimension("circleLegend").width&&(this.positionMap.circleLegend=this._makeCircleLegendPosition()),e=this._isNeedExpansionSeries()?{top:t.top-f["default"].SERIES_EXPAND_SIZE,left:t.left-f["default"].SERIES_EXPAND_SIZE}:t,this.positionMap.tooltip=e},t.prototype._registerPositions=function(){var t=this,e=this.options.legend.align,i=this.options.legend.visible,n=this.getDimension("legend"),o=g["default"].isLegendAlignTop(e)&&i,r=g["default"].isLegendAlignLeft(e)&&i,a=o?n.height:0,s=r?n.width:0,u=Math.max(this.getDimension("title").height,this.getDimension("chartExportMenu").height),l=function(){if(t.options.yAxis.title&&!t.useSpectrumLegend){var e=_["default"].getRenderedLabelHeight(t.options.yAxis.title,t.theme.yAxis.title);return e+f["default"].Y_AXIS_TITLE_PADDING}return 0}(),h=Math.max(0,Math.max(a,l)-f["default"].TITLE_PADDING),c=u+h;u||(c=Math.max(a,l));var p={top:c+f["default"].CHART_PADDING,left:this.chartLeftPadding+s+this.getDimension("yAxis").width};this.positionMap.series=p,this.hasAxes&&this._registerAxisComponentsPosition(s),this._registerEssentialComponentsPositions()},t.prototype._registerExtendedSeriesBound=function(){var t=this.getBound("series");this._isNeedExpansionSeries()&&(t=_["default"].expandBound(t)),this._setBound("extendedSeries",t)},t.prototype._updateBoundsForYAxisCenterOption=function(){var t=this.getDimension("yAxis").width,e=Math.floor(this.getDimension("series").width/2)+f["default"].OVERLAPPING_WIDTH,i=t-f["default"].OVERLAPPING_WIDTH,n=_["default"].isOldBrowser()?1:0;this.dimensionMap.extendedSeries.width+=t,this.dimensionMap.xAxis.width+=f["default"].OVERLAPPING_WIDTH,this.dimensionMap.plot.width+=t+f["default"].OVERLAPPING_WIDTH,this.dimensionMap.mouseEventDetector.width+=t,this.dimensionMap.tooltip.width+=t,this.positionMap.series.left-=t-n,this.positionMap.extendedSeries.left-=i-n,this.positionMap.plot.left-=i,this.positionMap.yAxis.left+=e,this.positionMap.xAxis.left-=i,this.positionMap.mouseEventDetector.left-=i,this.positionMap.tooltip.left-=i},t.prototype.registerBoundsData=function(t){this._registerCenterComponentsDimension(),this.useSpectrumLegend&&this._updateDimensionsForSpectrumLegend(),this.hasAxes&&(this._registerAxisComponentsDimension(),this._updateDimensionsForXAxisLabel(t)),this._registerPositions(),this._registerExtendedSeriesBound(),this.options.yAxis.isCenter&&this._updateBoundsForYAxisCenterOption()},t.prototype._updateDimensionsForSpectrumLegend=function(){var t=this.options.legend.align,e=this.getDimension("legend"),i=this.getDimension("series");g["default"].isHorizontalLegend(t)&&e.width>i.width?e.width=i.width:g["default"].isVerticalLegend(t)&&(g["default"].isBoxTypeChart(this.chartType)?e.height=i.height:e.height>i.height-f["default"].MAP_CHART_ZOOM_AREA_HEIGHT&&(e.height=i.height-f["default"].MAP_CHART_ZOOM_AREA_HEIGHT))},t.prototype.calculateMaxRadius=function(t){var e=this.getDimensionMap(["series","circleLegend"]),i=!!this.options.circleLegend&&this.options.circleLegend.visible;return x["default"].calculateMaxRadius(e,t,i)},t}();e["default"]=R},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(154),r=n(o),a=i(148),s=n(a);e["default"]={_calculatePixelStep:function(t,e){var i=t.tickCount,n=void 0;return n=t.isLabelAxis?e/i/2:e/(i-1),parseInt(n,10)},_calculateRadiusByAxisData:function(t,e){var i=this._calculatePixelStep(e.yAxis,t.height),n=this._calculatePixelStep(e.xAxis,t.width);return Math.min(i,n)},_getCircleLegendLabelMaxWidth:function(t,e){return s["default"].getRenderedLabelWidth(t,{fontSize:r["default"].CIRCLE_LEGEND_LABEL_FONT_SIZE,fontFamily:e})},calculateCircleLegendWidth:function(t,e,i,n){var o=this._calculateRadiusByAxisData(t,e),a=this._getCircleLegendLabelMaxWidth(i,n);return Math.max(2*o,a)+r["default"].CIRCLE_LEGEND_PADDING},calculateMaxRadius:function(t,e,i){var n=this._calculateRadiusByAxisData(t.series,e),o=t.circleLegend.width;return i?Math.min((o-r["default"].CIRCLE_LEGEND_PADDING)/2,n):n}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(154),r=n(o),a=i(164),s=n(a),u=i(148),l=n(u);e["default"]={calculateXAxisHeight:function(t,e){var i=t.title,n=i?l["default"].getRenderedLabelHeight(i.text,e.title):0,o=n?n+r["default"].X_AXIS_TITLE_PADDING:0,a=t.labelMargin||0,s=l["default"].getRenderedLabelHeight(r["default"].MAX_HEIGHT_WORD,e.label),u=o+r["default"].X_AXIS_LABEL_PADDING;return a>0&&(u+=a),t.showLabel!==!1&&(u+=s),u},calculateYAxisWidth:function(t,e,i,n,o){var a=e.labelMargin,u=e.prefix,h=e.suffix,c=e.isCenter,p=e.type,d=e.dateFormat,f=e.showLabel,m=e.title,g=e.maxWidth,y=0,_=0,v=0;return t=e.categories||t,t=l["default"].addPrefixSuffix(t,u,h),n=l["default"].addPrefixSuffix(n,u,h),c&&(v+=r["default"].Y_AXIS_LABEL_PADDING),s["default"].isDatetimeType(p)&&(t=l["default"].formatDates(t,d),n=l["default"].formatDates(n,d)),a&&a>0&&(v+=a),t=n.length?n:t,f!==!1&&(_=l["default"].getRenderedLabelsMaxWidth(t,i.label,g)),m&&(y=l["default"].getRenderedLabelWidth(m.text,i.title)),v+=(o?Math.max(_,y):_)+r["default"].Y_AXIS_LABEL_PADDING}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(154),r=n(o),a=i(164),s=n(a),u=i(173),l=n(u),h=i(148),c=n(h),p=i(158),d=n(p),f=r["default"].LEGEND_CHECKBOX_SIZE,m=r["default"].LEGEND_ICON_WIDTH,g=r["default"].LEGEND_LABEL_LEFT_PADDING,y=r["default"].LEGEND_V_LABEL_RIGHT_PADDING,_=r["default"].LEGEND_H_LABEL_RIGHT_PADDING,v=r["default"].LEGEND_AREA_H_PADDING;e["default"]={_calculateLegendsWidth:function(t,e,i,n){var o=l["default"].sum([v,i,m,g]);return t.map(function(t){var i=c["default"].getRenderedLabelWidth(t,e);return n&&i>n&&(i=n),i+=o,i+_})},_divideLegendLabels:function(t,e){var i=[],n=[];return t.forEach(function(t){n.length<e?n.push(t):(i.push(n),n=[t])}),n.length&&i.push(n),i},_getLegendWidthInfo:function(t,e,i,n){var o=this,r=[],a=t.map(function(t){var a=o._calculateLegendsWidth(t,e,i,n),s=l["default"].sum(a);return r=r.concat(a),s=s-_+v});return{labelWidthArr:r,legendWidths:a}},_makeDividedLabelsAndMaxLineWidth:function(t,e,i,n,o){var r=Number.MAX_VALUE,a=1,s=0,u=void 0,l=void 0,h=void 0;do{r=Math.round(t.length/a),u=this._divideLegendLabels(t,r);var c=this._getLegendWidthInfo(u,i,n,o);if(l=c.legendWidths,h=c.labelWidthArr,s=d["default"].max(l),1===r)break;a+=1}while(s>=e);return s=Math.min(s,e),{labels:this._optimizedHorizontalLegendLabels(t,h,s),maxLineWidth:s}},_optimizedHorizontalLegendLabels:function(t,e,i){var n=[],o=t.length-1,r=0,a=[];return t.forEach(function(t,s){var u=e[s],l=v-_,h=r+u+l;h<=i?a.push(t):(n.push(a),a=[t],r=0),r+=u,o===s&&n.push(a)}),n},_calculateHorizontalLegendHeight:function(t,e){var i=Math.max.apply(null,t.map(function(t){return c["default"].getRenderedLabelsMaxHeight(t,e)})),n=l["default"].sum([Math.max(r["default"].LEGEND_CHECKBOX_SIZE,i),r["default"].LINE_MARGIN_TOP]),o=n*t.length-r["default"].LINE_MARGIN_TOP+r["default"].SERIES_AREA_V_PADDING;return o},_makeHorizontalDimension:function(t,e,i,n,o){var a=this._makeDividedLabelsAndMaxLineWidth(e,i,t,n,o),s=this._calculateHorizontalLegendHeight(a.labels,t),u=s+r["default"].SERIES_AREA_V_PADDING;return{width:Math.max(a.maxLineWidth,r["default"].MIN_LEGEND_WIDTH),height:u}},_makeVerticalDimension:function(t,e,i,n){var o=c["default"].getRenderedLabelsMaxWidth(e,t),r=0;return n&&o>n&&(o=n),r=l["default"].sum([2*v,i,m,g,o,y]),{width:r,height:0}},calculate:function(t,e,i,n){var o=t.showCheckbox===!1?0:f+g,r=t.maxWidth,a={};return t.visible?a=s["default"].isHorizontalLegend(t.align)?this._makeHorizontalDimension(e,i,n,o,r):this._makeVerticalDimension(e,i,o,r):a.width=0,a}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(154),r=n(o),a=i(164),s=n(a);e["default"]={calculateWidth:function(t,e,i){var n=t.chart.width,o=t.yAxis,a=t.rightYAxis,u=t.legend,l=o.width+a.width,h=u,c=0,p=0;return s["default"].isVerticalLegend(e.align)&&e.visible&&(c=h?h.width:0),c||a.width||!i||(p=i/2),n-2*r["default"].CHART_PADDING-l-c-p},calculateHeight:function(t,e,i){var n=t.chart.height,o=Math.max(t.title.height,t.chartExportMenu.height),a=e.visible?t.legend.height:0,u=s["default"].isLegendAlignTop(e.align)?a:0,l=Math.max(0,Math.max(i,u)-r["default"].TITLE_PADDING),h=o+l,c=s["default"].isLegendAlignBottom(e.align)?a:0,p=t.xAxis.height+c;return n-2*r["default"].CHART_PADDING-h-p}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(154),r=n(o),a=i(148),s=n(a),u=i(173),l=n(u),h=r["default"].MAP_LEGEND_TOOLTIP_HORIZONTAL_PADDING,c=r["default"].MAP_LEGEND_WEDGE_SIZE,p=r["default"].MAP_LEGEND_AREA_PADDING_WIDE,d=r["default"].MAP_LEGEND_PADDING_BTW_GRAPH_AND_WEDGE,f=r["default"].MAP_LEGEND_GRAPH_SIZE,m=r["default"].MAP_LEGEND_LABEL_PADDING,g=r["default"].VERTICAL_MAP_LEGEND_HEIGHT,y=r["default"].MAP_LEGEND_TOOLTIP_VERTICAL_PADDING,_=r["default"].MAP_LEGEND_AREA_PADDING_NARROW,v=r["default"].HORIZONTAL_MAP_LEGEND_WIDTH;e["default"]={_makeVerticalDimension:function(t,e,i){var n=s["default"].getRenderedLabelWidth(t,i),o=s["default"].getRenderedLabelWidth(e,i),r=s["default"].getRenderedLabelWidth(t,i),a=l["default"].sum([2*h,r,c]);return{width:l["default"].sum([p,a,d,f,m,Math.max(n,o)]),height:g}},_makeHorizontalDimension:function(t,e,i,n){var o=s["default"].getRenderedLabelHeight(t,e),r=l["default"].sum([2*y,o,c]),a=i?_:p,u=n?p:0;return{width:v,height:l["default"].sum([a,r,d,f,m,o,m,u])}}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(140),a=n(r),s=i(137),u=n(s),l=i(280),h=n(l),c=i(282),p=n(c),d=i(283),f=n(d),m=i(164),g=n(m),y=i(148),_=n(y),v=function(){function t(e){o(this,t),this.chartType=e.chartType,this.seriesTypes=e.seriesTypes,this.dataProcessor=e.dataProcessor,this.boundsModel=e.boundsModel,this.options=e.options,this.theme=e.theme,this.hasRightYAxis=!!e.hasRightYAxis,this.prevValidLabelCount=null,this.initScaleData(e.addedDataCount),this.initForAutoTickInterval()}return t.prototype.initScaleData=function(t){this.scaleDataMap={},this.axisDataMap={},this.addedDataCount=t},t.prototype.initForAutoTickInterval=function(){this.firstTickCount=null},t.prototype._pickLimitOption=function(t){return t=t||{},{min:t.min,max:t.max}},t.prototype._createBaseScaleData=function(t,e,i,n){var o=t.chartType,r="xAxis"!==t.areaType,a=this.dataProcessor.createBaseValuesForLimit(o,n.isSingleYAxis,e.stack,t.valueType,t.areaType),s=this.boundsModel.getBaseSizeForLimit(r),u=Object.assign(e,{isVertical:r,limitOption:this._pickLimitOption(i),tickCounts:n.tickCounts,showLabel:this.options.series.showLabel});return g["default"].isBubbleChart(o)&&(u.overflowItem=this.dataProcessor.findOverflowItem(o,t.valueType)),(g["default"].isMapChart(o)||g["default"].isHeatmapChart(o)||g["default"].isTreemapChart(o))&&(u.useSpectrumLegend=!0),h["default"].makeScaleData(a,s,o,u)},t.prototype._createScaleLabels=function(t,e,i,n){var o=this.dataProcessor.getFormatFunctions(),r=Object.assign(i,{dateFormat:n});return p["default"].createFormattedLabels(t,e,r,o)},t.prototype._createScaleData=function(t,e,i){var n=this.options.series,o=e.chartType||this.chartType;e.chartType=o,n=n[o]||n;var r={stack:i.stack||n.stack,diverging:n.diverging,type:t.type},a=this._createBaseScaleData(e,r,t,i);return Object.assign(a,{labels:this._createScaleLabels(a,e,r,t.dateFormat),axisOptions:t})},t.prototype._createValueAxisData=function(t,e,i,n,o){var r=this.dataProcessor.hasCategories(),a=!n&&!r&&i,s=t.labels,u=t.limit,l=t.step,h=s.length,c=f["default"].makeValueAxisData({labels:s,tickCount:s.length,limit:u,step:l,labelTheme:e,aligned:i,options:t.axisOptions,isVertical:!!n,isPositionRight:!!o});if(a){var p=this.dataProcessor.getValues(this.chartType,"x"),d=f["default"].makeAdditionalDataForCoordinateLineType(s,p,u,l,h);Object.assign(c,d)}return c},t.prototype._createLabelAxisData=function(t,e,i,n,o){var r=t.categories||this.dataProcessor.getCategories(n);return f["default"].makeLabelAxisData({labels:r,options:t,labelTheme:e,aligned:i,isVertical:!!n,isPositionRight:!!o,addedDataCount:this.options.series.shifting?this.addedDataCount:0})},t.prototype._createAxisData=function(t,e,i,n,o){var r=g["default"].isLineTypeChart(this.chartType,this.seriesTypes)&&!e.pointOnColumn,a=void 0;return a=t?this._createValueAxisData(t,i,r,n,o):this._createLabelAxisData(e,i,r,n,o)},t.prototype._createAxesData=function(){var t=this.scaleDataMap,e=this.options,i=this.theme,n=(0,a["default"])(e.yAxis)?e.yAxis:[e.yAxis],o={};return o.xAxis=this._createAxisData(t.xAxis,e.xAxis,i.xAxis.label),o.yAxis=this._createAxisData(t.yAxis,n[0],i.yAxis.label,!0),this.hasRightYAxis&&(o.rightYAxis=this._createAxisData(t.rightYAxis,n[1],i.yAxis.label,!0,!0),o.rightYAxis.aligned||(o.rightYAxis.aligned=o.yAxis.aligned)),o},t.prototype.addScale=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};i.areaType=i.areaType||t,i.chartType=n.chartType||i.chartType,this.scaleDataMap[t]=this._createScaleData(e,i,n)},t.prototype.setAxisDataMap=function(){this.axisDataMap=this._createAxesData()},t.prototype.updateXAxisDataForAutoTickInterval=function(t,e){var i=this.options.series.shifting,n=this.options.series.zoomable,o=this.axisDataMap.xAxis,r=this.boundsModel.getDimension("series").width,a=this.addedDataCount;i||!t||n?f["default"].updateLabelAxisDataForAutoTickInterval(o,r,a,e):f["default"].updateLabelAxisDataForStackingDynamicData(o,t,this.firstTickCount),this.firstTickCount||(this.firstTickCount=o.tickCount)},t.prototype.updateXAxisDataForLabel=function(t){var e=this.axisDataMap.xAxis,i=this.boundsModel.getDimensionMap(["series","yAxis","chart"]),n=e.isLabelAxis,o=this.theme.xAxis.label,r=void 0,a=void 0,s=e.labels;t&&(s=s.slice(0,s.length-1)),s=_["default"].addPrefixSuffix(s,this.options.xAxis.prefix,this.options.xAxis.suffix);var l=s.filter(function(t){return t});r=(0,u["default"])(this.prevValidLabelCount)?l.length:this.prevValidLabelCount,this.options.yAxis.isCenter&&(r+=1,i.yAxis.width=0),a=e.options.rotateLabel===!1?f["default"].makeAdditionalDataForMultilineLabels(s,r,o,n,i):f["default"].makeAdditionalDataForRotatedLabels(l,r,o,n,i),this.prevValidLabelCount=r,Object.assign(e,a)},t.prototype._findLimit=function(t,e,i){var n=void 0;return n=0===e?i?t.yAxis:t.xAxis:t.rightYAxis?t.rightYAxis:t.yAxis},t.prototype.makeLimitMap=function(t,e){var i=this,n=this.scaleDataMap,o={};return n.xAxis&&(o.xAxis=n.xAxis.limit),n.yAxis&&(o.yAxis=n.yAxis.limit),n.rightYAxis&&(o.rightYAxis=n.rightYAxis.limit),n.legend&&(o.legend=n.legend.limit),t.forEach(function(t,n){o[t]=i._findLimit(o,n,e)}),o},t}();e["default"]=v},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=i(154),a=n(r),s=i(164),u=n(s),l=i(173),h=n(l),c=i(158),p=n(c),d=i(281),f=n(d),m=i(146),g=n(m),y={_makeLimitForDivergingOption:function(t){var e=Math.max(Math.abs(t.min),Math.abs(t.max));return{min:-e,max:e}},_adjustLimitForOverflow:function(t,e,i){var n=t.min,o=t.max;return i.min&&(n=h["default"].subtract(n,e)),i.max&&(o=h["default"].add(o,e)),{min:n,max:o}},millisecondMap:{year:31536e6,month:26784e5,week:6048e5,date:864e5,hour:36e5,minute:6e4,second:1e3},millisecondTypes:["year","month","week","date","hour","minute","second"],_findDateType:function(t,e){var i=t.max-t.min,n=this.millisecondTypes,o=this.millisecondMap,r=n.length-1,s=void 0;return i?n.every(function(t,a){var u=o[t],l=Math.floor(i/u),h=void 0;return l&&(h=a<r&&l<2&&l<e?a+1:a,s=n[h]),!(0,g["default"])(h)}):s=a["default"].DATE_TYPE_SECOND,s},_makeDatetimeInfo:function(t,e){var i=this._findDateType(t,e),n=this.millisecondMap[i],o=h["default"].divide(t.min,n),r=h["default"].divide(t.max,n),a=r-o;return{divisionNumber:n,minDate:o,dataLimit:{min:0,max:a}}},_restoreScaleToDatetimeType:function(t,e,i){var n=t.limit;return t.step=h["default"].multiply(t.step,i),n.min=h["default"].multiply(h["default"].add(n.min,e),i),n.max=h["default"].multiply(h["default"].add(n.max,e),i),t},_getLimitSafely:function(t){var e={min:p["default"].min(t),max:p["default"].max(t)};if(1===t.length){var i=o(t,1),n=i[0];n>0?e.min=0:0===n?e.max=10:e.max=0}else 0===e.min&&0===e.max?e.max=10:e.min===e.max&&(e.min-=e.min/10,e.max+=e.max/10);return e},_calculateDatetimeScale:function(t,e,i){var n=this._makeDatetimeInfo(this._getLimitSafely(t),t.length),o=n.dataLimit;i&&(o=this._makeLimitForDivergingOption(o));var r=(0,f["default"])({min:o.min,max:o.max,offsetSize:e,minimumStepSize:1});return r=this._restoreScaleToDatetimeType(r,n.minDate,n.divisionNumber)},_calculatePercentStackedScale:function(t,e){var i=void 0;return i=0===h["default"].sumMinusValues(t)?a["default"].PERCENT_STACKED_AXIS_SCALE:0===h["default"].sumPlusValues(t)?a["default"].MINUS_PERCENT_STACKED_AXIS_SCALE:e?a["default"].DIVERGING_PERCENT_STACKED_AXIS_SCALE:a["default"].DUAL_PERCENT_STACKED_AXIS_SCALE},_calculateCoordinateScale:function(t){var e=t.options,i=e.limitOption,n=void 0===i?{}:i,o=e.useSpectrumLegend,r=t.baseSize,a=t.overflowItem,s=t.chartType,l=this._getLimitSafely(t.baseValues),h=(0,g["default"])(n.min),c=(0,g["default"])(n.max),p=l.min,d=l.max,m=void 0,y=t.options.stepCount;h&&(p=n.min,y=null),c&&(d=n.max,y=null);var _=(0,f["default"])({min:p,max:d,stepCount:y,offsetSize:r});return o||(m=this._isOverflowed(a,_,l,h,c)),m&&!u["default"].isMapTypeChart(s)&&(_.limit=this._adjustLimitForOverflow(_.limit,_.step,m)),t.isDiverging&&(_.limit=this._makeLimitForDivergingOption(_.limit)),_},_isOverflowed:function(t,e,i,n,o){var r=!(!t||!t.minItem),a=!(!t||!t.maxItem),s=e.limit,u=r||!n&&s.min===i.min&&0!==s.min,l=a||!o&&s.max===i.max&&0!==s.max;return u||l?{min:u,max:l}:null},makeScaleData:function(t,e,i,n){var o=void 0,r=u["default"].isDivergingChart(i,n.diverging),a=n.overflowItem;return u["default"].isPercentStackChart(i,n.stack)?o=this._calculatePercentStackedScale(t,r):u["default"].isDatetimeType(n.type)?o=this._calculateDatetimeScale(t,e,r):(u["default"].isRadialChart(i)&&(n.stepCount=Math.floor(e/100)),o=this._calculateCoordinateScale({baseValues:t,baseSize:e,overflowItem:a,isDiverging:r,chartType:i,options:n})),o}};e["default"]=y},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){var e=0===t?1:Math.log(Math.abs(t))/Math.LN10;return Math.pow(10,Math.floor(e))}function r(t){for(var e=void 0,i=0,n=f.length;i<n;i+=1){e=f[i];var o=(e+(f[i+1]||e))/2;if(t<=o)break}return e}function a(t){var e=o(t),i=t/e;return r(i)*e}function s(t,e,i,n){var r=Math.min(o(e),o(i)),a=r>1?1:1/r,s=i*a,u=e,l=!1;return e=Math.ceil(e*a/s)*s/a,l=s/2>e-u,n&&l&&(e+=s),t=t>i?Math.floor(t*a/s)*s/a:t<0?-(Math.ceil(Math.abs(t)*a/s)*s)/a:0,{min:t,max:e}}function u(t,e){var i=1/Math.min(o(t),o(e));return Math.ceil(t*i/(e*i))}function l(t,e){var i=a(t.step),n=s(t.limit.min,t.limit.max,i,e),o=Math.abs(n.max-n.min),r=u(o,i);return{limit:{min:n.min,max:n.max},step:i,stepCount:r}}function h(t,e,i,n,o){var r=Math.abs(e-t),a=r/i;n||(n=Math.ceil(i/m));var s=i/n,u=a*s;return(0,d["default"])(o)&&u<o&&(u=o,n=r/u),{limit:{min:t,max:e},step:u,stepCount:n}}function c(t){var e=t.min,i=t.max,n=t.offsetSize,o=t.stepCount,r=t.minimumStepSize,a=t.showLabel,s=h(e,i,n,o,r);return s=l(s,a)}e.__esModule=!0;var p=i(150),d=n(p),f=[1,2,5,10],m=88;e["default"]=c},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(164),r=n(o),a=i(173),s=n(a),u=i(148),l=n(u),h={_getFormatFunctions:function(t,e,i){return r["default"].isPercentStackChart(t,e)&&(i=[function(t){return t+"%"}]),i},_createScaleValues:function(t,e,i){var n=s["default"].makeLabelsFromLimit(t.limit,t.step);return r["default"].isDivergingChart(e,i)?n.map(Math.abs):n},createFormattedLabels:function(t,e,i,n){var o=e.chartType,a=e.areaType,s=e.valueType,u=i.diverging,h=i.type,c=i.dateFormat,p=i.stack,d=this._createScaleValues(t,o,u),f=void 0;return r["default"].isDatetimeType(h)?f=l["default"].formatDates(d,c):(n=this._getFormatFunctions(o,p,n),f=l["default"].formatValues(d,n,{chartType:o,areaType:a,valueType:s})),f}};e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=i(144),a=n(r),s=i(154),u=n(s),l=i(164),h=n(l),c=i(205),p=n(c),d=i(173),f=n(d),m=i(148),g=n(m),y=i(158),_=n(y),v=90,T=121,b=5,x={_makeLabelsByIntervalOption:function(t,e,i){return i=i||0,t=t.map(function(t,n){return(n+i)%e!==0&&(t=u["default"].EMPTY_AXIS_LABEL),t})},makeLabelAxisData:function(t){var e=t.options,i=void 0===e?{}:e,n=t.labels.length,o=t.labels;return h["default"].isValidLabelInterval(i.labelInterval,i.tickInterval)&&t.labels.length>i.labelInterval&&(o=this._makeLabelsByIntervalOption(t.labels,i.labelInterval,t.addedDataCount)),h["default"].isDatetimeType(i.type)&&(o=g["default"].formatDates(o,i.dateFormat)),t.aligned||(n+=1),{labels:o,tickCount:n,validTickCount:n,isLabelAxis:!0,options:i,isVertical:!!t.isVertical,isPositionRight:!!t.isPositionRight,aligned:!!t.aligned}},makeValueAxisData:function(t){var e=t.labels,i=t.tickCount,n=t.limit,o=t.step,r=t.options,a=t.isVertical,s=t.isPositionRight,u=t.aligned,l={labels:e,tickCount:i,limit:n,step:o,options:r,validTickCount:i,dataMin:n.min,distance:n.max-n.min,isVertical:!!a,isPositionRight:!!s,aligned:!!u};return l},makeAdditionalDataForCoordinateLineType:function(t,e,i,n,o){var r=_["default"].min(e),a=_["default"].max(e),s=a-r,u=0,l=1;return s&&(i.min<r&&(i.min+=n,u=(i.min-r)/s,l-=u,o-=1,t.shift()),i.max>a&&(i.max-=n,l-=(a-i.max)/s,o-=1,t.pop())),{labels:t,tickCount:o,limit:i,distance:s,positionRatio:u,sizeRatio:l,validTickCount:o,dataMin:r}},_makeAdjustingIntervalInfo:function(t,e,i){var n=void 0,o=parseInt(e/i,10),r=null,a=parseInt(t/o,10);return a>1&&(n=t-a*o,n>=a&&(o+=parseInt(n/a,0),n%=a),r={blockCount:o,beforeRemainBlockCount:n,interval:a}),r},_makeCandidatesForAdjustingInterval:function(t,e){var i=this,n=[],o=f["default"].divisors(t);if(o.forEach(function(i){var o=i/t*e;o>=v&&o<=T&&n.push({interval:i,blockCount:t/i,beforeRemainBlockCount:0})}),0===n.length){var r=(0,a["default"])(v,T,b);n=r.map(function(n){return i._makeAdjustingIntervalInfo(t,e,n)})}return n.filter(function(t){return!!t})},_calculateAdjustingIntervalInfo:function(t,e){var i=this._makeCandidatesForAdjustingInterval(t,e),n=null;return i.length&&(n=_["default"].max(i,function(t){return t.blockCount})),n},_makeFilteredLabelsByInterval:function(t,e,i){return t.slice(e).filter(function(t,e){return e%i===0})},updateLabelAxisDataForAutoTickInterval:function(t,e,i,n){n&&(t.tickCount-=1,t.labels.pop());var o=t.tickCount-1,r=this._calculateAdjustingIntervalInfo(o,e);if(r){t.eventTickCount=t.tickCount;var a=r.blockCount,s=r.beforeRemainBlockCount,u=r.interval,l=a+1,h=0,c=t.labels[t.labels.length-1];t.labels=this._makeFilteredLabelsByInterval(t.labels,h,u),s>0&&t.labels.push(c),Object.assign(t,{startIndex:h,tickCount:l,interval:u,positionRatio:h/o,sizeRatio:1-s/o,remainLastBlockInterval:s})}},updateLabelAxisDataForStackingDynamicData:function(t,e,i){var n=e.interval,o=e.startIndex,r=t.tickCount-1,a=i?i-1:0,s=r/n;a&&2*a<=s&&(n*=2),t.labels=this._makeFilteredLabelsByInterval(t.labels,o,n),s=t.labels.length-1;var u=r-n*s;Object.assign(t,{startIndex:o,interval:n,eventTickCount:t.tickCount,tickCount:t.labels.length,positionRatio:o/r,sizeRatio:1-u/r})},_calculateXAxisLabelAreaWidth:function(t,e,i){return t||(i-=1),e/i},_createMultilineLabel:function(t,e,i){var n=String(t).split(" "),r=[],a=o(n,1),s=a[0];return n.slice(1).forEach(function(t){var n=g["default"].getRenderedLabelWidth(s+" "+t,i);n>e?(r.push(s),s=t):s+=" "+t}),s&&r.push(s),r.join("\n")},_createMultilineLabels:function(t,e,i){var n=this._createMultilineLabel;return t.map(function(t){return n(t,i,e)})},_calculateMultilineHeight:function(t,e,i){return g["default"].getRenderedLabelsMaxHeight(t,Object.assign({cssText:"line-height:1.2;width:"+i+"px"},e))},makeAdditionalDataForMultilineLabels:function(t,e,i,n,o){var r=o.series.width,a=this._calculateXAxisLabelAreaWidth(n,r,e),s=this._createMultilineLabels(t,i,a),u=this._calculateMultilineHeight(s,i,a),l=g["default"].getRenderedLabelsMaxHeight(t,i);return{multilineLabels:s,overflowHeight:u-l,overflowLeft:0}},_findRotationDegree:function(t,e,i){var n=null;return u["default"].DEGREE_CANDIDATES.every(function(o){var r=p["default"].calculateRotatedWidth(o,e,i);return n=o,!(r<=t)}),n},_calculateRotatedWidth:function(t,e,i,n){var o=g["default"].getRenderedLabelWidth(e,n),r=p["default"].calculateRotatedWidth(t,o,i);return r-=p["default"].calculateAdjacent(u["default"].ANGLE_90-t,i/2)},_calculateLimitWidth:function(t,e,i){var n=t;return e&&(n+=i/2),n},makeAdditionalDataForRotatedLabels:function(t,e,i,n,o){var r=g["default"].getRenderedLabelsMaxWidth(t,i),a=o.series.width,s=o.yAxis.width+(o.rightYAxis?o.rightYAxis.width:0),l=this._calculateXAxisLabelAreaWidth(n,a,e),h=null,c=2*u["default"].CHART_PADDING+s+a;if(l<r){var d=g["default"].getRenderedLabelsMaxHeight(t,i),f=this._findRotationDegree(l,r,d),m=p["default"].calculateRotatedHeight(f,r,d),y=this._calculateRotatedWidth(f,t[0],d,i),_=this._calculateLimitWidth(o.yAxis.width,n,l);c+=y,h={degree:f,overflowHeight:m-d,overflowLeft:y-_,overflowRight:c-o.chart.width}}else c+=r,l=g["default"].getRenderedLabelWidth(t[0],i)/2,h={overflowLeft:l-o.yAxis.width,overflowRight:c-o.chart.width};return h}};e["default"]=x},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(195),u=n(s),l=i(154),h=n(l),c=i(181),p=n(c),d=function(t){function e(i,n,a){o(this,e),p["default"].updateRawSeriesDataByOptions(i,a.series);var s=r(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0,isVertical:!0}));return s._updateOptionsRelatedDiverging(a),s.className="tui-column-chart",s}return a(e,t),e.prototype._updateOptionsRelatedDiverging=function(t){t.series=t.series||{},t.series.diverging&&(t.series.stack=t.series.stack||{type:h["default"].NORMAL_STACK_TYPE})},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("columnSeries","columnSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){return{yAxis:!0}},e.prototype.addDataRatios=function(t){var e=this.options.series,i=void 0===e?{}:e,n=this.chartType,o=i[n]||i,r=o.stack;this.dataProcessor.addDataRatios(t[n],r,n)},e}(u["default"]);e["default"]=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(141),u=n(s),l=i(146),h=n(l),c=i(152),p=n(c),d=i(195),f=n(d),m=i(164),g=n(m),y=i(286),_=n(y),v=i(244),T=n(v),b=i(181),x=n(b),A=function(t){function e(i,n,a){o(this,e);var s=r(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-line-chart",s.Series=T["default"],i.series.line.length&&s.dataProcessor.isCoordinateType()&&(delete s.options.xAxis.tickInterval,
s.options.tooltip.grouped=!1,s.options.series.shifting=!1),s._dynamicDataHelper=new _["default"](s),s}return a(e,t),e.prototype.setData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.series.length&&!e.categories.length&&(delete this.options.xAxis.tickInterval,this.options.tooltip.grouped=!1,this.options.series.shifting=!1),t.prototype.setData.call(this,e,i)},e.prototype.addData=function(t,e){this._dynamicDataHelper.addData(t,e)},e.prototype.onChangeCheckedLegends=function(t,e,i){this._dynamicDataHelper.reset(),this._dynamicDataHelper.changeCheckedLegends(t,e,i)},e.prototype.addDataRatios=function(t){var e=this,i=this.chartTypes||[this.chartType],n=this.options.series||{},o=void 0;o=this.dataProcessor.isCoordinateType()?function(i){var n=g["default"].isBubbleChart(i);e.dataProcessor.addDataRatiosForCoordinateType(i,t,n)}:function(i){var o=n[i]||n,r=o.stack;e.dataProcessor.addDataRatios(t[i],r,i)},(0,u["default"])(i,o)},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("lineSeries","lineSeries"),this.componentManager.register("xAxis","axis"),this.hasRightYAxis&&this.componentManager.register("rightYAxis","axis"),this.componentManager.register("yAxis","axis"),this.componentManager.register("legend","legend"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){var t={},e=this.options.xAxis,i=this.options.yAxis,n=void 0,o=void 0;return this.dataProcessor.isCoordinateType()?(o=e&&"datetime"===e.type,n=o&&(0,h["default"])(e.dateFormat),t.xAxis={valueType:"x"},o&&(t.xAxis.type=(e||{}).dateTime),n&&(t.xAxis.format=(e||{}).dateFormat),t.yAxis={valueType:"y"}):this.hasRightYAxis?(t.yAxis=this._makeYAxisScaleOption("yAxis",i[0]),t.rightYAxis=this._makeYAxisScaleOption("yAxis",i[1])):t.yAxis=!0,t},e.prototype._makeYAxisScaleOption=function(t,e){return{options:e,areaType:"yAxis"}},e.prototype.addPlotLine=function(t){this.componentManager.get("plot").addPlotLine(t)},e.prototype.addPlotBand=function(t){this.componentManager.get("plot").addPlotBand(t)},e.prototype.removePlotLine=function(t){this.componentManager.get("plot").removePlotLine(t)},e.prototype.removePlotBand=function(t){this.componentManager.get("plot").removePlotBand(t)},e.prototype._renderForZoom=function(t){var e=this.readyForRender();this.componentManager.render("zoom",e,{isResetZoom:t})},e.prototype.onZoom=function(t){this._dynamicDataHelper.pauseAnimation(),this.dataProcessor.updateRawDataForZoom(t),this._renderForZoom(!1)},e.prototype.onResetZoom=function(){var t=this.dataProcessor.getOriginalRawData();this._dynamicDataHelper.checkedLegends&&(t=x["default"].filterCheckedRawData(t,this._dynamicDataHelper.checkedLegends)),this.dataProcessor.initData(t),this.dataProcessor.initZoomedRawData(),this.dataProcessor.addDataFromRemainDynamicData((0,p["default"])(this.options.series,"shifting")),this._renderForZoom(!0),this._dynamicDataHelper.restartAnimation()},e}(f["default"]);e["default"]=A},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(154),a=n(r),s=i(164),u=n(s),l=function(){function t(e){var i=this;o(this,t);var n=function r(){i.isInitRenderCompleted=!0,i.chart.off(r)};this.chart=e,this.isInitRenderCompleted=!1,this.chart.on("load",n),this.reset()}return t.prototype.reset=function(){this.lookupping=!1,this.paused=!1,this.rerenderingDelayTimerId=null,this.addedDataCount=0,this.checkedLegends=null,this.prevXAxisData=null},t.prototype._calculateAnimateTickSize=function(t){var e=this.chart.dataProcessor,i=this.chart.options.xAxis.tickInterval,n=!!this.chart.options.series.shifting,o=void 0;return o=e.isCoordinateType()?e.getValues(this.chart.chartType,"x").length-1:e.getCategoryCount(!1)-1,n&&!u["default"].isAutoTickInterval(i)&&(o-=1),t/o},t.prototype._animateForAddingData=function(){var t=this.chart,e=t.readyForRender(!0),i=!!this.chart.options.series.shifting;this.addedDataCount+=1;var n=this._calculateAnimateTickSize(e.dimensionMap.xAxis.width);t.componentManager.render("animateForAddingData",e,{tickSize:n,shifting:i}),i&&t.dataProcessor.shiftData()},t.prototype._rerenderForAddingData=function(){var t=this.chart,e=t.readyForRender();t.componentManager.render("rerender",e)},t.prototype._checkForAddedData=function(){var t=this,e=this.chart,i=e.dataProcessor.addDataFromDynamicData();return i?this.paused?void(e.options.series.shifting&&e.dataProcessor.shiftData()):(this._animateForAddingData(),void(this.rerenderingDelayTimerId=setTimeout(function(){t.rerenderingDelayTimerId=null,t._rerenderForAddingData(),t._checkForAddedData()},400))):void(this.lookupping=!1)},t.prototype.changeCheckedLegends=function(t,e,i){var n=this,o=this.chart,r=!!o.options.series.shifting,s=this.paused;s||this.pauseAnimation(),this.checkedLegends=t,o.protectedRerender(t,e,i),s||setTimeout(function(){o.dataProcessor.addDataFromRemainDynamicData(r),n.restartAnimation()},a["default"].RERENDER_TIME)},t.prototype.pauseAnimation=function(){this.paused=!0,this.rerenderingDelayTimerId&&(clearTimeout(this.rerenderingDelayTimerId),this.rerenderingDelayTimerId=null,this.chart.options.series.shifting&&this.chart.dataProcessor.shiftData())},t.prototype.restartAnimation=function(){this.paused=!1,this.lookupping=!1,this._startLookup()},t.prototype._startLookup=function(){this.lookupping||(this.lookupping=!0,this._checkForAddedData())},t.prototype.addData=function(t,e){e||(e=t,t=null),this.chart.dataProcessor.addDynamicData(t,e),this.isInitRenderCompleted?this._startLookup():e&&(this.addedDataCount+=1)},t}();e["default"]=l},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(152),u=n(s),l=i(195),h=n(l),c=i(286),p=n(c),d=i(181),f=n(d),m=i(247),g=n(m),y=function(t){function e(i,n,a){o(this,e),f["default"].removeSeriesStack(i.series);var s=r(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-area-chart",s.Series=g["default"],s._dynamicDataHelper=new p["default"](s),s}return a(e,t),e.prototype.addData=function(t,e){this._dynamicDataHelper.addData(t,e)},e.prototype.onChangeCheckedLegends=function(t,e,i){this._dynamicDataHelper.reset(),this._dynamicDataHelper.changeCheckedLegends(t,e,i)},e.prototype.addDataRatios=function(t){var e=this,i=this.chartTypes||[this.chartType],n=this.options.series||{},o=void 0;o=this.dataProcessor.isCoordinateType()?function(i){e.dataProcessor.addDataRatiosForCoordinateType(i,t,!1)}:function(i){var o=n[i]||n,r=o.stack;e.dataProcessor.addDataRatios(t[i],r,i)},i.forEach(o)},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("areaSeries","areaSeries"),this.componentManager.register("xAxis","axis"),this.componentManager.register("yAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){var t={};return this.dataProcessor.isCoordinateType()?(t.xAxis={valueType:"x"},t.yAxis={valueType:"y"}):t.yAxis=!0,t},e.prototype.addPlotLine=function(t){this.componentManager.get("plot").addPlotLine(t)},e.prototype.addPlotBand=function(t){this.componentManager.get("plot").addPlotBand(t)},e.prototype.removePlotLine=function(t){this.componentManager.get("plot").removePlotLine(t)},e.prototype.removePlotBand=function(t){this.componentManager.get("plot").removePlotBand(t)},e.prototype._renderForZoom=function(t){var e=this.readyForRender();this.componentManager.render("zoom",e,{isResetZoom:t})},e.prototype.onZoom=function(t){this._dynamicDataHelper.pauseAnimation(),this.dataProcessor.updateRawDataForZoom(t),this._renderForZoom(!1)},e.prototype.onResetZoom=function(){var t=this.dataProcessor.getOriginalRawData();this._dynamicDataHelper.checkedLegends&&(t=f["default"].filterCheckedRawData(t,this._dynamicDataHelper.checkedLegends)),this.dataProcessor.initData(t),this.dataProcessor.initZoomedRawData(),this.dataProcessor.addDataFromRemainDynamicData((0,u["default"])(this.options.series,"shifting")),this._renderForZoom(!0),this._dynamicDataHelper.restartAnimation()},e}(h["default"]);e["default"]=y},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=i(195),l=n(u),h=i(181),c=n(h),p=i(164),d=n(p),f=i(289),m=n(f),g=function(t){function e(i,n,a){o(this,e),a.tooltip=a.tooltip||{},a.tooltip.grouped=!0;var s=(0,m["default"])({rawSeriesData:i.series,yAxisOptions:a.yAxis}),u=r(this,t.call(this,{rawData:i,theme:n,options:a,chartTypes:s.chartTypes,seriesTypes:s.seriesTypes,hasAxes:!0,isVertical:!0}));return u.yAxisOptions=u._makeYAxisOptions(u.chartTypes,a.yAxis),u}return a(e,t),e.prototype._makeYAxisOptions=function(t,e){var i={};return e=e||{},t.forEach(function(t,n){i[t]=e[n]||e}),i},e.prototype.onChangeCheckedLegends=function(t){var e=this.dataProcessor.getOriginalRawData(),i=c["default"].filterCheckedRawData(e,t),n=(0,m["default"])({rawSeriesData:i.series,yAxisOptions:this.options.yAxis});this.chartTypes=n.chartTypes,this.seriesTypes=n.seriesTypes,this.protectedRerender(t,i,n)},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("columnSeries","columnSeries"),this.componentManager.register("lineSeries","lineSeries"),this.componentManager.register("yAxis","axis"),this.hasRightYAxis&&this.componentManager.register("rightYAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){var t={yAxis:this._makeYAxisScaleOption("yAxis",this.chartTypes[0],!this.hasRightYAxis)};return this.hasRightYAxis&&(t.rightYAxis=this._makeYAxisScaleOption("rightYAxis",this.chartTypes[1])),t},e.prototype._makeYAxisScaleOption=function(t,e,i){var n=this.yAxisOptions[e],o={isSingleYAxis:!!i};return i&&this.options.series&&this._setAdditionalOptions(o),{options:n,areaType:"yAxis",chartType:e,additionalOptions:o}},e.prototype._setAdditionalOptions=function(t){var e=this.dataProcessor;Object.entries(this.options.series).forEach(function(i){var n=s(i,2),o=n[0],r=n[1];if(r.stackType){var a=e.findChartType(o);d["default"].isAllowedStackOption(a)&&(t.chartType=a,t.stackType=r.stackType)}})},e.prototype.addDataRatios=function(t){var e=this,i=this.chartTypes||[this.chartType],n=this.options.series||{},o=function(i){var o=n[i]||n,r=o.stack;e.dataProcessor.addDataRatios(t[i],r,i)};i.forEach(o)},e}(l["default"]);e["default"]=g},function(t,e){"use strict";function i(t){var e=t.rawSeriesData,i=t.yAxisOptions,o=n(e,i);return{chartTypes:o.chartTypes,seriesTypes:o.seriesTypes}}function n(t,e){var i=Object.keys(t).sort(),n=o(i,e),r=n.length?n:i,a=n.filter(function(e){return t[e].length}),s=void 0;return s=1===a.length?{chartTypes:a,seriesTypes:a}:{chartTypes:r,seriesTypes:i}}function o(t,e){var i=t.slice(),n=[].concat(e||[]),o=!1,r=void 0;return!n.length||1===n.length&&!n[0].chartType?i=[]:n.length&&(r=n.map(function(t){return t.chartType}),r.forEach(function(t,e){o=o||t&&i[e]!==t||!1}),o&&i.reverse()),i}e.__esModule=!0,e["default"]=i},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(141),u=n(s),l=i(195),h=n(l),c=function(t){function e(i,n,a){return o(this,e),r(this,t.call(this,{rawData:i,theme:n,options:a,chartTypes:["line","scatter"],seriesTypes:["line","scatter"],hasAxes:!0,isVertical:!0}))}return a(e,t),e.prototype.getScaleOption=function(){return{yAxis:{valueType:"y"},xAxis:{valueType:"x"}}},e.prototype.addDataRatios=function(t){var e=this,i=this.chartTypes||[this.chartType],n=function(i){e.dataProcessor.addDataRatiosForCoordinateType(i,t,!1)};(0,u["default"])(i,n)},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("lineSeries","lineSeries"),this.componentManager.register("scatterSeries","scatterSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e}(h["default"]);e["default"]=c},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=i(152),l=n(u),h=i(141),c=n(h),p=i(195),d=n(p),f=i(181),m=n(f),g=i(164),y=n(g),_=i(289),v=n(_),T=i(286),b=n(T),x=function(t){function e(i,n,a){o(this,e);var s=(0,v["default"])({rawSeriesData:i.series,yAxisOptions:a.yAxis});a.tooltip=a.tooltip||{},a.tooltip.grouped=!0;var u=r(this,t.call(this,{rawData:i,theme:n,options:a,seriesTypes:s.seriesTypes,chartTypes:s.chartTypes,hasAxes:!0,isVertical:!0}));return u.yAxisOptions=u._makeYAxisOptions(u.chartTypes,a.yAxis),u._dynamicDataHelper=new b["default"](u),u.className="tui-combo-chart",u}return a(e,t),e.prototype.onChangeCheckedLegends=function(t){var e=this.dataProcessor.getCurrentData(),i=m["default"].filterCheckedRawData(e,t),n=(0,v["default"])({rawSeriesData:i.series,yAxisOptions:this.options.yAxis});this._dynamicDataHelper.reset(),this._dynamicDataHelper.changeCheckedLegends(t,i,n)},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("areaSeries","areaSeries"),this.componentManager.register("lineSeries","lineSeries"),this.componentManager.register("xAxis","axis"),this.componentManager.register("yAxis","axis"),this.hasRightYAxis&&this.componentManager.register("rightYAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){var t={yAxis:this._makeYAxisScaleOption("yAxis",this.chartTypes[0],!this.hasRightYAxis)};return this.hasRightYAxis&&(t.rightYAxis=this._makeYAxisScaleOption("rightYAxis",this.chartTypes[1])),t},e.prototype._makeYAxisScaleOption=function(t,e,i){var n=this.yAxisOptions[e],o={isSingleYAxis:!!i};return i&&this.options.series&&this._setAdditionalOptions(o),{options:n,areaType:"yAxis",chartType:e,additionalOptions:o}},e.prototype._makeYAxisOptions=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i={};return t.forEach(function(t,n){i[t]=e[n]||e}),i},e.prototype.addData=function(t,e){this._dynamicDataHelper.addData(t,e)},e.prototype._setAdditionalOptions=function(t){var e=this.dataProcessor;Object.entries(this.options.series).forEach(function(i){var n=s(i,2),o=n[0],r=n[1];if(r.stackType){var a=e.findChartType(o);y["default"].isAllowedStackOption(a)&&(t.chartType=a,t.stack=r.stack)}})},e.prototype.addDataRatios=function(t){var e=this,i=this.chartTypes||[this.chartType],n=this.options.series||{},o=void 0;o=this.dataProcessor.isCoordinateType()?function(i){e.dataProcessor.addDataRatiosForCoordinateType(i,t,!1)}:function(i){var o=n[i]||n,r=o.stack;e.dataProcessor.addDataRatios(t[i],r,i)},(0,c["default"])(i,o)},e.prototype.addPlotLine=function(t){this.componentManager.get("plot").addPlotLine(t)},e.prototype.addPlotBand=function(t){this.componentManager.get("plot").addPlotBand(t)},e.prototype.removePlotLine=function(t){this.componentManager.get("plot").removePlotLine(t)},e.prototype.removePlotBand=function(t){this.componentManager.get("plot").removePlotBand(t)},e.prototype._renderForZoom=function(t){var e=this.readyForRender();this.componentManager.render("zoom",e,{isResetZoom:t})},e.prototype.onZoom=function(t){this._dynamicDataHelper.pauseAnimation(),this.dataProcessor.updateRawDataForZoom(t),this._renderForZoom(!1)},e.prototype.onResetZoom=function(){var t=this.dataProcessor.getOriginalRawData();this._dynamicDataHelper.checkedLegends&&(t=m["default"].filterCheckedRawData(t,this._dynamicDataHelper.checkedLegends)),this.dataProcessor.initData(t),this.dataProcessor.initZoomedRawData(),this.dataProcessor.addDataFromRemainDynamicData((0,l["default"])(this.options.series,"shifting")),this._renderForZoom(!0),this._dynamicDataHelper.restartAnimation()},e}(d["default"]);e["default"]=x},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(195),u=n(s),l=i(181),h=n(l),c=function(t){function e(i,n,a){o(this,e);var s=r(this,t.call(this,{rawData:i,theme:n,options:a,seriesTypes:Object.keys(i.series).sort(),chartTypes:["pie","pie"],isVertical:!0}));return s.className="tui-combo-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("pie1Series","pieSeries"),this.componentManager.register("pie2Series","pieSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(){var t=this,e=this.seriesTypes||[this.chartType];e.forEach(function(e){t.dataProcessor.addDataRatiosOfPieChart(e)})},e.prototype.onChangeCheckedLegends=function(t){var e=this.dataProcessor.getOriginalRawData(),i=h["default"].filterCheckedRawData(e,t);u["default"].prototype.onChangeCheckedLegends.call(this,t,i,{seriesTypes:this.seriesTypes})},e}(u["default"]);e["default"]=c},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(195),u=n(s),l=i(154),h=n(l),c=function(t){function e(i,n,a){o(this,e),a.tooltip=a.tooltip||{},a.tooltip.align||(a.tooltip.align=h["default"].TOOLTIP_DEFAULT_ALIGN_OPTION);var s=r(this,t.call(this,{rawData:i,theme:n,options:a}));return s.className="tui-pie-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("pieSeries","pieSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(){this.dataProcessor.addDataRatiosOfPieChart(this.chartType)},e}(u["default"]);e["default"]=c},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(145),u=n(s),l=i(195),h=n(l),c=i(154),p=n(c),d=function(t){function e(i,n,a){o(this,e),a=Object.assign({tooltip:{},circleLegend:{}},a),a.circleLegend=Object.assign({visible:!0},a.circleLegend),a.tooltip=Object.assign({align:p["default"].TOOLTIP_DEFAULT_ALIGN_OPTION,grouped:!1},a.tooltip);var s=r(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0}));return s.className="tui-bubble-chart",s}return a(e,t),e.prototype.getScaleOption=function(){var t={};return this.dataProcessor.hasXValue(this.chartType)&&(t.xAxis={valueType:"x"}),this.dataProcessor.hasYValue(this.chartType)&&(t.yAxis={valueType:"y"}),t},e.prototype._setDefaultOptions=function(t){h["default"].prototype._setDefaultOptions.call(this,t),this.options.circleLegend=this.options.circleLegend||{},(0,u["default"])(this.options.circleLegend.visible)&&(this.options.circleLegend.visible=!0)},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("circleLegend","circleLegend"),this.componentManager.register("bubbleSeries","bubbleSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatiosForCoordinateType(this.chartType,t,!0)},e}(h["default"]);e["default"]=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(195),u=n(s),l=i(154),h=n(l),c=function(t){function e(i,n,a){o(this,e),a.tooltip=a.tooltip||{},a.tooltip.align||(a.tooltip.align=h["default"].TOOLTIP_DEFAULT_ALIGN_OPTION),a.tooltip.grouped=!1;var s=r(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0}));return s.className="tui-scatter-chart",s}return a(e,t),e.prototype.getScaleOption=function(){return{xAxis:{valueType:"x"},yAxis:{valueType:"y"}}},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("scatterSeries","scatterSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatiosForCoordinateType(this.chartType,t,!1)},e}(u["default"]);e["default"]=c},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(195),u=n(s),l=i(297),h=n(l),c=i(154),p=n(c),d=function(t){function e(i,n,a){o(this,e),a.tooltip=a.tooltip||{},a.tooltip.align||(a.tooltip.align=p["default"].TOOLTIP_DEFAULT_ALIGN_OPTION),a.tooltip.grouped=!1;var s=r(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-heatmap-chart",s}return a(e,t),e.prototype._addComponents=function(){var t=this.theme.series[this.chartType],e=new h["default"](t.startColor,t.endColor);this._addComponentsForAxisType({axis:[{name:"yAxis",isVertical:!0},{name:"xAxis"}],legend:{classType:"spectrumLegend",additionalParams:{colorSpectrum:e}},series:[{name:"heatmapSeries",data:{colorSpectrum:e}}],tooltip:!0,mouseEventDetector:!0})},e.prototype.getScaleOption=function(){return{legend:!0}},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t.legend,null,this.chartType)},e.prototype.addComponents=function(){var t=this.theme.series[this.chartType],e=new h["default"](t.startColor,t.endColor);this.componentManager.register("title","title"),this.componentManager.register("legend","spectrumLegend",{colorSpectrum:e}),this.componentManager.register("heatmapSeries","heatmapSeries",{colorSpectrum:e}),this.componentManager.register("xAxis","axis"),this.componentManager.register("yAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip",{colorSpectrum:e}),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e}(u["default"]);e["default"]=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var a=i(298),s=n(a),u=function(){function t(e,i){r(this,t),this.start=s["default"].colorNameToHex(e),this.startRGB=s["default"].hexToRGB(this.start),this.end=s["default"].colorNameToHex(i);var n=s["default"].hexToRGB(this.end);this.distances=this._makeDistances(this.startRGB,n),this.colorMap={}}return t.prototype._makeDistances=function(t,e){return t.map(function(t,i){return e[i]-t})},t.prototype.getColor=function(t){var e=this.colorMap[t];if(!e){var i=this.distances,n=this.startRGB,r=n.map(function(e,n){return e+parseInt(i[n]*t,10)});e=s["default"].rgbToHEX.apply(s["default"],o(r))}return e||null},t}();e["default"]=u},function(t,e){"use strict";e.__esModule=!0;var i=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i,n={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",
lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};e["default"]={leadingZero:function(t,e){var i="";if(String(t).length>e)return String(t);for(var n=0;n<e-1;n+=1)i+="0";return(i+t).slice(e*-1)},isValidRGB:function(t){return i.test(t)},hexToRGB:function(t){if(!this.isValidRGB(t))return!1;t=t.substring(1);var e=parseInt(t.substr(0,2),16),i=parseInt(t.substr(2,2),16),n=parseInt(t.substr(4,2),16);return[e,i,n]},rgbToHEX:function(t,e,i){var n="#",o=n+this.leadingZero(t.toString(16),2)+this.leadingZero(e.toString(16),2)+this.leadingZero(i.toString(16),2);return!!this.isValidRGB(o)&&o},colorNameToHex:function(t){return n[t.toLowerCase()]||t}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(152),u=n(s),l=i(195),h=n(l),c=i(297),p=n(c),d=function(t){function e(i,n,a){o(this,e),a.tooltip=a.tooltip||{},a.tooltip.grouped=!1;var s=r(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!1,isVertical:!0}));return s.className="tui-treemap-chart",s}return a(e,t),e.prototype.addComponents=function(){var t=this.theme.series[this.chartType],e=this.options.series.useColorValue,i=e?new p["default"](t.startColor,t.endColor):null;this.componentManager.register("title","title"),this.componentManager.register("treemapSeries","treemapSeries",{colorSpectrum:i}),e&&this.options.legend.visible&&this.componentManager.register("legend","spectrumLegend",{colorSpectrum:i}),this.componentManager.register("tooltip","tooltip",Object.assign({labelTheme:(0,u["default"])(this.theme,"series","label"),colorSpectrum:i})),this.componentManager.register("mouseEventDetector","mouseEventDetector"),this.componentManager.register("chartExportMenu","chartExportMenu")},e.prototype.getScaleOption=function(){return{legend:!0}},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatiosForTreemapChart(t.legend,this.chartType)},e.prototype.onZoom=function(t){this.componentManager.render("zoom",null,{index:t})},e}(h["default"]);e["default"]=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(195),u=n(s),l=i(185),h=n(l),c=i(301),p=n(c),d=i(302),f=n(d),m=i(297),g=n(m),y=function(t){function e(i,n,a){o(this,e),a.map=h["default"].get(a.map),a.tooltip=a.tooltip||{},a.legend=a.legend||{};var s=r(this,t.call(this,{rawData:i,theme:n,options:a,DataProcessor:f["default"]}));return s.className="tui-map-chart",s}return a(e,t),e.prototype.addComponents=function(){var t=this.theme.series[this.chartType],e=new g["default"](t.startColor,t.endColor);this.mapModel=new p["default"](this.dataProcessor,this.options.map),this.componentManager.register("mapSeries","mapSeries",{mapModel:this.mapModel,colorSpectrum:e}),this.componentManager.register("title","title"),this.componentManager.register("legend","spectrumLegend",{colorSpectrum:e}),this.componentManager.register("tooltip","tooltip",{mapModel:this.mapModel,colorSpectrum:e}),this.componentManager.register("zoom","zoom"),this.componentManager.register("mouseEventDetector","mapChartEventDetector")},e.prototype.setData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.mapModel.clearMapData(),t.prototype.setData.call(this,e)},e.prototype.getScaleOption=function(){return{legend:!0}},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t.legend)},e}(u["default"]);e["default"]=y},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(145),a=n(r),s=i(189),u=n(s),l=i(154),h=n(l),c=i(158),p=n(c),d=function(){function t(e,i){o(this,t),this.commandFuncMap={M:this._makeCoordinate.bind(this),m:this._makeCoordinateFromRelativeCoordinate.bind(this),L:this._makeCoordinate.bind(this),l:this._makeCoordinateFromRelativeCoordinate.bind(this),H:this._makeXCoordinate.bind(this),h:this._makeXCoordinateFroRelativeCoordinate.bind(this),V:this._makeYCoordinate.bind(this),v:this._makeYCoordinateFromRelativeCoordinate.bind(this)},this.ignoreCommandMap={Z:!0,z:!0},this.mapDimension=null,this.dataProcessor=e,this.rawMapData=i,this.mapData=null}return t.prototype._splitCoordinate=function(t){var e=t.split(","),i={x:parseFloat(e[0])};return e[1]&&(i.y=parseFloat(e[1])),i},t.prototype._makeCoordinate=function(t){return this._splitCoordinate(t)},t.prototype._makeCoordinateFromRelativeCoordinate=function(t,e){var i=this._splitCoordinate(t);return{x:i.x+e.x,y:i.y+e.y}},t.prototype._makeXCoordinate=function(t){var e=this._splitCoordinate(t);return{x:e.x}},t.prototype._makeXCoordinateFroRelativeCoordinate=function(t,e){var i=this._splitCoordinate(t);return{x:i.x+e.x}},t.prototype._makeYCoordinate=function(t){var e=this._splitCoordinate(t);return{y:e.x}},t.prototype._makeYCoordinateFromRelativeCoordinate=function(t,e){var i=this._splitCoordinate(t);return{y:i.x+e.y}},t.prototype._splitPath=function(t){for(var e=t.length,i=[],n="",o=void 0,r=0;r<e;r+=1){var a=t.charAt(r);this.commandFuncMap[a]?(o&&n&&i.push({type:o,coordinate:n}),o=a,n=""):this.ignoreCommandMap[a]||(n+=a)}return this._addCommandPath(i,{commandType:o,coordinate:n}),i},t.prototype._addCommandPath=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.commandType,n=e.coordinate;i&&n&&t.push({type:i,coordinate:n})},t.prototype._makeCoordinatesFromPath=function(t){var e=this,i=this._splitPath(t),n={x:0,y:0};return i.map(function(t){var i=e.commandFuncMap[t.type],o=i(t.coordinate,n);return Object.assign(n,o),o})},t.prototype._findBoundFromCoordinates=function(t){var e=(0,u["default"])(t,"x").filter(function(t){return!(0,a["default"])(t)}),i=(0,u["default"])(t,"y").filter(function(t){return!(0,a["default"])(t)}),n=p["default"].max(e),o=p["default"].min(e),r=p["default"].max(i),s=p["default"].min(i);return{dimension:{width:n-o,height:r-s},position:{left:o,top:s}}},t.prototype._makeLabelPosition=function(t,e){return e=e||h["default"].MAP_CHART_LABEL_DEFAULT_POSITION_RATIO,{left:t.position.left+t.dimension.width*e.x,top:t.position.top+t.dimension.height*e.y}},t.prototype._createMapData=function(t){var e=this;return t.map(function(t){var i=e._makeCoordinatesFromPath(t.path),n=e._findBoundFromCoordinates(i),o=e.dataProcessor.getValueMapDatum(t.code),r=void 0,a=void 0,s=void 0,u=void 0;o&&(s=o.label,u=o.ratio,r=o.name||t.name,a=o.labelCoordinate||t.labelCoordinate);var l={code:t.code,name:r,path:t.path,bound:n,labelPosition:e._makeLabelPosition(n,a)};return s&&(l.label=s),u>=0&&(l.ratio=u),l})},t.prototype.clearMapData=function(){this.mapData=null},t.prototype.getMapData=function(){return this.mapData||(this.mapData=this._createMapData(this.rawMapData)),this.mapData},t.prototype.getDatum=function(t){return this.getMapData()[t]},t.prototype.getLabelData=function(t){var e=this,i=this.getMapData(),n=i.filter(function(t){return e.dataProcessor.getValueMapDatum(t.code)});return n.map(function(e){return{name:e.name,labelPosition:{left:e.labelPosition.left*t,top:e.labelPosition.top*t}}})},t.prototype._makeMapDimension=function(){var t=this.getMapData(),e=t.map(function(t){return t.bound.position.left}),i=t.map(function(t){return t.bound.position.left+t.bound.dimension.width}),n=t.map(function(t){return t.bound.position.top}),o=t.map(function(t){return t.bound.position.top+t.bound.dimension.height});return{width:p["default"].max(i)-p["default"].min(e),height:p["default"].max(o)-p["default"].min(n)}},t.prototype.getMapDimension=function(){return this.mapDimension||(this.mapDimension=this._makeMapDimension()),this.mapDimension},t}();e["default"]=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(189),u=n(s),l=i(262),h=n(l),c=i(148),p=n(c),d=function(t){function e(i,n,a){o(this,e);var s=r(this,t.call(this));return s.rawData=i,s.options=a,s}return a(e,t),e.prototype.initData=function(t){this.rawData=t,this.valueMap=null},e.prototype._makeValueMap=function(){var t=this.rawData.series.map,e={},i=this._findFormatFunctions();return t.forEach(function(t){var n={value:t.data,label:p["default"].formatValue({value:t.data,formatFunctions:i,chartType:"map",areaType:"series"})};t.name&&(n.name=t.name),t.labelCoordinate&&(n.labelCoordinate=t.labelCoordinate),e[t.code]=n}),e},e.prototype.getValueMap=function(){return this.valueMap||(this.valueMap=this._makeValueMap()),this.valueMap},e.prototype.getValues=function(){return(0,u["default"])(this.getValueMap(),"value")},e.prototype.getCurrentData=function(){return this.rawData},e.prototype.getValueMapDatum=function(t){return this.getValueMap()[t]},e.prototype.addDataRatios=function(t){var e=t.min,i=t.max-e,n=Object.values(this.getValueMap());n.forEach(function(t){t.ratio=(t.value-e)/i})},e.prototype.createBaseValuesForLimit=function(){return this.getValues()},e.prototype.getLegendVisibility=function(){return null},e}(h["default"]);e["default"]=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(195),u=n(s),l=i(244),h=n(l),c=function(t){function e(i,n,a){o(this,e),a.tooltip&&(a.tooltip.grouped=!1);var s=r(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-radial-chart",s.Series=h["default"],s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("plot","radialPlot"),this.componentManager.register("radialSeries","radialSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t[this.chartType],null,this.chartType)},e.prototype.getScaleOption=function(){return{yAxis:{}}},e}(u["default"]);e["default"]=c},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(195),u=n(s),l=i(181),h=n(l),c=function(t){function e(i,n,a){o(this,e),h["default"].appendOutliersToSeriesData(i);var s=r(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-boxplot-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("boxplotSeries","boxplotSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){return{yAxis:!0}},e.prototype.onChangeCheckedLegends=function(t){var e=void 0;this.hasRightYAxis&&(e={optionChartTypes:["boxplot","boxplot"]}),u["default"].prototype.onChangeCheckedLegends.call(this,t,null,e)},e.prototype.addDataRatios=function(t){var e=this.options.series,i=void 0===e?{}:e,n=this.chartType,o=i[n]||i,r=o.stack;this.dataProcessor.addDataRatios(t[n],r,n)},e}(u["default"]);e["default"]=c},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(195),u=n(s),l=i(181),h=n(l),c=function(t){function e(i,n,a){o(this,e),h["default"]._makeRawSeriesDataForBulletChart(i);var s=r(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0,isVertical:!!a.series.vertical}));return s.className="tui-bullet-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("bulletSeries","bulletSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu",{chartType:"bullet"}),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){return this.isVertical?{yAxis:!0}:{xAxis:!0}},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t[this.chartType],null,this.chartType)},e}(u["default"]);e["default"]=c},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}var o=i(154),r=n(o),a=i(183),s=n(a),u=i(184),l=n(u);s["default"].register(r["default"].DEFAULT_THEME_NAME,l["default"])},function(t,e){}])});