Current File : /home/tradevaly/www/public/assets/libs/tui-chart/tui-chart.min.js
/*!
 * tui-chart-all.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:50:33 GMT+0900 (Korean Standard Time)"
 */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.chart=e():(t.tui=t.tui||{},t.tui.chart=e())}(this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.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 r=i(133),o=n(r);t.exports=o["default"]},function(t,e,i){var n=i(4);t.exports=n},function(t,e,i){i(5);var n=i(39),r=n.Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,i){var n=i(6),r=i(9),o=i(49);n({target:"Object",stat:!0,sham:!r},{create:o})},function(t,e,i){var n=i(7),r=i(8).f,o=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,g=t.target,m=t.global,y=t.stat;if(h=m?n:y?n[g]||s(g,{}):(n[g]||{}).prototype)for(c in e){if(d=e[c],t.noTargetGet?(f=r(h,c),p=f&&f.value):p=h[c],i=l(m?c:g+(y?".":"#")+c,t.forced),!i&&void 0!==p){if(typeof d==typeof p)continue;u(d,p)}(t.sham||p&&p.sham)&&o(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),r=i(11),o=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 o(!r.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,r=n&&!i.call({1:2},1);e.f=r?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),r=i(16);t.exports=function(t){return n(r(t))}},function(t,e,i){var n=i(10),r=i(15),o="".split;t.exports=n(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==r(t)?o.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,r;if(e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;if("function"==typeof(i=t.valueOf)&&!n(r=i.call(t)))return r;if(!e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;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),r=i(10),o=i(21);t.exports=!n&&!r(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},function(t,e,i){var n=i(7),r=i(18),o=n.document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},function(t,e,i){var n=i(9),r=i(23),o=i(12);t.exports=n?function(t,e,i){return r.f(t,e,o(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e,i){var n=i(9),r=i(20),o=i(24),a=i(17),s=Object.defineProperty;e.f=n?s:function(t,e,i){if(o(t),e=a(e,!0),o(i),r)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),r=i(22),o=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||o(i,"name")||r(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:r(t,e,i)))})(Function.prototype,"toString",function(){return"function"==typeof this&&l(this).source||s(this)})},function(t,e,i){var n=i(7),r=i(22);t.exports=function(t,e){try{r(n,t,e)}catch(i){n[t]=e}return e}},function(t,e,i){var n=i(28),r=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return r.call(t)}),t.exports=n.inspectSource},function(t,e,i){var n=i(7),r=i(26),o="__core-js_shared__",a=n[o]||r(o,{});t.exports=a},function(t,e,i){var n,r,o,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 o(t)?r(t):n(t,{})},g=function(t){return function(e){var i;if(!u(e)||(i=r(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}};if(a){var m=new d,y=m.get,_=m.has,v=m.set;n=function(t,e){return v.call(m,t,e),e},r=function(t){return y.call(m,t)||{}},o=function(t){return _.call(m,t)}}else{var x=c("state");p[x]=!0,n=function(t,e){return l(t,x,e),e},r=function(t){return h(t,x)?t[x]:{}},o=function(t){return h(t,x)}}t.exports={set:n,get:r,has:o,enforce:f,getterFor:g}},function(t,e,i){var n=i(7),r=i(27),o=n.WeakMap;t.exports="function"==typeof o&&/native code/.test(r(o))},function(t,e,i){var n=i(32),r=i(34),o=n("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},function(t,e,i){var n=i(33),r=i(28);(t.exports=function(t,e){return r[t]||(r[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),r=i(37),o=i(8),a=i(23);t.exports=function(t,e){for(var i=r(e),s=a.f,u=o.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),r=i(40),o=i(47),a=i(24);t.exports=n("Reflect","ownKeys")||function(t){var e=r.f(a(t)),i=o.f;return i?e.concat(i(t)):e}},function(t,e,i){var n=i(39),r=i(7),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t])||o(r[t]):n[t]&&n[t][e]||r[t]&&r[t][e]}},function(t,e,i){var n=i(7);t.exports=n},function(t,e,i){var n=i(41),r=i(46),o=r.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},function(t,e,i){var n=i(19),r=i(13),o=i(42).indexOf,a=i(35);t.exports=function(t,e){var i,s=r(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++])&&(~o(l,i)||l.push(i));return l}},function(t,e,i){var n=i(13),r=i(43),o=i(45),a=function(t){return function(e,i,a){var s,u=n(e),l=r(u.length),h=o(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),r=Math.min;t.exports=function(t){return t>0?r(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),r=Math.max,o=Math.min;t.exports=function(t,e){var i=n(t);return i<0?r(i+e,0):o(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),r=/#|\.prototype\./,o=function(t,e){var i=s[a(t)];return i==l||i!=u&&("function"==typeof e?n(e):!!e)},a=o.normalize=function(t){return String(t).replace(r,".").toLowerCase()},s=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";t.exports=o},function(t,e,i){var n,r=i(24),o=i(50),a=i(46),s=i(35),u=i(52),l=i(21),h=i(31),c=">",p="<",d="prototype",f="script",g=h("IE_PROTO"),m=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},x=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(t){}x=n?_(n):v();for(var e=a.length;e--;)delete x[d][a[e]];return x()};s[g]=!0,t.exports=Object.create||function(t,e){var i;return null!==t?(m[d]=r(t),i=new m,m[d]=null,i[g]=t):i=x(),void 0===e?i:o(i,e)}},function(t,e,i){var n=i(9),r=i(23),o=i(24),a=i(51);t.exports=n?Object.defineProperties:function(t,e){o(t);for(var i,n=a(e),s=n.length,u=0;s>u;)r.f(t,i=n[u++],e[i]);return t}},function(t,e,i){var n=i(41),r=i(46);t.exports=Object.keys||function(t){return n(t,r)}},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),r=i(56);n({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},function(t,e,i){"use strict";var n=i(9),r=i(10),o=i(51),a=i(47),s=i(11),u=i(57),l=i(14),h=Object.assign,c=Object.defineProperty;t.exports=!h||r(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(),r="abcdefghijklmnopqrst";return t[i]=7,r.split("").forEach(function(t){e[t]=t}),7!=h({},t)[i]||o(h({},e)).join("")!=r})?function(t,e){for(var i=u(t),r=arguments.length,h=1,c=a.f,p=s.f;r>h;)for(var d,f=l(arguments[h++]),g=c?o(f).concat(c(f)):o(f),m=g.length,y=0;m>y;)d=g[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),r=i(61).entries;n({target:"Object",stat:!0},{entries:function(t){return r(t)}})},function(t,e,i){var n=i(9),r=i(51),o=i(13),a=i(11).f,s=function(t){return function(e){for(var i,s=o(e),u=r(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),r=i(61).values;n({target:"Object",stat:!0},{values:function(t){return r(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),r=i(57),o=i(51),a=i(10),s=a(function(){o(1)});n({target:"Object",stat:!0,forced:s},{keys:function(t){return o(r(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),r=i(71);n({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},function(t,e,i){"use strict";var n=i(72).forEach,r=i(80),o=i(81),a=r("forEach"),s=o("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),r=i(14),o=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,g,m){for(var y,_,v=o(d),x=r(v),T=n(f,g,3),b=a(x.length),A=0,E=m||s,D=e?E(d,b):i?E(d,0):void 0;b>A;A++)if((p||A in x)&&(y=x[A],_=T(y,A,v),t))if(e)D[A]=_;else if(_)switch(t){case 3:return!0;case 5:return y;case 6:return A;case 2:u.call(D,y)}else if(h)return!1;return c?-1:l||h?h:D}};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,r){return t.call(e,i,n,r)}}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),r=i(76),o=i(77),a=o("species");t.exports=function(t,e){var i;return r(t)&&(i=t.constructor,"function"!=typeof i||i!==Array&&!r(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),r=i(32),o=i(19),a=i(34),s=i(78),u=i(79),l=r("wks"),h=n.Symbol,c=u?h:h&&h.withoutSetter||a;t.exports=function(t){return o(l,t)||(s&&o(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),r=i(10),o=i(19),a=Object.defineProperty,s={},u=function(t){throw t};t.exports=function(t,e){if(o(s,t))return s[t];e||(e={});var i=[][t],l=!!o(e,"ACCESSORS")&&e.ACCESSORS,h=o(e,0)?e[0]:u,c=o(e,1)?e[1]:void 0;return s[t]=!!i&&!r(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),r=i(73),o=Function.call;t.exports=function(t,e,i){return r(o,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),r=i(76);n({target:"Array",stat:!0},{isArray:r})},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),r=i(72).filter,o=i(89),a=i(81),s=o("filter"),u=a("filter");n({target:"Array",proto:!0,forced:!s||!u},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,i){var n=i(10),r=i(77),o=i(90),a=r("species");t.exports=function(t){return o>=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,r,o=i(7),a=i(91),s=o.process,u=s&&s.versions,l=u&&u.v8;l?(n=l.split("."),r=n[0]+n[1]):a&&(n=a.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/),n&&(r=n[1]))),t.exports=r&&+r},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),r=i(95).left,o=i(80),a=i(81),s=o("reduce"),u=a("reduce",{1:0});n({target:"Array",proto:!0,forced:!s||!u},{reduce:function(t){return r(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(t,e,i){var n=i(74),r=i(57),o=i(14),a=i(43),s=function(t){return function(e,i,s,u){n(i);var l=r(e),h=o(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,r=i(29),o=i(100),a="String Iterator",s=r.set,u=r.getterFor(a);o(String,"String",function(t){s(this,{type:a,string:String(t),index:0})},function(){var t,e=u(this),i=e.string,r=e.index;return r>=i.length?{value:void 0,done:!0}:(t=n(i,r),e.index+=t.length,{value:t,done:!1})})},function(t,e,i){var n=i(44),r=i(16),o=function(t){return function(e,i){var o,a,s=String(r(e)),u=n(i),l=s.length;return u<0||u>=l?t?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):(o-55296<<10)+(a-56320)+65536)}};t.exports={codeAt:o(!1),charAt:o(!0)}},function(t,e,i){"use strict";var n=i(6),r=i(101),o=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,g=d.BUGGY_SAFARI_ITERATORS,m=h("iterator"),y="keys",_="values",v="entries",x=function(){return this};t.exports=function(t,e,i,h,d,T,b){r(i,e,h);var A,E,D,C=function(t){if(t===d&&P)return P;if(!g&&t in L)return L[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)}},S=e+" Iterator",w=!1,L=t.prototype,M=L[m]||L["@@iterator"]||d&&L[d],P=!g&&M||C(d),k="Array"==e?L.entries||M:M;if(k&&(A=o(k.call(new t)),f!==Object.prototype&&A.next&&(c||o(A)===f||(a?a(A,f):"function"!=typeof A[m]&&u(A,m,x)),s(A,S,!0,!0),c&&(p[S]=x))),d==_&&M&&M.name!==_&&(w=!0,P=function(){return M.call(this)}),c&&!b||L[m]===P||u(L,m,P),p[e]=P,d)if(E={values:C(_),keys:T?P:C(y),entries:C(v)},b)for(D in E)!g&&!w&&D in L||l(L,D,E[D]);else n({target:e,proto:!0,forced:g||w},E);return E}},function(t,e,i){"use strict";var n=i(102).IteratorPrototype,r=i(49),o=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=r(n,{next:o(1,i)}),a(t,l,!1,!0),s[l]=u,t}},function(t,e,i){"use strict";var n,r,o,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&&(o=[].keys(),"next"in o?(r=a(a(o)),r!==Object.prototype&&(n=r)):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),r=i(57),o=i(31),a=i(104),s=o("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=r(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,r=i(19),o=i(77),a=o("toStringTag");t.exports=function(t,e,i){t&&!r(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),r=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(o){}return function(i,o){return n(i),r(o),e?t.call(i,o):i.__proto__=o,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),r=i(110),o=i(117),a=!o(function(t){Array.from(t)});n({target:"Array",stat:!0,forced:a},{from:r})},function(t,e,i){"use strict";var n=i(73),r=i(57),o=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=r(t),g="function"==typeof this?this:Array,m=arguments.length,y=m>1?arguments[1]:void 0,_=void 0!==y,v=l(f),x=0;if(_&&(y=n(y,m>2?arguments[2]:void 0,2)),void 0==v||g==Array&&a(v))for(e=s(f.length),i=new g(e);e>x;x++)d=_?y(f[x],x):f[x],u(i,x,d);else for(c=v.call(f),p=c.next,i=new g;!(h=p.call(c)).done;x++)d=_?o(c,y,[h.value,x],!0):h.value,u(i,x,d);return i.length=x,i}},function(t,e,i){var n=i(24);t.exports=function(t,e,i,r){try{return r?e(n(i)[0],i[1]):e(i)}catch(o){var a=t["return"];throw void 0!==a&&n(a.call(t)),o}}},function(t,e,i){var n=i(77),r=i(106),o=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||a[o]===t)}},function(t,e,i){"use strict";var n=i(17),r=i(23),o=i(12);t.exports=function(t,e,i){var a=n(e);a in t?r.f(t,a,o(0,i)):t[a]=i}},function(t,e,i){var n=i(115),r=i(106),o=i(77),a=o("iterator");t.exports=function(t){if(void 0!=t)return t[a]||t["@@iterator"]||r[n(t)]}},function(t,e,i){var n=i(116),r=i(15),o=i(77),a=o("toStringTag"),s="Arguments"==r(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(i){}};t.exports=n?r:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=u(e=Object(t),a))?i:s?r(e):"Object"==(n=r(e))&&"function"==typeof e.callee?"Arguments":n}},function(t,e,i){var n=i(77),r=n("toStringTag"),o={};o[r]="z",t.exports="[object z]"===String(o)},function(t,e,i){var n=i(77),r=n("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},"return":function(){o=!0}};s[r]=function(){return this},Array.from(s,function(){throw 2})}catch(u){}t.exports=function(t,e){if(!e&&!o)return!1;var i=!1;try{var n={};n[r]=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),r=i(72).map,o=i(89),a=i(81),s=o("map"),u=a("map");n({target:"Array",proto:!0,forced:!s||!u},{map:function(t){return r(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),r=i(124),o=i(125);n({target:"Array",proto:!0},{fill:r}),o("fill")},function(t,e,i){"use strict";var n=i(57),r=i(45),o=i(43);t.exports=function(t){for(var e=n(this),i=o(e.length),a=arguments.length,s=r(a>1?arguments[1]:void 0,i),u=a>2?arguments[2]:void 0,l=void 0===u?i:r(u,i);l>s;)e[s++]=t;return e}},function(t,e,i){var n=i(77),r=i(49),o=i(23),a=n("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:r(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),r=i(38),o=i(10),a=r("JSON","stringify"),s=/[\uD800-\uDFFF]/g,u=/^[\uD800-\uDBFF]$/,l=/^[\uDC00-\uDFFF]$/,h=function(t,e,i){var n=i.charAt(e-1),r=i.charAt(e+1);return u.test(t)&&!l.test(r)||l.test(t)&&!u.test(n)?"\\u"+t.charCodeAt(0).toString(16):t},c=o(function(){return'"\\udf06\\ud834"'!==a("��")||'"\\udead"'!==a("�")});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),r=i(132);n({target:"Function",proto:!0},{bind:r})},function(t,e,i){"use strict";var n=i(74),r=i(18),o=[].slice,a={},s=function(t,e,i){if(!(e in a)){for(var n=[],r=0;r<e;r++)n[r]="a["+r+"]";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=o.call(arguments,1),a=function(){var n=i.concat(o.call(arguments));return this instanceof a?s(e,n.length,n):e.apply(t,n)};return r(e.prototype)&&(a.prototype=e.prototype),a}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}var r=i(134),o=i(179),a=n(o),s=i(148),u=n(s),l=i(158),h=n(l),c=i(298),p=n(c);i(307),a["default"].registerPlugin("Raphael",r.pluginRaphael,r.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 r(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"),r=document.createElementNS("http://www.w3.org/2000/svg","feComposite"),o=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"),r.setAttribute("in","flood"),r.setAttribute("result","mask"),r.setAttribute("in2","SourceGraphic"),r.setAttribute("operator","in"),o.setAttribute("in","mask"),o.setAttribute("result","dilated"),o.setAttribute("operator","dilate"),o.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(r),e.appendChild(o),e.appendChild(i),e.appendChild(a),a.appendChild(s),a.appendChild(u),t.defs.appendChild(e)}function o(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"),r=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"),r.setAttributeNS(null,"in","SourceGraphic"),r.setAttributeNS(null,"in2","blurOut"),r.setAttributeNS(null,"mode","normal"),e.appendChild(i),e.appendChild(n),e.appendChild(r),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),g=n(f),m=i(165),y=n(m),_=i(167),v=n(_),x=i(168),T=n(x),b=i(169),A=n(b),E=i(170),D=n(E),C=i(171),S=n(C),w=i(172),L=n(w),M=i(174),P=n(M),k=i(175),O=n(k),R=i(176),I=n(R),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:g["default"],area:y["default"],pie:v["default"],bubble:A["default"],scatter:A["default"],heatmap:D["default"],treemap:D["default"],map:S["default"],radial:T["default"],legend:L["default"],mapLegend:P["default"],circleLegend:O["default"],radialPlot:G["default"],title:I["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&&(r(i),o(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(t,e,i){!function(e,i){t.exports=i()}(this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var i={};return e.m=t,e.c=i,e.p="",e(0)}([function(t,e,i){var n,r;n=[i(1),i(3),i(4)],r=function(t){return t}.apply(e,n),!(void 0!==r&&(t.exports=r))},function(t,e,i){var n,r;n=[i(2)],r=function(t){function e(i){if(e.is(i,"function"))return v?i():t.on("raphael.DOMload",i);if(e.is(i,U))return e._engine.create[w](e,i.splice(0,3+e.is(i[0],W))).add(i);var n=Array.prototype.slice.call(arguments,0);if(e.is(n[n.length-1],"function")){var r=n.pop();return v?r.call(e._engine.create[w](e,n)):t.on("raphael.DOMload",function(){r.call(e._engine.create[w](e,n))})}return e._engine.create[w](e,arguments)}function i(t){if("function"==typeof t||Object(t)!==t)return t;var e=new t.constructor;for(var n in t)t[E](n)&&(e[n]=i(t[n]));return e}function n(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return t.push(t.splice(i,1)[0])}function r(t,e,i){function r(){var o=Array.prototype.slice.call(arguments,0),a=o.join("␀"),s=r.cache=r.cache||{},u=r.count=r.count||[];return s[E](a)?(n(u,a),i?i(s[a]):s[a]):(u.length>=1e3&&delete s[u.shift()],u.push(a),s[a]=t[w](e,o),i?i(s[a]):s[a])}return r}function o(){return this.hex}function a(t,e){for(var i=[],n=0,r=t.length;r-2*!e>n;n+=2){var o=[{x:+t[n-2],y:+t[n-1]},{x:+t[n],y:+t[n+1]},{x:+t[n+2],y:+t[n+3]},{x:+t[n+4],y:+t[n+5]}];e?n?r-4==n?o[3]={x:+t[0],y:+t[1]}:r-2==n&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[r-2],y:+t[r-1]}:r-4==n?o[3]=o[2]:n||(o[0]={x:+t[n],y:+t[n+1]}),i.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return i}function s(t,e,i,n,r){var o=-3*e+9*i-9*n+3*r,a=t*o+6*e-12*i+6*n;return t*a-3*e+3*i}function u(t,e,i,n,r,o,a,u,l){null==l&&(l=1),l=l>1?1:l<0?0:l;for(var h=l/2,c=12,p=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,g=0;g<c;g++){var m=h*p[g]+h,y=s(m,t,i,r,a),_=s(m,e,n,o,u),v=y*y+_*_;f+=d[g]*F.sqrt(v)}return h*f}function l(t,e,i,n,r,o,a,s,l){if(!(l<0||u(t,e,i,n,r,o,a,s)<l)){var h,c=1,p=c/2,d=c-p,f=.01;for(h=u(t,e,i,n,r,o,a,s,d);V(h-l)>f;)p/=2,d+=(h<l?1:-1)*p,h=u(t,e,i,n,r,o,a,s,d);return d}}function h(t,e,i,n,r,o,a,s){if(!(G(t,i)<H(r,a)||H(t,i)>G(r,a)||G(e,n)<H(o,s)||H(e,n)>G(o,s))){var u=(t*n-e*i)*(r-a)-(t-i)*(r*s-o*a),l=(t*n-e*i)*(o-s)-(e-n)*(r*s-o*a),h=(t-i)*(o-s)-(e-n)*(r-a);if(h){var c=u/h,p=l/h,d=+c.toFixed(2),f=+p.toFixed(2);if(!(d<+H(t,i).toFixed(2)||d>+G(t,i).toFixed(2)||d<+H(r,a).toFixed(2)||d>+G(r,a).toFixed(2)||f<+H(e,n).toFixed(2)||f>+G(e,n).toFixed(2)||f<+H(o,s).toFixed(2)||f>+G(o,s).toFixed(2)))return{x:c,y:p}}}}function c(t,i,n){var r=e.bezierBBox(t),o=e.bezierBBox(i);if(!e.isBBoxIntersect(r,o))return n?0:[];for(var a=u.apply(0,t),s=u.apply(0,i),l=G(~~(a/5),1),c=G(~~(s/5),1),p=[],d=[],f={},g=n?0:[],m=0;m<l+1;m++){var y=e.findDotsAtSegment.apply(e,t.concat(m/l));p.push({x:y.x,y:y.y,t:m/l})}for(m=0;m<c+1;m++)y=e.findDotsAtSegment.apply(e,i.concat(m/c)),d.push({x:y.x,y:y.y,t:m/c});for(m=0;m<l;m++)for(var _=0;_<c;_++){var v=p[m],x=p[m+1],T=d[_],b=d[_+1],A=V(x.x-v.x)<.001?"y":"x",E=V(b.x-T.x)<.001?"y":"x",D=h(v.x,v.y,x.x,x.y,T.x,T.y,b.x,b.y);if(D){if(f[D.x.toFixed(4)]==D.y.toFixed(4))continue;f[D.x.toFixed(4)]=D.y.toFixed(4);var C=v.t+V((D[A]-v[A])/(x[A]-v[A]))*(x.t-v.t),S=T.t+V((D[E]-T[E])/(b[E]-T[E]))*(b.t-T.t);C>=0&&C<=1.001&&S>=0&&S<=1.001&&(n?g++:g.push({x:D.x,y:D.y,t1:H(C,1),t2:H(S,1)}))}}return g}function p(t,i,n){t=e._path2curve(t),i=e._path2curve(i);for(var r,o,a,s,u,l,h,p,d,f,g=n?0:[],m=0,y=t.length;m<y;m++){var _=t[m];if("M"==_[0])r=u=_[1],o=l=_[2];else{"C"==_[0]?(d=[r,o].concat(_.slice(1)),r=d[6],o=d[7]):(d=[r,o,r,o,u,l,u,l],r=u,o=l);for(var v=0,x=i.length;v<x;v++){var T=i[v];if("M"==T[0])a=h=T[1],s=p=T[2];else{"C"==T[0]?(f=[a,s].concat(T.slice(1)),a=f[6],s=f[7]):(f=[a,s,a,s,h,p,h,p],a=h,s=p);var b=c(d,f,n);if(n)g+=b;else{for(var A=0,E=b.length;A<E;A++)b[A].segment1=m,b[A].segment2=v,b[A].bez1=d,b[A].bez2=f;g=g.concat(b)}}}}}return g}function d(t,e,i,n,r,o){null!=t?(this.a=+t,this.b=+e,this.c=+i,this.d=+n,this.e=+r,this.f=+o):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}function f(){return this.x+k+this.y+k+this.width+" × "+this.height}function g(t,e,i,n,r,o){function a(t){return((c*t+h)*t+l)*t}function s(t,e){var i=u(t,e);return((f*i+d)*i+p)*i}function u(t,e){var i,n,r,o,s,u;for(r=t,u=0;u<8;u++){if(o=a(r)-t,V(o)<e)return r;if(s=(3*c*r+2*h)*r+l,V(s)<1e-6)break;r-=o/s}if(i=0,n=1,r=t,r<i)return i;if(r>n)return n;for(;i<n;){if(o=a(r),V(o-t)<e)return r;t>o?i=r:n=r,r=(n-i)/2+i}return r}var l=3*e,h=3*(n-e)-l,c=1-l-h,p=3*i,d=3*(r-i)-p,f=1-p-d;return s(t,1/(200*o))}function m(t,e){var i=[],n={};if(this.ms=e,this.times=1,t){for(var r in t)t[E](r)&&(n[Q(r)]=t[r],i.push(Q(r)));i.sort(ht)}this.anim=n,this.top=i[i.length-1],this.percents=i}function y(i,n,r,o,a,s){r=Q(r);var u,l,h,c,p,f,m=i.ms,y={},_={},v={};if(o)for(b=0,A=oe.length;b<A;b++){var x=oe[b];if(x.el.id==n.id&&x.anim==i){x.percent!=r?(oe.splice(b,1),h=1):l=x,n.attr(x.totalOrigin);break}}else o=+_;for(var b=0,A=i.percents.length;b<A;b++){if(i.percents[b]==r||i.percents[b]>o*i.top){
r=i.percents[b],p=i.percents[b-1]||0,m=m/i.top*(r-p),c=i.percents[b+1],u=i.anim[r];break}o&&n.attr(i.anim[i.percents[b]])}if(u){if(l)l.initstatus=o,l.start=new Date-l.ms*o;else{for(var D in u)if(u[E](D)&&(it[E](D)||n.paper.customAttributes[E](D)))switch(y[D]=n.attr(D),null==y[D]&&(y[D]=et[D]),_[D]=u[D],it[D]){case W:v[D]=(_[D]-y[D])/m;break;case"colour":y[D]=e.getRGB(y[D]);var C=e.getRGB(_[D]);v[D]={r:(C.r-y[D].r)/m,g:(C.g-y[D].g)/m,b:(C.b-y[D].b)/m};break;case"path":var S=Rt(y[D],_[D]),w=S[1];for(y[D]=S[0],v[D]=[],b=0,A=y[D].length;b<A;b++){v[D][b]=[0];for(var M=1,P=y[D][b].length;M<P;M++)v[D][b][M]=(w[b][M]-y[D][b][M])/m}break;case"transform":var k=n._,I=Gt(k[D],_[D]);if(I)for(y[D]=I.from,_[D]=I.to,v[D]=[],v[D].real=!0,b=0,A=y[D].length;b<A;b++)for(v[D][b]=[y[D][b][0]],M=1,P=y[D][b].length;M<P;M++)v[D][b][M]=(_[D][b][M]-y[D][b][M])/m;else{var B=n.matrix||new d,N={_:{transform:k.transform},getBBox:function(){return n.getBBox(1)}};y[D]=[B.a,B.b,B.c,B.d,B.e,B.f],Nt(N,_[D]),_[D]=N._.transform,v[D]=[(N.matrix.a-B.a)/m,(N.matrix.b-B.b)/m,(N.matrix.c-B.c)/m,(N.matrix.d-B.d)/m,(N.matrix.e-B.e)/m,(N.matrix.f-B.f)/m]}break;case"csv":var F=O(u[D])[R](T),G=O(y[D])[R](T);if("clip-rect"==D)for(y[D]=G,v[D]=[],b=G.length;b--;)v[D][b]=(F[b]-y[D][b])/m;_[D]=F;break;default:for(F=[][L](u[D]),G=[][L](y[D]),v[D]=[],b=n.paper.customAttributes[D].length;b--;)v[D][b]=((F[b]||0)-(G[b]||0))/m}var H=u.easing,V=e.easing_formulas[H];if(!V)if(V=O(H).match(K),V&&5==V.length){var j=V;V=function(t){return g(t,+j[1],+j[2],+j[3],+j[4],m)}}else V=ct;if(f=u.start||i.start||+new Date,x={anim:i,percent:r,timestamp:f,start:f+(i.del||0),status:0,initstatus:o||0,stop:!1,ms:m,easing:V,from:y,diff:v,to:_,el:n,callback:u.callback,prev:p,next:c,repeat:s||i.times,origin:n.attr(),totalOrigin:a},oe.push(x),o&&!l&&!h&&(x.stop=!0,x.start=new Date-m*o,1==oe.length))return se();h&&(x.start=new Date-x.ms*o),1==oe.length&&ae(se)}t("raphael.anim.start."+n.id,n,i)}}function _(t){for(var e=0;e<oe.length;e++)oe[e].el.paper==t&&oe.splice(e--,1)}e.version="@@VERSION",e.eve=t;var v,x,T=/[, ]+/,b={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},A=/\{(\d+)\}/g,E="hasOwnProperty",D={doc:document,win:window},C={was:Object.prototype[E].call(D.win,"Raphael"),is:D.win.Raphael},S=function(){this.ca=this.customAttributes={}},w="apply",L="concat",M="ontouchstart"in D.win||D.win.DocumentTouch&&D.doc instanceof DocumentTouch,P="",k=" ",O=String,R="split",I="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[R](k),B={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},N=O.prototype.toLowerCase,F=Math,G=F.max,H=F.min,V=F.abs,j=F.pow,z=F.PI,W="number",Y="string",U="array",X=Object.prototype.toString,Z=(e._ISURL=/^url\(['"]?(.+?)['"]?\)$/i,/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i),q={NaN:1,Infinity:1,"-Infinity":1},K=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,J=F.round,Q=parseFloat,$=parseInt,tt=O.prototype.toUpperCase,et=e._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0},it=e._availableAnimAttrs={blur:W,"clip-rect":"csv",cx:W,cy:W,fill:"colour","fill-opacity":W,"font-size":W,height:W,opacity:W,path:"path",r:W,rx:W,ry:W,stroke:"colour","stroke-opacity":W,"stroke-width":W,transform:"transform",width:W,x:W,y:W},nt=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,rt={hs:1,rg:1},ot=/,?([achlmqrstvxz]),?/gi,at=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,st=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,ut=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/gi,lt=(e._radial_gradient=/^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*([^\)]+?)\))?/,{}),ht=function(t,e){return Q(t)-Q(e)},ct=function(t){return t},pt=e._rectPath=function(t,e,i,n,r){return r?[["M",t+r,e],["l",i-2*r,0],["a",r,r,0,0,1,r,r],["l",0,n-2*r],["a",r,r,0,0,1,-r,r],["l",2*r-i,0],["a",r,r,0,0,1,-r,-r],["l",0,2*r-n],["a",r,r,0,0,1,r,-r],["z"]]:[["M",t,e],["l",i,0],["l",0,n],["l",-i,0],["z"]]},dt=function(t,e,i,n){return null==n&&(n=i),[["M",t,e],["m",0,-n],["a",i,n,0,1,1,0,2*n],["a",i,n,0,1,1,0,-2*n],["z"]]},ft=e._getPath={path:function(t){return t.attr("path")},circle:function(t){var e=t.attrs;return dt(e.cx,e.cy,e.r)},ellipse:function(t){var e=t.attrs;return dt(e.cx,e.cy,e.rx,e.ry)},rect:function(t){var e=t.attrs;return pt(e.x,e.y,e.width,e.height,e.r)},image:function(t){var e=t.attrs;return pt(e.x,e.y,e.width,e.height)},text:function(t){var e=t._getBBox();return pt(e.x,e.y,e.width,e.height)},set:function(t){var e=t._getBBox();return pt(e.x,e.y,e.width,e.height)}},gt=e.mapPath=function(t,e){if(!e)return t;var i,n,r,o,a,s,u;for(t=Rt(t),r=0,a=t.length;r<a;r++)for(u=t[r],o=1,s=u.length;o<s;o+=2)i=e.x(u[o],u[o+1]),n=e.y(u[o],u[o+1]),u[o]=i,u[o+1]=n;return t};if(e._g=D,e.type=D.win.SVGAngle||D.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML","VML"==e.type){var mt,yt=D.doc.createElement("div");if(yt.innerHTML='<v:shape adj="1"/>',mt=yt.firstChild,mt.style.behavior="url(#default#VML)",!mt||"object"!=typeof mt.adj)return e.type=P;yt=null}e.svg=!(e.vml="VML"==e.type),e._Paper=S,e.fn=x=S.prototype=e.prototype,e._id=0,e._oid=0,e.is=function(t,e){return e=N.call(e),"finite"==e?!q[E](+t):"array"==e?t instanceof Array:"null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||"array"==e&&Array.isArray&&Array.isArray(t)||X.call(t).slice(8,-1).toLowerCase()==e},e.angle=function(t,i,n,r,o,a){if(null==o){var s=t-n,u=i-r;return s||u?(180+180*F.atan2(-u,-s)/z+360)%360:0}return e.angle(t,i,o,a)-e.angle(n,r,o,a)},e.rad=function(t){return t%360*z/180},e.deg=function(t){return Math.round(180*t/z%360*1e3)/1e3},e.snapTo=function(t,i,n){if(n=e.is(n,"finite")?n:10,e.is(t,U)){for(var r=t.length;r--;)if(V(t[r]-i)<=n)return t[r]}else{t=+t;var o=i%t;if(o<n)return i-o;if(o>t-n)return i-o+t}return i};e.createUUID=function(t,e){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(t,e).toUpperCase()}}(/[xy]/g,function(t){var e=16*F.random()|0,i="x"==t?e:3&e|8;return i.toString(16)});e.setWindow=function(i){t("raphael.setWindow",e,D.win,i),D.win=i,D.doc=D.win.document,e._engine.initWin&&e._engine.initWin(D.win)};var _t=function(t){if(e.vml){var i,n=/^\s+|\s+$/g;try{var o=new ActiveXObject("htmlfile");o.write("<body>"),o.close(),i=o.body}catch(a){i=createPopup().document.body}var s=i.createTextRange();_t=r(function(t){try{i.style.color=O(t).replace(n,P);var e=s.queryCommandValue("ForeColor");return e=(255&e)<<16|65280&e|(16711680&e)>>>16,"#"+("000000"+e.toString(16)).slice(-6)}catch(r){return"none"}})}else{var u=D.doc.createElement("i");u.title="Raphaël Colour Picker",u.style.display="none",D.doc.body.appendChild(u),_t=r(function(t){return u.style.color=t,D.doc.defaultView.getComputedStyle(u,P).getPropertyValue("color")})}return _t(t)},vt=function(){return"hsb("+[this.h,this.s,this.b]+")"},xt=function(){return"hsl("+[this.h,this.s,this.l]+")"},Tt=function(){return this.hex},bt=function(t,i,n){if(null==i&&e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(n=t.b,i=t.g,t=t.r),null==i&&e.is(t,Y)){var r=e.getRGB(t);t=r.r,i=r.g,n=r.b}return(t>1||i>1||n>1)&&(t/=255,i/=255,n/=255),[t,i,n]},At=function(t,i,n,r){t*=255,i*=255,n*=255;var o={r:t,g:i,b:n,hex:e.rgb(t,i,n),toString:Tt};return e.is(r,"finite")&&(o.opacity=r),o};e.color=function(t){var i;return e.is(t,"object")&&"h"in t&&"s"in t&&"b"in t?(i=e.hsb2rgb(t),t.r=i.r,t.g=i.g,t.b=i.b,t.hex=i.hex):e.is(t,"object")&&"h"in t&&"s"in t&&"l"in t?(i=e.hsl2rgb(t),t.r=i.r,t.g=i.g,t.b=i.b,t.hex=i.hex):(e.is(t,"string")&&(t=e.getRGB(t)),e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t?(i=e.rgb2hsl(t),t.h=i.h,t.s=i.s,t.l=i.l,i=e.rgb2hsb(t),t.v=i.b):(t={hex:"none"},t.r=t.g=t.b=t.h=t.s=t.v=t.l=-1)),t.toString=Tt,t},e.hsb2rgb=function(t,e,i,n){this.is(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(i=t.b,e=t.s,n=t.o,t=t.h),t*=360;var r,o,a,s,u;return t=t%360/60,u=i*e,s=u*(1-V(t%2-1)),r=o=a=i-u,t=~~t,r+=[u,s,0,0,s,u][t],o+=[s,u,u,s,0,0][t],a+=[0,0,s,u,u,s][t],At(r,o,a,n)},e.hsl2rgb=function(t,e,i,n){this.is(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(i=t.l,e=t.s,t=t.h),(t>1||e>1||i>1)&&(t/=360,e/=100,i/=100),t*=360;var r,o,a,s,u;return t=t%360/60,u=2*e*(i<.5?i:1-i),s=u*(1-V(t%2-1)),r=o=a=i-u/2,t=~~t,r+=[u,s,0,0,s,u][t],o+=[s,u,u,s,0,0][t],a+=[0,0,s,u,u,s][t],At(r,o,a,n)},e.rgb2hsb=function(t,e,i){i=bt(t,e,i),t=i[0],e=i[1],i=i[2];var n,r,o,a;return o=G(t,e,i),a=o-H(t,e,i),n=0==a?null:o==t?(e-i)/a:o==e?(i-t)/a+2:(t-e)/a+4,n=(n+360)%6*60/360,r=0==a?0:a/o,{h:n,s:r,b:o,toString:vt}},e.rgb2hsl=function(t,e,i){i=bt(t,e,i),t=i[0],e=i[1],i=i[2];var n,r,o,a,s,u;return a=G(t,e,i),s=H(t,e,i),u=a-s,n=0==u?null:a==t?(e-i)/u:a==e?(i-t)/u+2:(t-e)/u+4,n=(n+360)%6*60/360,o=(a+s)/2,r=0==u?0:o<.5?u/(2*o):u/(2-2*o),{h:n,s:r,l:o,toString:xt}},e._path2string=function(){return this.join(",").replace(ot,"$1")};e._preload=function(t,e){var i=D.doc.createElement("img");i.style.cssText="position:absolute;left:-9999em;top:-9999em",i.onload=function(){e.call(this),this.onload=null,D.doc.body.removeChild(this)},i.onerror=function(){D.doc.body.removeChild(this)},D.doc.body.appendChild(i),i.src=t};e.getRGB=r(function(t){if(!t||(t=O(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:o};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:o};!(rt[E](t.toLowerCase().substring(0,2))||"#"==t.charAt())&&(t=_t(t));var i,n,r,a,s,u,l=t.match(Z);return l?(l[2]&&(r=$(l[2].substring(5),16),n=$(l[2].substring(3,5),16),i=$(l[2].substring(1,3),16)),l[3]&&(r=$((s=l[3].charAt(3))+s,16),n=$((s=l[3].charAt(2))+s,16),i=$((s=l[3].charAt(1))+s,16)),l[4]&&(u=l[4][R](nt),i=Q(u[0]),"%"==u[0].slice(-1)&&(i*=2.55),n=Q(u[1]),"%"==u[1].slice(-1)&&(n*=2.55),r=Q(u[2]),"%"==u[2].slice(-1)&&(r*=2.55),"rgba"==l[1].toLowerCase().slice(0,4)&&(a=Q(u[3])),u[3]&&"%"==u[3].slice(-1)&&(a/=100)),l[5]?(u=l[5][R](nt),i=Q(u[0]),"%"==u[0].slice(-1)&&(i*=2.55),n=Q(u[1]),"%"==u[1].slice(-1)&&(n*=2.55),r=Q(u[2]),"%"==u[2].slice(-1)&&(r*=2.55),("deg"==u[0].slice(-3)||"°"==u[0].slice(-1))&&(i/=360),"hsba"==l[1].toLowerCase().slice(0,4)&&(a=Q(u[3])),u[3]&&"%"==u[3].slice(-1)&&(a/=100),e.hsb2rgb(i,n,r,a)):l[6]?(u=l[6][R](nt),i=Q(u[0]),"%"==u[0].slice(-1)&&(i*=2.55),n=Q(u[1]),"%"==u[1].slice(-1)&&(n*=2.55),r=Q(u[2]),"%"==u[2].slice(-1)&&(r*=2.55),("deg"==u[0].slice(-3)||"°"==u[0].slice(-1))&&(i/=360),"hsla"==l[1].toLowerCase().slice(0,4)&&(a=Q(u[3])),u[3]&&"%"==u[3].slice(-1)&&(a/=100),e.hsl2rgb(i,n,r,a)):(l={r:i,g:n,b:r,toString:o},l.hex="#"+(16777216|r|n<<8|i<<16).toString(16).slice(1),e.is(a,"finite")&&(l.opacity=a),l)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:o}},e),e.hsb=r(function(t,i,n){return e.hsb2rgb(t,i,n).hex}),e.hsl=r(function(t,i,n){return e.hsl2rgb(t,i,n).hex}),e.rgb=r(function(t,e,i){function n(t){return t+.5|0}return"#"+(16777216|n(i)|n(e)<<8|n(t)<<16).toString(16).slice(1)}),e.getColor=function(t){var e=this.getColor.start=this.getColor.start||{h:0,s:1,b:t||.75},i=this.hsb2rgb(e.h,e.s,e.b);return e.h+=.075,e.h>1&&(e.h=0,e.s-=.2,e.s<=0&&(this.getColor.start={h:0,s:1,b:e.b})),i.hex},e.getColor.reset=function(){delete this.start},e.parsePathString=function(t){if(!t)return null;var i=Et(t);if(i.arr)return Ct(i.arr);var n={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},r=[];return e.is(t,U)&&e.is(t[0],U)&&(r=Ct(t)),r.length||O(t).replace(at,function(t,e,i){var o=[],a=e.toLowerCase();if(i.replace(ut,function(t,e){e&&o.push(+e)}),"m"==a&&o.length>2&&(r.push([e][L](o.splice(0,2))),a="l",e="m"==e?"l":"L"),"r"==a)r.push([e][L](o));else for(;o.length>=n[a]&&(r.push([e][L](o.splice(0,n[a]))),n[a]););}),r.toString=e._path2string,i.arr=Ct(r),r},e.parseTransformString=r(function(t){if(!t)return null;var i=[];return e.is(t,U)&&e.is(t[0],U)&&(i=Ct(t)),i.length||O(t).replace(st,function(t,e,n){var r=[];N.call(e);n.replace(ut,function(t,e){e&&r.push(+e)}),i.push([e][L](r))}),i.toString=e._path2string,i});var Et=function(t){var e=Et.ps=Et.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout(function(){for(var i in e)e[E](i)&&i!=t&&(e[i].sleep--,!e[i].sleep&&delete e[i])}),e[t]};e.findDotsAtSegment=function(t,e,i,n,r,o,a,s,u){var l=1-u,h=j(l,3),c=j(l,2),p=u*u,d=p*u,f=h*t+3*c*u*i+3*l*u*u*r+d*a,g=h*e+3*c*u*n+3*l*u*u*o+d*s,m=t+2*u*(i-t)+p*(r-2*i+t),y=e+2*u*(n-e)+p*(o-2*n+e),_=i+2*u*(r-i)+p*(a-2*r+i),v=n+2*u*(o-n)+p*(s-2*o+n),x=l*t+u*i,T=l*e+u*n,b=l*r+u*a,A=l*o+u*s,E=90-180*F.atan2(m-_,y-v)/z;return(m>_||y<v)&&(E+=180),{x:f,y:g,m:{x:m,y:y},n:{x:_,y:v},start:{x:x,y:T},end:{x:b,y:A},alpha:E}},e.bezierBBox=function(t,i,n,r,o,a,s,u){e.is(t,"array")||(t=[t,i,n,r,o,a,s,u]);var l=Ot.apply(null,t);return{x:l.min.x,y:l.min.y,x2:l.max.x,y2:l.max.y,width:l.max.x-l.min.x,height:l.max.y-l.min.y}},e.isPointInsideBBox=function(t,e,i){return e>=t.x&&e<=t.x2&&i>=t.y&&i<=t.y2},e.isBBoxIntersect=function(t,i){var n=e.isPointInsideBBox;return n(i,t.x,t.y)||n(i,t.x2,t.y)||n(i,t.x,t.y2)||n(i,t.x2,t.y2)||n(t,i.x,i.y)||n(t,i.x2,i.y)||n(t,i.x,i.y2)||n(t,i.x2,i.y2)||(t.x<i.x2&&t.x>i.x||i.x<t.x2&&i.x>t.x)&&(t.y<i.y2&&t.y>i.y||i.y<t.y2&&i.y>t.y)},e.pathIntersection=function(t,e){return p(t,e)},e.pathIntersectionNumber=function(t,e){return p(t,e,1)},e.isPointInsidePath=function(t,i,n){var r=e.pathBBox(t);return e.isPointInsideBBox(r,i,n)&&p(t,[["M",i,n],["H",r.x2+10]],1)%2==1},e._removedFactory=function(e){return function(){t("raphael.log",null,"Raphaël: you are calling to method “"+e+"” of removed object",e)}};var Dt=e.pathBBox=function(t){var e=Et(t);if(e.bbox)return i(e.bbox);if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0};t=Rt(t);for(var n,r=0,o=0,a=[],s=[],u=0,l=t.length;u<l;u++)if(n=t[u],"M"==n[0])r=n[1],o=n[2],a.push(r),s.push(o);else{var h=Ot(r,o,n[1],n[2],n[3],n[4],n[5],n[6]);a=a[L](h.min.x,h.max.x),s=s[L](h.min.y,h.max.y),r=n[5],o=n[6]}var c=H[w](0,a),p=H[w](0,s),d=G[w](0,a),f=G[w](0,s),g=d-c,m=f-p,y={x:c,y:p,x2:d,y2:f,width:g,height:m,cx:c+g/2,cy:p+m/2};return e.bbox=i(y),y},Ct=function(t){var n=i(t);return n.toString=e._path2string,n},St=e._pathToRelative=function(t){var i=Et(t);if(i.rel)return Ct(i.rel);e.is(t,U)&&e.is(t&&t[0],U)||(t=e.parsePathString(t));var n=[],r=0,o=0,a=0,s=0,u=0;"M"==t[0][0]&&(r=t[0][1],o=t[0][2],a=r,s=o,u++,n.push(["M",r,o]));for(var l=u,h=t.length;l<h;l++){var c=n[l]=[],p=t[l];if(p[0]!=N.call(p[0]))switch(c[0]=N.call(p[0]),c[0]){case"a":c[1]=p[1],c[2]=p[2],c[3]=p[3],c[4]=p[4],c[5]=p[5],c[6]=+(p[6]-r).toFixed(3),c[7]=+(p[7]-o).toFixed(3);break;case"v":c[1]=+(p[1]-o).toFixed(3);break;case"m":a=p[1],s=p[2];default:for(var d=1,f=p.length;d<f;d++)c[d]=+(p[d]-(d%2?r:o)).toFixed(3)}else{c=n[l]=[],"m"==p[0]&&(a=p[1]+r,s=p[2]+o);for(var g=0,m=p.length;g<m;g++)n[l][g]=p[g]}var y=n[l].length;switch(n[l][0]){case"z":r=a,o=s;break;case"h":r+=+n[l][y-1];break;case"v":o+=+n[l][y-1];break;default:r+=+n[l][y-2],o+=+n[l][y-1]}}return n.toString=e._path2string,i.rel=Ct(n),n},wt=e._pathToAbsolute=function(t){var i=Et(t);if(i.abs)return Ct(i.abs);if(e.is(t,U)&&e.is(t&&t[0],U)||(t=e.parsePathString(t)),!t||!t.length)return[["M",0,0]];var n=[],r=0,o=0,s=0,u=0,l=0;"M"==t[0][0]&&(r=+t[0][1],o=+t[0][2],s=r,u=o,l++,n[0]=["M",r,o]);for(var h,c,p=3==t.length&&"M"==t[0][0]&&"R"==t[1][0].toUpperCase()&&"Z"==t[2][0].toUpperCase(),d=l,f=t.length;d<f;d++){if(n.push(h=[]),c=t[d],c[0]!=tt.call(c[0]))switch(h[0]=tt.call(c[0]),h[0]){case"A":h[1]=c[1],h[2]=c[2],h[3]=c[3],h[4]=c[4],h[5]=c[5],h[6]=+(c[6]+r),h[7]=+(c[7]+o);break;case"V":h[1]=+c[1]+o;break;case"H":h[1]=+c[1]+r;break;case"R":for(var g=[r,o][L](c.slice(1)),m=2,y=g.length;m<y;m++)g[m]=+g[m]+r,g[++m]=+g[m]+o;n.pop(),n=n[L](a(g,p));break;case"M":s=+c[1]+r,u=+c[2]+o;default:for(m=1,y=c.length;m<y;m++)h[m]=+c[m]+(m%2?r:o)}else if("R"==c[0])g=[r,o][L](c.slice(1)),n.pop(),n=n[L](a(g,p)),h=["R"][L](c.slice(-2));else for(var _=0,v=c.length;_<v;_++)h[_]=c[_];switch(h[0]){case"Z":r=s,o=u;break;case"H":r=h[1];break;case"V":o=h[1];break;case"M":s=h[h.length-2],u=h[h.length-1];default:r=h[h.length-2],o=h[h.length-1]}}return n.toString=e._path2string,i.abs=Ct(n),n},Lt=function(t,e,i,n){return[t,e,i,n,i,n]},Mt=function(t,e,i,n,r,o){var a=1/3,s=2/3;return[a*t+s*i,a*e+s*n,a*r+s*i,a*o+s*n,r,o]},Pt=function(t,e,i,n,o,a,s,u,l,h){var c,p=120*z/180,d=z/180*(+o||0),f=[],g=r(function(t,e,i){var n=t*F.cos(i)-e*F.sin(i),r=t*F.sin(i)+e*F.cos(i);return{x:n,y:r}});if(h)E=h[0],D=h[1],b=h[2],A=h[3];else{c=g(t,e,-d),t=c.x,e=c.y,c=g(u,l,-d),u=c.x,l=c.y;var m=(F.cos(z/180*o),F.sin(z/180*o),(t-u)/2),y=(e-l)/2,_=m*m/(i*i)+y*y/(n*n);_>1&&(_=F.sqrt(_),i*=_,n*=_);var v=i*i,x=n*n,T=(a==s?-1:1)*F.sqrt(V((v*x-v*y*y-x*m*m)/(v*y*y+x*m*m))),b=T*i*y/n+(t+u)/2,A=T*-n*m/i+(e+l)/2,E=F.asin(((e-A)/n).toFixed(9)),D=F.asin(((l-A)/n).toFixed(9));E=t<b?z-E:E,D=u<b?z-D:D,E<0&&(E=2*z+E),D<0&&(D=2*z+D),s&&E>D&&(E-=2*z),!s&&D>E&&(D-=2*z)}var C=D-E;if(V(C)>p){var S=D,w=u,M=l;D=E+p*(s&&D>E?1:-1),u=b+i*F.cos(D),l=A+n*F.sin(D),f=Pt(u,l,i,n,o,0,s,w,M,[D,S,b,A])}C=D-E;var P=F.cos(E),k=F.sin(E),O=F.cos(D),I=F.sin(D),B=F.tan(C/4),N=4/3*i*B,G=4/3*n*B,H=[t,e],j=[t+N*k,e-G*P],W=[u+N*I,l-G*O],Y=[u,l];if(j[0]=2*H[0]-j[0],j[1]=2*H[1]-j[1],h)return[j,W,Y][L](f);f=[j,W,Y][L](f).join()[R](",");for(var U=[],X=0,Z=f.length;X<Z;X++)U[X]=X%2?g(f[X-1],f[X],d).y:g(f[X],f[X+1],d).x;return U},kt=function(t,e,i,n,r,o,a,s,u){var l=1-u;return{x:j(l,3)*t+3*j(l,2)*u*i+3*l*u*u*r+j(u,3)*a,y:j(l,3)*e+3*j(l,2)*u*n+3*l*u*u*o+j(u,3)*s}},Ot=r(function(t,e,i,n,r,o,a,s){var u,l=r-2*i+t-(a-2*r+i),h=2*(i-t)-2*(r-i),c=t-i,p=(-h+F.sqrt(h*h-4*l*c))/2/l,d=(-h-F.sqrt(h*h-4*l*c))/2/l,f=[e,s],g=[t,a];return V(p)>"1e12"&&(p=.5),V(d)>"1e12"&&(d=.5),p>0&&p<1&&(u=kt(t,e,i,n,r,o,a,s,p),g.push(u.x),f.push(u.y)),d>0&&d<1&&(u=kt(t,e,i,n,r,o,a,s,d),g.push(u.x),f.push(u.y)),l=o-2*n+e-(s-2*o+n),h=2*(n-e)-2*(o-n),c=e-n,p=(-h+F.sqrt(h*h-4*l*c))/2/l,d=(-h-F.sqrt(h*h-4*l*c))/2/l,V(p)>"1e12"&&(p=.5),V(d)>"1e12"&&(d=.5),p>0&&p<1&&(u=kt(t,e,i,n,r,o,a,s,p),g.push(u.x),f.push(u.y)),d>0&&d<1&&(u=kt(t,e,i,n,r,o,a,s,d),g.push(u.x),f.push(u.y)),{min:{x:H[w](0,g),y:H[w](0,f)},max:{x:G[w](0,g),y:G[w](0,f)}}}),Rt=e._path2curve=r(function(t,e){var i=!e&&Et(t);if(!e&&i.curve)return Ct(i.curve);for(var n=wt(t),r=e&&wt(e),o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=(function(t,e,i){var n,r,o={T:1,Q:1};if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in o)&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"][L](Pt[w](0,[e.x,e.y][L](t.slice(1))));break;case"S":"C"==i||"S"==i?(n=2*e.x-e.bx,r=2*e.y-e.by):(n=e.x,r=e.y),t=["C",n,r][L](t.slice(1));break;case"T":"Q"==i||"T"==i?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"][L](Mt(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"][L](Mt(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"][L](Lt(e.x,e.y,t[1],t[2]));break;case"H":t=["C"][L](Lt(e.x,e.y,t[1],e.y));break;case"V":t=["C"][L](Lt(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"][L](Lt(e.x,e.y,e.X,e.Y))}return t}),u=function(t,e){if(t[e].length>7){t[e].shift();for(var i=t[e];i.length;)h[e]="A",r&&(c[e]="A"),t.splice(e++,0,["C"][L](i.splice(0,6)));t.splice(e,1),g=G(n.length,r&&r.length||0)}},l=function(t,e,i,o,a){t&&e&&"M"==t[a][0]&&"M"!=e[a][0]&&(e.splice(a,0,["M",o.x,o.y]),i.bx=0,i.by=0,i.x=t[a][1],i.y=t[a][2],g=G(n.length,r&&r.length||0))},h=[],c=[],p="",d="",f=0,g=G(n.length,r&&r.length||0);f<g;f++){n[f]&&(p=n[f][0]),"C"!=p&&(h[f]=p,f&&(d=h[f-1])),n[f]=s(n[f],o,d),"A"!=h[f]&&"C"==p&&(h[f]="C"),u(n,f),r&&(r[f]&&(p=r[f][0]),"C"!=p&&(c[f]=p,f&&(d=c[f-1])),r[f]=s(r[f],a,d),"A"!=c[f]&&"C"==p&&(c[f]="C"),u(r,f)),l(n,r,o,a,f),l(r,n,a,o,f);var m=n[f],y=r&&r[f],_=m.length,v=r&&y.length;o.x=m[_-2],o.y=m[_-1],o.bx=Q(m[_-4])||o.x,o.by=Q(m[_-3])||o.y,a.bx=r&&(Q(y[v-4])||a.x),a.by=r&&(Q(y[v-3])||a.y),a.x=r&&y[v-2],a.y=r&&y[v-1]}return r||(i.curve=Ct(n)),r?[n,r]:n},null,Ct),It=(e._parseDots=r(function(t){for(var i=[],n=0,r=t.length;n<r;n++){var o={},a=t[n].match(/^([^:]*):?([\d\.]*)/);if(o.color=e.getRGB(a[1]),o.color.error)return null;o.opacity=o.color.opacity,o.color=o.color.hex,a[2]&&(o.offset=a[2]+"%"),i.push(o)}for(n=1,r=i.length-1;n<r;n++)if(!i[n].offset){for(var s=Q(i[n-1].offset||0),u=0,l=n+1;l<r;l++)if(i[l].offset){u=i[l].offset;break}u||(u=100,l=r),u=Q(u);for(var h=(u-s)/(l-n+1);n<l;n++)s+=h,i[n].offset=s+"%"}return i}),e._tear=function(t,e){t==e.top&&(e.top=t.prev),t==e.bottom&&(e.bottom=t.next),t.next&&(t.next.prev=t.prev),t.prev&&(t.prev.next=t.next)}),Bt=(e._tofront=function(t,e){e.top!==t&&(It(t,e),t.next=null,t.prev=e.top,e.top.next=t,e.top=t)},e._toback=function(t,e){e.bottom!==t&&(It(t,e),t.next=e.bottom,t.prev=null,e.bottom.prev=t,e.bottom=t)},e._insertafter=function(t,e,i){It(t,i),e==i.top&&(i.top=t),e.next&&(e.next.prev=t),t.next=e.next,t.prev=e,e.next=t},e._insertbefore=function(t,e,i){It(t,i),e==i.bottom&&(i.bottom=t),e.prev&&(e.prev.next=t),t.prev=e.prev,e.prev=t,t.next=e},e.toMatrix=function(t,e){var i=Dt(t),n={_:{transform:P},getBBox:function(){return i}};return Nt(n,e),n.matrix}),Nt=(e.transformPath=function(t,e){return gt(t,Bt(t,e))},e._extractTransform=function(t,i){if(null==i)return t._.transform;i=O(i).replace(/\.{3}|\u2026/g,t._.transform||P);var n=e.parseTransformString(i),r=0,o=0,a=0,s=1,u=1,l=t._,h=new d;if(l.transform=n||[],n)for(var c=0,p=n.length;c<p;c++){var f,g,m,y,_,v=n[c],x=v.length,T=O(v[0]).toLowerCase(),b=v[0]!=T,A=b?h.invert():0;"t"==T&&3==x?b?(f=A.x(0,0),g=A.y(0,0),m=A.x(v[1],v[2]),y=A.y(v[1],v[2]),h.translate(m-f,y-g)):h.translate(v[1],v[2]):"r"==T?2==x?(_=_||t.getBBox(1),h.rotate(v[1],_.x+_.width/2,_.y+_.height/2),r+=v[1]):4==x&&(b?(m=A.x(v[2],v[3]),y=A.y(v[2],v[3]),h.rotate(v[1],m,y)):h.rotate(v[1],v[2],v[3]),r+=v[1]):"s"==T?2==x||3==x?(_=_||t.getBBox(1),h.scale(v[1],v[x-1],_.x+_.width/2,_.y+_.height/2),s*=v[1],u*=v[x-1]):5==x&&(b?(m=A.x(v[3],v[4]),y=A.y(v[3],v[4]),h.scale(v[1],v[2],m,y)):h.scale(v[1],v[2],v[3],v[4]),s*=v[1],u*=v[2]):"m"==T&&7==x&&h.add(v[1],v[2],v[3],v[4],v[5],v[6]),l.dirtyT=1,t.matrix=h}t.matrix=h,l.sx=s,l.sy=u,l.deg=r,l.dx=o=h.e,l.dy=a=h.f,1==s&&1==u&&!r&&l.bbox?(l.bbox.x+=+o,l.bbox.y+=+a):l.dirtyT=1}),Ft=function(t){var e=t[0];switch(e.toLowerCase()){case"t":return[e,0,0];case"m":return[e,1,0,0,1,0,0];case"r":return 4==t.length?[e,0,t[2],t[3]]:[e,0];case"s":return 5==t.length?[e,1,1,t[3],t[4]]:3==t.length?[e,1,1]:[e,1]}},Gt=e._equaliseTransform=function(t,i){i=O(i).replace(/\.{3}|\u2026/g,t),t=e.parseTransformString(t)||[],i=e.parseTransformString(i)||[];for(var n,r,o,a,s=G(t.length,i.length),u=[],l=[],h=0;h<s;h++){if(o=t[h]||Ft(i[h]),a=i[h]||Ft(o),o[0]!=a[0]||"r"==o[0].toLowerCase()&&(o[2]!=a[2]||o[3]!=a[3])||"s"==o[0].toLowerCase()&&(o[3]!=a[3]||o[4]!=a[4]))return;for(u[h]=[],l[h]=[],n=0,r=G(o.length,a.length);n<r;n++)n in o&&(u[h][n]=o[n]),n in a&&(l[h][n]=a[n])}return{from:u,to:l}};e._getContainer=function(t,i,n,r){var o;if(o=null!=r||e.is(t,"object")?t:D.doc.getElementById(t),null!=o)return o.tagName?null==i?{container:o,width:o.style.pixelWidth||o.offsetWidth,height:o.style.pixelHeight||o.offsetHeight}:{container:o,width:i,height:n}:{container:1,x:t,y:i,width:n,height:r}},e.pathToRelative=St,e._engine={},e.path2curve=Rt,e.matrix=function(t,e,i,n,r,o){return new d(t,e,i,n,r,o)},function(t){function i(t){return t[0]*t[0]+t[1]*t[1]}function n(t){var e=F.sqrt(i(t));t[0]&&(t[0]/=e),t[1]&&(t[1]/=e)}t.add=function(t,e,i,n,r,o){var a,s,u,l,h=[[],[],[]],c=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],p=[[t,i,r],[e,n,o],[0,0,1]];for(t&&t instanceof d&&(p=[[t.a,t.c,t.e],[t.b,t.d,t.f],[0,0,1]]),a=0;a<3;a++)for(s=0;s<3;s++){for(l=0,u=0;u<3;u++)l+=c[a][u]*p[u][s];h[a][s]=l}this.a=h[0][0],this.b=h[1][0],this.c=h[0][1],this.d=h[1][1],this.e=h[0][2],this.f=h[1][2]},t.invert=function(){var t=this,e=t.a*t.d-t.b*t.c;return new d(t.d/e,-t.b/e,-t.c/e,t.a/e,(t.c*t.f-t.d*t.e)/e,(t.b*t.e-t.a*t.f)/e)},t.clone=function(){return new d(this.a,this.b,this.c,this.d,this.e,this.f)},t.translate=function(t,e){this.add(1,0,0,1,t,e)},t.scale=function(t,e,i,n){null==e&&(e=t),(i||n)&&this.add(1,0,0,1,i,n),this.add(t,0,0,e,0,0),(i||n)&&this.add(1,0,0,1,-i,-n)},t.rotate=function(t,i,n){t=e.rad(t),i=i||0,n=n||0;var r=+F.cos(t).toFixed(9),o=+F.sin(t).toFixed(9);this.add(r,o,-o,r,i,n),this.add(1,0,0,1,-i,-n)},t.x=function(t,e){return t*this.a+e*this.c+this.e},t.y=function(t,e){return t*this.b+e*this.d+this.f},t.get=function(t){return+this[O.fromCharCode(97+t)].toFixed(4)},t.toString=function(){return e.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()},t.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"},t.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},t.split=function(){var t={};t.dx=this.e,t.dy=this.f;var r=[[this.a,this.c],[this.b,this.d]];t.scalex=F.sqrt(i(r[0])),n(r[0]),t.shear=r[0][0]*r[1][0]+r[0][1]*r[1][1],r[1]=[r[1][0]-r[0][0]*t.shear,r[1][1]-r[0][1]*t.shear],t.scaley=F.sqrt(i(r[1])),n(r[1]),t.shear/=t.scaley;var o=-r[0][1],a=r[1][1];return a<0?(t.rotate=e.deg(F.acos(a)),o<0&&(t.rotate=360-t.rotate)):t.rotate=e.deg(F.asin(o)),t.isSimple=!(+t.shear.toFixed(9)||t.scalex.toFixed(9)!=t.scaley.toFixed(9)&&t.rotate),t.isSuperSimple=!+t.shear.toFixed(9)&&t.scalex.toFixed(9)==t.scaley.toFixed(9)&&!t.rotate,t.noRotation=!+t.shear.toFixed(9)&&!t.rotate,t},t.toTransformString=function(t){var e=t||this[R]();return e.isSimple?(e.scalex=+e.scalex.toFixed(4),e.scaley=+e.scaley.toFixed(4),e.rotate=+e.rotate.toFixed(4),(e.dx||e.dy?"t"+[e.dx,e.dy]:P)+(1!=e.scalex||1!=e.scaley?"s"+[e.scalex,e.scaley,0,0]:P)+(e.rotate?"r"+[e.rotate,0,0]:P)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(d.prototype);for(var Ht=function(){this.returnValue=!1},Vt=function(){return this.originalEvent.preventDefault()},jt=function(){this.cancelBubble=!0},zt=function(){return this.originalEvent.stopPropagation()},Wt=function(t){var e=D.doc.documentElement.scrollTop||D.doc.body.scrollTop,i=D.doc.documentElement.scrollLeft||D.doc.body.scrollLeft;return{x:t.clientX+i,y:t.clientY+e}},Yt=function(){return D.doc.addEventListener?function(t,e,i,n){var r=function(t){var e=Wt(t);return i.call(n,t,e.x,e.y)};if(t.addEventListener(e,r,!1),M&&B[e]){var o=function(e){for(var r=Wt(e),o=e,a=0,s=e.targetTouches&&e.targetTouches.length;a<s;a++)if(e.targetTouches[a].target==t){e=e.targetTouches[a],e.originalEvent=o,e.preventDefault=Vt,e.stopPropagation=zt;break}return i.call(n,e,r.x,r.y)};t.addEventListener(B[e],o,!1)}return function(){return t.removeEventListener(e,r,!1),M&&B[e]&&t.removeEventListener(B[e],o,!1),!0}}:D.doc.attachEvent?function(t,e,i,n){var r=function(t){t=t||D.win.event;var e=D.doc.documentElement.scrollTop||D.doc.body.scrollTop,r=D.doc.documentElement.scrollLeft||D.doc.body.scrollLeft,o=t.clientX+r,a=t.clientY+e;return t.preventDefault=t.preventDefault||Ht,t.stopPropagation=t.stopPropagation||jt,i.call(n,t,o,a)};t.attachEvent("on"+e,r);var o=function(){return t.detachEvent("on"+e,r),!0};return o}:void 0}(),Ut=[],Xt=function(e){for(var i,n=e.clientX,r=e.clientY,o=D.doc.documentElement.scrollTop||D.doc.body.scrollTop,a=D.doc.documentElement.scrollLeft||D.doc.body.scrollLeft,s=Ut.length;s--;){if(i=Ut[s],M&&e.touches){for(var u,l=e.touches.length;l--;)if(u=e.touches[l],u.identifier==i.el._drag.id){n=u.clientX,r=u.clientY,(e.originalEvent?e.originalEvent:e).preventDefault();break}}else e.preventDefault();var h,c=i.el.node,p=c.nextSibling,d=c.parentNode,f=c.style.display;D.win.opera&&d.removeChild(c),c.style.display="none",h=i.el.paper.getElementByPoint(n,r),c.style.display=f,D.win.opera&&(p?d.insertBefore(c,p):d.appendChild(c)),h&&t("raphael.drag.over."+i.el.id,i.el,h),n+=a,r+=o,t("raphael.drag.move."+i.el.id,i.move_scope||i.el,n-i.el._drag.x,r-i.el._drag.y,n,r,e)}},Zt=function(i){e.unmousemove(Xt).unmouseup(Zt);for(var n,r=Ut.length;r--;)n=Ut[r],n.el._drag={},t("raphael.drag.end."+n.el.id,n.end_scope||n.start_scope||n.move_scope||n.el,i);Ut=[]},qt=e.el={},Kt=I.length;Kt--;)!function(t){e[t]=qt[t]=function(i,n){return e.is(i,"function")&&(this.events=this.events||[],this.events.push({name:t,f:i,unbind:Yt(this.shape||this.node||D.doc,t,i,n||this)})),this},e["un"+t]=qt["un"+t]=function(i){for(var n=this.events||[],r=n.length;r--;)n[r].name!=t||!e.is(i,"undefined")&&n[r].f!=i||(n[r].unbind(),n.splice(r,1),!n.length&&delete this.events);return this}}(I[Kt]);qt.data=function(i,n){var r=lt[this.id]=lt[this.id]||{};if(0==arguments.length)return r;if(1==arguments.length){if(e.is(i,"object")){for(var o in i)i[E](o)&&this.data(o,i[o]);return this}return t("raphael.data.get."+this.id,this,r[i],i),r[i]}return r[i]=n,t("raphael.data.set."+this.id,this,n,i),this},qt.removeData=function(t){return null==t?lt[this.id]={}:lt[this.id]&&delete lt[this.id][t],this},qt.getData=function(){return i(lt[this.id]||{})},qt.hover=function(t,e,i,n){return this.mouseover(t,i).mouseout(e,n||i)},qt.unhover=function(t,e){return this.unmouseover(t).unmouseout(e)};var Jt=[];qt.drag=function(i,n,r,o,a,s){function u(u){(u.originalEvent||u).preventDefault();var l=u.clientX,h=u.clientY,c=D.doc.documentElement.scrollTop||D.doc.body.scrollTop,p=D.doc.documentElement.scrollLeft||D.doc.body.scrollLeft;if(this._drag.id=u.identifier,M&&u.touches)for(var d,f=u.touches.length;f--;)if(d=u.touches[f],this._drag.id=d.identifier,d.identifier==this._drag.id){l=d.clientX,h=d.clientY;break}this._drag.x=l+p,this._drag.y=h+c,!Ut.length&&e.mousemove(Xt).mouseup(Zt),Ut.push({el:this,move_scope:o,start_scope:a,end_scope:s}),n&&t.on("raphael.drag.start."+this.id,n),i&&t.on("raphael.drag.move."+this.id,i),r&&t.on("raphael.drag.end."+this.id,r),t("raphael.drag.start."+this.id,a||o||this,u.clientX+p,u.clientY+c,u)}return this._drag={},Jt.push({
el:this,start:u}),this.mousedown(u),this},qt.onDragOver=function(e){e?t.on("raphael.drag.over."+this.id,e):t.unbind("raphael.drag.over."+this.id)},qt.undrag=function(){for(var i=Jt.length;i--;)Jt[i].el==this&&(this.unmousedown(Jt[i].start),Jt.splice(i,1),t.unbind("raphael.drag.*."+this.id));!Jt.length&&e.unmousemove(Xt).unmouseup(Zt),Ut=[]},x.circle=function(t,i,n){var r=e._engine.circle(this,t||0,i||0,n||0);return this.__set__&&this.__set__.push(r),r},x.rect=function(t,i,n,r,o){var a=e._engine.rect(this,t||0,i||0,n||0,r||0,o||0);return this.__set__&&this.__set__.push(a),a},x.ellipse=function(t,i,n,r){var o=e._engine.ellipse(this,t||0,i||0,n||0,r||0);return this.__set__&&this.__set__.push(o),o},x.path=function(t){t&&!e.is(t,Y)&&!e.is(t[0],U)&&(t+=P);var i=e._engine.path(e.format[w](e,arguments),this);return this.__set__&&this.__set__.push(i),i},x.image=function(t,i,n,r,o){var a=e._engine.image(this,t||"about:blank",i||0,n||0,r||0,o||0);return this.__set__&&this.__set__.push(a),a},x.text=function(t,i,n){var r=e._engine.text(this,t||0,i||0,O(n));return this.__set__&&this.__set__.push(r),r},x.set=function(t){!e.is(t,"array")&&(t=Array.prototype.splice.call(arguments,0,arguments.length));var i=new le(t);return this.__set__&&this.__set__.push(i),i.paper=this,i.type="set",i},x.setStart=function(t){this.__set__=t||this.set()},x.setFinish=function(t){var e=this.__set__;return delete this.__set__,e},x.getSize=function(){var t=this.canvas.parentNode;return{width:t.offsetWidth,height:t.offsetHeight}},x.setSize=function(t,i){return e._engine.setSize.call(this,t,i)},x.setViewBox=function(t,i,n,r,o){return e._engine.setViewBox.call(this,t,i,n,r,o)},x.top=x.bottom=null,x.raphael=e;var Qt=function(t){var e=t.getBoundingClientRect(),i=t.ownerDocument,n=i.body,r=i.documentElement,o=r.clientTop||n.clientTop||0,a=r.clientLeft||n.clientLeft||0,s=e.top+(D.win.pageYOffset||r.scrollTop||n.scrollTop)-o,u=e.left+(D.win.pageXOffset||r.scrollLeft||n.scrollLeft)-a;return{y:s,x:u}};x.getElementByPoint=function(t,e){var i=this,n=i.canvas,r=D.doc.elementFromPoint(t,e);if(D.win.opera&&"svg"==r.tagName){var o=Qt(n),a=n.createSVGRect();a.x=t-o.x,a.y=e-o.y,a.width=a.height=1;var s=n.getIntersectionList(a,null);s.length&&(r=s[s.length-1])}if(!r)return null;for(;r.parentNode&&r!=n.parentNode&&!r.raphael;)r=r.parentNode;return r==i.canvas.parentNode&&(r=n),r=r&&r.raphael?i.getById(r.raphaelid):null},x.getElementsByBBox=function(t){var i=this.set();return this.forEach(function(n){e.isBBoxIntersect(n.getBBox(),t)&&i.push(n)}),i},x.getById=function(t){for(var e=this.bottom;e;){if(e.id==t)return e;e=e.next}return null},x.forEach=function(t,e){for(var i=this.bottom;i;){if(t.call(e,i)===!1)return this;i=i.next}return this},x.getElementsByPoint=function(t,e){var i=this.set();return this.forEach(function(n){n.isPointInside(t,e)&&i.push(n)}),i},qt.isPointInside=function(t,i){var n=this.realPath=ft[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(n=e.transformPath(n,this.attr("transform"))),e.isPointInsidePath(n,t,i)},qt.getBBox=function(t){if(this.removed)return{};var e=this._;return t?(!e.dirty&&e.bboxwt||(this.realPath=ft[this.type](this),e.bboxwt=Dt(this.realPath),e.bboxwt.toString=f,e.dirty=0),e.bboxwt):((e.dirty||e.dirtyT||!e.bbox)&&(!e.dirty&&this.realPath||(e.bboxwt=0,this.realPath=ft[this.type](this)),e.bbox=Dt(gt(this.realPath,this.matrix)),e.bbox.toString=f,e.dirty=e.dirtyT=0),e.bbox)},qt.clone=function(){if(this.removed)return null;var t=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(t),t},qt.glow=function(t){if("text"==this.type)return null;t=t||{};var e={width:(t.width||10)+(+this.attr("stroke-width")||1),fill:t.fill||!1,opacity:null==t.opacity?.5:t.opacity,offsetx:t.offsetx||0,offsety:t.offsety||0,color:t.color||"#000"},i=e.width/2,n=this.paper,r=n.set(),o=this.realPath||ft[this.type](this);o=this.matrix?gt(o,this.matrix):o;for(var a=1;a<i+1;a++)r.push(n.path(o).attr({stroke:e.color,fill:e.fill?e.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(e.width/i*a).toFixed(3),opacity:+(e.opacity/i).toFixed(3)}));return r.insertBefore(this).translate(e.offsetx,e.offsety)};var $t=function(t,i,n,r,o,a,s,h,c){return null==c?u(t,i,n,r,o,a,s,h):e.findDotsAtSegment(t,i,n,r,o,a,s,h,l(t,i,n,r,o,a,s,h,c))},te=function(t,i){return function(n,r,o){n=Rt(n);for(var a,s,u,l,h,c="",p={},d=0,f=0,g=n.length;f<g;f++){if(u=n[f],"M"==u[0])a=+u[1],s=+u[2];else{if(l=$t(a,s,u[1],u[2],u[3],u[4],u[5],u[6]),d+l>r){if(i&&!p.start){if(h=$t(a,s,u[1],u[2],u[3],u[4],u[5],u[6],r-d),c+=["C"+h.start.x,h.start.y,h.m.x,h.m.y,h.x,h.y],o)return c;p.start=c,c=["M"+h.x,h.y+"C"+h.n.x,h.n.y,h.end.x,h.end.y,u[5],u[6]].join(),d+=l,a=+u[5],s=+u[6];continue}if(!t&&!i)return h=$t(a,s,u[1],u[2],u[3],u[4],u[5],u[6],r-d),{x:h.x,y:h.y,alpha:h.alpha}}d+=l,a=+u[5],s=+u[6]}c+=u.shift()+u}return p.end=c,h=t?d:i?p:e.findDotsAtSegment(a,s,u[0],u[1],u[2],u[3],u[4],u[5],1),h.alpha&&(h={x:h.x,y:h.y,alpha:h.alpha}),h}},ee=te(1),ie=te(),ne=te(0,1);e.getTotalLength=ee,e.getPointAtLength=ie,e.getSubpath=function(t,e,i){if(this.getTotalLength(t)-i<1e-6)return ne(t,e).end;var n=ne(t,i,1);return e?ne(n,e).end:n},qt.getTotalLength=function(){var t=this.getPath();if(t)return this.node.getTotalLength?this.node.getTotalLength():ee(t)},qt.getPointAtLength=function(t){var e=this.getPath();if(e)return ie(e,t)},qt.getPath=function(){var t,i=e._getPath[this.type];if("text"!=this.type&&"set"!=this.type)return i&&(t=i(this)),t},qt.getSubpath=function(t,i){var n=this.getPath();if(n)return e.getSubpath(n,t,i)};var re=e.easing_formulas={linear:function(t){return t},"<":function(t){return j(t,1.7)},">":function(t){return j(t,.48)},"<>":function(t){var e=.48-t/1.04,i=F.sqrt(.1734+e*e),n=i-e,r=j(V(n),1/3)*(n<0?-1:1),o=-i-e,a=j(V(o),1/3)*(o<0?-1:1),s=r+a+.5;return 3*(1-s)*s*s+s*s*s},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){t-=1;var e=1.70158;return t*t*((e+1)*t+e)+1},elastic:function(t){return t==!!t?t:j(2,-10*t)*F.sin((t-.075)*(2*z)/.3)+1},bounce:function(t){var e,i=7.5625,n=2.75;return t<1/n?e=i*t*t:t<2/n?(t-=1.5/n,e=i*t*t+.75):t<2.5/n?(t-=2.25/n,e=i*t*t+.9375):(t-=2.625/n,e=i*t*t+.984375),e}};re.easeIn=re["ease-in"]=re["<"],re.easeOut=re["ease-out"]=re[">"],re.easeInOut=re["ease-in-out"]=re["<>"],re["back-in"]=re.backIn,re["back-out"]=re.backOut;var oe=[],ae=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,16)},se=function(){for(var i=+new Date,n=0;n<oe.length;n++){var r=oe[n];if(!r.el.removed&&!r.paused){var o,a,s=i-r.start,u=r.ms,l=r.easing,h=r.from,c=r.diff,p=r.to,d=(r.t,r.el),f={},g={};if(r.initstatus?(s=(r.initstatus*r.anim.top-r.prev)/(r.percent-r.prev)*u,r.status=r.initstatus,delete r.initstatus,r.stop&&oe.splice(n--,1)):r.status=(r.prev+(r.percent-r.prev)*(s/u))/r.anim.top,!(s<0))if(s<u){var m=l(s/u);for(var _ in h)if(h[E](_)){switch(it[_]){case W:o=+h[_]+m*u*c[_];break;case"colour":o="rgb("+[ue(J(h[_].r+m*u*c[_].r)),ue(J(h[_].g+m*u*c[_].g)),ue(J(h[_].b+m*u*c[_].b))].join(",")+")";break;case"path":o=[];for(var v=0,x=h[_].length;v<x;v++){o[v]=[h[_][v][0]];for(var T=1,b=h[_][v].length;T<b;T++)o[v][T]=+h[_][v][T]+m*u*c[_][v][T];o[v]=o[v].join(k)}o=o.join(k);break;case"transform":if(c[_].real)for(o=[],v=0,x=h[_].length;v<x;v++)for(o[v]=[h[_][v][0]],T=1,b=h[_][v].length;T<b;T++)o[v][T]=h[_][v][T]+m*u*c[_][v][T];else{var A=function(t){return+h[_][t]+m*u*c[_][t]};o=[["m",A(0),A(1),A(2),A(3),A(4),A(5)]]}break;case"csv":if("clip-rect"==_)for(o=[],v=4;v--;)o[v]=+h[_][v]+m*u*c[_][v];break;default:var D=[][L](h[_]);for(o=[],v=d.paper.customAttributes[_].length;v--;)o[v]=+D[v]+m*u*c[_][v]}f[_]=o}d.attr(f),function(e,i,n){setTimeout(function(){t("raphael.anim.frame."+e,i,n)})}(d.id,d,r.anim)}else{if(function(i,n,r){setTimeout(function(){t("raphael.anim.frame."+n.id,n,r),t("raphael.anim.finish."+n.id,n,r),e.is(i,"function")&&i.call(n)})}(r.callback,d,r.anim),d.attr(p),oe.splice(n--,1),r.repeat>1&&!r.next){for(a in p)p[E](a)&&(g[a]=r.totalOrigin[a]);r.el.attr(g),y(r.anim,r.el,r.anim.percents[0],null,r.totalOrigin,r.repeat-1)}r.next&&!r.stop&&y(r.anim,r.el,r.next,null,r.totalOrigin,r.repeat)}}}oe.length&&ae(se)},ue=function(t){return t>255?255:t<0?0:t};qt.animateWith=function(t,i,n,r,o,a){var s=this;if(s.removed)return a&&a.call(s),s;var u=n instanceof m?n:e.animation(n,r,o,a);y(u,s,u.percents[0],null,s.attr());for(var l=0,h=oe.length;l<h;l++)if(oe[l].anim==i&&oe[l].el==t){oe[h-1].start=oe[l].start;break}return s},qt.onAnimation=function(e){return e?t.on("raphael.anim.frame."+this.id,e):t.unbind("raphael.anim.frame."+this.id),this},m.prototype.delay=function(t){var e=new m(this.anim,this.ms);return e.times=this.times,e.del=+t||0,e},m.prototype.repeat=function(t){var e=new m(this.anim,this.ms);return e.del=this.del,e.times=F.floor(G(t,0))||1,e},e.animation=function(t,i,n,r){if(t instanceof m)return t;!e.is(n,"function")&&n||(r=r||n||null,n=null),t=Object(t),i=+i||0;var o,a,s={};for(a in t)t[E](a)&&Q(a)!=a&&Q(a)+"%"!=a&&(o=!0,s[a]=t[a]);if(o)return n&&(s.easing=n),r&&(s.callback=r),new m({100:s},i);if(r){var u=0;for(var l in t){var h=$(l);t[E](l)&&h>u&&(u=h)}u+="%",!t[u].callback&&(t[u].callback=r)}return new m(t,i)},qt.animate=function(t,i,n,r){var o=this;if(o.removed)return r&&r.call(o),o;var a=t instanceof m?t:e.animation(t,i,n,r);return y(a,o,a.percents[0],null,o.attr()),o},qt.setTime=function(t,e){return t&&null!=e&&this.status(t,H(e,t.ms)/t.ms),this},qt.status=function(t,e){var i,n,r=[],o=0;if(null!=e)return y(t,this,-1,H(e,1)),this;for(i=oe.length;o<i;o++)if(n=oe[o],n.el.id==this.id&&(!t||n.anim==t)){if(t)return n.status;r.push({anim:n.anim,status:n.status})}return t?0:r},qt.pause=function(e){for(var i=0;i<oe.length;i++)oe[i].el.id!=this.id||e&&oe[i].anim!=e||t("raphael.anim.pause."+this.id,this,oe[i].anim)!==!1&&(oe[i].paused=!0);return this},qt.resume=function(e){for(var i=0;i<oe.length;i++)if(oe[i].el.id==this.id&&(!e||oe[i].anim==e)){var n=oe[i];t("raphael.anim.resume."+this.id,this,n.anim)!==!1&&(delete n.paused,this.status(n.anim,n.status))}return this},qt.stop=function(e){for(var i=0;i<oe.length;i++)oe[i].el.id!=this.id||e&&oe[i].anim!=e||t("raphael.anim.stop."+this.id,this,oe[i].anim)!==!1&&oe.splice(i--,1);return this},t.on("raphael.remove",_),t.on("raphael.clear",_),qt.toString=function(){return"Raphaël’s object"};var le=function(t){if(this.items=[],this.length=0,this.type="set",t)for(var e=0,i=t.length;e<i;e++)!t[e]||t[e].constructor!=qt.constructor&&t[e].constructor!=le||(this[this.items.length]=this.items[this.items.length]=t[e],this.length++)},he=le.prototype;he.push=function(){for(var t,e,i=0,n=arguments.length;i<n;i++)t=arguments[i],!t||t.constructor!=qt.constructor&&t.constructor!=le||(e=this.items.length,this[e]=this.items[e]=t,this.length++);return this},he.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},he.forEach=function(t,e){for(var i=0,n=this.items.length;i<n;i++)if(t.call(e,this.items[i],i)===!1)return this;return this};for(var ce in qt)qt[E](ce)&&(he[ce]=function(t){return function(){var e=arguments;return this.forEach(function(i){i[t][w](i,e)})}}(ce));return he.attr=function(t,i){if(t&&e.is(t,U)&&e.is(t[0],"object"))for(var n=0,r=t.length;n<r;n++)this.items[n].attr(t[n]);else for(var o=0,a=this.items.length;o<a;o++)this.items[o].attr(t,i);return this},he.clear=function(){for(;this.length;)this.pop()},he.splice=function(t,e,i){t=t<0?G(this.length+t,0):t,e=G(0,H(this.length-t,e));var n,r=[],o=[],a=[];for(n=2;n<arguments.length;n++)a.push(arguments[n]);for(n=0;n<e;n++)o.push(this[t+n]);for(;n<this.length-t;n++)r.push(this[t+n]);var s=a.length;for(n=0;n<s+r.length;n++)this.items[t+n]=this[t+n]=n<s?a[n]:r[n-s];for(n=this.items.length=this.length-=e-s;this[n];)delete this[n++];return new le(o)},he.exclude=function(t){for(var e=0,i=this.length;e<i;e++)if(this[e]==t)return this.splice(e,1),!0},he.animate=function(t,i,n,r){(e.is(n,"function")||!n)&&(r=n||null);var o,a,s=this.items.length,u=s,l=this;if(!s)return this;r&&(a=function(){!--s&&r.call(l)}),n=e.is(n,Y)?n:a;var h=e.animation(t,i,n,a);for(o=this.items[--u].animate(h);u--;)this.items[u]&&!this.items[u].removed&&this.items[u].animateWith(o,h,h),this.items[u]&&!this.items[u].removed||s--;return this},he.insertAfter=function(t){for(var e=this.items.length;e--;)this.items[e].insertAfter(t);return this},he.getBBox=function(){for(var t=[],e=[],i=[],n=[],r=this.items.length;r--;)if(!this.items[r].removed){var o=this.items[r].getBBox();t.push(o.x),e.push(o.y),i.push(o.x+o.width),n.push(o.y+o.height)}return t=H[w](0,t),e=H[w](0,e),i=G[w](0,i),n=G[w](0,n),{x:t,y:e,x2:i,y2:n,width:i-t,height:n-e}},he.clone=function(t){t=this.paper.set();for(var e=0,i=this.items.length;e<i;e++)t.push(this.items[e].clone());return t},he.toString=function(){return"Raphaël‘s set"},he.glow=function(t){var e=this.paper.set();return this.forEach(function(i,n){var r=i.glow(t);null!=r&&r.forEach(function(t,i){e.push(t)})}),e},he.isPointInside=function(t,e){var i=!1;return this.forEach(function(n){if(n.isPointInside(t,e))return i=!0,!1}),i},e.registerFont=function(t){if(!t.face)return t;this.fonts=this.fonts||{};var e={w:t.w,face:{},glyphs:{}},i=t.face["font-family"];for(var n in t.face)t.face[E](n)&&(e.face[n]=t.face[n]);if(this.fonts[i]?this.fonts[i].push(e):this.fonts[i]=[e],!t.svg){e.face["units-per-em"]=$(t.face["units-per-em"],10);for(var r in t.glyphs)if(t.glyphs[E](r)){var o=t.glyphs[r];if(e.glyphs[r]={w:o.w,k:{},d:o.d&&"M"+o.d.replace(/[mlcxtrv]/g,function(t){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[t]||"M"})+"z"},o.k)for(var a in o.k)o[E](a)&&(e.glyphs[r].k[a]=o.k[a])}}return t},x.getFont=function(t,i,n,r){if(r=r||"normal",n=n||"normal",i=+i||{normal:400,bold:700,lighter:300,bolder:800}[i]||400,e.fonts){var o=e.fonts[t];if(!o){var a=new RegExp("(^|\\s)"+t.replace(/[^\w\d\s+!~.:_-]/g,P)+"(\\s|$)","i");for(var s in e.fonts)if(e.fonts[E](s)&&a.test(s)){o=e.fonts[s];break}}var u;if(o)for(var l=0,h=o.length;l<h&&(u=o[l],u.face["font-weight"]!=i||u.face["font-style"]!=n&&u.face["font-style"]||u.face["font-stretch"]!=r);l++);return u}},x.print=function(t,i,n,r,o,a,s,u){a=a||"middle",s=G(H(s||0,1),-1),u=G(H(u||1,3),1);var l,h=O(n)[R](P),c=0,p=0,d=P;if(e.is(r,"string")&&(r=this.getFont(r)),r){l=(o||16)/r.face["units-per-em"];for(var f=r.face.bbox[R](T),g=+f[0],m=f[3]-f[1],y=0,_=+f[1]+("baseline"==a?m+ +r.face.descent:m/2),v=0,x=h.length;v<x;v++){if("\n"==h[v])c=0,A=0,p=0,y+=m*u;else{var b=p&&r.glyphs[h[v-1]]||{},A=r.glyphs[h[v]];c+=p?(b.w||r.w)+(b.k&&b.k[h[v]]||0)+r.w*s:0,p=1}A&&A.d&&(d+=e.transformPath(A.d,["t",c*l,y*l,"s",l,l,g,_,"t",(t-g)/l,(i-_)/l]))}}return this.path(d).attr({fill:"#000",stroke:"none"})},x.add=function(t){if(e.is(t,"array"))for(var i,n=this.set(),r=0,o=t.length;r<o;r++)i=t[r]||{},b[E](i.type)&&n.push(this[i.type]().attr(i));return n},e.format=function(t,i){var n=e.is(i,U)?[0][L](i):arguments;return t&&e.is(t,Y)&&n.length-1&&(t=t.replace(A,function(t,e){return null==n[++e]?P:n[e]})),t||P},e.fullfill=function(){var t=/\{([^\}]+)\}/g,e=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,i=function(t,i,n){var r=n;return i.replace(e,function(t,e,i,n,o){e=e||n,r&&(e in r&&(r=r[e]),"function"==typeof r&&o&&(r=r()))}),r=(null==r||r==n?t:r)+""};return function(e,n){return String(e).replace(t,function(t,e){return i(t,e,n)})}}(),e.ninja=function(){if(C.was)D.win.Raphael=C.is;else{window.Raphael=void 0;try{delete window.Raphael}catch(t){}}return e},e.st=he,t.on("raphael.DOMload",function(){v=!0}),function(t,i,n){function r(){/in/.test(t.readyState)?setTimeout(r,9):e.eve("raphael.DOMload")}null==t.readyState&&t.addEventListener&&(t.addEventListener(i,n=function(){t.removeEventListener(i,n,!1),t.readyState="complete"},!1),t.readyState="loading"),r()}(document,"DOMContentLoaded"),e}.apply(e,n),!(void 0!==r&&(t.exports=r))},function(t,e,i){var n,r;!function(i){var o,a,s="0.4.2",u="hasOwnProperty",l=/[\.\/]/,h="*",c=function(){},p=function(t,e){return t-e},d={n:{}},f=function(t,e){t=String(t);var i,n=a,r=Array.prototype.slice.call(arguments,2),s=f.listeners(t),u=0,l=[],h={},c=[],d=o;o=t,a=0;for(var g=0,m=s.length;g<m;g++)"zIndex"in s[g]&&(l.push(s[g].zIndex),s[g].zIndex<0&&(h[s[g].zIndex]=s[g]));for(l.sort(p);l[u]<0;)if(i=h[l[u++]],c.push(i.apply(e,r)),a)return a=n,c;for(g=0;g<m;g++)if(i=s[g],"zIndex"in i)if(i.zIndex==l[u]){if(c.push(i.apply(e,r)),a)break;do if(u++,i=h[l[u]],i&&c.push(i.apply(e,r)),a)break;while(i)}else h[i.zIndex]=i;else if(c.push(i.apply(e,r)),a)break;return a=n,o=d,c.length?c:null};f._events=d,f.listeners=function(t){var e,i,n,r,o,a,s,u,c=t.split(l),p=d,f=[p],g=[];for(r=0,o=c.length;r<o;r++){for(u=[],a=0,s=f.length;a<s;a++)for(p=f[a].n,i=[p[c[r]],p[h]],n=2;n--;)e=i[n],e&&(u.push(e),g=g.concat(e.f||[]));f=u}return g},f.on=function(t,e){if(t=String(t),"function"!=typeof e)return function(){};for(var i=t.split(l),n=d,r=0,o=i.length;r<o;r++)n=n.n,n=n.hasOwnProperty(i[r])&&n[i[r]]||(n[i[r]]={n:{}});for(n.f=n.f||[],r=0,o=n.f.length;r<o;r++)if(n.f[r]==e)return c;return n.f.push(e),function(t){+t==+t&&(e.zIndex=+t)}},f.f=function(t){var e=[].slice.call(arguments,1);return function(){f.apply(null,[t,null].concat(e).concat([].slice.call(arguments,0)))}},f.stop=function(){a=1},f.nt=function(t){return t?new RegExp("(?:\\.|\\/|^)"+t+"(?:\\.|\\/|$)").test(o):o},f.nts=function(){return o.split(l)},f.off=f.unbind=function(t,e){if(!t)return void(f._events=d={n:{}});var i,n,r,o,a,s,c,p=t.split(l),g=[d];for(o=0,a=p.length;o<a;o++)for(s=0;s<g.length;s+=r.length-2){if(r=[s,1],i=g[s].n,p[o]!=h)i[p[o]]&&r.push(i[p[o]]);else for(n in i)i[u](n)&&r.push(i[n]);g.splice.apply(g,r)}for(o=0,a=g.length;o<a;o++)for(i=g[o];i.n;){if(e){if(i.f){for(s=0,c=i.f.length;s<c;s++)if(i.f[s]==e){i.f.splice(s,1);break}!i.f.length&&delete i.f}for(n in i.n)if(i.n[u](n)&&i.n[n].f){var m=i.n[n].f;for(s=0,c=m.length;s<c;s++)if(m[s]==e){m.splice(s,1);break}!m.length&&delete i.n[n].f}}else{delete i.f;for(n in i.n)i.n[u](n)&&i.n[n].f&&delete i.n[n].f}i=i.n}},f.once=function(t,e){var i=function(){return f.unbind(t,i),e.apply(this,arguments)};return f.on(t,i)},f.version=s,f.toString=function(){return"You are running Eve "+s},"undefined"!=typeof t&&t.exports?t.exports=f:(n=[],r=function(){return f}.apply(e,n),!(void 0!==r&&(t.exports=r)))}(this)},function(t,e,i){var n,r;n=[i(1)],r=function(t){if(!t||t.svg){var e="hasOwnProperty",i=String,n=parseFloat,r=parseInt,o=Math,a=o.max,s=o.abs,u=o.pow,l=/[, ]+/,h=t.eve,c="",p=" ",d="http://www.w3.org/1999/xlink",f={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},g={};t.toString=function(){return"Your browser supports SVG.\nYou are running Raphaël "+this.version};var m=function(n,r){if(r){"string"==typeof n&&(n=m(n));for(var o in r)r[e](o)&&("xlink:"==o.substring(0,6)?n.setAttributeNS(d,o.substring(6),i(r[o])):n.setAttribute(o,i(r[o])))}else n=t._g.doc.createElementNS("http://www.w3.org/2000/svg",n),n.style&&(n.style.webkitTapHighlightColor="rgba(0,0,0,0)");return n},y=function(e,r){var l="linear",h=e.id+r,p=.5,d=.5,f=e.node,g=e.paper,y=f.style,_=t._g.doc.getElementById(h);if(!_){if(r=i(r).replace(t._radial_gradient,function(t,e,i){if(l="radial",e&&i){p=n(e),d=n(i);var r=2*(d>.5)-1;u(p-.5,2)+u(d-.5,2)>.25&&(d=o.sqrt(.25-u(p-.5,2))*r+.5)&&.5!=d&&(d=d.toFixed(5)-1e-5*r)}return c}),r=r.split(/\s*\-\s*/),"linear"==l){var x=r.shift();if(x=-n(x),isNaN(x))return null;var T=[0,0,o.cos(t.rad(x)),o.sin(t.rad(x))],b=1/(a(s(T[2]),s(T[3]))||1);T[2]*=b,T[3]*=b,T[2]<0&&(T[0]=-T[2],T[2]=0),T[3]<0&&(T[1]=-T[3],T[3]=0)}var A=t._parseDots(r);if(!A)return null;if(h=h.replace(/[\(\)\s,\xb0#]/g,"_"),e.gradient&&h!=e.gradient.id&&(g.defs.removeChild(e.gradient),delete e.gradient),!e.gradient){_=m(l+"Gradient",{id:h}),e.gradient=_,m(_,"radial"==l?{fx:p,fy:d}:{x1:T[0],y1:T[1],x2:T[2],y2:T[3],gradientTransform:e.matrix.invert()}),g.defs.appendChild(_);for(var E=0,D=A.length;E<D;E++)_.appendChild(m("stop",{offset:A[E].offset?A[E].offset:E?"100%":"0%","stop-color":A[E].color||"#fff","stop-opacity":isFinite(A[E].opacity)?A[E].opacity:1}))}}return m(f,{fill:v(h),opacity:1,"fill-opacity":1}),y.fill=c,y.opacity=1,y.fillOpacity=1,1},_=function(){var t=document.documentMode;return t&&(9===t||10===t)},v=function(t){if(_())return"url('#"+t+"')";var e=document.location,i=e.protocol+"//"+e.host+e.pathname+e.search;return"url('"+i+"#"+t+"')"},x=function(t){var e=t.getBBox(1);m(t.pattern,{patternTransform:t.matrix.invert()+" translate("+e.x+","+e.y+")"})},T=function(n,r,o){if("path"==n.type){for(var a,s,u,l,h,p=i(r).toLowerCase().split("-"),d=n.paper,y=o?"end":"start",_=n.node,v=n.attrs,x=v["stroke-width"],T=p.length,b="classic",A=3,E=3,D=5;T--;)switch(p[T]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":b=p[T];break;case"wide":E=5;break;case"narrow":E=2;break;case"long":A=5;break;case"short":A=2}if("open"==b?(A+=2,E+=2,D+=2,u=1,l=o?4:1,h={fill:"none",stroke:v.stroke}):(l=u=A/2,h={fill:v.stroke,stroke:"none"}),n._.arrows?o?(n._.arrows.endPath&&g[n._.arrows.endPath]--,n._.arrows.endMarker&&g[n._.arrows.endMarker]--):(n._.arrows.startPath&&g[n._.arrows.startPath]--,n._.arrows.startMarker&&g[n._.arrows.startMarker]--):n._.arrows={},"none"!=b){var C="raphael-marker-"+b,S="raphael-marker-"+y+b+A+E+"-obj"+n.id;t._g.doc.getElementById(C)?g[C]++:(d.defs.appendChild(m(m("path"),{"stroke-linecap":"round",d:f[b],id:C})),g[C]=1);var w,L=t._g.doc.getElementById(S);L?(g[S]++,w=L.getElementsByTagName("use")[0]):(L=m(m("marker"),{id:S,markerHeight:E,markerWidth:A,orient:"auto",refX:l,refY:E/2}),w=m(m("use"),{"xlink:href":"#"+C,transform:(o?"rotate(180 "+A/2+" "+E/2+") ":c)+"scale("+A/D+","+E/D+")","stroke-width":(1/((A/D+E/D)/2)).toFixed(4)}),L.appendChild(w),d.defs.appendChild(L),g[S]=1),m(w,h);var M=u*("diamond"!=b&&"oval"!=b);o?(a=n._.arrows.startdx*x||0,s=t.getTotalLength(v.path)-M*x):(a=M*x,s=t.getTotalLength(v.path)-(n._.arrows.enddx*x||0)),h={},h["marker-"+y]="url(#"+S+")",(s||a)&&(h.d=t.getSubpath(v.path,a,s)),m(_,h),n._.arrows[y+"Path"]=C,n._.arrows[y+"Marker"]=S,n._.arrows[y+"dx"]=M,n._.arrows[y+"Type"]=b,n._.arrows[y+"String"]=r}else o?(a=n._.arrows.startdx*x||0,s=t.getTotalLength(v.path)-a):(a=0,s=t.getTotalLength(v.path)-(n._.arrows.enddx*x||0)),n._.arrows[y+"Path"]&&m(_,{d:t.getSubpath(v.path,a,s)}),delete n._.arrows[y+"Path"],delete n._.arrows[y+"Marker"],delete n._.arrows[y+"dx"],delete n._.arrows[y+"Type"],delete n._.arrows[y+"String"];for(h in g)if(g[e](h)&&!g[h]){var P=t._g.doc.getElementById(h);P&&P.parentNode.removeChild(P)}}},b={"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},A=function(t,e,n){if(e=b[i(e).toLowerCase()]){for(var r=t.attrs["stroke-width"]||"1",o={round:r,square:r,butt:0}[t.attrs["stroke-linecap"]||n["stroke-linecap"]]||0,a=[],s=e.length;s--;)a[s]=e[s]*r+(s%2?1:-1)*o;m(t.node,{"stroke-dasharray":a.join(",")})}else m(t.node,{"stroke-dasharray":"none"})},E=function(n,o){var u=n.node,h=n.attrs,p=u.style.visibility;u.style.visibility="hidden";for(var f in o)if(o[e](f)){if(!t._availableAttrs[e](f))continue;var g=o[f];switch(h[f]=g,f){case"blur":n.blur(g);break;case"title":var _=u.getElementsByTagName("title");if(_.length&&(_=_[0]))_.firstChild.nodeValue=g;else{_=m("title");var v=t._g.doc.createTextNode(g);_.appendChild(v),u.appendChild(_)}break;case"href":case"target":var b=u.parentNode;if("a"!=b.tagName.toLowerCase()){var E=m("a");b.insertBefore(E,u),E.appendChild(u),b=E}"target"==f?b.setAttributeNS(d,"show","blank"==g?"new":g):b.setAttributeNS(d,f,g);break;case"cursor":u.style.cursor=g;break;case"transform":n.transform(g);break;case"arrow-start":T(n,g);break;case"arrow-end":T(n,g,1);break;case"clip-rect":var D=i(g).split(l);if(4==D.length){n.clip&&n.clip.parentNode.parentNode.removeChild(n.clip.parentNode);var S=m("clipPath"),w=m("rect");S.id=t.createUUID(),m(w,{x:D[0],y:D[1],width:D[2],height:D[3]}),S.appendChild(w),n.paper.defs.appendChild(S),m(u,{"clip-path":"url(#"+S.id+")"}),n.clip=w}if(!g){var L=u.getAttribute("clip-path");if(L){var M=t._g.doc.getElementById(L.replace(/(^url\(#|\)$)/g,c));M&&M.parentNode.removeChild(M),m(u,{"clip-path":c}),delete n.clip}}break;case"path":"path"==n.type&&(m(u,{d:g?h.path=t._pathToAbsolute(g):"M0,0"}),n._.dirty=1,n._.arrows&&("startString"in n._.arrows&&T(n,n._.arrows.startString),"endString"in n._.arrows&&T(n,n._.arrows.endString,1)));break;case"width":if(u.setAttribute(f,g),n._.dirty=1,!h.fx)break;f="x",g=h.x;case"x":h.fx&&(g=-h.x-(h.width||0));case"rx":if("rx"==f&&"rect"==n.type)break;case"cx":u.setAttribute(f,g),n.pattern&&x(n),n._.dirty=1;break;case"height":if(u.setAttribute(f,g),n._.dirty=1,!h.fy)break;f="y",g=h.y;case"y":h.fy&&(g=-h.y-(h.height||0));case"ry":if("ry"==f&&"rect"==n.type)break;case"cy":u.setAttribute(f,g),n.pattern&&x(n),n._.dirty=1;break;case"r":"rect"==n.type?m(u,{rx:g,ry:g}):u.setAttribute(f,g),n._.dirty=1;break;case"src":"image"==n.type&&u.setAttributeNS(d,"href",g);break;case"stroke-width":1==n._.sx&&1==n._.sy||(g/=a(s(n._.sx),s(n._.sy))||1),u.setAttribute(f,g),h["stroke-dasharray"]&&A(n,h["stroke-dasharray"],o),n._.arrows&&("startString"in n._.arrows&&T(n,n._.arrows.startString),"endString"in n._.arrows&&T(n,n._.arrows.endString,1));break;case"stroke-dasharray":A(n,g,o);break;case"fill":var P=i(g).match(t._ISURL);if(P){S=m("pattern");var k=m("image");S.id=t.createUUID(),m(S,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),m(k,{x:0,y:0,"xlink:href":P[1]}),S.appendChild(k),function(e){t._preload(P[1],function(){var t=this.offsetWidth,i=this.offsetHeight;m(e,{width:t,height:i}),m(k,{width:t,height:i})})}(S),n.paper.defs.appendChild(S),m(u,{fill:"url(#"+S.id+")"}),n.pattern=S,n.pattern&&x(n);break}var O=t.getRGB(g);if(O.error){if(("circle"==n.type||"ellipse"==n.type||"r"!=i(g).charAt())&&y(n,g)){if("opacity"in h||"fill-opacity"in h){var R=t._g.doc.getElementById(u.getAttribute("fill").replace(/^url\(#|\)$/g,c));if(R){var I=R.getElementsByTagName("stop");m(I[I.length-1],{"stop-opacity":("opacity"in h?h.opacity:1)*("fill-opacity"in h?h["fill-opacity"]:1)})}}h.gradient=g,h.fill="none";break}}else delete o.gradient,delete h.gradient,!t.is(h.opacity,"undefined")&&t.is(o.opacity,"undefined")&&m(u,{opacity:h.opacity}),!t.is(h["fill-opacity"],"undefined")&&t.is(o["fill-opacity"],"undefined")&&m(u,{"fill-opacity":h["fill-opacity"]});O[e]("opacity")&&m(u,{"fill-opacity":O.opacity>1?O.opacity/100:O.opacity});case"stroke":O=t.getRGB(g),u.setAttribute(f,O.hex),"stroke"==f&&O[e]("opacity")&&m(u,{"stroke-opacity":O.opacity>1?O.opacity/100:O.opacity}),"stroke"==f&&n._.arrows&&("startString"in n._.arrows&&T(n,n._.arrows.startString),"endString"in n._.arrows&&T(n,n._.arrows.endString,1));break;case"gradient":("circle"==n.type||"ellipse"==n.type||"r"!=i(g).charAt())&&y(n,g);break;case"opacity":h.gradient&&!h[e]("stroke-opacity")&&m(u,{"stroke-opacity":g>1?g/100:g});case"fill-opacity":if(h.gradient){R=t._g.doc.getElementById(u.getAttribute("fill").replace(/^url\(#|\)$/g,c)),R&&(I=R.getElementsByTagName("stop"),m(I[I.length-1],{"stop-opacity":g}));break}default:"font-size"==f&&(g=r(g,10)+"px");var B=f.replace(/(\-.)/g,function(t){return t.substring(1).toUpperCase()});u.style[B]=g,n._.dirty=1,u.setAttribute(f,g)}}C(n,o),u.style.visibility=p},D=1.2,C=function(n,o){if("text"==n.type&&(o[e]("text")||o[e]("font")||o[e]("font-size")||o[e]("x")||o[e]("y"))){var a=n.attrs,s=n.node,u=s.firstChild?r(t._g.doc.defaultView.getComputedStyle(s.firstChild,c).getPropertyValue("font-size"),10):10;if(o[e]("text")){for(a.text=o.text;s.firstChild;)s.removeChild(s.firstChild);for(var l,h=i(o.text).split("\n"),p=[],d=0,f=h.length;d<f;d++)l=m("tspan"),d&&m(l,{dy:u*D,x:a.x}),l.appendChild(t._g.doc.createTextNode(h[d])),s.appendChild(l),p[d]=l}else for(p=s.getElementsByTagName("tspan"),d=0,f=p.length;d<f;d++)d?m(p[d],{dy:u*D,x:a.x}):m(p[0],{dy:0});m(s,{x:a.x,y:a.y}),n._.dirty=1;var g=n._getBBox(),y=a.y-(g.y+g.height/2);g.height&&y&&t.is(y,"finite")&&m(p[0],{dy:y})}},S=function(t){return t.parentNode&&"a"===t.parentNode.tagName.toLowerCase()?t.parentNode:t},w=function(e,i){this[0]=this.node=e,e.raphael=!0,this.id=t._oid++,e.raphaelid=this.id,this.matrix=t.matrix(),this.realPath=null,this.paper=i,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!i.bottom&&(i.bottom=this),this.prev=i.top,i.top&&(i.top.next=this),i.top=this,this.next=null},L=t.el;w.prototype=L,L.constructor=w,t._engine.path=function(t,e){var i=m("path");e.canvas&&e.canvas.appendChild(i);var n=new w(i,e);return n.type="path",E(n,{fill:"none",stroke:"#000",path:t}),n},L.rotate=function(t,e,r){if(this.removed)return this;if(t=i(t).split(l),t.length-1&&(e=n(t[1]),r=n(t[2])),t=n(t[0]),null==r&&(e=r),null==e||null==r){var o=this.getBBox(1);e=o.x+o.width/2,r=o.y+o.height/2}return this.transform(this._.transform.concat([["r",t,e,r]])),this},L.scale=function(t,e,r,o){if(this.removed)return this;if(t=i(t).split(l),t.length-1&&(e=n(t[1]),r=n(t[2]),o=n(t[3])),t=n(t[0]),null==e&&(e=t),null==o&&(r=o),null==r||null==o)var a=this.getBBox(1);return r=null==r?a.x+a.width/2:r,o=null==o?a.y+a.height/2:o,this.transform(this._.transform.concat([["s",t,e,r,o]])),this},L.translate=function(t,e){return this.removed?this:(t=i(t).split(l),t.length-1&&(e=n(t[1])),t=n(t[0])||0,e=+e||0,this.transform(this._.transform.concat([["t",t,e]])),this)},L.transform=function(i){var n=this._;if(null==i)return n.transform;if(t._extractTransform(this,i),this.clip&&m(this.clip,{transform:this.matrix.invert()}),this.pattern&&x(this),this.node&&m(this.node,{transform:this.matrix}),1!=n.sx||1!=n.sy){var r=this.attrs[e]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":r})}return n.transform=this.matrix.toTransformString(),this},L.hide=function(){return this.removed||(this.node.style.display="none"),this},L.show=function(){return this.removed||(this.node.style.display=""),this},L.remove=function(){var e=S(this.node);if(!this.removed&&e.parentNode){var i=this.paper;i.__set__&&i.__set__.exclude(this),h.unbind("raphael.*.*."+this.id),this.gradient&&i.defs.removeChild(this.gradient),t._tear(this,i),e.parentNode.removeChild(e),this.removeData();for(var n in this)this[n]="function"==typeof this[n]?t._removedFactory(n):null;this.removed=!0}},L._getBBox=function(){if("none"==this.node.style.display){this.show();var t=!0}var e,i=!1;this.paper.canvas.parentElement?e=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(e=this.paper.canvas.parentNode.style),e&&"none"==e.display&&(i=!0,e.display="");var n={};try{n=this.node.getBBox()}catch(r){n={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}finally{n=n||{},i&&(e.display="none")}return t&&this.hide(),n},L.attr=function(i,n){if(this.removed)return this;if(null==i){var r={};for(var o in this.attrs)this.attrs[e](o)&&(r[o]=this.attrs[o]);return r.gradient&&"none"==r.fill&&(r.fill=r.gradient)&&delete r.gradient,r.transform=this._.transform,r}if(null==n&&t.is(i,"string")){if("fill"==i&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;if("transform"==i)return this._.transform;for(var a=i.split(l),s={},u=0,c=a.length;u<c;u++)i=a[u],i in this.attrs?s[i]=this.attrs[i]:t.is(this.paper.customAttributes[i],"function")?s[i]=this.paper.customAttributes[i].def:s[i]=t._availableAttrs[i];return c-1?s:s[a[0]]}if(null==n&&t.is(i,"array")){for(s={},u=0,c=i.length;u<c;u++)s[i[u]]=this.attr(i[u]);return s}if(null!=n){var p={};p[i]=n}else null!=i&&t.is(i,"object")&&(p=i);for(var d in p)h("raphael.attr."+d+"."+this.id,this,p[d]);for(d in this.paper.customAttributes)if(this.paper.customAttributes[e](d)&&p[e](d)&&t.is(this.paper.customAttributes[d],"function")){var f=this.paper.customAttributes[d].apply(this,[].concat(p[d]));this.attrs[d]=p[d];
for(var g in f)f[e](g)&&(p[g]=f[g])}return E(this,p),this},L.toFront=function(){if(this.removed)return this;var e=S(this.node);e.parentNode.appendChild(e);var i=this.paper;return i.top!=this&&t._tofront(this,i),this},L.toBack=function(){if(this.removed)return this;var e=S(this.node),i=e.parentNode;i.insertBefore(e,i.firstChild),t._toback(this,this.paper);this.paper;return this},L.insertAfter=function(e){if(this.removed||!e)return this;var i=S(this.node),n=S(e.node||e[e.length-1].node);return n.nextSibling?n.parentNode.insertBefore(i,n.nextSibling):n.parentNode.appendChild(i),t._insertafter(this,e,this.paper),this},L.insertBefore=function(e){if(this.removed||!e)return this;var i=S(this.node),n=S(e.node||e[0].node);return n.parentNode.insertBefore(i,n),t._insertbefore(this,e,this.paper),this},L.blur=function(e){var i=this;if(0!==+e){var n=m("filter"),r=m("feGaussianBlur");i.attrs.blur=e,n.id=t.createUUID(),m(r,{stdDeviation:+e||1.5}),n.appendChild(r),i.paper.defs.appendChild(n),i._blur=n,m(i.node,{filter:"url(#"+n.id+")"})}else i._blur&&(i._blur.parentNode.removeChild(i._blur),delete i._blur,delete i.attrs.blur),i.node.removeAttribute("filter");return i},t._engine.circle=function(t,e,i,n){var r=m("circle");t.canvas&&t.canvas.appendChild(r);var o=new w(r,t);return o.attrs={cx:e,cy:i,r:n,fill:"none",stroke:"#000"},o.type="circle",m(r,o.attrs),o},t._engine.rect=function(t,e,i,n,r,o){var a=m("rect");t.canvas&&t.canvas.appendChild(a);var s=new w(a,t);return s.attrs={x:e,y:i,width:n,height:r,rx:o||0,ry:o||0,fill:"none",stroke:"#000"},s.type="rect",m(a,s.attrs),s},t._engine.ellipse=function(t,e,i,n,r){var o=m("ellipse");t.canvas&&t.canvas.appendChild(o);var a=new w(o,t);return a.attrs={cx:e,cy:i,rx:n,ry:r,fill:"none",stroke:"#000"},a.type="ellipse",m(o,a.attrs),a},t._engine.image=function(t,e,i,n,r,o){var a=m("image");m(a,{x:i,y:n,width:r,height:o,preserveAspectRatio:"none"}),a.setAttributeNS(d,"href",e),t.canvas&&t.canvas.appendChild(a);var s=new w(a,t);return s.attrs={x:i,y:n,width:r,height:o,src:e},s.type="image",s},t._engine.text=function(e,i,n,r){var o=m("text");e.canvas&&e.canvas.appendChild(o);var a=new w(o,e);return a.attrs={x:i,y:n,"text-anchor":"middle",text:r,"font-family":t._availableAttrs["font-family"],"font-size":t._availableAttrs["font-size"],stroke:"none",fill:"#000"},a.type="text",E(a,a.attrs),a},t._engine.setSize=function(t,e){return this.width=t||this.width,this.height=e||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},t._engine.create=function(){var e=t._getContainer.apply(0,arguments),i=e&&e.container,n=e.x,r=e.y,o=e.width,a=e.height;if(!i)throw new Error("SVG container not found.");var s,u=m("svg"),l="overflow:hidden;";return n=n||0,r=r||0,o=o||512,a=a||342,m(u,{height:a,version:1.1,width:o,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),1==i?(u.style.cssText=l+"position:absolute;left:"+n+"px;top:"+r+"px",t._g.doc.body.appendChild(u),s=1):(u.style.cssText=l+"position:relative",i.firstChild?i.insertBefore(u,i.firstChild):i.appendChild(u)),i=new t._Paper,i.width=o,i.height=a,i.canvas=u,i.clear(),i._left=i._top=0,s&&(i.renderfix=function(){}),i.renderfix(),i},t._engine.setViewBox=function(t,e,i,n,r){h("raphael.setViewBox",this,this._viewBox,[t,e,i,n,r]);var o,s,u=this.getSize(),l=a(i/u.width,n/u.height),c=this.top,d=r?"xMidYMid meet":"xMinYMin";for(null==t?(this._vbSize&&(l=1),delete this._vbSize,o="0 0 "+this.width+p+this.height):(this._vbSize=l,o=t+p+e+p+i+p+n),m(this.canvas,{viewBox:o,preserveAspectRatio:d});l&&c;)s="stroke-width"in c.attrs?c.attrs["stroke-width"]:1,c.attr({"stroke-width":s}),c._.dirty=1,c._.dirtyT=1,c=c.prev;return this._viewBox=[t,e,i,n,!!r],this},t.prototype.renderfix=function(){var t,e=this.canvas,i=e.style;try{t=e.getScreenCTM()||e.createSVGMatrix()}catch(n){t=e.createSVGMatrix()}var r=-t.e%1,o=-t.f%1;(r||o)&&(r&&(this._left=(this._left+r)%1,i.left=this._left+"px"),o&&(this._top=(this._top+o)%1,i.top=this._top+"px"))},t.prototype.clear=function(){t.eve("raphael.clear",this);for(var e=this.canvas;e.firstChild;)e.removeChild(e.firstChild);this.bottom=this.top=null,(this.desc=m("desc")).appendChild(t._g.doc.createTextNode("Created with Raphaël "+t.version)),e.appendChild(this.desc),e.appendChild(this.defs=m("defs"))},t.prototype.remove=function(){h("raphael.remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas);for(var e in this)this[e]="function"==typeof this[e]?t._removedFactory(e):null};var M=t.st;for(var P in L)L[e](P)&&!M[e](P)&&(M[P]=function(t){return function(){var e=arguments;return this.forEach(function(i){i[t].apply(i,e)})}}(P))}}.apply(e,n),!(void 0!==r&&(t.exports=r))},function(t,e,i){var n,r;n=[i(1)],r=function(t){if(!t||t.vml){var e="hasOwnProperty",i=String,n=parseFloat,r=Math,o=r.round,a=r.max,s=r.min,u=r.abs,l="fill",h=/[, ]+/,c=t.eve,p=" progid:DXImageTransform.Microsoft",d=" ",f="",g={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},m=/([clmz]),?([^clmz]*)/gi,y=/ progid:\S+Blur\([^\)]+\)/g,_=/-?[^,\s-]+/g,v="position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)",x=21600,T={path:1,rect:1,image:1},b={circle:1,ellipse:1},A=function(e){var n=/[ahqstv]/gi,r=t._pathToAbsolute;if(i(e).match(n)&&(r=t._path2curve),n=/[clmz]/g,r==t._pathToAbsolute&&!i(e).match(n)){var a=i(e).replace(m,function(t,e,i){var n=[],r="m"==e.toLowerCase(),a=g[e];return i.replace(_,function(t){r&&2==n.length&&(a+=n+g["m"==e?"l":"L"],n=[]),n.push(o(t*x))}),a+n});return a}var s,u,l=r(e);a=[];for(var h=0,c=l.length;h<c;h++){s=l[h],u=l[h][0].toLowerCase(),"z"==u&&(u="x");for(var p=1,y=s.length;p<y;p++)u+=o(s[p]*x)+(p!=y-1?",":f);a.push(u)}return a.join(d)},E=function(e,i,n){var r=t.matrix();return r.rotate(-e,.5,.5),{dx:r.x(i,n),dy:r.y(i,n)}},D=function(t,e,i,n,r,o){var a=t._,s=t.matrix,h=a.fillpos,c=t.node,p=c.style,f=1,g="",m=x/e,y=x/i;if(p.visibility="hidden",e&&i){if(c.coordsize=u(m)+d+u(y),p.rotation=o*(e*i<0?-1:1),o){var _=E(o,n,r);n=_.dx,r=_.dy}if(e<0&&(g+="x"),i<0&&(g+=" y")&&(f=-1),p.flip=g,c.coordorigin=n*-m+d+r*-y,h||a.fillsize){var v=c.getElementsByTagName(l);v=v&&v[0],c.removeChild(v),h&&(_=E(o,s.x(h[0],h[1]),s.y(h[0],h[1])),v.position=_.dx*f+d+_.dy*f),a.fillsize&&(v.size=a.fillsize[0]*u(e)+d+a.fillsize[1]*u(i)),c.appendChild(v)}p.visibility="visible"}};t.toString=function(){return"Your browser doesn’t support SVG. Falling down to VML.\nYou are running Raphaël "+this.version};var C=function(t,e,n){for(var r=i(e).toLowerCase().split("-"),o=n?"end":"start",a=r.length,s="classic",u="medium",l="medium";a--;)switch(r[a]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":s=r[a];break;case"wide":case"narrow":l=r[a];break;case"long":case"short":u=r[a]}var h=t.node.getElementsByTagName("stroke")[0];h[o+"arrow"]=s,h[o+"arrowlength"]=u,h[o+"arrowwidth"]=l},S=function(r,u){r.attrs=r.attrs||{};var c=r.node,p=r.attrs,g=c.style,m=T[r.type]&&(u.x!=p.x||u.y!=p.y||u.width!=p.width||u.height!=p.height||u.cx!=p.cx||u.cy!=p.cy||u.rx!=p.rx||u.ry!=p.ry||u.r!=p.r),y=b[r.type]&&(p.cx!=u.cx||p.cy!=u.cy||p.r!=u.r||p.rx!=u.rx||p.ry!=u.ry),_=r;for(var v in u)u[e](v)&&(p[v]=u[v]);if(m&&(p.path=t._getPath[r.type](r),r._.dirty=1),u.href&&(c.href=u.href),u.title&&(c.title=u.title),u.target&&(c.target=u.target),u.cursor&&(g.cursor=u.cursor),"blur"in u&&r.blur(u.blur),(u.path&&"path"==r.type||m)&&(c.path=A(~i(p.path).toLowerCase().indexOf("r")?t._pathToAbsolute(p.path):p.path),r._.dirty=1,"image"==r.type&&(r._.fillpos=[p.x,p.y],r._.fillsize=[p.width,p.height],D(r,1,1,0,0,0))),"transform"in u&&r.transform(u.transform),y){var E=+p.cx,S=+p.cy,L=+p.rx||+p.r||0,M=+p.ry||+p.r||0;c.path=t.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",o((E-L)*x),o((S-M)*x),o((E+L)*x),o((S+M)*x),o(E*x)),r._.dirty=1}if("clip-rect"in u){var k=i(u["clip-rect"]).split(h);if(4==k.length){k[2]=+k[2]+ +k[0],k[3]=+k[3]+ +k[1];var O=c.clipRect||t._g.doc.createElement("div"),R=O.style;R.clip=t.format("rect({1}px {2}px {3}px {0}px)",k),c.clipRect||(R.position="absolute",R.top=0,R.left=0,R.width=r.paper.width+"px",R.height=r.paper.height+"px",c.parentNode.insertBefore(O,c),O.appendChild(c),c.clipRect=O)}u["clip-rect"]||c.clipRect&&(c.clipRect.style.clip="auto")}if(r.textpath){var I=r.textpath.style;u.font&&(I.font=u.font),u["font-family"]&&(I.fontFamily='"'+u["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,f)+'"'),u["font-size"]&&(I.fontSize=u["font-size"]),u["font-weight"]&&(I.fontWeight=u["font-weight"]),u["font-style"]&&(I.fontStyle=u["font-style"])}if("arrow-start"in u&&C(_,u["arrow-start"]),"arrow-end"in u&&C(_,u["arrow-end"],1),null!=u.opacity||null!=u["stroke-width"]||null!=u.fill||null!=u.src||null!=u.stroke||null!=u["stroke-width"]||null!=u["stroke-opacity"]||null!=u["fill-opacity"]||null!=u["stroke-dasharray"]||null!=u["stroke-miterlimit"]||null!=u["stroke-linejoin"]||null!=u["stroke-linecap"]){var B=c.getElementsByTagName(l),N=!1;if(B=B&&B[0],!B&&(N=B=P(l)),"image"==r.type&&u.src&&(B.src=u.src),u.fill&&(B.on=!0),null!=B.on&&"none"!=u.fill&&null!==u.fill||(B.on=!1),B.on&&u.fill){var F=i(u.fill).match(t._ISURL);if(F){B.parentNode==c&&c.removeChild(B),B.rotate=!0,B.src=F[1],B.type="tile";var G=r.getBBox(1);B.position=G.x+d+G.y,r._.fillpos=[G.x,G.y],t._preload(F[1],function(){r._.fillsize=[this.offsetWidth,this.offsetHeight]})}else B.color=t.getRGB(u.fill).hex,B.src=f,B.type="solid",t.getRGB(u.fill).error&&(_.type in{circle:1,ellipse:1}||"r"!=i(u.fill).charAt())&&w(_,u.fill,B)&&(p.fill="none",p.gradient=u.fill,B.rotate=!1)}if("fill-opacity"in u||"opacity"in u){var H=((+p["fill-opacity"]+1||2)-1)*((+p.opacity+1||2)-1)*((+t.getRGB(u.fill).o+1||2)-1);H=s(a(H,0),1),B.opacity=H,B.src&&(B.color="none")}c.appendChild(B);var V=c.getElementsByTagName("stroke")&&c.getElementsByTagName("stroke")[0],j=!1;!V&&(j=V=P("stroke")),(u.stroke&&"none"!=u.stroke||u["stroke-width"]||null!=u["stroke-opacity"]||u["stroke-dasharray"]||u["stroke-miterlimit"]||u["stroke-linejoin"]||u["stroke-linecap"])&&(V.on=!0),("none"==u.stroke||null===u.stroke||null==V.on||0==u.stroke||0==u["stroke-width"])&&(V.on=!1);var z=t.getRGB(u.stroke);V.on&&u.stroke&&(V.color=z.hex),H=((+p["stroke-opacity"]+1||2)-1)*((+p.opacity+1||2)-1)*((+z.o+1||2)-1);var W=.75*(n(u["stroke-width"])||1);if(H=s(a(H,0),1),null==u["stroke-width"]&&(W=p["stroke-width"]),u["stroke-width"]&&(V.weight=W),W&&W<1&&(H*=W)&&(V.weight=1),V.opacity=H,u["stroke-linejoin"]&&(V.joinstyle=u["stroke-linejoin"]||"miter"),V.miterlimit=u["stroke-miterlimit"]||8,u["stroke-linecap"]&&(V.endcap="butt"==u["stroke-linecap"]?"flat":"square"==u["stroke-linecap"]?"square":"round"),"stroke-dasharray"in u){var Y={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};V.dashstyle=Y[e](u["stroke-dasharray"])?Y[u["stroke-dasharray"]]:f}j&&c.appendChild(V)}if("text"==_.type){_.paper.canvas.style.display=f;var U=_.paper.span,X=100,Z=p.font&&p.font.match(/\d+(?:\.\d*)?(?=px)/);g=U.style,p.font&&(g.font=p.font),p["font-family"]&&(g.fontFamily=p["font-family"]),p["font-weight"]&&(g.fontWeight=p["font-weight"]),p["font-style"]&&(g.fontStyle=p["font-style"]),Z=n(p["font-size"]||Z&&Z[0])||10,g.fontSize=Z*X+"px",_.textpath.string&&(U.innerHTML=i(_.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));var q=U.getBoundingClientRect();_.W=p.w=(q.right-q.left)/X,_.H=p.h=(q.bottom-q.top)/X,_.X=p.x,_.Y=p.y+_.H/2,("x"in u||"y"in u)&&(_.path.v=t.format("m{0},{1}l{2},{1}",o(p.x*x),o(p.y*x),o(p.x*x)+1));for(var K=["x","y","text","font","font-family","font-weight","font-style","font-size"],J=0,Q=K.length;J<Q;J++)if(K[J]in u){_._.dirty=1;break}switch(p["text-anchor"]){case"start":_.textpath.style["v-text-align"]="left",_.bbx=_.W/2;break;case"end":_.textpath.style["v-text-align"]="right",_.bbx=-_.W/2;break;default:_.textpath.style["v-text-align"]="center",_.bbx=0}_.textpath.style["v-text-kern"]=!0}},w=function(e,o,a){e.attrs=e.attrs||{};var s=(e.attrs,Math.pow),u="linear",l=".5 .5";if(e.attrs.gradient=o,o=i(o).replace(t._radial_gradient,function(t,e,i){return u="radial",e&&i&&(e=n(e),i=n(i),s(e-.5,2)+s(i-.5,2)>.25&&(i=r.sqrt(.25-s(e-.5,2))*(2*(i>.5)-1)+.5),l=e+d+i),f}),o=o.split(/\s*\-\s*/),"linear"==u){var h=o.shift();if(h=-n(h),isNaN(h))return null}var c=t._parseDots(o);if(!c)return null;if(e=e.shape||e.node,c.length){e.removeChild(a),a.on=!0,a.method="none",a.color=c[0].color,a.color2=c[c.length-1].color;for(var p=[],g=0,m=c.length;g<m;g++)c[g].offset&&p.push(c[g].offset+d+c[g].color);a.colors=p.length?p.join():"0% "+a.color,"radial"==u?(a.type="gradientTitle",a.focus="100%",a.focussize="0 0",a.focusposition=l,a.angle=0):(a.type="gradient",a.angle=(270-h)%360),e.appendChild(a)}return 1},L=function(e,i){this[0]=this.node=e,e.raphael=!0,this.id=t._oid++,e.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=i,this.matrix=t.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!i.bottom&&(i.bottom=this),this.prev=i.top,i.top&&(i.top.next=this),i.top=this,this.next=null},M=t.el;L.prototype=M,M.constructor=L,M.transform=function(e){if(null==e)return this._.transform;var n,r=this.paper._viewBoxShift,o=r?"s"+[r.scale,r.scale]+"-1-1t"+[r.dx,r.dy]:f;r&&(n=e=i(e).replace(/\.{3}|\u2026/g,this._.transform||f)),t._extractTransform(this,o+e);var a,s=this.matrix.clone(),u=this.skew,l=this.node,h=~i(this.attrs.fill).indexOf("-"),c=!i(this.attrs.fill).indexOf("url(");if(s.translate(1,1),c||h||"image"==this.type)if(u.matrix="1 0 0 1",u.offset="0 0",a=s.split(),h&&a.noRotation||!a.isSimple){l.style.filter=s.toFilter();var p=this.getBBox(),g=this.getBBox(1),m=p.x-g.x,y=p.y-g.y;l.coordorigin=m*-x+d+y*-x,D(this,1,1,m,y,0)}else l.style.filter=f,D(this,a.scalex,a.scaley,a.dx,a.dy,a.rotate);else l.style.filter=f,u.matrix=i(s),u.offset=s.offset();return null!==n&&(this._.transform=n,t._extractTransform(this,n)),this},M.rotate=function(t,e,r){if(this.removed)return this;if(null!=t){if(t=i(t).split(h),t.length-1&&(e=n(t[1]),r=n(t[2])),t=n(t[0]),null==r&&(e=r),null==e||null==r){var o=this.getBBox(1);e=o.x+o.width/2,r=o.y+o.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",t,e,r]])),this}},M.translate=function(t,e){return this.removed?this:(t=i(t).split(h),t.length-1&&(e=n(t[1])),t=n(t[0])||0,e=+e||0,this._.bbox&&(this._.bbox.x+=t,this._.bbox.y+=e),this.transform(this._.transform.concat([["t",t,e]])),this)},M.scale=function(t,e,r,o){if(this.removed)return this;if(t=i(t).split(h),t.length-1&&(e=n(t[1]),r=n(t[2]),o=n(t[3]),isNaN(r)&&(r=null),isNaN(o)&&(o=null)),t=n(t[0]),null==e&&(e=t),null==o&&(r=o),null==r||null==o)var a=this.getBBox(1);return r=null==r?a.x+a.width/2:r,o=null==o?a.y+a.height/2:o,this.transform(this._.transform.concat([["s",t,e,r,o]])),this._.dirtyT=1,this},M.hide=function(){return!this.removed&&(this.node.style.display="none"),this},M.show=function(){return!this.removed&&(this.node.style.display=f),this},M.auxGetBBox=t.el.getBBox,M.getBBox=function(){var t=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var e={},i=1/this.paper._viewBoxShift.scale;return e.x=t.x-this.paper._viewBoxShift.dx,e.x*=i,e.y=t.y-this.paper._viewBoxShift.dy,e.y*=i,e.width=t.width*i,e.height=t.height*i,e.x2=e.x+e.width,e.y2=e.y+e.height,e}return t},M._getBBox=function(){return this.removed?{}:{x:this.X+(this.bbx||0)-this.W/2,y:this.Y-this.H,width:this.W,height:this.H}},M.remove=function(){if(!this.removed&&this.node.parentNode){this.paper.__set__&&this.paper.__set__.exclude(this),t.eve.unbind("raphael.*.*."+this.id),t._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape);for(var e in this)this[e]="function"==typeof this[e]?t._removedFactory(e):null;this.removed=!0}},M.attr=function(i,n){if(this.removed)return this;if(null==i){var r={};for(var o in this.attrs)this.attrs[e](o)&&(r[o]=this.attrs[o]);return r.gradient&&"none"==r.fill&&(r.fill=r.gradient)&&delete r.gradient,r.transform=this._.transform,r}if(null==n&&t.is(i,"string")){if(i==l&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;for(var a=i.split(h),s={},u=0,p=a.length;u<p;u++)i=a[u],i in this.attrs?s[i]=this.attrs[i]:t.is(this.paper.customAttributes[i],"function")?s[i]=this.paper.customAttributes[i].def:s[i]=t._availableAttrs[i];return p-1?s:s[a[0]]}if(this.attrs&&null==n&&t.is(i,"array")){for(s={},u=0,p=i.length;u<p;u++)s[i[u]]=this.attr(i[u]);return s}var d;null!=n&&(d={},d[i]=n),null==n&&t.is(i,"object")&&(d=i);for(var f in d)c("raphael.attr."+f+"."+this.id,this,d[f]);if(d){for(f in this.paper.customAttributes)if(this.paper.customAttributes[e](f)&&d[e](f)&&t.is(this.paper.customAttributes[f],"function")){var g=this.paper.customAttributes[f].apply(this,[].concat(d[f]));this.attrs[f]=d[f];for(var m in g)g[e](m)&&(d[m]=g[m])}d.text&&"text"==this.type&&(this.textpath.string=d.text),S(this,d)}return this},M.toFront=function(){return!this.removed&&this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&t._tofront(this,this.paper),this},M.toBack=function(){return this.removed?this:(this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),t._toback(this,this.paper)),this)},M.insertAfter=function(e){return this.removed?this:(e.constructor==t.st.constructor&&(e=e[e.length-1]),e.node.nextSibling?e.node.parentNode.insertBefore(this.node,e.node.nextSibling):e.node.parentNode.appendChild(this.node),t._insertafter(this,e,this.paper),this)},M.insertBefore=function(e){return this.removed?this:(e.constructor==t.st.constructor&&(e=e[0]),e.node.parentNode.insertBefore(this.node,e.node),t._insertbefore(this,e,this.paper),this)},M.blur=function(e){var i=this.node.runtimeStyle,n=i.filter;return n=n.replace(y,f),0!==+e?(this.attrs.blur=e,i.filter=n+d+p+".Blur(pixelradius="+(+e||1.5)+")",i.margin=t.format("-{0}px 0 0 -{0}px",o(+e||1.5))):(i.filter=n,i.margin=0,delete this.attrs.blur),this},t._engine.path=function(t,e){var i=P("shape");i.style.cssText=v,i.coordsize=x+d+x,i.coordorigin=e.coordorigin;var n=new L(i,e),r={fill:"none",stroke:"#000"};t&&(r.path=t),n.type="path",n.path=[],n.Path=f,S(n,r),e.canvas&&e.canvas.appendChild(i);var o=P("skew");return o.on=!0,i.appendChild(o),n.skew=o,n.transform(f),n},t._engine.rect=function(e,i,n,r,o,a){var s=t._rectPath(i,n,r,o,a),u=e.path(s),l=u.attrs;return u.X=l.x=i,u.Y=l.y=n,u.W=l.width=r,u.H=l.height=o,l.r=a,l.path=s,u.type="rect",u},t._engine.ellipse=function(t,e,i,n,r){var o=t.path();o.attrs;return o.X=e-n,o.Y=i-r,o.W=2*n,o.H=2*r,o.type="ellipse",S(o,{cx:e,cy:i,rx:n,ry:r}),o},t._engine.circle=function(t,e,i,n){var r=t.path();r.attrs;return r.X=e-n,r.Y=i-n,r.W=r.H=2*n,r.type="circle",S(r,{cx:e,cy:i,r:n}),r},t._engine.image=function(e,i,n,r,o,a){var s=t._rectPath(n,r,o,a),u=e.path(s).attr({stroke:"none"}),h=u.attrs,c=u.node,p=c.getElementsByTagName(l)[0];return h.src=i,u.X=h.x=n,u.Y=h.y=r,u.W=h.width=o,u.H=h.height=a,h.path=s,u.type="image",p.parentNode==c&&c.removeChild(p),p.rotate=!0,p.src=i,p.type="tile",u._.fillpos=[n,r],u._.fillsize=[o,a],c.appendChild(p),D(u,1,1,0,0,0),u},t._engine.text=function(e,n,r,a){var s=P("shape"),u=P("path"),l=P("textpath");n=n||0,r=r||0,a=a||"",u.v=t.format("m{0},{1}l{2},{1}",o(n*x),o(r*x),o(n*x)+1),u.textpathok=!0,l.string=i(a),l.on=!0,s.style.cssText=v,s.coordsize=x+d+x,s.coordorigin="0 0";var h=new L(s,e),c={fill:"#000",stroke:"none",font:t._availableAttrs.font,text:a};h.shape=s,h.path=u,h.textpath=l,h.type="text",h.attrs.text=i(a),h.attrs.x=n,h.attrs.y=r,h.attrs.w=1,h.attrs.h=1,S(h,c),s.appendChild(l),s.appendChild(u),e.canvas.appendChild(s);var p=P("skew");return p.on=!0,s.appendChild(p),h.skew=p,h.transform(f),h},t._engine.setSize=function(e,i){var n=this.canvas.style;return this.width=e,this.height=i,e==+e&&(e+="px"),i==+i&&(i+="px"),n.width=e,n.height=i,n.clip="rect(0 "+e+" "+i+" 0)",this._viewBox&&t._engine.setViewBox.apply(this,this._viewBox),this},t._engine.setViewBox=function(e,i,n,r,o){t.eve("raphael.setViewBox",this,this._viewBox,[e,i,n,r,o]);var a,s,u=this.getSize(),l=u.width,h=u.height;return o&&(a=h/r,s=l/n,n*a<l&&(e-=(l-n*a)/2/a),r*s<h&&(i-=(h-r*s)/2/s)),this._viewBox=[e,i,n,r,!!o],this._viewBoxShift={dx:-e,dy:-i,scale:u},this.forEach(function(t){t.transform("...")}),this};var P;t._engine.initWin=function(t){var e=t.document;e.styleSheets.length<31?e.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"):e.styleSheets[0].addRule(".rvml","behavior:url(#default#VML)");try{!e.namespaces.rvml&&e.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),P=function(t){return e.createElement("<rvml:"+t+' class="rvml">')}}catch(i){P=function(t){return e.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},t._engine.initWin(t._g.win),t._engine.create=function(){var e=t._getContainer.apply(0,arguments),i=e.container,n=e.height,r=e.width,o=e.x,a=e.y;if(!i)throw new Error("VML container not found.");var s=new t._Paper,u=s.canvas=t._g.doc.createElement("div"),l=u.style;return o=o||0,a=a||0,r=r||512,n=n||342,s.width=r,s.height=n,r==+r&&(r+="px"),n==+n&&(n+="px"),s.coordsize=1e3*x+d+1e3*x,s.coordorigin="0 0",s.span=t._g.doc.createElement("span"),s.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",u.appendChild(s.span),l.cssText=t.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",r,n),1==i?(t._g.doc.body.appendChild(u),l.left=o+"px",l.top=a+"px",l.position="absolute"):i.firstChild?i.insertBefore(u,i.firstChild):i.appendChild(u),s.renderfix=function(){},s},t.prototype.clear=function(){t.eve("raphael.clear",this),this.canvas.innerHTML=f,this.span=t._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},t.prototype.remove=function(){t.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas);for(var e in this)this[e]="function"==typeof this[e]?t._removedFactory(e):null;return!0};var k=t.st;for(var O in M)M[e](O)&&!k[e](O)&&(k[O]=function(t){return function(){var e=arguments;return this.forEach(function(i){i[t].apply(i,e)})}}(O))}}.apply(e,n),!(void 0!==r&&(t.exports=r))}])})},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}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 o(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,r=!1,o=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){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}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),g=i(143),m=n(g),y=700,_=1,v=.3,x=.2,T=8,b=2,A=.4,E=function(){function t(){o(this,t)}return t.prototype.render=function(t,e){var i=e.groupBounds,n=e.theme,r=e.seriesDataModel,o=e.chartType,a=e.options;return i?(this.paper=t,this.theme=n,this.seriesDataModel=r,this.chartType=o,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=m["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,r=n.colorByPoint,o=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=r?i[n]:i[a],l=e._renderBar(o?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,r=null;if("bar"===e||n>=0||i.isRange){var o=Object.assign({},t.leftTop);o.left-="column"===e||n<0?1:0,r=m["default"].makeLinePath(o,t.rightTop).join(" ")}return r},t.prototype._makeRightLinePath=function(t,e,i){var n=null;return("column"===e||i.value>=0||i.isRange)&&(n=m["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=m["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=m["default"].makeLinePath(t.leftTop,t.leftBottom).join(" ")),n},t.prototype._makeBorderLinesPaths=function(t,e,i){var n=this._makeRectPoints(t),r={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(r).forEach(function(t){r[t]||delete r[t]}),r},t.prototype._renderBorderLines=function(t,e,i,n){var r=this._makeBorderLinesPaths(t,i,n),o={};return Object.entries(r).forEach(function(t){var i=a(t,2),n=i[0],r=i[1];o[n]=m["default"].renderLine(self.paper,r,{color:e,strokeWidth:1})}),o},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,r){if(!t)return null;var o=e.seriesDataModel.getSeriesItem(n,r);return e._renderBorderLines(t.start,i,self.chartType,o)})});return n},t.prototype._animateRect=function(t,e,i){t.animate({x:e.width?e.left:e.left-b/2,y:e.height?e.top:e.top-b/2,width:e.width?e.width:b,height:e.height?e.height:b,opacity:e.height&&e.width?1:A},i,">")},t.prototype._animateBorders=function(t,e,i,n){var r=this._makeBorderLinesPaths(e,i,n);(0,f["default"])(t,function(t,e){t.animate({path:r[e]},y,">")})},t.prototype.animate=function(t){var e=this,i=this.groupBorders||[],n=this.options.animationDuration;m["default"].forEach2dArray(this.groupBars,function(t,r,o){var a=i[r]&&i[r][o];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+T,height:i.height+T,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,r=t.groupBounds;this.groupBounds=r,this.paper.setSize(n.width,n.height),m["default"].forEach2dArray(this.groupBars,function(t,n,o){if(t){var a=i[n]&&i[n][o],s=r[n][o].end;t.bound=s,m["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 r=this.groupBorders[t.groupIndex][t.index];this._changeBordersColor(r,i)}},t.prototype.selectSeries=function(t){var e=this.groupBars[t.groupIndex][t.index],i=u["default"].color(e.color),n=this.theme.selectionColor,r=n||m["default"].makeChangedLuminanceColor(i.hex,x),o=this.theme.borderColor;if(o){var a=u["default"].color(o);o=m["default"].makeChangedLuminanceColor(a.hex,x)}this._changeBarColor(t,r,o)},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);m["default"].forEach2dArray(this.groupBars,function(n,r,o){if(n){var a=e[r]&&e[r][o],s=i||t===o?_: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,r){var o=r||"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":o},s=this.labelSet=t.set();return i.forEach(function(i,n){i.forEach(function(i,r){var o=e[n][r],u=m["default"].renderText(t,o.end,i.end,a),l=u.node.style;if(l.userSelect="none",l.cursor="default",s.push(u),o.start){var h=m["default"].renderText(t,o.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,r=a(t,2),o=r[0],s=r[1],u=a(e,2),l=u[0],h=u[1],c=0;c<o.length;c+=1){var p=l.items[c].value<0,d=h.items[c].value<0,f=o[c].end,g=f.top,m=f.left,y=f.width,_=f.height,v=s[c].end,x=v.top,T=v.left,b=v.height,A=v.width;i.push([{top:g+(!n&&p?_:0)+(n?_:0),left:m+(n&&p?0:y)},{top:x+(!n&&d?b:0),left:T+(n&&!d?A:0)}])}return i},t.prototype._makeConnectorModel=function(t){for(var e=t.groupBounds,i=t.seriesDataModel,n=i.groups,o=[],a=0;a<e.length-1;a+=1){var s=[e[a],e[a+1]],u=[n[a],n[a+1]];o.push.apply(o,r(this._calculateConnectorPosition(s,u)))}return o},t.prototype.renderConnector=function(t,e,i){var n=this._makeConnectorModel(e),r=this.connectorSet=t.set(),o=i.connector,s=(0,p["default"])(o),u=s&&o.width||1,l=s&&o.color||"#ddd",h=s&&"dotted"===o.type||!1;return n.forEach(function(e){var i=a(e,2),n=i[0],o=i[1];r.push(m["default"].renderLine(t,m["default"].makeLinePath(n,o).join(" "),{color:l,strokeWidth:u,dotted:h,connector:!0}))}),r},t}();e["default"]=E},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){r(t)?o(t,e,i):a(t,e,i)}var r=i(140),o=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,r=t.length;for(i=i||null;n<r&&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 r(t){return(0,l["default"])(t)&&"number"==typeof t}function o(){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),g=n(f),m=i(148),y=n(m),_=1.11,v={cacheFontInfo:"",elementForTextSize:null,canvasElement:o()
};e["default"]={makeLinePath:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=[t.left,t.top],r=[e.left,e.top],o=i%2/2;return n.forEach(function(t,e){t===r[e]&&(n[e]=r[e]=Math.round(t)-o)}),["M"].concat(n,["L"],r)},renderLine:function(t,e,i){var n=i.color,r=i.strokeWidth,o=i.dotted,a=i.connector,s=t.path([e]),u={stroke:n,"stroke-width":(0,c["default"])(r)?2:r,"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"),o&&s.attr(u).node.setAttribute("class","stroke-dasharray"),s},getEllipsisText:function(t,e,i){for(var n=String(t).split(""),r=n.length,o=this.getRenderedTextSize(".",i.fontSize,i.fontFamily).width,a="",s=2*o,u=0;u<r;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 r=t.text(e.left,e.top,(0,d["default"])(String(i)));return n&&(n["dominant-baseline"]?r.node.setAttribute("dominant-baseline",n["dominant-baseline"]):r.node.setAttribute("dominant-baseline","central"),r.attr(n)),r},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 r=t.circle(e.left,e.top,i);return n&&r.attr(n),r},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),r=n+n*e;return r=Math.round(Math.min(Math.max(0,r),255)).toString(16),y["default"].formatToZeroFill(r,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,r=v.cacheFontInfo,o=n.getContext("2d"),a=e+"px "+i;return r!==a&&(v.cacheFontInfo=a,o.font=a),{width:o.measureText(t).width,height:e*_}},_getTextDimensionUseHtmlElement:function(t,e,i){var n=v.cacheFontInfo,r=v.elementForTextSize;if(!r){r=document.createElement("div");var o=r.style;this._setBasicHtmlElementStyleForGetTextSize(o),document.body.appendChild(r),v.elementForTextSize=r}var a=e+"px "+i;if(n!==a){var s=r.style;s.fontFamily=i,s.fontSize=e+"px",v.cacheFontInfo=a}return r.innerHTML=t,{width:r.clientWidth,height:r.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 o=r(n)?n:600,a=r(e)?e:0,s=r(i)?i:1,u=g["default"].animation({opacity:s},o);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,o=[];for(r(e)&&(e=t||0,t=0),i=i||1,n=i<0?-1:1,e*=n;t*n<e;t+=i)o.push(t);return o}var r=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!r(t)&&!o(t)}var r=i(145),o=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 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 o(t,e){t=(0,u["default"])(t)?t:[t],(0,b["default"])(t,e)}function a(t){return"alpha(opacity="+t*C["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),g=i(145),m=n(g),y=i(151),_=n(y),v=i(139),x=n(v),T=i(141),b=n(T),A=i(153),E=n(A),D=i(154),C=n(D),S=i(155),w=n(S),L=i(158),M=n(L),P=E["default"].msie&&E["default"].version<=8,k=window.getComputedStyle||!1,O="clipRectForAnimation",R=0,I={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,x["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,r=e.fontWeight,o=e.cssText;t.style.fontSize=(i||C["default"].DEFAULT_LABEL_FONT_SIZE)+"px",n&&(t.style.fontFamily=n),r&&(t.style.fontWeight=r),o&&(t.style.cssText+=o)},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),r=this.sizeCache[n];if(!r){var o=this._createSizeCheckEl(),a=o.firstChild;a.innerText=t,this._addCssStyle(o,e),document.body.appendChild(o),r=a[i],document.body.removeChild(o),this.sizeCache[n]=r}return r},checkEl:null,_createSizeCheckEl:function(){if(this.checkEl)this.checkEl.style.cssText="";else{var t=w["default"].create("DIV","tui-chart-size-check-element"),e=w["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 r=t.map(function(t){return i(t,e)});n=M["default"].max(r)}return n},getRenderedLabelsMaxWidth:function(t,e,i){var n=this.getRenderedLabelWidth.bind(this),r=this._getRenderedLabelsMaxSize(t,e,n);return i?Math.min(i,r):r},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,r=e.height,o=void 0===r?0:r;t.style.cssText=[this.concatStr("width:",n,"px"),this.concatStr("height:",o,"px")].join(";")},renderPosition:function(t,e){(0,m["default"])(e)||(0,b["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=I.makeFontCssText(e),r=w["default"].create("DIV",i);return r.innerHTML=t,e.background&&(n+=";"+this.concatStr("background:",e.background)),r.style.cssText=n,r},expandBound:function(t){var e=t.dimension,i=t.position;return{dimension:{width:e.width+2*C["default"].SERIES_EXPAND_SIZE,height:e.height+2*C["default"].SERIES_EXPAND_SIZE},position:{left:i.left-C["default"].SERIES_EXPAND_SIZE,top:i.top-C["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,o=void 0===n?"value":n,a=t.areaType,s=t.legendName,u=t.chartType,l=[String(e)].concat(r(i||[]));return l.reduce(function(t,e){return e(t,u,a,o,s)})},formatValues:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.chartType,r=i.areaType,o=i.valueType;return e&&e.length?t.map(function(t){return I.formatValue({value:t,formatFunctions:e,chartType:n,areaType:r,valueType:o})}):t},formatDate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C["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]:C["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()-o,s=Math.min(a/t,1);e(s),1===s?(delete r.id,i&&i()):r.id=requestAnimationFrame(n)}var r={},o=(new Date).getTime();return r.id=requestAnimationFrame(n),r},isOldBrowser:function(){return P},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,o=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 r=[t];return n<u&&(n+1)%i===0&&r.push(e),r}),l=o+(h=[]).concat.apply(h,r(s)).reverse().join("")+a}return l},makeCssTextFromMap:function(t){return t.map(function(t,e){return I.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=k?window.getComputedStyle(t,""):t.currentStyle},generateClipRectId:function(){var t=O+R;return R+=1,t}};P?(I.makeOpacityCssText=function(t){var e="";if((0,p["default"])(t)){var i=a(t);e=";filter:"+i}return e},I.setOpacity=function(t,e){var i=a(e);o(t,function(t){t.style.filter=i})}):(I.makeOpacityCssText=function(t){var e="";return(0,p["default"])(t)&&(e=";opacity:"+t),e},I.setOpacity=function(t,e){o(t,function(t){t.style.opacity=e})}),e["default"]=I},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,r,o,a;return t=Number(t),e=Number(e),i=Number(i),n=t>-1&&t<100||t>1969&&t<2070,r=e>0&&e<13,!(!n||!r)&&(a=l[e],2===e&&t%4===0&&(t%100===0&&t%400!==0||(a=29)),o=i>0&&i<=a)}function r(t,e,i){var r,u,l,c=o(i,"meridiemSet","AM")||"AM",p=o(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)&&(r=u.hour>11?p:c,u.hour>12&&(u.hour%=12),0===u.hour&&(u.hour=12),u.meridiem=r),l=t.replace(s,function(t){return t.indexOf("\\")>-1?t.replace(/\\/,""):h[t](u)||""}))}var o=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=r},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(r(n)||o(n))return;n=n[i[a]]}return n}var r=i(145),o=i(137);t.exports=n},function(t,e){"use strict";function i(){var t,e,i=window.navigator,r=i.appName.replace(/\s/g,"_"),o=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=o.match(a);t?(n.msie=!0,n.version=parseFloat(t[1])):n.others=!0},Netscape:function(){var i=!1;if(s.exec(o))n.msie=!0,n.version=11,i=!0;else if(u.exec(o))n.edge=!0,n.version=o.match(u)[1],i=!0;else for(t in l)if(l.hasOwnProperty(t)&&(e=o.match(l[t]),e&&e.length>1)){n[t]=i=!0,n.version=parseFloat(e[1]||0);break}i||(n.others=!0)}},c=h[r];c&&h[r]()}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 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)}e.__esModule=!0;var o=i(140),a=n(o),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(r(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,r=void 0;return r=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,o;if(i=i||0,!r(e))return-1;if(Array.prototype.indexOf)return Array.prototype.indexOf.call(e,t,i);for(o=e.length,n=i;i>=0&&n<o;n+=1)if(e[n]===t)return n;return-1}var r=i(140);t.exports=n},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}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 o(t,e,i){var n=void 0;if(e){var o=p(t,1);n=o[0];var a=t.slice(1),s=e.call(i,n,0);a.forEach(function(t,r){var o=e.call(i,t,r+1);o<s&&(s=o,n=t)})}else n=Math.min.apply(Math,r(t));return n}function a(t,e,i){var n=void 0;if(e){var o=p(t,1);n=o[0];var a=t.slice(1),s=e.call(i,n,0);(0,x["default"])(a,function(t,r){var o=e.call(i,t,r+1);o>s&&(s=o,n=t)})}else n=Math.max.apply(Math,r(t));return n}function s(t,e,i){var n=!1;return(0,_["default"])(t,function(r,o){return e.call(i,r,o,t)&&(n=!0),!n}),n}function u(t,e,i){var n=!!(t||[]).length;return(0,_["default"])(t,function(r,o){return e.call(i,r,o,t)||(n=!1),n!==!1}),n}function l(t,e,i,n){var r=[];if((0,f["default"])(e)||(n=i,i=e,e=!1),i=i||function(t){return t},e){var o=void 0;(0,x["default"])(t,function(e,a){e=i.call(n,e,a,t),a&&o===e||r.push(e),o=e})}else(0,x["default"])(t,function(e,o){e=i.call(n,e,o,t),(0,m["default"])(e,r)===-1&&r.push(e)});return r}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,r=!0,o=!1,a=void 0;try{for(var s,u=t.entries()[Symbol.iterator]();!(r=(s=u.next()).done);r=!0){var l=p(s.value,2),h=l[0],c=l[1];if(Number(c)===i){n=h;break}}}catch(d){o=!0,a=d}finally{try{!r&&u["return"]&&u["return"]()}finally{if(o)throw a}}return n}e.__esModule=!0;var p=function(){function t(t,e){var i=[],n=!0,r=!1,o=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){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}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),g=i(157),m=n(g),y=i(139),_=n(y),v=i(141),x=n(v);e["default"]={min:o,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 r(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function o(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,r=!1,o=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){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}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=r(["\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),g=n(f),m=i(148),y=n(m),_=1,v=.3,x=.2,T=1,b=1,A=1,E=function(){function t(){o(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 g["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=g["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,r){return t.map(function(t,o){if(!t)return null;var a=e.seriesDataModel.getSeriesItem(r,o),s=n?i[r]:i[o],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:r,index:o}})})},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,r=this.animationDuration,o=e.top-t.top,a=o>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(o)*a),d=g["default"].renderLine(n,c,{color:i,strokeWidth:T}),f=g["default"].renderLine(n,p,{color:i,strokeWidth:A}),m=[];return d.attr({opacity:r?0:1}),f.attr({opacity:r?0:1}),m.push(d),m.push(f),m},t.prototype._renderWhiskers=function(t){var e=this,i=this.theme.colors,n=this.options.colorByPoint,r=[];return t.forEach(function(t,o){var a=[];t.forEach(function(t,r){var s=n?i[o]:i[r];t&&(a=a.concat(e._renderWhisker(t.min,t.start,s)),a=a.concat(e._renderWhisker(t.max,t.end,s)))}),r.push(a)}),r},t.prototype._renderMedianLine=function(t){var e=t.width,i="M"+t.left+","+t.top+",H"+(t.left+e),n=g["default"].renderLine(this.paper,i,{color:"#fff",strokeWidth:b});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=g["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,r=[];return t.forEach(function(t,o){var a=[];t.forEach(function(t,r){var s=n?i[o]:i[r],u=[];t&&(t.outliers.length&&t.outliers.forEach(function(t){u.push(e._renderOutlier(t,s))}),a.push(u))}),r.push(a)}),r},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 r=this,o=this._makeBorderLinesPaths(t,i,n),s={};return Object.entries(o).forEach(function(t){var i=a(t,2),n=i[0],o=i[1];s[n]=g["default"].renderLine(r.paper,o,{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,r){if(!t)return null;var o=e.seriesDataModel.getSeriesItem(n,r);return e._renderBorderLines(t.start,i,e.chartType,o)})}):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);g["default"].forEach2dArray(this.groupBoxes,function(t){t&&e._animateRect(t.rect,t.bound,e.animationDuration)}),g["default"].forEach2dArray(this.groupWhiskers,function(t){t.animate(i.delay(e.animationDuration))}),g["default"].forEach2dArray(this.groupMedians,function(t){t.animate(i.delay(e.animationDuration))}),g["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),g["default"].forEach2dArray(this.groupBoxes,function(t,e,n){if(t){var r=i[e][n].end;t.bound=r,g["default"].updateRectBound(t.rect,r)}})},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 r=this.groupBorders[t.groupIndex][t.index];this._changeBordersColor(r,i)}},t.prototype.selectSeries=function(t){var e=this.groupBoxes[t.groupIndex][t.index],i=l["default"].color(e.color),n=this.theme.selectionColor,r=g["default"].makeChangedLuminanceColor,o=n||r(i.hex,x),a=this.theme.borderColor;if(a){var s=l["default"].color(a);a=g["default"].makeChangedLuminanceColor(s.hex,x)}this._changeBoxColor(t,o,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);g["default"].forEach2dArray(this.groupBoxes,function(i,n,r){if(i){var o=e||t===r?_:v;i.rect.attr({"stroke-opacity":o})}}),g["default"].forEach2dArray(this.groupWhiskers,function(i,n,r){var o=e||t===r?_:v;i.attr({"stroke-opacity":o})}),g["default"].forEach2dArray(this.groupMedians,function(i,n,r){var o=e||t===r?_:v;i.attr({"stroke-opacity":o})})},t.prototype.renderSeriesLabel=function(t,e,i,n,r){var o={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,opacity:0,"text-anchor":r?"middle":"start"},a=t.set();return i.forEach(function(i,n){i.forEach(function(i,r){var s=e[n][r],u=g["default"].renderText(t,s.end,i.end,o);if(u.node.style.userSelect="none",u.node.style.cursor="default",u.node.setAttribute("filter","url(#glow)"),a.push(u),s.start){var l=g["default"].renderText(t,s.start,i.start,o);l.node.style.userSelect="none",l.node.style.cursor="default",l.node.setAttribute("filter","url(#glow)"),a.push(l)}})}),a},t}();e["default"]=E},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e,i,n){var r=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),o=t.rect(e.left,e.top,i.width,i.height);return o.id=n+"_rect",r.id=n,r.appendChild(o.node),t.defs.appendChild(r),o}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),g=n(f),m=l["default"].msie&&l["default"].version<=8,y=1,_=.3,v=20,x=function(){function t(){r(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,r){var o=e.theme.colors[r],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,o)):n===d["default"].BULLET_TYPE_RANGE?(s.push(e._renderRange(t,o,a,i[a])),a+=1):n===d["default"].BULLET_TYPE_MARKER&&u.push(e._renderMarker(t,o))}),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 r=this._getRangeOpacity(i),o={opacity:r},a=e;return t?(n&&(a=n.color||a,o.opacity=n.opacity||r),this._renderBar(t,a,o)):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,r=t.length,o=this.isVertical?"L"+(n+r)+","+i:"L"+n+","+(i+r),a="M"+n+","+(i+o);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,r=this.dimension,a=this.position,s=this.animationDuration,u=this._getClipRectId(),l=r.width-v,h=r.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),!m&&r&&(d?(d.attr({x:a.left,y:a.top}),d.attr(c)):(d=o(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,r=e.height;this.dimension=t.dimension,this.groupBounds=i,this.resizeClipRect(n,r),this.paper.setSize(n,r)},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=g["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,r){var o=i||t===r?y:_;e.groupBars[r].attr({"fill-opacity":o}),e.groupLabels[r].attr({opacity:o}),e.groupLabels[r].forEach(function(t){t.attr({opacity:o})})})},t.prototype.renderSeriesLabel=function(t,e,i,n){var r=this,o={"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=r._renderLabel(t,e[n][u],o,i);s.push(l),a.push(l)}),s},this),a},t.prototype._renderLabel=function(t,e,i,n){var r=c["default"].renderText(t,e,n,i),o=r.node,a=o.style;return a.userSelect="none",a.cursor="default",o.setAttribute("filter","url(#glow)"),r},t.prototype.getGraphColors=function(){var t=this;return this._graphColors.length||(this._graphColors=this.groupBars.map(function(e,i){var n=[],r=t.groupLines[i].length;e.forEach(function(t){n.push(t.attrs.fill)});for(var o=n[n.length-1],a=0;a<=r;a+=1)n.push(o);return n})),this._graphColors},t}();e["default"]=x},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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),g=1,m=.3,y=function(t){function e(){r(this,e);var i=o(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,r=e.theme,o=e.options,a=e.position,s=r.colors,u=o.showDot?1:0,l=o.spline,c=this.lineWidth=(0,h["default"])(o.pointWidth)?o.pointWidth:this.lineWidth,p=this.makeBorderStyle(r.dot.strokeColor,u,r.dot.strokeWidth),d=this.makeOutDotStyle(u,p),f=void 0;return f=l?this._getSplineLinesPath(n,o.connectNulls):this._getLinesPath(n,o.connectNulls),this.paper=t,this.theme=r,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),o.allowSelect&&(this.selectionDot=this._makeSelectionDot(t),this.selectionColor=r.selectionColor),this.colors=s,this.borderStyle=p,this.outDotStyle=d,this.groupPositions=n,this.groupPaths=f,this.dotOpacity=u,this.animationDuration=o.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,r){var o=i[r]||"transparent",a=f["default"].renderLine(t,e.join(" "),{color:o,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,r){t.endDot&&e._moveDot(t.endDot.dot,n[i][r])})})},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,r){var o=t===r,a=i||o?g:m,s=e.groupDots[r];n.attr({"stroke-opacity":a}),o&&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 r=this,o=t.options.spline,a=o?this._getSplineLinesPath(i):this._getLinesPath(i),s=0;i.length&&(n&&(s=1),this.groupLines.forEach(function(t,o){var u=r.groupDots[o],l=i[o];n&&r._removeFirstDot(u),u.forEach(function(t,i){var n=l[i+s];r._animateByPosition(t.endDot.dot,n,e)}),r._animateByPath(t,a[o],e)}))},e.prototype.renderSeriesLabel=function(t,e,i,n){var r={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,"text-anchor":"middle",opacity:0},o=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,r);if(o.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,r);l.node.style.userSelect="none",l.node.style.cursor="default",l.node.setAttribute("filter","url(#glow)"),o.push(l)}})}),o},e}(p["default"]);e["default"]=y},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}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 o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e,i,n,r){var o=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),a=t.rect(e.left,e.top,r?0:i.width,i.height);return a.id=n+"_rect",o.id=n,o.appendChild(a.node),t.defs.appendChild(o),a}e.__esModule=!0;var s=function(){function t(t,e){var i=[],n=!0,r=!1,o=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){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}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),g=n(f),m=i(145),y=n(m),_=i(143),v=n(_),x=i(148),T=n(x),b=i(164),A=n(b),E=i(158),D=n(E),C=i(154),S=n(C),w=l["default"].msie&&l["default"].version<=8,L=6,M=7,P=.3,k=300,O="over",R="out",I=function(){function t(){o(this,t)}return t.prototype._makeLinesPath=function(t,e,i){var n,o=[],a=!1;return e=e||"top",[].concat(t).forEach(function(t){var n=a&&!i?"M":"L";t?(o.push([n,t.left,t[e]]),a&&(a=!1)):a=!0}),o=(n=[]).concat.apply(n,r(o)),o.length>0&&(o[0]="M"),o},t.prototype._getAnchor=function(t,e,i,n){var r=(e.left-t.left)/2,o=(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=r*Math.sin(u+a),h=r*Math.cos(u+a),c=o*Math.sin(u+s),p=o*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(r,o){var a=o===t.length-1;r&&n.push(r),(!r&&n.length>0&&!e||a)&&(i.push(n),n=[])}),i},t.prototype._getSplinePartialPaths=function(t,e){var i=this,n=[],r=void 0,o=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;o=t.length,a=p,r=t[o-1],u=t.slice(1).slice(0,o-2),l=u.map(function(n,r){var o=t[r+2],s=i._getAnchor(a,n,o,e);return a=n,Math.abs(s.y1-c.top)>Math.abs(c.top-n.top)&&(s.y1=n.top),Math.abs(s.y2-o.top)>Math.abs(o.top-n.top)&&(s.y2=n.top),c=n,[s.x1,s.y1,n.left,n.top,s.x2,s.y2]}),l.push([r.left,r.top,r.left,r.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),r=[];return n.forEach(function(t){r=r.concat(t)}),e.isBeConnected&&(r[0]=r[0].slice(3)),r},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:L};return e&&Object.assign(i,e),i},t.prototype.renderDot=function(t,e,i,n){var r=this.theme&&this.theme.dot||{dot:{}},o=void 0;if(e){var a=t.circle(e.left,e.top,(0,y["default"])(r.radius)?L:r.radius),s={fill:r.fillColor||i,"fill-opacity":(0,g["default"])(n)?n:r.fillOpacity,stroke:r.strokeColor||i,"stroke-opacity":(0,g["default"])(n)?n:r.strokeOpacity,"stroke-width":r.strokeWidth};a.attr(s),o={dot:a,color:i}}return o},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,r){var o=this,a=e.map(function(e,a){var s=i[a];return Object.values(e).map(function(e){var i={endDot:o.renderDot(t,e,s,n)};if(o.hasRangeData){var a=Object.assign({},e);a.top=a.startTop,i.startDot=o.renderDot(t,a,s,n)}return r&&(r.push(i.endDot.dot),i.startDot&&r.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===O||n)&&(i="radial"===this.chartType&&this.showArea?0:P),t===R&&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===O?P: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),r=this.groupLines?this.groupLines[e]:this.groupAreas[e],o=void 0,a=void 0;if(n){if("area"===this.chartType){var s=r;a=s.startLine,r=s.line,o=5,this._updateAreaOpacity(O)}else o=this.lineWidth;this._updateLineStrokeOpacity(O,r),this._updateLineStrokeWidth(r,o),a&&this._updateLineStrokeWidth(a,o),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=D["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],r=this.outDotStyle;n&&!(0,y["default"])(i)&&(r={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(r),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],r=this._findDotItem(n,e),o=void 0,a=void 0,s=void 0,u=this.dotOpacity;if(r){if(o=this.groupLines?this.groupLines[i]:this.groupAreas[i],"area"===this.chartType){a=this.lineWidth;var l=o;s=l.startLine,o=l.line,this._updateAreaOpacity(R)}else a=this.lineWidth;u&&!(0,d["default"])(this.selectedLegendIndex)&&this.selectedLegendIndex!==i&&(u=P),this._updateLineStrokeOpacity(R,o),this._updateLineStrokeWidth(o,a),s&&this._updateLineStrokeWidth(s,a),r&&(this._hideDot(r.endDot.dot,i,u),r.startDot&&this._hideDot(r.startDot.dot,i,u))}},t.prototype._hideGroupDots=function(t){var e=this,i=!(0,d["default"])(this.selectedLegendIndex),n=this.dotOpacity,r=this._getPivotGroupDots();r&&r[t]&&r[t].forEach(function(t,r){var o=n;o&&i&&e.selectedLegendIndex!==r&&(o=P),t.endDot&&e._hideDot(t.endDot.dot,r,o),t.startDot&&e._hideDot(t.startDot.dot,r,o)})},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,r=this.position,o=this.animationDuration,s=this._getClipRectId(),u=this._makeClipRectPosition(r),l=this.clipRect;!w&&n&&(l?(this._makeClipRectPosition(r),l.attr({width:o?0:n.width,height:n.height,x:u.left,y:u.top})):(l=a(i,u,n,s,!!o),this.clipRect=l),e.forEach(function(t){t.node.setAttribute("clip-path","url(#"+s+")")}),o&&l.animate({width:n.width},o,">",t))},t.prototype._makeClipRectPosition=function(t){return{left:t.left-S["default"].SERIES_EXPAND_SIZE,top:t.top-S["default"].SERIES_EXPAND_SIZE}},t.prototype._makeSelectionDot=function(t){var e=t.circle(0,0,M);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,k)},t.prototype._animateByPath=function(t,e,i){var n={path:e.join(" ")};(0,c["default"])(i)&&(n.transform="t-"+i+",0"),t.animate(n,k)},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=T["default"].generateClipRectId()),this.clipRectId},t.prototype.resetSeriesOrder=function(){},t.prototype.moveSeriesToFront=function(){},t}();e["default"]=I},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(159),o=n(r),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,o["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 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 o(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,r=!1,o=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){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}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),g=i(163),m=n(g),y=i(143),_=n(y),v=i(154),x=n(v),T=i(166),b=n(T),A=x["default"].GUIDE_AREACHART_AREAOPACITY_TYPE,E=x["default"].CLASS_NAME_SVG_AUTOSHAPE,D=1,C=.3,S=function(t){function e(){o(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,r=e.theme,o=void 0===r?{}:r,a=e.position,s=e.zeroTop,u=e.hasRangeData,l=e.options,h=o.dot,c=void 0===h?{}:h,d=o.colors,f=l.spline,g=l.allowSelect,m=l.connectNulls,y=l.pointWidth,_=l.showDot,v=l.areaOpacity,x=this._isAreaOpacityNumber(v)?v:1,T=_?1:0,b=this.makeBorderStyle(c.strokeColor,T,c.strokeWidth),A=this.makeOutDotStyle(T,b),E=this.lineWidth=(0,p["default"])(y)?y:this.lineWidth;this.paper=t,this.theme=o,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,m),this.groupAreas=this._renderAreas(t,this.groupPaths,d,E,x),this.tooltipLine=this._renderTooltipLine(t,i.height),this.groupDots=this._renderDots(t,n,d,T),g&&(this.selectionDot=this._makeSelectionDot(t),this.selectionColor=o.selectionColor,this.hasRangeData&&(this.selectionStartDot=this._makeSelectionDot(t))),this.outDotStyle=A,this.groupPositions=n,this.dotOpacity=T,this.pivotGroupDots=null;var D=t.setFinish();return this._moveSeriesToFrontAll(),this.tooltipLine.toFront(),D},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,r){i=i.slice(0,e.length),i.reverse(),e.reverse();var o=e.map(function(e,o){var a={},s=i[o]||"transparent",u=s,l=_["default"].renderArea(t,e.area.join(" "),{fill:s,opacity:r,stroke:s}),h=_["default"].renderLine(t,e.line.join(" "),{color:u,strokeWidth:n});return l.node.setAttribute("class",E),h.node.setAttribute("class",E),a.area=l,a.line=h,e.startLine&&(a.startLine=_["default"].renderLine(t,e.startLine.join(" "),{color:u,strokeWidth:0})),a});return o.reverse()},e.prototype._makeHeight=function(t,e){return Math.abs(t-e)},e.prototype._makeAreasPath=function(t,e){var i,n=[],o=t.length,a=[],s=[],l=[],h=!1;if(Object.entries(t).forEach(function(t){var e=u(t,2),i=e[0],r=e[1],a=void 0;r?(h?(a="M",h=!1):a="L",l.push([a,r.left,r.top]),s.unshift(["L",r.left,r.startTop])):(h=!0,
s.push(["z"])),r&&parseInt(i,10)!==o-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,r(a)),a[0]="M",a},e.prototype._makeAreaChartPath=function(t,e,i){var n=this;return t.map(function(t){var r={area:n._makeAreasPath(t,e),line:n._makeLinesPath(t,null,i)};return n.hasRangeData&&(r.startLine=n._makeLinesPath(t,"startTop")),r})},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}}),r=i._makeSplineLinesPath(t),o=i._makeSplineLinesPath(n,{isReverseDirection:!0,isBeConnected:!0}),a=JSON.parse(JSON.stringify(r)),s=JSON.parse(JSON.stringify(o));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:r}})},e.prototype.resize=function(t){var e=this,i=t.dimension,n=t.groupPositions,r=t.zeroTop;this.resizeClipRect(i.width,i.height),this.zeroTop=r,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 r=e.groupAreas[i];r.area.attr({path:t.area.join(" ")}),r.line.attr({path:t.line.join(" ")}),r.startLine&&r.startLine.attr({path:t.startLine.join(" ")}),e.groupDots[i].forEach(function(t,r){var o=n[i][r];if(t.endDot&&e._moveDot(t.endDot.dot,o),t.startDot){var a=Object.assign({},o);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,r){var o=t===r,a=i||o?D:C,s=e.groupDots[r];n.area.attr({"fill-opacity":a}),n.line.attr({"stroke-opacity":a}),n.startLine&&n.startLine.attr({"stroke-opacity":a}),o&&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,r){var o=this,a=this._getAreaChartPath(i,!1),s=0;i.length&&(n&&(s=1),this.zeroTop=r,this.groupAreas.forEach(function(t,r){var u=o.groupDots[r],l=i[r],h=a[r];n&&o._removeFirstDot(u),u.forEach(function(t,i){var n=l[i+s];o._animateByPosition(t.endDot.dot,n,e),t.startDot&&o._animateByPosition(t.startDot.dot,{left:n.left,top:n.startTop},e)}),o._animateByPath(t.area,h.area,e),o._animateByPath(t.line,h.line,e),t.startLine&&o._animateByPath(t.startLine,h.startLine,e)}))},e.prototype.renderSeriesLabel=function(t,e,i,n){var r={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,"text-anchor":"middle",opacity:0},o=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,r);if(o.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,r);l.node.style.userSelect="none",l.node.style.cursor="default",l.node.setAttribute("filter","url(#glow)"),o.push(l)}})}),o},e.prototype._isAreaOpacityNumber=function(t){var e=(0,p["default"])(t);return e?(t<0||t>1)&&b["default"].print(A,"warn"):(0,f["default"])(t)||b["default"].print(A,"error"),e},e}(m["default"]);e["default"]=S},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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,r=!1,o=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){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}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,g=360,m=.01,y=Math.PI/f,_=1,v=.3,x=.2,T="overlay",b=20,A=function(){function t(){r(this,t)}return t.prototype.render=function(t,e,i){var n=t.set();this.animationDuration=e.options.animationDuration,this.paper=t;var r=o(e.options.radiusRange,1);return this.holeRatio=r[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,r){var o=n*y,a=r*y,s=t+i*Math.sin(o),u=e-i*Math.cos(o),l=t+i*Math.sin(a),h=e-i*Math.cos(a),c=r-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,r,o){var a=n*y,s=r*y,u=o||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),g=e-i*Math.cos(s),m=t+u*Math.sin(s),_=e-u*Math.cos(s),v=r-n>f?1:0,x=["M",l,h,"A",i,i,0,v,1,d,g,"L",m,_,"A",u,u,0,v,0,c,p,"Z"];return{path:x}},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",T),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 r=this,o=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=r._renderSector({paper:r.paper,circleBound:o,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",r.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],r=n.angles.startAngle,o=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,r,o,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,r=[i.cx,i.cy,i.r],o=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===g&&(i.endAngle=g-m),a[e]=r.concat([i.startAngle,i.endAngle]);var u=c["default"].animation(a,s,">");t.sector.animate(u.delay(o)),o+=s}}),t&&setTimeout(t,o)},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-b,top:e.top-b}];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,x),r=this.selectionColor||n;e.sector.attr({fill:r})}},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 r=e||t===n?_:v;i.sector.attr({"fill-opacity":r})})},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,r=t.dataType,o=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=o[u],h=n&&!n({value:t.labels[u],labelType:r,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[r].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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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,g=6,m=function(t){function e(){r(this,e);var i=o(this,t.call(this));return i.selectedLegendIndex=null,i.chartType="radial",i.lineWidth=g,i}return a(e,t),e.prototype.render=function(t,e){var i=e.dimension,n=e.groupPositions,r=e.theme,o=r.colors,a=e.options,s=a.pointWidth,u=a.showDot,l=a.showArea,h=u?1:0,c=this._getLinesPath(n),p=this.makeBorderStyle(r.strokeColor,h,r.strokeWidth),d=this.makeOutDotStyle(h,p),f=t.set(),g=this.lineWidth=s?s:this.lineWidth,m=n.map(function(t){return t.pop(),t});return this.paper=t,this.theme=r,this.dimension=i,this.position=e.position,l&&(this.groupAreas=this._renderArea(t,c,o,f)),this.groupLines=this._renderLines(t,c,o,g,f),this.groupDots=this._renderDots(t,m,o,h,f),e.options.allowSelect&&(this.selectionDot=this._makeSelectionDot(t),this.selectionColor=r.selectionColor),this.colors=o,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,r){return e.map(function(e,o){var a=i[o]||"transparent",s=p["default"].renderLine(t,e.join(" "),{color:a,strokeWidth:n});return r.push(s),s})},e.prototype._renderArea=function(t,e,i,n){var r=this;return e.map(function(e,o){var a=i[o]||"transparent",s=p["default"].renderArea(t,e,{fill:a,opacity:.4,"stroke-width":r.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,r){e._moveDot(t.endDot.dot,n[i][r])})})},e.prototype.selectLegend=function(t){var e=(0,u["default"])(t);this.selectedLegendIndex=t,this.groupLines.forEach(function(i,n){var r=e||t===n?d:f;i.attr({"stroke-opacity":r})})},e}(h["default"]);e["default"]=m},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(135),a=n(o),s=i(146),u=n(s),l=i(137),h=n(l),c=i(145),p=n(c),d=i(143),f=n(d),g=.8,m=1,y=.8,_=.3,v=.2,x=2,T=20,b=function(){function t(){r(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":m,"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,r){return n.map(function(n,o){var a=null;if(n){var s=i[o],u=f["default"].renderCircle(e.paper,n,e.animationDuration?0:n.radius,{fill:s,opacity:e.animationDuration?0:g,stroke:"none"});t.push(u),u.data("groupIndex",r),u.data("index",o),a={circle:u,color:s,bound:n}}return a})})},t.prototype._animateCircle=function(t,e,i){t.animate({r:e,opacity:g},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,r){var o=n[i][r];t&&(t.bound=o,e._updatePosition(t.circle,o))})},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+x,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 r=i.getElementByPoint(t.left,t.top);r?r.attrs.opacity>_?n=r:(e.push(r),r.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"),r=[{},i,n,{left:t.left-T,top:t.top-T}];this._isChangedPosition(this.prevPosition,t)&&(this.callbacks.showTooltip.apply(null,r),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],r=a["default"].color(n.color),o=this.theme.selectionColor,s=o||f["default"].makeChangedLuminanceColor(r.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,r){if(i){var o=e||t===r?y:_;i.circle.attr({opacity:o})}})},t}();e["default"]=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(146),a=n(o),s=i(143),u=n(s),l=i(164),h=n(l),c=100,p=0,d=4,f=function(){function t(){r(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 r=this,o=h["default"].isTreemapChart(this.chartType);return t.map(function(t,i){if(o&&!r.colorSpectrum&&t.getSeriesItemCount()){var a=t.getSeriesItem(0);r._setTreeFillOpacity({id:a.parent},e)}return t.map(function(t,o){var a=null,s=t.depth,u=r.colorSpectrum?r.borderWidth:r._getStrokeWidth(s===e),l=r.colorSpectrum?1:t.fillOpacity;t.groupIndex=i,t.index=o;var h=r._getBound(t);if(h){var c=r._getColor(t,e);a={rect:r._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,r){var o=n.depth;o===e?n.fillOpacity=1:o===e+1?n.fillOpacity=.05*r:o<e?n.fillOpacity=0:n.fillOpacity=t.fillOpacity+.05*r,n.hasChild&&i._setTreeFillOpacity({id:n.id,fillOpacity:n.fillOpacity},e)})},t.prototype._animateChangingColor=function(t,e,i,n,r){var o={"fill-opacity":(0,a["default"])(i)?i:1,stroke:n,"stroke-width":r};e&&(o.fill=e),t.animate(o,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 r=e._getBound(t.seriesItem,i,n);r&&u["default"].updateRectBound(t.rect,r)}})},t.prototype.renderSeriesLabel=function(t,e,i,n){var r=t.set(),o={"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,o);s.node.style.userSelect="none",s.node.style.cursor="default",r.push(s)})}),this.labelSet=r,r},t.prototype.renderSeriesLabelForTreemap=function(t,e,i,n){var r=t.set(),o={"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,o);a.node.style.userSelect="none",a.node.style.cursor="default",r.push(a)}}),this.labelSet=r,r},t}();e["default"]=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function o(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){m["default"].append(n,t.node)}),t.canvas.appendChild(n),n}e.__esModule=!0;var s=r(["\n                  s",",",",0,0\n                  t",",","\n                "],["\n                  s",",",",0,0\n                  t",",","\n                "]),u=r(["\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),g=i(155),m=n(g),y=i(148),_=n(y),v=p["default"].msie&&p["default"].version<=8,x="gray",T=100,b="tui-chart-series-group",A="#eee",E=function(){function t(){o(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,b)),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,r=t.layout.position,o=t.colorSpectrum;return t.mapModel.getMapData().map(function(t,a){var u=t.ratio,l=t.path,h=u?o.getColor(u):A,c=f["default"].renderArea(n,l,{fill:h,opacity:1,stroke:x,"stroke-width":.2,"stroke-opacity":1,transform:_["default"].oneLineTrim(s,e,e,r.left/e,r.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,T,">"),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:x,"stroke-width":.2},T,">"),e.sector.node.setAttribute("filter","none")},t.prototype.scaleMapPaths=function(t,e,i,n,r){var o=this.g.transform.baseVal,a=this.paper.canvas.createSVGTransform(),s=this.paper.canvas.createSVGMatrix(),u=this.paper.raphael.matrix(),l=o.numberOfItems?o.getItem(0).matrix:{a:1,b:0,c:0,d:1,e:0,f:0},h=r.width-this.dimension.width,c=r.height-this.dimension.height,p=l.e/l.a,d=l.f/l.d,f=-h/l.a,g=-c/l.d;u.scale(t,t,e.left*i-p*t,e.top*i-d*t);var m=u.e/u.a+p,y=u.f/u.d+d;m>=0?u.e=-p*u.a:m<f&&(u.e=f-p),y>=0?u.f=-d*u.a:y<g&&(u.f=g-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),o.appendItem(a),o.initialize(o.consolidate())},t.prototype.moveMapPaths=function(t,e){var i=this.paper.canvas.createSVGMatrix(),n=this.paper.raphael.matrix(),r=this.g.transform.baseVal,o=this.paper.canvas.createSVGTransform(),a=e.width-this.dimension.width,s=e.height-this.dimension.height,u=r.numberOfItems?r.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,o.setMatrix(i),r.appendItem(o),r.initialize(r.consolidate())},t.prototype._translateXForRaphaelMatrix=function(t){var e=t.raphaelMatrix,i=t.transformMatrix,n=t.maxRight,r=e.e/e.a,o=r+i.e/i.a;o>=0&&r>0?e.e=0:o<0&&o<-n/i.a&&r<0&&(e.e=0)},t.prototype._translateYForRaphaelMatrix=function(t){var e=t.raphaelMatrix,i=t.transformMatrix,n=t.maxTop,r=e.f/e.d,o=r+i.f/i.d;o>=0&&r>0?e.f=0:o<0&&o<-n/i.d&&r<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)},r=t.set();return e.forEach(function(e){var i=e.position,o=f["default"].renderText(t,i,e.name||e.code,n);r.push(o),o.node.style.userSelect="none",o.node.style.cursor="default",o.node.setAttribute("filter","url(#glow)"),v||self.g.appendChild(o.node)}),r},t}();e["default"]=E},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function o(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=r(["\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),g=n(f),m=i(154),y=n(m),_=i(143),v=n(_),x=i(158),T=n(x),b=i(148),A=n(b),E=i(173),D=n(E),C=.5,S=8,w=10,L=w/2,M=3,P=function(){function t(){o(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,r){var o=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,o),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:o,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[r]+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,r=this.paper.height,o=t;if(!this.isHorizontal&&n+2*i>r){this._legendItemHeight=Math.max(t[0].labelHeight,y["default"].LEGEND_CHECKBOX_SIZE);var a=r-2*i,s=this._legendItemHeight+y["default"].LINE_MARGIN_TOP,u=Math.floor(a/s);o=t.slice((e-1)*u,e*u)}return o},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,r=y["default"].LEGEND_PAGINATION_BUTTON_PADDING_RIGHT,o=y["default"].LEGEND_AREA_V_PADDING,a=y["default"].LEGEND_AREA_H_PADDING,s=t.top+e.height-o,u=t.left-a,l=u+a,h=D["default"].sum([l,r,n]),c=["M",h+5,",",s+M+4,"L",h+L+5,",",s+S+4,"L",h+w+5,",",s+M+4].join(""),p=["M",l+5,",",s+S+4,"L",l+L+5,",",s+M+4,"L",l+w+5,",",s+S+4].join(""),d=this._renderPaginationRect({
top:s,left:l}),f={color:"#555",strokeWidth:2},g=v["default"].renderLine(this.paper,p,f),m=this._renderPaginationRect({top:s,left:h}),_=v["default"].renderLine(this.paper,c,f),x=this.paper.set(),T=this.paper.set();return d.className="tui-chart-icon",x.push(d),x.push(g),m.className="tui-chart-icon",T.push(m),T.push(_),x.click(function(){i._currentPageCount>1&&(i._paginateLegendAreaTo("previous"),i._currentPageCount-=1)}),T.click(function(){i._currentPageCount<i.availablePageCount&&(i._paginateLegendAreaTo("next"),i._currentPageCount+=1)}),[x,T]},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,r={left:t.left,top:t.top+this._legendItemHeight/2},o={fill:n.color,"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,opacity:e.isUnselected?C:1,"text-anchor":"start"},a=v["default"].renderText(this.paper,r,e.labelText,o);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,r=t.top+(this._legendItemHeight-this._checkBoxHeight)/2,o=this._checkBoxWidth/3,a=this._checkBoxWidth/5.7,u=A["default"].oneLineTrim(s,.25*this._checkBoxWidth+n,.5*this._checkBoxHeight+r,a,a,o,o),l=this.paper.set(),h=this.paper.rect(n,r,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?C:1}):(n=this.paper.path(y["default"].LEGEND_LINE_ICON_PATH),n.attr({stroke:e.legendColor,"stroke-width":2,"stroke-opacity":e.isUnselected?C: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,g["default"])(i)?e.attr(n,1):(0,g["default"])(i)||((0,d["default"])(t)&&i!==t?e.attr(n,C):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:T["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"]=P},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(144),o=n(r),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 r=(e-t)/20;return i.max=e+r+n,e/6>t?i.min=n:i.min=t-r+n,i},makeTickPixelPositions:function(t,e,i,n){var r=[];return i=i||0,e>0&&(r=(0,o["default"])(0,e).map(function(n){var r=0===n?0:n/(e-1);return r*t+i}),r[r.length-1]-=1),n&&r.push(n),r},makeLabelsFromLimit:function(t,e){var i=l.findMultipleNum(e),n=Math.round(t.min*i),r=Math.round(t.max*i),a=(0,o["default"])(n,r+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)}),r=s["default"].max(n);return Math.pow(10,r)},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},g=function(t,e){var i=l.findMultipleNum(t,e);return t*i*(e*i)/(i*i)},m=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=g,l.divide=m,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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,r=!1,o=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){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}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),g=n(f),m=360,y=270,_=2.5,v=function(){function t(){r(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,r=t.theme,a=t.labels,s=d["default"].isHorizontalLegend(i),u=o(a,1),h=u[0],p=a[a.length-1],f=c["default"].getRenderedLabelsMaxWidth([h,p]),g=c["default"].getRenderedLabelHeight(h,r),m=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=r,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+g+2*l["default"].MAP_LEGEND_LABEL_PADDING:d["default"].isLegendAlignBottom(i)?(y.top+=this._calculateHorizontalLegendTooltipHeight(a,r)+l["default"].MAP_LEGEND_PADDING_BTW_GRAPH_AND_WEDGE,m?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,r),n.push(this.wedge),this.gradientBar=_},t.prototype.renderTickLabels=function(t,e,i,n,r){var a=this,u=this.theme,h={"font-size":u.fontSize,"font-family":u.fontFamily,"font-weight":u.fontWeight,fill:"#000"},p=o(i,1),f=p[0],g=i[i.length-1],m=c["default"].getRenderedLabelsMaxWidth([f,g]),y=c["default"].getRenderedLabelHeight(f,u);i.forEach(function(i,o){var u=e.step*o,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+m):h["text-anchor"]="start"),r.push(s["default"].renderText(t,c,i,h))},this)},t.prototype._renderGradientBar=function(t,e,i,n){var r=void 0,o=void 0,a=void 0;n?(r=e.dimension.width,o=l["default"].MAP_LEGEND_GRAPH_SIZE,a=m,this._makeWedghPath=this._makeHorizontalWedgePath):(r=l["default"].MAP_LEGEND_GRAPH_SIZE,o=e.dimension.height,a=y,this._makeWedghPath=this._makeVerticalWedgePath);var u={left:e.position.left,top:e.position.top,width:r,height:o};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,r=l["default"].MAP_LEGEND_TOOLTIP_HORIZONTAL_PADDING,o=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+o,n[14]=n[17]=t-s/2-o,n[20]=t-_,i?n[10]=n[13]=n[4]+a+2*r:n[10]=n[13]=n[4]-a-2*r,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,r=l["default"].MAP_LEGEND_TOOLTIP_VERTICAL_PADDING,o=e.width,a=e.height;return i[1]=t,i[4]=t+_,i[7]=i[10]=t+o/2+n,i[13]=i[16]=t-o/2-n,i[19]=t-_,this.isTopLegend?i[11]=i[14]=i[5]+a+2*r:i[11]=i[14]=i[5]-a-2*r,i},t.prototype.showWedge=function(t,e){var i=this.theme,n=s["default"].getRenderedTextSize(e,i.fontSize,i.fontFamily),r=this.isHorizontal?this.layout.dimension.width:this.layout.dimension.height,o=this._makeWedghPath(r*t,n);this.wedge.attr({path:o,opacity:1,fill:this.colorSpectrum.getColor(t)});var a=this.wedge.getBBox(),u=g["default"].sum([a.y,l["default"].MAP_LEGEND_TOOLTIP_VERTICAL_PADDING,n.height/2]),h=g["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),r=o(n,2);this.locationURL=r[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 g["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 g["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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(143),a=n(o),s=function(){function t(){r(this,t)}return t.prototype.render=function(t,e,i,n,r){var o=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:o,top:h},l,{fill:"none",opacity:1,stroke:"#888","stroke-width":1});s.push(c),s.push(a["default"].renderText(t,{left:o,top:h-l-5},r[u]))}),s},t}();e["default"]=s},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(143),a=n(o),s=i(154),u=n(s),l=function(){function t(){r(this,t)}return t.prototype.render=function(t){var e=t.paper,i=t.titleText,n=t.offset,r=t.theme,o=t.align,s=void 0===o?u["default"].TITLE_ALIGN_LEFT:o,l=t.chartTitleAreaWidth,h=r.fontSize,c=r.fontFamily,p=a["default"].getRenderedTextSize(i,h,c),d=e.set(),f=this.getTitlePosition(p,s,l,n),g={left:"start",right:"end",center:"middle"};return d.push(a["default"].renderText(e,f,i,{"font-family":r.fontFamily,"font-size":r.fontSize,"font-weight":r.fontWeight,fill:r.color,"text-anchor":g[s]})),d},t.prototype.getTitlePosition=function(t,e,i,n){var r=void 0;r=e===u["default"].TITLE_ALIGN_CENTER?i/2:e===u["default"].TITLE_ALIGN_RIGHT?i:u["default"].CHART_PADDING;var o={left:r,top:u["default"].CHART_PADDING+t.height/2};return n&&(n.x?o.left+=n.x:n.y&&(o.top+=n.y)),o},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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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(){r(this,t),this.ticks=[]}return t.prototype.renderBackground=function(t,e,i,n){var r=n&&n.background||{},o=r.color,a=void 0===o?"#fff":o,s=r.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,r=i.fontFamily,o=i.fontSize,a=i.fontWeight,s=i.color,u=this.getRenderTitleAnchor(n),h={"dominant-baseline":"auto","font-family":r,"font-size":o,"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,r=t.theme,o=t.isVertical,a=t.isCenter,s={"dominant-baseline":"central","font-family":r.fontFamily,"font-size":r.fontSize,"font-weight":r.fontWeight,fill:r.color};t.isPositionRight?s["text-anchor"]="end":o&&!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,r=t.theme,o=l["default"].renderText(n,e,i,{"dominant-baseline":"central","font-family":r.fontFamily,"font-size":r.fontSize,"font-weight":r.fontWeight,fill:r.color,"text-anchor":"end",transform:"r"+-t.degree+","+e.left+","+e.top});o.node.style.userSelect="none",o.node.style.cursor="arrow",t.set.push(o),this.ticks.push(o)},t.prototype.renderTicks=function(t){var e=this,i=t.paper,n=t.positions,r=t.additionalSize,o=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,g=function(t){var e=o?"height":"width";return t>h.dimension[e]+f},m=void 0;n.forEach(function(n){var s="M";n+=r,g(n)||(o?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)||(m=i.path(s).attr({stroke:l,opacity:.5}),t.set.push(m),e.ticks.push(m)))})},t.prototype.renderStandardLine=function(t){var e=t.areaSize,i=t.layout,n=i.position,r=i.dimension,o=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+r.width;if(a){var f=p;d+=t.seriesDimension.width*h,c+=d+","+f;var g=p+e;c+="V"+g}else{c+=s,p-=t.seriesDimension.height*h,c+=","+p+"H";var m=s+e;c+=m}t.set.push(o.path(c).attr({"stroke-width":1,opacity:.5}))},t.prototype.renderTickLine=function(t){var e=t.areaSize,i=t.paper,n=t.layout,r=n.position,o=r.top,a=r.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,g=t.seriesDimension,m=e,y=s.height+o,_=a+s.width,v="M",x=void 0,T=void 0;c?(v+=a+","+o,v+="V"+y):d?(x=o,u&&(_+=g.width/2),v+=_+","+x,p?(v+="V"+y,v+="M"+a+","+x,v+="V"+y):(T=o+m,v+="V"+T)):v=this._makeNormalTickPath(v,{isNotDividedXAxis:l,baseTop:o,baseLeft:a,additionalSize:h,isNegativeStandard:u,seriesDimension:g,lineSize:m}),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,r=e.theme,u=e.additionalWidth,l=e.otherSideDimension,h=e.areaSize,c=e.layout,d=o(n,r),f=a(n,r),g=c.dimension.height,m=c.dimension.width,y=c.position,_=y.top,v=y.left,x=v+u,T=f-l.width,b={top:_+g-d/2,left:x+(T<0?0:T)};return i.isVertical?i.isCenter?(b.top+=d/2,b.left=v+m/2):i.isDiverging||(b.top=_-d/2-p):i.isVertical||(i.isDiverging&&i.isYAxisCenter?b.left=v+h/2:i.isDiverging&&!i.isYAxisCenter?b.left=v+m/2:i.isXAxisTitleLeft?b.left=c.position.left:b.left=c.position.left+m),i.isPositionRight&&(b.left+=m),i.isCenter||s(b,e.offset),b},t}();e["default"]=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,r=!1,o=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){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}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(){r(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=o(e,1),n=o(i[0],1),r=n[0],a=this.theme.lineColor,u=1;u<e.length;u+=1){var l=o(e[u],1),h=l[0],c=r.top-h.top;t.push(s["default"].renderCircle(this.paper,r,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,r={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({},r,{"text-anchor":i.position.anchor,fill:"#333333"}),o=s["default"].renderText(e,i.position,i.text,n);o.node.style.userSelect="none",o.node.style.cursor="default",t.push(o)}),n.step.forEach(function(i){var n=s["default"].renderText(e,i.position,i.text,r);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 r=s["default"].renderLine(n,t.join(" "),{color:e,strokeWidth:1});return r.node.setAttribute("stroke-opacity",.05),i.push(r),r})},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=[],r=!1;return e=e||"top",t.forEach(function(t){var o=r&&!i?"M":"L";t?(n.push([o,t.left,t[e]]),r&&(r=!1)):r=!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 r(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=I["default"].deepCopy(e),"combo"!==n){var r=e.series;e.series={},e.series[n]=r}i=i?I["default"].deepCopy(i):{},i.chartType=n,i.theme=i.theme||D["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 o=i.series&&i.series.colorByPoint,a=P["default"].get(i.theme,n,e.series,o),s=S["default"].get(i.chartType,e,a,i);return s.render(t),s.animateChart(),s}function o(t,e,i){return r(t,e,i,D["default"].CHART_TYPE_BAR)}function a(t,e,i){return r(t,e,i,D["default"].CHART_TYPE_COLUMN)}function s(t,e,i){return r(t,e,i,D["default"].CHART_TYPE_LINE)}function u(t,e,i){return r(t,e,i,D["default"].CHART_TYPE_AREA)}function l(t,e,i){return r(t,e,i,D["default"].CHART_TYPE_BUBBLE)}function h(t,e,i){return r(t,e,i,D["default"].CHART_TYPE_SCATTER)}function c(t,e,i){return r(t,e,i,D["default"].CHART_TYPE_HEATMAP)}function p(t,e,i){return r(t,e,i,D["default"].CHART_TYPE_TREEMAP)}function d(t,e,i){return r(t,e,i,D["default"].CHART_TYPE_COMBO)}function f(t,e,i){return r(t,e,i,D["default"].CHART_TYPE_PIE)}function g(t,e,i){return r(t,e,i,D["default"].CHART_TYPE_MAP)}function m(t,e,i){return r(t,e,i,D["default"].CHART_TYPE_RADIAL)}function y(t,e,i){return r(t,e,i,D["default"].CHART_TYPE_BOXPLOT)}function _(t,e,i){return r(t,e,i,D["default"].CHART_TYPE_BULLET)}function v(t,e){P["default"].register(t,e)}function x(t,e){O["default"].register(t,e)}function T(t,e,i){L["default"].register(t,e),G["default"].addRendererType(t,i)}var b=i(156),A=n(b),E=i(154),D=n(E),C=i(180),S=n(C),w=i(182),L=n(w),M=i(183),P=n(M),k=i(185),O=n(k),R=i(186),I=n(R),B=i(188),N=n(B),F=i(191),G=n(F);i(192),i(193),i(306),t.exports={barChart:o,columnChart:a,lineChart:s,areaChart:u,bubbleChart:l,scatterChart:h,heatmapChart:c,treemapChart:p,comboChart:d,pieChart:f,mapChart:g,radialChart:m,boxplotChart:y,bulletChart:_,registerTheme:v,registerMap:x,registerPlugin:T}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(154),o=n(r),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[o["default"].CHART_TYPE_COLUMN]&&n[o["default"].CHART_TYPE_LINE]?i=o["default"].CHART_TYPE_COLUMN_LINE_COMBO:n[o["default"].CHART_TYPE_LINE]&&n[o["default"].CHART_TYPE_SCATTER]?i=o["default"].CHART_TYPE_LINE_SCATTER_COMBO:n[o["default"].CHART_TYPE_AREA]&&n[o["default"].CHART_TYPE_LINE]?i=o["default"].CHART_TYPE_LINE_AREA_COMBO:n[o["default"].CHART_TYPE_PIE]&&(i=o["default"].CHART_TYPE_PIE_DONUT_COMBO)}else i=t;return i},get:function(t,e,i,n){var r=this._findKey(t,e),o=h[r];if(!o)throw new Error("Not exist "+t+" chart.");return new o(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 r=function(){function t(t,e){var i=[],n=!0,r=!1,o=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){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}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")}}(),o=i(138),a=n(o),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 r=n.filter(function(t){return!!t});return r.length<n.length&&r.push(h["default"].DEFAULT_STACK),r},_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,r){i[e.findChartType(t.seriesAlias,r)]=!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=[],o=r(i,2),a=o[0],s=o[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 o=r(n,2),a=o[0],s=o[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=r(t,2),o=n[0],a=n[1];e[o]?e[o].length&&(i.series[o]=a.filter(function(t,i){return e[o][i]})):i.series[o]=[]}),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 r=i(154),o=n(r),a={};e["default"]={get:function(t,e){var i=a[t||o["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 r=new n;return r},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 r=function(){function t(t,e){var i=[],n=!0,r=!1,o=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){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}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")}}(),o=i(140),a=n(o),s=i(146),u=n(s),l=i(138),h=n(l),c=i(139),p=n(c),d=i(154),f=n(d),g=i(164),m=n(g),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 m["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 o=r(n,2),s=o[0],u=o[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 r=this,o={};return e=e||{},t.forEach(function(t){var a=e[t]||r._pickValidTheme(e,n);Object.keys(a).length?(o[t]=JSON.parse(JSON.stringify(_["default"][n])),r._overwriteTheme(a,o[t])):o[t]=JSON.parse(JSON.stringify(i))}),o},_makeEachSeriesColors:function(t,e,i){for(var n=[],r=t.length,o=i||0,a=0;a<e;a+=1)n.push(t[o]),o+=1,o>=r&&(o=0);return n},_setSeriesColors:function(t,e,i,n,r){var o=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=o._getSeriesThemeColorCount(n[t],r),e[t].colors=o._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,r){var o=void 0;return t!==f["default"].DEFAULT_THEME_NAME?(o=JSON.parse(JSON.stringify(_["default"])),this._overwriteTheme(e,o)):o=JSON.parse(JSON.stringify(e)),o.yAxis=this._createComponentThemeWithSeriesName(i,e.yAxis,o.yAxis,"yAxis"),o.series=this._createComponentThemeWithSeriesName(i,e.series,o.series,"series"),this._setSeriesColors(i,o.series,e.series,n,r),o},_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 r=v[t];if(!r)throw new Error("Not exist "+t+" theme.");var o=this._pickSeriesNames(e,i),a=this._initTheme(t,r,o,i,n);return this._inheritThemeFont(a,o),this._copySeriesColorThemeToOther(a),a}}},function(t,e){"use strict";e.__esModule=!0;var i="#000000",n="#ffffff",r="lighter",o="Arial",a=e.DEFAULT_LEGEND_LABEL_FONTCOLOR="#333",s="",u={tickColor:i,title:{fontSize:11,fontFamily:o,color:"#bbbbbb",fontWeight:"bold"},label:{fontSize:11,fontFamily:o,color:"#333",fontWeight:"normal"}};e["default"]={chart:{background:{color:n,opacity:1},fontFamily:o},title:{fontSize:18,fontFamily:o,color:i,fontWeight:r},yAxis:u,xAxis:u,plot:{lineColor:"#000000",background:"#ffffff",label:{fontSize:11,fontFamily:o,color:"#888"}},series:{label:{fontSize:11,fontFamily:o,color:i,fontWeight:r},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:o,color:a,fontWeight:r}},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 r=function(){function t(t,e){var i=[],n=!0,r=!1,o=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){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}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")}}(),o=i(140),a=n(o),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=r(t,2),n=i[0],o=i[1];e[n]=f(o)})):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 r(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 o(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",r=(0,p["default"])(t.getElementsByTagName(n)),o=(0,h["default"])(r,"innerText");i.push(o)}),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=r(o(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 r(t,function(t){i.push(t[e])}),i}var r=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=[],r(t,function(t){e.push(t)})}return e}var r=i(141);t.exports=n},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(155),a=n(o),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(){r(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)),r=window.setTimeout(function(){e(i+n)},n);return t=i+n,r}),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 r=i(154),o=n(r),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),g=n(f),m=i(288),y=n(m),_=i(290),v=n(_),x=i(291),T=n(x),b=i(292),A=n(b),E=i(293),D=n(E),C=i(294),S=n(C),w=i(295),L=n(w),M=i(296),P=n(M),k=i(299),O=n(k),R=i(300),I=n(R),B=i(303),N=n(B),F=i(304),G=n(F),H=i(305),V=n(H);s["default"].register(o["default"].CHART_TYPE_BAR,l["default"]),s["default"].register(o["default"].CHART_TYPE_COLUMN,c["default"]),s["default"].register(o["default"].CHART_TYPE_LINE,d["default"]),s["default"].register(o["default"].CHART_TYPE_AREA,g["default"]),s["default"].register(o["default"].CHART_TYPE_COLUMN_LINE_COMBO,y["default"]),s["default"].register(o["default"].CHART_TYPE_LINE_SCATTER_COMBO,v["default"]),s["default"].register(o["default"].CHART_TYPE_LINE_AREA_COMBO,T["default"]),s["default"].register(o["default"].CHART_TYPE_PIE_DONUT_COMBO,A["default"]),s["default"].register(o["default"].CHART_TYPE_PIE,D["default"]),s["default"].register(o["default"].CHART_TYPE_BUBBLE,S["default"]),s["default"].register(o["default"].CHART_TYPE_SCATTER,L["default"]),s["default"].register(o["default"].CHART_TYPE_HEATMAP,P["default"]),s["default"].register(o["default"].CHART_TYPE_TREEMAP,O["default"]),s["default"].register(o["default"].CHART_TYPE_MAP,I["default"]),s["default"].register(o["default"].CHART_TYPE_RADIAL,N["default"]),s["default"].register(o["default"].CHART_TYPE_BOXPLOT,G["default"]),s["default"].register(o["default"].CHART_TYPE_BULLET,V["default"])},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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),g=function(t){function e(i,n,a){r(this,e),p["default"].updateRawSeriesDataByOptions(i,a.series);var s=o(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,r=i[n]||i,o=r.stack;this.dataProcessor.addDataRatios(t[n],o,n)},e}(u["default"]);e["default"]=g},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(140),a=n(o),s=i(146),u=n(s),l=i(156),h=n(l),c=i(139),p=n(c),d=i(196),f=n(d),g=i(198),m=n(g),y=i(154),_=n(y),v=i(200),x=n(v),T=i(260),b=n(T),A=i(181),E=n(A),D=i(155),C=n(D),S=i(148),w=n(S),L=i(186),M=n(L),P=i(272),k=n(P),O=i(183),R=n(O),I=i(164),B=n(I),N="UA-129983528-1",F=function(){function t(e){r(this,t),this.theme=e.theme,e.seriesTypes&&(this.seriesTypes=e.seriesTypes),e.chartTypes&&(this.chartTypes=e.chartTypes),this.originalOptions=M["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 m["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=M["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||b["default"],i=new e(t.rawData,this.chartType,t.options,this.seriesTypes);return i},t.prototype._createComponentManager=function(){return new x["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 k["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=C["default"].create("DIV","tui-chart "+this.className),i=this.componentManager,n=this.dataProcessor,r=n.getLegendVisibility(),o=E["default"].filterCheckedRawData(n.rawData,r),a=i.drawingToolPicker.getPaper(e,_["default"].COMPONENT_TYPE_RAPHAEL);this.dataProcessor.initData(o),a.changeChartBackgroundColor(this.theme.chart.background.color),a.changeChartBackgroundOpacity(this.theme.chart.background.opacity),w["default"].renderFontFamily(e,this.theme.chart.fontFamily),C["default"].append(t,e);var s=this.readyForRender();w["default"].renderDimension(e,s.dimensionMap.chart),i.render("render",s,{checkedLegends:r},e),this.chartContainer=e,this.paper=a},t.prototype.protectedRerender=function(t,e){var i=this.dataProcessor;e||(e=E["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 r=i[n],o=t[n];return e[n]=r.map(function(t,e){return t.visible=o[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,r=this.options,o=r.chartType,a=r.theme;n.initData(i,!0);var s=R["default"].get(a,o,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=M["default"].deepCopy(t),i=this.originalOptions,n=i.chartType,r=i.series;if("combo"!==n&&(0,a["default"])(e.series)){var o=e.series;e.series={},e.series[n]=o}return E["default"].updateRawSeriesDataByOptions(e,r),"boxplot"===n&&E["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 r=this.readyForRender(),o=r.dimensionMap.chart;w["default"].renderDimension(this.chartContainer,o),this.paper.resizeBackground(o.width,o.height),this.paper.setSize(o.width,o.height),this.componentManager.render("resize",r,{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,r=-1,o=0;o<n;o+=1)if(i[o]===e){r=o;break}return r},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,r=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,r._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 r(t,e){var i="https://www.google-analytics.com/collect",r=location.hostname,s="event",u="use",l="TOAST UI "+t+" for "+r+": Statistics",h=window.localStorage.getItem(l);(o(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:r,dp:r,dh:t,el:t,ec:u})},1e3)))}var o=i(145),a=i(197),s=6048e5;t.exports=r},function(t,e,i){"use strict";function n(t,e){var i=document.createElement("img"),n="";return r(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 r=i(142);t.exports=n},function(t,e,i){"use strict";function n(){this.events=null,this.contexts=null}var r=i(199),o=i(146),a=i(156),s=i(138),u=i(140),l=i(187),h=i(139),c=/\s+/g;n.mixin=function(t){r(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;o(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;o(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),r.off(t,n,i)}var r=this;return s(t)?(i=e,void h(t,function(t,e){r.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 r=t===n.handler,o=e===n.context,a=r&&o;return a&&i._forgetContext(n.context),a}},n.prototype._offByEventName=function(t,e){var i=this,n=l(e),r=i._matchHandler(e);t=t.split(c),h(t,function(t){var e=i._safeEvent(t);n?i._spliceMatches(e,r):(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,r;if(!this.hasListener(t))return!0;for(e=this._safeEvent(t),i=Array.prototype.slice.call(arguments,1),n=0;e[n];){if(r=e[n],r.handler.apply(r.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,r,o,a=Object.prototype.hasOwnProperty;for(r=1,o=arguments.length;r<o;r+=1){i=arguments[r];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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,r=!1,o=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){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}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),g=n(f),m=i(154),y=n(m),_=i(155),v=n(_),x=i(201),T=n(x),b=i(202),A=n(b),E=i(203),D=n(E),C=i(204),S=n(C),w=i(206),L=n(w),M=i(191),P=n(M),k=i(212),O=n(k),R=i(217),I=n(R),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),q=n(Z),K=i(243),J=n(K),Q=i(244),$=n(Q),tt=i(246),et=n(tt),it=i(247),nt=n(it),rt=i(248),ot=n(rt),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),gt=n(ft),mt=i(256),yt=n(mt),_t=i(257),vt=n(_t),xt=i(258),Tt=n(xt),bt=i(143),At=n(bt),Et={axis:T["default"],plot:A["default"],radialPlot:S["default"],legend:O["default"],spectrumLegend:I["default"],circleLegend:N["default"],tooltip:G["default"],groupTooltip:V["default"],mapChartTooltip:z["default"],mapChartEventDetector:Y["default"],mouseEventDetector:X["default"],barSeries:q["default"],columnSeries:J["default"],lineSeries:$["default"],radialSeries:et["default"],areaSeries:nt["default"],bubbleSeries:ot["default"],scatterSeries:st["default"],mapSeries:lt["default"],pieSeries:ct["default"],heatmapSeries:dt["default"],treemapSeries:gt["default"],boxplotSeries:yt["default"],bulletSeries:vt["default"],zoom:Tt["default"],chartExportMenu:L["default"],title:D["default"]},Dt=function(){function t(e){r(this,t);var i=e.options.chart,n=(0,g["default"])(i,"width")||y["default"].CHART_DEFAULT_WIDTH,o=(0,g["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 P["default"],this.drawingToolPicker.initDimension({width:n,height:o}),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,r=Et[e],o=r.componentType;i.name=t,i.chartTheme=this.theme,i.chartOptions=this.options,i.seriesTypes=this.seriesTypes;var a=this._getOptionKey(o,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=r(i);s&&(s.componentName=t,s.componentType=o,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,r=e._getOptionKey(i,n);t.presetForChangeData(e._makeTheme(r,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,r){var o=Object.assign({paper:i},r);return n&&(Object.assign(o,n),o.layout={dimension:o.dimensionMap[t]||o.dimensionMap[e],position:o.positionMap[t]||o.positionMap[e]}),o},t.prototype.render=function(t,e,i,n){var r=this,o=this.components.map(function(o){var a=null;if(o[t]){var s=o.componentName,u=o.componentType,l=r.drawingToolPicker.getPaper(n,o.drawingType),h=r._makeDataForRendering(s,u,l,e,i),c=o[t](h);c&&!c.paper&&(a=c)}return a});n&&v["default"].append(n,o)},t.prototype.where=function(t){return this.components.filter(function(e){var i=!0;return Object.entries(t).forEach(function(t){var n=o(t,2),r=n[0],a=n[1];return e[r]!==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"]=Dt},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t){var e=t.chartOptions,i=t.name,n=t.theme,r=t.seriesTypes,o=e.chartType,a=e.series;return t.isYAxis="yAxis"===i||"rightYAxis"===i,t.shifting=a.shifting,"combo"===o?t.isYAxis?t.theme=n[r[0]]:"rightYAxis"===i&&(t.componentType="yAxis",t.theme=n[r[1]],t.index=1):t.isYAxis?t.theme=n[o]:t.theme=n,new A(t)}e.__esModule=!0,e["default"]=o;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),g=n(f),m=i(148),y=n(m),_=i(143),v=n(_),x=l["default"].AXIS_EDGE_RATIO,T=l["default"].X_AXIS_LABEL_PADDING,b=l["default"].COMPONENT_TYPE_RAPHAEL,A=function(){function t(e){r(this,t);var i=e.dataProcessor,n=e.options,o=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:o.chart.background}),this.isLabelAxis=!1,this.isYAxis=u,this.shifting=l,this.data={},this.layout=null,this.dimensionMap=null,this.axisDataMap=null,this.graphRenderer=g["default"].get(b,"axis"),this.drawingType=b,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,r=this.isYAxis&&this.data.aligned,o=this.limitMap[this.dataProcessor.chartType],a=!this.data.limit&&o&&o.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),r||this._renderTickArea(t,e,n),a&&s&&!l&&this._renderNegativeStandardsLine(t,n,this.dimensionMap.series,o)},t.prototype._renderDividedAxis=function(t){var e=t.width,i=this.data,n=i.tickCount,r=i.labels,o=Math.round(e/2),a=e-o-1,s=parseInt(n/2,10)+1,u=r.slice(0,s),l=r.slice(s-1,n),h=o/s,c=o+this.dimensionMap.yAxis.width-1;this.paperAdditionalWidth=h,this._renderChildContainers(o,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,r=n.positionRatio,o=n.tickCount,a=n.labels,s=this.isYAxis,u=s?i:e,l=0;r&&(l=u*r),this._renderChildContainers(u,o,a,l)},t.prototype._renderAxisArea=function(){var t=this.layout.dimension,e=this.data.isLabelAxis,i=this.options,n=i.divided,r=i.isCenter,o=t.width;this.isLabelAxis=e,n?(this.containerWidth=o+this.dimensionMap.yAxis.width,this._renderDividedAxis(t),o=this.containerWidth):(o+=r?1:0,this._renderNotDividedAxis(t))},t.prototype._setDataForRendering=function(t){var e=t.layout,i=t.dimensionMap,n=t.limitMap,r=t.axisDataMap;
this.layout=e,this.dimensionMap=i,this.limitMap=n,this.data=r[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,r=this.dataProcessor.getOption("xAxis"),o=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:o&&"center"===o.align,isXAxisTitleLeft:r&&r.title&&"left"===r.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 r=this.theme.tickColor,o=this.data,a=o.remainLastBlockInterval,s=o.sizeRatio,u=void 0===s?1:s,l=o.tickCount,h=o.isPositionRight,c=a?t:0,p=this.isYAxis,f=this.data.options,g=f.isCenter,m=f.divided,y=d["default"].makeTickPixelPositions(t*u,e,0,c),_=this.paperAdditionalHeight+1,v=this.paperAdditionalWidth,x=c?l+1:l;y.length=x,this.graphRenderer.renderTicks({paper:this.paper,layout:this.layout,positions:y,isVertical:p,isCenter:g,isDivided:m,additionalSize:n,additionalWidth:v,additionalHeight:_,otherSideDimension:this._getOtherSideDimension(),isPositionRight:h,tickColor:r,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 r=this.data,o=r.sizeRatio,a=void 0===o?1:o,s=r.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 r=this,o=this.graphRenderer,a=this.isYAxis,s=this.theme.label,u=this.data.degree,l=i/2,h=i/x,c=this.layout.position,p=c.top,d=c.left,f=p+T,g=d,m=this.options.labelMargin||0;t.forEach(function(t,c){var p=t+(n||0),d={};a?(d.top=p+l,d.left=i+m):(d.top=f+m,d.left=g+p+h),o.renderRotatedLabel({degree:u,labelText:e[c],paper:r.paper,positionTopAndLeft:d,set:r.axisSet,theme:s})},this)},t.prototype._renderNormalLabels=function(t,e,i,n){var r=this,o=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,g=void 0===f?0:f,m=d.pointOnColumn,_=d.isCenter,x=d.maxWidth,T=c["default"].isLineTypeChart(u.chartType,u.seriesTypes),b=T&&m,A=c["default"].isAutoTickInterval(this.options.tickInterval);t.forEach(function(u,c){var d=u+n,f=i/2,m=r._isOverLapXAxisLabel(e[c],u,t[c+1]),E={};if(!(d<0||!a&&A&&m)){E=a?r._getYAxisLabelPosition(l,{labelPosition:d,isCategoryLabel:s,halfLabelDistance:f,isPositionRight:h}):r._getXAxisLabelPosition(l,{labelMargin:g,labelHeight:y["default"].getRenderedLabelsMaxHeight(e,p),labelPosition:d,isCategoryLabel:s,isLineTypeChart:T,isPointOnColumn:b,halfLabelDistance:f}),E.top=Math.round(E.top),E.left=Math.round(E.left);var D=e[c];x&&(D=v["default"].getEllipsisText(e[c],x,p)),o.renderLabel({isPositionRight:h,isVertical:a,isCenter:_,labelSize:i,labelText:D,paper:r.paper,positionTopAndLeft:E,set:r.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,T,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 r=this.options,o=r.rotateLabel,a=r.prefix,s=r.suffix,u=this.data,l=u.degree,h=u.multilineLabels,c=!this.isYAxis&&this.isLabelAxis&&o===!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}();o.componentType="axis",o.Axis=A},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){return t.start-e.start}function a(t){var e=t.seriesTypes,i=t.chartOptions,n=i.chartType,r=i.xAxis.type;return t.chartType=n,t.chartTypes=e,t.xAxisTypeOption=r,new b(t)}e.__esModule=!0;var s=function(){function t(t,e){var i=[],n=!0,r=!1,o=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){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}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),g=n(f),m=i(154),y=n(m),_=i(164),v=n(_),x=i(173),T=n(x),b=function(){function t(e){r(this,t),this.className="tui-chart-plot-area",this.dataProcessor=e.dataProcessor,this.options=e.options||{},this.options.showLine=!!(0,g["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,r=i.dimension.height,o="M"+t+","+n+"V"+(n+r),a=this.paper.path(o);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,r=n.position,o=n.dimension,a=o.width-t+r.left,s=e<0?a:e,u=this.paper.rect(t,r.top,s,o.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,r=t.distance,o=(i-n)/r,a=o*e;return 1===o&&(a-=1),a<0&&(a=null),a},t.prototype._calculateXAxisLabelDistance=function(t,e){var i=e.sizeRatio,n=void 0===i?1:i,r=e.tickCount,o=e.remainLastBlockInterval,a=o?t:0,s=T["default"].makeTickPixelPositions(t*n,r,0,a);return s[1]-s[0]},t.prototype._createOptionalLinePositionWhenLabelAxis=function(t,e,i){var n=this.dataProcessor,r=v["default"].isLineTypeChart(n.chartType,n.seriesTypes),o=r&&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=o?h:h-1;l=0===a?0:a/c,u=l*t,o&&(u+=s)}return 1===l&&(u-=1),u},t.prototype._createOptionalLinePositionMap=function(t,e,i){var n=this.dataProcessor.getCategories(),r=n.length,o=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=r?n[0]:o[0];s=this._isBeforeVisibleValue(a[0],l)?0:-1}if((0,d["default"])(u)||u>i){var h=r?n[r-1]:o[o.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),r=i.findAbsoluteCategoryIndex(e);return n>=0&&n<r},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),r=i.findAbsoluteCategoryIndex(e);return n>=0&&n>r},t.prototype._renderOptionalLine=function(t,e,i,n){var r=this._createOptionalLinePositionMap(n,t,e),o=void 0;return r.start>=0&&r.start<=e&&(i.width=1,i.color=n.color||"transparent",i.opacity=n.opacity,o=this._renderLine(r.start+this.layout.position.left,i)),o},t.prototype._makeOptionalBand=function(t,e,i,n){var r=this,a=n.range;a&&a.length&&this._makeRangeTo2DArray(n);var s=n.range.map(function(i){return r._createOptionalLinePositionMap({range:i},t,e)});return n.mergeOverlappingRanges&&(s.sort(o),s=this._mergeOverlappingPositionMaps(s)),s.map(function(t){var o=t.start>=0&&t.start<=e,a=void 0;if(o&&t.end>=0){i.color=n.color||"transparent",i.opacity=n.opacity;var s=t.end-t.start;a=r._renderBand(t.start+r.layout.position.left,s,i)}return a},this)},t.prototype._makeOptionalLines=function(t,e){var i=e.width,n=e.height,r=this.axisDataMap.xAxis,o=this._makeVerticalLineTemplateParams({height:n+"px"}),a=this._renderOptionalLine.bind(this,r,i,o);return t.map(a)},t.prototype._makeOptionalBands=function(t,e){var i=e.width,n=e.height,r=this.axisDataMap.xAxis,o=this._makeVerticalLineTemplateParams({height:n+"px"}),a=this._makeOptionalBand.bind(this,r,i,o);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),r=this.layout,o=this.theme.lineColor,a=r.position,s=a.top,u=a.left;n.forEach(function(t){var i="M"+(t+u)+","+s+"V"+(s+r.dimension.height),n=e.paper.path(i);n.attr({stroke:o,"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),r=this.layout,o=this.theme.lineColor,a=r.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+r.dimension.width),a=e.paper.path(n);a.attr({stroke:o,"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=T["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),r=t-n,o=T["default"].makeTickPixelPositions(n,e),a=T["default"].makeTickPixelPositions(r,e,n+i);return o.pop(),a.shift(),o.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=T["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,r){e._animateItemForAddingData(i,t,function(t){n[r].range.splice(t,1)})}))},t.prototype._animateItemForAddingData=function(t,e,i){var n=this;t.forEach(function(t,r){var o=t.getBBox();o.x-e.tickSize<n.layout.position.left?t.animate({transform:"T-"+e.tickSize+",0",opacity:0},300,"linear",function(){i(r),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 r=i,o=s(r,1);n=o[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=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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"]=o;var a=i(154),s=n(a),u=i(182),l=n(u),h=function(){function t(e){r(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}();o.componentType="title",o.Title=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t){for(var e=t.width,i=t.height,n=t.centerX,r=t.centerY,o=t.angleStepCount,a=t.stepCount,s=Math.min(e,i)/2,u=360/o,h=[],c=s/(a-1),p=0;p<a;p+=1){for(var d=[],f=r+c*p,g=0;g<o;g+=1){var m=l["default"].rotatePointAroundOrigin(n,r,n,f,u*g);d.push({left:m.x,top:i-m.y})}d.push(d[0]),h[p]=d}return h}function a(t){for(var e=t.width,i=t.height,n=t.centerX,r=t.centerY,o=t.angleStepCount,a=Math.min(i,e)/2,s=360/o,u=[],h=r+a,c=0;c<o;c+=1){var p=360-s*c,d=l["default"].rotatePointAroundOrigin(n,r,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 x(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),g=n(f),m=d["default"].COMPONENT_TYPE_RAPHAEL,y=d["default"].RADIAL_PLOT_PADDING,_=d["default"].RADIAL_MARGIN_FOR_CATEGORY,v=d["default"].RADIAL_CATEGORY_PADDING,x=function(){function t(e){r(this,t),this.className="tui-chart-plot-area",this.options=Object.assign({type:"spiderweb"},e.options),this.theme=e.theme||{},this.graphRenderer=g["default"].get(m,"radialPlot"),this.drawingType=m}return t.prototype._renderPlotArea=function(t,e,i,n){var r={paper:t,layout:e,plotPositions:i,labelData:n,theme:this.theme,options:this.options};return this.graphRenderer.render(r)},t.prototype._makePositions=function(t,e){var i=e.dimension,n=e.position,r=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,r]),h=u/2-y/2-_/2-a,p=t.yAxis.tickCount,d=t.xAxis.labels.length;return o({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,r=n.left,o=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,r]),h=u/2-y/2-v/2-o,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,r=t.yAxis.labels,o=this._makeCategoryPositions(t,e),a=[],s=[],u=0;u<n.length;u+=1)a.push({text:n[u],position:o[u]});for(var l=0;l<r.length-1;l+=1)s.push({text:r[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,r=this._makePositions(e,i),o=this._makeLabelData(e,i,r);this.plotSet=this._renderPlotArea(n,i,r,o)},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=x},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e,i,n,r){var o=r*(Math.PI/180),a=(i-t)*Math.cos(o)-(n-e)*Math.sin(o),s=(i-t)*Math.sin(o)+(n-e)*Math.cos(o);return a+=t,s+=e,{x:a,y:s}}function o(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=o(t,e/2),r=o(h["default"].ANGLE_90-t,i/2);return 2*(n+r)}function u(t,e,i){var n=a(t,e/2),r=a(h["default"].ANGLE_90-t,i/2);return 2*(n+r)}e.__esModule=!0;var l=i(154),h=n(l);e["default"]={rotatePointAroundOrigin:r,calculateAdjacent:o,calculateRotatedHeight:u,calculateRotatedWidth:s,calculateOpposite:a}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t){var e=t.options.visible,i=t.chartOptions.chart,n=void 0===i?{}:i,r=t.chartOptions.chartExportMenu,o=null;return n.title&&(t.chartTitle=n.title.text),r&&r.filename&&(t.exportFilename=r.filename),e&&(o=new C(t)),o}e.__esModule=!0,e["default"]=o;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),g=n(f),m=i(148),y=n(m),_=["xls","csv","png","jpeg"],v="menu-opened",x=s["default"].CLASS_NAME_CHART_EXPORT_MENU_BUTTON,T=s["default"].CLASS_NAME_CHART_EXPORT_MENU,b=s["default"].CLASS_NAME_CHART_EXPORT_MENU_HEAD,A=s["default"].CLASS_NAME_CHART_EXPORT_MENU_BODY,E=s["default"].CLASS_NAME_CHART_EXPORT_MENU_ITEM,D=s["default"].COMPONENT_TYPE_DOM,C=function(){function t(e){r(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=D,this.theme=e.theme||null}return t.prototype._createChartExportMenuButton=function(){var t=c["default"].create("div",x);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,r=l["default"].isImageExtension,o=l["default"].isImageDownloadAvailable,a=c["default"].create("ul",T),s=c["default"].create("li",b),u=c["default"].create("li",A),h=a.style,p=this.theme,d=p.borderWidth,f=p.borderRadius,g=p.backgroundColor,m=p.color,y=[];n&&(i||o)?y=_.map(function(t){var e=void 0;return(!r(t)&&i||r(t)&&o)&&(e=c["default"].create("li",E),e.id=t,e.innerHTML=t),e}):(h.width="200px",y[0]=c["default"].create("li",E),y[0].innerHTML="Browser does not support client-side download."),this.theme&&(d&&(h.borderWidth=d),f&&(h.borderRadius=f),g&&(h.backgroundColor=g),m&&(h.color=m)),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,E)){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,x)&&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 g["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}();o.componentType="chartExportMenu"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){return f["default"].any(_["default"].getExtensions(),function(e){return t===e})}function o(t){return f["default"].any(m["default"].getExtensions(),function(e){return t===e})}function a(t,e,i,n,a){var s=a&&a[e]?a[e]:{};r(e)?_["default"].downloadImage(t,e,n):o(e)&&m["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),g=i(208),m=n(g),y=i(210),_=n(y),v=u["default"].msie&&(10===u["default"].version||11===u["default"].version),x=!v||v&&document.createElement("canvas").getContext("2d").drawSvg,T=(0,h["default"])(document.createElement("a").download),b=window.Blob&&window.navigator.msSaveOrOpenBlob;e["default"]={exportChart:a,isDownloadSupported:T||b,isImageDownloadAvailable:x,isImageExtension:r,addExtension:function(t,e){var i=e&&(0,p["default"])(e),n=void 0,r=void 0;"data"===t?n=m["default"]:"image"===t&&(n=_["default"]),n&&i&&(r=n.getExtensions(),r.push(e))}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}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 a(t){var e=[],i=t.categories&&(0,x["default"])(t.categories.x),n=t.series&&(0,x["default"])(t.series.bullet),r=!1;if(t){var a=void 0;if(i?r=p(t):n?r=h(t):t.categories&&(a=t.categories),r)return r;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(o(i)))})})}return e}function s(t,e){for(var i=["",M["default"].BULLET_TYPE_ACTUAL],n=0;n<t;n+=1)i.push(M["default"].BULLET_TYPE_RANGE+n);for(var r=0;r<e;r+=1)i.push(M["default"].BULLET_TYPE_MARKER+r);return i}function u(t,e){for(var i=[],n=0;n<e;n+=1){var r="";if(t&&t[n]){var o=t[n].length>0?t[n][0]:"",a=t[n].length>1?t[n][1]:"";r=o+"~"+a}i.push(r)}return i}function l(t,e){for(var i=[],n=0;n<e;n+=1){var r=t&&t[n]?t[n]:"";i.push(r)}return i}function h(t){var e=[],i=c(t.series.bullet),n=i.maxRangeCount,r=i.maxMarkerCount;return e.push(s(n,r)),(0,E["default"])(t.series.bullet,function(t){var i=u(t.ranges,n),a=l(t.markers,r),s=[t.name,t.data].concat(o(i),o(a));e.push(s)}),e}function c(t){var e=0,i=0;return(0,E["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(o(t.categories.x))),(0,E["default"])(t.series,function(i){(0,E["default"])(i,function(i,n){var r=[t.categories.y[n]].concat(o(i));e.push(r)})}),e}function d(t){var e="<table>";return(0,E["default"])(t,function(t,i){var n=0===i?"th":"td";e+="<tr>",(0,E["default"])(t,function(t,r){var o=0!==i||0===r?' class="number"':"",a="<"+n+o+">"+t+"</"+n+">";e+=a}),e+="</tr>"}),e+="</table>"}function f(t){var e=k["default"].oneLineTrim(m,d(t));return e}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.lineDelimiter,n=void 0===i?"\n":i,r=e.itemDelimiter,o=void 0===r?",":r,a=t.length-1,s="";return(0,C["default"])(t,function(t,e){var i=t.length-1;(0,C["default"])(t,function(t,e){var n=(0,b["default"])(t)?t:'"'+t+'"';s+=n,e<i&&(s+=o)}),e<a&&(s+=n)}),s}e.__esModule=!0;var m=r(['<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),x=n(v),T=i(150),b=n(T),A=i(139),E=n(A),D=i(141),C=n(D),S=i(209),w=n(S),L=i(154),M=n(L),P=i(148),k=n(P),O={xls:"data:application/vnd.ms-excel;base64,",csv:"data:text/csv;charset=utf-8,%EF%BB%BF"},R={xls:f,csv:g},I=[].concat(o(M["default"].DATA_EXTENSIONS)),B={downloadData:function(t,e,i,n){var r=a(i),o=O[e].replace(/(data:|;base64,|,%EF%BB%BF)/g,""),s=R[e](r,n);this._isNeedDataEncodeing()&&("csv"!==e&&(s=window.btoa(unescape(encodeURIComponent(s)))),s=O[e]+s),w["default"].execDownload(t,e,s,o)},_isNeedDataEncodeing:function(){var t=(0,x["default"])(document.createElement("a").download),e=window.Blob&&window.navigator.msSaveOrOpenBlob;return!(e||!t)},getExtensions:function(){return I}};Object.assign(B,{_makeCsvBodyWithRawData:g,_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 r(){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 o(t){for(var e=t.substr(0,t.indexOf(";base64,")).substr(t.indexOf(":")+1),i=1024,n=atob(t.substr(t.indexOf(",")+1)),r=[],o=0;o<n.length;o+=i){for(var a=n.slice(o,o+i),s=new Array(a.length),u=0;u<a.length;u+=1)s[u]=a.charCodeAt(u);var l=new window.Uint8Array(s);r.push(l)}var h=new Blob(r,{type:e});return h}function a(t){return g["default"].any(y["default"].IMAGE_EXTENSIONS,function(e){return t===e})}function s(t,e,i,n){var r=a(e)?o(i):new Blob([i],{type:n});window.navigator.msSaveOrOpenBlob(r,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 o=r();o&&(0,d["default"])(i)&&_[o](t,e,i,n)}e.__esModule=!0;var h=i(146),c=n(h),p=i(156),d=n(p),f=i(158),g=n(f),m=i(154),y=n(m),_={
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 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 o(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 r=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"/,"")),r.drawSvg(e,0,0),l["default"].execDownload(i,n,t.toDataURL("image/"+n,1))}function s(t,e,i,n){var r=t.getContext("2d"),o=new Blob([e],{type:"image/svg+xml"}),a=g.createObjectURL(o),s=new Image;s.onload=function(){r.drawImage(s,0,0,t.width,t.height),l["default"].execDownload(i,n,t.toDataURL("image/"+n,1)),g.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),g=window.URL||window.webkitURL||window,m=[].concat(r(c["default"].IMAGE_EXTENSIONS));e["default"]={downloadImage:function(t,e,i){var n=void 0;if("svg"===i.tagName){var r=i.parentNode,u=o(i);n=document.createElement("canvas"),n.width=r.offsetWidth,n.height=r.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 m}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(156),o=n(r),a=i(139),s=n(a),u={},l={_attachEvent:function(t,e,i,n){var r=void 0;r=n?i.bind(n):i,u[e+i]=r,t.attachEvent("on"+e,r)},_addEventListener:function(t,e,i,n){var r=void 0;r=n?i.bind(n):i,u[e+i]=r,t.addEventListener(e,r)},_bindEvent:function(t,e,i,n){var r=void 0;"addEventListener"in t?r=this._addEventListener:"attachEvent"in t&&(r=this._attachEvent),l._bindEvent=r,r(t,e,i,n)},on:function(t,e,i,n){var r={};(0,o["default"])(e)?r[e]=i:(r=e,n=i),(0,s["default"])(r,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,o["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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t){var e=t.options,i=t.dataProcessor.seriesTypes,n=t.chartOptions.chartType,r=!!(0,l["default"])(e.visible)||e.visible,o=null;return r&&(t.seriesTypes=i,t.chartType=n,o=new w(t)),o}e.__esModule=!0,e["default"]=o;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),g=n(f),m=i(216),y=n(m),_=i(182),v=n(_),x=i(164),T=n(x),b=i(143),A=n(b),E=g["default"].LEGEND_ICON_HEIGHT,D=g["default"].LINE_MARGIN_TOP,C=g["default"].LEGEND_AREA_H_PADDING,S=g["default"].PUBLIC_EVENT_PREFIX,w=function(){function t(e){r(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(g["default"].COMPONENT_TYPE_RAPHAEL,"legend"),this.paper=null,this.drawingType=g["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,r=(T["default"].isBarTypeChart(this.chartType)||T["default"].isBoxplotChart(this.chartType))&&this.dataProcessor.options.series.colorByPoint,o=t.map(function(t,o){var a=n.options.showCheckbox===!1?null:{checked:n.legendModel.isCheckedIndex(o)},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:r,index:o,theme:t.theme,label:s,labelHeight:e,labelWidth:i[o],isUnselected:n.legendModel.isUnselectedIndex(o)}});return(T["default"].isAreaChart(this.chartType)||T["default"].isColumnChart(this.chartType))&&(0,c["default"])(this.dataProcessor.options.series.stack)&&"top"!==this.options.align&&"bottom"!==this.options.align&&o.reverse(),o},t.prototype._renderLegendArea=function(t){var e=this.legendModel.getData(),i=this.graphRenderer,n=T["default"].isHorizontalLegend(this.options.align),r=this.layout.position,o=i.makeLabelWidths(e,this.theme.label,this.options.maxWidth),a=e[0]?e[0].theme:{},s=i.getRenderedLabelHeight("DEFAULT_TEXT",a)-1,u=o.length,l=Math.max(E,s),h=(D+l)*(n?1:u),c=r.top,p=r.left;return T["default"].isLegendAlignLeft(this.options.align)||(p+=C),i.render({paper:t,legendData:this._getLegendRenderingData(e,s,o),isHorizontal:n,position:{left:p,top:c},dimension:{height:h,width:this.layout.dimension.width},labelTheme:this.theme.label,labelWidths:o,eventBus:this.eventBus})},t.prototype._fireChangeCheckedLegendsEvent=function(){this.eventBus.fire("changeCheckedLegends",this.legendModel.getCheckedIndexes())},t.prototype._fireChangeCheckedLegendsPublicEvent=function(){this.eventBus.fire(S+"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(S+"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(w),o.componentType="legend",o.Legend=w},function(t,e,i){"use strict";function n(t){return!r(t)}var r=i(214);t.exports=n},function(t,e,i){"use strict";function n(t){return a(t)&&""===t}function r(t){var e;for(e in t)if(t.hasOwnProperty(e))return!0;return!1}function o(t){return!(s(t)&&!n(t))||(u(t)||l(t)?0===t.length:!(h(t)&&!c(t))||!r(t))}var a=i(156),s=i(146),u=i(140),l=i(215),h=i(138),c=i(187);t.exports=o},function(t,e,i){"use strict";function n(t){var e=r(t)&&("[object Arguments]"===Object.prototype.toString.call(t)||!!t.callee);return e}var r=i(146);t.exports=n},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}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 o(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){o(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 r=i.visible;r&&e.push(n),t.checkedWholeIndexes[n]=r}),this.updateCheckedLegendsWith(e)},t.prototype._setThemeToLegendData=function(t,e,i){var n=e.colors,r=e.borderColor,o=0;t.forEach(function(t,e){var a={color:n[e]};r&&(a.borderColor=r),t.theme=a,t.index=e,i&&(0,l["default"])(i[e])?t.seriesIndex=-1:(t.seriesIndex=o,o+=1)})},t.prototype._setData=function(){var t=this,e=this.theme,i=this.chartType,n=this.seriesTypes,o=this.legendData,a=this.checkedIndexesMap,s=void 0;if(!n||n.length<2)this._setThemeToLegendData(o,e[i],a[i]),s=o;else{var u,l=0,h=n.map(function(i){var n=t.labels[i].length,r=l+n,s=o.slice(l,r),u=a[i];return l=r,t._setThemeToLegendData(s,e[i],u),s});s=(u=[]).concat.apply(u,r(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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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"]=o;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),g=l["default"].COMPONENT_TYPE_RAPHAEL,m=l["default"].MAP_LEGEND_LABEL_PADDING,y=l["default"].MAP_LEGEND_GRAPH_SIZE,_=l["default"].CHART_PADDING,v=function(){function t(e){r(this,t);var i=e.libType,n=e.chartType,o=e.theme,a=e.options,s=void 0===a?{}:a,u=e.dataProcessor,l=e.colorSpectrum,h=e.eventBus;this.chartType=n,this.theme=o,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=g,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,r={};return r.position=this.layout.position,this.isHorizontal?(r.step=t.width/n,c["default"].isLegendAlignTop(i)?r.position.top-=m:r.position.top+=y+m):(r.step=t.height/n,c["default"].isLegendAlignLeft(i)?r.position.left=_:r.position.left+=y+m),r},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}();o.componentType="legend",o.SpectrumLegend=v},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t){var e=t.chartTheme,i=t.chartOptions.chartType,n=(0,l["default"])(t.chartOptions,"circleLegend","visible"),r=null,o=void 0;return o=!!(0,s["default"])(n)||n,o&&(t.chartType=i,t.baseFontFamily=e.chart.fontFamily,r=new _(t)),r}e.__esModule=!0,e["default"]=o;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),g=n(f),m=i(182),y=n(m),_=function(){function t(e){var i=e.libType,n=e.chartType,o=e.dataProcessor,a=e.baseFontFamily;r(this,t),this.circleRatios=[1,.5,.25],this.chartType=n,this.dataProcessor=o,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)):g["default"].formatToDecimal(String(t),e),g["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}();o.componentType="legend",o.CircleLegend=_},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e,i){var n=(100*t.ratio).toFixed(4),r=parseFloat(n),o=r<9e-4||n.length>5;n=o?n.substr(0,4):String(r);var a=n+"&nbsp;%&nbsp;"||"";return e.ratioLabel=i+a,e.label=t.tooltipLabel||(t.label?t.label:""),e}function o(t){var e=t.chartOptions.chartType,i=t.seriesTypes,n=t.chartOptions.xAxis,o=[],a=void 0,u=Object.values(t.chartTheme.legend).filter(function(t){return(0,g["default"])(t.colors)});return u.forEach(function(t){o=o.concat(t.colors)}),a="map"===e?c["default"]:t.options.grouped?l["default"]:s["default"],("pie"===e||d["default"].isPieDonutComboChart(e,i))&&(t.labelFormatter=r),t.chartType=e,t.chartTypes=i,t.xAxisType=n.type,t.dateFormat=n.dateFormat,t.colors=o,a(t)}e.__esModule=!0,e["default"]=o;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),g=n(f);o.componentType="tooltip"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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 D(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),g=n(f),m=i(222),y=n(m),_=i(154),v=n(_),x=i(164),T=n(x),b=i(223),A=n(b),E="#aaa",D=function(t){function e(i){r(this,e);var n=o(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 T["default"].isBoxplotChart(this.chartType)?e=this._getBoxplotTooltipTemplate(t):T["default"].isPieChart(this.chartType)||T["default"].isPieDonutComboChart(this.chartType,this.chartTypes)?e=A["default"].tplPieChart:this.dataProcessor.coordinateType?e=A["default"].tplCoordinatetypeChart:T["default"].isBulletChart(this.chartType)?e=A["default"].tplBulletChartDefault:T["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),r=this._findTooltipColor(t,e,n);return T["default"].isBoxplotChart(this.chartType)&&(0,c["default"])(e.outlierIndex)&&(n.outlierIndex=e.outlierIndex),this.colorSpectrum&&(r=this.colorSpectrum.getColor(n.colorRatio||n.ratio)),n.color=r,n.chartType=this.chartType,n.cssText="background-color: "+r,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 T["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=T["default"].isBarTypeChart(this.chartType),r=T["default"].isBoxplotChart(this.chartType),o=(n||r)&&this.dataProcessor.options.series.colorByPoint,a=e.groupIndex,s=e.index;return T["default"].isBulletChart(this.chartType)?s=a:T["default"].isTreemapChart(this.chartType)&&(s=i.tooltipColorIndex),o?E: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 r=n.chartType,o=n.label,a=Object.assign({chartType:r,legend:o,legendIndex:i,index:t.groupIndex},e);return T["default"].isBoxplotChart(r)&&(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,r=this.labelFormatter,o={legend:t,label:n||(i.label?i.label:""),category:e};return r&&(o=r(i,o,"")),o.category=e,Object.assign(o,i.pickValueMapForTooltip())},e.prototype.makeTooltipData=function(){var t=this,e=this.dataProcessor.getLegendLabels(),i=T["default"].isTreemapChart(this.chartType),n={},r={};return(0,l["default"])(e)?n[this.chartType]=e:n=e,this.dataProcessor.eachBySeriesGroup(function(e,i,o){o=o||t.chartType;var a=T["default"].isBulletChart(o),s=e.map(function(e,r){var s=t.dataProcessor.makeTooltipCategory(i,r,t.isVertical),u=a?i:r;return e?t._makeTooltipDatum(n[o][u],s,e):null});r[o]||(r[o]=[]),r[o].push(s)},i),r},e}(g["default"]);y["default"].mixin(D),s.componentType="tooltip",s.NormalTooltip=D},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(146),a=n(o),s=i(135),u=n(s),l=i(186),h=n(l),c=i(154),p=n(c),d=i(155),f=n(d),g=i(164),m=n(g),y=i(148),_=n(y),v=function(){function t(e){r(this,t);var i=m["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],r=n.style["background-color"],o=(0,u["default"])(n,10,10),a=o.path(p["default"].LEGEND_LINE_ICON_PATH);n.style["background-color"]="",a.attr({stroke:r,"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,r){t&&i[n].push(e.theme[n].colors[r])})}),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=m["default"].isComboChart(this.chartType)&&m["default"].isScatterChart(t.chartType),n=void 0;m["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,r=i.left-e.left;_["default"].cancelAnimation(this.slidingAnimation),this.slidingAnimation=_["default"].startAnimation(this.animationTime,function(i){var o=r*i,a=n*i;t.style.left=e.left+o+"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,r="";return n&&(r=n[t]),e&&(r=_["default"].formatDate(r,e)),r},t}();e["default"]=v},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(137),o=n(r),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,o["default"])(e)||(0,o["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 r=t,o=i||0,a=n||s["default"].TOOLTIP_GAP;return e.indexOf("left")>-1?r-=o+a:e.indexOf("center")>-1&&o?r-=o/2:r+=a,r},_makeTopPositionOfNotBarChart:function(t,e,i,n){var r=t,o=i||0;return e.indexOf("bottom")>-1?r+=o+n:e.indexOf("middle")>-1&&o?r+=o/2:r-=o+s["default"].TOOLTIP_GAP,r},_makeTooltipPositionForNotBarChart:function(t){var e=t.bound,i=t.positionOption,n=t.dimension,r=t.alignOption,o=void 0===r?"":r,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,o,a,u),top:this._makeTopPositionOfNotBarChart(c,o,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,r=t.dimension,o=t.alignOption,a=void 0===o?"":o,s=r.height-(i.height||0),u=r.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,r=t.dimension,o=d["default"].getRenderedLabelHeight(s["default"].MAX_HEIGHT_WORD,this.labelTheme);return{left:i.left+(i.width-r.width)/2+n.left-e.left,top:i.top+i.height/2-o+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,r=void 0;l["default"].isBarChart(t.chartType)?(e=this._makeTooltipPositionForBarChart(t),i="width",n="left",r=1):l["default"].isTreemapChart(t.chartType)?e=this._makeTooltipPositionForTreemapChart(t):(e=this._makeTooltipPositionForNotBarChart(t),i="height",n="top",r=-1),t.allowNegativeTooltip&&(e=this._moveToSymmetry(e,{bound:t.bound,indexes:t.indexes,dimension:t.dimension,chartType:t.chartType,sizeType:i,positionType:n,addPadding:r})),e=this._adjustPosition(t.dimension,e)}return e},_moveToSymmetry:function(t,e){var i=e.bound,n=e.sizeType,r=e.positionType,o=e.indexes,a=e.seriesType||e.chartType,s=this.dataProcessor.getValue(o.groupIndex,o.index,a),u=l["default"].isBarChart(this.chartType)?-1:1;if(s<0){var h=e.dimension[n],c=i[n],p=t[r]+(c+h)*u;t[r]=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(),r=e.indexes,o=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(o,r)||l!==e.chartType)&&this.eventBus.fire("hoverOffSeries",o,l),t.innerHTML=this._makeSingleTooltipHtml(e.seriesType||e.chartType,r),"line"===e.chartType&&this.makeLineLegendIcon(t.querySelectorAll(".tui-chart-legend-rect.line")),t.setAttribute("data-chart-type",e.chartType),this._setIndexesCustomAttribute(t,r),this._setShowedCustomAttribute(t,!0),this._fireBeforeShowTooltipPublicEvent(r,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",r,e.chartType),this._fireAfterShowTooltipPublicEvent(r,{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,r=this._getIndexesCustomAttribute(t),o=t.getAttribute("data-chart-type"),a=!(!i||!i.silent);l["default"].isChartToDetectMouseEventOnSeries(o)?(this.eventBus.fire("hoverOffSeries",r,o),this._fireBeforeHideTooltipPublicEvent(r,a),this._executeHidingTooltip(t)):o&&(this._setShowedCustomAttribute(t,!1),this.eventBus.fire("hoverOffSeries",r,o),this._isChangedIndexes(this.prevIndexes,r)&&delete this.prevIndexes,setTimeout(function(){n._isShowedTooltip(t)||(n._fireBeforeHideTooltipPublicEvent(r,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 r=i(224),o=n(r),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:o["default"].template(a.HTML_DEFAULT_TEMPLATE),tplPieChart:o["default"].template(a.HTML_PIE_TEMPLATE),tplCoordinatetypeChart:o["default"].template(a.HTML_COORDINATE_TYPE_CHART_TEMPLATE),tplGroup:o["default"].template(a.HTML_GROUP),tplGroupType:o["default"].template(a.HTML_GROUP_TYPE),tplGroupItem:o["default"].template(a.HTML_GROUP_ITEM),tplGroupCssText:o["default"].template(a.GROUP_CSS_TEXT),tplMapChartDefault:o["default"].template(a.HTML_MAP_CHART_DEFAULT_TEMPLATE),tplHeatmapChart:o["default"].template(a.HTML_HEATMAP_TEMPLATE),tplBoxplotChartDefault:o["default"].template(a.HTML_BOXPLOT_TEMPLATE),tplBoxplotChartOutlier:o["default"].template(a.HTML_BOXPLOT_OUTLIER),tplBulletChartDefault:o["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,r=!1,o=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){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}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),r=e[0],o=e[1],a=new RegExp("{{\\s*"+r+"\\s*}}","g");n=n.replace(a,String(o).replace("$","$"))}),n}}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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 k(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),g=n(f),m=i(154),y=n(m),_=i(155),v=n(_),x=i(148),T=n(x),b=i(184),A=n(b),E=i(223),D=n(E),C=i(164),S=n(C),w=y["default"].TOOLTIP_DEFAULT_GROUP_ALIGN_OPTION,L=y["default"].TOOLTIP_DEFAULT_GROUP_HORIZONTAL_ALIGN_OPTION,M=y["default"].SERIES_EXPAND_SIZE,P=y["default"].PUBLIC_EVENT_PREFIX,k=function(t){function e(i){r(this,e);var n=o(this,t.call(this,i));return n.prevIndex=null,n.tickInterval=null,n.isBullet=S["default"].isBulletChart(i.chartType),n}return a(e,t),e.prototype._makeTooltipHtml=function(t,e,i,n){var r=D["default"].tplGroupItem,o=D["default"].tplGroupCssText,a=S["default"].isBarChart(this.chartType),s=S["default"].isBarTypeChart(this.chartType),u=S["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=D["default"].tplGroupType({type:i})),a+=r(Object.assign({cssText:o({color:h?"#aaa":p[e]})},t))):null});return c&&f.reverse(),D["default"].tplGroup({category:t,items:f.join("")})},e.prototype._setDefaultTooltipPositionOption=function(){this.options.align||(this.isVertical?this.options.align=w:this.options.align=L)},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 g["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 r=e.originalTheme[n].colors;r.forEach(function(e,r){var o=t[n]||t;o[r]&&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 r=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:r}})},e.prototype._makeColors=function(t,e){var i=0,n=this.dataProcessor.getLegendData(),r=void 0,o=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){o!==e&&(r=t[e]?t[e].colors:a,i=0),o=e;var n=r[i];return i+=1,n})},e.prototype._makeItemRenderingData=function(t,e){var i=this,n=this.dataProcessor,r=this.suffix,o=this._makeColors(this.theme,e);return t.map(function(t,a){var s={value:t.label,type:t.type,suffix:r,legend:"",color:o[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:M}}},e.prototype._makeHorizontalTooltipSectorBound=function(t,e){return{dimension:{width:t,height:e.end-e.start},position:{left:M,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,r){var o=this._getTooltipSectorElement(),a=e.start===e.end,s=this._makeTooltipSectorBound(t,e,i,a);a?this.eventBus.fire("showGroupTooltipLine",s):(T["default"].renderDimension(o,s.dimension),T["default"].renderPosition(o,s.position),v["default"].addClass(o,"show")),r&&(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),r=this.positionModel.calculatePosition(n,e.range);this._moveToPosition(t,r,i),this._fireAfterShowTooltipPublicEvent(e.index,e.range,{element:t,position:r},e.silent),this.prevIndex=e.index},e.prototype._fireBeforeShowTooltipPublicEvent=function(t,e,i){i||this.eventBus.fire(P+"beforeShowTooltip",{chartType:this.chartType,index:t,range:e})},e.prototype._fireAfterShowTooltipPublicEvent=function(t,e,i,n){n||this.eventBus.fire(P+"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(P+"beforeHideTooltip",{chartType:this.chartType,index:t})},e}(d["default"]);s.componentType="tooltip",s.GroupTooltip=k},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(154),a=n(o),s=function(){function t(e,i,n,o){r(this,t),this.chartDimension=e,this.areaBound=i,this.isVertical=n,this.options=o,this.positions={},this._setData(e,i,n,o)}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 r=this._makeVerticalData(t,e,n.align),o=this._makeHorizontalData(t,e,n.align),a=n.offset||{};i?(this.mainData=r,this.subData=o):(this.mainData=o,this.subData=r),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,r=9,o=5,s=n?r:o,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 r=void 0;return t<-n.areaPosition&&(r=this._calculateMainPositionValue(i,e,{direction:a["default"].TOOLTIP_DIRECTION_FORWARD,basePosition:n.basePosition}),t=this._makePositionValueDiff(r,i,n)>0?-n.areaPosition:r),t},t.prototype._adjustForwardPositionValue=function(t,e,i,n){var r=this._makePositionValueDiff(t,i,n);if(r>0){var o=this._calculateMainPositionValue(i,e,{direction:a["default"].TOOLTIP_DIRECTION_BACKWARD,basePosition:n.basePosition});o<-n.areaPosition?t-=r:t=o}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,r=this.subData,o=this.positions[i];return o||(o={},o[n.positionType]=this._makeMainPositionValue(t,e,n),o[r.positionType]=this._makeSubPositionValue(t,r),this.positions[i]=o),o},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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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 m(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),g=n(f),m=function(t){function e(i){r(this,e);var n=o(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 g["default"].tplMapChartDefault(t)},e.prototype._makeSingleTooltipHtml=function(t,e){var i=this.mapModel.getDatum(e.index),n=this.options.suffix?" "+this.options.suffix:"",r=this.colorSpectrum.getColor(i.ratio);return this.templateFunc({name:i.name||i.code,value:i.label,suffix:n,cssText:"background-color: "+r,color:r})},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(m),s.componentType="tooltip"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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 x(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),g=n(f),m=i(148),y=n(m),_=i(153),v=n(_),x=function(t){function e(i){r(this,e);var n=o(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,g["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||g["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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(145),a=n(o),s=i(198),u=n(s),l=i(230),h=n(l),c=i(231),p=n(c),d=i(154),f=n(d),g=i(211),m=n(g),y=i(164),_=n(y),v=i(155),x=n(v),T=i(148),b=n(T),A=function(){function t(e){if(r(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=b["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(),r=n.dimension,o=n.position;b["default"].renderDimension(t,r),b["default"].renderPosition(t,o)},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 x["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(),x["default"].append(e,this.transparentChild),e},t.prototype._createTransparentChild=function(){var t=document.createElement("DIV"),e=t.style;return e.backgroundColor="#fff",e.height=b["default"].getStyle(this.mouseEventDetectorContainer).height,b["default"].setOpacity(t,0),t},t.prototype._calculateLayerPosition=function(t,e,i){var n=this.mouseEventDetectorContainer.getBoundingClientRect(),r=n.left,o=n.right,s=n.top,u=this.positionMap.series,l=this.expandSize,h={};if(i=!!(0,a["default"])(i)||i){var c=o-l,p=r+l;t=Math.min(Math.max(t,p),c)}return h.x=t-r+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=b["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){x["default"].addClass(this.mouseEventDetectorContainer,"hide"),this.eventBus.fire(t+"Series",{left:e.clientX,top:e.clientY}),x["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){m["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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(144),a=n(o),s=i(164),u=n(s),l=i(158),h=n(l),c=function(){function t(e,i,n,o,a){r(this,t),this.isLineType=u["default"].isLineTypeChart(n,a),this.data=this._makeData(e,i,o)}return t.prototype._getRanges=function(t,e,i){var n=e,r=i/2;return(0,a["default"])(0,t).map(function(){var t={min:n-r,max:n+r};return n+=i,t})},t.prototype._makeLineTypeData=function(t,e,i){var n=(t+1)/(e-1),r=this._getRanges(e,i||0,n);return r[e-1].max-=1,r},t.prototype._makeNormalData=function(t,e,i){var n=e-1,r=t/n,o=i||0;return(0,a["default"])(0,n).map(function(){var e=h["default"].min([t+o,r+o]),i={min:o,max:e};return o=e,i})},t.prototype._makeData=function(t,e,i){var n=i?"width":"height",r=i?"left":"top";return this.isLineType?this._makeLineTypeData(t.dimension[n],e,t.position[r]):this._makeNormalData(t.dimension[n],e,t.position[r])},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 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 o(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){o(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,r){return t.map(function(t,o){return t?i._makeTooltipData(e,{groupIndex:r,index:o},n,t.end||t):null})})},t.prototype._makeOutliersPositionDataForBoxplot=function(t,e,i){var n=this,o=!c["default"].isBoxTypeChart(e),a=[].concat(r(t));a.forEach(function(t,r){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:r,index:a,outlierIndex:i},o,s)}),i[r]=i[r].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 r=t&&t.bound;return!!r&&(r.top===r.bottom&&(r.top-=l["default"].SERIES_EXTRA_EVENT_AREA_FOR_ZERO,r.bottom+=l["default"].SERIES_EXTRA_EVENT_AREA_FOR_ZERO),r.left===r.right&&(r.left-=l["default"].SERIES_EXTRA_EVENT_AREA_FOR_ZERO,r.right+=l["default"].SERIES_EXTRA_EVENT_AREA_FOR_ZERO),n._isCandidateTarget(r,{layerX:e,layerY:i}))})},t.prototype._isCandidateTarget=function(t,e){var i=e.layerX,n=e.layerY,r=t.left<=i&&t.right>=i,o=t.top<=n&&t.bottom>=n;return r&&o},t.prototype.findData=function(t,e,i){var n=1e4,r=null;if(t>-1&&this.data[t]){var o=this._findCandidates(this.data[t],e,i);o.forEach(function(t){var e=Math.abs(i-t.bound.top);n>e&&(n=e,r=t.sendData)})}return r},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,r=n.index===t.seriesIndex&&n.outlierIndex===t.outlierIndex;return r&&(e=i.sendData),!r}),e},t}();e["default"]=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){var e=t.chartOptions,i=t.seriesTypes,n=e.chartType,r=e.series,o=r.zoomable,s=r.allowSelect,l=e.xAxis.pointOnColumn,c=void 0;return c=t.chartOptions.tooltip.grouped?p["default"]:a["default"].isMapChart(n)?m["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=o,t.allowSelect=s,t.pointOnColumn=!!l,c(t)}e.__esModule=!0,e["default"]=r;var o=i(164),a=n(o),s=i(233),u=n(s),l=i(236),h=n(l),c=i(237),p=n(c),d=i(238),f=n(d),g=i(228),m=n(g);r.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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){r(this,e);var n=o(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,r=this.dataProcessor.isCoordinateType();return this.dataModel.findData(i,n,{distanceLimit:this.dataModel.leftStepLength,isCoordinateTypeChart:r})},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 r=function(){function t(t,e){var i=[],n=!0,r=!1,o=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){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}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")}}(),o=i(137),a=n(o),s=i(229),u=n(s),l=i(154),h=n(l),c=i(155),p=n(c),d=i(164),f=n(d),g=i(158),m=n(g),y=i(148),_=n(y),v=i(211),x=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(),x["default"].on(document,"mousemove",this._onDrag,this),x["default"].off(this.mouseEventDetectorContainer,"mouseup",this._onMouseup,this),x["default"].on(document,"mouseup",this._onMouseupAfterDrag,this)},_unbindDragEvent:function(){this.downTarget&&this.downTarget.releaseCapture&&this.downTarget.releaseCapture(),x["default"].off(document,"mousemove",this._onDrag,this),x["default"].off(document,"mouseup",this._onMouseupAfterDrag,this),x["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,r=this.startClientPosition,o=i-(r.x-this.startLayerX),a=Math.min(n,this.startLayerX)-o,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=r(t,2),i=e[0],n=e[1],o=n-i;return 0===o?0===i?n+=2:(i-=1,n+=1):1===o&&(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),r=n.startIndex,o=n.endIndex,a=o-r;this.prevDistanceOfRange!==a&&(this.prevDistanceOfRange=a,this.reverseMove=i,this.eventBus.fire("zoom",[r,o]))},_adjustValueRange:function(t,e){var i=void 0,n=void 0,r=this.dataProcessor,o=r.integratedXAxisData,a=r.options.xAxis,s=f["default"].isDatetimeType(a.type);s?(i=m["default"].findIndexFromDateTypeArray(o,new Date(t)),n=m["default"].findIndexFromDateTypeArray(o,new Date(e))):(i=o.indexOf(t),n=o.indexOf(e));var u=[i,n].sort(function(t,e){return t-e}),l=this._changeIndexToHaveMinimumIndexes(u),h=l.startIndex,c=l.endIndex;return[o[h],o[c]]},_fireZoomUsingValue:function(t,e){var i=t.index,n=t.groupIndex,o=e.index,a=e.groupIndex,s=this.dataProcessor.rawData.series.line,u=r(s[i].data[n],1),l=u[0],h=r(s[o].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 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 o(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){o(this,t),this.data=this._makeData(e),this.lastGroupIndex=0}return t.prototype._makeData=function(t){var e,i,n=this,o=t.length,a=0,u=t.map(function(t,e){var i=t.chartType,r=t.data,u=r.groupPositions||r.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,r){var a=null;return t&&(a={chartType:i,indexes:{groupIndex:n,index:r},bound:t}),o>1&&(a.indexes.legendIndex=e),a})})});return u=(e=[]).concat.apply(e,r(u)),this.lastGroupIndex=a,(i=[]).concat.apply(i,r(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,r=i.isCoordinateTypeChart,o=n&&n<this.leftStepLength,a=r||o;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,r=this.data.reduce(function(i,r){var o=Math.abs(t.y-r.bound.top),a={};return r.bound.left!==n?a=i:(0,c["default"])(e)||e!==r.indexes.index?o<=i.yMin?(a.yMin=o,a.findFound=r):a=i:(a.yMin=Number.MIN_VALUE,a.findFound=r),a},{yMin:Number.MAX_VALUE,findFound:null}),o=r.findFound;return o},t.prototype._findDataForCoordinateDistance=function(t,e,i){var n=1e5,r=void 0;return e=e||Number.MAX_VALUE,this.data.forEach(function(o){var a=t.x-o.bound.left,s=t.y-o.bound.top,u=Math.sqrt(Math.pow(a,2)+Math.pow(s,2));u>e||((0,c["default"])(i)||i===o.indexes.index)&&u<=n&&(n=u,r=o)}),r},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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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){r(this,e);var n=o(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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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,r=!1,o=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){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}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),g=i(234),m=n(g),y=function(t){function e(i){r(this,e);var n=o(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,m["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,r=i.height,o=this.layout.position,a=o.top,s=o.left;return t<s||t>s+n||e<a||e>a+r},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,r=this.tickBaseCoordinateModel.data,o=r.length,a=this.pointOnColumn?o-1>i:o>i;if(a){var s=0;if(this.pointOnColumn){var l=u(r,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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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 m(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),g=n(f),m=function(t){function e(){r(this,e);for(var i=arguments.length,n=Array(i),a=0;a<i;a++)n[a]=arguments[a];var s=o(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),r=this._findDataFromBoundsCoordinateModel(n);if(this._isChangedSelectData(this.prevFoundData,r)&&(this.prevFoundData&&this._hideTooltip(),this.prevFoundData=r,r)){if(d["default"].isTreemapChart(this.chartType)){var o=this._getSeriesItemByIndexes(r.indexes);this.styleCursor(o.hasChild)}else d["default"].isBulletChart(this.chartType)&&(r.mousePosition={left:e,top:i});this._showTooltip(r)}},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(g["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 r=this._getSeriesItemByIndexes(n.indexes);if(!r.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(),r=n.left,o=n.right,a=n.top,s=n.bottom;r<=e&&a<=i&&o>=e&&s>=i||(this.prevFoundData&&this._hideTooltip(),this.prevFoundData=null)},e.prototype.onAfterZoom=function(t){this.historyBackBtn||(this.historyBackBtn=g["default"].create("DIV",c["default"].CLASS_NAME_RESET_ZOOM_BTN),g["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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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),g=n(f),m=d["default"].OVERLAPPING_WIDTH,y=d["default"].TEXT_PADDING,_=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return a(e,t),e.prototype._makeBound=function(t,e,i,n,r){return{start:{top:i,left:n,width:0,height:e},end:{top:i,left:r,width:t,height:e}}},e.prototype._calculateAdditionalLeft=function(t){var e=0;return this.options.divided&&t>0&&(e=this.dimensionMap.yAxis.width+m),e},e.prototype._makeBarChartBound=function(t,e,i,n,r){var o=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,g=o*c,m=this._calculateAdditionalLeft(p),y=o*d,_=a+y+m,v=f!==e.prevStack,x=s*u>l,T=x?h:s,b=void 0;if(!i||!this.options.diverging&&v){var A=i?this.dataProcessor.findStackIndex(f):r;e.top=e.baseTop+T*A,e.plusLeft=0,e.minusLeft=0}p>=0?(b=_+e.plusLeft,e.plusLeft+=g):(e.minusLeft-=g,b=_+e.minusLeft),e.prevStack=f;var E=e.top+h-s/2;return x||(E+=(h-s)/2*(u-1)),this._makeBound(g,s,E,_,b)},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=g["default"].isValidStackOption(this.options.stack),n=this.layout,r=n.dimension,o=r.width,a=r.height,s=n.position.top,u=this._makeBaseDataForMakingBound(a,o);return e.map(function(e,n){var r=n*u.groupSize+s,o={baseTop:r,top:r,plusLeft:0,minusLeft:0,prevStack:null},a=t._makeBarChartBound.bind(t,u,o,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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(140),a=n(o),s=i(214),u=n(s),l=i(146),h=n(l),c=i(137),p=n(c),d=i(154),f=n(d),g=i(155),m=n(g),y=i(164),_=n(y),v=i(148),x=n(v),T=i(182),b=n(T),A=i(143),E=n(A),D=f["default"].COMPONENT_TYPE_RAPHAEL,C=f["default"].PUBLIC_EVENT_PREFIX,S=f["default"].CLASS_NAME_SERIES_LABEL,w=function(){function t(e){r(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=b["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=D,this.supportSeriesLable=!0,this._attachToEventBus()}return t.prototype.decorateLabel=function(t){var e=this.options,i=e.labelPrefix,n=void 0===i?"":i,r=e.labelSuffix,o=void 0===r?"":r,s=x["default"].addPrefixSuffix,u=x["default"].addPrefixSuffixItem,l=((0,a["default"])(t)?s:u).bind(x["default"]);return l(t,n,o)},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(C+"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=x["default"].isOldBrowser()?1:0;x["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,r=n-i,o=0,a=0;return i<=0&&n>=0?(o=(r+i)/r*t,a=(r-n)/r*t):i>0&&(o=t),{toMax:o,toMin:a}},t.prototype._findLabelElement=function(t){return m["default"].hasClass(t,S)?t:m["default"].findParentByClass(t,S)},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=E["default"].getDefaultAnimationDuration(e.chartType)})},t.prototype._fireLoadEvent=function(t){t||this.eventBus.fire(C+"load")},t.prototype.animateSeriesLabelArea=function(t){return this._isLabelVisible()?void(this.labelSet&&this.labelSet.length&&E["default"].animateOpacity(this.labelSet,0,1,this.options.animationDuration)):void this._fireLoadEvent(t)},t.prototype.animateSeriesConnector=function(){this.connectorSet&&this.connectorSet.length&&E["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),r=(0,h["default"])(e.groupIndex)?e.groupIndex:0,o=this._getSeriesDataModel().getSeriesItem(r,e.index),a=void 0;return(0,h["default"])(o)&&(a={chartType:n.chartType,legend:n.label,legendIndex:i},a.index=o.index),a},t.prototype._executeGraphRenderer=function(t,e){var i=!1;this.eventBus.fire("hideTooltipContainer"),this.seriesLabelContainer&&m["default"].hasClass(this.seriesLabelContainer,"show")&&(m["default"].removeClass(this.seriesLabelContainer,"show"),i=!0);var n=this.graphRenderer[e](t);return i&&m["default"].addClass(this.seriesLabelContainer,"show"),this.eventBus.fire("showTooltipContainer"),n},t.prototype.onSelectSeries=function(t,e){if(t.chartType===this.chartType){var i=C+"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=C+"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&&(m["default"].removeClass(this.seriesLabelContainer,"show"),m["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"]=w},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(154),a=n(o),s=i(242),u=n(s),l=i(164),h=n(l),c=i(173),p=n(c),d=i(148),f=n(d),g=i(143),m=n(g),y=i(146),_=n(y),v=a["default"].CHART_PADDING,x=a["default"].LEGEND_LABEL_LEFT_PADDING,T=.85,b=function(){function t(){r(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(),r=t/n.getGroupCount(),o=-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)?o: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=r/(l+1),p=this.options.barWidth||this.options.pointWidth,d=c*T,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:r,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(),r=this.seriesData.groupBounds,o=this.theme.label,a=this.selectedLegendIndex,s=n.map(function(t){return t.map(function(t){var i=t.start,n=t.startLabel,r=t.endLabel,o={end:e.decorateLabel(r)};return(0,_["default"])(i)&&(o.start=e.decorateLabel(n)),o})}),l=void 0;return l=h["default"].isBarChart(this.chartType)?u["default"].boundsToLabelPositionsForBarChart(n,r,o):u["default"].boundsToLabelPositionsForColumnChart(n,r,o),i.renderSeriesLabel(t,l,s,o,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,r=t.height;return{left:i+n/2,top:e+r/2}},t.prototype._makeStackedLabelPositions=function(t){var e=this,i=t.seriesGroup,n=i.map(function(i,n){var r=t.bounds[n],o=void 0;return r&&i&&(o=e._makeStackedLabelPosition(r.end)),{end:o}});return n},t.prototype.getGroupLabels=function(t,e,i){var n=this,r=h["default"].isNormalStack(this.options.stack);return t.map(function(t){var o=t.map(function(t){return{end:n.decorateLabel(t.endLabel)}});if(r){e.push(p["default"].sumPlusValues(t.pluck("value")));var a=p["default"].sumMinusValues(t.pluck("value"));a<0&&i.push(a)}return o})},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=[],r=this.theme.label,o=this.seriesData.groupBounds,a=this._getSeriesDataModel(),s=this.getGroupPositions(a,o),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",g=p?"left":"top",y=p?1:-1;return c&&(u.forEach(function(t,r){var o=i[r],a=n[r];a<0&&e.options.diverging&&(a*=-1),t.push({end:e.decorateLabel(f["default"].formatToComma(o))}),n.length&&t.push({end:e.decorateLabel(f["default"].formatToComma(a))})}),s.forEach(function(t,a){var s=o[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],_=m["default"].getRenderedTextSize(p,r.fontSize,r.fontFamily),v=m["default"].getRenderedTextSize(f,r.fontSize,r.fontFamily),T=(u[d]+_[d])/2,b=(l[d]+v[d])/2;h[g]+=(T+x)*y,c[g]-=(b+x)*y,t.push({end:h}),n.length&&t.push({end:c})})),this.graphRenderer.renderSeriesLabel(t,s,u,r,l)},t.prototype._renderSeriesLabel=function(t){return this.options.stack?this._renderStackedSeriesLabel(t):this._renderNormalSeriesLabel(t)},t}();b.mixin=function(t){Object.assign(t.prototype,b.prototype)},e["default"]=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(154),o=n(r),a=i(148),s=n(a),u=o["default"].MAX_HEIGHT_WORD,l=o["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,r){var o=t.value,a=o>=0,s={end:r(e,i,t.endLabel||t.label,n,a)};return t.isRange&&(a=o<0,s.start=r(e,i,t.startLabel,n,a)),s},boundsToLabelPositions:function(t,e,i,n,r){var o=this,a=s["default"].getRenderedLabelHeight(u,i);return n=n||this._makePositionForBoundType.bind(this),r=!!r,t.map(function(t,r){var s=e[r];return t.map(function(t,e){var r=s[e].end;return o._makePositionMap(t,r,a,i,n)})},r)},_makePositionForBarChart:function(t,e,i,n,r){var o=s["default"].getRenderedLabelWidth(i,n),a=t.left;return r?a+=t.width+l:a-=o+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,r){var o=t.top;return r?o-=e+l:o+=t.height+l,{left:this._calculateLeftPositionForCenterAlign(t),top:o}},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],r=void 0;return n&&(r=i._makePositionForBoundType(n)),r});return n}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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),g=n(f),m=i(148),y=n(m),_=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return a(e,t),e.prototype._makeBound=function(t,e,i,n,r){return{start:{top:n,left:i,width:t,height:0},end:{top:r,left:i,width:t,height:e}}},e.prototype._makeColumnChartBound=function(t,e,i,n,r){var o=t.baseBarSize,a=t.basePosition,s=t.barSize,u=t.itemCount,l=t.groupSize,h=t.pointInterval,c=Math.abs(o*n.ratioDistance),p=o*n.startRatio,f=a+p+d["default"].SERIES_EXPAND_SIZE,g=n.stack!==e.prevStack,m=s*u>l,y=m?h:s,_=void 0,v=void 0;if(!i||!this.options.diverging&&g){var x=i?this.dataProcessor.findStackIndex(n.stack):r;e.left=e.baseLeft+y*x,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=m?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=g["default"].isValidStackOption(this.options.stack),n=this.layout.dimension,r=n.width,o=n.height,a=this._makeBaseDataForMakingBound(r,o);return e.map(function(e,n){var r=n*a.groupSize+t.layout.position.left,o={baseLeft:r,left:r,plusTop:0,minusTop:0,prevStack:null},s=t._makeColumnChartBound.bind(t,a,o,i);return e.map(s)})},e.prototype._calculateLeftPositionOfSumLabel=function(t,e){var i=t.left,n=t.width,r=y["default"].getRenderedLabelWidth(e,this.theme.label);return i+(n-r+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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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(){r(this,e);for(var i=arguments.length,n=Array(i),a=0;a<i;a++)n[a]=arguments[a];var s=o(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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(146),a=n(o),s=i(137),u=n(s),l=i(158),h=n(l),c=i(154),p=n(c),d=i(164),f=n(d),g=i(173),m=n(g),y=i(148),_=n(y),v=p["default"].SERIES_EXPAND_SIZE,x=p["default"].SERIES_LABEL_PADDING,T=p["default"].MAX_HEIGHT_WORD,b=p["default"].ADDING_DATA_ANIMATION_DURATION,A=function(){function t(){r(this,t)}return t.prototype._makePositionsForDefaultType=function(t){var e=this.layout.dimension,i=e.height,n=e.width,r=this._getSeriesDataModel(),o=t||n||0,s=r.getGroupCount(),l=this.layout.position.top,h=this.layout.position.left,c=void 0;return this.aligned?c=o/(s>1?s-1:s):(c=o/s,h+=c/2),r.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,r=this.axisDataMap.xAxis,o=this.layout.position.top,s=this.layout.position.left,l=t||e.width||0,h=0;return r.sizeRatio&&(h=m["default"].multiply(l,r.positionRatio),l=m["default"].multiply(l,r.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:o+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 r=t.top,o=void 0;return o=f["default"].isValidStackOption(this.options.stack)?(t.startTop+r-i)/2+1:e>=0&&!n||e<0&&n?r-i-x:r+x},t.prototype._makeLabelPosition=function(t,e,i,n,r){return{left:t.left,top:this._calculateLabelPositionTop(t,n,e/2,r)}},t.prototype._getLabelPositions=function(t,e){var i=this,n=h["default"].pivot(this.seriesData.groupPositions),r=_["default"].getRenderedLabelHeight(T,e);return t.map(function(t,e){return t.map(function(t,o){var a=n[e][o];if(!a)return{end:0,start:0};var s=i._makeLabelPosition(a,r,t.endLabel,t.end),u={end:s};return t.isRange&&(a.top=a.startTop,u.start=i._makeLabelPosition(a,r,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,r=t.startLabel,o={end:e.decorateLabel(i)};return n&&(o.start=e.decorateLabel(r)),o})})},t.prototype._renderSeriesLabel=function(t){var e=this.theme.label,i=this._getSeriesDataModel(),n=this._getLabelTexts(i),r=this._getLabelPositions(i,e);return this.graphRenderer.renderSeriesLabel(t,r,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=b,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,r=this.dimensionMap.extendedSeries,o=this.options.shifting,a=this.layout.dimension.width;this.limit=i[this.chartType],this.axisDataMap=n;var s=this._makeSeriesData(),u=this._makeParamsForGraphRendering(r,s);o&&(a+=e);var l=this._makePositions(a),h=this._makeZeroTopForAddingData();this.graphRenderer.animateForAddingData(u,e,l,o,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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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 T(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),g=n(f),m=i(205),y=n(m),_=d["default"].COMPONENT_TYPE_RAPHAEL,v=d["default"].RADIAL_PLOT_PADDING,x=d["default"].RADIAL_MARGIN_FOR_CATEGORY,T=function(t){function e(){r(this,e);for(var i=arguments.length,n=Array(i),a=0;a<i;a++)n[a]=arguments[a];var s=o(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,r=i.position,o=r.top,a=r.left,s=n.width-v-x,u=n.height-v-x,h=g["default"].sum([s/2,v/2,x/2,a]),c=g["default"].sum([u/2,-(v/2),-(x/2),-o]),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,r=c+n,o=360-p*e,a=y["default"].rotatePointAroundOrigin(h,c,h,r,o);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=T},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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(){r(this,e);for(var i=arguments.length,n=Array(i),a=0;a<i;a++)n[a]=arguments[a];var s=o(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,r=this._getLimitDistanceFromZeroPoint(e,n).toMax+i;return n.min>=0&&!r&&(r=e),r},e.prototype._makeStackedPositions=function(t){var e=this.layout,i=e.dimension.height,n=e.position.top,r=this._makePositionTopOfZeroPoint(),o=[];return t.map(function(t){return t.map(function(t,e){var a=o[e]||r,s=t?t.top:0,u=i-s+n,l=t?a-u:a;return t&&(t.startTop=a,t.top=l),o[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,r=this._makePositions();return{chartBackground:this.chartBackground,groupPositions:r,hasRangeData:this._getSeriesDataModel().hasRangeData(),zeroTop:n,isAvailable:function(){return r&&r.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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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 m(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),g=n(f),m=function(t){function e(){r(this,e);for(var i=arguments.length,n=Array(i),a=0;a<i;a++)n[a]=arguments[a];var s=o(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),r=void 0;r=t?i.height:i.width,e=r/n}return e},e.prototype._makeBound=function(t,e,i){var n=this.layout,r=n.dimension,o=r.width,a=r.height,s=n.position,u=(0,g["default"])(t.x)?t.x*o:e,l=(0,g["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(),r=n?n/2:0;return e.map(function(e,o){var a=r+n*o;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(m),s.componentType="series",s.BubbleChartSeries=m},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,r){this.eventBus.fire("showTooltip",Object.assign({indexes:{groupIndex:i,index:n},mousePosition:r},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}),r={showTooltip:n,hideTooltip:this.hideTooltip.bind(this)},o=this._makeParamsForGraphRendering(t,e);return this.graphRenderer.render(i,o,r)},t.prototype.onClickSeries=function(t){var e=this._executeGraphRenderer(t,"findIndexes"),i=this.prevClickedIndexes,n=this.options.allowSelect,r=this.chartType;if(e&&i&&(this.onUnselectSeries({chartType:r,indexes:i}),this.prevClickedIndexes=null),e){var o=!i||e.index!==i.index||e.groupIndex!==i.groupIndex;n&&o&&(this.onSelectSeries({chartType:r,indexes:e},o),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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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(){r(this,e);for(var i=arguments.length,n=Array(i),a=0;a<i;a++)n[a]=arguments[a];var s=o(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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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 T(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),g=n(f),m=i(154),y=n(m),_=d["default"].msie&&d["default"].version<=8,v=y["default"].TOOLTIP_GAP,x=y["default"].PUBLIC_EVENT_PREFIX,T=function(t){function e(i){r(this,e);var n=o(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(){g["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,r=e.height/i.height;
this.mapRatio=Math.min(n,r)},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){g["default"].prototype.render.call(this,t),this.seriesSet=this.graphRenderer.sectorSet,this._setMapRatio()},e.prototype.rerender=function(t){g["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){g["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,r=n.left-e.left/2,o=n.top-e.top/2,a={left:r*i+this.limitPosition.left/2,top:o*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,r=n.position,o=r.top,a=r.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-o}),this.eventBus.fire(x+"zoom",t)},e.prototype._makeExportationSeriesData=function(t){return t},e}(g["default"]);s.componentType="series",s.MapChartSeries=T},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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,r=e.legend,o=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 r&&(t.legendMaxWidth=r.maxWidth),t.chartBackground=o.chart.background,new R(t)}e.__esModule=!0;var u=function(){function t(t,e){var i=[],n=!0,r=!1,o=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){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}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),g=i(240),m=n(g),y=i(154),_=n(y),v=i(164),x=n(v),T=i(143),b=n(T),A=_["default"].COMPONENT_TYPE_RAPHAEL,E=_["default"].ANGLE_360,D=_["default"].PIE_GRAPH_LEGEND_LABEL_INTERVAL,C=_["default"].ANGLE_90,S=_["default"].PIE_GRAPH_SMALL_RATIO,w=_["default"].PIE_GRAPH_DEFAULT_RATIO,L=_["default"].RAD,M=_["default"].PIE_GRAPH_LEGEND_LABEL_SIZE,P=_["default"].SERIES_OUTER_LABEL_PADDING,k=_["default"].SERIES_LABEL_PADDING,O="pie1",R=function(t){function e(i){r(this,e);var n=o(this,t.call(this,i));return n.isCombo=!!i.isCombo,n.isShowOuterLabel=x["default"].isShowOuterLabel(n.options),n.isLabelAlignOuter=x["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 b["default"].getEllipsisText(e,t.legendMaxWidth,t.labelTheme)})},e.prototype._makeValidAngle=function(t,e){return(0,f["default"])(t)?t=e:t<0?t=E-Math.abs(t)%E:t>0&&(t%=E),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?E-(e-i):E},e.prototype._makeSectorData=function(t){var e=this,i=t.cx,n=t.r,r=t.cy,o=u(this.options.radiusRange,1),a=o[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 o=t?t.ratio:0,a=s*o,u=h+a,l=h+a/2,p={start:{startAngle:h,endAngle:h},end:{startAngle:h,endAngle:u}},d={cx:i,cy:r,angle:l};return h=u,{ratio:o,angles:p,centerPosition:e._getArcPosition(Object.assign({r:c},d)),outerPosition:e._getArcPosition(Object.assign({r:n+e.legendLongestWidth/2+D},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/C,10)+1;return e&&t%C===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===O,e=this._calculateBaseSize(),i=0,n=this.isShowOuterLabel;return t&&(n=this.dataProcessor.isComboDonutShowOuterLabel()),i=n?S:w,e*i*this.options.radiusRange[1]/2},e.prototype._calculateCenterXY=function(t){var e=this.layout,i=e.dimension,n=i.width,r=i.height,o=e.position,a=o.top,s=o.left,u=t/2,l=n/2+s,h=r/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*L),top:t.cy-t.r*Math.cos(t.angle*L)}},e.prototype._renderGraph=function(t,e,i){var n=this.showTooltip.bind(this,{allowNegativeTooltip:!!this.allowNegativeTooltip,seriesType:this.seriesType,chartType:this.chartType}),r={showTooltip:n,hideTooltip:this.hideTooltip.bind(this)},o=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}),o.additionalIndex=l,this.graphRenderer.render(i,o,r)},e.prototype.showTooltip=function(t,e,i,n,r){this.eventBus.fire("showTooltip",Object.assign({indexes:{groupIndex:i,index:n},mousePosition:r},t))},e.prototype.hideTooltip=function(){this.eventBus.fire("hideTooltip")},e.prototype._getMaxLengthLegendWidth=function(){var t=this,e=this.legendLabels.map(function(e){return b["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,r=n.showLegend,o=n.showLabel,a=b["default"].getRenderedTextSize(this.legendLabels[0],this.labelTheme.fontSize,this.labelTheme.fontFamily).height,s=b["default"].getRenderedTextSize(this.valueLabels[0],M,this.labelTheme.fontFamily).height;return(this.seriesData.sectorData||[]).map(function(n){var u=n.ratio?Object.assign({},n[t]):null,l=u&&r&&o&&!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-=P:i.left+=P,e.end=i}})},e.prototype._moveToOuterPosition=function(t,e,i){var n=e.end,r=n.left,o=n.top,a=this.graphRenderer.getRenderedLabelWidth(i,this.labelTheme)/2+k;return{left:r<t?r-a:r+a,top:o}},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(),r=function(r,o){var a=void 0,s=Object.assign({},this.theme.label),u=this.ratioValues;this.isLabelAlignOuter&&"legend"===r&&(a=this.theme.colors,s.fontWeight="bold"),s.fontSize="value"===r?16:s.fontSize,e=this._setSeriesPosition(i,o),this.graphRenderer.renderLabels({dataType:r,paper:t,labelSet:n,positions:e,labels:o,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"),r("value",this.decorateLabel(this.valueLabels))),this.options.showLegend){var o=this.isLabelAlignOuter?"outerPosition":"centerPosition";i.positions=this._pickPositionsFromSectorData(o,"legend"),r("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 r=e.index,o=r>-1&&r!==i;n&&!o||(this.onSelectSeries({chartType:this.chartType,indexes:{index:r,legendIndex:e.legendIndex}},o),n&&r>-1&&(this.prevClickedIndex=r))}},e.prototype.onMoveSeries=function(t){this._executeGraphRenderer(t,"moveMouseOnSeries")},e}(m["default"]);s.componentType="series",s.PieChartSeries=R},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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){r(this,e);var n=o(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 r=this.layout,o=r.dimension.height,a=r.position,s=a.top,u=a.left;return{end:{left:u+t*i,top:s+o-e*(n+1),width:t,height:e}}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=this.layout.dimension,n=i.width,r=i.height,o=n/this.dataProcessor.getCategoryCount(!1),a=r/this.dataProcessor.getCategoryCount(!0);return e.map(function(e,i){return e.map(function(e,n){return t._makeBound(o,a,i,n)})})},e.prototype.onShowTooltip=function(t){var e=t.indexes,i=this._getSeriesDataModel(),n=i.getSeriesItem(e.groupIndex,e.index),r=n.ratio,o=n.label;this.eventBus.fire("showWedge",r,o)},e.prototype._renderSeriesLabel=function(t){var e=this,i=this._getSeriesDataModel(),n=this.seriesData.groupBounds,r=this.theme.label,o=this.selectedLegendIndex,a=c["default"].boundsToLabelPositions(i,n,r),s=i.map(function(t){return e.decorateLabel(t.valuesMap.value)});return this.graphRenderer.renderSeriesLabel(t,a,s,r,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];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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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 x(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),g=n(f),m=i(154),y=n(m),_=i(164),v=n(_),x=function(t){function e(i){r(this,e);var n=o(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,r=this._getSeriesDataModel(),o=Object.assign({},this.layout.dimension,this.layout.position),a=r.findSeriesItemsByParent(t);return i=i||o,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],r=null;return i&&n(e)&&(r={end:i}),r},!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 r=t.findParentByDepth(i.id,e.depth+1);r&&r.parent===e.id&&(n=!0)}return n},e.prototype._renderSeriesLabel=function(t){var e=this,i=this._getSeriesDataModel(),n=this._getBoundMap(),r=this.theme.label,o=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=o?o(t.pickLabelTemplateData()):t.label;return e.decorateLabel(i)}),u=g["default"].boundsToLabelPostionsForTreemap(a,n,r);return this.graphRenderer.renderSeriesLabelForTreemap(t,u,s,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];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=x},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(189),o=n(r),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,o["default"])(t,"value"),e,i),r=t.map(function(t){return{id:t.id,weight:t.value*n}}).sort(function(t,e){return e.weight-t.weight});return r},_worst:function(t,e,i,n){var r=t*t,o=n*n;return Math.max(o*i/r,r/(o*e))},_changedStackDirection:function(t,e,i,n){var r=l["default"].min(e),o=l["default"].max(e),a=this._worst(t,r,o,i),s=this._worst(t+n,Math.min(r,n),Math.max(o,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,o["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 r=e.weight/i;return n(r,t,e.id),t+r})},_addBound:function(t,e,i,n,r){this.boundMap[r]={left:t,top:e,width:i,height:n}},_addBoundsForVerticalStack:function(t,e,i,n){var r=this,o=this._calculateFixedSize(i,n,t);this._addBounds(e.top,t,o,function(t,i,n){r._addBound(e.left,i,o,t,n)}),e.left+=o,e.width-=o},_addBoundsForHorizontalStack:function(t,e,i,n){var r=this,o=this._calculateFixedSize(i,n,t);this._addBounds(e.left,t,o,function(t,i,n){r._addBound(i,e.top,t,o,n)}),e.top+=o,e.height-=o},_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),r=this._makeBaseData(e,n.width,n.height),a=[],u=void 0,l=void 0;return this.boundMap={},r.forEach(function(t){var e=(0,o["default"])(a,"weight"),r=s["default"].sum(e);a.length&&i._changedStackDirection(r,e,u,t.weight)&&(l(a,n,u,r),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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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 x(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),g=n(f),m=i(148),y=n(m),_=d["default"].SERIES_EXPAND_SIZE,v=d["default"].TEXT_PADDING,x=function(t){function e(){r(this,e);for(var i=arguments.length,n=Array(i),a=0;a<i;a++)n[a]=arguments[a];var s=o(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,r){var o=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=r,f=void 0;e.left=e.baseLeft+o*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 g=e.left+o-a/2,m=(n.outliers||[]).map(function(t){return{top:s*(1-t.ratio)+p,left:g+a/2}});return{start:{top:c,left:g,width:a,height:0},end:{top:f,left:g,width:a,height:l},min:{top:s*(1-n.minRatio)+p,left:g,width:a,height:0},max:{top:s*(1-n.maxRatio)+p,left:g,width:a,height:0},median:{top:s*(1-n.medianRatio)+p,left:g,width:a,height:0},outliers:m}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=g["default"].isValidStackOption(this.options.stack),n=this.layout.dimension,r=n.width,o=n.height,a=this._makeBaseDataForMakingBound(r,o);return e.map(function(e,n){var r=n*a.groupSize+t.layout.position.left,o={baseLeft:r,left:r,plusTop:0,minusTop:0,prevStack:null},s=t._makeBoxplotChartBound.bind(t,a,o,i);return e.map(s)})},e.prototype._calculateLeftPositionOfSumLabel=function(t,e){var i=t.left,n=t.width,r=y["default"].getRenderedLabelWidth(e,this.theme.label);return i+(n-r+v)/2},e}(l["default"]);c["default"].mixin(x),s.componentType="series",s.BoxplotChartSeries=x},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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 b(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,g=d["default"].BULLET_ACTUAL_HEIGHT_RATIO,m=d["default"].BULLET_TYPE_RANGE,y=d["default"].BULLET_RANGES_HEIGHT_RATIO,_=d["default"].BULLET_TYPE_MARKER,v=d["default"].BULLET_MARKERS_HEIGHT_RATIO,x=d["default"].BULLET_MARKER_DETECT_PADDING,T=d["default"].MAX_HEIGHT_WORD,b=function(t){function e(i){r(this,e);var n=o(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 r=t._makeBulletChartBound.bind(t,i,n),o=e.map(r);return t._updateIterationData(n,i.itemWidth),o})},e.prototype._makeBaseDataForMakingBound=function(){var t=this._getSeriesDataModel().getGroupCount(),e=this.layout,i=e.dimension,n=i.width,r=i.height,o=e.position,a=o.left,s=o.top,u=void 0,l=void 0;this.isVertical?(s+=r,u=n,l=r):(u=r,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,r=void 0;return n===f?r=this._makeBarBound(i,g,t,e):n===m?r=this._makeBarBound(i,y,t,e):n===_&&(r=this._makeLineBound(i,v,t,e)),r.type=n,r},e.prototype._makeBarBound=function(t,e,i,n){var r=t.ratioDistance,o=t.endRatio,a=i.itemWidth*e,s=i.valueAxisWidth*r,u=i.valueAxisWidth*o,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,r){return{top:t.top-r,left:t.left+(e.itemWidth-i)/2,width:i,height:n}},e.prototype._makeHorizontalBarBound=function(t,e,i,n,r){return{top:t.top+(e.itemWidth-i)/2,left:t.left+r-n,width:n,height:i}},e.prototype._makeLineBound=function(t,e,i,n){var r=i.itemWidth,o=i.valueAxisWidth,a=r*e,s=o*t.endRatio,u=x,l=x,h=void 0,c=void 0;return this.isVertical?(h=n.top-s,c=n.left+(r-a)/2,l=a):(h=n.top+(r-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),r=this._calculateLabelPositions(i,e);return this.graphRenderer.renderSeriesLabel(t,r,n,e)},e.prototype._getLabelTexts=function(t){var e=this;return t.map(function(t){var i=[];return t.each(function(t){t.type!==m&&i.push(e.decorateLabel(t.endLabel))}),i})},e.prototype._calculateLabelPositions=function(t,e){var i=this,n=this.seriesData.groupBounds,r=c["default"].getRenderedLabelHeight(T,e);return n.map(function(t){var e=[];return t.forEach(function(t){t.type!==m&&e.push(i._makePositionByBound(t,r))}),e})},e.prototype._makePositionByBound=function(t,e){var i=t.top,n=t.left,r={};if(this.isVertical){var o=t.width||t.length;r.top=i-e,r.left=n+o/2}else{var a=t.width||0,s=t.height||t.length;r.top=i+s/2,r.left=n+5+(a||0)}return r},e}(l["default"]);s.componentType="series",s.BulletChartSeries=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t){return new S(t)}e.__esModule=!0,e["default"]=o;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),g=n(f),m=i(148),y=n(m),_=i(211),v=n(_),x=i(164),T=n(x),b=c["default"].COMPONENT_TYPE_DOM,A=c["default"].MAP_CHART_ZOOM_AREA_HEIGHT,E=c["default"].MAP_CHART_ZOOM_AREA_WIDTH,D=c["default"].CHART_PADDING,C=s["default"].msie&&s["default"].version<=8,S=function(){function t(e){r(this,t),this.className="tui-chart-zoom-area";var i=e.seriesTypes,n=!(!i||!i.length)&&T["default"].isMapChart(i[0]),o=e.dataProcessor.options.legend,a=T["default"].isLegendAlignTop(o.align),s=o.visible!==!1;this.isMapLegendTop=n&&a&&s,this.eventBus=e.eventBus,this.magn=1,this.stackedWheelDelta=0,this.drawingType=b,this._attachToEventBus()}return t.prototype._attachToEventBus=function(){this.eventBus.on("wheel",this.onWheel,this)},t.prototype.render=function(t){var e=void 0;if(!C){var i=g["default"].sum([t.positionMap.series.top,-A,E]);this.isMapLegendTop&&(i=t.positionMap.legend.top-E);var n={top:i,right:D};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"),r=this._calculateMagn(n);return r>5?this.magn=5:r<1?this.magn=1:r>=1&&this._zoom(r),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}();o.componentType="zoom"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(224),o=n(r),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:o["default"].template(a.HTML_SERIES_LABEL),tplCssText:o["default"].template(a.TEXT_CSS_TEXT),tplCssTextForLineType:o["default"].template(a.TEXT_CSS_TEXT_FOR_LINE_TYPE),ZOOM_BUTTONS:a.HTML_ZOOM_BUTTONS,tplSeriesBlock:o["default"].template(a.HTML_SERIES_BLOCK)}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}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 o(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,r=!1,o=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){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}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),g=i(137),m=n(g),y=i(157),_=n(y),v=i(261),x=n(v),T=i(154),b=n(T),A=i(262),E=n(A),D=i(263),C=n(D),S=i(267),w=n(S),L=i(269),M=n(L),P=i(270),k=n(P),O=i(264),R=n(O),I=i(181),B=n(I),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,r,s){o(this,e);var u=a(this,t.call(this));return u.originalRawData=W["default"].deepCopy(i),u.chartType=n,u.options=r,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,m["default"])(t)||i.push(t[0])})}),i=[].concat(r(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(r(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),r=n[0],o=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,r,o)}),a.categories&&(a.categories=a.categories.slice(r,o+1)),a},e.prototype._filterSeriesDataByValue=function(t,e,i){var n=F["default"].isDatetimeType(this.options.xAxis.type),o=[].concat(r(t));return o.forEach(function(t){t.data=t.data.filter(function(t){var r=n?new Date(t[0]):t[0];return r>=e&&r<=i})}),o},e.prototype._filterRawDataByValue=function(t,e){var i=this,n=u(e,2),r=n[0],o=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,r,o)}),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,x["default"])(String(t))})},e.prototype._mapCategories=function(t,e){var i=this,n=e+"Axis",r=this.options[n]||{},o=!1;return o=(0,p["default"])(r)?r.filter(function(t){return t.type&&F["default"].isDatetimeType(t.type)}):r.type&&F["default"].isDatetimeType(r.type),t=o?t.map(function(t){return i.chageDatetypeToTimestamp(t)}):this._escapeCategories(t),this.categoriesIsDateTime[e]=o,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(),r=null;return i.forEach(function(i,o){return n&&(t=e.chageDatetypeToTimestamp(t)),i===t&&(r=o),(0,m["default"])(r)}),r},e.prototype.findAbsoluteCategoryIndex=function(t){var e=this.originalRawData?this.originalRawData.categories:null,i=-1;return e?(e.forEach(function(e,n){var r=e===t;return r&&(i=n),!r}),i):i},e.prototype._getTooltipCategory=function(t,e){var i=this.getCategory(t,e),n=e?"yAxis":"xAxis",r=this.options[n]||{},o=this.options.tooltip||{};return F["default"].isDatetimeType(o.type)?i=H["default"].formatDate(i,o.dateFormat):F["default"].isDatetimeType(r.type)&&(i=H["default"].formatDate(i,r.dateFormat)),i},e.prototype.makeTooltipCategory=function(t,e,i){var n=!i,r=this._getTooltipCategory(t,n),o=this.getCategoryCount(!n);return o&&(r+=", "+this._getTooltipCategory(o-e-1,!n)),r},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)?w["default"]:F["default"].isTreemapChart(this.chartType)?k["default"]:F["default"].isBulletChart(this.chartType)?M["default"]:C["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,r){n._pushValue(t,e[r],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),r=n[0],o=n[1];e._pushValues(o,t[r],r)})},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],r=i[1];t._shiftValues(r,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 R["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,r=this.options,o=r.plot,a=r[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&&o){var d=this.getValuesFromPlotOptions(o,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,m["default"])(t)&&t.name?(0,x["default"])(t.name):null},e.prototype._isVisibleLegend=function(t){var e=!0;return((0,m["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),r=e[0],o=e[1],a=o.map(n);(0,f["default"])(a)&&(i[r]=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],o=void 0;(0,p["default"])(e)?(o=[this.chartType],o[this.chartType]=e):(n=this.seriesTypes,o=e);var a=n.map(function(t){return o[t].map(function(e,n){var r=(0,p["default"])(i[t]);return{chartType:t,label:e,visible:r?i[t][n]:i[n]}})});return(t=[]).concat.apply(t,r(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,r){var o=void 0;return F["default"].isComboChart(this.chartType)&&e?(o=this.getValues(this.chartType,n),F["default"].isNormalStackChart(t,i)&&(o=o.concat(this._createBaseValuesForNormalStackedChart(t)))):o=F["default"].isTreemapChart(t)?this.getValues(t,"colorValue"):F["default"].isNormalStackChart(t,i)?this._createBaseValuesForNormalStackedChart(t):this.getValues(t,n,r),o},e.prototype.findOverflowItem=function(t,e){var i=this.getSeriesDataModel(t),n=i.getMaxValue("r"),r=function(t){return t.r/n>b["default"].HALF_RATIO};return{minItem:i.findMinSeriesItem(e,r),maxItem:i.findMaxSeriesItem(e,r)}},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}(E["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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(187),a=n(o),s=i(156),u=n(s),l=i(152),h=n(l),c=i(158),p=n(c),d=i(148),f=n(d),g=i(173),m=n(g),y=function(){function t(){r(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),r=this.getFormatFunctions();return f["default"].formatValue({value:n,formatFunctions:r,chartType:t,areaType:e,valueType:i})},t.prototype.getFormattedMinValue=function(t,e,i){var n=this.getMinValue(t,i),r=this.getFormatFunctions();return f["default"].formatValue({value:n,formatFunctions:r,chartType:t,areaType:e,valueType:i})},t.prototype._pickMaxLenUnderPoint=function(t){var e=0;return t.forEach(function(t){var i=m["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 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 o(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,r=!1,o=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){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}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),g=i(265),m=n(g),y=i(266),_=n(y),v=i(164),x=n(v),T=i(173),b=n(T),A=i(158),E=n(A),D=Array.prototype.concat,C=function(){function t(e,i,n,r,a){o(this,t),this.chartType=i,this.options=n||{},this.formatFunctions=r,this.rawSeriesData=e||[],this.isCoordinateType=a,this.baseGroups=null,this.groups=null,this.options.series=this.options.series||{},this.isDivergingChart=x["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=x["default"].isAllowRangeData(this.chartType)&&!x["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=D.apply(e),r=a(n,1);t.data[i]=r[0]}})})},t.prototype._createBaseGroups=function(){var t=this.chartType,e=this.formatFunctions,i=this.isDivergingChart,n=this.isCoordinateType,r=this.options.xAxis,o=x["default"].isPieChart(this.chartType),a=x["default"].isHeatmapChart(this.chartType)||x["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=m["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||o)&&(d=d.filter(h["default"]));var g=d.map(function(n,o){return new l({datum:n,chartType:t,formatFunctions:e,index:o,legendName:f,stack:p,isDivergingChart:i,xAxisType:r.type,dateFormat:r.dateFormat})});return s(g),g})},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=E["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 E["default"].min(this.getValues(t))},t.prototype.getMaxValue=function(t){return E["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,r(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=b["default"].sumPlusValues(t),i=Math.abs(b["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=b["default"].sumPlusValues(e),n=Math.abs(b["default"].sumMinusValues(e));t.addRatiosWhenDivergingStacked(i,n)})},t.prototype._makeSubtractionValue=function(t){var e=x["default"].allowMinusPointRender(this.chartType),i=0;return!e&&x["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=x["default"].isAllowedStackOption(this.chartType);i&&x["default"].isNormalStack(e)?this._addRatiosWhenNormalStacked(t):i&&x["default"].isPercentStack(e)?this.isDivergingChart?this._addRatiosWhenDivergingStacked():this._addRatiosWhenPercentStacked():this._addRatios(t)},t.prototype.addDataRatiosOfPieChart=function(){this.each(function(t){var e=b["default"].sum(t.pluck("value"));t.addRatios(e)})},t.prototype.addDataRatiosForCoordinateType=function(t,e){var i=t.xAxis,n=t.yAxis,r=e?E["default"].max(this.getValues("r")):0,o=void 0,a=void 0,s=void 0,u=void 0;i&&(o=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",o,a),t.addRatio("y",s,u),t.addRatio("r",r,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"]=C},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,r=!1,o=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){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}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){r(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=o(t,2),n=i[0],r=i[1];e[n]=c["default"].sum(r.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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,r=!1,o=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){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}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),g=n(f),m=i(164),y=n(m),_=function(){function t(e){r(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),r=n.length>1,a=o(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,r&&(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=g["default"].calculateRatio(this.value,t,e,i),(0,s["default"])(this.start)&&(this.startRatio=g["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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,r=!1,o=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){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}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),g=n(f),m=i(148),y=n(m),_=function(){function t(e){r(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,g["default"].isBubbleChart(this.chartType)){var n=o(t,4);this.r=n[2];var r=n[3];this.label=void 0===r?"":r}else{var a=o(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(g["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){g["default"].isLineTypeChart(this.chartType)&&g["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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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){r(this,e);var u=o(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),r=n.map(function(n,r){return new u["default"]({datum:n,chartType:t,formatFunctions:e,index:r,legendName:i.name})});return r})},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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,r=!1,o=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){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}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){r(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),r=o(n,5),a=r[0],s=r[1],u=r[2],l=r[3],h=r[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(r){r.ratio=n(r.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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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 r(this,e),o(this,t.apply(this,arguments))}return a(e,t),e.prototype._createBaseGroups=function(){var t=this.chartType,e=this.formatFunctions,i=0,n=0,r=this.rawSeriesData.map(function(r){var o=[],a=r.data,s=r.markers,l=r.ranges,h=s.length,c=l.length;return l&&c&&(l.forEach(function(i){o.push(new u["default"]({datum:i,chartType:t,formatFunctions:e,type:p["default"].BULLET_TYPE_RANGE}))}),i=Math.max(i,c)),a&&o.push(new u["default"]({datum:a,chartType:t,formatFunctions:e,type:p["default"].BULLET_TYPE_ACTUAL})),s&&h&&(s.forEach(function(i){o.push(new u["default"]({datum:i,chartType:t,formabutFunctions:e,type:p["default"].BULLET_TYPE_MARKER}))}),n=Math.max(n,h)),o});return this.maxMarkerCount=n,this.maxRangeCount=i,r},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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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,r=!1,o=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){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}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),g=n(f),m=i(263),y=n(m),_=i(271),v=n(_),x=i(154),T=n(x),b=i(173),A=n(b),E=function(t){function e(){r(this,e);for(var i=arguments.length,n=Array(i),a=0;a<i;a++)n[a]=arguments[a];var s=o(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,r=[],o=void 0;return e?o=e+"_":(o=T["default"].TREEMAP_ID_PREFIX,e=T["default"].TREEMAP_ROOT_ID),i=i||[],t.forEach(function(t,a){var s=o+a,u=t.children,l=i.concat(a);t.indexes=l,(0,d["default"])(t.value)||r.push(t),t.id||(t.id=s),t.parent||(t.parent=e),u&&(r=r.concat(n._flattenHierarchicalData(u,s,l)),delete t.children)}),r},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 r=this,o=this._partitionRawSeriesDataByParent(t,i),a=s(o,1),u=a[0],h=s(o,2),c=h[1],p=e+1;return u.forEach(function(t,i){t.depth=e,t.group=(0,g["default"])(n)?i:n;var o=r._setTreeProperties(c,p,t.id,t.group,t.fillOpacity),a=o.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,o.length&&o.sort(function(t,e){return e.value-t.value}),u=u.concat(o)}),u},e.prototype._setRatio=function(t,e){var i=this,n=this._partitionRawSeriesDataByParent(t,e),r=s(n,2),o=r[0],a=r[1],u=A["default"].sum((0,l["default"])(o,"value"));o.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,T["default"].TREEMAP_ROOT_ID),this._setRatio(n,T["default"].TREEMAP_ROOT_ID),[n.map(function(n){var r=new v["default"](n,i,t);return e[r.id]=r,r})]},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(T["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(T["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(T["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"]=E},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(173),a=n(o),s=i(148),u=n(s),l=i(146),h=n(l),c=function(){function t(e,i,n){r(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"}),r=n,o={legend:this.label||"",value:n,label:r,ratio:this.ratio,tooltipColorIndex:this.indexes[0]};return(0,h["default"])(i)&&(o.colorValue=u["default"].formatValue({value:i,formatFunctions:t,chartType:e,areaType:"tooltipColorValue"}),o.colorRatio=this.colorRatio),o},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 r=i(273),o=n(r),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 o["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,r){var o=t.get(n),a=null,s=[];if(o){var u=i[n];u&&(a=u.limit,s=u.labels),e.registerYAxisDimension({limit:a,axisName:n,options:o.options,theme:o.theme,yAxisLabels:s,isVertical:r})}},_setLayoutBoundsAndScale:function(t,e,i,n,r){var o=r.options,a=r.scaleOption,s=void 0===a?{}:a,u=r.addingDataMode,h=r.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,r.options.yAxis),s.rightYAxis&&this.addYAxisScale(n,"rightYAxis",s.rightYAxis),s.legend&&n.addScale("legend",{},{chartType:r.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",o.xAxis,{valueType:s.xAxis.valueType||"value"},s.xAxis.additionalOptions),r.hasAxes&&n.setAxisDataMap(),i.registerSeriesDimension(),e.has("circleLegend")&&o.circleLegend.visible&&i.registerCircleLegendDimension(n.axisDataMap),e.has("xAxis")&&(c["default"].isAutoTickInterval(o.xAxis.tickInterval)&&n.updateXAxisDataForAutoTickInterval(r.prevXAxisData,u),n.updateXAxisDataForLabel(u)),i.registerBoundsData(n.axisDataMap.xAxis)},build:function(t,e,i){var n=this._createBoundsModel(t,i),r=this._createScaleDataModel(t,n,i);this._setLayoutBoundsAndScale(t,e,n,r,i);var o={dimensionMap:n.dimensionMap,positionMap:n.positionMap,limitMap:r.makeLimitMap(i.seriesTypes||[i.chartType],i.isVertical)};return r.axisDataMap&&(o.axisDataMap=r.axisDataMap),c["default"].isBubbleChart(i.chartType)&&(o.maxRadius=n.calculateMaxRadius(r.axisDataMap)),r.scaleDataMap.legend&&(o.legendScaleData=r.scaleDataMap.legend),o}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(153),a=n(o),s=i(140),u=n(s),l=i(146),h=n(l),c=i(189),p=n(c),d=i(154),f=n(d),g=i(164),m=n(g),y=i(148),_=n(y),v=i(143),x=n(v),T=i(274),b=n(T),A=i(275),E=n(A),D=i(276),C=n(D),S=i(277),w=n(S),L=i(278),M=n(L),P=f["default"].LEGEND_AREA_H_PADDING,k=a["default"].msie&&a["default"].version<=8,O=function(){function t(e){r(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?x["default"].getRenderedTextSize(t.title.text,i.fontSize,i.fontFamily).height:0,r=n||0;r&&(r+=f["default"].TITLE_PADDING),this._registerDimension("title",{height:r})},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:E["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,r=C["default"].calculate(e,i,t,n);this._registerDimension("legend",r)},t.prototype.registerSpectrumLegendDimension=function(t){var e=t?t.max:this.dataProcessor.getFormattedMaxValue(this.chartType,"legend"),i=t?t.min:"",n=this.theme.label,r=this.options.legend.align,o=void 0;if(m["default"].isHorizontalLegend(r)){var a=m["default"].isBoxTypeChart(this.chartType),s=m["default"].isLegendAlignTop(r);o=M["default"]._makeHorizontalDimension(e,n,a,s)}else o=M["default"]._makeVerticalDimension(e,i,n);this._registerDimension("legend",o),this.useSpectrumLegend=!0},t.prototype.registerYAxisDimension=function(t){var e=t.limit,i=t.options,n=t.theme,r=t.yAxisLabels,o=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(!m["default"].isHeatmapChart(this.chartType)&&o)return;l=this.dataProcessor.getCategories(!0)}h=(0,u["default"])(i)?"yAxis"===a?i[0]:i[1]:i,this._registerDimension(a,{width:E["default"].calculateYAxisWidth(l,h,n,r,s)})},t.prototype.calculateSeriesWidth=function(){var t=this.dataProcessor.getFormattedMaxValue(this.chartType,"series","value"),e=this.getDimensionMap(["chart","yAxis","legend","rightYAxis"]),i=0;m["default"].isColumnTypeChart(this.chartType)||(i=_["default"].getRenderedLabelHeight(t,this.theme.title));var n=w["default"].calculateWidth(e,this.options.legend,i);return m["default"].isMapChart(this.chartType)&&!k&&(n-=f["default"].MAP_CHART_ZOOM_AREA_WIDTH+P),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)),w["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;m["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"),r=this.theme.chart.fontFamily,o=b["default"].calculateCircleLegendWidth(e,t,n,r),a=void 0;a=m["default"].isVerticalLegend(i.align)&&i.visible?this.getDimension("legend").width:0,o=Math.min(o,Math.max(a,f["default"].MIN_LEGEND_WIDTH));var s=o-a;this._registerDimension("circleLegend",{width:o,height:o}),s>0&&this._updateLegendAndSeriesWidth(o,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,r=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+r-f["default"].OVERLAPPING_WIDTH}},t.prototype._makeLegendPosition=function(){var t=this.dimensionMap,e=t.series,i=this.getPosition("series").top,n=this.options.legend,r=0,o=void 0,a=void 0;return m["default"].isHorizontalLegend(n.align)?(a=(this.getDimension("chart").width-this.getDimension("legend").width)/2,r=m["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):(m["default"].isLegendAlignLeft(n.align)?a=this.chartLeftPadding:(o=this.getDimension("yAxis").width+this.getDimension("rightYAxis").width,a=this.chartLeftPadding+o+e.width),r=i+f["default"].SERIES_AREA_V_PADDING),{top:r,left:a}},t.prototype._makeSpectrumLegendPosition=function(){var t=this.options.legend,e=this.options.legend.align,i=this.getPosition("series"),n=this.getDimension("series"),r=this.getDimension("legend"),o=void 0,a=void 0,s=void 0;m["default"].isHorizontalLegend(e)?(a=(this.getDimension("chart").width-r.width)/2,o=m["default"].isLegendAlignTop(e)?i.top-r.height:i.top+n.height+this.getDimension("xAxis").height):(m["default"].isLegendAlignLeft(t.align)?a=this.chartLeftPadding:(s=this.getDimension("chart").width-this.chartLeftPadding,a=s-this.getDimension("legend").width),o=m["default"].isBoxTypeChart(this.chartType)?i.top:i.top+.75*f["default"].MAP_CHART_ZOOM_AREA_HEIGHT);var u={top:o,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,r=void 0,o=void 0;return r=m["default"].isLegendAlignLeft(n.align)?0:t.left+e.width,m["default"].isVerticalLegend(n.align)&&n.visible&&(o=this.getDimension("legend").width+f["default"].CHART_PADDING,r+=(o-i.width)/2),{top:t.top+e.height-i.height,left:r}},t.prototype._isNeedExpansionSeries=function(){var t=this.chartType;return!(m["default"].isPieChart(t)||m["default"].isMapChart(t)||m["default"].isTreemapChart(t)||m["default"].isRadialChart(t)||m["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"),r=m["default"].isLegendAlignTop(e)&&i,o=m["default"].isLegendAlignLeft(e)&&i,a=r?n.height:0,s=o?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");m["default"].isHorizontalLegend(t)&&e.width>i.width?e.width=i.width:m["default"].isVerticalLegend(t)&&(m["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 b["default"].calculateMaxRadius(e,t,i)},t}();e["default"]=O},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(154),o=n(r),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:o["default"].CIRCLE_LEGEND_LABEL_FONT_SIZE,fontFamily:e})},calculateCircleLegendWidth:function(t,e,i,n){var r=this._calculateRadiusByAxisData(t,e),a=this._getCircleLegendLabelMaxWidth(i,n);return Math.max(2*r,a)+o["default"].CIRCLE_LEGEND_PADDING},calculateMaxRadius:function(t,e,i){var n=this._calculateRadiusByAxisData(t.series,e),r=t.circleLegend.width;return i?Math.min((r-o["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 r=i(154),o=n(r),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,r=n?n+o["default"].X_AXIS_TITLE_PADDING:0,a=t.labelMargin||0,s=l["default"].getRenderedLabelHeight(o["default"].MAX_HEIGHT_WORD,e.label),u=r+o["default"].X_AXIS_LABEL_PADDING;return a>0&&(u+=a),t.showLabel!==!1&&(u+=s),u},calculateYAxisWidth:function(t,e,i,n,r){var a=e.labelMargin,u=e.prefix,h=e.suffix,c=e.isCenter,p=e.type,d=e.dateFormat,f=e.showLabel,g=e.title,m=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+=o["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,m)),g&&(y=l["default"].getRenderedLabelWidth(g.text,i.title)),v+=(r?Math.max(_,y):_)+o["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 r=i(154),o=n(r),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=o["default"].LEGEND_CHECKBOX_SIZE,g=o["default"].LEGEND_ICON_WIDTH,m=o["default"].LEGEND_LABEL_LEFT_PADDING,y=o["default"].LEGEND_V_LABEL_RIGHT_PADDING,_=o["default"].LEGEND_H_LABEL_RIGHT_PADDING,v=o["default"].LEGEND_AREA_H_PADDING;e["default"]={_calculateLegendsWidth:function(t,e,i,n){var r=l["default"].sum([v,i,g,m]);return t.map(function(t){var i=c["default"].getRenderedLabelWidth(t,e);return n&&i>n&&(i=n),i+=r,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 r=this,o=[],a=t.map(function(t){var a=r._calculateLegendsWidth(t,e,i,n),s=l["default"].sum(a);return o=o.concat(a),s=s-_+v});return{labelWidthArr:o,legendWidths:a}},_makeDividedLabelsAndMaxLineWidth:function(t,e,i,n,r){var o=Number.MAX_VALUE,a=1,s=0,u=void 0,l=void 0,h=void 0;do{o=Math.round(t.length/a),u=this._divideLegendLabels(t,o);var c=this._getLegendWidthInfo(u,i,n,r);if(l=c.legendWidths,h=c.labelWidthArr,s=d["default"].max(l),1===o)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=[],r=t.length-1,o=0,a=[];return t.forEach(function(t,s){var u=e[s],l=v-_,h=o+u+l;h<=i?a.push(t):(n.push(a),a=[t],o=0),o+=u,r===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(o["default"].LEGEND_CHECKBOX_SIZE,i),o["default"].LINE_MARGIN_TOP]),r=n*t.length-o["default"].LINE_MARGIN_TOP+o["default"].SERIES_AREA_V_PADDING;return r},_makeHorizontalDimension:function(t,e,i,n,r){var a=this._makeDividedLabelsAndMaxLineWidth(e,i,t,n,r),s=this._calculateHorizontalLegendHeight(a.labels,t),u=s+o["default"].SERIES_AREA_V_PADDING;return{width:Math.max(a.maxLineWidth,o["default"].MIN_LEGEND_WIDTH),height:u}},_makeVerticalDimension:function(t,e,i,n){var r=c["default"].getRenderedLabelsMaxWidth(e,t),o=0;return n&&r>n&&(r=n),o=l["default"].sum([2*v,i,g,m,r,y]),{width:o,height:0}},calculate:function(t,e,i,n){var r=t.showCheckbox===!1?0:f+m,o=t.maxWidth,a={};return t.visible?a=s["default"].isHorizontalLegend(t.align)?this._makeHorizontalDimension(e,i,n,r,o):this._makeVerticalDimension(e,i,r,o):a.width=0,a}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(154),o=n(r),a=i(164),s=n(a);e["default"]={calculateWidth:function(t,e,i){var n=t.chart.width,r=t.yAxis,a=t.rightYAxis,u=t.legend,l=r.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*o["default"].CHART_PADDING-l-c-p},calculateHeight:function(t,e,i){var n=t.chart.height,r=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)-o["default"].TITLE_PADDING),h=r+l,c=s["default"].isLegendAlignBottom(e.align)?a:0,p=t.xAxis.height+c;return n-2*o["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 r=i(154),o=n(r),a=i(148),s=n(a),u=i(173),l=n(u),h=o["default"].MAP_LEGEND_TOOLTIP_HORIZONTAL_PADDING,c=o["default"].MAP_LEGEND_WEDGE_SIZE,p=o["default"].MAP_LEGEND_AREA_PADDING_WIDE,d=o["default"].MAP_LEGEND_PADDING_BTW_GRAPH_AND_WEDGE,f=o["default"].MAP_LEGEND_GRAPH_SIZE,g=o["default"].MAP_LEGEND_LABEL_PADDING,m=o["default"].VERTICAL_MAP_LEGEND_HEIGHT,y=o["default"].MAP_LEGEND_TOOLTIP_VERTICAL_PADDING,_=o["default"].MAP_LEGEND_AREA_PADDING_NARROW,v=o["default"].HORIZONTAL_MAP_LEGEND_WIDTH;e["default"]={_makeVerticalDimension:function(t,e,i){var n=s["default"].getRenderedLabelWidth(t,i),r=s["default"].getRenderedLabelWidth(e,i),o=s["default"].getRenderedLabelWidth(t,i),a=l["default"].sum([2*h,o,c]);return{width:l["default"].sum([p,a,d,f,g,Math.max(n,r)]),height:m}},_makeHorizontalDimension:function(t,e,i,n){var r=s["default"].getRenderedLabelHeight(t,e),o=l["default"].sum([2*y,r,c]),a=i?_:p,u=n?p:0;return{width:v,height:l["default"].sum([a,o,d,f,g,r,g,u])}}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(140),a=n(o),s=i(137),u=n(s),l=i(280),h=n(l),c=i(282),p=n(c),d=i(283),f=n(d),g=i(164),m=n(g),y=i(148),_=n(y),v=function(){function t(e){r(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 r=t.chartType,o="xAxis"!==t.areaType,a=this.dataProcessor.createBaseValuesForLimit(r,n.isSingleYAxis,e.stack,t.valueType,t.areaType),s=this.boundsModel.getBaseSizeForLimit(o),u=Object.assign(e,{isVertical:o,limitOption:this._pickLimitOption(i),tickCounts:n.tickCounts,showLabel:this.options.series.showLabel});return m["default"].isBubbleChart(r)&&(u.overflowItem=this.dataProcessor.findOverflowItem(r,t.valueType)),(m["default"].isMapChart(r)||m["default"].isHeatmapChart(r)||m["default"].isTreemapChart(r))&&(u.useSpectrumLegend=!0),h["default"].makeScaleData(a,s,r,u)},t.prototype._createScaleLabels=function(t,e,i,n){var r=this.dataProcessor.getFormatFunctions(),o=Object.assign(i,{dateFormat:n});return p["default"].createFormattedLabels(t,e,o,r)},t.prototype._createScaleData=function(t,e,i){var n=this.options.series,r=e.chartType||this.chartType;e.chartType=r,n=n[r]||n;var o={stack:i.stack||n.stack,diverging:n.diverging,type:t.type},a=this._createBaseScaleData(e,o,t,i);return Object.assign(a,{labels:this._createScaleLabels(a,e,o,t.dateFormat),axisOptions:t})},t.prototype._createValueAxisData=function(t,e,i,n,r){var o=this.dataProcessor.hasCategories(),a=!n&&!o&&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:!!r});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,r){var o=t.categories||this.dataProcessor.getCategories(n);return f["default"].makeLabelAxisData({labels:o,options:t,labelTheme:e,aligned:i,isVertical:!!n,isPositionRight:!!r,addedDataCount:this.options.series.shifting?this.addedDataCount:0})},t.prototype._createAxisData=function(t,e,i,n,r){var o=m["default"].isLineTypeChart(this.chartType,this.seriesTypes)&&!e.pointOnColumn,a=void 0;return a=t?this._createValueAxisData(t,i,o,n,r):this._createLabelAxisData(e,i,o,n,r)},t.prototype._createAxesData=function(){var t=this.scaleDataMap,e=this.options,i=this.theme,n=(0,a["default"])(e.yAxis)?e.yAxis:[e.yAxis],r={};return r.xAxis=this._createAxisData(t.xAxis,e.xAxis,i.xAxis.label),r.yAxis=this._createAxisData(t.yAxis,n[0],i.yAxis.label,!0),this.hasRightYAxis&&(r.rightYAxis=this._createAxisData(t.rightYAxis,n[1],i.yAxis.label,!0,!0),r.rightYAxis.aligned||(r.rightYAxis.aligned=r.yAxis.aligned)),r},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,r=this.axisDataMap.xAxis,o=this.boundsModel.getDimension("series").width,a=this.addedDataCount;i||!t||n?f["default"].updateLabelAxisDataForAutoTickInterval(r,o,a,e):f["default"].updateLabelAxisDataForStackingDynamicData(r,t,this.firstTickCount),this.firstTickCount||(this.firstTickCount=r.tickCount)},t.prototype.updateXAxisDataForLabel=function(t){var e=this.axisDataMap.xAxis,i=this.boundsModel.getDimensionMap(["series","yAxis","chart"]),n=e.isLabelAxis,r=this.theme.xAxis.label,o=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});o=(0,u["default"])(this.prevValidLabelCount)?l.length:this.prevValidLabelCount,this.options.yAxis.isCenter&&(o+=1,i.yAxis.width=0),a=e.options.rotateLabel===!1?f["default"].makeAdditionalDataForMultilineLabels(s,o,r,n,i):f["default"].makeAdditionalDataForRotatedLabels(l,o,r,n,i),this.prevValidLabelCount=o,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,r={};return n.xAxis&&(r.xAxis=n.xAxis.limit),n.yAxis&&(r.yAxis=n.yAxis.limit),n.rightYAxis&&(r.rightYAxis=n.rightYAxis.limit),n.legend&&(r.legend=n.legend.limit),t.forEach(function(t,n){r[t]=i._findLimit(r,n,e)}),r},t}();e["default"]=v},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,r=!1,o=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){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}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")}}(),o=i(154),a=n(o),s=i(164),u=n(s),l=i(173),h=n(l),c=i(158),p=n(c),d=i(281),f=n(d),g=i(146),m=n(g),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,r=t.max;return i.min&&(n=h["default"].subtract(n,e)),i.max&&(r=h["default"].add(r,e)),{min:n,max:r}},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,r=this.millisecondMap,o=n.length-1,s=void 0;return i?n.every(function(t,a){var u=r[t],l=Math.floor(i/u),h=void 0;return l&&(h=a<o&&l<2&&l<e?a+1:a,s=n[h]),!(0,m["default"])(h)}):s=a["default"].DATE_TYPE_SECOND,s},_makeDatetimeInfo:function(t,e){var i=this._findDateType(t,e),n=this.millisecondMap[i],r=h["default"].divide(t.min,n),o=h["default"].divide(t.max,n),a=o-r;return{divisionNumber:n,minDate:r,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=r(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),r=n.dataLimit;i&&(r=this._makeLimitForDivergingOption(r));var o=(0,f["default"])({min:r.min,max:r.max,offsetSize:e,minimumStepSize:1});return o=this._restoreScaleToDatetimeType(o,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,r=e.useSpectrumLegend,o=t.baseSize,a=t.overflowItem,s=t.chartType,l=this._getLimitSafely(t.baseValues),h=(0,m["default"])(n.min),c=(0,m["default"])(n.max),p=l.min,d=l.max,g=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:o});return r||(g=this._isOverflowed(a,_,l,h,c)),g&&!u["default"].isMapTypeChart(s)&&(_.limit=this._adjustLimitForOverflow(_.limit,_.step,g)),t.isDiverging&&(_.limit=this._makeLimitForDivergingOption(_.limit)),_},_isOverflowed:function(t,e,i,n,r){var o=!(!t||!t.minItem),a=!(!t||!t.maxItem),s=e.limit,u=o||!n&&s.min===i.min&&0!==s.min,l=a||!r&&s.max===i.max&&0!==s.max;return u||l?{min:u,max:l}:null},makeScaleData:function(t,e,i,n){var r=void 0,o=u["default"].isDivergingChart(i,n.diverging),a=n.overflowItem;return u["default"].isPercentStackChart(i,n.stack)?r=this._calculatePercentStackedScale(t,o):u["default"].isDatetimeType(n.type)?r=this._calculateDatetimeScale(t,e,o):(u["default"].isRadialChart(i)&&(n.stepCount=Math.floor(e/100)),r=this._calculateCoordinateScale({baseValues:t,baseSize:e,overflowItem:a,isDiverging:o,chartType:i,options:n})),r}};e["default"]=y},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){var e=0===t?1:Math.log(Math.abs(t))/Math.LN10;return Math.pow(10,Math.floor(e))}function o(t){for(var e=void 0,i=0,n=f.length;i<n;i+=1){e=f[i];var r=(e+(f[i+1]||e))/2;if(t<=r)break}return e}function a(t){var e=r(t),i=t/e;return o(i)*e}function s(t,e,i,n){var o=Math.min(r(e),r(i)),a=o>1?1:1/o,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(r(t),r(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),r=Math.abs(n.max-n.min),o=u(r,i);return{limit:{min:n.min,max:n.max},step:i,stepCount:o}}function h(t,e,i,n,r){var o=Math.abs(e-t),a=o/i;n||(n=Math.ceil(i/g));var s=i/n,u=a*s;return(0,d["default"])(r)&&u<r&&(u=r,n=o/u),{limit:{min:t,max:e},step:u,stepCount:n}}function c(t){var e=t.min,i=t.max,n=t.offsetSize,r=t.stepCount,o=t.minimumStepSize,a=t.showLabel,s=h(e,i,n,r,o);return s=l(s,a)}e.__esModule=!0;var p=i(150),d=n(p),f=[1,2,5,10],g=88;e["default"]=c},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(164),o=n(r),a=i(173),s=n(a),u=i(148),l=n(u),h={_getFormatFunctions:function(t,e,i){return o["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 o["default"].isDivergingChart(e,i)?n.map(Math.abs):n},createFormattedLabels:function(t,e,i,n){var r=e.chartType,a=e.areaType,s=e.valueType,u=i.diverging,h=i.type,c=i.dateFormat,p=i.stack,d=this._createScaleValues(t,r,u),f=void 0;return o["default"].isDatetimeType(h)?f=l["default"].formatDates(d,c):(n=this._getFormatFunctions(r,p,n),f=l["default"].formatValues(d,n,{chartType:r,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 r=function(){function t(t,e){var i=[],n=!0,r=!1,o=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){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}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")}}(),o=i(144),a=n(o),s=i(154),u=n(s),l=i(164),h=n(l),c=i(205),p=n(c),d=i(173),f=n(d),g=i(148),m=n(g),y=i(158),_=n(y),v=90,x=121,T=5,b={_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,r=t.labels;return h["default"].isValidLabelInterval(i.labelInterval,i.tickInterval)&&t.labels.length>i.labelInterval&&(r=this._makeLabelsByIntervalOption(t.labels,i.labelInterval,t.addedDataCount)),h["default"].isDatetimeType(i.type)&&(r=m["default"].formatDates(r,i.dateFormat)),t.aligned||(n+=1),{labels:r,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,r=t.step,o=t.options,a=t.isVertical,s=t.isPositionRight,u=t.aligned,l={labels:e,tickCount:i,limit:n,step:r,options:o,validTickCount:i,dataMin:n.min,distance:n.max-n.min,isVertical:!!a,isPositionRight:!!s,aligned:!!u};return l},makeAdditionalDataForCoordinateLineType:function(t,e,i,n,r){var o=_["default"].min(e),a=_["default"].max(e),s=a-o,u=0,l=1;return s&&(i.min<o&&(i.min+=n,u=(i.min-o)/s,l-=u,r-=1,t.shift()),i.max>a&&(i.max-=n,l-=(a-i.max)/s,r-=1,t.pop())),{labels:t,tickCount:r,limit:i,distance:s,positionRatio:u,sizeRatio:l,validTickCount:r,dataMin:o}},_makeAdjustingIntervalInfo:function(t,e,i){var n=void 0,r=parseInt(e/i,10),o=null,a=parseInt(t/r,10);return a>1&&(n=t-a*r,n>=a&&(r+=parseInt(n/a,0),n%=a),o={blockCount:r,beforeRemainBlockCount:n,interval:a}),o},_makeCandidatesForAdjustingInterval:function(t,e){var i=this,n=[],r=f["default"].divisors(t);if(r.forEach(function(i){var r=i/t*e;r>=v&&r<=x&&n.push({interval:i,blockCount:t/i,beforeRemainBlockCount:0})}),0===n.length){var o=(0,a["default"])(v,x,T);n=o.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 r=t.tickCount-1,o=this._calculateAdjustingIntervalInfo(r,e);if(o){t.eventTickCount=t.tickCount;var a=o.blockCount,s=o.beforeRemainBlockCount,u=o.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/r,sizeRatio:1-s/r,remainLastBlockInterval:s})}},updateLabelAxisDataForStackingDynamicData:function(t,e,i){var n=e.interval,r=e.startIndex,o=t.tickCount-1,a=i?i-1:0,s=o/n;a&&2*a<=s&&(n*=2),t.labels=this._makeFilteredLabelsByInterval(t.labels,r,n),s=t.labels.length-1;var u=o-n*s;Object.assign(t,{startIndex:r,interval:n,eventTickCount:t.tickCount,tickCount:t.labels.length,positionRatio:r/o,sizeRatio:1-u/o})},_calculateXAxisLabelAreaWidth:function(t,e,i){return t||(i-=1),e/i},_createMultilineLabel:function(t,e,i){var n=String(t).split(" "),o=[],a=r(n,1),s=a[0];return n.slice(1).forEach(function(t){var n=m["default"].getRenderedLabelWidth(s+" "+t,i);n>e?(o.push(s),s=t):s+=" "+t}),s&&o.push(s),o.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 m["default"].getRenderedLabelsMaxHeight(t,Object.assign({cssText:"line-height:1.2;width:"+i+"px"},e))},makeAdditionalDataForMultilineLabels:function(t,e,i,n,r){var o=r.series.width,a=this._calculateXAxisLabelAreaWidth(n,o,e),s=this._createMultilineLabels(t,i,a),u=this._calculateMultilineHeight(s,i,a),l=m["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(r){var o=p["default"].calculateRotatedWidth(r,e,i);return n=r,!(o<=t)}),n},_calculateRotatedWidth:function(t,e,i,n){var r=m["default"].getRenderedLabelWidth(e,n),o=p["default"].calculateRotatedWidth(t,r,i);return o-=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,r){var o=m["default"].getRenderedLabelsMaxWidth(t,i),a=r.series.width,s=r.yAxis.width+(r.rightYAxis?r.rightYAxis.width:0),l=this._calculateXAxisLabelAreaWidth(n,a,e),h=null,c=2*u["default"].CHART_PADDING+s+a;if(l<o){var d=m["default"].getRenderedLabelsMaxHeight(t,i),f=this._findRotationDegree(l,o,d),g=p["default"].calculateRotatedHeight(f,o,d),y=this._calculateRotatedWidth(f,t[0],d,i),_=this._calculateLimitWidth(r.yAxis.width,n,l);c+=y,h={degree:f,overflowHeight:g-d,overflowLeft:y-_,overflowRight:c-r.chart.width}}else c+=o,l=m["default"].getRenderedLabelWidth(t[0],i)/2,h={overflowLeft:l-r.yAxis.width,overflowRight:c-r.chart.width};return h}};e["default"]=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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){r(this,e),p["default"].updateRawSeriesDataByOptions(i,a.series);var s=o(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,r=i[n]||i,o=r.stack;this.dataProcessor.addDataRatios(t[n],o,n)},e}(u["default"]);e["default"]=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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),g=i(164),m=n(g),y=i(286),_=n(y),v=i(244),x=n(v),T=i(181),b=n(T),A=function(t){function e(i,n,a){r(this,e);var s=o(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-line-chart",s.Series=x["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||{},r=void 0;r=this.dataProcessor.isCoordinateType()?function(i){var n=m["default"].isBubbleChart(i);e.dataProcessor.addDataRatiosForCoordinateType(i,t,n)}:function(i){var r=n[i]||n,o=r.stack;e.dataProcessor.addDataRatios(t[i],o,i)},(0,u["default"])(i,r)},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,r=void 0;return this.dataProcessor.isCoordinateType()?(r=e&&"datetime"===e.type,n=r&&(0,h["default"])(e.dateFormat),t.xAxis={valueType:"x"},r&&(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=b["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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(154),a=n(o),s=i(164),u=n(s),l=function(){function t(e){var i=this;r(this,t);var n=function o(){i.isInitRenderCompleted=!0,i.chart.off(o)};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,r=void 0;return r=e.isCoordinateType()?e.getValues(this.chart.chartType,"x").length-1:e.getCategoryCount(!1)-1,n&&!u["default"].isAutoTickInterval(i)&&(r-=1),t/r},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,r=this.chart,o=!!r.options.series.shifting,s=this.paused;s||this.pauseAnimation(),this.checkedLegends=t,r.protectedRerender(t,e,i),s||setTimeout(function(){r.dataProcessor.addDataFromRemainDynamicData(o),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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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),g=i(247),m=n(g),y=function(t){function e(i,n,a){r(this,e),f["default"].removeSeriesStack(i.series);var s=o(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-area-chart",s.Series=m["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||{},r=void 0;r=this.dataProcessor.isCoordinateType()?function(i){e.dataProcessor.addDataRatiosForCoordinateType(i,t,!1)}:function(i){var r=n[i]||n,o=r.stack;e.dataProcessor.addDataRatios(t[i],o,i)},i.forEach(r)},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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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,r=!1,o=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){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}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),g=n(f),m=function(t){function e(i,n,a){r(this,e),a.tooltip=a.tooltip||{},a.tooltip.grouped=!0;var s=(0,g["default"])({rawSeriesData:i.series,yAxisOptions:a.yAxis}),u=o(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,g["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],r={isSingleYAxis:!!i};return i&&this.options.series&&this._setAdditionalOptions(r),{options:n,areaType:"yAxis",chartType:e,additionalOptions:r}},e.prototype._setAdditionalOptions=function(t){var e=this.dataProcessor;Object.entries(this.options.series).forEach(function(i){var n=s(i,2),r=n[0],o=n[1];if(o.stackType){var a=e.findChartType(r);d["default"].isAllowedStackOption(a)&&(t.chartType=a,t.stackType=o.stackType)}})},e.prototype.addDataRatios=function(t){var e=this,i=this.chartTypes||[this.chartType],n=this.options.series||{},r=function(i){var r=n[i]||n,o=r.stack;e.dataProcessor.addDataRatios(t[i],o,i)};i.forEach(r)},e}(l["default"]);e["default"]=m},function(t,e){"use strict";function i(t){var e=t.rawSeriesData,i=t.yAxisOptions,r=n(e,i);return{chartTypes:r.chartTypes,seriesTypes:r.seriesTypes}}function n(t,e){var i=Object.keys(t).sort(),n=r(i,e),o=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:o,seriesTypes:i}}function r(t,e){var i=t.slice(),n=[].concat(e||[]),r=!1,o=void 0;return!n.length||1===n.length&&!n[0].chartType?i=[]:n.length&&(o=n.map(function(t){return t.chartType}),o.forEach(function(t,e){r=r||t&&i[e]!==t||!1}),r&&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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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 r(this,e),o(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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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,r=!1,o=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){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}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),g=n(f),m=i(164),y=n(m),_=i(289),v=n(_),x=i(286),T=n(x),b=function(t){function e(i,n,a){r(this,e);var s=(0,v["default"])({rawSeriesData:i.series,yAxisOptions:a.yAxis});a.tooltip=a.tooltip||{},a.tooltip.grouped=!0;var u=o(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 T["default"](u),u.className="tui-combo-chart",u}return a(e,t),e.prototype.onChangeCheckedLegends=function(t){var e=this.dataProcessor.getCurrentData(),i=g["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],r={isSingleYAxis:!!i};return i&&this.options.series&&this._setAdditionalOptions(r),{options:n,areaType:"yAxis",chartType:e,additionalOptions:r}},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),r=n[0],o=n[1];if(o.stackType){var a=e.findChartType(r);y["default"].isAllowedStackOption(a)&&(t.chartType=a,t.stack=o.stack)}})},e.prototype.addDataRatios=function(t){var e=this,i=this.chartTypes||[this.chartType],n=this.options.series||{},r=void 0;r=this.dataProcessor.isCoordinateType()?function(i){e.dataProcessor.addDataRatiosForCoordinateType(i,t,!1)}:function(i){var r=n[i]||n,o=r.stack;e.dataProcessor.addDataRatios(t[i],o,i)},(0,c["default"])(i,r)},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=g["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"]=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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){r(this,e);var s=o(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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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){r(this,e),a.tooltip=a.tooltip||{},a.tooltip.align||(a.tooltip.align=h["default"].TOOLTIP_DEFAULT_ALIGN_OPTION);var s=o(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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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){r(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=o(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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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){r(this,e),a.tooltip=a.tooltip||{},a.tooltip.align||(a.tooltip.align=h["default"].TOOLTIP_DEFAULT_ALIGN_OPTION),a.tooltip.grouped=!1;var s=o(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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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){r(this,e),a.tooltip=a.tooltip||{},a.tooltip.align||(a.tooltip.align=p["default"].TOOLTIP_DEFAULT_ALIGN_OPTION),a.tooltip.grouped=!1;var s=o(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 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 o(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){o(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,o=n.map(function(e,n){return e+parseInt(i[n]*t,10)});e=s["default"].rgbToHEX.apply(s["default"],r(o))}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="#",r=n+this.leadingZero(t.toString(16),2)+this.leadingZero(e.toString(16),2)+this.leadingZero(i.toString(16),2);return!!this.isValidRGB(r)&&r},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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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){r(this,e),a.tooltip=a.tooltip||{},a.tooltip.grouped=!1;var s=o(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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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),g=i(297),m=n(g),y=function(t){function e(i,n,a){r(this,e),a.map=h["default"].get(a.map),a.tooltip=a.tooltip||{},a.legend=a.legend||{};var s=o(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 m["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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(145),a=n(o),s=i(189),u=n(s),l=i(154),h=n(l),c=i(158),p=n(c),d=function(){function t(e,i){r(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="",r=void 0,o=0;o<e;o+=1){var a=t.charAt(o);this.commandFuncMap[a]?(r&&n&&i.push({type:r,coordinate:n}),r=a,n=""):this.ignoreCommandMap[a]||(n+=a)}return this._addCommandPath(i,{commandType:r,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],r=i(t.coordinate,n);return Object.assign(n,r),r})},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),r=p["default"].min(e),o=p["default"].max(i),s=p["default"].min(i);return{dimension:{width:n-r,height:o-s},position:{left:r,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),r=e.dataProcessor.getValueMapDatum(t.code),o=void 0,a=void 0,s=void 0,u=void 0;r&&(s=r.label,u=r.ratio,o=r.name||t.name,a=r.labelCoordinate||t.labelCoordinate);var l={code:t.code,name:o,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}),r=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(r)-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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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){r(this,e);var s=o(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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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){r(this,e),a.tooltip&&(a.tooltip.grouped=!1);var s=o(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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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){r(this,e),h["default"].appendOutliersToSeriesData(i);var s=o(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,r=i[n]||i,o=r.stack;this.dataProcessor.addDataRatios(t[n],o,n)},e}(u["default"]);e["default"]=c},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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){r(this,e),h["default"]._makeRawSeriesDataForBulletChart(i);var s=o(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 r=i(154),o=n(r),a=i(183),s=n(a),u=i(184),l=n(u);s["default"].register(o["default"].DEFAULT_THEME_NAME,l["default"])},function(t,e){}])});
/**
 * https://www.amcharts.com/svg-maps/?map=usa
 * map data by amcharts team
 */
'use strict';

(function() {
    var data = [{"code":"US-AK","name":"Alaska","path":"M191.8,495.91l2.87,8.43l3.02,-2.96l9.45,2.36l-0.85,3.93l8.45,3.99l6.07,-1.1l11.73,6.53l11.14,2.37l4.41,2.47l7.93,-2.48l8.81,5.39l6.42,2.46l0,0l-0.29,61.92l-0.41,89.84l7.5,0.44l7.5,4.15l5.52,6.58l7.22,9.78l7.24,-8.8l7.5,-5.33l4.57,7.63l5.67,5.86l7.72,6.27l5.88,10.36l9.87,16.24l15.03,7.91l1.32,9.26l-3.88,7.62l-5.24,-5.02l-7.87,-3.96l-3.56,-12.68l-11.56,-11.14l-5.39,-13.83l-7.71,-0.46l-12.67,0.3l-9.46,-4l-16.5,-15.44l-7.41,-2.87l-13.37,-5.62l-10.64,1l-14.65,-7.75l-8.54,-7.13l-8.59,2.6l0.69,10.76l-4.31,0.62l-9.17,2.34l-7.32,4.4l-8.95,2.21v-9.05l5.22,-14.52l8.47,-3.82l-1.62,-4.08l-10.5,7.43l-6.45,9.48L169.57,686l4.61,8.12l-8.97,9.68l-9.49,4.89l-8.73,3.17l-3.13,6.19l-14.01,5.24l-3.92,6.35l-10.87,4.25l-5.39,-2.33l-8.57,2.31l-9.52,2.92l-8.06,3.09l-15.29,0.34l-0.64,-2.74l10.79,-4.25l9.15,-2.37l10.61,-5.76l10.46,0.68l5.31,-5.08l12.97,-6.42l2.37,-2.58l6.88,-4.06l3.48,-10.97l5.58,-8.06l-9.78,2.83l-1.99,-3.05l-5.29,4.55l-3.47,-8.58l-3.22,4.87l-1.26,-8.01l-9,4.19l-4.71,-1.12l1.45,-8.95l2.67,-5.11l-3.54,-6.46l-10.41,0.39l-4.4,-8.61l-4.04,-4.93l2.31,-8.42l-3.72,-7.91l5.2,-7.81l8.05,-6.82l4.58,-7.12l5.87,0.36l4.11,3.66l7.39,-6.02l4.68,2.52l6.33,-3.59l0.34,-7.37l-3.13,-3.67l6.35,-4.88l-4.14,-0.76l-7.89,1.7l-2.89,2.92l-4.41,-4.75l-9.88,-0.77l-8.65,-6.44l-0.92,-7.01l-5.42,-11.46l10.92,-3.79l16.26,-3.71l5.19,1.37l-2.92,7.67l13.69,2.75l-2.8,-11.1l-6.17,-8.03l-2.27,-9.16l-3.95,-8.45l-6.76,-7.45l5.78,-7.51l10.57,2.37l9.34,-5.56l3.41,-7.73l7.78,-6.53l5.97,-0.64l12.31,-5.24l4.93,2.18l10.31,-7.58L191.8,495.91zM59.27,587.82l3.09,4.29l4.68,-0.11l4.08,5.78l6.04,4.18l-1.08,1.46l-6.17,1.5l-4.07,-4.97l-1.64,-3.58l-6.21,-1.19l-1.13,-1.88L59.27,587.82zM84.05,658.96l-5.19,0.99l-4.04,-4.16l-3.25,-5.32l7.96,-0.37l5.42,3L84.05,658.96zM172.79,720.54l-8.89,4.49l-3.56,-4.44l-0.17,-7.13l8.04,-4.19l4.56,-1.67l5.13,1.72l2.78,5.07L172.79,720.54z"},{"code":"US-AL","name":"Alabama","path":"M823.25,403.55L831.37,431.02L838.53,452.95L842.13,459.7L844.3,463.54L841.61,467.9L841.4,475.24L842.96,479.38L842.96,483.45L842.88,487.23L844.46,489.98L845.75,492.54L805.82,497.08L794.73,499.45L794.58,501.21L799.58,506.33L798.97,510.92L797.83,514.18L780.04,513.21L776.52,478.48L776.84,441.91L777.66,412.26L775.95,407.99L799.35,405.82z"},{"code":"US-AR","name":"Arkansas","path":"M746.45,386.99L746.39,388.88L744.74,392.2L741.65,394.62L741.19,398.42L738.45,401.59L739.1,408.17L737.11,410.42L736.87,412.24L733.64,414.14L733.77,417.43L731.63,423.65L729.53,425.07L726.38,428.35L724.64,433.14L720.94,441.29L720.79,446.7L723.3,452.55L722.62,457.07L706.39,457.09L685.47,458.65L666.94,459.1L667.77,446.16L663.36,446.16L659.67,446.53L658.64,445.06L658.85,425.16L658.87,403.06L654.82,379.13L677.08,378.97L697.32,378.33L716.63,377.44L737.54,377.61L739.25,380.31L737.34,382.88L735.44,385.46L734.45,387.78z"},{"code":"US-AZ","name":"Arizona","path":"M393.21,351.89L374.82,479.32L336.43,473.46L295.45,449.76L268.97,433.11L271.6,429.19L274.1,429.74L277.1,425.71L274.42,421.95L274.45,418.47L274.3,414.34L279,409.98L282.58,400.09L289.13,396.66L286.51,391.67L284.99,386.99L284.28,382.78L283.9,379.56L283.94,377.49L285.97,373.36L285.98,368.82L286.5,364.43L287.5,359.65L286.52,356.27L288.33,353.79L292.12,354.57L295.26,356.86L297.54,358.24L299.42,355.09L300.35,354.51L303.82,336.59L332.7,341.78L367.14,347.74z"},{"code":"US-CA","name":"California","labelCoordinate":{"x":0.35,"y":0.5},"path":"M227.74,202.25L209.97,267.9L234.88,306L259.69,342.73L283.94,377.49L283.9,379.56L284.28,382.78L284.99,386.99L286.51,391.67L289.13,396.66L282.58,400.09L279,409.98L274.3,414.34L274.45,418.47L274.42,421.95L277.1,425.71L274.1,429.74L271.6,429.19L247.2,426.36L225.43,423.15L225.09,414.45L219.96,401.1L203.57,383L196.4,380.28L190.28,371.27L176.35,365.7L172.7,360.88L173.84,348.28L162.81,321.41L157.2,286.87L159.32,282.02L153.91,272.55L146.38,250.33L149.63,231.97L144.55,217.34L153.92,200.58L159.29,181.87z"},{"code":"US-CO","name":"Colorado","path":"M524.26,297.34L522.11,332.21L519.88,365.43L502.43,364.1L480.73,362.25L449.96,359.16L421.42,355.72L393.21,351.89L406.05,262.04L423.12,264.4L440.2,266.58L474.43,270.36L491.58,271.97L525.81,274.63L524.3,296.61z"},{"code":"US-CT","name":"Connecticut","path":"M1034.84,200.91L1038.24,212.85L1038.11,216.33L1031.11,219.4L1021.77,223.02L1010.11,231.52L1008.84,228.98L1011.92,225.92L1010.14,224.38L1006.81,207.31L1019.47,204.48z"},{"code":"US-DC","name":"Washington, DC","path":"M963.72,293.35L963.53,292.03L961.68,290.43L962.86,289.07L965.55,290.9z"},{"code":"US-DE","name":"Delaware","path":"M986.93,264.85L984.93,267.74L986.35,271.89L992.67,282.97L1000,293.17L988.42,295.83L980.78,267.93L981.69,265.89L983,264.55z"},{"code":"US-FL","name":"Florida","labelCoordinate":{"x":0.75,"y":0.5},"path":"M915.25,488.75L920.47,504.83L931.05,522.16L942.9,537.63L944.43,546.48L957.31,568.23L961.78,588.44L960.97,609.01L952.91,614.56L942.16,613.5L937.22,603.98L928.48,599.97L914.49,581.98L901.97,566.79L898.51,556.09L899.92,541.71L893.44,529.65L878.58,517.85L866.13,510.74L845.03,523.09L839.71,517.25L819.88,509.08L797.83,514.18L798.97,510.92L799.58,506.33L794.58,501.21L794.73,499.45L805.82,497.08L845.75,492.54L849.47,498.29L869.32,496.79L901.59,495.62L903.65,499.35L905.87,496.93L904.7,489.07L906.93,487.93L911.06,488.99z"},{"code":"US-GA","name":"Georgia","path":"M870.54,397.61L868.77,399.77L866.4,404.45L871.95,407.48L875.38,408.38L879.89,414.99L882.71,418.65L890.05,423L891.77,425.6L896.8,428.57L899.84,433.58L906.61,437.16L908.79,442.08L910.32,444.39L909.93,446.15L913.88,448.03L916.46,451.94L917.13,456.23L919.03,456.77L922.51,457.38L916.86,475.27L915.25,488.75L911.06,488.99L906.93,487.93L904.7,489.07L905.87,496.93L903.65,499.35L901.59,495.62L869.32,496.79L849.47,498.29L845.75,492.54L844.46,489.98L842.88,487.23L842.96,483.45L842.96,479.38L841.4,475.24L841.61,467.9L844.3,463.54L842.13,459.7L838.53,452.95L831.37,431.02L823.25,403.55L837.59,402.05L847.46,400.57z"},{"code":"US-HI","name":"Hawaii","path":"M443.39,612.09l-3.04,0.1l-1.75,-2.38l-0.9,-4.35l2.24,-0.78l3.28,0.52l3.31,2.87l-0.17,1.63L443.39,612.09zM460.92,640.38l-0.66,3.48l-2.99,-1.37l-0.62,-2.43l-1.04,-0.48l-0.48,-0.1l-1.92,-1.63l1.05,-6.3l2.46,1.6l3.75,0.34l-1,5.34L460.92,640.38zM472.36,657.57l-3.54,-0.18l-5.86,-6.16l2.14,-1.41L472.36,657.57zM472.75,661.08l0.38,3.47l3.3,1.61l1.96,5.74l-0.91,1.33l-2.35,0.03l-5.18,-3l1.42,-4.08l-1.82,-1.98l0.38,-3.08l1.6,-0.74L472.75,661.08zM464.41,705.67l-3.3,1.32l-2.68,-4.91l3.87,-5.3l2.25,-8.02l6.97,-1.6l0.83,-3.42l1.47,-1.3l0.87,0.25l6.34,12.29l0.27,3.33l-1.3,2.37l1.01,1.2l-0.53,1.9l0.83,3.79l-6.57,0.44l-4.82,-2.11L464.41,705.67z"},{"code":"US-IA","name":"Iowa","path":"M708.74,219.26L709.04,220.49L711.39,223.98L710,225.78L710.31,230.55L711.1,232.54L712.37,236.09L717.96,237.96L719.79,241.33L720.87,243L722.93,244.04L723.88,246.44L726.64,248.09L728.51,249.94L727.99,256.09L725.17,261.42L724.13,263.12L720.32,264.66L714.53,266.11L713.21,270.09L715.43,271.74L716.35,275.21L714.32,279.26L713.36,282.76L709.11,286.36L708.97,290.51L706.51,288.74L703.03,285.22L684.16,286.48L664.27,287.22L648.77,287.52L633.24,287.62L632.09,283.51L632.57,279.45L632.19,275.54L630.42,268.99L629.29,266.28L628.06,265.54L627.94,260.29L626.88,256.53L623.81,252.24L623.86,250.36L622.8,246.61L622.06,244.34L622.09,242.26L619.39,239.72L620.76,236L621.65,232.36L622.06,229.89L619.95,226.86L620.01,221.31L622.21,221.31L640.32,221.33L662.83,220.7L687.01,219.83z"},{"code":"US-ID","name":"Idaho","path":"M384.7,178.06L385.21,178.56L375.87,234.37L326.11,225.41L276.58,214.43L286.18,174.71L289.06,168.74L288.45,165.54L285.82,163.34L286.7,159.8L290.12,155.29L294.56,151.7L298.48,145.04L301.92,139.8L304.17,137.26L304.11,133.69L301.91,131.28L299.24,126.14L300.3,122.21L299.68,118.48L306.56,87.28L313.23,58.66L327.79,61.98L323.71,85.85L326.37,92.69L325.47,96.73L327.51,100.93L330.57,103.82L332.38,107.84L335.18,115.68L338.48,119.77L343.09,120.94L340.37,125.56L337.65,131.15L337.77,137.18L335.65,138.25L334.63,144.02L336.98,146.81L340.63,144.78L342.87,141.95L344.65,142.95L345.92,146.4L346.33,153.84L348.59,157.19L348.46,163.24L349.11,165.06L352.25,166.24L353.6,169.87L355.34,176.23L358.88,173.67L363.99,175.46L364.82,173.33L373.63,176.35L377.44,176.27L380.5,172.2L382.13,173.11L383.16,176.53z"},{"code":"US-IL","name":"Illinois","path":"M767.4,237.97L767.4,238.03L768.06,243.91L773.71,255.38L773.71,255.38L773.71,255.38L776.14,281.56L778.56,307.71L777.15,314.18L778.75,315.7L780.04,319.47L780.19,322.52L778.83,324.03L777.89,327.89L774.65,333.15L772.69,339.44L772.52,344.06L772.79,345.73L771.03,349.05L772.75,351.05L769.73,352.97L765.81,355.21L766.92,360.09L764.7,362.15L760.16,360.41L755.25,359.56L754.19,361.85L755.15,365.22L751.67,361.95L749.76,362.68L747.04,357.29L747.46,353.85L745.73,348.47L743.87,347.93L738.83,343.28L736.79,343.33L733.04,340.37L730.3,337.13L731.2,333.08L732.64,329.68L733.38,325.44L729.78,322.01L726.52,323.68L724.45,322.85L723.94,319.08L722.22,314.86L720.54,313.92L716.32,311.1L712.77,307.43L709.63,302.92L707.74,296.22L708.97,290.51L709.11,286.36L713.36,282.76L714.32,279.26L716.35,275.21L715.43,271.74L713.21,270.09L714.53,266.11L720.32,264.66L724.13,263.12L725.17,261.42L727.99,256.09L728.51,249.94L726.64,248.09L723.88,246.44L722.93,244.04L720.87,243L719.79,241.33L736.92,240.23L754.43,238.94L767.35,238.03L767.34,237.97z"},{"code":"US-IN","name":"Indiana","path":"M819.8,251.07L822.26,271.46L824.84,293.39L826.66,309L825.79,310.19L827.78,314.61L827.23,316.37L824.27,316.77L821.75,319.09L817.48,318.77L817.61,323.14L815.31,325.08L813.42,329.22L810.98,330.21L807.81,337.35L803.98,335.81L802.57,333.17L799.94,337.99L798.22,340.71L794.11,338.45L790.21,341.01L789.07,343.34L783.23,340.43L779.62,343.26L774.85,341.93L774.89,344.44L772.52,344.06L772.69,339.44L774.65,333.15L777.89,327.89L778.83,324.03L780.19,322.52L780.04,319.47L778.75,315.7L777.15,314.18L778.56,307.71L776.14,281.56L773.71,255.38L773.71,255.38L775.41,256.76L781.16,256.08L785.48,253.14L785.48,253.14L803.69,251.3L819.57,249.31z"},{"code":"US-KS","name":"Kansas","path":"M654.77,368.71L638.81,368.9L606.07,368.79L573.32,368.04L555.14,367.35L536.98,366.45L519.88,365.43L522.11,332.21L524.26,297.34L524.29,297.34L554.73,299.07L577.39,299.98L617.51,300.79L641.53,300.79L645.7,303.78L647.97,303.71L648.51,306.99L646.09,311.22L647.45,313.36L649.68,318.1L654.35,320.18L654.53,344.47z"},{"code":"US-KY","name":"Kentucky","path":"M868.09,319.18L868.74,321.26L869.24,325.93L871.88,329.12L873.25,332.39L876.29,334.91L878.49,337.35L882.03,337.23L875.89,345L870.68,348.46L870.51,350.34L868.95,352.99L864.4,356.38L863.09,358.79L859.56,360.71L854.51,362.7L842.33,365.07L826.21,366.09L821.02,366.98L810.52,367.52L799.86,368.47L790.05,369.33L778.72,371.03L778.04,370.05L774.43,370.42L774.8,373.97L748.7,375.84L752.62,373.16L755.37,371.06L754.75,367.53L755.15,365.22L754.19,361.85L755.25,359.56L760.16,360.41L764.7,362.15L766.92,360.09L765.81,355.21L769.73,352.97L772.75,351.05L771.03,349.05L772.79,345.73L772.52,344.06L774.89,344.44L774.85,341.93L779.62,343.26L783.23,340.43L789.07,343.34L790.21,341.01L794.11,338.45L798.22,340.71L799.94,337.99L802.57,333.17L803.98,335.81L807.81,337.35L810.98,330.21L813.42,329.22L815.31,325.08L817.61,323.14L817.48,318.77L821.75,319.09L824.27,316.77L827.23,316.37L827.78,314.61L825.79,310.19L826.66,309L832.73,308.77L836.11,310.54L841.45,315.01L845.39,316.1L848.35,317.55L852.46,316.35L855.74,317.21L859.34,315.44L862.62,314.57L864.48,317.51z"},{"code":"US-LA","name":"Louisiana","labelCoordinate":{"x":0.5,"y":0.65},"path":"M722.62,457.07L724.06,458.3L722.49,461.68L725.53,466.21L724.89,469.07L727.6,472.85L725.04,475.33L724.38,479.68L720.81,483.43L719.3,488.3L717.8,493.89L715.53,496.56L716.6,502.22L733.98,502.02L752.51,500.89L752.21,504.72L751.16,508.55L752.61,511.35L755.39,513.82L756.36,517.55L756.89,519.79L755.26,529.47L762.48,542.76L734.86,545.47L717.53,541.69L705.74,537.49L690.4,535.09L673.04,534.9L671.32,531.91L673.27,528.5L676.18,525.4L676.12,520.83L674.63,519.34L676.22,513.83L677.42,511.32L679.1,502.91L677.27,499.84L674.87,494.7L673.07,489.45L671.9,485.95L668.65,483.45L666.94,459.1L685.47,458.65L706.39,457.09z"},{"code":"US-MA","name":"Massachusetts","path":"M1045.63,177.8L1048.77,189.44L1057.46,199.48L1064.38,198.06L1060.35,190.6L1066.65,194.01L1067.17,200.62L1057.15,207.36L1049.14,209.17L1047.75,205.96L1044.47,204.17L1041.66,198.77L1034.84,200.91L1019.47,204.48L1006.81,207.31L1006.47,191.24L1019.95,188.12L1039.54,183L1040.61,180.37L1043.61,177.93z"},{"code":"US-MD","name":"Maryland","labelCoordinate":{"x":0.6,"y":0.4},"path":"M980.78,267.93L988.42,295.83L1000,293.17L1001.44,294.94L996.49,304.07L992.51,305.34L991.48,307.17L980.22,298.59L975.8,282.14L974.67,290.56L979.11,309.68L967.2,305.35L965.52,302.45L962.88,304.01L960.31,303.28L961.26,297.92L963.79,295.21L963.72,293.35L965.55,290.9L962.86,289.07L961.68,290.43L957.94,288.63L954.01,288.05L954.78,285.4L952.15,284.2L949.46,283.97L947.53,281.41L944.79,278.66L939.12,277.96L936.14,280.29L934.58,282.31L929.32,282.4L927.46,285.17L924.2,286.7L921.71,289.82L919.42,292.31L917.49,280.96L933.46,277.97L938.9,276.86L951.06,274.31L965.73,271.32z"},{"code":"US-ME","name":"Maine","path":"M1046.95,172.11L1045.32,172.81L1043.71,169.97L1039.84,167.56L1039.83,165.23L1026.54,125.88L1031.85,120.24L1034.43,108.68L1034.08,90.22L1040.58,70.21L1047.3,74.47L1056.14,67.64L1064.77,71.84L1074.29,101.57L1088.28,110.6L1091.52,119.75L1078.66,131.52L1065.07,141.37L1051.08,159.84z"},{"code":"US-MI","name":"Michigan","path":"M810.31,140.6L810.31,140.6l5.32,0.03l0,0l-1.7,2.51l9.03,8.01L809.3,155l-0.54,-0.04l-12.74,-0.9l-11.87,5.92l-10.61,3.16l-8.01,15.38l-0.43,-0.12l-0.01,0.04l-2.39,-2.49l0.85,-3.77l-3.55,0.12l0.4,-3.76l0.81,-1.92l-1.7,-3.07l-3.89,-1.11l-1.2,-3.67l-3.12,-0.03l-4.49,0.34l-9.47,-3.39l-14.14,-3.12l-1.54,-4.03l-2.52,-0.59l-0.02,-0.07l-0.95,0.53l-0.15,-0.11l0.14,0.1l11.76,-6.62l12,-8.35l13.09,-8.73l-3.95,12.49l9.13,2.13l11.89,7.63l13.42,-6.53l15.16,-3.76l4.06,5.97l4.91,0.32L810.31,140.6zM855.86,215.95L855.86,215.95l-0.37,0.36l-5.98,13.52l-2.54,8.4h0l-4.54,9.49l0,0l-6.33,1.07l-7.68,1.01l-8.62,1.26l-0.23,-1.76l-15.88,1.99l-18.21,1.84v0l0,0l3.1,-3.48l5.66,-11.73l-1.15,-14.96l-6.97,-13.41l-0.19,-9.69l3.06,-11.57l3.2,-8.06l5.82,-6.16l2.38,7.43l1.52,-11.52l3.25,-2.73l1.18,-8.89l14.08,2.82l13,7.22l2.75,10.08l-0.03,10.5l-7.71,10.26l1.6,5.57l3.28,-0.25l8.73,-11.34l6.35,1.38l4.89,12.62l2.21,9.1L855.86,215.95z"},{"code":"US-MN","name":"Minnesota","path":"M728.42,114.75L728.41,114.76L713.15,123.35L702.62,133.13L692.46,143.3L692.56,146.66L688.46,148.11L689.15,160.93L688.65,160.93L684.81,163.61L681.49,165.93L679.36,170.21L682.88,174.37L681.86,180.15L682.07,186.34L681.75,191.37L686.66,195.58L688.61,195.71L694.02,198.73L695.92,200.19L697.18,202.59L701.49,206.31L707.21,209.4L707.84,211.25L708.17,216.72L708.74,219.26L687.01,219.83L662.83,220.7L640.32,221.33L622.21,221.31L622.54,200.03L620.69,178.18L617.89,176.38L616.33,172.84L617.22,169.75L620.82,167.22L621.12,163.9L621.15,159.74L620.18,156.26L618.88,152.54L618.15,147.88L618,142.66L617.48,141.4L616.9,134.67L616.87,131.58L616.59,128.83L615.86,124.17L614.03,119.43L612.29,115.2L612.08,111.02L611.94,106.51L612.5,103.57L612.63,100.89L611.25,97.55L611.06,95.28L642.49,95.37L642.44,86.5L647.55,86.32L650.41,98.96L655.22,102.79L665.92,103.97L681.65,107.14L696.84,113.64L709.12,109.99L728.41,114.75z"},{"code":"US-MO","name":"Missouri","path":"M708.97,290.51L707.74,296.22L709.63,302.92L712.77,307.43L716.32,311.1L720.54,313.92L722.22,314.86L723.94,319.08L724.45,322.85L726.52,323.68L729.78,322.01L733.38,325.44L732.64,329.68L731.2,333.08L730.3,337.13L733.04,340.37L736.79,343.33L738.83,343.28L743.87,347.93L745.73,348.47L747.46,353.85L747.04,357.29L749.76,362.68L751.67,361.95L755.15,365.22L754.75,367.53L755.37,371.06L752.62,373.16L748.7,375.84L748.38,378.06L747.49,381.37L746.45,386.99L734.45,387.78L735.44,385.46L737.34,382.88L739.25,380.31L737.54,377.61L716.63,377.44L697.32,378.33L677.08,378.97L654.82,379.13L654.86,368.71L654.77,368.71L654.53,344.47L654.35,320.18L649.68,318.1L647.45,313.36L646.09,311.22L648.51,306.99L647.97,303.71L645.7,303.78L641.53,300.79L639.23,295.96L636.52,293.07L633.59,289.49L633.24,287.62L648.77,287.52L664.27,287.22L684.16,286.48L703.03,285.22L706.51,288.74z"},{"code":"US-MS","name":"Mississippi","path":"M775.95,407.99L777.66,412.26L776.84,441.91L776.52,478.48L780.04,513.21L768.32,519.32L756.89,519.79L756.36,517.55L755.39,513.82L752.61,511.35L751.16,508.55L752.21,504.72L752.51,500.89L733.98,502.02L716.6,502.22L715.53,496.56L717.8,493.89L719.3,488.3L720.81,483.43L724.38,479.68L725.04,475.33L727.6,472.85L724.89,469.07L725.53,466.21L722.49,461.68L724.06,458.3L722.62,457.07L723.3,452.55L720.79,446.7L720.94,441.29L724.64,433.14L726.38,428.35L729.53,425.07L731.63,423.65L733.77,417.43L733.64,414.14L736.87,412.24L737.11,410.42L755.47,409.14z"},{"code":"US-MT","name":"Montana","path":"M501.84,159.67L499.16,180.45L472.33,177.57L443.38,174.28L418.47,170.63L386.97,165.87L385.13,177.31L384.7,178.06L383.16,176.53L382.13,173.11L380.5,172.2L377.44,176.27L373.63,176.35L364.82,173.33L363.99,175.46L358.88,173.67L355.34,176.23L353.6,169.87L352.25,166.24L349.11,165.06L348.46,163.24L348.59,157.19L346.33,153.84L345.92,146.4L344.65,142.95L342.87,141.95L340.63,144.78L336.98,146.81L334.63,144.02L335.65,138.25L337.77,137.18L337.65,131.15L340.37,125.56L343.09,120.94L338.48,119.77L335.18,115.68L332.38,107.84L330.57,103.82L327.51,100.93L325.47,96.73L326.37,92.69L323.71,85.85L327.79,61.98L372.22,71.15L416.94,78.85L461.89,85.08L507.02,89.83L503.5,131.88z"},{"code":"US-NC","name":"North Carolina","path":"M995.21,338.43L1002.75,360L994.84,379.03L978.65,391.44L965.08,405.88L958.75,408.49L934.04,391.25L913.5,394.62L913.11,392L909.59,388.69L907.98,390.48L907.51,388.53L898.72,388.9L881.69,391.36L872.29,396.68L870.54,397.61L847.46,400.57L847.25,395.75L850.98,393.82L851.93,391.24L854.18,388.16L857.83,387.06L862.01,385.43L865.93,382.9L867.46,380.66L870.69,378.36L870.36,376.75L874.51,373.03L876.28,374.79L882.37,369.54L885.58,369.5L887.79,365.3L891.33,363.75L890.63,360.58L890.64,357.69L921.25,353.54L957.11,346.86L976.05,342.75z"},{"code":"US-ND","name":"North Dakota","path":"M611.06,95.28L611.25,97.55L612.63,100.89L612.5,103.57L611.94,106.51L612.08,111.02L612.29,115.2L614.03,119.43L615.86,124.17L616.59,128.83L616.87,131.58L616.9,134.67L617.48,141.4L618,142.66L618.15,147.88L618.88,152.54L620.18,156.26L621.15,159.74L621.12,163.9L590.77,164.65L564.87,163.67L532.22,161.94L501.84,159.67L503.5,131.88L507.02,89.83L559.45,93.57z"},{"code":"US-NE","name":"Nebraska","path":"M622.06,244.34L622.8,246.61L623.86,250.36L623.81,252.24L626.88,256.53L627.94,260.29L628.06,265.54L629.29,266.28L630.42,268.99L632.19,275.54L632.57,279.45L632.09,283.51L633.24,287.62L633.59,289.49L636.52,293.07L639.23,295.96L641.53,300.79L617.51,300.79L577.39,299.98L554.73,299.07L524.29,297.34L524.26,297.34L524.3,296.61L525.81,274.63L491.58,271.97L495.46,226.79L527.96,229.32L552.96,230.8L586.41,232.12L590.65,235.11L596.76,237.07L598.22,236.06L602.2,236.22L608.18,236.09L612.47,239.07L617.05,241.01L617.8,242.91L619.24,244.01z"},{"code":"US-NH","name":"New Hampshire","path":"M1046.95,172.11L1045.63,177.8L1043.61,177.93L1040.61,180.37L1039.54,183L1019.95,188.12L1018.05,186.18L1018.57,182.99L1017.43,177.12L1017.56,175.61L1016.72,170.27L1017.3,165.41L1018.09,163.14L1018.58,157.42L1017.99,153.78L1017.94,151.5L1020.7,149.61L1023.53,146.09L1023.4,143.19L1021.37,140.36L1021.55,133.87L1021.52,133.86L1021.57,128.01L1026.54,125.88L1039.83,165.23L1039.84,167.56L1043.71,169.97L1045.32,172.81z"},{"code":"US-NJ","name":"New Jersey","path":"M1005.97,233.13L1002.85,245.27L1007.3,245.2L1008.29,261.79L999.91,281.76L997.29,276.39L993.25,276.13L987.8,271.3L986.35,271.89L984.93,267.74L986.93,264.85L989.95,262.02L990.85,260.36L994.19,256.49L995.8,253.57L989.13,249.11L988.29,246.84L986.3,246.58L985.55,243.01L986.88,239.85L985.31,237.18L987.53,234.61L989.28,228.98L991.08,227.52z"},{"code":"US-NM","name":"New Mexico","path":"M502.43,364.1L501.59,375.32L497.01,434.63L493.71,477.35L475.73,475.87L440.89,472.47L423.5,470.51L423.48,472.47L425.23,476.34L391.9,472.15L390.39,481.45L374.82,479.32L393.21,351.89L421.42,355.72L449.96,359.16L480.73,362.25z"},{"code":"US-NV","name":"Nevada","path":"M326.11,225.41L303.82,336.59L300.35,354.51L299.42,355.09L297.54,358.24L295.26,356.86L292.12,354.57L288.33,353.79L286.52,356.27L287.5,359.65L286.5,364.43L285.98,368.82L285.97,373.36L283.94,377.49L259.69,342.73L234.88,306L209.97,267.9L227.74,202.25L276.56,214.49L276.58,214.43z"},{"code":"US-NY","name":"New York","path":"M1006.47,191.24L1006.81,207.31L1010.14,224.38L1011.92,225.92L1008.84,228.98L1010.11,231.52L1032.89,222.46L1038.92,225.29L1017.3,238.01L1006.63,240.74L1005.97,233.13L991.08,227.52L988.02,226.6L984.83,225.73L983,222.77L982.87,220.23L980.43,218.69L976.03,216.05L953.56,221.02L929.39,226.03L903.43,230.95L902.33,224.89L914.06,208.94L913.34,206.86L913.33,206.8L909.87,200.77L917.84,196.33L930.8,194.61L944.51,193.68L955.07,183.7L952.2,175.26L949.61,172.2L949.54,172.18L949.55,172.17L949.62,172.2L962.67,153.32L968.84,147.56L992.69,141.54L993.51,146.1L993.6,149.11L995.65,155.57L997.38,158.72L996.94,163.69L999.87,169.09L999.66,172.55L1000.17,173.31L1002.51,172.89z"},{"code":"US-OH","name":"Ohio","path":"M895.99,263.59L893.82,265.11L895.03,267.83L895.11,273.12L894.33,279.24L893.47,284.35L893.57,286.7L889.71,292.59L887.88,294.01L885.64,295.02L883.46,294.86L880.19,299.33L880.12,303.48L879.92,305.75L878.5,306.88L877.89,304.42L875.44,304.24L873.72,309.48L874.2,314.49L872.38,317.95L868.09,319.18L864.48,317.51L862.62,314.57L859.34,315.44L855.74,317.21L852.46,316.35L848.35,317.55L845.39,316.1L841.45,315.01L836.11,310.54L832.73,308.77L826.66,309L824.84,293.39L822.26,271.46L819.8,251.07L828.42,249.81L836.1,248.8L842.43,247.72L842.43,247.72L842.43,247.73L853.5,250.9L862.09,250.8L873.84,245.91L882.78,238.09L890.88,233.62z"},{"code":"US-OK","name":"Oklahoma","labelCoordinate":{"x":0.65,"y":0.5},"path":"M654.82,379.13L658.87,403.06L658.85,425.16L658.64,445.06L650.4,440.72L645.06,438.36L640.76,439.93L634.09,439.72L630.14,439.76L626.89,441.61L623.71,442.55L620.93,441.42L614.58,442.61L611.74,438.79L608.74,442.04L603.58,440.5L598.33,436.88L592.59,439.04L590.23,433.51L581.41,433.82L575.82,432.43L569.54,430.6L566.91,425.79L561.9,427.12L558.91,425.14L554.53,422.51L555.49,400.85L556.46,378.64L538.16,377.73L519.86,376.63L501.59,375.32L502.43,364.1L519.88,365.43L536.98,366.45L555.14,367.35L573.32,368.04L606.07,368.79L638.81,368.9L654.77,368.71L654.86,368.71z"},{"code":"US-OR","name":"Oregon","path":"M299.24,126.14L301.91,131.28L304.11,133.69L304.17,137.26L301.92,139.8L298.48,145.04L294.56,151.7L290.12,155.29L286.7,159.8L285.82,163.34L288.45,165.54L289.06,168.74L286.18,174.71L276.58,214.43L276.56,214.49L227.74,202.25L159.29,181.87L158.03,168.07L170.35,146.42L179.28,122.31L192.49,90.34L195.72,91.03L200.31,92.59L203.38,95.72L207.41,98.33L208.97,103.37L208.26,107.16L208.47,110.57L211.77,112.47L215.57,113.53L222.2,112.96L225.89,113.27L231.12,115.79L233.22,117.63L236.67,117.76L240.68,116.96L247.56,119.17L253.95,118.28L257.44,117.29L261.12,119.3L267.26,118.43z"},{"code":"US-PA","name":"Pennsylvania","path":"M991.08,227.52L989.28,228.98L987.53,234.61L985.31,237.18L986.88,239.85L985.55,243.01L986.3,246.58L988.29,246.84L989.13,249.11L995.8,253.57L994.19,256.49L990.85,260.36L989.95,262.02L986.93,264.85L983,264.55L981.69,265.89L980.78,267.93L965.73,271.32L951.06,274.31L938.9,276.86L933.46,277.97L917.49,280.96L899.53,284.16L895.99,263.59L890.88,233.62L890.88,233.62L902.3,224.93L902.33,224.89L903.43,230.95L929.39,226.03L953.56,221.02L976.03,216.05L980.43,218.69L982.87,220.23L983,222.77L984.83,225.73L988.02,226.6z"},{"code":"US-RI","name":"Rhode Island","path":"M1049.14,209.17L1038.11,216.33L1038.24,212.85L1034.84,200.91L1041.66,198.77L1044.47,204.17L1047.75,205.96z"},{"code":"US-SC","name":"South Carolina","path":"M958.75,408.49L954.4,425.6L940.47,442.52L922.51,457.38L919.03,456.77L917.13,456.23L916.46,451.94L913.88,448.03L909.93,446.15L910.32,444.39L908.79,442.08L906.61,437.16L899.84,433.58L896.8,428.57L891.77,425.6L890.05,423L882.71,418.65L879.89,414.99L875.38,408.38L871.95,407.48L866.4,404.45L868.77,399.77L870.54,397.61L872.29,396.68L881.69,391.36L898.72,388.9L907.51,388.53L907.98,390.48L909.59,388.69L913.11,392L913.5,394.62L934.04,391.25z"},{"code":"US-SD","name":"South Dakota","path":"M622.21,221.31L620.01,221.31L619.95,226.86L622.06,229.89L621.65,232.36L620.76,236L619.39,239.72L622.09,242.26L622.06,244.34L619.24,244.01L617.8,242.91L617.05,241.01L612.47,239.07L608.18,236.09L602.2,236.22L598.22,236.06L596.76,237.07L590.65,235.11L586.41,232.12L552.96,230.8L527.96,229.32L495.46,226.79L499.16,180.45L501.84,159.67L532.22,161.94L564.87,163.67L590.77,164.65L621.12,163.9L620.82,167.22L617.22,169.75L616.33,172.84L617.89,176.38L620.69,178.18L622.54,200.03z"},{"code":"US-TN","name":"Tennessee","path":"M854.51,362.7L881.54,359.56L890.64,357.69L890.63,360.58L891.33,363.75L887.79,365.3L885.58,369.5L882.37,369.54L876.28,374.79L874.51,373.03L870.36,376.75L870.69,378.36L867.46,380.66L865.93,382.9L862.01,385.43L857.83,387.06L854.18,388.16L851.93,391.24L850.98,393.82L847.25,395.75L847.46,400.57L837.59,402.05L823.25,403.55L799.35,405.82L775.95,407.99L755.47,409.14L737.11,410.42L739.1,408.17L738.45,401.59L741.19,398.42L741.65,394.62L744.74,392.2L746.39,388.88L746.45,386.99L747.49,381.37L748.38,378.06L748.7,375.84L774.8,373.97L774.43,370.42L778.04,370.05L778.72,371.03L790.05,369.33L799.86,368.47L810.52,367.52L821.02,366.98L826.21,366.09L842.33,365.07z"},{"code":"US-TX","name":"Texas","path":"M658.64,445.06L659.67,446.53L663.36,446.16L667.77,446.16L666.94,459.1L668.65,483.45L671.9,485.95L673.07,489.45L674.87,494.7L677.27,499.84L679.1,502.91L677.42,511.32L676.22,513.83L674.63,519.34L676.12,520.83L676.18,525.4L673.27,528.5L671.32,531.91L673.04,534.9L656.02,540.04L637.82,557.24L617.61,567.14L606.35,578.03L601.48,588.34L601.04,604.28L601.91,615.41L605.78,623.36L597.58,623.93L582.8,618.52L566.71,610.86L561.26,599.79L557.33,583.46L545.79,569.82L539.4,556.02L530.11,539.78L516.53,529.83L500.18,529.18L486.19,546.32L470.08,538.07L460.36,530.23L456.6,517.21L451.21,504.67L440.58,493.46L431.39,485.2L425.23,476.34L423.48,472.47L423.5,470.51L440.89,472.47L475.73,475.87L493.71,477.35L497.01,434.63L501.59,375.32L519.86,376.63L538.16,377.73L556.46,378.64L555.49,400.85L554.53,422.51L558.91,425.14L561.9,427.12L566.91,425.79L569.54,430.6L575.82,432.43L581.41,433.82L590.23,433.51L592.59,439.04L598.33,436.88L603.58,440.5L608.74,442.04L611.74,438.79L614.58,442.61L620.93,441.42L623.71,442.55L626.89,441.61L630.14,439.76L634.09,439.72L640.76,439.93L645.06,438.36L650.4,440.72z"},{"code":"US-UT","name":"Utah","path":"M406.05,262.04L393.21,351.89L367.14,347.74L332.7,341.78L303.82,336.59L326.11,225.41L375.87,234.37L372.15,256.16z"},{"code":"US-VA","name":"Virginia","labelCoordinate":{"x":0.67,"y":0.5},"path":"M949.46,283.97l2.68,0.24l2.64,1.19l-0.78,2.65l3.93,0.58l3.75,1.8l1.84,1.6l0.19,1.32l0.07,1.86l-2.52,2.71l-0.95,5.36l2.57,0.72l2.64,-1.56l1.68,2.91l13.73,10.02l5.74,9.84l0.35,0.6l8.2,12.61l-19.16,4.32l-18.93,4.11l-35.87,6.68l-30.61,4.16l-9.1,1.87l-27.04,3.14l5.06,-2l3.53,-1.92l1.3,-2.42l4.55,-3.38l1.57,-2.65l0.17,-1.88l5.21,-3.46l6.13,-7.78l1.39,3.68l2.33,1.71l3.01,1.37l5.21,-3.61l2.41,1.22l6.36,-2.98l0.05,-2.07l2.15,0.45l1.93,-2.01l2.54,-0.11l2.53,-2.22l0.03,-2.11L911.2,328l1.72,-4.29l2.9,-3.52l0.28,-3.45l2.3,-4.51l0.8,-5.16l2.64,1.3l2.9,1.11l2.36,-1.33l0.46,-2.19l1.2,-3.09l1.34,-3.53l1.44,0.69l2.03,-3.37l2.84,-3.57l1.72,-2.63l0.2,-6.19l10.03,4.26L949.46,283.97zM988.81,323.46l1.81,0.52l5.88,-19.91l-3.99,1.27l-1.03,1.82L988.81,323.46z"},{"code":"US-VT","name":"Vermont","path":"M1019.95,188.12L1006.47,191.24L1002.51,172.89L1000.17,173.31L999.66,172.55L999.87,169.09L996.94,163.69L997.38,158.72L995.65,155.57L993.6,149.11L993.51,146.1L992.69,141.54L1021.52,133.86L1021.55,133.87L1021.37,140.36L1023.4,143.19L1023.53,146.09L1020.7,149.61L1017.94,151.5L1017.99,153.78L1018.58,157.42L1018.09,163.14L1017.3,165.41L1016.72,170.27L1017.56,175.61L1017.43,177.12L1018.57,182.99L1018.05,186.18z"},{"code":"US-WA","name":"Washington","path":"M313.23,58.66L306.56,87.28L299.68,118.48L300.3,122.21L299.24,126.14L267.26,118.43L261.12,119.3L257.44,117.29L253.95,118.28L247.56,119.17L240.68,116.96L236.67,117.76L233.22,117.63L231.12,115.79L225.89,113.27L222.2,112.96L215.57,113.53L211.77,112.47L208.47,110.57L208.26,107.16L208.97,103.37L207.41,98.33L203.38,95.72L200.31,92.59L195.72,91.03L192.49,90.34L194.19,70.89L198.52,49.07L217.79,59.52L219.14,78.74L224.58,74.04L227.61,55.27L226.19,34.98L269.51,47.56z"},{"code":"US-WI","name":"Wisconsin","path":"M718.02,148.31L718.17,148.42L719.11,147.88L719.13,147.95L721.66,148.55L723.2,152.58L737.33,155.69L746.81,159.08L751.29,158.75L754.41,158.78L755.61,162.45L759.51,163.56L761.21,166.63L760.4,168.55L760,172.31L763.55,172.19L762.7,175.96L765.09,178.45L765.1,178.41L765.53,178.53L765.4,178.76L759.81,187.53L762.25,190.02L772.73,174.27L775.14,173.95L768.45,192.24L766.23,208.39L764.26,221.5L767.34,232.41L767.4,237.97L767.34,237.97L767.35,238.03L754.43,238.94L736.92,240.23L719.79,241.33L717.96,237.96L712.37,236.09L711.1,232.54L710.31,230.55L710,225.78L711.39,223.98L709.04,220.49L708.74,219.26L708.17,216.72L707.84,211.25L707.21,209.4L701.49,206.31L697.18,202.59L695.92,200.19L694.02,198.73L688.61,195.71L686.66,195.58L681.75,191.37L682.07,186.34L681.86,180.15L682.88,174.37L679.36,170.21L681.49,165.93L684.81,163.61L688.65,160.93L689.15,160.93L688.46,148.11L692.56,146.66L692.56,146.66L708.07,141.11z"},{"code":"US-WV","name":"West Virginia","path":"M917.49,280.96L919.42,292.31L921.71,289.82L924.2,286.7L927.46,285.17L929.32,282.4L934.58,282.31L936.14,280.29L939.12,277.96L944.79,278.66L947.53,281.41L949.46,283.97L948.37,288.54L938.34,284.28L938.14,290.47L936.42,293.1L933.58,296.67L931.55,300.04L930.11,299.35L928.76,302.87L927.56,305.97L927.1,308.15L924.75,309.48L921.84,308.37L919.2,307.07L918.4,312.23L916.1,316.74L915.82,320.19L912.93,323.71L911.2,328L911.95,330.57L911.92,332.68L909.4,334.9L906.86,335.01L904.93,337.02L902.78,336.56L902.73,338.63L896.37,341.61L893.96,340.38L888.75,343.99L885.75,342.62L883.41,340.91L882.03,337.23L878.49,337.35L876.29,334.91L873.25,332.39L871.88,329.12L869.24,325.93L868.74,321.26L868.09,319.18L872.38,317.95L874.2,314.49L873.72,309.48L875.44,304.24L877.89,304.42L878.5,306.88L879.92,305.75L880.12,303.48L880.19,299.33L883.46,294.86L885.64,295.02L887.88,294.01L889.71,292.59L893.57,286.7L893.47,284.35L894.33,279.24L895.11,273.12L895.03,267.83L893.82,265.11L895.99,263.59L899.53,284.16z"},{"code":"US-WY","name":"Wyoming","path":"M499.16,180.45L495.46,226.79L491.58,271.97L474.43,270.36L440.2,266.58L423.12,264.4L406.05,262.04L372.15,256.16L375.87,234.37L385.21,178.56L384.7,178.06L385.13,177.31L386.97,165.87L418.47,170.63L443.38,174.28L472.33,177.57z"}];
    var chart = null

    if (typeof window === 'undefined') {
        return;
    }

    if (typeof require === 'undefined') {
        chart = tui.chart;
    } else {
        chart = require('tui-chart');
    }
    chart.registerMap('usa', data);
})();