UNPKG

546 kBJavaScriptView Raw
1/*!
2 * Copyright (c) 2017 ~ present NAVER Corp.
3 * billboard.js project is licensed under the MIT license
4 *
5 * billboard.js, JavaScript chart library
6 * https://naver.github.io/billboard.js/
7 *
8 * @version 3.6.3
9 *
10 * All-in-one packaged file for ease use of 'billboard.js' with dependant d3.js modules & polyfills.
11 * - d3-axis ^3.0.0
12 * - d3-brush ^3.0.0
13 * - d3-drag ^3.0.0
14 * - d3-dsv ^3.0.1
15 * - d3-ease ^3.0.1
16 * - d3-interpolate ^3.0.1
17 * - d3-scale ^4.0.2
18 * - d3-selection ^3.0.0
19 * - d3-shape ^3.1.0
20 * - d3-time-format ^4.1.0
21 * - d3-transition ^3.0.1
22 * - d3-zoom ^3.0.0
23 */
24!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var i in n)("object"==typeof exports?exports:t)[i]=n[i]}}(this,(function(){return function(){var t=[function(t,e,n){n(1),n(98),n(99),n(100),n(101),n(102),n(103),n(104),n(105),n(106),n(107),n(108),n(109),n(110),n(111),n(112),n(122),n(124),n(134),n(135),n(137),n(140),n(143),n(145),n(147),n(148),n(149),n(150),n(152),n(153),n(155),n(156),n(158),n(162),n(163),n(164),n(165),n(170),n(171),n(173),n(174),n(175),n(177),n(180),n(181),n(182),n(183),n(184),n(189),n(191),n(192),n(193),n(194),n(195),n(202),n(204),n(207),n(209),n(210),n(211),n(212),n(213),n(217),n(218),n(220),n(221),n(222),n(224),n(225),n(226),n(94),n(227),n(228),n(236),n(238),n(239),n(240),n(242),n(243),n(245),n(246),n(248),n(249),n(250),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(263),n(264),n(266),n(268),n(269),n(270),n(271),n(272),n(274),n(276),n(277),n(278),n(279),n(281),n(282),n(284),n(285),n(286),n(287),n(289),n(290),n(291),n(292),n(293),n(294),n(295),n(296),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(307),n(308),n(309),n(311),n(312),n(313),n(314),n(337),n(338),n(339),n(340),n(341),n(342),n(343),n(344),n(346),n(347),n(348),n(349),n(350),n(351),n(352),n(353),n(354),n(355),n(362),n(363),n(365),n(366),n(367),n(368),n(369),n(371),n(372),n(374),n(377),n(378),n(379),n(380),n(384),n(385),n(387),n(388),n(389),n(390),n(392),n(393),n(394),n(395),n(396),n(397),n(399),n(402),n(405),n(408),n(409),n(410),n(411),n(412),n(413),n(414),n(415),n(416),n(417),n(418),n(419),n(420),n(428),n(429),n(430),n(431),n(432),n(433),n(434),n(435),n(436),n(437),n(438),n(439),n(440),n(444),n(445),n(446),n(447),n(448),n(449),n(450),n(451),n(452),n(453),n(454),n(455),n(456),n(457),n(458),n(459),n(460),n(461),n(462),n(463),n(464),n(465),n(466),n(467),n(468),n(471),n(473),n(475),n(476),n(479),n(480),n(483),n(484),n(485),n(488),n(489),n(490),n(491),n(495),n(500),n(501),n(82)},function(t,e,n){n(2),n(91),n(93),n(94),n(97)},function(t,e,n){"use strict";var i=n(3),r=n(4),a=n(8),o=n(14),s=n(37),u=n(6),c=n(28),l=n(7),h=n(40),f=n(26),d=n(48),g=n(12),p=n(19),v=n(70),y=n(11),x=n(73),b=n(75),_=n(59),m=n(77),w=n(68),T=n(5),A=n(46),S=n(74),E=n(10),k=n(49),M=n(36),O=n(55),R=n(56),C=n(42),I=n(35),L=n(80),P=n(81),D=n(83),N=n(84),z=n(53),F=n(85).forEach,j=O("hidden"),B="Symbol",X=z.set,$=z.getterFor(B),U=Object.prototype,Y=r.Symbol,V=Y&&Y.prototype,G=r.TypeError,H=r.QObject,W=T.f,q=A.f,Z=m.f,K=E.f,J=o([].push),Q=M("symbols"),tt=M("op-symbols"),et=M("wks"),nt=!H||!H.prototype||!H.prototype.findChild,it=u&&l((function(){return 7!=x(q({},"a",{get:function(){return q(this,"a",{value:7}).a}})).a}))?function(t,e,n){var i=W(U,e);i&&delete U[e],q(t,e,n),i&&t!==U&&q(U,e,i)}:q,rt=function(t,e){var n=Q[t]=x(V);return X(n,{type:B,tag:t,description:e}),u||(n.description=e),n},at=function(t,e,n){t===U&&at(tt,e,n),d(t);var i=p(e);return d(n),h(Q,i)?(n.enumerable?(h(t,j)&&t[j][i]&&(t[j][i]=!1),n=x(n,{enumerable:y(0,!1)})):(h(t,j)||q(t,j,y(1,{})),t[j][i]=!0),it(t,i,n)):q(t,i,n)},ot=function(t,e){d(t);var n=g(e),i=b(n).concat(lt(n));return F(i,(function(e){u&&!a(st,n,e)||at(t,e,n[e])})),t},st=function(t){var e=p(t),n=a(K,this,e);return!(this===U&&h(Q,e)&&!h(tt,e))&&(!(n||!h(this,e)||!h(Q,e)||h(this,j)&&this[j][e])||n)},ut=function(t,e){var n=g(t),i=p(e);if(n!==U||!h(Q,i)||h(tt,i)){var r=W(n,i);return!r||!h(Q,i)||h(n,j)&&n[j][i]||(r.enumerable=!0),r}},ct=function(t){var e=Z(g(t)),n=[];return F(e,(function(t){h(Q,t)||h(R,t)||J(n,t)})),n},lt=function(t){var e=t===U,n=Z(e?tt:g(t)),i=[];return F(n,(function(t){!h(Q,t)||e&&!h(U,t)||J(i,Q[t])})),i};c||(Y=function(){if(f(V,this))throw G("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,e=C(t),n=function(t){this===U&&a(n,tt,t),h(this,j)&&h(this[j],e)&&(this[j][e]=!1),it(this,e,y(1,t))};return u&&nt&&it(U,e,{configurable:!0,set:n}),rt(e,t)},k(V=Y.prototype,"toString",(function(){return $(this).tag})),k(Y,"withoutSetter",(function(t){return rt(C(t),t)})),E.f=st,A.f=at,S.f=ot,T.f=ut,_.f=m.f=ct,w.f=lt,L.f=function(t){return rt(I(t),t)},u&&(q(V,"description",{configurable:!0,get:function(){return $(this).description}}),s||k(U,"propertyIsEnumerable",st,{unsafe:!0}))),i({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:Y}),F(b(et),(function(t){P(t)})),i({target:B,stat:!0,forced:!c},{useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),i({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(t,e){return void 0===e?x(t):ot(x(t),e)},defineProperty:at,defineProperties:ot,getOwnPropertyDescriptor:ut}),i({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ct}),D(),N(Y,B),R[j]=!0},function(t,e,n){var i=n(4),r=n(5).f,a=n(45),o=n(49),s=n(39),u=n(57),c=n(69);t.exports=function(t,e){var n,l,h,f,d,g=t.target,p=t.global,v=t.stat;if(n=p?i:v?i[g]||s(g,{}):(i[g]||{}).prototype)for(l in e){if(f=e[l],h=t.dontCallGetSet?(d=r(n,l))&&d.value:n[l],!c(p?l:g+(v?".":"#")+l,t.forced)&&void 0!==h){if(typeof f==typeof h)continue;u(f,h)}(t.sham||h&&h.sham)&&a(f,"sham",!0),o(n,l,f,t)}}},function(t){var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof global&&global)||function(){return this}()||Function("return this")()},function(t,e,n){var i=n(6),r=n(8),a=n(10),o=n(11),s=n(12),u=n(19),c=n(40),l=n(43),h=Object.getOwnPropertyDescriptor;e.f=i?h:function(t,e){if(t=s(t),e=u(e),l)try{return h(t,e)}catch(t){}if(c(t,e))return o(!r(a.f,t,e),t[e])}},function(t,e,n){var i=n(7);t.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var i=n(9),r=Function.prototype.call;t.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},function(t,e,n){var i=n(7);t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},function(t,e){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!n.call({1:2},1);e.f=r?function(t){var e=i(this,t);return!!e&&e.enumerable}:n},function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var i=n(13),r=n(17);t.exports=function(t){return i(r(t))}},function(t,e,n){var i=n(14),r=n(7),a=n(15),o=Object,s=i("".split);t.exports=r((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"==a(t)?s(t,""):o(t)}:o},function(t,e,n){var i=n(15),r=n(16);t.exports=function(t){if("Function"===i(t))return r(t)}},function(t,e,n){var i=n(16),r=i({}.toString),a=i("".slice);t.exports=function(t){return a(r(t),8,-1)}},function(t,e,n){var i=n(9),r=Function.prototype,a=r.call,o=i&&r.bind.bind(a,a);t.exports=i?o:function(t){return function(){return a.apply(t,arguments)}}},function(t,e,n){var i=n(18),r=TypeError;t.exports=function(t){if(i(t))throw r("Can't call method on "+t);return t}},function(t){t.exports=function(t){return null==t}},function(t,e,n){var i=n(20),r=n(24);t.exports=function(t){var e=i(t,"string");return r(e)?e:e+""}},function(t,e,n){var i=n(8),r=n(21),a=n(24),o=n(31),s=n(34),u=n(35),c=TypeError,l=u("toPrimitive");t.exports=function(t,e){if(!r(t)||a(t))return t;var n,u=o(t,l);if(u){if(void 0===e&&(e="default"),n=i(u,t,e),!r(n)||a(n))return n;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},function(t,e,n){var i=n(22),r=n(23),a=r.all;t.exports=r.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:i(t)||t===a}:function(t){return"object"==typeof t?null!==t:i(t)}},function(t,e,n){var i=n(23),r=i.all;t.exports=i.IS_HTMLDDA?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},function(t){var e="object"==typeof document&&document.all,n=void 0===e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:n}},function(t,e,n){var i=n(25),r=n(22),a=n(26),o=n(27),s=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return r(e)&&a(e.prototype,s(t))}},function(t,e,n){var i=n(4),r=n(22),a=function(t){return r(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?a(i[t]):i[t]&&i[t][e]}},function(t,e,n){var i=n(14);t.exports=i({}.isPrototypeOf)},function(t,e,n){var i=n(28);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var i=n(29),r=n(7);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},function(t,e,n){var i,r,a=n(4),o=n(30),s=a.process,u=a.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(r=(i=l.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&o&&(!(i=o.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=o.match(/Chrome\/(\d+)/))&&(r=+i[1]),t.exports=r},function(t,e,n){var i=n(25);t.exports=i("navigator","userAgent")||""},function(t,e,n){var i=n(32),r=n(18);t.exports=function(t,e){var n=t[e];return r(n)?void 0:i(n)}},function(t,e,n){var i=n(22),r=n(33),a=TypeError;t.exports=function(t){if(i(t))return t;throw a(r(t)+" is not a function")}},function(t){var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},function(t,e,n){var i=n(8),r=n(22),a=n(21),o=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&r(n=t.toString)&&!a(s=i(n,t)))return s;if(r(n=t.valueOf)&&!a(s=i(n,t)))return s;if("string"!==e&&r(n=t.toString)&&!a(s=i(n,t)))return s;throw o("Can't convert object to primitive value")}},function(t,e,n){var i=n(4),r=n(36),a=n(40),o=n(42),s=n(28),u=n(27),c=r("wks"),l=i.Symbol,h=l&&l.for,f=u?l:l&&l.withoutSetter||o;t.exports=function(t){if(!a(c,t)||!s&&"string"!=typeof c[t]){var e="Symbol."+t;s&&a(l,t)?c[t]=l[t]:c[t]=u&&h?h(e):f(e)}return c[t]}},function(t,e,n){var i=n(37),r=n(38);(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.26.0",mode:i?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.0/LICENSE",source:"https://github.com/zloirock/core-js"})},function(t){t.exports=!1},function(t,e,n){var i=n(4),r=n(39),a="__core-js_shared__",o=i[a]||r(a,{});t.exports=o},function(t,e,n){var i=n(4),r=Object.defineProperty;t.exports=function(t,e){try{r(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e}},function(t,e,n){var i=n(14),r=n(41),a=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return a(r(t),e)}},function(t,e,n){var i=n(17),r=Object;t.exports=function(t){return r(i(t))}},function(t,e,n){var i=n(14),r=0,a=Math.random(),o=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++r+a,36)}},function(t,e,n){var i=n(6),r=n(7),a=n(44);t.exports=!i&&!r((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var i=n(4),r=n(21),a=i.document,o=r(a)&&r(a.createElement);t.exports=function(t){return o?a.createElement(t):{}}},function(t,e,n){var i=n(6),r=n(46),a=n(11);t.exports=i?function(t,e,n){return r.f(t,e,a(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var i=n(6),r=n(43),a=n(47),o=n(48),s=n(19),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,h="enumerable",f="configurable",d="writable";e.f=i?a?function(t,e,n){if(o(t),e=s(e),o(n),"function"==typeof t&&"prototype"===e&&"value"in n&&d in n&&!n.writable){var i=l(t,e);i&&i.writable&&(t[e]=n.value,n={configurable:f in n?n.configurable:i.configurable,enumerable:h in n?n.enumerable:i.enumerable,writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(o(t),e=s(e),o(n),r)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var i=n(6),r=n(7);t.exports=i&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(t,e,n){var i=n(21),r=String,a=TypeError;t.exports=function(t){if(i(t))return t;throw a(r(t)+" is not an object")}},function(t,e,n){var i=n(22),r=n(46),a=n(50),o=n(39);t.exports=function(t,e,n,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:e;if(i(n)&&a(n,c,s),s.global)u?t[e]=n:o(e,n);else{try{s.unsafe?t[e]&&(u=!0):delete t[e]}catch(t){}u?t[e]=n:r.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},function(t,e,n){var i=n(7),r=n(22),a=n(40),o=n(6),s=n(51).CONFIGURABLE,u=n(52),c=n(53),l=c.enforce,h=c.get,f=Object.defineProperty,d=o&&!i((function(){return 8!==f((function(){}),"length",{value:8}).length})),g=String(String).split("String"),p=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||s&&t.name!==e)&&(o?f(t,"name",{value:e,configurable:!0}):t.name=e),d&&n&&a(n,"arity")&&t.length!==n.arity&&f(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?o&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var i=l(t);return a(i,"source")||(i.source=g.join("string"==typeof e?e:"")),t};Function.prototype.toString=p((function(){return r(this)&&h(this).source||u(this)}),"toString")},function(t,e,n){var i=n(6),r=n(40),a=Function.prototype,o=i&&Object.getOwnPropertyDescriptor,s=r(a,"name"),u=s&&"something"===function(){}.name,c=s&&(!i||i&&o(a,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},function(t,e,n){var i=n(14),r=n(22),a=n(38),o=i(Function.toString);r(a.inspectSource)||(a.inspectSource=function(t){return o(t)}),t.exports=a.inspectSource},function(t,e,n){var i,r,a,o=n(54),s=n(4),u=n(21),c=n(45),l=n(40),h=n(38),f=n(55),d=n(56),g="Object already initialized",p=s.TypeError,v=s.WeakMap;if(o||h.state){var y=h.state||(h.state=new v);y.get=y.get,y.has=y.has,y.set=y.set,i=function(t,e){if(y.has(t))throw p(g);return e.facade=t,y.set(t,e),e},r=function(t){return y.get(t)||{}},a=function(t){return y.has(t)}}else{var x=f("state");d[x]=!0,i=function(t,e){if(l(t,x))throw p(g);return e.facade=t,c(t,x,e),e},r=function(t){return l(t,x)?t[x]:{}},a=function(t){return l(t,x)}}t.exports={set:i,get:r,has:a,enforce:function(t){return a(t)?r(t):i(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=r(e)).type!==t)throw p("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var i=n(4),r=n(22),a=i.WeakMap;t.exports=r(a)&&/native code/.test(String(a))},function(t,e,n){var i=n(36),r=n(42),a=i("keys");t.exports=function(t){return a[t]||(a[t]=r(t))}},function(t){t.exports={}},function(t,e,n){var i=n(40),r=n(58),a=n(5),o=n(46);t.exports=function(t,e,n){for(var s=r(e),u=o.f,c=a.f,l=0;l<s.length;l++){var h=s[l];i(t,h)||n&&i(n,h)||u(t,h,c(e,h))}}},function(t,e,n){var i=n(25),r=n(14),a=n(59),o=n(68),s=n(48),u=r([].concat);t.exports=i("Reflect","ownKeys")||function(t){var e=a.f(s(t)),n=o.f;return n?u(e,n(t)):e}},function(t,e,n){var i=n(60),r=n(67).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},function(t,e,n){var i=n(14),r=n(40),a=n(12),o=n(61).indexOf,s=n(56),u=i([].push);t.exports=function(t,e){var n,i=a(t),c=0,l=[];for(n in i)!r(s,n)&&r(i,n)&&u(l,n);for(;e.length>c;)r(i,n=e[c++])&&(~o(l,n)||u(l,n));return l}},function(t,e,n){var i=n(12),r=n(62),a=n(65),o=function(t){return function(e,n,o){var s,u=i(e),c=a(u),l=r(o,c);if(t&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},function(t,e,n){var i=n(63),r=Math.max,a=Math.min;t.exports=function(t,e){var n=i(t);return n<0?r(n+e,0):a(n,e)}},function(t,e,n){var i=n(64);t.exports=function(t){var e=+t;return e!=e||0===e?0:i(e)}},function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var i=+t;return(i>0?n:e)(i)}},function(t,e,n){var i=n(66);t.exports=function(t){return i(t.length)}},function(t,e,n){var i=n(63),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var i=n(7),r=n(22),a=/#|\.prototype\./,o=function(t,e){var n=u[s(t)];return n==l||n!=c&&(r(e)?i(e):!!e)},s=o.normalize=function(t){return String(t).replace(a,".").toLowerCase()},u=o.data={},c=o.NATIVE="N",l=o.POLYFILL="P";t.exports=o},function(t,e,n){var i=n(71),r=String;t.exports=function(t){if("Symbol"===i(t))throw TypeError("Cannot convert a Symbol value to a string");return r(t)}},function(t,e,n){var i=n(72),r=n(22),a=n(15),o=n(35)("toStringTag"),s=Object,u="Arguments"==a(function(){return arguments}());t.exports=i?a:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=s(t),o))?n:u?a(e):"Object"==(i=a(e))&&r(e.callee)?"Arguments":i}},function(t,e,n){var i={};i[n(35)("toStringTag")]="z",t.exports="[object z]"===String(i)},function(t,e,n){var i,r=n(48),a=n(74),o=n(67),s=n(56),u=n(76),c=n(44),l=n(55),h=l("IE_PROTO"),f=function(){},d=function(t){return"<script>"+t+"</"+"script>"},g=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},p=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}var t,e;p="undefined"!=typeof document?document.domain&&i?g(i):((e=c("iframe")).style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):g(i);for(var n=o.length;n--;)delete p.prototype[o[n]];return p()};s[h]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(f.prototype=r(t),n=new f,f.prototype=null,n[h]=t):n=p(),void 0===e?n:a.f(n,e)}},function(t,e,n){var i=n(6),r=n(47),a=n(46),o=n(48),s=n(12),u=n(75);e.f=i&&!r?Object.defineProperties:function(t,e){o(t);for(var n,i=s(e),r=u(e),c=r.length,l=0;c>l;)a.f(t,n=r[l++],i[n]);return t}},function(t,e,n){var i=n(60),r=n(67);t.exports=Object.keys||function(t){return i(t,r)}},function(t,e,n){var i=n(25);t.exports=i("document","documentElement")},function(t,e,n){var i=n(15),r=n(12),a=n(59).f,o=n(78),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"==i(t)?function(t){try{return a(t)}catch(t){return o(s)}}(t):a(r(t))}},function(t,e,n){var i=n(62),r=n(65),a=n(79),o=Array,s=Math.max;t.exports=function(t,e,n){for(var u=r(t),c=i(e,u),l=i(void 0===n?u:n,u),h=o(s(l-c,0)),f=0;c<l;c++,f++)a(h,f,t[c]);return h.length=f,h}},function(t,e,n){"use strict";var i=n(19),r=n(46),a=n(11);t.exports=function(t,e,n){var o=i(e);o in t?r.f(t,o,a(0,n)):t[o]=n}},function(t,e,n){var i=n(35);e.f=i},function(t,e,n){var i=n(82),r=n(40),a=n(80),o=n(46).f;t.exports=function(t){var e=i.Symbol||(i.Symbol={});r(e,t)||o(e,t,{value:a.f(t)})}},function(t,e,n){var i=n(4);t.exports=i},function(t,e,n){var i=n(8),r=n(25),a=n(35),o=n(49);t.exports=function(){var t=r("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,s=a("toPrimitive");e&&!e[s]&&o(e,s,(function(t){return i(n,this)}),{arity:1})}},function(t,e,n){var i=n(46).f,r=n(40),a=n(35)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!r(t,a)&&i(t,a,{configurable:!0,value:e})}},function(t,e,n){var i=n(86),r=n(14),a=n(13),o=n(41),s=n(65),u=n(87),c=r([].push),l=function(t){var e=1==t,n=2==t,r=3==t,l=4==t,h=6==t,f=7==t,d=5==t||h;return function(g,p,v,y){for(var x,b,_=o(g),m=a(_),w=i(p,v),T=s(m),A=0,S=y||u,E=e?S(g,T):n||f?S(g,0):void 0;T>A;A++)if((d||A in m)&&(b=w(x=m[A],A,_),t))if(e)E[A]=b;else if(b)switch(t){case 3:return!0;case 5:return x;case 6:return A;case 2:c(E,x)}else switch(t){case 4:return!1;case 7:c(E,x)}return h?-1:r||l?l:E}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},function(t,e,n){var i=n(14),r=n(32),a=n(9),o=i(i.bind);t.exports=function(t,e){return r(t),void 0===e?t:a?o(t,e):function(){return t.apply(e,arguments)}}},function(t,e,n){var i=n(88);t.exports=function(t,e){return new(i(t))(0===e?0:e)}},function(t,e,n){var i=n(89),r=n(90),a=n(21),o=n(35)("species"),s=Array;t.exports=function(t){var e;return i(t)&&(e=t.constructor,(r(e)&&(e===s||i(e.prototype))||a(e)&&null===(e=e[o]))&&(e=void 0)),void 0===e?s:e}},function(t,e,n){var i=n(15);t.exports=Array.isArray||function(t){return"Array"==i(t)}},function(t,e,n){var i=n(14),r=n(7),a=n(22),o=n(71),s=n(25),u=n(52),c=function(){},l=[],h=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=i(f.exec),g=!f.exec(c),p=function(t){if(!a(t))return!1;try{return h(c,l,t),!0}catch(t){return!1}},v=function(t){if(!a(t))return!1;switch(o(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return g||!!d(f,u(t))}catch(t){return!0}};v.sham=!0,t.exports=!h||r((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?v:p},function(t,e,n){var i=n(3),r=n(25),a=n(40),o=n(70),s=n(36),u=n(92),c=s("string-to-symbol-registry"),l=s("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=o(t);if(a(c,e))return c[e];var n=r("Symbol")(e);return c[e]=n,l[n]=e,n}})},function(t,e,n){var i=n(28);t.exports=i&&!!Symbol.for&&!!Symbol.keyFor},function(t,e,n){var i=n(3),r=n(40),a=n(24),o=n(33),s=n(36),u=n(92),c=s("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!u},{keyFor:function(t){if(!a(t))throw TypeError(o(t)+" is not a symbol");if(r(c,t))return c[t]}})},function(t,e,n){var i=n(3),r=n(25),a=n(95),o=n(8),s=n(14),u=n(7),c=n(89),l=n(22),h=n(21),f=n(24),d=n(96),g=n(28),p=r("JSON","stringify"),v=s(/./.exec),y=s("".charAt),x=s("".charCodeAt),b=s("".replace),_=s(1..toString),m=/[\uD800-\uDFFF]/g,w=/^[\uD800-\uDBFF]$/,T=/^[\uDC00-\uDFFF]$/,A=!g||u((function(){var t=r("Symbol")();return"[null]"!=p([t])||"{}"!=p({a:t})||"{}"!=p(Object(t))})),S=u((function(){return'"\\udf06\\ud834"'!==p("\udf06\ud834")||'"\\udead"'!==p("\udead")})),E=function(t,e){var n=d(arguments),i=e;if((h(e)||void 0!==t)&&!f(t))return c(e)||(e=function(t,e){if(l(i)&&(e=o(i,this,t,e)),!f(e))return e}),n[1]=e,a(p,null,n)},k=function(t,e,n){var i=y(n,e-1),r=y(n,e+1);return v(w,t)&&!v(T,r)||v(T,t)&&!v(w,i)?"\\u"+_(x(t,0),16):t};p&&i({target:"JSON",stat:!0,arity:3,forced:A||S},{stringify:function(t,e,n){var i=d(arguments),r=a(A?E:p,null,i);return S&&"string"==typeof r?b(r,m,k):r}})},function(t,e,n){var i=n(9),r=Function.prototype,a=r.apply,o=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(i?o.bind(a):function(){return o.apply(a,arguments)})},function(t,e,n){var i=n(14);t.exports=i([].slice)},function(t,e,n){var i=n(3),r=n(28),a=n(7),o=n(68),s=n(41);i({target:"Object",stat:!0,forced:!r||a((function(){o.f(1)}))},{getOwnPropertySymbols:function(t){var e=o.f;return e?e(s(t)):[]}})},function(t,e,n){"use strict";var i=n(3),r=n(6),a=n(4),o=n(14),s=n(40),u=n(22),c=n(26),l=n(70),h=n(46).f,f=n(57),d=a.Symbol,g=d&&d.prototype;if(r&&u(d)&&(!("description"in g)||void 0!==d().description)){var p={},v=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),e=c(g,this)?new d(t):void 0===t?d():d(t);return""===t&&(p[e]=!0),e};f(v,d),v.prototype=g,g.constructor=v;var y="Symbol(test)"==String(d("test")),x=o(g.valueOf),b=o(g.toString),_=/^Symbol\((.*)\)[^)]+$/,m=o("".replace),w=o("".slice);h(g,"description",{configurable:!0,get:function(){var t=x(this);if(s(p,t))return"";var e=b(t),n=y?w(e,7,-1):m(e,_,"$1");return""===n?void 0:n}}),i({global:!0,constructor:!0,forced:!0},{Symbol:v})}},function(t,e,n){n(81)("asyncIterator")},function(t,e,n){n(81)("hasInstance")},function(t,e,n){n(81)("isConcatSpreadable")},function(t,e,n){n(81)("iterator")},function(t,e,n){n(81)("match")},function(t,e,n){n(81)("matchAll")},function(t,e,n){n(81)("replace")},function(t,e,n){n(81)("search")},function(t,e,n){n(81)("species")},function(t,e,n){n(81)("split")},function(t,e,n){var i=n(81),r=n(83);i("toPrimitive"),r()},function(t,e,n){var i=n(25),r=n(81),a=n(84);r("toStringTag"),a(i("Symbol"),"Symbol")},function(t,e,n){n(81)("unscopables")},function(t,e,n){var i=n(3),r=n(4),a=n(95),o=n(113),s="WebAssembly",u=r.WebAssembly,c=7!==Error("e",{cause:7}).cause,l=function(t,e){var n={};n[t]=o(t,e,c),i({global:!0,constructor:!0,arity:1,forced:c},n)},h=function(t,e){if(u&&u[t]){var n={};n[t]=o("WebAssembly."+t,e,c),i({target:s,stat:!0,constructor:!0,arity:1,forced:c},n)}};l("Error",(function(t){return function(e){return a(t,this,arguments)}})),l("EvalError",(function(t){return function(e){return a(t,this,arguments)}})),l("RangeError",(function(t){return function(e){return a(t,this,arguments)}})),l("ReferenceError",(function(t){return function(e){return a(t,this,arguments)}})),l("SyntaxError",(function(t){return function(e){return a(t,this,arguments)}})),l("TypeError",(function(t){return function(e){return a(t,this,arguments)}})),l("URIError",(function(t){return function(e){return a(t,this,arguments)}})),h("CompileError",(function(t){return function(e){return a(t,this,arguments)}})),h("LinkError",(function(t){return function(e){return a(t,this,arguments)}})),h("RuntimeError",(function(t){return function(e){return a(t,this,arguments)}}))},function(t,e,n){"use strict";var i=n(25),r=n(40),a=n(45),o=n(26),s=n(114),u=n(57),c=n(116),l=n(117),h=n(118),f=n(119),d=n(120),g=n(121),p=n(6),v=n(37);t.exports=function(t,e,n,y){var x="stackTraceLimit",b=y?2:1,_=t.split("."),m=_[_.length-1],w=i.apply(null,_);if(w){var T=w.prototype;if(!v&&r(T,"cause")&&delete T.cause,!n)return w;var A=i("Error"),S=e((function(t,e){var n=h(y?e:t,void 0),i=y?new w(t):new w;return void 0!==n&&a(i,"message",n),g&&a(i,"stack",d(i.stack,2)),this&&o(T,this)&&l(i,this,S),arguments.length>b&&f(i,arguments[b]),i}));if(S.prototype=T,"Error"!==m?s?s(S,A):u(S,A,{name:!0}):p&&x in w&&(c(S,w,x),c(S,w,"prepareStackTrace")),u(S,w),!v)try{T.name!==m&&a(T,"name",m),T.constructor=S}catch(t){}return S}}},function(t,e,n){var i=n(14),r=n(48),a=n(115);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return r(n),a(i),e?t(n,i):n.__proto__=i,n}}():void 0)},function(t,e,n){var i=n(22),r=String,a=TypeError;t.exports=function(t){if("object"==typeof t||i(t))return t;throw a("Can't set "+r(t)+" as a prototype")}},function(t,e,n){var i=n(46).f;t.exports=function(t,e,n){n in t||i(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},function(t,e,n){var i=n(22),r=n(21),a=n(114);t.exports=function(t,e,n){var o,s;return a&&i(o=e.constructor)&&o!==n&&r(s=o.prototype)&&s!==n.prototype&&a(t,s),t}},function(t,e,n){var i=n(70);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:i(t)}},function(t,e,n){var i=n(21),r=n(45);t.exports=function(t,e){i(e)&&"cause"in e&&r(t,"cause",e.cause)}},function(t,e,n){var i=n(14),r=Error,a=i("".replace),o=String(r("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,u=s.test(o);t.exports=function(t,e){if(u&&"string"==typeof t&&!r.prepareStackTrace)for(;e--;)t=a(t,s,"");return t}},function(t,e,n){var i=n(7),r=n(11);t.exports=!i((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",r(1,7)),7!==t.stack)}))},function(t,e,n){var i=n(49),r=n(123),a=Error.prototype;a.toString!==r&&i(a,"toString",r)},function(t,e,n){"use strict";var i=n(6),r=n(7),a=n(48),o=n(73),s=n(118),u=Error.prototype.toString,c=r((function(){if(i){var t=o(Object.defineProperty({},"name",{get:function(){return this===t}}));if("true"!==u.call(t))return!0}return"2: 1"!==u.call({message:1,name:2})||"Error"!==u.call({})}));t.exports=c?function(){var t=a(this),e=s(t.name,"Error"),n=s(t.message);return e?n?e+": "+n:e:n}:u},function(t,e,n){n(125)},function(t,e,n){"use strict";var i=n(3),r=n(26),a=n(126),o=n(114),s=n(57),u=n(73),c=n(45),l=n(11),h=n(120),f=n(119),d=n(128),g=n(118),p=n(35),v=n(121),y=p("toStringTag"),x=Error,b=[].push,_=function(t,e){var n,i=arguments.length>2?arguments[2]:void 0,s=r(m,this);o?n=o(x(),s?a(this):m):(n=s?this:u(m),c(n,y,"Error")),void 0!==e&&c(n,"message",g(e)),v&&c(n,"stack",h(n.stack,1)),f(n,i);var l=[];return d(t,b,{that:l}),c(n,"errors",l),n};o?o(_,x):s(_,x,{name:!0});var m=_.prototype=u(x.prototype,{constructor:l(1,_),message:l(1,""),name:l(1,"AggregateError")});i({global:!0,constructor:!0,arity:2},{AggregateError:_})},function(t,e,n){var i=n(40),r=n(22),a=n(41),o=n(55),s=n(127),u=o("IE_PROTO"),c=Object,l=c.prototype;t.exports=s?c.getPrototypeOf:function(t){var e=a(t);if(i(e,u))return e[u];var n=e.constructor;return r(n)&&e instanceof n?n.prototype:e instanceof c?l:null}},function(t,e,n){var i=n(7);t.exports=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var i=n(86),r=n(8),a=n(48),o=n(33),s=n(129),u=n(65),c=n(26),l=n(131),h=n(132),f=n(133),d=TypeError,g=function(t,e){this.stopped=t,this.result=e},p=g.prototype;t.exports=function(t,e,n){var v,y,x,b,_,m,w,T=n&&n.that,A=!(!n||!n.AS_ENTRIES),S=!(!n||!n.IS_RECORD),E=!(!n||!n.IS_ITERATOR),k=!(!n||!n.INTERRUPTED),M=i(e,T),O=function(t){return v&&f(v,"normal",t),new g(!0,t)},R=function(t){return A?(a(t),k?M(t[0],t[1],O):M(t[0],t[1])):k?M(t,O):M(t)};if(S)v=t.iterator;else if(E)v=t;else{if(!(y=h(t)))throw d(o(t)+" is not iterable");if(s(y)){for(x=0,b=u(t);b>x;x++)if((_=R(t[x]))&&c(p,_))return _;return new g(!1)}v=l(t,y)}for(m=S?t.next:v.next;!(w=r(m,v)).done;){try{_=R(w.value)}catch(t){f(v,"throw",t)}if("object"==typeof _&&_&&c(p,_))return _}return new g(!1)}},function(t,e,n){var i=n(35),r=n(130),a=i("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[a]===t)}},function(t){t.exports={}},function(t,e,n){var i=n(8),r=n(32),a=n(48),o=n(33),s=n(132),u=TypeError;t.exports=function(t,e){var n=arguments.length<2?s(t):e;if(r(n))return a(i(n,t));throw u(o(t)+" is not iterable")}},function(t,e,n){var i=n(71),r=n(31),a=n(18),o=n(130),s=n(35)("iterator");t.exports=function(t){if(!a(t))return r(t,s)||r(t,"@@iterator")||o[i(t)]}},function(t,e,n){var i=n(8),r=n(48),a=n(31);t.exports=function(t,e,n){var o,s;r(t);try{if(!(o=a(t,"return"))){if("throw"===e)throw n;return n}o=i(o,t)}catch(t){s=!0,o=t}if("throw"===e)throw n;if(s)throw o;return r(o),n}},function(t,e,n){var i=n(3),r=n(25),a=n(95),o=n(7),s=n(113),u="AggregateError",c=r(u),l=!o((function(){return 1!==c([1]).errors[0]}))&&o((function(){return 7!==c([1],u,{cause:7}).cause}));i({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:s(u,(function(t){return function(e,n){return a(t,this,arguments)}}),l,!0)})},function(t,e,n){"use strict";var i=n(3),r=n(41),a=n(65),o=n(63),s=n(136);i({target:"Array",proto:!0},{at:function(t){var e=r(this),n=a(e),i=o(t),s=i>=0?i:n+i;return s<0||s>=n?void 0:e[s]}}),s("at")},function(t,e,n){var i=n(35),r=n(73),a=n(46).f,o=i("unscopables"),s=Array.prototype;null==s[o]&&a(s,o,{configurable:!0,value:r(null)}),t.exports=function(t){s[o][t]=!0}},function(t,e,n){"use strict";var i=n(3),r=n(7),a=n(89),o=n(21),s=n(41),u=n(65),c=n(138),l=n(79),h=n(87),f=n(139),d=n(35),g=n(29),p=d("isConcatSpreadable"),v=g>=51||!r((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),y=f("concat"),x=function(t){if(!o(t))return!1;var e=t[p];return void 0!==e?!!e:a(t)};i({target:"Array",proto:!0,arity:1,forced:!v||!y},{concat:function(t){var e,n,i,r,a,o=s(this),f=h(o,0),d=0;for(e=-1,i=arguments.length;e<i;e++)if(x(a=-1===e?o:arguments[e]))for(r=u(a),c(d+r),n=0;n<r;n++,d++)n in a&&l(f,d,a[n]);else c(d+1),l(f,d++,a);return f.length=d,f}})},function(t){var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},function(t,e,n){var i=n(7),r=n(35),a=n(29),o=r("species");t.exports=function(t){return a>=51||!i((function(){var e=[];return(e.constructor={})[o]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){var i=n(3),r=n(141),a=n(136);i({target:"Array",proto:!0},{copyWithin:r}),a("copyWithin")},function(t,e,n){"use strict";var i=n(41),r=n(62),a=n(65),o=n(142),s=Math.min;t.exports=[].copyWithin||function(t,e){var n=i(this),u=a(n),c=r(t,u),l=r(e,u),h=arguments.length>2?arguments[2]:void 0,f=s((void 0===h?u:r(h,u))-l,u-c),d=1;for(l<c&&c<l+f&&(d=-1,l+=f-1,c+=f-1);f-- >0;)l in n?n[c]=n[l]:o(n,c),c+=d,l+=d;return n}},function(t,e,n){"use strict";var i=n(33),r=TypeError;t.exports=function(t,e){if(!delete t[e])throw r("Cannot delete property "+i(e)+" of "+i(t))}},function(t,e,n){"use strict";var i=n(3),r=n(85).every;i({target:"Array",proto:!0,forced:!n(144)("every")},{every:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var i=n(7);t.exports=function(t,e){var n=[][t];return!!n&&i((function(){n.call(null,e||function(){return 1},1)}))}},function(t,e,n){var i=n(3),r=n(146),a=n(136);i({target:"Array",proto:!0},{fill:r}),a("fill")},function(t,e,n){"use strict";var i=n(41),r=n(62),a=n(65);t.exports=function(t){for(var e=i(this),n=a(e),o=arguments.length,s=r(o>1?arguments[1]:void 0,n),u=o>2?arguments[2]:void 0,c=void 0===u?n:r(u,n);c>s;)e[s++]=t;return e}},function(t,e,n){"use strict";var i=n(3),r=n(85).filter;i({target:"Array",proto:!0,forced:!n(139)("filter")},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var i=n(3),r=n(85).find,a=n(136),o="find",s=!0;o in[]&&Array(1).find((function(){s=!1})),i({target:"Array",proto:!0,forced:s},{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),a(o)},function(t,e,n){"use strict";var i=n(3),r=n(85).findIndex,a=n(136),o="findIndex",s=!0;o in[]&&Array(1).findIndex((function(){s=!1})),i({target:"Array",proto:!0,forced:s},{findIndex:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),a(o)},function(t,e,n){"use strict";var i=n(3),r=n(151).findLast,a=n(136);i({target:"Array",proto:!0},{findLast:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),a("findLast")},function(t,e,n){var i=n(86),r=n(13),a=n(41),o=n(65),s=function(t){var e=1==t;return function(n,s,u){for(var c,l=a(n),h=r(l),f=i(s,u),d=o(h);d-- >0;)if(f(c=h[d],d,l))switch(t){case 0:return c;case 1:return d}return e?-1:void 0}};t.exports={findLast:s(0),findLastIndex:s(1)}},function(t,e,n){"use strict";var i=n(3),r=n(151).findLastIndex,a=n(136);i({target:"Array",proto:!0},{findLastIndex:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),a("findLastIndex")},function(t,e,n){"use strict";var i=n(3),r=n(154),a=n(41),o=n(65),s=n(63),u=n(87);i({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=a(this),n=o(e),i=u(e,0);return i.length=r(i,e,e,n,0,void 0===t?1:s(t)),i}})},function(t,e,n){"use strict";var i=n(89),r=n(65),a=n(138),o=n(86),s=function(t,e,n,u,c,l,h,f){for(var d,g,p=c,v=0,y=!!h&&o(h,f);v<u;)v in n&&(d=y?y(n[v],v,e):n[v],l>0&&i(d)?(g=r(d),p=s(t,e,d,g,p,l-1)-1):(a(p+1),t[p]=d),p++),v++;return p};t.exports=s},function(t,e,n){"use strict";var i=n(3),r=n(154),a=n(32),o=n(41),s=n(65),u=n(87);i({target:"Array",proto:!0},{flatMap:function(t){var e,n=o(this),i=s(n);return a(t),(e=u(n,0)).length=r(e,n,n,i,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},function(t,e,n){"use strict";var i=n(3),r=n(157);i({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},function(t,e,n){"use strict";var i=n(85).forEach,r=n(144)("forEach");t.exports=r?[].forEach:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,n){var i=n(3),r=n(159);i({target:"Array",stat:!0,forced:!n(161)((function(t){Array.from(t)}))},{from:r})},function(t,e,n){"use strict";var i=n(86),r=n(8),a=n(41),o=n(160),s=n(129),u=n(90),c=n(65),l=n(79),h=n(131),f=n(132),d=Array;t.exports=function(t){var e=a(t),n=u(this),g=arguments.length,p=g>1?arguments[1]:void 0,v=void 0!==p;v&&(p=i(p,g>2?arguments[2]:void 0));var y,x,b,_,m,w,T=f(e),A=0;if(!T||this===d&&s(T))for(y=c(e),x=n?new this(y):d(y);y>A;A++)w=v?p(e[A],A):e[A],l(x,A,w);else for(m=(_=h(e,T)).next,x=n?new this:[];!(b=r(m,_)).done;A++)w=v?o(_,p,[b.value,A],!0):b.value,l(x,A,w);return x.length=A,x}},function(t,e,n){var i=n(48),r=n(133);t.exports=function(t,e,n,a){try{return a?e(i(n)[0],n[1]):e(n)}catch(e){r(t,"throw",e)}}},function(t,e,n){var i=n(35)("iterator"),r=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){r=!0}};o[i]=function(){return this},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var a={};a[i]=function(){return{next:function(){return{done:n=!0}}}},t(a)}catch(t){}return n}},function(t,e,n){"use strict";var i=n(3),r=n(61).includes,a=n(7),o=n(136);i({target:"Array",proto:!0,forced:a((function(){return!Array(1).includes()}))},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(t,e,n){"use strict";var i=n(3),r=n(14),a=n(61).indexOf,o=n(144),s=r([].indexOf),u=!!s&&1/s([1],1,-0)<0,c=o("indexOf");i({target:"Array",proto:!0,forced:u||!c},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return u?s(this,t,e)||0:a(this,t,e)}})},function(t,e,n){n(3)({target:"Array",stat:!0},{isArray:n(89)})},function(t,e,n){"use strict";var i=n(12),r=n(136),a=n(130),o=n(53),s=n(46).f,u=n(166),c=n(169),l=n(37),h=n(6),f="Array Iterator",d=o.set,g=o.getterFor(f);t.exports=u(Array,"Array",(function(t,e){d(this,{type:f,target:i(t),index:0,kind:e})}),(function(){var t=g(this),e=t.target,n=t.kind,i=t.index++;return!e||i>=e.length?(t.target=void 0,c(void 0,!0)):c("keys"==n?i:"values"==n?e[i]:[i,e[i]],!1)}),"values");var p=a.Arguments=a.Array;if(r("keys"),r("values"),r("entries"),!l&&h&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(t){}},function(t,e,n){"use strict";var i=n(3),r=n(8),a=n(37),o=n(51),s=n(22),u=n(167),c=n(126),l=n(114),h=n(84),f=n(45),d=n(49),g=n(35),p=n(130),v=n(168),y=o.PROPER,x=o.CONFIGURABLE,b=v.IteratorPrototype,_=v.BUGGY_SAFARI_ITERATORS,m=g("iterator"),w="keys",T="values",A="entries",S=function(){return this};t.exports=function(t,e,n,o,g,v,E){u(n,e,o);var k,M,O,R=function(t){if(t===g&&D)return D;if(!_&&t in L)return L[t];switch(t){case w:case T:case A:return function(){return new n(this,t)}}return function(){return new n(this)}},C=e+" Iterator",I=!1,L=t.prototype,P=L[m]||L["@@iterator"]||g&&L[g],D=!_&&P||R(g),N="Array"==e&&L.entries||P;if(N&&(k=c(N.call(new t)))!==Object.prototype&&k.next&&(a||c(k)===b||(l?l(k,b):s(k[m])||d(k,m,S)),h(k,C,!0,!0),a&&(p[C]=S)),y&&g==T&&P&&P.name!==T&&(!a&&x?f(L,"name",T):(I=!0,D=function(){return r(P,this)})),g)if(M={values:R(T),keys:v?D:R(w),entries:R(A)},E)for(O in M)(_||I||!(O in L))&&d(L,O,M[O]);else i({target:e,proto:!0,forced:_||I},M);return a&&!E||L[m]===D||d(L,m,D,{name:g}),p[e]=D,M}},function(t,e,n){"use strict";var i=n(168).IteratorPrototype,r=n(73),a=n(11),o=n(84),s=n(130),u=function(){return this};t.exports=function(t,e,n,c){var l=e+" Iterator";return t.prototype=r(i,{next:a(+!c,n)}),o(t,l,!1,!0),s[l]=u,t}},function(t,e,n){"use strict";var i,r,a,o=n(7),s=n(22),u=n(21),c=n(73),l=n(126),h=n(49),f=n(35),d=n(37),g=f("iterator"),p=!1;[].keys&&("next"in(a=[].keys())?(r=l(l(a)))!==Object.prototype&&(i=r):p=!0),!u(i)||o((function(){var t={};return i[g].call(t)!==t}))?i={}:d&&(i=c(i)),s(i[g])||h(i,g,(function(){return this})),t.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:p}},function(t){t.exports=function(t,e){return{value:t,done:e}}},function(t,e,n){"use strict";var i=n(3),r=n(14),a=n(13),o=n(12),s=n(144),u=r([].join),c=a!=Object,l=s("join",",");i({target:"Array",proto:!0,forced:c||!l},{join:function(t){return u(o(this),void 0===t?",":t)}})},function(t,e,n){var i=n(3),r=n(172);i({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r})},function(t,e,n){"use strict";var i=n(95),r=n(12),a=n(63),o=n(65),s=n(144),u=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,h=s("lastIndexOf"),f=l||!h;t.exports=f?function(t){if(l)return i(c,this,arguments)||0;var e=r(this),n=o(e),s=n-1;for(arguments.length>1&&(s=u(s,a(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in e&&e[s]===t)return s||0;return-1}:c},function(t,e,n){"use strict";var i=n(3),r=n(85).map;i({target:"Array",proto:!0,forced:!n(139)("map")},{map:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var i=n(3),r=n(7),a=n(90),o=n(79),s=Array;i({target:"Array",stat:!0,forced:r((function(){function t(){}return!(s.of.call(t)instanceof t)}))},{of:function(){for(var t=0,e=arguments.length,n=new(a(this)?this:s)(e);e>t;)o(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var i=n(3),r=n(41),a=n(65),o=n(176),s=n(138),u=n(7)((function(){return 4294967297!==[].push.call({length:4294967296},1)})),c=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}();i({target:"Array",proto:!0,arity:1,forced:u||c},{push:function(t){var e=r(this),n=a(e),i=arguments.length;s(n+i);for(var u=0;u<i;u++)e[n]=arguments[u],n++;return o(e,n),n}})},function(t,e,n){"use strict";var i=n(6),r=n(89),a=TypeError,o=Object.getOwnPropertyDescriptor,s=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(r(t)&&!o(t,"length").writable)throw a("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},function(t,e,n){"use strict";var i=n(3),r=n(178).left,a=n(144),o=n(29),s=n(179);i({target:"Array",proto:!0,forced:!a("reduce")||!s&&o>79&&o<83},{reduce:function(t){var e=arguments.length;return r(this,t,e,e>1?arguments[1]:void 0)}})},function(t,e,n){var i=n(32),r=n(41),a=n(13),o=n(65),s=TypeError,u=function(t){return function(e,n,u,c){i(n);var l=r(e),h=a(l),f=o(l),d=t?f-1:0,g=t?-1:1;if(u<2)for(;;){if(d in h){c=h[d],d+=g;break}if(d+=g,t?d<0:f<=d)throw s("Reduce of empty array with no initial value")}for(;t?d>=0:f>d;d+=g)d in h&&(c=n(c,h[d],d,l));return c}};t.exports={left:u(!1),right:u(!0)}},function(t,e,n){var i=n(15),r=n(4);t.exports="process"==i(r.process)},function(t,e,n){"use strict";var i=n(3),r=n(178).right,a=n(144),o=n(29),s=n(179);i({target:"Array",proto:!0,forced:!a("reduceRight")||!s&&o>79&&o<83},{reduceRight:function(t){return r(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var i=n(3),r=n(14),a=n(89),o=r([].reverse),s=[1,2];i({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return a(this)&&(this.length=this.length),o(this)}})},function(t,e,n){"use strict";var i=n(3),r=n(89),a=n(90),o=n(21),s=n(62),u=n(65),c=n(12),l=n(79),h=n(35),f=n(139),d=n(96),g=f("slice"),p=h("species"),v=Array,y=Math.max;i({target:"Array",proto:!0,forced:!g},{slice:function(t,e){var n,i,h,f=c(this),g=u(f),x=s(t,g),b=s(void 0===e?g:e,g);if(r(f)&&(n=f.constructor,(a(n)&&(n===v||r(n.prototype))||o(n)&&null===(n=n[p]))&&(n=void 0),n===v||void 0===n))return d(f,x,b);for(i=new(void 0===n?v:n)(y(b-x,0)),h=0;x<b;x++,h++)x in f&&l(i,h,f[x]);return i.length=h,i}})},function(t,e,n){"use strict";var i=n(3),r=n(85).some;i({target:"Array",proto:!0,forced:!n(144)("some")},{some:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var i=n(3),r=n(14),a=n(32),o=n(41),s=n(65),u=n(142),c=n(70),l=n(7),h=n(185),f=n(144),d=n(186),g=n(187),p=n(29),v=n(188),y=[],x=r(y.sort),b=r(y.push),_=l((function(){y.sort(void 0)})),m=l((function(){y.sort(null)})),w=f("sort"),T=!l((function(){if(p)return p<70;if(!(d&&d>3)){if(g)return!0;if(v)return v<603;var t,e,n,i,r="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)y.push({k:e+i,v:n})}for(y.sort((function(t,e){return e.v-t.v})),i=0;i<y.length;i++)e=y[i].k.charAt(0),r.charAt(r.length-1)!==e&&(r+=e);return"DGBEFHACIJK"!==r}}));i({target:"Array",proto:!0,forced:_||!m||!w||!T},{sort:function(t){void 0!==t&&a(t);var e=o(this);if(T)return void 0===t?x(e):x(e,t);var n,i,r=[],l=s(e);for(i=0;i<l;i++)i in e&&b(r,e[i]);for(h(r,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:c(e)>c(n)?1:-1}}(t)),n=s(r),i=0;i<n;)e[i]=r[i++];for(;i<l;)u(e,i++);return e}})},function(t,e,n){var i=n(78),r=Math.floor,a=function(t,e){var n=t.length,u=r(n/2);return n<8?o(t,e):s(t,a(i(t,0,u),e),a(i(t,u),e),e)},o=function(t,e){for(var n,i,r=t.length,a=1;a<r;){for(i=a,n=t[a];i&&e(t[i-1],n)>0;)t[i]=t[--i];i!==a++&&(t[i]=n)}return t},s=function(t,e,n,i){for(var r=e.length,a=n.length,o=0,s=0;o<r||s<a;)t[o+s]=o<r&&s<a?i(e[o],n[s])<=0?e[o++]:n[s++]:o<r?e[o++]:n[s++];return t};t.exports=a},function(t,e,n){var i=n(30).match(/firefox\/(\d+)/i);t.exports=!!i&&+i[1]},function(t,e,n){var i=n(30);t.exports=/MSIE|Trident/.test(i)},function(t,e,n){var i=n(30).match(/AppleWebKit\/(\d+)\./);t.exports=!!i&&+i[1]},function(t,e,n){n(190)("Array")},function(t,e,n){"use strict";var i=n(25),r=n(46),a=n(35),o=n(6),s=a("species");t.exports=function(t){var e=i(t),n=r.f;o&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,n){"use strict";var i=n(3),r=n(41),a=n(62),o=n(63),s=n(65),u=n(176),c=n(138),l=n(87),h=n(79),f=n(142),d=n(139)("splice"),g=Math.max,p=Math.min;i({target:"Array",proto:!0,forced:!d},{splice:function(t,e){var n,i,d,v,y,x,b=r(this),_=s(b),m=a(t,_),w=arguments.length;for(0===w?n=i=0:1===w?(n=0,i=_-m):(n=w-2,i=p(g(o(e),0),_-m)),c(_+n-i),d=l(b,i),v=0;v<i;v++)(y=m+v)in b&&h(d,v,b[y]);if(d.length=i,n<i){for(v=m;v<_-i;v++)x=v+n,(y=v+i)in b?b[x]=b[y]:f(b,x);for(v=_;v>_-i+n;v--)f(b,v-1)}else if(n>i)for(v=_-i;v>m;v--)x=v+n-1,(y=v+i-1)in b?b[x]=b[y]:f(b,x);for(v=0;v<n;v++)b[v+m]=arguments[v+2];return u(b,_-i+n),d}})},function(t,e,n){n(136)("flat")},function(t,e,n){n(136)("flatMap")},function(t,e,n){"use strict";var i=n(3),r=n(41),a=n(65),o=n(176),s=n(142),u=n(138),c=1!==[].unshift(0),l=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}}();i({target:"Array",proto:!0,arity:1,forced:c||l},{unshift:function(t){var e=r(this),n=a(e),i=arguments.length;if(i){u(n+i);for(var c=n;c--;){var l=c+i;c in e?e[l]=e[c]:s(e,l)}for(var h=0;h<i;h++)e[h]=arguments[h]}return o(e,n+i)}})},function(t,e,n){"use strict";var i=n(3),r=n(4),a=n(196),o=n(190),s="ArrayBuffer",u=a.ArrayBuffer;i({global:!0,constructor:!0,forced:r.ArrayBuffer!==u},{ArrayBuffer:u}),o(s)},function(t,e,n){"use strict";var i=n(4),r=n(14),a=n(6),o=n(197),s=n(51),u=n(45),c=n(198),l=n(7),h=n(199),f=n(63),d=n(66),g=n(200),p=n(201),v=n(126),y=n(114),x=n(59).f,b=n(46).f,_=n(146),m=n(78),w=n(84),T=n(53),A=s.PROPER,S=s.CONFIGURABLE,E=T.get,k=T.set,M="ArrayBuffer",O="DataView",R="Wrong index",C=i.ArrayBuffer,I=C,L=I&&I.prototype,P=i.DataView,D=P&&P.prototype,N=Object.prototype,z=i.Array,F=i.RangeError,j=r(_),B=r([].reverse),X=p.pack,$=p.unpack,U=function(t){return[255&t]},Y=function(t){return[255&t,t>>8&255]},V=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},G=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},H=function(t){return X(t,23,4)},W=function(t){return X(t,52,8)},q=function(t,e){b(t.prototype,e,{get:function(){return E(this)[e]}})},Z=function(t,e,n,i){var r=g(n),a=E(t);if(r+e>a.byteLength)throw F(R);var o=E(a.buffer).bytes,s=r+a.byteOffset,u=m(o,s,s+e);return i?u:B(u)},K=function(t,e,n,i,r,a){var o=g(n),s=E(t);if(o+e>s.byteLength)throw F(R);for(var u=E(s.buffer).bytes,c=o+s.byteOffset,l=i(+r),h=0;h<e;h++)u[c+h]=l[a?h:e-h-1]};if(o){var J=A&&C.name!==M;if(l((function(){C(1)}))&&l((function(){new C(-1)}))&&!l((function(){return new C,new C(1.5),new C(NaN),1!=C.length||J&&!S})))J&&S&&u(C,"name",M);else{(I=function(t){return h(this,L),new C(g(t))}).prototype=L;for(var Q,tt=x(C),et=0;tt.length>et;)(Q=tt[et++])in I||u(I,Q,C[Q]);L.constructor=I}y&&v(D)!==N&&y(D,N);var nt=new P(new I(2)),it=r(D.setInt8);nt.setInt8(0,2147483648),nt.setInt8(1,2147483649),!nt.getInt8(0)&&nt.getInt8(1)||c(D,{setInt8:function(t,e){it(this,t,e<<24>>24)},setUint8:function(t,e){it(this,t,e<<24>>24)}},{unsafe:!0})}else L=(I=function(t){h(this,L);var e=g(t);k(this,{bytes:j(z(e),0),byteLength:e}),a||(this.byteLength=e)}).prototype,D=(P=function(t,e,n){h(this,D),h(t,L);var i=E(t).byteLength,r=f(e);if(r<0||r>i)throw F("Wrong offset");if(r+(n=void 0===n?i-r:d(n))>i)throw F("Wrong length");k(this,{buffer:t,byteLength:n,byteOffset:r}),a||(this.buffer=t,this.byteLength=n,this.byteOffset=r)}).prototype,a&&(q(I,"byteLength"),q(P,"buffer"),q(P,"byteLength"),q(P,"byteOffset")),c(D,{getInt8:function(t){return Z(this,1,t)[0]<<24>>24},getUint8:function(t){return Z(this,1,t)[0]},getInt16:function(t){var e=Z(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=Z(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return G(Z(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return G(Z(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return $(Z(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return $(Z(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){K(this,1,t,U,e)},setUint8:function(t,e){K(this,1,t,U,e)},setInt16:function(t,e){K(this,2,t,Y,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){K(this,2,t,Y,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){K(this,4,t,V,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){K(this,4,t,V,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){K(this,4,t,H,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){K(this,8,t,W,e,arguments.length>2?arguments[2]:void 0)}});w(I,M),w(P,O),t.exports={ArrayBuffer:I,DataView:P}},function(t){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(t,e,n){var i=n(49);t.exports=function(t,e,n){for(var r in e)i(t,r,e[r],n);return t}},function(t,e,n){var i=n(26),r=TypeError;t.exports=function(t,e){if(i(e,t))return t;throw r("Incorrect invocation")}},function(t,e,n){var i=n(63),r=n(66),a=RangeError;t.exports=function(t){if(void 0===t)return 0;var e=i(t),n=r(e);if(e!==n)throw a("Wrong length or index");return n}},function(t){var e=Array,n=Math.abs,i=Math.pow,r=Math.floor,a=Math.log,o=Math.LN2;t.exports={pack:function(t,s,u){var c,l,h,f=e(u),d=8*u-s-1,g=(1<<d)-1,p=g>>1,v=23===s?i(2,-24)-i(2,-77):0,y=t<0||0===t&&1/t<0?1:0,x=0;for((t=n(t))!=t||t===1/0?(l=t!=t?1:0,c=g):(c=r(a(t)/o),t*(h=i(2,-c))<1&&(c--,h*=2),(t+=c+p>=1?v/h:v*i(2,1-p))*h>=2&&(c++,h/=2),c+p>=g?(l=0,c=g):c+p>=1?(l=(t*h-1)*i(2,s),c+=p):(l=t*i(2,p-1)*i(2,s),c=0));s>=8;)f[x++]=255&l,l/=256,s-=8;for(c=c<<s|l,d+=s;d>0;)f[x++]=255&c,c/=256,d-=8;return f[--x]|=128*y,f},unpack:function(t,e){var n,r=t.length,a=8*r-e-1,o=(1<<a)-1,s=o>>1,u=a-7,c=r-1,l=t[c--],h=127&l;for(l>>=7;u>0;)h=256*h+t[c--],u-=8;for(n=h&(1<<-u)-1,h>>=-u,u+=e;u>0;)n=256*n+t[c--],u-=8;if(0===h)h=1-s;else{if(h===o)return n?NaN:l?-1/0:1/0;n+=i(2,e),h-=s}return(l?-1:1)*n*i(2,h-e)}}},function(t,e,n){var i=n(3),r=n(203);i({target:"ArrayBuffer",stat:!0,forced:!r.NATIVE_ARRAY_BUFFER_VIEWS},{isView:r.isView})},function(t,e,n){"use strict";var i,r,a,o=n(197),s=n(6),u=n(4),c=n(22),l=n(21),h=n(40),f=n(71),d=n(33),g=n(45),p=n(49),v=n(46).f,y=n(26),x=n(126),b=n(114),_=n(35),m=n(42),w=n(53),T=w.enforce,A=w.get,S=u.Int8Array,E=S&&S.prototype,k=u.Uint8ClampedArray,M=k&&k.prototype,O=S&&x(S),R=E&&x(E),C=Object.prototype,I=u.TypeError,L=_("toStringTag"),P=m("TYPED_ARRAY_TAG"),D="TypedArrayConstructor",N=o&&!!b&&"Opera"!==f(u.opera),z=!1,F={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},j={BigInt64Array:8,BigUint64Array:8},B=function(t){var e=x(t);if(l(e)){var n=A(e);return n&&h(n,D)?n.TypedArrayConstructor:B(e)}},X=function(t){if(!l(t))return!1;var e=f(t);return h(F,e)||h(j,e)};for(i in F)(a=(r=u[i])&&r.prototype)?T(a).TypedArrayConstructor=r:N=!1;for(i in j)(a=(r=u[i])&&r.prototype)&&(T(a).TypedArrayConstructor=r);if((!N||!c(O)||O===Function.prototype)&&(O=function(){throw I("Incorrect invocation")},N))for(i in F)u[i]&&b(u[i],O);if((!N||!R||R===C)&&(R=O.prototype,N))for(i in F)u[i]&&b(u[i].prototype,R);if(N&&x(M)!==R&&b(M,R),s&&!h(R,L))for(i in z=!0,v(R,L,{get:function(){return l(this)?this[P]:void 0}}),F)u[i]&&g(u[i],P,i);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:z&&P,aTypedArray:function(t){if(X(t))return t;throw I("Target is not a typed array")},aTypedArrayConstructor:function(t){if(c(t)&&(!b||y(O,t)))return t;throw I(d(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,n,i){if(s){if(n)for(var r in F){var a=u[r];if(a&&h(a.prototype,t))try{delete a.prototype[t]}catch(n){try{a.prototype[t]=e}catch(t){}}}R[t]&&!n||p(R,t,n?e:N&&E[t]||e,i)}},exportTypedArrayStaticMethod:function(t,e,n){var i,r;if(s){if(b){if(n)for(i in F)if((r=u[i])&&h(r,t))try{delete r[t]}catch(t){}if(O[t]&&!n)return;try{return p(O,t,n?e:N&&O[t]||e)}catch(t){}}for(i in F)!(r=u[i])||r[t]&&!n||p(r,t,e)}},getTypedArrayConstructor:B,isView:function(t){if(!l(t))return!1;var e=f(t);return"DataView"===e||h(F,e)||h(j,e)},isTypedArray:X,TypedArray:O,TypedArrayPrototype:R}},function(t,e,n){"use strict";var i=n(3),r=n(14),a=n(7),o=n(196),s=n(48),u=n(62),c=n(66),l=n(205),h=o.ArrayBuffer,f=o.DataView,d=f.prototype,g=r(h.prototype.slice),p=r(d.getUint8),v=r(d.setUint8);i({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:a((function(){return!new h(2).slice(1,void 0).byteLength}))},{slice:function(t,e){if(g&&void 0===e)return g(s(this),t);for(var n=s(this).byteLength,i=u(t,n),r=u(void 0===e?n:e,n),a=new(l(this,h))(c(r-i)),o=new f(this),d=new f(a),y=0;i<r;)v(d,y++,p(o,i++));return a}})},function(t,e,n){var i=n(48),r=n(206),a=n(18),o=n(35)("species");t.exports=function(t,e){var n,s=i(t).constructor;return void 0===s||a(n=i(s)[o])?e:r(n)}},function(t,e,n){var i=n(90),r=n(33),a=TypeError;t.exports=function(t){if(i(t))return t;throw a(r(t)+" is not a constructor")}},function(t,e,n){n(208)},function(t,e,n){var i=n(3),r=n(196);i({global:!0,constructor:!0,forced:!n(197)},{DataView:r.DataView})},function(t,e,n){"use strict";var i=n(3),r=n(14),a=n(7)((function(){return 120!==new Date(16e11).getYear()})),o=r(Date.prototype.getFullYear);i({target:"Date",proto:!0,forced:a},{getYear:function(){return o(this)-1900}})},function(t,e,n){var i=n(3),r=n(14),a=Date,o=r(a.prototype.getTime);i({target:"Date",stat:!0},{now:function(){return o(new a)}})},function(t,e,n){"use strict";var i=n(3),r=n(14),a=n(63),o=Date.prototype,s=r(o.getTime),u=r(o.setFullYear);i({target:"Date",proto:!0},{setYear:function(t){s(this);var e=a(t);return u(this,0<=e&&e<=99?e+1900:e)}})},function(t,e,n){n(3)({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})},function(t,e,n){var i=n(3),r=n(214);i({target:"Date",proto:!0,forced:Date.prototype.toISOString!==r},{toISOString:r})},function(t,e,n){"use strict";var i=n(14),r=n(7),a=n(215).start,o=RangeError,s=isFinite,u=Math.abs,c=Date.prototype,l=c.toISOString,h=i(c.getTime),f=i(c.getUTCDate),d=i(c.getUTCFullYear),g=i(c.getUTCHours),p=i(c.getUTCMilliseconds),v=i(c.getUTCMinutes),y=i(c.getUTCMonth),x=i(c.getUTCSeconds);t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=l.call(new Date(-50000000000001))}))||!r((function(){l.call(new Date(NaN))}))?function(){if(!s(h(this)))throw o("Invalid time value");var t=this,e=d(t),n=p(t),i=e<0?"-":e>9999?"+":"";return i+a(u(e),i?6:4,0)+"-"+a(y(t)+1,2,0)+"-"+a(f(t),2,0)+"T"+a(g(t),2,0)+":"+a(v(t),2,0)+":"+a(x(t),2,0)+"."+a(n,3,0)+"Z"}:l},function(t,e,n){var i=n(14),r=n(66),a=n(70),o=n(216),s=n(17),u=i(o),c=i("".slice),l=Math.ceil,h=function(t){return function(e,n,i){var o,h,f=a(s(e)),d=r(n),g=f.length,p=void 0===i?" ":a(i);return d<=g||""==p?f:((h=u(p,l((o=d-g)/p.length))).length>o&&(h=c(h,0,o)),t?f+h:h+f)}};t.exports={start:h(!1),end:h(!0)}},function(t,e,n){"use strict";var i=n(63),r=n(70),a=n(17),o=RangeError;t.exports=function(t){var e=r(a(this)),n="",s=i(t);if(s<0||s==1/0)throw o("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(e+=e))1&s&&(n+=e);return n}},function(t,e,n){"use strict";var i=n(3),r=n(7),a=n(41),o=n(20);i({target:"Date",proto:!0,arity:1,forced:r((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(t){var e=a(this),n=o(e,"number");return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var i=n(40),r=n(49),a=n(219),o=n(35)("toPrimitive"),s=Date.prototype;i(s,o)||r(s,o,a)},function(t,e,n){"use strict";var i=n(48),r=n(34),a=TypeError;t.exports=function(t){if(i(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw a("Incorrect hint");return r(this,t)}},function(t,e,n){var i=n(14),r=n(49),a=Date.prototype,o="Invalid Date",s="toString",u=i(a.toString),c=i(a.getTime);String(new Date(NaN))!=o&&r(a,s,(function(){var t=c(this);return t==t?u(this):o}))},function(t,e,n){"use strict";var i=n(3),r=n(14),a=n(70),o=r("".charAt),s=r("".charCodeAt),u=r(/./.exec),c=r(1..toString),l=r("".toUpperCase),h=/[\w*+\-./@]/,f=function(t,e){for(var n=c(t,16);n.length<e;)n="0"+n;return n};i({global:!0},{escape:function(t){for(var e,n,i=a(t),r="",c=i.length,d=0;d<c;)e=o(i,d++),u(h,e)?r+=e:r+=(n=s(e,0))<256?"%"+f(n,2):"%u"+l(f(n,4));return r}})},function(t,e,n){var i=n(3),r=n(223);i({target:"Function",proto:!0,forced:Function.bind!==r},{bind:r})},function(t,e,n){"use strict";var i=n(14),r=n(32),a=n(21),o=n(40),s=n(96),u=n(9),c=Function,l=i([].concat),h=i([].join),f={},d=function(t,e,n){if(!o(f,e)){for(var i=[],r=0;r<e;r++)i[r]="a["+r+"]";f[e]=c("C,a","return new C("+h(i,",")+")")}return f[e](t,n)};t.exports=u?c.bind:function(t){var e=r(this),n=e.prototype,i=s(arguments,1),o=function(){var n=l(i,s(arguments));return this instanceof o?d(e,n.length,n):e.apply(t,n)};return a(n)&&(o.prototype=n),o}},function(t,e,n){"use strict";var i=n(22),r=n(21),a=n(46),o=n(126),s=n(35),u=n(50),c=s("hasInstance"),l=Function.prototype;c in l||a.f(l,c,{value:u((function(t){if(!i(this)||!r(t))return!1;var e=this.prototype;if(!r(e))return t instanceof this;for(;t=o(t);)if(e===t)return!0;return!1}),c)})},function(t,e,n){var i=n(6),r=n(51).EXISTS,a=n(14),o=n(46).f,s=Function.prototype,u=a(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=a(c.exec);i&&!r&&o(s,"name",{configurable:!0,get:function(){try{return l(c,u(this))[1]}catch(t){return""}}})},function(t,e,n){var i=n(3),r=n(4);i({global:!0,forced:r.globalThis!==r},{globalThis:r})},function(t,e,n){var i=n(4);n(84)(i.JSON,"JSON",!0)},function(t,e,n){n(229)},function(t,e,n){"use strict";n(230)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(235))},function(t,e,n){"use strict";var i=n(3),r=n(4),a=n(14),o=n(69),s=n(49),u=n(231),c=n(128),l=n(199),h=n(22),f=n(18),d=n(21),g=n(7),p=n(161),v=n(84),y=n(117);t.exports=function(t,e,n){var x=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),_=x?"set":"add",m=r[t],w=m&&m.prototype,T=m,A={},S=function(t){var e=a(w[t]);s(w,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(b&&!d(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return b&&!d(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(b&&!d(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(o(t,!h(m)||!(b||w.forEach&&!g((function(){(new m).entries().next()})))))T=n.getConstructor(e,t,x,_),u.enable();else if(o(t,!0)){var E=new T,k=E[_](b?{}:-0,1)!=E,M=g((function(){E.has(1)})),O=p((function(t){new m(t)})),R=!b&&g((function(){for(var t=new m,e=5;e--;)t[_](e,e);return!t.has(-0)}));O||((T=e((function(t,e){l(t,w);var n=y(new m,t,T);return f(e)||c(e,n[_],{that:n,AS_ENTRIES:x}),n}))).prototype=w,w.constructor=T),(M||R)&&(S("delete"),S("has"),x&&S("get")),(R||k)&&S(_),b&&w.clear&&delete w.clear}return A[t]=T,i({global:!0,constructor:!0,forced:T!=m},A),v(T,t),b||n.setStrong(T,t,x),T}},function(t,e,n){var i=n(3),r=n(14),a=n(56),o=n(21),s=n(40),u=n(46).f,c=n(59),l=n(77),h=n(232),f=n(42),d=n(234),g=!1,p=f("meta"),v=0,y=function(t){u(t,p,{value:{objectID:"O"+v++,weakData:{}}})},x=t.exports={enable:function(){x.enable=function(){},g=!0;var t=c.f,e=r([].splice),n={};n[p]=1,t(n).length&&(c.f=function(n){for(var i=t(n),r=0,a=i.length;r<a;r++)if(i[r]===p){e(i,r,1);break}return i},i({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,p)){if(!h(t))return"F";if(!e)return"E";y(t)}return t[p].objectID},getWeakData:function(t,e){if(!s(t,p)){if(!h(t))return!0;if(!e)return!1;y(t)}return t[p].weakData},onFreeze:function(t){return d&&g&&h(t)&&!s(t,p)&&y(t),t}};a[p]=!0},function(t,e,n){var i=n(7),r=n(21),a=n(15),o=n(233),s=Object.isExtensible,u=i((function(){s(1)}));t.exports=u||o?function(t){return!!r(t)&&((!o||"ArrayBuffer"!=a(t))&&(!s||s(t)))}:s},function(t,e,n){var i=n(7);t.exports=i((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},function(t,e,n){var i=n(7);t.exports=!i((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(t,e,n){"use strict";var i=n(46).f,r=n(73),a=n(198),o=n(86),s=n(199),u=n(18),c=n(128),l=n(166),h=n(169),f=n(190),d=n(6),g=n(231).fastKey,p=n(53),v=p.set,y=p.getterFor;t.exports={getConstructor:function(t,e,n,l){var h=t((function(t,i){s(t,f),v(t,{type:e,index:r(null),first:void 0,last:void 0,size:0}),d||(t.size=0),u(i)||c(i,t[l],{that:t,AS_ENTRIES:n})})),f=h.prototype,p=y(e),x=function(t,e,n){var i,r,a=p(t),o=b(t,e);return o?o.value=n:(a.last=o={index:r=g(e,!0),key:e,value:n,previous:i=a.last,next:void 0,removed:!1},a.first||(a.first=o),i&&(i.next=o),d?a.size++:t.size++,"F"!==r&&(a.index[r]=o)),t},b=function(t,e){var n,i=p(t),r=g(e);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key==e)return n};return a(f,{clear:function(){for(var t=p(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,d?t.size=0:this.size=0},delete:function(t){var e=this,n=p(e),i=b(e,t);if(i){var r=i.next,a=i.previous;delete n.index[i.index],i.removed=!0,a&&(a.next=r),r&&(r.previous=a),n.first==i&&(n.first=r),n.last==i&&(n.last=a),d?n.size--:e.size--}return!!i},forEach:function(t){for(var e,n=p(this),i=o(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(i(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!b(this,t)}}),a(f,n?{get:function(t){var e=b(this,t);return e&&e.value},set:function(t,e){return x(this,0===t?0:t,e)}}:{add:function(t){return x(this,t=0===t?0:t,t)}}),d&&i(f,"size",{get:function(){return p(this).size}}),h},setStrong:function(t,e,n){var i=e+" Iterator",r=y(e),a=y(i);l(t,e,(function(t,e){v(this,{type:i,target:t,state:r(t),kind:e,last:void 0})}),(function(){for(var t=a(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?h("keys"==e?n.key:"values"==e?n.value:[n.key,n.value],!1):(t.target=void 0,h(void 0,!0))}),n?"entries":"values",!n,!0),f(e)}}},function(t,e,n){var i=n(3),r=n(237),a=Math.acosh,o=Math.log,s=Math.sqrt,u=Math.LN2;i({target:"Math",stat:!0,forced:!a||710!=Math.floor(a(Number.MAX_VALUE))||a(1/0)!=1/0},{acosh:function(t){var e=+t;return e<1?NaN:e>94906265.62425156?o(e)+u:r(e-1+s(e-1)*s(e+1))}})},function(t){var e=Math.log;t.exports=Math.log1p||function(t){var n=+t;return n>-1e-8&&n<1e-8?n-n*n/2:e(1+n)}},function(t,e,n){var i=n(3),r=Math.asinh,a=Math.log,o=Math.sqrt;i({target:"Math",stat:!0,forced:!(r&&1/r(0)>0)},{asinh:function t(e){var n=+e;return isFinite(n)&&0!=n?n<0?-t(-n):a(n+o(n*n+1)):n}})},function(t,e,n){var i=n(3),r=Math.atanh,a=Math.log;i({target:"Math",stat:!0,forced:!(r&&1/r(-0)<0)},{atanh:function(t){var e=+t;return 0==e?e:a((1+e)/(1-e))/2}})},function(t,e,n){var i=n(3),r=n(241),a=Math.abs,o=Math.pow;i({target:"Math",stat:!0},{cbrt:function(t){var e=+t;return r(e)*o(a(e),1/3)}})},function(t){t.exports=Math.sign||function(t){var e=+t;return 0==e||e!=e?e:e<0?-1:1}},function(t,e,n){var i=n(3),r=Math.floor,a=Math.log,o=Math.LOG2E;i({target:"Math",stat:!0},{clz32:function(t){var e=t>>>0;return e?31-r(a(e+.5)*o):32}})},function(t,e,n){var i=n(3),r=n(244),a=Math.cosh,o=Math.abs,s=Math.E;i({target:"Math",stat:!0,forced:!a||a(710)===1/0},{cosh:function(t){var e=r(o(t)-1)+1;return(e+1/(e*s*s))*(s/2)}})},function(t){var e=Math.expm1,n=Math.exp;t.exports=!e||e(10)>22025.465794806718||e(10)<22025.465794806718||-2e-17!=e(-2e-17)?function(t){var e=+t;return 0==e?e:e>-1e-6&&e<1e-6?e+e*e/2:n(e)-1}:e},function(t,e,n){var i=n(3),r=n(244);i({target:"Math",stat:!0,forced:r!=Math.expm1},{expm1:r})},function(t,e,n){n(3)({target:"Math",stat:!0},{fround:n(247)})},function(t,e,n){var i=n(241),r=Math.abs,a=Math.pow,o=a(2,-52),s=a(2,-23),u=a(2,127)*(2-s),c=a(2,-126);t.exports=Math.fround||function(t){var e,n,a=+t,l=r(a),h=i(a);return l<c?h*function(t){return t+1/o-1/o}(l/c/s)*c*s:(n=(e=(1+s/o)*l)-(e-l))>u||n!=n?h*(1/0):h*n}},function(t,e,n){var i=n(3),r=Math.hypot,a=Math.abs,o=Math.sqrt;i({target:"Math",stat:!0,arity:2,forced:!!r&&r(1/0,NaN)!==1/0},{hypot:function(t,e){for(var n,i,r=0,s=0,u=arguments.length,c=0;s<u;)c<(n=a(arguments[s++]))?(r=r*(i=c/n)*i+1,c=n):r+=n>0?(i=n/c)*i:n;return c===1/0?1/0:c*o(r)}})},function(t,e,n){var i=n(3),r=n(7),a=Math.imul;i({target:"Math",stat:!0,forced:r((function(){return-5!=a(4294967295,5)||2!=a.length}))},{imul:function(t,e){var n=65535,i=+t,r=+e,a=n&i,o=n&r;return 0|a*o+((n&i>>>16)*o+a*(n&r>>>16)<<16>>>0)}})},function(t,e,n){n(3)({target:"Math",stat:!0},{log10:n(251)})},function(t){var e=Math.log,n=Math.LOG10E;t.exports=Math.log10||function(t){return e(t)*n}},function(t,e,n){n(3)({target:"Math",stat:!0},{log1p:n(237)})},function(t,e,n){var i=n(3),r=Math.log,a=Math.LN2;i({target:"Math",stat:!0},{log2:function(t){return r(t)/a}})},function(t,e,n){n(3)({target:"Math",stat:!0},{sign:n(241)})},function(t,e,n){var i=n(3),r=n(7),a=n(244),o=Math.abs,s=Math.exp,u=Math.E;i({target:"Math",stat:!0,forced:r((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(t){var e=+t;return o(e)<1?(a(e)-a(-e))/2:(s(e-1)-s(-e-1))*(u/2)}})},function(t,e,n){var i=n(3),r=n(244),a=Math.exp;i({target:"Math",stat:!0},{tanh:function(t){var e=+t,n=r(e),i=r(-e);return n==1/0?1:i==1/0?-1:(n-i)/(a(e)+a(-e))}})},function(t,e,n){n(84)(Math,"Math",!0)},function(t,e,n){n(3)({target:"Math",stat:!0},{trunc:n(64)})},function(t,e,n){"use strict";var i=n(6),r=n(4),a=n(14),o=n(69),s=n(49),u=n(40),c=n(117),l=n(26),h=n(24),f=n(20),d=n(7),g=n(59).f,p=n(5).f,v=n(46).f,y=n(260),x=n(261).trim,b="Number",_=r.Number,m=_.prototype,w=r.TypeError,T=a("".slice),A=a("".charCodeAt),S=function(t){var e=f(t,"number");return"bigint"==typeof e?e:E(e)},E=function(t){var e,n,i,r,a,o,s,u,c=f(t,"number");if(h(c))throw w("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=x(c),43===(e=A(c,0))||45===e){if(88===(n=A(c,2))||120===n)return NaN}else if(48===e){switch(A(c,1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+c}for(o=(a=T(c,2)).length,s=0;s<o;s++)if((u=A(a,s))<48||u>r)return NaN;return parseInt(a,i)}return+c};if(o(b,!_(" 0o1")||!_("0b1")||_("+0x1"))){for(var k,M=function(t){var e=arguments.length<1?0:_(S(t)),n=this;return l(m,n)&&d((function(){y(n)}))?c(Object(e),n,M):e},O=i?g(_):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),R=0;O.length>R;R++)u(_,k=O[R])&&!u(M,k)&&v(M,k,p(_,k));M.prototype=m,m.constructor=M,s(r,b,M,{constructor:!0})}},function(t,e,n){var i=n(14);t.exports=i(1..valueOf)},function(t,e,n){var i=n(14),r=n(17),a=n(70),o=n(262),s=i("".replace),u="["+o+"]",c=RegExp("^"+u+u+"*"),l=RegExp(u+u+"*$"),h=function(t){return function(e){var n=a(r(e));return 1&t&&(n=s(n,c,"")),2&t&&(n=s(n,l,"")),n}};t.exports={start:h(1),end:h(2),trim:h(3)}},function(t){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(t,e,n){n(3)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},function(t,e,n){n(3)({target:"Number",stat:!0},{isFinite:n(265)})},function(t,e,n){var i=n(4).isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&i(t)}},function(t,e,n){n(3)({target:"Number",stat:!0},{isInteger:n(267)})},function(t,e,n){var i=n(21),r=Math.floor;t.exports=Number.isInteger||function(t){return!i(t)&&isFinite(t)&&r(t)===t}},function(t,e,n){n(3)({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},function(t,e,n){var i=n(3),r=n(267),a=Math.abs;i({target:"Number",stat:!0},{isSafeInteger:function(t){return r(t)&&a(t)<=9007199254740991}})},function(t,e,n){n(3)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){n(3)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var i=n(3),r=n(273);i({target:"Number",stat:!0,forced:Number.parseFloat!=r},{parseFloat:r})},function(t,e,n){var i=n(4),r=n(7),a=n(14),o=n(70),s=n(261).trim,u=n(262),c=a("".charAt),l=i.parseFloat,h=i.Symbol,f=h&&h.iterator,d=1/l(u+"-0")!=-1/0||f&&!r((function(){l(Object(f))}));t.exports=d?function(t){var e=s(o(t)),n=l(e);return 0===n&&"-"==c(e,0)?-0:n}:l},function(t,e,n){var i=n(3),r=n(275);i({target:"Number",stat:!0,forced:Number.parseInt!=r},{parseInt:r})},function(t,e,n){var i=n(4),r=n(7),a=n(14),o=n(70),s=n(261).trim,u=n(262),c=i.parseInt,l=i.Symbol,h=l&&l.iterator,f=/^[+-]?0x/i,d=a(f.exec),g=8!==c(u+"08")||22!==c(u+"0x16")||h&&!r((function(){c(Object(h))}));t.exports=g?function(t,e){var n=s(o(t));return c(n,e>>>0||(d(f,n)?16:10))}:c},function(t,e,n){"use strict";var i=n(3),r=n(14),a=n(63),o=n(260),s=n(216),u=n(251),c=n(7),l=RangeError,h=String,f=isFinite,d=Math.abs,g=Math.floor,p=Math.pow,v=Math.round,y=r(1..toExponential),x=r(s),b=r("".slice),_="-6.9000e-11"===y(-69e-12,4)&&"1.25e+0"===y(1.255,2)&&"1.235e+4"===y(12345,3)&&"3e+1"===y(25,0),m=c((function(){y(1,1/0)}))&&c((function(){y(1,-1/0)})),w=!c((function(){y(1/0,1/0)}))&&!c((function(){y(NaN,1/0)}));i({target:"Number",proto:!0,forced:!_||!m||!w},{toExponential:function(t){var e=o(this);if(void 0===t)return y(e);var n=a(t);if(!f(e))return String(e);if(n<0||n>20)throw l("Incorrect fraction digits");if(_)return y(e,n);var i="",r="",s=0,c="",m="";if(e<0&&(i="-",e=-e),0===e)s=0,r=x("0",n+1);else{var w=u(e);s=g(w);var T=0,A=p(10,s-n);2*e>=(2*(T=v(e/A))+1)*A&&(T+=1),T>=p(10,n+1)&&(T/=10,s+=1),r=h(T)}return 0!==n&&(r=b(r,0,1)+"."+b(r,1)),0===s?(c="+",m="0"):(c=s>0?"+":"-",m=h(d(s))),i+(r+="e"+c+m)}})},function(t,e,n){"use strict";var i=n(3),r=n(14),a=n(63),o=n(260),s=n(216),u=n(7),c=RangeError,l=String,h=Math.floor,f=r(s),d=r("".slice),g=r(1..toFixed),p=function(t,e,n){return 0===e?n:e%2==1?p(t,e-1,n*t):p(t*t,e/2,n)},v=function(t,e,n){for(var i=-1,r=n;++i<6;)r+=e*t[i],t[i]=r%1e7,r=h(r/1e7)},y=function(t,e){for(var n=6,i=0;--n>=0;)i+=t[n],t[n]=h(i/e),i=i%e*1e7},x=function(t){for(var e=6,n="";--e>=0;)if(""!==n||0===e||0!==t[e]){var i=l(t[e]);n=""===n?i:n+f("0",7-i.length)+i}return n};i({target:"Number",proto:!0,forced:u((function(){return"0.000"!==g(8e-5,3)||"1"!==g(.9,0)||"1.25"!==g(1.255,2)||"1000000000000000128"!==g(0xde0b6b3a7640080,0)}))||!u((function(){g({})}))},{toFixed:function(t){var e,n,i,r,s=o(this),u=a(t),h=[0,0,0,0,0,0],g="",b="0";if(u<0||u>20)throw c("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return l(s);if(s<0&&(g="-",s=-s),s>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(s*p(2,69,1))-69)<0?s*p(2,-e,1):s/p(2,e,1),n*=4503599627370496,(e=52-e)>0){for(v(h,0,n),i=u;i>=7;)v(h,1e7,0),i-=7;for(v(h,p(10,i,1),0),i=e-1;i>=23;)y(h,1<<23),i-=23;y(h,1<<i),v(h,1,1),y(h,2),b=x(h)}else v(h,0,n),v(h,1<<-e,0),b=x(h)+f("0",u);return b=u>0?g+((r=b.length)<=u?"0."+f("0",u-r)+b:d(b,0,r-u)+"."+d(b,r-u)):g+b}})},function(t,e,n){"use strict";var i=n(3),r=n(14),a=n(7),o=n(260),s=r(1..toPrecision);i({target:"Number",proto:!0,forced:a((function(){return"1"!==s(1,void 0)}))||!a((function(){s({})}))},{toPrecision:function(t){return void 0===t?s(o(this)):s(o(this),t)}})},function(t,e,n){var i=n(3),r=n(280);i({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})},function(t,e,n){"use strict";var i=n(6),r=n(14),a=n(8),o=n(7),s=n(75),u=n(68),c=n(10),l=n(41),h=n(13),f=Object.assign,d=Object.defineProperty,g=r([].concat);t.exports=!f||o((function(){if(i&&1!==f({b:1},f(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=f({},t)[n]||s(f({},e)).join("")!=r}))?function(t,e){for(var n=l(t),r=arguments.length,o=1,f=u.f,d=c.f;r>o;)for(var p,v=h(arguments[o++]),y=f?g(s(v),f(v)):s(v),x=y.length,b=0;x>b;)p=y[b++],i&&!a(d,v,p)||(n[p]=v[p]);return n}:f},function(t,e,n){n(3)({target:"Object",stat:!0,sham:!n(6)},{create:n(73)})},function(t,e,n){"use strict";var i=n(3),r=n(6),a=n(283),o=n(32),s=n(41),u=n(46);r&&i({target:"Object",proto:!0,forced:a},{__defineGetter__:function(t,e){u.f(s(this),t,{get:o(e),enumerable:!0,configurable:!0})}})},function(t,e,n){"use strict";var i=n(37),r=n(4),a=n(7),o=n(188);t.exports=i||!a((function(){if(!(o&&o<535)){var t=Math.random();__defineSetter__.call(null,t,(function(){})),delete r[t]}}))},function(t,e,n){var i=n(3),r=n(6),a=n(74).f;i({target:"Object",stat:!0,forced:Object.defineProperties!==a,sham:!r},{defineProperties:a})},function(t,e,n){var i=n(3),r=n(6),a=n(46).f;i({target:"Object",stat:!0,forced:Object.defineProperty!==a,sham:!r},{defineProperty:a})},function(t,e,n){"use strict";var i=n(3),r=n(6),a=n(283),o=n(32),s=n(41),u=n(46);r&&i({target:"Object",proto:!0,forced:a},{__defineSetter__:function(t,e){u.f(s(this),t,{set:o(e),enumerable:!0,configurable:!0})}})},function(t,e,n){var i=n(3),r=n(288).entries;i({target:"Object",stat:!0},{entries:function(t){return r(t)}})},function(t,e,n){var i=n(6),r=n(14),a=n(75),o=n(12),s=r(n(10).f),u=r([].push),c=function(t){return function(e){for(var n,r=o(e),c=a(r),l=c.length,h=0,f=[];l>h;)n=c[h++],i&&!s(r,n)||u(f,t?[n,r[n]]:r[n]);return f}};t.exports={entries:c(!0),values:c(!1)}},function(t,e,n){var i=n(3),r=n(234),a=n(7),o=n(21),s=n(231).onFreeze,u=Object.freeze;i({target:"Object",stat:!0,forced:a((function(){u(1)})),sham:!r},{freeze:function(t){return u&&o(t)?u(s(t)):t}})},function(t,e,n){var i=n(3),r=n(128),a=n(79);i({target:"Object",stat:!0},{fromEntries:function(t){var e={};return r(t,(function(t,n){a(e,t,n)}),{AS_ENTRIES:!0}),e}})},function(t,e,n){var i=n(3),r=n(7),a=n(12),o=n(5).f,s=n(6),u=r((function(){o(1)}));i({target:"Object",stat:!0,forced:!s||u,sham:!s},{getOwnPropertyDescriptor:function(t,e){return o(a(t),e)}})},function(t,e,n){var i=n(3),r=n(6),a=n(58),o=n(12),s=n(5),u=n(79);i({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(t){for(var e,n,i=o(t),r=s.f,c=a(i),l={},h=0;c.length>h;)void 0!==(n=r(i,e=c[h++]))&&u(l,e,n);return l}})},function(t,e,n){var i=n(3),r=n(7),a=n(77).f;i({target:"Object",stat:!0,forced:r((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:a})},function(t,e,n){var i=n(3),r=n(7),a=n(41),o=n(126),s=n(127);i({target:"Object",stat:!0,forced:r((function(){o(1)})),sham:!s},{getPrototypeOf:function(t){return o(a(t))}})},function(t,e,n){n(3)({target:"Object",stat:!0},{hasOwn:n(40)})},function(t,e,n){n(3)({target:"Object",stat:!0},{is:n(297)})},function(t){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){var i=n(3),r=n(232);i({target:"Object",stat:!0,forced:Object.isExtensible!==r},{isExtensible:r})},function(t,e,n){var i=n(3),r=n(7),a=n(21),o=n(15),s=n(233),u=Object.isFrozen;i({target:"Object",stat:!0,forced:r((function(){u(1)}))||s},{isFrozen:function(t){return!a(t)||(!(!s||"ArrayBuffer"!=o(t))||!!u&&u(t))}})},function(t,e,n){var i=n(3),r=n(7),a=n(21),o=n(15),s=n(233),u=Object.isSealed;i({target:"Object",stat:!0,forced:r((function(){u(1)}))||s},{isSealed:function(t){return!a(t)||(!(!s||"ArrayBuffer"!=o(t))||!!u&&u(t))}})},function(t,e,n){var i=n(3),r=n(41),a=n(75);i({target:"Object",stat:!0,forced:n(7)((function(){a(1)}))},{keys:function(t){return a(r(t))}})},function(t,e,n){"use strict";var i=n(3),r=n(6),a=n(283),o=n(41),s=n(19),u=n(126),c=n(5).f;r&&i({target:"Object",proto:!0,forced:a},{__lookupGetter__:function(t){var e,n=o(this),i=s(t);do{if(e=c(n,i))return e.get}while(n=u(n))}})},function(t,e,n){"use strict";var i=n(3),r=n(6),a=n(283),o=n(41),s=n(19),u=n(126),c=n(5).f;r&&i({target:"Object",proto:!0,forced:a},{__lookupSetter__:function(t){var e,n=o(this),i=s(t);do{if(e=c(n,i))return e.set}while(n=u(n))}})},function(t,e,n){var i=n(3),r=n(21),a=n(231).onFreeze,o=n(234),s=n(7),u=Object.preventExtensions;i({target:"Object",stat:!0,forced:s((function(){u(1)})),sham:!o},{preventExtensions:function(t){return u&&r(t)?u(a(t)):t}})},function(t,e,n){"use strict";var i=n(6),r=n(306),a=n(21),o=n(41),s=n(17),u=Object.getPrototypeOf,c=Object.setPrototypeOf,l=Object.prototype,h="__proto__";if(i&&u&&c&&!(h in l))try{r(l,h,{configurable:!0,get:function(){return u(o(this))},set:function(t){var e=s(this);(a(t)||null===t)&&a(e)&&c(e,t)}})}catch(t){}},function(t,e,n){var i=n(50),r=n(46);t.exports=function(t,e,n){return n.get&&i(n.get,e,{getter:!0}),n.set&&i(n.set,e,{setter:!0}),r.f(t,e,n)}},function(t,e,n){var i=n(3),r=n(21),a=n(231).onFreeze,o=n(234),s=n(7),u=Object.seal;i({target:"Object",stat:!0,forced:s((function(){u(1)})),sham:!o},{seal:function(t){return u&&r(t)?u(a(t)):t}})},function(t,e,n){n(3)({target:"Object",stat:!0},{setPrototypeOf:n(114)})},function(t,e,n){var i=n(72),r=n(49),a=n(310);i||r(Object.prototype,"toString",a,{unsafe:!0})},function(t,e,n){"use strict";var i=n(72),r=n(71);t.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},function(t,e,n){var i=n(3),r=n(288).values;i({target:"Object",stat:!0},{values:function(t){return r(t)}})},function(t,e,n){var i=n(3),r=n(273);i({global:!0,forced:parseFloat!=r},{parseFloat:r})},function(t,e,n){var i=n(3),r=n(275);i({global:!0,forced:parseInt!=r},{parseInt:r})},function(t,e,n){n(315),n(330),n(332),n(333),n(334),n(335)},function(t,e,n){"use strict";var i,r,a,o=n(3),s=n(37),u=n(179),c=n(4),l=n(8),h=n(49),f=n(114),d=n(84),g=n(190),p=n(32),v=n(22),y=n(21),x=n(199),b=n(205),_=n(316).set,m=n(319),w=n(322),T=n(323),A=n(324),S=n(53),E=n(325),k=n(326),M=n(329),O="Promise",R=k.CONSTRUCTOR,C=k.REJECTION_EVENT,I=k.SUBCLASSING,L=S.getterFor(O),P=S.set,D=E&&E.prototype,N=E,z=D,F=c.TypeError,j=c.document,B=c.process,X=M.f,$=X,U=!!(j&&j.createEvent&&c.dispatchEvent),Y="unhandledrejection",V=function(t){var e;return!(!y(t)||!v(e=t.then))&&e},G=function(t,e){var n,i,r,a=e.value,o=1==e.state,s=o?t.ok:t.fail,u=t.resolve,c=t.reject,h=t.domain;try{s?(o||(2===e.rejection&&K(e),e.rejection=1),!0===s?n=a:(h&&h.enter(),n=s(a),h&&(h.exit(),r=!0)),n===t.promise?c(F("Promise-chain cycle")):(i=V(n))?l(i,n,u,c):u(n)):c(a)}catch(t){h&&!r&&h.exit(),c(t)}},H=function(t,e){t.notified||(t.notified=!0,m((function(){for(var n,i=t.reactions;n=i.get();)G(n,t);t.notified=!1,e&&!t.rejection&&q(t)})))},W=function(t,e,n){var i,r;U?((i=j.createEvent("Event")).promise=e,i.reason=n,i.initEvent(t,!1,!0),c.dispatchEvent(i)):i={promise:e,reason:n},!C&&(r=c["on"+t])?r(i):t===Y&&w("Unhandled promise rejection",n)},q=function(t){l(_,c,(function(){var e,n=t.facade,i=t.value;if(Z(t)&&(e=T((function(){u?B.emit("unhandledRejection",i,n):W(Y,n,i)})),t.rejection=u||Z(t)?2:1,e.error))throw e.value}))},Z=function(t){return 1!==t.rejection&&!t.parent},K=function(t){l(_,c,(function(){var e=t.facade;u?B.emit("rejectionHandled",e):W("rejectionhandled",e,t.value)}))},J=function(t,e,n){return function(i){t(e,i,n)}},Q=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,H(t,!0))},tt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw F("Promise can't be resolved itself");var i=V(e);i?m((function(){var n={done:!1};try{l(i,e,J(tt,n,t),J(Q,n,t))}catch(e){Q(n,e,t)}})):(t.value=e,t.state=1,H(t,!1))}catch(e){Q({done:!1},e,t)}}};if(R&&(z=(N=function(t){x(this,z),p(t),l(i,this);var e=L(this);try{t(J(tt,e),J(Q,e))}catch(t){Q(e,t)}}).prototype,(i=function(t){P(this,{type:O,done:!1,notified:!1,parent:!1,reactions:new A,rejection:!1,state:0,value:void 0})}).prototype=h(z,"then",(function(t,e){var n=L(this),i=X(b(this,N));return n.parent=!0,i.ok=!v(t)||t,i.fail=v(e)&&e,i.domain=u?B.domain:void 0,0==n.state?n.reactions.add(i):m((function(){G(i,n)})),i.promise})),r=function(){var t=new i,e=L(t);this.promise=t,this.resolve=J(tt,e),this.reject=J(Q,e)},M.f=X=function(t){return t===N||undefined===t?new r(t):$(t)},!s&&v(E)&&D!==Object.prototype)){a=D.then,I||h(D,"then",(function(t,e){var n=this;return new N((function(t,e){l(a,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete D.constructor}catch(t){}f&&f(D,z)}o({global:!0,constructor:!0,wrap:!0,forced:R},{Promise:N}),d(N,O,!1,!0),g(O)},function(t,e,n){var i,r,a,o,s=n(4),u=n(95),c=n(86),l=n(22),h=n(40),f=n(7),d=n(76),g=n(96),p=n(44),v=n(317),y=n(318),x=n(179),b=s.setImmediate,_=s.clearImmediate,m=s.process,w=s.Dispatch,T=s.Function,A=s.MessageChannel,S=s.String,E=0,k={},M="onreadystatechange";try{i=s.location}catch(t){}var O=function(t){if(h(k,t)){var e=k[t];delete k[t],e()}},R=function(t){return function(){O(t)}},C=function(t){O(t.data)},I=function(t){s.postMessage(S(t),i.protocol+"//"+i.host)};b&&_||(b=function(t){v(arguments.length,1);var e=l(t)?t:T(t),n=g(arguments,1);return k[++E]=function(){u(e,void 0,n)},r(E),E},_=function(t){delete k[t]},x?r=function(t){m.nextTick(R(t))}:w&&w.now?r=function(t){w.now(R(t))}:A&&!y?(o=(a=new A).port2,a.port1.onmessage=C,r=c(o.postMessage,o)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&i&&"file:"!==i.protocol&&!f(I)?(r=I,s.addEventListener("message",C,!1)):r=M in p("script")?function(t){d.appendChild(p("script")).onreadystatechange=function(){d.removeChild(this),O(t)}}:function(t){setTimeout(R(t),0)}),t.exports={set:b,clear:_}},function(t){var e=TypeError;t.exports=function(t,n){if(t<n)throw e("Not enough arguments");return t}},function(t,e,n){var i=n(30);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(i)},function(t,e,n){var i,r,a,o,s,u,c,l,h=n(4),f=n(86),d=n(5).f,g=n(316).set,p=n(318),v=n(320),y=n(321),x=n(179),b=h.MutationObserver||h.WebKitMutationObserver,_=h.document,m=h.process,w=h.Promise,T=d(h,"queueMicrotask"),A=T&&T.value;A||(i=function(){var t,e;for(x&&(t=m.domain)&&t.exit();r;){e=r.fn,r=r.next;try{e()}catch(t){throw r?o():a=void 0,t}}a=void 0,t&&t.enter()},p||x||y||!b||!_?!v&&w&&w.resolve?((c=w.resolve(void 0)).constructor=w,l=f(c.then,c),o=function(){l(i)}):x?o=function(){m.nextTick(i)}:(g=f(g,h),o=function(){g(i)}):(s=!0,u=_.createTextNode(""),new b(i).observe(u,{characterData:!0}),o=function(){u.data=s=!s})),t.exports=A||function(t){var e={fn:t,next:void 0};a&&(a.next=e),r||(r=e,o()),a=e}},function(t,e,n){var i=n(30),r=n(4);t.exports=/ipad|iphone|ipod/i.test(i)&&void 0!==r.Pebble},function(t,e,n){var i=n(30);t.exports=/web0s(?!.*chrome)/i.test(i)},function(t,e,n){var i=n(4);t.exports=function(t,e){var n=i.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}},function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t){var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}},t.exports=e},function(t,e,n){var i=n(4);t.exports=i.Promise},function(t,e,n){var i=n(4),r=n(325),a=n(22),o=n(69),s=n(52),u=n(35),c=n(327),l=n(328),h=n(37),f=n(29),d=r&&r.prototype,g=u("species"),p=!1,v=a(i.PromiseRejectionEvent),y=o("Promise",(function(){var t=s(r),e=t!==String(r);if(!e&&66===f)return!0;if(h&&(!d.catch||!d.finally))return!0;if(!f||f<51||!/native code/.test(t)){var n=new r((function(t){t(1)})),i=function(t){t((function(){}),(function(){}))};if((n.constructor={})[g]=i,!(p=n.then((function(){}))instanceof i))return!0}return!e&&(c||l)&&!v}));t.exports={CONSTRUCTOR:y,REJECTION_EVENT:v,SUBCLASSING:p}},function(t,e,n){var i=n(328),r=n(179);t.exports=!i&&!r&&"object"==typeof window&&"object"==typeof document},function(t){t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},function(t,e,n){"use strict";var i=n(32),r=TypeError,a=function(t){var e,n;this.promise=new t((function(t,i){if(void 0!==e||void 0!==n)throw r("Bad Promise constructor");e=t,n=i})),this.resolve=i(e),this.reject=i(n)};t.exports.f=function(t){return new a(t)}},function(t,e,n){"use strict";var i=n(3),r=n(8),a=n(32),o=n(329),s=n(323),u=n(128);i({target:"Promise",stat:!0,forced:n(331)},{all:function(t){var e=this,n=o.f(e),i=n.resolve,c=n.reject,l=s((function(){var n=a(e.resolve),o=[],s=0,l=1;u(t,(function(t){var a=s++,u=!1;l++,r(n,e,t).then((function(t){u||(u=!0,o[a]=t,--l||i(o))}),c)})),--l||i(o)}));return l.error&&c(l.value),n.promise}})},function(t,e,n){var i=n(325),r=n(161),a=n(326).CONSTRUCTOR;t.exports=a||!r((function(t){i.all(t).then(void 0,(function(){}))}))},function(t,e,n){"use strict";var i=n(3),r=n(37),a=n(326).CONSTRUCTOR,o=n(325),s=n(25),u=n(22),c=n(49),l=o&&o.prototype;if(i({target:"Promise",proto:!0,forced:a,real:!0},{catch:function(t){return this.then(void 0,t)}}),!r&&u(o)){var h=s("Promise").prototype.catch;l.catch!==h&&c(l,"catch",h,{unsafe:!0})}},function(t,e,n){"use strict";var i=n(3),r=n(8),a=n(32),o=n(329),s=n(323),u=n(128);i({target:"Promise",stat:!0,forced:n(331)},{race:function(t){var e=this,n=o.f(e),i=n.reject,c=s((function(){var o=a(e.resolve);u(t,(function(t){r(o,e,t).then(n.resolve,i)}))}));return c.error&&i(c.value),n.promise}})},function(t,e,n){"use strict";var i=n(3),r=n(8),a=n(329);i({target:"Promise",stat:!0,forced:n(326).CONSTRUCTOR},{reject:function(t){var e=a.f(this);return r(e.reject,void 0,t),e.promise}})},function(t,e,n){"use strict";var i=n(3),r=n(25),a=n(37),o=n(325),s=n(326).CONSTRUCTOR,u=n(336),c=r("Promise"),l=a&&!s;i({target:"Promise",stat:!0,forced:a||s},{resolve:function(t){return u(l&&this===c?o:this,t)}})},function(t,e,n){var i=n(48),r=n(21),a=n(329);t.exports=function(t,e){if(i(t),r(e)&&e.constructor===t)return e;var n=a.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var i=n(3),r=n(8),a=n(32),o=n(329),s=n(323),u=n(128);i({target:"Promise",stat:!0},{allSettled:function(t){var e=this,n=o.f(e),i=n.resolve,c=n.reject,l=s((function(){var n=a(e.resolve),o=[],s=0,c=1;u(t,(function(t){var a=s++,u=!1;c++,r(n,e,t).then((function(t){u||(u=!0,o[a]={status:"fulfilled",value:t},--c||i(o))}),(function(t){u||(u=!0,o[a]={status:"rejected",reason:t},--c||i(o))}))})),--c||i(o)}));return l.error&&c(l.value),n.promise}})},function(t,e,n){"use strict";var i=n(3),r=n(8),a=n(32),o=n(25),s=n(329),u=n(323),c=n(128),l="No one promise resolved";i({target:"Promise",stat:!0},{any:function(t){var e=this,n=o("AggregateError"),i=s.f(e),h=i.resolve,f=i.reject,d=u((function(){var i=a(e.resolve),o=[],s=0,u=1,d=!1;c(t,(function(t){var a=s++,c=!1;u++,r(i,e,t).then((function(t){c||d||(d=!0,h(t))}),(function(t){c||d||(c=!0,o[a]=t,--u||f(new n(o,l)))}))})),--u||f(new n(o,l))}));return d.error&&f(d.value),i.promise}})},function(t,e,n){"use strict";var i=n(3),r=n(37),a=n(325),o=n(7),s=n(25),u=n(22),c=n(205),l=n(336),h=n(49),f=a&&a.prototype;if(i({target:"Promise",proto:!0,real:!0,forced:!!a&&o((function(){f.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=c(this,s("Promise")),n=u(t);return this.then(n?function(n){return l(e,t()).then((function(){return n}))}:t,n?function(n){return l(e,t()).then((function(){throw n}))}:t)}}),!r&&u(a)){var d=s("Promise").prototype.finally;f.finally!==d&&h(f,"finally",d,{unsafe:!0})}},function(t,e,n){var i=n(3),r=n(95),a=n(32),o=n(48);i({target:"Reflect",stat:!0,forced:!n(7)((function(){Reflect.apply((function(){}))}))},{apply:function(t,e,n){return r(a(t),e,o(n))}})},function(t,e,n){var i=n(3),r=n(25),a=n(95),o=n(223),s=n(206),u=n(48),c=n(21),l=n(73),h=n(7),f=r("Reflect","construct"),d=Object.prototype,g=[].push,p=h((function(){function t(){}return!(f((function(){}),[],t)instanceof t)})),v=!h((function(){f((function(){}))})),y=p||v;i({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(t,e){s(t),u(e);var n=arguments.length<3?t:s(arguments[2]);if(v&&!p)return f(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var i=[null];return a(g,i,e),new(a(o,t,i))}var r=n.prototype,h=l(c(r)?r:d),y=a(t,h,e);return c(y)?y:h}})},function(t,e,n){var i=n(3),r=n(6),a=n(48),o=n(19),s=n(46);i({target:"Reflect",stat:!0,forced:n(7)((function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})})),sham:!r},{defineProperty:function(t,e,n){a(t);var i=o(e);a(n);try{return s.f(t,i,n),!0}catch(t){return!1}}})},function(t,e,n){var i=n(3),r=n(48),a=n(5).f;i({target:"Reflect",stat:!0},{deleteProperty:function(t,e){var n=a(r(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){var i=n(3),r=n(8),a=n(21),o=n(48),s=n(345),u=n(5),c=n(126);i({target:"Reflect",stat:!0},{get:function t(e,n){var i,l,h=arguments.length<3?e:arguments[2];return o(e)===h?e[n]:(i=u.f(e,n))?s(i)?i.value:void 0===i.get?void 0:r(i.get,h):a(l=c(e))?t(l,n,h):void 0}})},function(t,e,n){var i=n(40);t.exports=function(t){return void 0!==t&&(i(t,"value")||i(t,"writable"))}},function(t,e,n){var i=n(3),r=n(6),a=n(48),o=n(5);i({target:"Reflect",stat:!0,sham:!r},{getOwnPropertyDescriptor:function(t,e){return o.f(a(t),e)}})},function(t,e,n){var i=n(3),r=n(48),a=n(126);i({target:"Reflect",stat:!0,sham:!n(127)},{getPrototypeOf:function(t){return a(r(t))}})},function(t,e,n){n(3)({target:"Reflect",stat:!0},{has:function(t,e){return e in t}})},function(t,e,n){var i=n(3),r=n(48),a=n(232);i({target:"Reflect",stat:!0},{isExtensible:function(t){return r(t),a(t)}})},function(t,e,n){n(3)({target:"Reflect",stat:!0},{ownKeys:n(58)})},function(t,e,n){var i=n(3),r=n(25),a=n(48);i({target:"Reflect",stat:!0,sham:!n(234)},{preventExtensions:function(t){a(t);try{var e=r("Object","preventExtensions");return e&&e(t),!0}catch(t){return!1}}})},function(t,e,n){var i=n(3),r=n(8),a=n(48),o=n(21),s=n(345),u=n(7),c=n(46),l=n(5),h=n(126),f=n(11);i({target:"Reflect",stat:!0,forced:u((function(){var t=function(){},e=c.f(new t,"a",{configurable:!0});return!1!==Reflect.set(t.prototype,"a",1,e)}))},{set:function t(e,n,i){var u,d,g,p=arguments.length<4?e:arguments[3],v=l.f(a(e),n);if(!v){if(o(d=h(e)))return t(d,n,i,p);v=f(0)}if(s(v)){if(!1===v.writable||!o(p))return!1;if(u=l.f(p,n)){if(u.get||u.set||!1===u.writable)return!1;u.value=i,c.f(p,n,u)}else c.f(p,n,f(0,i))}else{if(void 0===(g=v.set))return!1;r(g,p,i)}return!0}})},function(t,e,n){var i=n(3),r=n(48),a=n(115),o=n(114);o&&i({target:"Reflect",stat:!0},{setPrototypeOf:function(t,e){r(t),a(e);try{return o(t,e),!0}catch(t){return!1}}})},function(t,e,n){var i=n(3),r=n(4),a=n(84);i({global:!0},{Reflect:{}}),a(r.Reflect,"Reflect",!0)},function(t,e,n){var i=n(6),r=n(4),a=n(14),o=n(69),s=n(117),u=n(45),c=n(59).f,l=n(26),h=n(356),f=n(70),d=n(357),g=n(359),p=n(116),v=n(49),y=n(7),x=n(40),b=n(53).enforce,_=n(190),m=n(35),w=n(360),T=n(361),A=m("match"),S=r.RegExp,E=S.prototype,k=r.SyntaxError,M=a(E.exec),O=a("".charAt),R=a("".replace),C=a("".indexOf),I=a("".slice),L=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,P=/a/g,D=/a/g,N=new S(P)!==P,z=g.MISSED_STICKY,F=g.UNSUPPORTED_Y,j=i&&(!N||z||w||T||y((function(){return D[A]=!1,S(P)!=P||S(D)==D||"/a/i"!=S(P,"i")})));if(o("RegExp",j)){for(var B=function(t,e){var n,i,r,a,o,c,g=l(E,this),p=h(t),v=void 0===e,y=[],_=t;if(!g&&p&&v&&t.constructor===B)return t;if((p||l(E,t))&&(t=t.source,v&&(e=d(_))),t=void 0===t?"":f(t),e=void 0===e?"":f(e),_=t,w&&"dotAll"in P&&(i=!!e&&C(e,"s")>-1)&&(e=R(e,/s/g,"")),n=e,z&&"sticky"in P&&(r=!!e&&C(e,"y")>-1)&&F&&(e=R(e,/y/g,"")),T&&(a=function(t){for(var e,n=t.length,i=0,r="",a=[],o={},s=!1,u=!1,c=0,l="";i<=n;i++){if("\\"===(e=O(t,i)))e+=O(t,++i);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:M(L,I(t,i+1))&&(i+=2,u=!0),r+=e,c++;continue;case">"===e&&u:if(""===l||x(o,l))throw new k("Invalid capture group name");o[l]=!0,a[a.length]=[l,c],u=!1,l="";continue}u?l+=e:r+=e}return[r,a]}(t),t=a[0],y=a[1]),o=s(S(t,e),g?this:E,B),(i||r||y.length)&&(c=b(o),i&&(c.dotAll=!0,c.raw=B(function(t){for(var e,n=t.length,i=0,r="",a=!1;i<=n;i++)"\\"!==(e=O(t,i))?a||"."!==e?("["===e?a=!0:"]"===e&&(a=!1),r+=e):r+="[\\s\\S]":r+=e+O(t,++i);return r}(t),n)),r&&(c.sticky=!0),y.length&&(c.groups=y)),t!==_)try{u(o,"source",""===_?"(?:)":_)}catch(t){}return o},X=c(S),$=0;X.length>$;)p(B,S,X[$++]);E.constructor=B,B.prototype=E,v(r,"RegExp",B,{constructor:!0})}_("RegExp")},function(t,e,n){var i=n(21),r=n(15),a=n(35)("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==r(t))}},function(t,e,n){var i=n(8),r=n(40),a=n(26),o=n(358),s=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in s||r(t,"flags")||!a(s,t)?e:i(o,t)}},function(t,e,n){"use strict";var i=n(48);t.exports=function(){var t=i(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},function(t,e,n){var i=n(7),r=n(4).RegExp,a=i((function(){var t=r("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),o=a||i((function(){return!r("a","y").sticky})),s=a||i((function(){var t=r("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:s,MISSED_STICKY:o,UNSUPPORTED_Y:a}},function(t,e,n){var i=n(7),r=n(4).RegExp;t.exports=i((function(){var t=r(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},function(t,e,n){var i=n(7),r=n(4).RegExp;t.exports=i((function(){var t=r("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},function(t,e,n){var i=n(6),r=n(360),a=n(15),o=n(306),s=n(53).get,u=RegExp.prototype,c=TypeError;i&&r&&o(u,"dotAll",{configurable:!0,get:function(){if(this!==u){if("RegExp"===a(this))return!!s(this).dotAll;throw c("Incompatible receiver, RegExp required")}}})},function(t,e,n){"use strict";var i=n(3),r=n(364);i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},function(t,e,n){"use strict";var i,r,a=n(8),o=n(14),s=n(70),u=n(358),c=n(359),l=n(36),h=n(73),f=n(53).get,d=n(360),g=n(361),p=l("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,y=v,x=o("".charAt),b=o("".indexOf),_=o("".replace),m=o("".slice),w=(r=/b*/g,a(v,i=/a/,"a"),a(v,r,"a"),0!==i.lastIndex||0!==r.lastIndex),T=c.BROKEN_CARET,A=void 0!==/()??/.exec("")[1];(w||A||T||d||g)&&(y=function(t){var e,n,i,r,o,c,l,d=this,g=f(d),S=s(t),E=g.raw;if(E)return E.lastIndex=d.lastIndex,e=a(y,E,S),d.lastIndex=E.lastIndex,e;var k=g.groups,M=T&&d.sticky,O=a(u,d),R=d.source,C=0,I=S;if(M&&(O=_(O,"y",""),-1===b(O,"g")&&(O+="g"),I=m(S,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==x(S,d.lastIndex-1))&&(R="(?: "+R+")",I=" "+I,C++),n=new RegExp("^(?:"+R+")",O)),A&&(n=new RegExp("^"+R+"$(?!\\s)",O)),w&&(i=d.lastIndex),r=a(v,M?n:d,I),M?r?(r.input=m(r.input,C),r[0]=m(r[0],C),r.index=d.lastIndex,d.lastIndex+=r[0].length):d.lastIndex=0:w&&r&&(d.lastIndex=d.global?r.index+r[0].length:i),A&&r&&r.length>1&&a(p,r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r&&k)for(r.groups=c=h(null),o=0;o<k.length;o++)c[(l=k[o])[0]]=r[l[1]];return r}),t.exports=y},function(t,e,n){var i=n(4),r=n(6),a=n(306),o=n(358),s=n(7),u=i.RegExp,c=u.prototype;r&&s((function(){var t=!0;try{u(".","d")}catch(e){t=!1}var e={},n="",i=t?"dgimsy":"gimsy",r=function(t,i){Object.defineProperty(e,t,{get:function(){return n+=i,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in t&&(a.hasIndices="d"),a)r(o,a[o]);return Object.getOwnPropertyDescriptor(c,"flags").get.call(e)!==i||n!==i}))&&a(c,"flags",{configurable:!0,get:o})},function(t,e,n){var i=n(6),r=n(359).MISSED_STICKY,a=n(15),o=n(306),s=n(53).get,u=RegExp.prototype,c=TypeError;i&&r&&o(u,"sticky",{configurable:!0,get:function(){if(this!==u){if("RegExp"===a(this))return!!s(this).sticky;throw c("Incompatible receiver, RegExp required")}}})},function(t,e,n){"use strict";n(363);var i,r,a=n(3),o=n(8),s=n(22),u=n(48),c=n(70),l=(i=!1,(r=/[ac]/).exec=function(){return i=!0,/./.exec.apply(this,arguments)},!0===r.test("abc")&&i),h=/./.test;a({target:"RegExp",proto:!0,forced:!l},{test:function(t){var e=u(this),n=c(t),i=e.exec;if(!s(i))return o(h,e,n);var r=o(i,e,n);return null!==r&&(u(r),!0)}})},function(t,e,n){"use strict";var i=n(51).PROPER,r=n(49),a=n(48),o=n(70),s=n(7),u=n(357),c="toString",l=RegExp.prototype.toString,h=s((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),f=i&&l.name!=c;(h||f)&&r(RegExp.prototype,c,(function(){var t=a(this);return"/"+o(t.source)+"/"+o(u(t))}),{unsafe:!0})},function(t,e,n){n(370)},function(t,e,n){"use strict";n(230)("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(235))},function(t,e,n){"use strict";var i=n(3),r=n(14),a=n(17),o=n(63),s=n(70),u=n(7),c=r("".charAt);i({target:"String",proto:!0,forced:u((function(){return"\ud842"!=="𠮷".at(-2)}))},{at:function(t){var e=s(a(this)),n=e.length,i=o(t),r=i>=0?i:n+i;return r<0||r>=n?void 0:c(e,r)}})},function(t,e,n){"use strict";var i=n(3),r=n(373).codeAt;i({target:"String",proto:!0},{codePointAt:function(t){return r(this,t)}})},function(t,e,n){var i=n(14),r=n(63),a=n(70),o=n(17),s=i("".charAt),u=i("".charCodeAt),c=i("".slice),l=function(t){return function(e,n){var i,l,h=a(o(e)),f=r(n),d=h.length;return f<0||f>=d?t?"":void 0:(i=u(h,f))<55296||i>56319||f+1===d||(l=u(h,f+1))<56320||l>57343?t?s(h,f):i:t?c(h,f,f+2):l-56320+(i-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},function(t,e,n){"use strict";var i,r=n(3),a=n(14),o=n(5).f,s=n(66),u=n(70),c=n(375),l=n(17),h=n(376),f=n(37),d=a("".endsWith),g=a("".slice),p=Math.min,v=h("endsWith");r({target:"String",proto:!0,forced:!!(f||v||(i=o(String.prototype,"endsWith"),!i||i.writable))&&!v},{endsWith:function(t){var e=u(l(this));c(t);var n=arguments.length>1?arguments[1]:void 0,i=e.length,r=void 0===n?i:p(s(n),i),a=u(t);return d?d(e,a,r):g(e,r-a.length,r)===a}})},function(t,e,n){var i=n(356),r=TypeError;t.exports=function(t){if(i(t))throw r("The method doesn't accept regular expressions");return t}},function(t,e,n){var i=n(35)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,"/./"[t](e)}catch(t){}}return!1}},function(t,e,n){var i=n(3),r=n(14),a=n(62),o=RangeError,s=String.fromCharCode,u=String.fromCodePoint,c=r([].join);i({target:"String",stat:!0,arity:1,forced:!!u&&1!=u.length},{fromCodePoint:function(t){for(var e,n=[],i=arguments.length,r=0;i>r;){if(e=+arguments[r++],a(e,1114111)!==e)throw o(e+" is not a valid code point");n[r]=e<65536?s(e):s(55296+((e-=65536)>>10),e%1024+56320)}return c(n,"")}})},function(t,e,n){"use strict";var i=n(3),r=n(14),a=n(375),o=n(17),s=n(70),u=n(376),c=r("".indexOf);i({target:"String",proto:!0,forced:!u("includes")},{includes:function(t){return!!~c(s(o(this)),s(a(t)),arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var i=n(373).charAt,r=n(70),a=n(53),o=n(166),s=n(169),u="String Iterator",c=a.set,l=a.getterFor(u);o(String,"String",(function(t){c(this,{type:u,string:r(t),index:0})}),(function(){var t,e=l(this),n=e.string,r=e.index;return r>=n.length?s(void 0,!0):(t=i(n,r),e.index+=t.length,s(t,!1))}))},function(t,e,n){"use strict";var i=n(8),r=n(381),a=n(48),o=n(18),s=n(66),u=n(70),c=n(17),l=n(31),h=n(382),f=n(383);r("match",(function(t,e,n){return[function(e){var n=c(this),r=o(e)?void 0:l(e,t);return r?i(r,e,n):new RegExp(e)[t](u(n))},function(t){var i=a(this),r=u(t),o=n(e,i,r);if(o.done)return o.value;if(!i.global)return f(i,r);var c=i.unicode;i.lastIndex=0;for(var l,d=[],g=0;null!==(l=f(i,r));){var p=u(l[0]);d[g]=p,""===p&&(i.lastIndex=h(r,s(i.lastIndex),c)),g++}return 0===g?null:d}]}))},function(t,e,n){"use strict";n(363);var i=n(14),r=n(49),a=n(364),o=n(7),s=n(35),u=n(45),c=s("species"),l=RegExp.prototype;t.exports=function(t,e,n,h){var f=s(t),d=!o((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),g=d&&!o((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return e=!0,null},n[f](""),!e}));if(!d||!g||n){var p=i(/./[f]),v=e(f,""[t],(function(t,e,n,r,o){var s=i(t),u=e.exec;return u===a||u===l.exec?d&&!o?{done:!0,value:p(e,n,r)}:{done:!0,value:s(n,e,r)}:{done:!1}}));r(String.prototype,t,v[0]),r(l,f,v[1])}h&&u(l[f],"sham",!0)}},function(t,e,n){"use strict";var i=n(373).charAt;t.exports=function(t,e,n){return e+(n?i(t,e).length:1)}},function(t,e,n){var i=n(8),r=n(48),a=n(22),o=n(15),s=n(364),u=TypeError;t.exports=function(t,e){var n=t.exec;if(a(n)){var c=i(n,t,e);return null!==c&&r(c),c}if("RegExp"===o(t))return i(s,t,e);throw u("RegExp#exec called on incompatible receiver")}},function(t,e,n){"use strict";var i=n(3),r=n(8),a=n(14),o=n(167),s=n(169),u=n(17),c=n(66),l=n(70),h=n(48),f=n(18),d=n(15),g=n(356),p=n(357),v=n(31),y=n(49),x=n(7),b=n(35),_=n(205),m=n(382),w=n(383),T=n(53),A=n(37),S=b("matchAll"),E="RegExp String",k="RegExp String Iterator",M=T.set,O=T.getterFor(k),R=RegExp.prototype,C=TypeError,I=a("".indexOf),L=a("".matchAll),P=!!L&&!x((function(){L("a",/./)})),D=o((function(t,e,n,i){M(this,{type:k,regexp:t,string:e,global:n,unicode:i,done:!1})}),E,(function(){var t=O(this);if(t.done)return s(void 0,!0);var e=t.regexp,n=t.string,i=w(e,n);return null===i?(t.done=!0,s(void 0,!0)):t.global?(""===l(i[0])&&(e.lastIndex=m(n,c(e.lastIndex),t.unicode)),s(i,!1)):(t.done=!0,s(i,!1))})),N=function(t){var e,n,i,r=h(this),a=l(t),o=_(r,RegExp),s=l(p(r));return e=new o(o===RegExp?r.source:r,s),n=!!~I(s,"g"),i=!!~I(s,"u"),e.lastIndex=c(r.lastIndex),new D(e,a,n,i)};i({target:"String",proto:!0,forced:P},{matchAll:function(t){var e,n,i,a,o=u(this);if(f(t)){if(P)return L(o,t)}else{if(g(t)&&(e=l(u(p(t))),!~I(e,"g")))throw C("`.matchAll` does not allow non-global regexes");if(P)return L(o,t);if(void 0===(i=v(t,S))&&A&&"RegExp"==d(t)&&(i=N),i)return r(i,t,o)}return n=l(o),a=new RegExp(t,"g"),A?r(N,a,n):a[S](n)}}),A||S in R||y(R,S,N)},function(t,e,n){"use strict";var i=n(3),r=n(215).end;i({target:"String",proto:!0,forced:n(386)},{padEnd:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var i=n(30);t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(i)},function(t,e,n){"use strict";var i=n(3),r=n(215).start;i({target:"String",proto:!0,forced:n(386)},{padStart:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var i=n(3),r=n(14),a=n(12),o=n(41),s=n(70),u=n(65),c=r([].push),l=r([].join);i({target:"String",stat:!0},{raw:function(t){for(var e=a(o(t).raw),n=u(e),i=arguments.length,r=[],h=0;n>h;){if(c(r,s(e[h++])),h===n)return l(r,"");h<i&&c(r,s(arguments[h]))}}})},function(t,e,n){n(3)({target:"String",proto:!0},{repeat:n(216)})},function(t,e,n){"use strict";var i=n(95),r=n(8),a=n(14),o=n(381),s=n(7),u=n(48),c=n(22),l=n(18),h=n(63),f=n(66),d=n(70),g=n(17),p=n(382),v=n(31),y=n(391),x=n(383),b=n(35)("replace"),_=Math.max,m=Math.min,w=a([].concat),T=a([].push),A=a("".indexOf),S=a("".slice),E="$0"==="a".replace(/./,"$0"),k=!!/./[b]&&""===/./[b]("a","$0");o("replace",(function(t,e,n){var a=k?"$":"$0";return[function(t,n){var i=g(this),a=l(t)?void 0:v(t,b);return a?r(a,t,i,n):r(e,d(i),t,n)},function(t,r){var o=u(this),s=d(t);if("string"==typeof r&&-1===A(r,a)&&-1===A(r,"$<")){var l=n(e,o,s,r);if(l.done)return l.value}var g=c(r);g||(r=d(r));var v=o.global;if(v){var b=o.unicode;o.lastIndex=0}for(var E=[];;){var k=x(o,s);if(null===k)break;if(T(E,k),!v)break;""===d(k[0])&&(o.lastIndex=p(s,f(o.lastIndex),b))}for(var M,O="",R=0,C=0;C<E.length;C++){for(var I=d((k=E[C])[0]),L=_(m(h(k.index),s.length),0),P=[],D=1;D<k.length;D++)T(P,void 0===(M=k[D])?M:String(M));var N=k.groups;if(g){var z=w([I],P,L,s);void 0!==N&&T(z,N);var F=d(i(r,void 0,z))}else F=y(I,s,L,P,N,r);L>=R&&(O+=S(s,R,L)+F,R=L+I.length)}return O+S(s,R)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!E||k)},function(t,e,n){var i=n(14),r=n(41),a=Math.floor,o=i("".charAt),s=i("".replace),u=i("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,i,h,f){var d=n+t.length,g=i.length,p=l;return void 0!==h&&(h=r(h),p=c),s(f,p,(function(r,s){var c;switch(o(s,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,n);case"'":return u(e,d);case"<":c=h[u(s,1,-1)];break;default:var l=+s;if(0===l)return r;if(l>g){var f=a(l/10);return 0===f?r:f<=g?void 0===i[f-1]?o(s,1):i[f-1]+o(s,1):r}c=i[l-1]}return void 0===c?"":c}))}},function(t,e,n){"use strict";var i=n(3),r=n(8),a=n(14),o=n(17),s=n(22),u=n(18),c=n(356),l=n(70),h=n(31),f=n(357),d=n(391),g=n(35),p=n(37),v=g("replace"),y=TypeError,x=a("".indexOf),b=a("".replace),_=a("".slice),m=Math.max,w=function(t,e,n){return n>t.length?-1:""===e?n:x(t,e,n)};i({target:"String",proto:!0},{replaceAll:function(t,e){var n,i,a,g,T,A,S,E,k,M=o(this),O=0,R=0,C="";if(!u(t)){if((n=c(t))&&(i=l(o(f(t))),!~x(i,"g")))throw y("`.replaceAll` does not allow non-global regexes");if(a=h(t,v))return r(a,t,M,e);if(p&&n)return b(l(M),t,e)}for(g=l(M),T=l(t),(A=s(e))||(e=l(e)),S=T.length,E=m(1,S),O=w(g,T,0);-1!==O;)k=A?l(e(T,O,g)):d(T,g,O,[],void 0,e),C+=_(g,R,O)+k,R=O+S,O=w(g,T,O+E);return R<g.length&&(C+=_(g,R)),C}})},function(t,e,n){"use strict";var i=n(8),r=n(381),a=n(48),o=n(18),s=n(17),u=n(297),c=n(70),l=n(31),h=n(383);r("search",(function(t,e,n){return[function(e){var n=s(this),r=o(e)?void 0:l(e,t);return r?i(r,e,n):new RegExp(e)[t](c(n))},function(t){var i=a(this),r=c(t),o=n(e,i,r);if(o.done)return o.value;var s=i.lastIndex;u(s,0)||(i.lastIndex=0);var l=h(i,r);return u(i.lastIndex,s)||(i.lastIndex=s),null===l?-1:l.index}]}))},function(t,e,n){"use strict";var i=n(95),r=n(8),a=n(14),o=n(381),s=n(48),u=n(18),c=n(356),l=n(17),h=n(205),f=n(382),d=n(66),g=n(70),p=n(31),v=n(78),y=n(383),x=n(364),b=n(359),_=n(7),m=b.UNSUPPORTED_Y,w=4294967295,T=Math.min,A=[].push,S=a(/./.exec),E=a(A),k=a("".slice),M=!_((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));o("split",(function(t,e,n){var a;return a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var a=g(l(this)),o=void 0===n?w:n>>>0;if(0===o)return[];if(void 0===t)return[a];if(!c(t))return r(e,a,t,o);for(var s,u,h,f=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,y=new RegExp(t.source,d+"g");(s=r(x,y,a))&&!((u=y.lastIndex)>p&&(E(f,k(a,p,s.index)),s.length>1&&s.index<a.length&&i(A,f,v(s,1)),h=s[0].length,p=u,f.length>=o));)y.lastIndex===s.index&&y.lastIndex++;return p===a.length?!h&&S(y,"")||E(f,""):E(f,k(a,p)),f.length>o?v(f,0,o):f}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:r(e,this,t,n)}:e,[function(e,n){var i=l(this),o=u(e)?void 0:p(e,t);return o?r(o,e,i,n):r(a,g(i),e,n)},function(t,i){var r=s(this),o=g(t),u=n(a,r,o,i,a!==e);if(u.done)return u.value;var c=h(r,RegExp),l=r.unicode,p=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(m?"g":"y"),v=new c(m?"^(?:"+r.source+")":r,p),x=void 0===i?w:i>>>0;if(0===x)return[];if(0===o.length)return null===y(v,o)?[o]:[];for(var b=0,_=0,A=[];_<o.length;){v.lastIndex=m?0:_;var S,M=y(v,m?k(o,_):o);if(null===M||(S=T(d(v.lastIndex+(m?_:0)),o.length))===b)_=f(o,_,l);else{if(E(A,k(o,b,_)),A.length===x)return A;for(var O=1;O<=M.length-1;O++)if(E(A,M[O]),A.length===x)return A;_=b=S}}return E(A,k(o,b)),A}]}),!M,m)},function(t,e,n){"use strict";var i,r=n(3),a=n(14),o=n(5).f,s=n(66),u=n(70),c=n(375),l=n(17),h=n(376),f=n(37),d=a("".startsWith),g=a("".slice),p=Math.min,v=h("startsWith");r({target:"String",proto:!0,forced:!!(f||v||(i=o(String.prototype,"startsWith"),!i||i.writable))&&!v},{startsWith:function(t){var e=u(l(this));c(t);var n=s(p(arguments.length>1?arguments[1]:void 0,e.length)),i=u(t);return d?d(e,i,n):g(e,n,n+i.length)===i}})},function(t,e,n){"use strict";var i=n(3),r=n(14),a=n(17),o=n(63),s=n(70),u=r("".slice),c=Math.max,l=Math.min;i({target:"String",proto:!0,forced:!"".substr||"b"!=="ab".substr(-1)},{substr:function(t,e){var n,i,r=s(a(this)),h=r.length,f=o(t);return f===1/0&&(f=0),f<0&&(f=c(h+f,0)),(n=void 0===e?h:o(e))<=0||n===1/0||f>=(i=l(f+n,h))?"":u(r,f,i)}})},function(t,e,n){"use strict";var i=n(3),r=n(261).trim;i({target:"String",proto:!0,forced:n(398)("trim")},{trim:function(){return r(this)}})},function(t,e,n){var i=n(51).PROPER,r=n(7),a=n(262);t.exports=function(t){return r((function(){return!!a[t]()||"​…᠎"!=="​…᠎"[t]()||i&&a[t].name!==t}))}},function(t,e,n){n(400);var i=n(3),r=n(401);i({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==r},{trimEnd:r})},function(t,e,n){var i=n(3),r=n(401);i({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==r},{trimRight:r})},function(t,e,n){"use strict";var i=n(261).end,r=n(398);t.exports=r("trimEnd")?function(){return i(this)}:"".trimEnd},function(t,e,n){n(403);var i=n(3),r=n(404);i({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==r},{trimStart:r})},function(t,e,n){var i=n(3),r=n(404);i({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==r},{trimLeft:r})},function(t,e,n){"use strict";var i=n(261).start,r=n(398);t.exports=r("trimStart")?function(){return i(this)}:"".trimStart},function(t,e,n){"use strict";var i=n(3),r=n(406);i({target:"String",proto:!0,forced:n(407)("anchor")},{anchor:function(t){return r(this,"a","name",t)}})},function(t,e,n){var i=n(14),r=n(17),a=n(70),o=/"/g,s=i("".replace);t.exports=function(t,e,n,i){var u=a(r(t)),c="<"+e;return""!==n&&(c+=" "+n+'="'+s(a(i),o,"&quot;")+'"'),c+">"+u+"</"+e+">"}},function(t,e,n){var i=n(7);t.exports=function(t){return i((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},function(t,e,n){"use strict";var i=n(3),r=n(406);i({target:"String",proto:!0,forced:n(407)("big")},{big:function(){return r(this,"big","","")}})},function(t,e,n){"use strict";var i=n(3),r=n(406);i({target:"String",proto:!0,forced:n(407)("blink")},{blink:function(){return r(this,"blink","","")}})},function(t,e,n){"use strict";var i=n(3),r=n(406);i({target:"String",proto:!0,forced:n(407)("bold")},{bold:function(){return r(this,"b","","")}})},function(t,e,n){"use strict";var i=n(3),r=n(406);i({target:"String",proto:!0,forced:n(407)("fixed")},{fixed:function(){return r(this,"tt","","")}})},function(t,e,n){"use strict";var i=n(3),r=n(406);i({target:"String",proto:!0,forced:n(407)("fontcolor")},{fontcolor:function(t){return r(this,"font","color",t)}})},function(t,e,n){"use strict";var i=n(3),r=n(406);i({target:"String",proto:!0,forced:n(407)("fontsize")},{fontsize:function(t){return r(this,"font","size",t)}})},function(t,e,n){"use strict";var i=n(3),r=n(406);i({target:"String",proto:!0,forced:n(407)("italics")},{italics:function(){return r(this,"i","","")}})},function(t,e,n){"use strict";var i=n(3),r=n(406);i({target:"String",proto:!0,forced:n(407)("link")},{link:function(t){return r(this,"a","href",t)}})},function(t,e,n){"use strict";var i=n(3),r=n(406);i({target:"String",proto:!0,forced:n(407)("small")},{small:function(){return r(this,"small","","")}})},function(t,e,n){"use strict";var i=n(3),r=n(406);i({target:"String",proto:!0,forced:n(407)("strike")},{strike:function(){return r(this,"strike","","")}})},function(t,e,n){"use strict";var i=n(3),r=n(406);i({target:"String",proto:!0,forced:n(407)("sub")},{sub:function(){return r(this,"sub","","")}})},function(t,e,n){"use strict";var i=n(3),r=n(406);i({target:"String",proto:!0,forced:n(407)("sup")},{sup:function(){return r(this,"sup","","")}})},function(t,e,n){n(421)("Float32",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){"use strict";var i=n(3),r=n(4),a=n(8),o=n(6),s=n(422),u=n(203),c=n(196),l=n(199),h=n(11),f=n(45),d=n(267),g=n(66),p=n(200),v=n(423),y=n(19),x=n(40),b=n(71),_=n(21),m=n(24),w=n(73),T=n(26),A=n(114),S=n(59).f,E=n(425),k=n(85).forEach,M=n(190),O=n(46),R=n(5),C=n(53),I=n(117),L=C.get,P=C.set,D=C.enforce,N=O.f,z=R.f,F=Math.round,j=r.RangeError,B=c.ArrayBuffer,X=B.prototype,$=c.DataView,U=u.NATIVE_ARRAY_BUFFER_VIEWS,Y=u.TYPED_ARRAY_TAG,V=u.TypedArray,G=u.TypedArrayPrototype,H=u.aTypedArrayConstructor,W=u.isTypedArray,q="BYTES_PER_ELEMENT",Z="Wrong length",K=function(t,e){H(t);for(var n=0,i=e.length,r=new t(i);i>n;)r[n]=e[n++];return r},J=function(t,e){N(t,e,{get:function(){return L(this)[e]}})},Q=function(t){var e;return T(X,t)||"ArrayBuffer"==(e=b(t))||"SharedArrayBuffer"==e},tt=function(t,e){return W(t)&&!m(e)&&e in t&&d(+e)&&e>=0},et=function(t,e){return e=y(e),tt(t,e)?h(2,t[e]):z(t,e)},nt=function(t,e,n){return e=y(e),!(tt(t,e)&&_(n)&&x(n,"value"))||x(n,"get")||x(n,"set")||n.configurable||x(n,"writable")&&!n.writable||x(n,"enumerable")&&!n.enumerable?N(t,e,n):(t[e]=n.value,t)};o?(U||(R.f=et,O.f=nt,J(G,"buffer"),J(G,"byteOffset"),J(G,"byteLength"),J(G,"length")),i({target:"Object",stat:!0,forced:!U},{getOwnPropertyDescriptor:et,defineProperty:nt}),t.exports=function(t,e,n){var o=t.match(/\d+$/)[0]/8,u=t+(n?"Clamped":"")+"Array",c="get"+t,h="set"+t,d=r[u],y=d,x=y&&y.prototype,b={},m=function(t,e){N(t,e,{get:function(){return function(t,e){var n=L(t);return n.view[c](e*o+n.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,i){var r=L(t);n&&(i=(i=F(i))<0?0:i>255?255:255&i),r.view[h](e*o+r.byteOffset,i,!0)}(this,e,t)},enumerable:!0})};U?s&&(y=e((function(t,e,n,i){return l(t,x),I(_(e)?Q(e)?void 0!==i?new d(e,v(n,o),i):void 0!==n?new d(e,v(n,o)):new d(e):W(e)?K(y,e):a(E,y,e):new d(p(e)),t,y)})),A&&A(y,V),k(S(d),(function(t){t in y||f(y,t,d[t])})),y.prototype=x):(y=e((function(t,e,n,i){l(t,x);var r,s,u,c=0,h=0;if(_(e)){if(!Q(e))return W(e)?K(y,e):a(E,y,e);r=e,h=v(n,o);var f=e.byteLength;if(void 0===i){if(f%o)throw j(Z);if((s=f-h)<0)throw j(Z)}else if((s=g(i)*o)+h>f)throw j(Z);u=s/o}else u=p(e),r=new B(s=u*o);for(P(t,{buffer:r,byteOffset:h,byteLength:s,length:u,view:new $(r)});c<u;)m(t,c++)})),A&&A(y,V),x=y.prototype=w(G)),x.constructor!==y&&f(x,"constructor",y),D(x).TypedArrayConstructor=y,Y&&f(x,Y,u);var T=y!=d;b[u]=y,i({global:!0,constructor:!0,forced:T,sham:!U},b),q in y||f(y,q,o),q in x||f(x,q,o),M(u)}):t.exports=function(){}},function(t,e,n){var i=n(4),r=n(7),a=n(161),o=n(203).NATIVE_ARRAY_BUFFER_VIEWS,s=i.ArrayBuffer,u=i.Int8Array;t.exports=!o||!r((function(){u(1)}))||!r((function(){new u(-1)}))||!a((function(t){new u,new u(null),new u(1.5),new u(t)}),!0)||r((function(){return 1!==new u(new s(2),1,void 0).length}))},function(t,e,n){var i=n(424),r=RangeError;t.exports=function(t,e){var n=i(t);if(n%e)throw r("Wrong offset");return n}},function(t,e,n){var i=n(63),r=RangeError;t.exports=function(t){var e=i(t);if(e<0)throw r("The argument can't be less than 0");return e}},function(t,e,n){var i=n(86),r=n(8),a=n(206),o=n(41),s=n(65),u=n(131),c=n(132),l=n(129),h=n(426),f=n(203).aTypedArrayConstructor,d=n(427);t.exports=function(t){var e,n,g,p,v,y,x,b,_=a(this),m=o(t),w=arguments.length,T=w>1?arguments[1]:void 0,A=void 0!==T,S=c(m);if(S&&!l(S))for(b=(x=u(m,S)).next,m=[];!(y=r(b,x)).done;)m.push(y.value);for(A&&w>2&&(T=i(T,arguments[2])),n=s(m),g=new(f(_))(n),p=h(g),e=0;n>e;e++)v=A?T(m[e],e):m[e],g[e]=p?d(v):+v;return g}},function(t,e,n){var i=n(71),r=n(14)("".slice);t.exports=function(t){return"Big"===r(i(t),0,3)}},function(t,e,n){var i=n(20),r=TypeError;t.exports=function(t){var e=i(t,"number");if("number"==typeof e)throw r("Can't convert number to bigint");return BigInt(e)}},function(t,e,n){n(421)("Float64",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){n(421)("Int8",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){n(421)("Int16",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){n(421)("Int32",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){n(421)("Uint8",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){n(421)("Uint8",(function(t){return function(e,n,i){return t(this,e,n,i)}}),!0)},function(t,e,n){n(421)("Uint16",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){n(421)("Uint32",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){"use strict";var i=n(203),r=n(65),a=n(63),o=i.aTypedArray;(0,i.exportTypedArrayMethod)("at",(function(t){var e=o(this),n=r(e),i=a(t),s=i>=0?i:n+i;return s<0||s>=n?void 0:e[s]}))},function(t,e,n){"use strict";var i=n(14),r=n(203),a=i(n(141)),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("copyWithin",(function(t,e){return a(o(this),t,e,arguments.length>2?arguments[2]:void 0)}))},function(t,e,n){"use strict";var i=n(203),r=n(85).every,a=i.aTypedArray;(0,i.exportTypedArrayMethod)("every",(function(t){return r(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var i=n(203),r=n(146),a=n(427),o=n(71),s=n(8),u=n(14),c=n(7),l=i.aTypedArray,h=i.exportTypedArrayMethod,f=u("".slice);h("fill",(function(t){var e=arguments.length;l(this);var n="Big"===f(o(this),0,3)?a(t):+t;return s(r,this,n,e>1?arguments[1]:void 0,e>2?arguments[2]:void 0)}),c((function(){var t=0;return new Int8Array(2).fill({valueOf:function(){return t++}}),1!==t})))},function(t,e,n){"use strict";var i=n(203),r=n(85).filter,a=n(441),o=i.aTypedArray;(0,i.exportTypedArrayMethod)("filter",(function(t){var e=r(o(this),t,arguments.length>1?arguments[1]:void 0);return a(this,e)}))},function(t,e,n){var i=n(442),r=n(443);t.exports=function(t,e){return i(r(t),e)}},function(t,e,n){var i=n(65);t.exports=function(t,e){for(var n=0,r=i(e),a=new t(r);r>n;)a[n]=e[n++];return a}},function(t,e,n){var i=n(203),r=n(205),a=i.aTypedArrayConstructor,o=i.getTypedArrayConstructor;t.exports=function(t){return a(r(t,o(t)))}},function(t,e,n){"use strict";var i=n(203),r=n(85).find,a=i.aTypedArray;(0,i.exportTypedArrayMethod)("find",(function(t){return r(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var i=n(203),r=n(85).findIndex,a=i.aTypedArray;(0,i.exportTypedArrayMethod)("findIndex",(function(t){return r(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var i=n(203),r=n(151).findLast,a=i.aTypedArray;(0,i.exportTypedArrayMethod)("findLast",(function(t){return r(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var i=n(203),r=n(151).findLastIndex,a=i.aTypedArray;(0,i.exportTypedArrayMethod)("findLastIndex",(function(t){return r(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var i=n(203),r=n(85).forEach,a=i.aTypedArray;(0,i.exportTypedArrayMethod)("forEach",(function(t){r(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var i=n(422);(0,n(203).exportTypedArrayStaticMethod)("from",n(425),i)},function(t,e,n){"use strict";var i=n(203),r=n(61).includes,a=i.aTypedArray;(0,i.exportTypedArrayMethod)("includes",(function(t){return r(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var i=n(203),r=n(61).indexOf,a=i.aTypedArray;(0,i.exportTypedArrayMethod)("indexOf",(function(t){return r(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var i=n(4),r=n(7),a=n(14),o=n(203),s=n(165),u=n(35)("iterator"),c=i.Uint8Array,l=a(s.values),h=a(s.keys),f=a(s.entries),d=o.aTypedArray,g=o.exportTypedArrayMethod,p=c&&c.prototype,v=!r((function(){p[u].call([1])})),y=!!p&&p.values&&p[u]===p.values&&"values"===p.values.name,x=function(){return l(d(this))};g("entries",(function(){return f(d(this))}),v),g("keys",(function(){return h(d(this))}),v),g("values",x,v||!y,{name:"values"}),g(u,x,v||!y,{name:"values"})},function(t,e,n){"use strict";var i=n(203),r=n(14),a=i.aTypedArray,o=i.exportTypedArrayMethod,s=r([].join);o("join",(function(t){return s(a(this),t)}))},function(t,e,n){"use strict";var i=n(203),r=n(95),a=n(172),o=i.aTypedArray;(0,i.exportTypedArrayMethod)("lastIndexOf",(function(t){var e=arguments.length;return r(a,o(this),e>1?[t,arguments[1]]:[t])}))},function(t,e,n){"use strict";var i=n(203),r=n(85).map,a=n(443),o=i.aTypedArray;(0,i.exportTypedArrayMethod)("map",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(a(t))(e)}))}))},function(t,e,n){"use strict";var i=n(203),r=n(422),a=i.aTypedArrayConstructor;(0,i.exportTypedArrayStaticMethod)("of",(function(){for(var t=0,e=arguments.length,n=new(a(this))(e);e>t;)n[t]=arguments[t++];return n}),r)},function(t,e,n){"use strict";var i=n(203),r=n(178).left,a=i.aTypedArray;(0,i.exportTypedArrayMethod)("reduce",(function(t){var e=arguments.length;return r(a(this),t,e,e>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var i=n(203),r=n(178).right,a=i.aTypedArray;(0,i.exportTypedArrayMethod)("reduceRight",(function(t){var e=arguments.length;return r(a(this),t,e,e>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var i=n(203),r=i.aTypedArray,a=i.exportTypedArrayMethod,o=Math.floor;a("reverse",(function(){for(var t,e=this,n=r(e).length,i=o(n/2),a=0;a<i;)t=e[a],e[a++]=e[--n],e[n]=t;return e}))},function(t,e,n){"use strict";var i=n(4),r=n(8),a=n(203),o=n(65),s=n(423),u=n(41),c=n(7),l=i.RangeError,h=i.Int8Array,f=h&&h.prototype,d=f&&f.set,g=a.aTypedArray,p=a.exportTypedArrayMethod,v=!c((function(){var t=new Uint8ClampedArray(2);return r(d,t,{length:1,0:3},1),3!==t[1]})),y=v&&a.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var t=new h(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));p("set",(function(t){g(this);var e=s(arguments.length>1?arguments[1]:void 0,1),n=u(t);if(v)return r(d,this,n,e);var i=this.length,a=o(n),c=0;if(a+e>i)throw l("Wrong length");for(;c<a;)this[e+c]=n[c++]}),!v||y)},function(t,e,n){"use strict";var i=n(203),r=n(443),a=n(7),o=n(96),s=i.aTypedArray;(0,i.exportTypedArrayMethod)("slice",(function(t,e){for(var n=o(s(this),t,e),i=r(this),a=0,u=n.length,c=new i(u);u>a;)c[a]=n[a++];return c}),a((function(){new Int8Array(1).slice()})))},function(t,e,n){"use strict";var i=n(203),r=n(85).some,a=i.aTypedArray;(0,i.exportTypedArrayMethod)("some",(function(t){return r(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var i=n(4),r=n(14),a=n(7),o=n(32),s=n(185),u=n(203),c=n(186),l=n(187),h=n(29),f=n(188),d=u.aTypedArray,g=u.exportTypedArrayMethod,p=i.Uint16Array,v=p&&r(p.prototype.sort),y=!(!v||a((function(){v(new p(2),null)}))&&a((function(){v(new p(2),{})}))),x=!!v&&!a((function(){if(h)return h<74;if(c)return c<67;if(l)return!0;if(f)return f<602;var t,e,n=new p(516),i=Array(516);for(t=0;t<516;t++)e=t%4,n[t]=515-t,i[t]=t-2*e+3;for(v(n,(function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(n[t]!==i[t])return!0}));g("sort",(function(t){return void 0!==t&&o(t),x?v(this,t):s(d(this),function(t){return function(e,n){return void 0!==t?+t(e,n)||0:n!=n?-1:e!=e?1:0===e&&0===n?1/e>0&&1/n<0?1:-1:e>n}}(t))}),!x||y)},function(t,e,n){"use strict";var i=n(203),r=n(66),a=n(62),o=n(443),s=i.aTypedArray;(0,i.exportTypedArrayMethod)("subarray",(function(t,e){var n=s(this),i=n.length,u=a(t,i);return new(o(n))(n.buffer,n.byteOffset+u*n.BYTES_PER_ELEMENT,r((void 0===e?i:a(e,i))-u))}))},function(t,e,n){"use strict";var i=n(4),r=n(95),a=n(203),o=n(7),s=n(96),u=i.Int8Array,c=a.aTypedArray,l=a.exportTypedArrayMethod,h=[].toLocaleString,f=!!u&&o((function(){h.call(new u(1))}));l("toLocaleString",(function(){return r(h,f?s(c(this)):c(this),s(arguments))}),o((function(){return[1,2].toLocaleString()!=new u([1,2]).toLocaleString()}))||!o((function(){u.prototype.toLocaleString.call([1,2])})))},function(t,e,n){"use strict";var i=n(203).exportTypedArrayMethod,r=n(7),a=n(4),o=n(14),s=a.Uint8Array,u=s&&s.prototype||{},c=[].toString,l=o([].join);r((function(){c.call({})}))&&(c=function(){return l(this)});var h=u.toString!=c;i("toString",c,h)},function(t,e,n){"use strict";var i=n(3),r=n(14),a=n(70),o=String.fromCharCode,s=r("".charAt),u=r(/./.exec),c=r("".slice),l=/^[\da-f]{2}$/i,h=/^[\da-f]{4}$/i;i({global:!0},{unescape:function(t){for(var e,n,i=a(t),r="",f=i.length,d=0;d<f;){if("%"===(e=s(i,d++)))if("u"===s(i,d)){if(n=c(i,d+1,d+5),u(h,n)){r+=o(parseInt(n,16)),d+=5;continue}}else if(n=c(i,d,d+2),u(l,n)){r+=o(parseInt(n,16)),d+=2;continue}r+=e}return r}})},function(t,e,n){n(469)},function(t,e,n){"use strict";var i,r=n(4),a=n(14),o=n(198),s=n(231),u=n(230),c=n(470),l=n(21),h=n(232),f=n(53).enforce,d=n(54),g=!r.ActiveXObject&&"ActiveXObject"in r,p=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},v=u("WeakMap",p,c);if(d&&g){i=c.getConstructor(p,"WeakMap",!0),s.enable();var y=v.prototype,x=a(y.delete),b=a(y.has),_=a(y.get),m=a(y.set);o(y,{delete:function(t){if(l(t)&&!h(t)){var e=f(this);return e.frozen||(e.frozen=new i),x(this,t)||e.frozen.delete(t)}return x(this,t)},has:function(t){if(l(t)&&!h(t)){var e=f(this);return e.frozen||(e.frozen=new i),b(this,t)||e.frozen.has(t)}return b(this,t)},get:function(t){if(l(t)&&!h(t)){var e=f(this);return e.frozen||(e.frozen=new i),b(this,t)?_(this,t):e.frozen.get(t)}return _(this,t)},set:function(t,e){if(l(t)&&!h(t)){var n=f(this);n.frozen||(n.frozen=new i),b(this,t)?m(this,t,e):n.frozen.set(t,e)}else m(this,t,e);return this}})}},function(t,e,n){"use strict";var i=n(14),r=n(198),a=n(231).getWeakData,o=n(199),s=n(48),u=n(18),c=n(21),l=n(128),h=n(85),f=n(40),d=n(53),g=d.set,p=d.getterFor,v=h.find,y=h.findIndex,x=i([].splice),b=0,_=function(t){return t.frozen||(t.frozen=new m)},m=function(){this.entries=[]},w=function(t,e){return v(t.entries,(function(t){return t[0]===e}))};m.prototype={get:function(t){var e=w(this,t);if(e)return e[1]},has:function(t){return!!w(this,t)},set:function(t,e){var n=w(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=y(this.entries,(function(e){return e[0]===t}));return~e&&x(this.entries,e,1),!!~e}},t.exports={getConstructor:function(t,e,n,i){var h=t((function(t,r){o(t,d),g(t,{type:e,id:b++,frozen:void 0}),u(r)||l(r,t[i],{that:t,AS_ENTRIES:n})})),d=h.prototype,v=p(e),y=function(t,e,n){var i=v(t),r=a(s(e),!0);return!0===r?_(i).set(e,n):r[i.id]=n,t};return r(d,{delete:function(t){var e=v(this);if(!c(t))return!1;var n=a(t);return!0===n?_(e).delete(t):n&&f(n,e.id)&&delete n[e.id]},has:function(t){var e=v(this);if(!c(t))return!1;var n=a(t);return!0===n?_(e).has(t):n&&f(n,e.id)}}),r(d,n?{get:function(t){var e=v(this);if(c(t)){var n=a(t);return!0===n?_(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return y(this,t,e)}}:{add:function(t){return y(this,t,!0)}}),h}}},function(t,e,n){n(472)},function(t,e,n){"use strict";n(230)("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(470))},function(t,e,n){var i=n(3),r=n(25),a=n(14),o=n(7),s=n(70),u=n(40),c=n(317),l=n(474).ctoi,h=/[^\d+/a-z]/i,f=/[\t\n\f\r ]+/g,d=/[=]+$/,g=r("atob"),p=String.fromCharCode,v=a("".charAt),y=a("".replace),x=a(h.exec),b=o((function(){return""!==g(" ")})),_=!o((function(){g("a")})),m=!b&&!_&&!o((function(){g()})),w=!b&&!_&&1!==g.length;i({global:!0,enumerable:!0,forced:b||_||m||w},{atob:function(t){if(c(arguments.length,1),m||w)return g(t);var e,n,i=y(s(t),f,""),a="",o=0,b=0;if(i.length%4==0&&(i=y(i,d,"")),i.length%4==1||x(h,i))throw new(r("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;e=v(i,o++);)u(l,e)&&(n=b%4?64*n+l[e]:l[e],b++%4&&(a+=p(255&n>>(-2*b&6))));return a}})},function(t){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n={},i=0;i<66;i++)n[e.charAt(i)]=i;t.exports={itoc:e,ctoi:n}},function(t,e,n){var i=n(3),r=n(25),a=n(14),o=n(7),s=n(70),u=n(317),c=n(474).itoc,l=r("btoa"),h=a("".charAt),f=a("".charCodeAt),d=!!l&&!o((function(){l()})),g=!!l&&o((function(){return"bnVsbA=="!==l(null)})),p=!!l&&1!==l.length;i({global:!0,enumerable:!0,forced:d||g||p},{btoa:function(t){if(u(arguments.length,1),d||g||p)return l(s(t));for(var e,n,i=s(t),a="",o=0,v=c;h(i,o)||(v="=",o%1);){if((n=f(i,o+=3/4))>255)throw new(r("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");a+=h(v,63&(e=e<<8|n)>>8-o%1*8)}return a}})},function(t,e,n){var i=n(4),r=n(477),a=n(478),o=n(157),s=n(45),u=function(t){if(t&&t.forEach!==o)try{s(t,"forEach",o)}catch(e){t.forEach=o}};for(var c in r)r[c]&&u(i[c]&&i[c].prototype);u(a)},function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){var i=n(44)("span").classList,r=i&&i.constructor&&i.constructor.prototype;t.exports=r===Object.prototype?void 0:r},function(t,e,n){var i=n(4),r=n(477),a=n(478),o=n(165),s=n(45),u=n(35),c=u("iterator"),l=u("toStringTag"),h=o.values,f=function(t,e){if(t){if(t[c]!==h)try{s(t,c,h)}catch(e){t[c]=h}if(t[l]||s(t,l,e),r[e])for(var n in o)if(t[n]!==o[n])try{s(t,n,o[n])}catch(e){t[n]=o[n]}}};for(var d in r)f(i[d]&&i[d].prototype,d);f(a,"DOMTokenList")},function(t,e,n){"use strict";var i=n(3),r=n(481),a=n(25),o=n(7),s=n(73),u=n(11),c=n(46).f,l=n(49),h=n(306),f=n(40),d=n(199),g=n(48),p=n(123),v=n(118),y=n(482),x=n(120),b=n(53),_=n(6),m=n(37),w="DOMException",T="DATA_CLONE_ERR",A=a("Error"),S=a(w)||function(){try{(new(a("MessageChannel")||r("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(t){if(t.name==T&&25==t.code)return t.constructor}}(),E=S&&S.prototype,k=A.prototype,M=b.set,O=b.getterFor(w),R="stack"in A(w),C=function(t){return f(y,t)&&y[t].m?y[t].c:0},I=function(){d(this,L);var t=arguments.length,e=v(t<1?void 0:arguments[0]),n=v(t<2?void 0:arguments[1],"Error"),i=C(n);if(M(this,{type:w,name:n,message:e,code:i}),_||(this.name=n,this.message=e,this.code=i),R){var r=A(e);r.name=w,c(this,"stack",u(1,x(r.stack,1)))}},L=I.prototype=s(k),P=function(t){return{enumerable:!0,configurable:!0,get:t}},D=function(t){return P((function(){return O(this)[t]}))};_&&(h(L,"code",D("code")),h(L,"message",D("message")),h(L,"name",D("name"))),c(L,"constructor",u(1,I));var N=o((function(){return!(new S instanceof A)})),z=N||o((function(){return k.toString!==p||"2: 1"!==String(new S(1,2))})),F=N||o((function(){return 25!==new S(1,"DataCloneError").code})),j=N||25!==S.DATA_CLONE_ERR||25!==E.DATA_CLONE_ERR,B=m?z||F||j:N;i({global:!0,constructor:!0,forced:B},{DOMException:B?I:S});var X=a(w),$=X.prototype;for(var U in z&&(m||S===X)&&l($,"toString",p),F&&_&&S===X&&h($,"code",P((function(){return C(g(this).name)}))),y)if(f(y,U)){var Y=y[U],V=Y.s,G=u(6,Y.c);f(X,V)||c(X,V,G),f($,V)||c($,V,G)}},function(t,e,n){var i=n(179);t.exports=function(t){try{if(i)return Function('return require("'+t+'")')()}catch(t){}}},function(t){t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},function(t,e,n){"use strict";var i=n(3),r=n(4),a=n(25),o=n(11),s=n(46).f,u=n(40),c=n(199),l=n(117),h=n(118),f=n(482),d=n(120),g=n(6),p=n(37),v="DOMException",y=a("Error"),x=a(v),b=function(){c(this,_);var t=arguments.length,e=h(t<1?void 0:arguments[0]),n=h(t<2?void 0:arguments[1],"Error"),i=new x(e,n),r=y(e);return r.name=v,s(i,"stack",o(1,d(r.stack,1))),l(i,this,b),i},_=b.prototype=x.prototype,m="stack"in y(v),w="stack"in new x(1,2),T=x&&g&&Object.getOwnPropertyDescriptor(r,v),A=!(!T||T.writable&&T.configurable),S=m&&!A&&!w;i({global:!0,constructor:!0,forced:p||S},{DOMException:S?b:x});var E=a(v),k=E.prototype;if(k.constructor!==E)for(var M in p||s(k,"constructor",o(1,E)),f)if(u(f,M)){var O=f[M],R=O.s;u(E,R)||s(E,R,o(6,O.c))}},function(t,e,n){var i=n(25),r="DOMException";n(84)(i(r),r)},function(t,e,n){n(486),n(487)},function(t,e,n){var i=n(3),r=n(4),a=n(316).clear;i({global:!0,bind:!0,enumerable:!0,forced:r.clearImmediate!==a},{clearImmediate:a})},function(t,e,n){var i=n(3),r=n(4),a=n(316).set;i({global:!0,bind:!0,enumerable:!0,forced:r.setImmediate!==a},{setImmediate:a})},function(t,e,n){var i=n(3),r=n(4),a=n(319),o=n(32),s=n(317),u=n(179),c=r.process;i({global:!0,enumerable:!0,dontCallGetSet:!0},{queueMicrotask:function(t){s(arguments.length,1),o(t);var e=u&&c.domain;a(e?e.bind(t):t)}})},function(t,e,n){"use strict";var i=n(3),r=n(4),a=n(306),o=n(6),s=TypeError,u=Object.defineProperty,c=r.self!==r;try{if(o){var l=Object.getOwnPropertyDescriptor(r,"self");!c&&l&&l.get&&l.enumerable||a(r,"self",{get:function(){return r},set:function(t){if(this!==r)throw s("Illegal invocation");u(r,"self",{value:t,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else i({global:!0,simple:!0,forced:c},{self:r})}catch(t){}},function(t,e,n){var i,r=n(37),a=n(3),o=n(4),s=n(25),u=n(14),c=n(7),l=n(42),h=n(22),f=n(90),d=n(18),g=n(21),p=n(24),v=n(128),y=n(48),x=n(71),b=n(40),_=n(79),m=n(45),w=n(65),T=n(317),A=n(357),S=n(121),E=n(29),k=n(327),M=n(328),O=n(179),R=o.Object,C=o.Date,I=o.Error,L=o.EvalError,P=o.RangeError,D=o.ReferenceError,N=o.SyntaxError,z=o.TypeError,F=o.URIError,j=o.PerformanceMark,B=o.WebAssembly,X=B&&B.CompileError||I,$=B&&B.LinkError||I,U=B&&B.RuntimeError||I,Y=s("DOMException"),V=s("Set"),G=s("Map"),H=G.prototype,W=u(H.has),q=u(H.get),Z=u(H.set),K=u(V.prototype.add),J=s("Object","keys"),Q=u([].push),tt=u((!0).valueOf),et=u(1..valueOf),nt=u("".valueOf),it=u(C.prototype.getTime),rt=l("structuredClone"),at="DataCloneError",ot="Transferring",st=function(t){return!c((function(){var e=new o.Set([7]),n=t(e),i=t(R(7));return n==e||!n.has(7)||"object"!=typeof i||7!=i}))&&t},ut=function(t,e){return!c((function(){var n=new e,i=t({a:n,b:n});return!(i&&i.a===i.b&&i.a instanceof e&&i.a.stack===n.stack)}))},ct=o.structuredClone,lt=r||!ut(ct,I)||!ut(ct,Y)||(i=ct,!!c((function(){var t=i(new o.AggregateError([1],rt,{cause:3}));return"AggregateError"!=t.name||1!=t.errors[0]||t.message!=rt||3!=t.cause}))),ht=!ct&&st((function(t){return new j(rt,{detail:t}).detail})),ft=st(ct)||ht,dt=function(t){throw new Y("Uncloneable type: "+t,at)},gt=function(t,e){throw new Y((e||"Cloning")+" of "+t+" cannot be properly polyfilled in this engine",at)},pt=function(t,e){if(p(t)&&dt("Symbol"),!g(t))return t;if(e){if(W(e,t))return q(e,t)}else e=new G;var n,i,r,a,u,c,l,f,d,v,y=x(t),T=!1;switch(y){case"Array":r=[],T=!0;break;case"Object":r={},T=!0;break;case"Map":r=new G,T=!0;break;case"Set":r=new V,T=!0;break;case"RegExp":r=new RegExp(t.source,A(t));break;case"Error":switch(i=t.name){case"AggregateError":r=s("AggregateError")([]);break;case"EvalError":r=L();break;case"RangeError":r=P();break;case"ReferenceError":r=D();break;case"SyntaxError":r=N();break;case"TypeError":r=z();break;case"URIError":r=F();break;case"CompileError":r=X();break;case"LinkError":r=$();break;case"RuntimeError":r=U();break;default:r=I()}T=!0;break;case"DOMException":r=new Y(t.message,t.name),T=!0;break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":n=o[y],g(n)||gt(y),r=new n(pt(t.buffer,e),t.byteOffset,"DataView"===y?t.byteLength:t.length);break;case"DOMQuad":try{r=new DOMQuad(pt(t.p1,e),pt(t.p2,e),pt(t.p3,e),pt(t.p4,e))}catch(e){ft?r=ft(t):gt(y)}break;case"FileList":if(a=function(){var t;try{t=new o.DataTransfer}catch(e){try{t=new o.ClipboardEvent("").clipboardData}catch(t){}}return t&&t.items&&t.files?t:null}()){for(u=0,c=w(t);u<c;u++)a.items.add(pt(t[u],e));r=a.files}else ft?r=ft(t):gt(y);break;case"ImageData":try{r=new ImageData(pt(t.data,e),t.width,t.height,{colorSpace:t.colorSpace})}catch(e){ft?r=ft(t):gt(y)}break;default:if(ft)r=ft(t);else switch(y){case"BigInt":r=R(t.valueOf());break;case"Boolean":r=R(tt(t));break;case"Number":r=R(et(t));break;case"String":r=R(nt(t));break;case"Date":r=new C(it(t));break;case"ArrayBuffer":(n=o.DataView)||"function"==typeof t.slice||gt(y);try{if("function"==typeof t.slice)r=t.slice(0);else for(c=t.byteLength,r=new ArrayBuffer(c),d=new n(t),v=new n(r),u=0;u<c;u++)v.setUint8(u,d.getUint8(u))}catch(t){throw new Y("ArrayBuffer is detached",at)}break;case"SharedArrayBuffer":r=t;break;case"Blob":try{r=t.slice(0,t.size,t.type)}catch(t){gt(y)}break;case"DOMPoint":case"DOMPointReadOnly":n=o[y];try{r=n.fromPoint?n.fromPoint(t):new n(t.x,t.y,t.z,t.w)}catch(t){gt(y)}break;case"DOMRect":case"DOMRectReadOnly":n=o[y];try{r=n.fromRect?n.fromRect(t):new n(t.x,t.y,t.width,t.height)}catch(t){gt(y)}break;case"DOMMatrix":case"DOMMatrixReadOnly":n=o[y];try{r=n.fromMatrix?n.fromMatrix(t):new n(t)}catch(t){gt(y)}break;case"AudioData":case"VideoFrame":h(t.clone)||gt(y);try{r=t.clone()}catch(t){dt(y)}break;case"File":try{r=new File([t],t.name,t)}catch(t){gt(y)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":gt(y);default:dt(y)}}if(Z(e,t,r),T)switch(y){case"Array":case"Object":for(l=J(t),u=0,c=w(l);u<c;u++)f=l[u],_(r,f,pt(t[f],e));break;case"Map":t.forEach((function(t,n){Z(r,pt(n,e),pt(t,e))}));break;case"Set":t.forEach((function(t){K(r,pt(t,e))}));break;case"Error":m(r,"message",pt(t.message,e)),b(t,"cause")&&m(r,"cause",pt(t.cause,e)),"AggregateError"==i&&(r.errors=pt(t.errors,e));case"DOMException":S&&m(r,"stack",pt(t.stack,e))}return r},vt=ct&&!c((function(){if(M&&E>92||O&&E>94||k&&E>97)return!1;var t=new ArrayBuffer(8),e=ct(t,{transfer:[t]});return 0!=t.byteLength||8!=e.byteLength})),yt=function(t,e){if(!g(t))throw z("Transfer option cannot be converted to a sequence");var n=[];v(t,(function(t){Q(n,y(t))}));var i,r,a,s,u,c,l=0,d=w(n);if(vt)for(s=ct(n,{transfer:n});l<d;)Z(e,n[l],s[l++]);else for(;l<d;){if(i=n[l++],W(e,i))throw new Y("Duplicate transferable",at);switch(r=x(i)){case"ImageBitmap":a=o.OffscreenCanvas,f(a)||gt(r,ot);try{(c=new a(i.width,i.height)).getContext("bitmaprenderer").transferFromImageBitmap(i),u=c.transferToImageBitmap()}catch(t){}break;case"AudioData":case"VideoFrame":h(i.clone)&&h(i.close)||gt(r,ot);try{u=i.clone(),i.close()}catch(t){}break;case"ArrayBuffer":case"MediaSourceHandle":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":gt(r,ot)}if(void 0===u)throw new Y("This object cannot be transferred: "+r,at);Z(e,i,u)}};a({global:!0,enumerable:!0,sham:!vt,forced:lt},{structuredClone:function(t){var e,n=T(arguments.length,1)>1&&!d(arguments[1])?y(arguments[1]):void 0,i=n?n.transfer:void 0;return void 0!==i&&(e=new G,yt(i,e)),pt(t,e)}})},function(t,e,n){n(492),n(494)},function(t,e,n){var i=n(3),r=n(4),a=n(493).setInterval;i({global:!0,bind:!0,forced:r.setInterval!==a},{setInterval:a})},function(t,e,n){var i=n(4),r=n(95),a=n(22),o=n(30),s=n(96),u=n(317),c=/MSIE .\./.test(o),l=i.Function,h=function(t){return c?function(e,n){var i=u(arguments.length,1)>2,o=a(e)?e:l(e),c=i?s(arguments,2):void 0;return t(i?function(){r(o,this,c)}:o,n)}:t};t.exports={setTimeout:h(i.setTimeout),setInterval:h(i.setInterval)}},function(t,e,n){var i=n(3),r=n(4),a=n(493).setTimeout;i({global:!0,bind:!0,forced:r.setTimeout!==a},{setTimeout:a})},function(t,e,n){n(496)},function(t,e,n){"use strict";n(379);var i,r=n(3),a=n(6),o=n(497),s=n(4),u=n(86),c=n(14),l=n(49),h=n(306),f=n(199),d=n(40),g=n(280),p=n(159),v=n(78),y=n(373).codeAt,x=n(498),b=n(70),_=n(84),m=n(317),w=n(499),T=n(53),A=T.set,S=T.getterFor("URL"),E=w.URLSearchParams,k=w.getState,M=s.URL,O=s.TypeError,R=s.parseInt,C=Math.floor,I=Math.pow,L=c("".charAt),P=c(/./.exec),D=c([].join),N=c(1..toString),z=c([].pop),F=c([].push),j=c("".replace),B=c([].shift),X=c("".split),$=c("".slice),U=c("".toLowerCase),Y=c([].unshift),V="Invalid scheme",G="Invalid host",H="Invalid port",W=/[a-z]/i,q=/[\d+-.a-z]/i,Z=/\d/,K=/^0x/i,J=/^[0-7]+$/,Q=/^\d+$/,tt=/^[\da-f]+$/i,et=/[\0\t\n\r #%/:<>?@[\\\]^|]/,nt=/[\0\t\n\r #/:<>?@[\\\]^|]/,it=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,rt=/[\t\n\r]/g,at=function(t){var e,n,i,r;if("number"==typeof t){for(e=[],n=0;n<4;n++)Y(e,t%256),t=C(t/256);return D(e,".")}if("object"==typeof t){for(e="",i=function(t){for(var e=null,n=1,i=null,r=0,a=0;a<8;a++)0!==t[a]?(r>n&&(e=i,n=r),i=null,r=0):(null===i&&(i=a),++r);return r>n&&(e=i,n=r),e}(t),n=0;n<8;n++)r&&0===t[n]||(r&&(r=!1),i===n?(e+=n?":":"::",r=!0):(e+=N(t[n],16),n<7&&(e+=":")));return"["+e+"]"}return t},ot={},st=g({},ot,{" ":1,'"':1,"<":1,">":1,"`":1}),ut=g({},st,{"#":1,"?":1,"{":1,"}":1}),ct=g({},ut,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),lt=function(t,e){var n=y(t,0);return n>32&&n<127&&!d(e,t)?t:encodeURIComponent(t)},ht={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ft=function(t,e){var n;return 2==t.length&&P(W,L(t,0))&&(":"==(n=L(t,1))||!e&&"|"==n)},dt=function(t){var e;return t.length>1&&ft($(t,0,2))&&(2==t.length||"/"===(e=L(t,2))||"\\"===e||"?"===e||"#"===e)},gt=function(t){return"."===t||"%2e"===U(t)},pt={},vt={},yt={},xt={},bt={},_t={},mt={},wt={},Tt={},At={},St={},Et={},kt={},Mt={},Ot={},Rt={},Ct={},It={},Lt={},Pt={},Dt={},Nt=function(t,e,n){var i,r,a,o=b(t);if(e){if(r=this.parse(o))throw O(r);this.searchParams=null}else{if(void 0!==n&&(i=new Nt(n,!0)),r=this.parse(o,null,i))throw O(r);(a=k(new E)).bindURL(this),this.searchParams=a}};Nt.prototype={type:"URL",parse:function(t,e,n){var r,a,o,s,u,c=this,l=e||pt,h=0,f="",g=!1,y=!1,x=!1;for(t=b(t),e||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,t=j(t,it,"")),t=j(t,rt,""),r=p(t);h<=r.length;){switch(a=r[h],l){case pt:if(!a||!P(W,a)){if(e)return V;l=yt;continue}f+=U(a),l=vt;break;case vt:if(a&&(P(q,a)||"+"==a||"-"==a||"."==a))f+=U(a);else{if(":"!=a){if(e)return V;f="",l=yt,h=0;continue}if(e&&(c.isSpecial()!=d(ht,f)||"file"==f&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=f,e)return void(c.isSpecial()&&ht[c.scheme]==c.port&&(c.port=null));f="","file"==c.scheme?l=Mt:c.isSpecial()&&n&&n.scheme==c.scheme?l=xt:c.isSpecial()?l=wt:"/"==r[h+1]?(l=bt,h++):(c.cannotBeABaseURL=!0,F(c.path,""),l=Lt)}break;case yt:if(!n||n.cannotBeABaseURL&&"#"!=a)return V;if(n.cannotBeABaseURL&&"#"==a){c.scheme=n.scheme,c.path=v(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,l=Dt;break}l="file"==n.scheme?Mt:_t;continue;case xt:if("/"!=a||"/"!=r[h+1]){l=_t;continue}l=Tt,h++;break;case bt:if("/"==a){l=At;break}l=It;continue;case _t:if(c.scheme=n.scheme,a==i)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.query=n.query;else if("/"==a||"\\"==a&&c.isSpecial())l=mt;else if("?"==a)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.query="",l=Pt;else{if("#"!=a){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.path.length--,l=It;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.query=n.query,c.fragment="",l=Dt}break;case mt:if(!c.isSpecial()||"/"!=a&&"\\"!=a){if("/"!=a){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,l=It;continue}l=At}else l=Tt;break;case wt:if(l=Tt,"/"!=a||"/"!=L(f,h+1))continue;h++;break;case Tt:if("/"!=a&&"\\"!=a){l=At;continue}break;case At:if("@"==a){g&&(f="%40"+f),g=!0,o=p(f);for(var _=0;_<o.length;_++){var m=o[_];if(":"!=m||x){var w=lt(m,ct);x?c.password+=w:c.username+=w}else x=!0}f=""}else if(a==i||"/"==a||"?"==a||"#"==a||"\\"==a&&c.isSpecial()){if(g&&""==f)return"Invalid authority";h-=p(f).length+1,f="",l=St}else f+=a;break;case St:case Et:if(e&&"file"==c.scheme){l=Rt;continue}if(":"!=a||y){if(a==i||"/"==a||"?"==a||"#"==a||"\\"==a&&c.isSpecial()){if(c.isSpecial()&&""==f)return G;if(e&&""==f&&(c.includesCredentials()||null!==c.port))return;if(s=c.parseHost(f))return s;if(f="",l=Ct,e)return;continue}"["==a?y=!0:"]"==a&&(y=!1),f+=a}else{if(""==f)return G;if(s=c.parseHost(f))return s;if(f="",l=kt,e==Et)return}break;case kt:if(!P(Z,a)){if(a==i||"/"==a||"?"==a||"#"==a||"\\"==a&&c.isSpecial()||e){if(""!=f){var T=R(f,10);if(T>65535)return H;c.port=c.isSpecial()&&T===ht[c.scheme]?null:T,f=""}if(e)return;l=Ct;continue}return H}f+=a;break;case Mt:if(c.scheme="file","/"==a||"\\"==a)l=Ot;else{if(!n||"file"!=n.scheme){l=It;continue}if(a==i)c.host=n.host,c.path=v(n.path),c.query=n.query;else if("?"==a)c.host=n.host,c.path=v(n.path),c.query="",l=Pt;else{if("#"!=a){dt(D(v(r,h),""))||(c.host=n.host,c.path=v(n.path),c.shortenPath()),l=It;continue}c.host=n.host,c.path=v(n.path),c.query=n.query,c.fragment="",l=Dt}}break;case Ot:if("/"==a||"\\"==a){l=Rt;break}n&&"file"==n.scheme&&!dt(D(v(r,h),""))&&(ft(n.path[0],!0)?F(c.path,n.path[0]):c.host=n.host),l=It;continue;case Rt:if(a==i||"/"==a||"\\"==a||"?"==a||"#"==a){if(!e&&ft(f))l=It;else if(""==f){if(c.host="",e)return;l=Ct}else{if(s=c.parseHost(f))return s;if("localhost"==c.host&&(c.host=""),e)return;f="",l=Ct}continue}f+=a;break;case Ct:if(c.isSpecial()){if(l=It,"/"!=a&&"\\"!=a)continue}else if(e||"?"!=a)if(e||"#"!=a){if(a!=i&&(l=It,"/"!=a))continue}else c.fragment="",l=Dt;else c.query="",l=Pt;break;case It:if(a==i||"/"==a||"\\"==a&&c.isSpecial()||!e&&("?"==a||"#"==a)){if(".."===(u=U(u=f))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(c.shortenPath(),"/"==a||"\\"==a&&c.isSpecial()||F(c.path,"")):gt(f)?"/"==a||"\\"==a&&c.isSpecial()||F(c.path,""):("file"==c.scheme&&!c.path.length&&ft(f)&&(c.host&&(c.host=""),f=L(f,0)+":"),F(c.path,f)),f="","file"==c.scheme&&(a==i||"?"==a||"#"==a))for(;c.path.length>1&&""===c.path[0];)B(c.path);"?"==a?(c.query="",l=Pt):"#"==a&&(c.fragment="",l=Dt)}else f+=lt(a,ut);break;case Lt:"?"==a?(c.query="",l=Pt):"#"==a?(c.fragment="",l=Dt):a!=i&&(c.path[0]+=lt(a,ot));break;case Pt:e||"#"!=a?a!=i&&("'"==a&&c.isSpecial()?c.query+="%27":c.query+="#"==a?"%23":lt(a,ot)):(c.fragment="",l=Dt);break;case Dt:a!=i&&(c.fragment+=lt(a,st))}h++}},parseHost:function(t){var e,n,i;if("["==L(t,0)){if("]"!=L(t,t.length-1))return G;if(e=function(t){var e,n,i,r,a,o,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,h=0,f=function(){return L(t,h)};if(":"==f()){if(":"!=L(t,1))return;h+=2,l=++c}for(;f();){if(8==c)return;if(":"!=f()){for(e=n=0;n<4&&P(tt,f());)e=16*e+R(f(),16),h++,n++;if("."==f()){if(0==n)return;if(h-=n,c>6)return;for(i=0;f();){if(r=null,i>0){if(!("."==f()&&i<4))return;h++}if(!P(Z,f()))return;for(;P(Z,f());){if(a=R(f(),10),null===r)r=a;else{if(0==r)return;r=10*r+a}if(r>255)return;h++}u[c]=256*u[c]+r,2!=++i&&4!=i||c++}if(4!=i)return;break}if(":"==f()){if(h++,!f())return}else if(f())return;u[c++]=e}else{if(null!==l)return;h++,l=++c}}if(null!==l)for(o=c-l,c=7;0!=c&&o>0;)s=u[c],u[c--]=u[l+o-1],u[l+--o]=s;else if(8!=c)return;return u}($(t,1,-1)),!e)return G;this.host=e}else if(this.isSpecial()){if(t=x(t),P(et,t))return G;if(e=function(t){var e,n,i,r,a,o,s,u=X(t,".");if(u.length&&""==u[u.length-1]&&u.length--,(e=u.length)>4)return t;for(n=[],i=0;i<e;i++){if(""==(r=u[i]))return t;if(a=10,r.length>1&&"0"==L(r,0)&&(a=P(K,r)?16:8,r=$(r,8==a?1:2)),""===r)o=0;else{if(!P(10==a?Q:8==a?J:tt,r))return t;o=R(r,a)}F(n,o)}for(i=0;i<e;i++)if(o=n[i],i==e-1){if(o>=I(256,5-e))return null}else if(o>255)return null;for(s=z(n),i=0;i<n.length;i++)s+=n[i]*I(256,3-i);return s}(t),null===e)return G;this.host=e}else{if(P(nt,t))return G;for(e="",n=p(t),i=0;i<n.length;i++)e+=lt(n[i],ot);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return d(ht,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"==this.scheme&&1==e&&ft(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,n=t.username,i=t.password,r=t.host,a=t.port,o=t.path,s=t.query,u=t.fragment,c=e+":";return null!==r?(c+="//",t.includesCredentials()&&(c+=n+(i?":"+i:"")+"@"),c+=at(r),null!==a&&(c+=":"+a)):"file"==e&&(c+="//"),c+=t.cannotBeABaseURL?o[0]:o.length?"/"+D(o,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},setHref:function(t){var e=this.parse(t);if(e)throw O(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"==t)try{return new zt(t.path[0]).origin}catch(t){return"null"}return"file"!=t&&this.isSpecial()?t+"://"+at(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(b(t)+":",pt)},getUsername:function(){return this.username},setUsername:function(t){var e=p(b(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<e.length;n++)this.username+=lt(e[n],ct)}},getPassword:function(){return this.password},setPassword:function(t){var e=p(b(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<e.length;n++)this.password+=lt(e[n],ct)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?at(t):at(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,St)},getHostname:function(){var t=this.host;return null===t?"":at(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,Et)},getPort:function(){var t=this.port;return null===t?"":b(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""==(t=b(t))?this.port=null:this.parse(t,kt))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+D(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,Ct))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""==(t=b(t))?this.query=null:("?"==L(t,0)&&(t=$(t,1)),this.query="",this.parse(t,Pt)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!=(t=b(t))?("#"==L(t,0)&&(t=$(t,1)),this.fragment="",this.parse(t,Dt)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var zt=function(t){var e=f(this,Ft),n=m(arguments.length,1)>1?arguments[1]:void 0,i=A(e,new Nt(t,!1,n));a||(e.href=i.serialize(),e.origin=i.getOrigin(),e.protocol=i.getProtocol(),e.username=i.getUsername(),e.password=i.getPassword(),e.host=i.getHost(),e.hostname=i.getHostname(),e.port=i.getPort(),e.pathname=i.getPathname(),e.search=i.getSearch(),e.searchParams=i.getSearchParams(),e.hash=i.getHash())},Ft=zt.prototype,jt=function(t,e){return{get:function(){return S(this)[t]()},set:e&&function(t){return S(this)[e](t)},configurable:!0,enumerable:!0}};if(a&&(h(Ft,"href",jt("serialize","setHref")),h(Ft,"origin",jt("getOrigin")),h(Ft,"protocol",jt("getProtocol","setProtocol")),h(Ft,"username",jt("getUsername","setUsername")),h(Ft,"password",jt("getPassword","setPassword")),h(Ft,"host",jt("getHost","setHost")),h(Ft,"hostname",jt("getHostname","setHostname")),h(Ft,"port",jt("getPort","setPort")),h(Ft,"pathname",jt("getPathname","setPathname")),h(Ft,"search",jt("getSearch","setSearch")),h(Ft,"searchParams",jt("getSearchParams")),h(Ft,"hash",jt("getHash","setHash"))),l(Ft,"toJSON",(function(){return S(this).serialize()}),{enumerable:!0}),l(Ft,"toString",(function(){return S(this).serialize()}),{enumerable:!0}),M){var Bt=M.createObjectURL,Xt=M.revokeObjectURL;Bt&&l(zt,"createObjectURL",u(Bt,M)),Xt&&l(zt,"revokeObjectURL",u(Xt,M))}_(zt,"URL"),r({global:!0,constructor:!0,forced:!o,sham:!a},{URL:zt})},function(t,e,n){var i=n(7),r=n(35),a=n(37),o=r("iterator");t.exports=!i((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach((function(t,i){e.delete("b"),n+=i+t})),a&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},function(t,e,n){"use strict";var i=n(14),r=2147483647,a=/[^\0-\u007E]/,o=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",u=RangeError,c=i(o.exec),l=Math.floor,h=String.fromCharCode,f=i("".charCodeAt),d=i([].join),g=i([].push),p=i("".replace),v=i("".split),y=i("".toLowerCase),x=function(t){return t+22+75*(t<26)},b=function(t,e,n){var i=0;for(t=n?l(t/700):t>>1,t+=l(t/e);t>455;)t=l(t/35),i+=36;return l(i+36*t/(t+38))},_=function(t){var e=[];t=function(t){for(var e=[],n=0,i=t.length;n<i;){var r=f(t,n++);if(r>=55296&&r<=56319&&n<i){var a=f(t,n++);56320==(64512&a)?g(e,((1023&r)<<10)+(1023&a)+65536):(g(e,r),n--)}else g(e,r)}return e}(t);var n,i,a=t.length,o=128,c=0,p=72;for(n=0;n<t.length;n++)(i=t[n])<128&&g(e,h(i));var v=e.length,y=v;for(v&&g(e,"-");y<a;){var _=r;for(n=0;n<t.length;n++)(i=t[n])>=o&&i<_&&(_=i);var m=y+1;if(_-o>l((r-c)/m))throw u(s);for(c+=(_-o)*m,o=_,n=0;n<t.length;n++){if((i=t[n])<o&&++c>r)throw u(s);if(i==o){for(var w=c,T=36;;){var A=T<=p?1:T>=p+26?26:T-p;if(w<A)break;var S=w-A,E=36-A;g(e,h(x(A+S%E))),w=l(S/E),T+=36}g(e,h(x(w))),p=b(c,m,y==v),c=0,y++}}c++,o++}return d(e,"")};t.exports=function(t){var e,n,i=[],r=v(p(y(t),o,"."),".");for(e=0;e<r.length;e++)n=r[e],g(i,c(a,n)?"xn--"+_(n):n);return d(i,".")}},function(t,e,n){"use strict";n(165);var i=n(3),r=n(4),a=n(8),o=n(14),s=n(6),u=n(497),c=n(49),l=n(198),h=n(84),f=n(167),d=n(53),g=n(199),p=n(22),v=n(40),y=n(86),x=n(71),b=n(48),_=n(21),m=n(70),w=n(73),T=n(11),A=n(131),S=n(132),E=n(317),k=n(35),M=n(185),O=k("iterator"),R="URLSearchParams",C="URLSearchParamsIterator",I=d.set,L=d.getterFor(R),P=d.getterFor(C),D=Object.getOwnPropertyDescriptor,N=function(t){if(!s)return r[t];var e=D(r,t);return e&&e.value},z=N("fetch"),F=N("Request"),j=N("Headers"),B=F&&F.prototype,X=j&&j.prototype,$=r.RegExp,U=r.TypeError,Y=r.decodeURIComponent,V=r.encodeURIComponent,G=o("".charAt),H=o([].join),W=o([].push),q=o("".replace),Z=o([].shift),K=o([].splice),J=o("".split),Q=o("".slice),tt=/\+/g,et=Array(4),nt=function(t){return et[t-1]||(et[t-1]=$("((?:%[\\da-f]{2}){"+t+"})","gi"))},it=function(t){try{return Y(t)}catch(e){return t}},rt=function(t){var e=q(t,tt," "),n=4;try{return Y(e)}catch(t){for(;n;)e=q(e,nt(n--),it);return e}},at=/[!'()~]|%20/g,ot={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},st=function(t){return ot[t]},ut=function(t){return q(V(t),at,st)},ct=f((function(t,e){I(this,{type:C,iterator:A(L(t).entries),kind:e})}),"Iterator",(function(){var t=P(this),e=t.kind,n=t.iterator.next(),i=n.value;return n.done||(n.value="keys"===e?i.key:"values"===e?i.value:[i.key,i.value]),n}),!0),lt=function(t){this.entries=[],this.url=null,void 0!==t&&(_(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===G(t,0)?Q(t,1):t:m(t)))};lt.prototype={type:R,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,n,i,r,o,s,u,c=S(t);if(c)for(n=(e=A(t,c)).next;!(i=a(n,e)).done;){if(o=(r=A(b(i.value))).next,(s=a(o,r)).done||(u=a(o,r)).done||!a(o,r).done)throw U("Expected sequence with length 2");W(this.entries,{key:m(s.value),value:m(u.value)})}else for(var l in t)v(t,l)&&W(this.entries,{key:l,value:m(t[l])})},parseQuery:function(t){if(t)for(var e,n,i=J(t,"&"),r=0;r<i.length;)(e=i[r++]).length&&(n=J(e,"="),W(this.entries,{key:rt(Z(n)),value:rt(H(n,"="))}))},serialize:function(){for(var t,e=this.entries,n=[],i=0;i<e.length;)t=e[i++],W(n,ut(t.key)+"="+ut(t.value));return H(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ht=function(){g(this,ft);var t=arguments.length>0?arguments[0]:void 0;I(this,new lt(t))},ft=ht.prototype;if(l(ft,{append:function(t,e){E(arguments.length,2);var n=L(this);W(n.entries,{key:m(t),value:m(e)}),n.updateURL()},delete:function(t){E(arguments.length,1);for(var e=L(this),n=e.entries,i=m(t),r=0;r<n.length;)n[r].key===i?K(n,r,1):r++;e.updateURL()},get:function(t){E(arguments.length,1);for(var e=L(this).entries,n=m(t),i=0;i<e.length;i++)if(e[i].key===n)return e[i].value;return null},getAll:function(t){E(arguments.length,1);for(var e=L(this).entries,n=m(t),i=[],r=0;r<e.length;r++)e[r].key===n&&W(i,e[r].value);return i},has:function(t){E(arguments.length,1);for(var e=L(this).entries,n=m(t),i=0;i<e.length;)if(e[i++].key===n)return!0;return!1},set:function(t,e){E(arguments.length,1);for(var n,i=L(this),r=i.entries,a=!1,o=m(t),s=m(e),u=0;u<r.length;u++)(n=r[u]).key===o&&(a?K(r,u--,1):(a=!0,n.value=s));a||W(r,{key:o,value:s}),i.updateURL()},sort:function(){var t=L(this);M(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,n=L(this).entries,i=y(t,arguments.length>1?arguments[1]:void 0),r=0;r<n.length;)i((e=n[r++]).value,e.key,this)},keys:function(){return new ct(this,"keys")},values:function(){return new ct(this,"values")},entries:function(){return new ct(this,"entries")}},{enumerable:!0}),c(ft,O,ft.entries,{name:"entries"}),c(ft,"toString",(function(){return L(this).serialize()}),{enumerable:!0}),h(ht,R),i({global:!0,constructor:!0,forced:!u},{URLSearchParams:ht}),!u&&p(j)){var dt=o(X.has),gt=o(X.set),pt=function(t){if(_(t)){var e,n=t.body;if(x(n)===R)return e=t.headers?new j(t.headers):new j,dt(e,"content-type")||gt(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),w(t,{body:T(0,m(n)),headers:T(0,e)})}return t};if(p(z)&&i({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return z(t,arguments.length>1?pt(arguments[1]):{})}}),p(F)){var vt=function(t){return g(this,B),new F(t,arguments.length>1?pt(arguments[1]):{})};B.constructor=vt,vt.prototype=B,i({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:vt})}}t.exports={URLSearchParams:ht,getState:L}},function(t,e,n){"use strict";var i=n(3),r=n(8);i({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return r(URL.prototype.toString,this)}})},function(t,e,n){n(499)},function(t,e,n){"use strict";n.r(e),n.d(e,{bb:function(){return Bg},default:function(){return Bg}});var i={};n.r(i),n.d(i,{area:function(){return Ud},areaLineRange:function(){return Yd},areaSpline:function(){return Vd},areaSplineRange:function(){return Gd},areaStep:function(){return Hd},bar:function(){return ng},bubble:function(){return ig},candlestick:function(){return rg},donut:function(){return Kd},gauge:function(){return Jd},line:function(){return Wd},pie:function(){return Qd},polar:function(){return tg},radar:function(){return eg},scatter:function(){return ag},spline:function(){return qd},step:function(){return Zd}});var r={};function a(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}n.r(r),n.d(r,{selection:function(){return Ng},subchart:function(){return zg},zoom:function(){return Fg}});var o=new Date,s=new Date;function u(t,e,n,i){function r(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return r.floor=function(e){return t(e=new Date(+e)),e},r.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},r.round=function(t){var e=r(t),n=r.ceil(t);return t-e<n-t?e:n},r.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},r.range=function(n,i,a){var o,s=[];if(n=r.ceil(n),a=null==a?1:Math.floor(a),!(n<i&&a>0))return s;do{s.push(o=new Date(+n)),e(n,a),t(n)}while(o<n&&n<i);return s},r.filter=function(n){return u((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,i){if(t>=t)if(i<0)for(;++i<=0;)for(;e(t,-1),!n(t););else for(;--i>=0;)for(;e(t,1),!n(t););}))},n&&(r.count=function(e,i){return o.setTime(+e),s.setTime(+i),t(o),t(s),Math.floor(n(o,s))},r.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(i?function(e){return i(e)%t==0}:function(e){return r.count(0,e)%t==0}):r:null}),r}var c=1e3,l=6e4,h=36e5,f=864e5,d=6048e5,g=2592e6,p=31536e6;function v(t){return u((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/d}))}var y=v(0),x=v(1),b=v(2),_=v(3),m=v(4),w=v(5),T=v(6),A=(y.range,x.range,b.range,_.range,m.range,w.range,T.range,u((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/f}),(function(t){return t.getUTCDate()-1}))),S=A;A.range;function E(t){return u((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*l)/d}))}var k=E(0),M=E(1),O=E(2),R=E(3),C=E(4),I=E(5),L=E(6),P=(k.range,M.range,O.range,R.range,C.range,I.range,L.range,void 0),D=u(function(t){return a(this,P),t.setHours(0,0,0,0)}.bind(void 0),function(t,e){return a(this,P),t.setDate(t.getDate()+e)}.bind(void 0),function(t,e){return a(this,P),(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*l)/f}.bind(void 0),function(t){return a(this,P),t.getDate()-1}.bind(void 0)),N=D,z=(D.range,u((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()})));z.every=function(t){return isFinite(t=Math.floor(t))&&t>0?u((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var F=z,j=(z.range,u((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));j.every=function(t){return isFinite(t=Math.floor(t))&&t>0?u((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var B=j;j.range;function X(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function $(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function U(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var Y,V,G,H,W,q={"-":"",_:" ",0:"0"},Z=/^\s*\d+/,K=/^%/,J=/[\\^$*+?|[\]().{}]/g;function Q(t,e,n){var i=t<0?"-":"",r=(i?-t:t)+"",a=r.length;return i+(a<n?Array(n-a+1).join(e)+r:r)}function tt(t){return t.replace(J,"\\$&")}function et(t){return new RegExp("^(?:"+t.map(tt).join("|")+")","i")}function nt(t){var e=this;return new Map(t.map(function(t,n){return a(this,e),[t.toLowerCase(),n]}.bind(this)))}function it(t,e,n){var i=Z.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function rt(t,e,n){var i=Z.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function at(t,e,n){var i=Z.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function ot(t,e,n){var i=Z.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function st(t,e,n){var i=Z.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function ut(t,e,n){var i=Z.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function ct(t,e,n){var i=Z.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function lt(t,e,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function ht(t,e,n){var i=Z.exec(e.slice(n,n+1));return i?(t.q=3*i[0]-3,n+i[0].length):-1}function ft(t,e,n){var i=Z.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function dt(t,e,n){var i=Z.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function gt(t,e,n){var i=Z.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function pt(t,e,n){var i=Z.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function vt(t,e,n){var i=Z.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function yt(t,e,n){var i=Z.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function xt(t,e,n){var i=Z.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function bt(t,e,n){var i=Z.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function _t(t,e,n){var i=K.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function mt(t,e,n){var i=Z.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function wt(t,e,n){var i=Z.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function Tt(t,e){return Q(t.getDate(),e,2)}function At(t,e){return Q(t.getHours(),e,2)}function St(t,e){return Q(t.getHours()%12||12,e,2)}function Et(t,e){return Q(1+N.count(F(t),t),e,3)}function kt(t,e){return Q(t.getMilliseconds(),e,3)}function Mt(t,e){return kt(t,e)+"000"}function Ot(t,e){return Q(t.getMonth()+1,e,2)}function Rt(t,e){return Q(t.getMinutes(),e,2)}function Ct(t,e){return Q(t.getSeconds(),e,2)}function It(t){var e=t.getDay();return 0===e?7:e}function Lt(t,e){return Q(k.count(F(t)-1,t),e,2)}function Pt(t){var e=t.getDay();return e>=4||0===e?C(t):C.ceil(t)}function Dt(t,e){return t=Pt(t),Q(C.count(F(t),t)+(4===F(t).getDay()),e,2)}function Nt(t){return t.getDay()}function zt(t,e){return Q(M.count(F(t)-1,t),e,2)}function Ft(t,e){return Q(t.getFullYear()%100,e,2)}function jt(t,e){return Q((t=Pt(t)).getFullYear()%100,e,2)}function Bt(t,e){return Q(t.getFullYear()%1e4,e,4)}function Xt(t,e){var n=t.getDay();return Q((t=n>=4||0===n?C(t):C.ceil(t)).getFullYear()%1e4,e,4)}function $t(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Q(e/60|0,"0",2)+Q(e%60,"0",2)}function Ut(t,e){return Q(t.getUTCDate(),e,2)}function Yt(t,e){return Q(t.getUTCHours(),e,2)}function Vt(t,e){return Q(t.getUTCHours()%12||12,e,2)}function Gt(t,e){return Q(1+S.count(B(t),t),e,3)}function Ht(t,e){return Q(t.getUTCMilliseconds(),e,3)}function Wt(t,e){return Ht(t,e)+"000"}function qt(t,e){return Q(t.getUTCMonth()+1,e,2)}function Zt(t,e){return Q(t.getUTCMinutes(),e,2)}function Kt(t,e){return Q(t.getUTCSeconds(),e,2)}function Jt(t){var e=t.getUTCDay();return 0===e?7:e}function Qt(t,e){return Q(y.count(B(t)-1,t),e,2)}function te(t){var e=t.getUTCDay();return e>=4||0===e?m(t):m.ceil(t)}function ee(t,e){return t=te(t),Q(m.count(B(t),t)+(4===B(t).getUTCDay()),e,2)}function ne(t){return t.getUTCDay()}function ie(t,e){return Q(x.count(B(t)-1,t),e,2)}function re(t,e){return Q(t.getUTCFullYear()%100,e,2)}function ae(t,e){return Q((t=te(t)).getUTCFullYear()%100,e,2)}function oe(t,e){return Q(t.getUTCFullYear()%1e4,e,4)}function se(t,e){var n=t.getUTCDay();return Q((t=n>=4||0===n?m(t):m.ceil(t)).getUTCFullYear()%1e4,e,4)}function ue(){return"+0000"}function ce(){return"%"}function le(t){return+t}function he(t){return Math.floor(+t/1e3)}function fe(){}function de(t){return null==t?fe:function(){return this.querySelector(t)}}function ge(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function pe(){return[]}function ve(t){return null==t?pe:function(){return this.querySelectorAll(t)}}function ye(t){return function(){return this.matches(t)}}function xe(t){return function(e){return e.matches(t)}}Y=function(t){var e=t.dateTime,n=t.date,i=t.time,r=t.periods,a=t.days,o=t.shortDays,s=t.months,u=t.shortMonths,c=et(r),l=nt(r),h=et(a),f=nt(a),d=et(o),g=nt(o),p=et(s),v=nt(s),y=et(u),b=nt(u),_={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:Tt,e:Tt,f:Mt,g:jt,G:Xt,H:At,I:St,j:Et,L:kt,m:Ot,M:Rt,p:function(t){return r[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:le,s:he,S:Ct,u:It,U:Lt,V:Dt,w:Nt,W:zt,x:null,X:null,y:Ft,Y:Bt,Z:$t,"%":ce},m={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:Ut,e:Ut,f:Wt,g:ae,G:se,H:Yt,I:Vt,j:Gt,L:Ht,m:qt,M:Zt,p:function(t){return r[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:le,s:he,S:Kt,u:Jt,U:Qt,V:ee,w:ne,W:ie,x:null,X:null,y:re,Y:oe,Z:ue,"%":ce},w={a:function(t,e,n){var i=d.exec(e.slice(n));return i?(t.w=g.get(i[0].toLowerCase()),n+i[0].length):-1},A:function(t,e,n){var i=h.exec(e.slice(n));return i?(t.w=f.get(i[0].toLowerCase()),n+i[0].length):-1},b:function(t,e,n){var i=y.exec(e.slice(n));return i?(t.m=b.get(i[0].toLowerCase()),n+i[0].length):-1},B:function(t,e,n){var i=p.exec(e.slice(n));return i?(t.m=v.get(i[0].toLowerCase()),n+i[0].length):-1},c:function(t,n,i){return E(t,e,n,i)},d:dt,e:dt,f:bt,g:ct,G:ut,H:pt,I:pt,j:gt,L:xt,m:ft,M:vt,p:function(t,e,n){var i=c.exec(e.slice(n));return i?(t.p=l.get(i[0].toLowerCase()),n+i[0].length):-1},q:ht,Q:mt,s:wt,S:yt,u:rt,U:at,V:ot,w:it,W:st,x:function(t,e,i){return E(t,n,e,i)},X:function(t,e,n){return E(t,i,e,n)},y:ct,Y:ut,Z:lt,"%":_t};function T(t,e){return function(n){var i,r,a,o=[],s=-1,u=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===t.charCodeAt(s)&&(o.push(t.slice(u,s)),null!=(r=q[i=t.charAt(++s)])?i=t.charAt(++s):r="e"===i?" ":"0",(a=e[i])&&(i=a(n,r)),o.push(i),u=s+1);return o.push(t.slice(u,s)),o.join("")}}function A(t,e){return function(n){var i,r,a=U(1900,void 0,1);if(E(a,t,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(e&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(r=(i=$(U(a.y,0,1))).getUTCDay(),i=r>4||0===r?x.ceil(i):x(i),i=S.offset(i,7*(a.V-1)),a.y=i.getUTCFullYear(),a.m=i.getUTCMonth(),a.d=i.getUTCDate()+(a.w+6)%7):(r=(i=X(U(a.y,0,1))).getDay(),i=r>4||0===r?M.ceil(i):M(i),i=N.offset(i,7*(a.V-1)),a.y=i.getFullYear(),a.m=i.getMonth(),a.d=i.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),r="Z"in a?$(U(a.y,0,1)).getUTCDay():X(U(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(r+5)%7:a.w+7*a.U-(r+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,$(a)):X(a)}}function E(t,e,n,i){for(var r,a,o=0,s=e.length,u=n.length;o<s;){if(i>=u)return-1;if(37===(r=e.charCodeAt(o++))){if(r=e.charAt(o++),!(a=w[r in q?e.charAt(o++):r])||(i=a(t,n,i))<0)return-1}else if(r!=n.charCodeAt(i++))return-1}return i}return _.x=T(n,_),_.X=T(i,_),_.c=T(e,_),m.x=T(n,m),m.X=T(i,m),m.c=T(e,m),{format:function(t){var e=T(t+="",_);return e.toString=function(){return t},e},parse:function(t){var e=A(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=T(t+="",m);return e.toString=function(){return t},e},utcParse:function(t){var e=A(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),V=Y.format,G=Y.parse,H=Y.utcFormat,W=Y.utcParse;var be=Array.prototype.find;function _e(){return this.firstElementChild}var me=Array.prototype.filter;function we(){return Array.from(this.children)}function Te(t){return Array(t.length)}function Ae(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Se(t){return function(){return t}}function Ee(t,e,n,i,r,a){for(var o,s=0,u=e.length,c=a.length;s<c;++s)(o=e[s])?(o.__data__=a[s],i[s]=o):n[s]=new Ae(t,a[s]);for(;s<u;++s)(o=e[s])&&(r[s]=o)}function ke(t,e,n,i,r,a,o){var s,u,c,l=new Map,h=e.length,f=a.length,d=Array(h);for(s=0;s<h;++s)(u=e[s])&&(d[s]=c=o.call(u,u.__data__,s,e)+"",l.has(c)?r[s]=u:l.set(c,u));for(s=0;s<f;++s)c=o.call(t,a[s],s,a)+"",(u=l.get(c))?(i[s]=u,u.__data__=a[s],l.delete(c)):n[s]=new Ae(t,a[s]);for(s=0;s<h;++s)(u=e[s])&&l.get(d[s])===u&&(r[s]=u)}function Me(t){return t.__data__}function Oe(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Re(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Ce(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Ie(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ie(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ie(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}Ae.prototype={constructor:Ae,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Le="http://www.w3.org/1999/xhtml",Pe={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function De(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Pe.hasOwnProperty(e)?{space:Pe[e],local:t}:t}function Ne(t){return function(){this.removeAttribute(t)}}function ze(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Fe(t,e){return function(){this.setAttribute(t,e)}}function je(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Be(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Xe(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function $e(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Ue(t){return function(){this.style.removeProperty(t)}}function Ye(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ve(t,e,n){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function Ge(t,e){return t.style.getPropertyValue(e)||$e(t).getComputedStyle(t,null).getPropertyValue(e)}function He(t){return function(){delete this[t]}}function We(t,e){return function(){this[t]=e}}function qe(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Ze(t){return t.trim().split(/^|\s+/)}function Ke(t){return t.classList||new Je(t)}function Je(t){this._node=t,this._names=Ze(t.getAttribute("class")||"")}function Qe(t,e){for(var n=Ke(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function tn(t,e){for(var n=Ke(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function en(t){return function(){Qe(this,t)}}function nn(t){return function(){tn(this,t)}}function rn(t,e){return function(){(e.apply(this,arguments)?Qe:tn)(this,t)}}function an(){this.textContent=""}function on(t){return function(){this.textContent=t}}function sn(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function un(){this.innerHTML=""}function cn(t){return function(){this.innerHTML=t}}function ln(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function hn(){this.nextSibling&&this.parentNode.appendChild(this)}function fn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function dn(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Le&&e.documentElement.namespaceURI===Le?e.createElement(t):e.createElementNS(n,t)}}function gn(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function pn(t){var e=De(t);return(e.local?gn:dn)(e)}function vn(){return null}function yn(){var t=this.parentNode;t&&t.removeChild(this)}function xn(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function bn(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function _n(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function mn(t){return function(){var e=this.__on;if(e){for(var n,i=0,r=-1,a=e.length;i<a;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++r]=n:this.removeEventListener(n.type,n.listener,n.options);++r?e.length=r:delete this.__on}}}function wn(t,e,n){return function(){var i,r=this.__on,a=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(r)for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===t.type&&i.name===t.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),void(i.value=e);this.addEventListener(t.type,a,n),i={type:t.type,name:t.name,value:e,listener:a,options:n},r?r.push(i):this.__on=[i]}}function Tn(t,e,n){var i=$e(t),r=i.CustomEvent;"function"==typeof r?r=new r(e,n):(r=i.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function An(t,e){return function(){return Tn(this,t,e)}}function Sn(t,e){return function(){return Tn(this,t,e.apply(this,arguments))}}Je.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var En,kn=n(503),Mn=kn.mark(On);function On(){var t,e,n,i,r,a,o;return kn.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:t=this._groups,e=0,n=t.length;case 1:if(!(e<n)){s.next=13;break}i=t[e],r=0,a=i.length;case 3:if(!(r<a)){s.next=10;break}if(!(o=i[r])){s.next=7;break}return s.next=7,o;case 7:++r,s.next=3;break;case 10:++e,s.next=1;break;case 13:case"end":return s.stop()}}),Mn,this)}var Rn=[null];function Cn(t,e){this._groups=t,this._parents=e}function In(){return new Cn([[document.documentElement]],Rn)}Cn.prototype=In.prototype=(En={constructor:Cn,select:function(t){"function"!=typeof t&&(t=de(t));for(var e=this._groups,n=e.length,i=Array(n),r=0;r<n;++r)for(var a,o,s=e[r],u=s.length,c=i[r]=Array(u),l=0;l<u;++l)(a=s[l])&&(o=t.call(a,a.__data__,l,s))&&("__data__"in a&&(o.__data__=a.__data__),c[l]=o);return new Cn(i,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return ge(t.apply(this,arguments))}}(t):ve(t);for(var e=this._groups,n=e.length,i=[],r=[],a=0;a<n;++a)for(var o,s=e[a],u=s.length,c=0;c<u;++c)(o=s[c])&&(i.push(t.call(o,o.__data__,c,s)),r.push(o));return new Cn(i,r)},selectChild:function(t){return this.select(null==t?_e:function(t){return function(){return be.call(this.children,t)}}("function"==typeof t?t:xe(t)))},selectChildren:function(t){return this.selectAll(null==t?we:function(t){return function(){return me.call(this.children,t)}}("function"==typeof t?t:xe(t)))},filter:function(t){"function"!=typeof t&&(t=ye(t));for(var e=this._groups,n=e.length,i=Array(n),r=0;r<n;++r)for(var a,o=e[r],s=o.length,u=i[r]=[],c=0;c<s;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&u.push(a);return new Cn(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,Me);var n=e?ke:Ee,i=this._parents,r=this._groups;"function"!=typeof t&&(t=Se(t));for(var a=r.length,o=Array(a),s=Array(a),u=Array(a),c=0;c<a;++c){var l=i[c],h=r[c],f=h.length,d=Oe(t.call(l,l&&l.__data__,c,i)),g=d.length,p=s[c]=Array(g),v=o[c]=Array(g),y=u[c]=Array(f);n(l,h,p,v,y,d,e);for(var x,b,_=0,m=0;_<g;++_)if(x=p[_]){for(_>=m&&(m=_+1);!(b=v[m])&&++m<g;);x._next=b||null}}return(o=new Cn(o,i))._enter=s,o._exit=u,o},enter:function(){return new Cn(this._enter||this._groups.map(Te),this._parents)},exit:function(){return new Cn(this._exit||this._groups.map(Te),this._parents)},join:function(t,e,n){var i=this.enter(),r=this,a=this.exit();return"function"==typeof t?(i=t(i))&&(i=i.selection()):i=i.append(t+""),null!=e&&(r=e(r))&&(r=r.selection()),null==n?a.remove():n(a),i&&r?i.merge(r).order():r},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,r=n.length,a=i.length,o=Math.min(r,a),s=Array(r),u=0;u<o;++u)for(var c,l=n[u],h=i[u],f=l.length,d=s[u]=Array(f),g=0;g<f;++g)(c=l[g]||h[g])&&(d[g]=c);for(;u<r;++u)s[u]=n[u];return new Cn(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,r=t[e],a=r.length-1,o=r[a];--a>=0;)(i=r[a])&&(o&&4^i.compareDocumentPosition(o)&&o.parentNode.insertBefore(i,o),o=i);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Re);for(var n=this._groups,i=n.length,r=Array(i),a=0;a<i;++a){for(var o,s=n[a],u=s.length,c=r[a]=Array(u),l=0;l<u;++l)(o=s[l])&&(c[l]=o);c.sort(e)}return new Cn(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i,r=t[e],a=0,o=r.length;a<o;++a)if(i=r[a])return i;return null},size:function(){for(var t,e=0,n=Ce(this);!(t=n()).done;)t.value,++e;return e},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var r,a=e[n],o=0,s=a.length;o<s;++o)(r=a[o])&&t.call(r,r.__data__,o,a);return this},attr:function(t,e){var n=De(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?ze:Ne:"function"==typeof e?n.local?Xe:Be:n.local?je:Fe)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?Ue:"function"==typeof e?Ve:Ye)(t,e,null==n?"":n)):Ge(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?He:"function"==typeof e?qe:We)(t,e)):this.node()[t]},classed:function(t,e){var n=Ze(t+"");if(arguments.length<2){for(var i=Ke(this.node()),r=-1,a=n.length;++r<a;)if(!i.contains(n[r]))return!1;return!0}return this.each(("function"==typeof e?rn:e?en:nn)(n,e))},text:function(t){return arguments.length?this.each(null==t?an:("function"==typeof t?sn:on)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?un:("function"==typeof t?ln:cn)(t)):this.node().innerHTML},raise:function(){return this.each(hn)},lower:function(){return this.each(fn)},append:function(t){var e="function"==typeof t?t:pn(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:pn(t),i=null==e?vn:"function"==typeof e?e:de(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(yn)},clone:function(t){return this.select(t?bn:xn)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,r,a=_n(t+""),o=a.length;if(!(arguments.length<2)){for(s=e?wn:mn,i=0;i<o;++i)this.each(s(a[i],e,n));return this}var s=this.node().__on;if(s)for(var u,c=0,l=s.length;c<l;++c)for(i=0,u=s[c];i<o;++i)if((r=a[i]).type===u.type&&r.name===u.name)return u.value},dispatch:function(t,e){return this.each(("function"==typeof e?Sn:An)(t,e))}},En[Symbol.iterator]=On,En);var Ln=In;function Pn(t){return"string"==typeof t?new Cn([[document.querySelector(t)]],[document.documentElement]):new Cn([[t]],Rn)}var Dn=void 0,Nn=function(){return a(this,Dn),"object"==typeof globalThis&&null!==globalThis&&globalThis.Object===Object&&globalThis||"object"==typeof global&&null!==global&&global.Object===Object&&global||"object"==typeof self&&null!==self&&self.Object===Object&&self||Function("return this")()}.bind(void 0)();Nn.requestIdleCallback=Nn.requestIdleCallback||function(t){return a(this,Dn),setTimeout(t,1)}.bind(void 0),Nn.requestAnimationFrame=Nn.requestAnimationFrame||function(t){return a(this,Dn),setTimeout(t,1)}.bind(void 0);var zn=null==Nn?void 0:Nn.document,Fn={AREA:"area",AREA_LINE_RANGE:"area-line-range",AREA_SPLINE:"area-spline",AREA_SPLINE_RANGE:"area-spline-range",AREA_STEP:"area-step",BAR:"bar",BUBBLE:"bubble",CANDLESTICK:"candlestick",DONUT:"donut",GAUGE:"gauge",LINE:"line",PIE:"pie",POLAR:"polar",RADAR:"radar",SCATTER:"scatter",SPLINE:"spline",STEP:"step"},jn={AREA:"initArea",AREA_LINE_RANGE:"initArea",AREA_SPLINE:"initArea",AREA_SPLINE_RANGE:"initArea",AREA_STEP:"initArea",BAR:"initBar",BUBBLE:"initCircle",CANDLESTICK:"initCandlestick",DONUT:"initArc",GAUGE:"initArc",LINE:"initLine",PIE:"initArc",POLAR:"initPolar",RADAR:"initCircle",SCATTER:"initCircle",SPLINE:"initLine",STEP:"initLine"},Bn={Area:[Fn.AREA,Fn.AREA_SPLINE,Fn.AREA_SPLINE_RANGE,Fn.AREA_LINE_RANGE,Fn.AREA_STEP],AreaRange:[Fn.AREA_SPLINE_RANGE,Fn.AREA_LINE_RANGE],Arc:[Fn.PIE,Fn.DONUT,Fn.GAUGE,Fn.POLAR,Fn.RADAR],Line:[Fn.LINE,Fn.SPLINE,Fn.AREA,Fn.AREA_SPLINE,Fn.AREA_SPLINE_RANGE,Fn.AREA_LINE_RANGE,Fn.STEP,Fn.AREA_STEP],Step:[Fn.STEP,Fn.AREA_STEP],Spline:[Fn.SPLINE,Fn.AREA_SPLINE,Fn.AREA_SPLINE_RANGE]};function Xn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $n(t,e){if(t=function(t){for(var e;e=t.sourceEvent;)t=e;return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=t.clientX,i.y=t.clientY,[(i=i.matrixTransform(e.getScreenCTM().inverse())).x,i.y]}if(e.getBoundingClientRect){var r=e.getBoundingClientRect();return[t.clientX-r.left-e.clientLeft,t.clientY-r.top-e.clientTop]}}return[t.pageX,t.pageY]}var Un={value:function(){a(this,undefined)}.bind(void 0)};function Yn(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t);i[t]=[]}return new Vn(i)}function Vn(t){this._=t}function Gn(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",i=t.indexOf(".");if(i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function Hn(t,e){for(var n,i=0,r=t.length;i<r;++i)if((n=t[i]).name===e)return n.value}function Wn(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=Un,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}Vn.prototype=Yn.prototype={constructor:Vn,on:function(t,e){var n,i=this._,r=Gn(t+"",i),a=-1,o=r.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<o;)if(n=(t=r[a]).type)i[n]=Wn(i[n],t.name,e);else if(null==e)for(n in i)i[n]=Wn(i[n],t.name,null);return this}for(;++a<o;)if((n=(t=r[a]).type)&&(n=Hn(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Vn(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,r=Array(n),a=0;a<n;++a)r[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=0,n=(i=this._[t]).length;a<n;++a)i[a].value.apply(e,r)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],r=0,a=i.length;r<a;++r)i[r].value.apply(e,n)}};var qn=Yn,Zn={passive:!1},Kn={capture:!0,passive:!1};function Jn(t){t.stopImmediatePropagation()}function Qn(t){t.preventDefault(),t.stopImmediatePropagation()}function ti(t){var e=t.document.documentElement,n=Pn(t).on("dragstart.drag",Qn,Kn);"onselectstart"in e?n.on("selectstart.drag",Qn,Kn):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function ei(t,e){var n=t.document.documentElement,i=Pn(t).on("dragstart.drag",null);e&&(i.on("click.drag",Qn,Kn),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function ni(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function ii(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function ri(){}var ai=.7,oi=1/ai,si=/^#([0-9a-f]{3,8})$/,ui=new RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),ci=new RegExp("^rgb\\(\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),li=new RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),hi=new RegExp("^rgba\\(\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),fi=new RegExp("^hsl\\(\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),di=new RegExp("^hsla\\(\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),gi={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function pi(){return this.rgb().formatHex()}function vi(){return this.rgb().formatRgb()}function yi(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=si.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?xi(e):3===n?new wi(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?bi(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?bi(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=ui.exec(t))?new wi(e[1],e[2],e[3],1):(e=ci.exec(t))?new wi(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=li.exec(t))?bi(e[1],e[2],e[3],e[4]):(e=hi.exec(t))?bi(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=fi.exec(t))?Mi(e[1],e[2]/100,e[3]/100,1):(e=di.exec(t))?Mi(e[1],e[2]/100,e[3]/100,e[4]):gi.hasOwnProperty(t)?xi(gi[t]):"transparent"===t?new wi(NaN,NaN,NaN,0):null}function xi(t){return new wi(t>>16&255,t>>8&255,255&t,1)}function bi(t,e,n,i){return i<=0&&(t=e=n=NaN),new wi(t,e,n,i)}function _i(t){return t instanceof ri||(t=yi(t)),t?new wi((t=t.rgb()).r,t.g,t.b,t.opacity):new wi}function mi(t,e,n,i){return 1===arguments.length?_i(t):new wi(t,e,n,null==i?1:i)}function wi(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function Ti(){return"#"+ki(this.r)+ki(this.g)+ki(this.b)}function Ai(){var t=Si(this.opacity);return(1===t?"rgb(":"rgba(")+Ei(this.r)+", "+Ei(this.g)+", "+Ei(this.b)+(1===t?")":", "+t+")")}function Si(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ei(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ki(t){return((t=Ei(t))<16?"0":"")+t.toString(16)}function Mi(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ri(t,e,n,i)}function Oi(t){if(t instanceof Ri)return new Ri(t.h,t.s,t.l,t.opacity);if(t instanceof ri||(t=yi(t)),!t)return new Ri;if(t instanceof Ri)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),a=Math.max(e,n,i),o=NaN,s=a-r,u=(a+r)/2;return s?(o=e===a?(n-i)/s+6*(n<i):n===a?(i-e)/s+2:(e-n)/s+4,s/=u<.5?a+r:2-a-r,o*=60):s=u>0&&u<1?0:o,new Ri(o,s,u,t.opacity)}function Ri(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function Ci(t){return(t=(t||0)%360)<0?t+360:t}function Ii(t){return Math.max(0,Math.min(1,t||0))}function Li(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Pi(t,e,n,i,r){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*i+o*r)/6}ni(ri,yi,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:pi,formatHex:pi,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Oi(this).formatHsl()},formatRgb:vi,toString:vi}),ni(wi,mi,ii(ri,{brighter:function(t){return t=null==t?oi:Math.pow(oi,t),new wi(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?ai:Math.pow(ai,t),new wi(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},clamp:function(){return new wi(Ei(this.r),Ei(this.g),Ei(this.b),Si(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ti,formatHex:Ti,formatHex8:function(){return"#"+ki(this.r)+ki(this.g)+ki(this.b)+ki(255*(isNaN(this.opacity)?1:this.opacity))},formatRgb:Ai,toString:Ai})),ni(Ri,(function(t,e,n,i){return 1===arguments.length?Oi(t):new Ri(t,e,n,null==i?1:i)}),ii(ri,{brighter:function(t){return t=null==t?oi:Math.pow(oi,t),new Ri(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?ai:Math.pow(ai,t),new Ri(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new wi(Li(t>=240?t-240:t+120,r,i),Li(t,r,i),Li(t<120?t+240:t-120,r,i),this.opacity)},clamp:function(){return new Ri(Ci(this.h),Ii(this.s),Ii(this.l),Si(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=Si(this.opacity);return(1===t?"hsl(":"hsla(")+Ci(this.h)+", "+100*Ii(this.s)+"%, "+100*Ii(this.l)+"%"+(1===t?")":", "+t+")")}}));var Di=function(t){var e=this;return a(this,undefined),function(){return a(this,e),t}.bind(this)}.bind(void 0);function Ni(t,e){return function(n){return t+n*e}}function zi(t){return 1==(t=+t)?Fi:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):Di(isNaN(e)?n:e)}}function Fi(t,e){var n=e-t;return n?Ni(t,n):Di(isNaN(t)?e:t)}var ji=function t(e){var n=zi(e);function i(t,e){var i=n((t=mi(t)).r,(e=mi(e)).r),r=n(t.g,e.g),a=n(t.b,e.b),o=Fi(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=a(e),t.opacity=o(e),t+""}}return i.gamma=t,i}(1);function Bi(t){return function(e){var n,i,r=e.length,a=Array(r),o=Array(r),s=Array(r);for(n=0;n<r;++n)i=mi(e[n]),a[n]=i.r||0,o[n]=i.g||0,s[n]=i.b||0;return a=t(a),o=t(o),s=t(s),i.opacity=1,function(t){return i.r=a(t),i.g=o(t),i.b=s(t),i+""}}}Bi((function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),r=t[i],a=t[i+1],o=i>0?t[i-1]:2*r-a,s=i<e-1?t[i+2]:2*a-r;return Pi((n-i/e)*e,o,r,a,s)}})),Bi((function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),r=t[(i+e-1)%e],a=t[i%e],o=t[(i+1)%e],s=t[(i+2)%e];return Pi((n-i/e)*e,r,a,o,s)}}));function Xi(t,e){e||(e=[]);var n,i=t?Math.min(e.length,t.length):0,r=e.slice();return function(a){for(n=0;n<i;++n)r[n]=t[n]*(1-a)+e[n]*a;return r}}function $i(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Ui(t,e){var n,i=e?e.length:0,r=t?Math.min(i,t.length):0,a=Array(r),o=Array(i);for(n=0;n<r;++n)a[n]=Zi(t[n],e[n]);for(;n<i;++n)o[n]=e[n];return function(t){for(n=0;n<r;++n)o[n]=a[n](t);return o}}function Yi(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function Vi(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Gi(t,e){var n,i={},r={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?i[n]=Zi(t[n],e[n]):r[n]=e[n];return function(t){for(n in i)r[n]=i[n](t);return r}}var Hi=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Wi=new RegExp(Hi.source,"g");function qi(t,e){var n,i,r,a=Hi.lastIndex=Wi.lastIndex=0,o=-1,s=[],u=[];for(t+="",e+="";(n=Hi.exec(t))&&(i=Wi.exec(e));)(r=i.index)>a&&(r=e.slice(a,r),s[o]?s[o]+=r:s[++o]=r),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,u.push({i:o,x:Vi(n,i)})),a=Wi.lastIndex;return a<e.length&&(r=e.slice(a),s[o]?s[o]+=r:s[++o]=r),s.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var n,i=0;i<e;++i)s[(n=u[i]).i]=n.x(t);return s.join("")})}function Zi(t,e){var n,i=typeof e;return null==e||"boolean"===i?Di(e):("number"===i?Vi:"string"===i?(n=yi(e))?(e=n,ji):qi:e instanceof yi?ji:e instanceof Date?Yi:$i(e)?Xi:Array.isArray(e)?Ui:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Gi:Vi)(t,e)}var Ki,Ji,Qi=0,tr=0,er=0,nr=0,ir=0,rr=0,ar="object"==typeof performance&&performance.now?performance:Date,or="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function sr(){return ir||(or(ur),ir=ar.now()+rr)}function ur(){ir=0}function cr(){this._call=this._time=this._next=null}function lr(t,e,n){var i=new cr;return i.restart(t,e,n),i}function hr(){ir=(nr=ar.now())+rr,Qi=tr=0;try{!function(){sr(),++Qi;for(var t,e=Ki;e;)(t=ir-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Qi}()}finally{Qi=0,function(){var t,e,n=Ki,i=1/0;for(;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Ki=e);Ji=t,dr(i)}(),ir=0}}function fr(){var t=ar.now(),e=t-nr;e>1e3&&(rr-=e,nr=t)}function dr(t){Qi||(tr&&(tr=clearTimeout(tr)),t-ir>24?(t<1/0&&(tr=setTimeout(hr,t-ar.now()-rr)),er&&(er=clearInterval(er))):(er||(nr=ar.now(),er=setInterval(fr,1e3)),Qi=1,or(hr)))}function gr(t,e,n){var i=this,r=new cr;return e=null==e?0:+e,r.restart(function(n){a(this,i),r.stop(),t(n+e)}.bind(this),e,n),r}cr.prototype=lr.prototype={constructor:cr,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?sr():+n)+(null==e?0:+e),this._next||Ji===this||(Ji?Ji._next=this:Ki=this,Ji=this),this._call=t,this._time=n,dr()},stop:function(){this._call&&(this._call=null,this._time=1/0,dr())}};var pr=qn("start","end","cancel","interrupt"),vr=[];function yr(t,e,n,i,r,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var i,r=t.__transition;function a(u){var c,l,h,f;if(1!==n.state)return s();for(c in r)if((f=r[c]).name===n.name){if(3===f.state)return gr(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete r[c]):+c<e&&(f.state=6,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete r[c])}if(gr((function(){3===n.state&&(n.state=4,n.timer.restart(o,n.delay,n.time),o(u))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,i=Array(h=n.tween.length),c=0,l=-1;c<h;++c)(f=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(i[++l]=f);i.length=l+1}}function o(e){for(var r=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(s),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(t,r);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),s())}function s(){for(var i in n.state=6,n.timer.stop(),delete r[e],r)return;delete t.__transition}r[e]=n,n.timer=lr((function(t){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}),0,n.time)}(t,n,{name:e,index:i,group:r,on:pr,tween:vr,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function xr(t,e){var n=_r(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function br(t,e){var n=_r(t,e);if(n.state>3)throw new Error("too late; already running");return n}function _r(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function mr(t,e){var n,i,r,a=t.__transition,o=!0;if(a){for(r in e=null==e?null:e+"",a)(n=a[r]).name===e?(i=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete a[r]):o=!1;o&&delete t.__transition}}var wr,Tr=180/Math.PI,Ar={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Sr(t,e,n,i,r,a){var o,s,u;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(u=t*n+e*i)&&(n-=t*u,i-=e*u),(s=Math.sqrt(n*n+i*i))&&(n/=s,i/=s,u/=s),t*i<e*n&&(t=-t,e=-e,u=-u,o=-o),{translateX:r,translateY:a,rotate:Math.atan2(e,t)*Tr,skewX:Math.atan(u)*Tr,scaleX:o,scaleY:s}}function Er(t,e,n,i){function r(t){return t.length?t.pop()+" ":""}return function(a,o){var s=[],u=[];return a=t(a),o=t(o),function(t,i,r,a,o,s){if(t!==r||i!==a){var u=o.push("translate(",null,e,null,n);s.push({i:u-4,x:Vi(t,r)},{i:u-2,x:Vi(i,a)})}else(r||a)&&o.push("translate("+r+e+a+n)}(a.translateX,a.translateY,o.translateX,o.translateY,s,u),function(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(r(n)+"rotate(",null,i)-2,x:Vi(t,e)})):e&&n.push(r(n)+"rotate("+e+i)}(a.rotate,o.rotate,s,u),function(t,e,n,a){t!==e?a.push({i:n.push(r(n)+"skewX(",null,i)-2,x:Vi(t,e)}):e&&n.push(r(n)+"skewX("+e+i)}(a.skewX,o.skewX,s,u),function(t,e,n,i,a,o){if(t!==n||e!==i){var s=a.push(r(a)+"scale(",null,",",null,")");o.push({i:s-4,x:Vi(t,n)},{i:s-2,x:Vi(e,i)})}else 1===n&&1===i||a.push(r(a)+"scale("+n+","+i+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,u),a=o=null,function(t){for(var e,n=-1,i=u.length;++n<i;)s[(e=u[n]).i]=e.x(t);return s.join("")}}}var kr=Er((function(t){var e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Ar:Sr(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),Mr=Er((function(t){return null==t?Ar:(wr||(wr=document.createElementNS("http://www.w3.org/2000/svg","g")),wr.setAttribute("transform",t),(t=wr.transform.baseVal.consolidate())?Sr((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Ar)}),", ",")",")");function Or(t,e){var n,i;return function(){var r=br(this,t),a=r.tween;if(a!==n)for(var o=0,s=(i=n=a).length;o<s;++o)if(i[o].name===e){(i=i.slice()).splice(o,1);break}r.tween=i}}function Rr(t,e,n){var i,r;if("function"!=typeof n)throw new Error;return function(){var a=br(this,t),o=a.tween;if(o!==i){r=(i=o).slice();for(var s={name:e,value:n},u=0,c=r.length;u<c;++u)if(r[u].name===e){r[u]=s;break}u===c&&r.push(s)}a.tween=r}}function Cr(t,e,n){var i=t._id;return t.each((function(){var t=br(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return _r(t,i).value[e]}}function Ir(t,e){var n;return("number"==typeof e?Vi:e instanceof yi?ji:(n=yi(e))?(e=n,ji):qi)(t,e)}function Lr(t){return function(){this.removeAttribute(t)}}function Pr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Dr(t,e,n){var i,r;return function(){var a=this.getAttribute(t);return a===n+""?null:a===i?r:r=e(i=a,n)}}function Nr(t,e,n){var i,r;return function(){var a=this.getAttributeNS(t.space,t.local);return a===n+""?null:a===i?r:r=e(i=a,n)}}function zr(t,e,n){var i,r,a;return function(){var o,s,u=n(this);if(null!=u)return(o=this.getAttribute(t))===(s=u+"")?null:o===i&&s===r?a:(r=s,a=e(i=o,u));this.removeAttribute(t)}}function Fr(t,e,n){var i,r,a;return function(){var o,s,u=n(this);if(null!=u)return(o=this.getAttributeNS(t.space,t.local))===(s=u+"")?null:o===i&&s===r?a:(r=s,a=e(i=o,u));this.removeAttributeNS(t.space,t.local)}}function jr(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Br(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Xr(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&Br(t,r)),n}return r._value=e,r}function $r(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&jr(t,r)),n}return r._value=e,r}function Ur(t,e){return function(){xr(this,t).delay=+e.apply(this,arguments)}}function Yr(t,e){return e=+e,function(){xr(this,t).delay=e}}function Vr(t,e){return function(){br(this,t).duration=+e.apply(this,arguments)}}function Gr(t,e){return e=+e,function(){br(this,t).duration=e}}function Hr(t,e){if("function"!=typeof e)throw new Error;return function(){br(this,t).ease=e}}function Wr(t,e,n){var i,r,a=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?xr:br;return function(){var o=a(this,t),s=o.on;s!==i&&(r=(i=s).copy()).on(e,n),o.on=r}}var qr,Zr=Ln.prototype.constructor;function Kr(t){return function(){this.style.removeProperty(t)}}function Jr(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function Qr(t,e,n){var i,r;function a(){var a=e.apply(this,arguments);return a!==r&&(i=(r=a)&&Jr(t,a,n)),i}return a._value=e,a}function ta(t){return function(e){this.textContent=t.call(this,e)}}function ea(t){var e,n;function i(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&ta(i)),e}return i._value=t,i}var na=0;function ia(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function ra(t){return Ln().transition(t)}function aa(){return++na}var oa=Ln.prototype;ia.prototype=ra.prototype=(qr={constructor:ia,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=de(t));for(var i=this._groups,r=i.length,a=Array(r),o=0;o<r;++o)for(var s,u,c=i[o],l=c.length,h=a[o]=Array(l),f=0;f<l;++f)(s=c[f])&&(u=t.call(s,s.__data__,f,c))&&("__data__"in s&&(u.__data__=s.__data__),h[f]=u,yr(h[f],e,n,f,h,_r(s,n)));return new ia(a,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=ve(t));for(var i=this._groups,r=i.length,a=[],o=[],s=0;s<r;++s)for(var u,c=i[s],l=c.length,h=0;h<l;++h)if(u=c[h]){for(var f,d=t.call(u,u.__data__,h,c),g=_r(u,n),p=0,v=d.length;p<v;++p)(f=d[p])&&yr(f,e,n,p,d,g);a.push(d),o.push(u)}return new ia(a,o,e,n)},selectChild:oa.selectChild,selectChildren:oa.selectChildren,filter:function(t){"function"!=typeof t&&(t=ye(t));for(var e=this._groups,n=e.length,i=Array(n),r=0;r<n;++r)for(var a,o=e[r],s=o.length,u=i[r]=[],c=0;c<s;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&u.push(a);return new ia(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,r=n.length,a=Math.min(i,r),o=Array(i),s=0;s<a;++s)for(var u,c=e[s],l=n[s],h=c.length,f=o[s]=Array(h),d=0;d<h;++d)(u=c[d]||l[d])&&(f[d]=u);for(;s<i;++s)o[s]=e[s];return new ia(o,this._parents,this._name,this._id)},selection:function(){return new Zr(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=aa(),i=this._groups,r=i.length,a=0;a<r;++a)for(var o,s=i[a],u=s.length,c=0;c<u;++c)if(o=s[c]){var l=_r(o,e);yr(o,t,n,c,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new ia(i,this._parents,t,n)},call:oa.call,nodes:oa.nodes,node:oa.node,size:oa.size,empty:oa.empty,each:oa.each,on:function(t,e){var n=this._id;return arguments.length<2?_r(this.node(),n).on.on(t):this.each(Wr(n,t,e))},attr:function(t,e){var n=De(t),i="transform"===n?Mr:Ir;return this.attrTween(t,"function"==typeof e?(n.local?Fr:zr)(n,i,Cr(this,"attr."+t,e)):null==e?(n.local?Pr:Lr)(n):(n.local?Nr:Dr)(n,i,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var i=De(t);return this.tween(n,(i.local?Xr:$r)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?kr:Ir;return null==e?this.styleTween(t,function(t,e){var n,i,r;return function(){var a=Ge(this,t),o=(this.style.removeProperty(t),Ge(this,t));return a===o?null:a===n&&o===i?r:r=e(n=a,i=o)}}(t,i)).on("end.style."+t,Kr(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,r,a;return function(){var o=Ge(this,t),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(t),u=s=Ge(this,t)),o===u?null:o===i&&u===r?a:(r=u,a=e(i=o,s))}}(t,i,Cr(this,"style."+t,e))).each(function(t,e){var n,i,r,a,o="style."+e;return function(){var s=br(this,t),u=s.on,c=null==s.value[o]?a||(a=Kr(e)):void 0;u===n&&r===c||(i=(n=u).copy()).on("end."+o,r=c),s.on=i}}(this._id,t)):this.styleTween(t,function(t,e,n){var i,r;return function(){var a=Ge(this,t);return a===n+""?null:a===i?r:r=e(i=a,n)}}(t,i,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;return this.tween(i,Qr(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Cr(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,ea(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i,r=_r(this.node(),n).tween,a=0,o=r.length;a<o;++a)if((i=r[a]).name===t)return i.value;return null}return this.each((null==e?Or:Rr)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Ur:Yr)(e,t)):_r(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Vr:Gr)(e,t)):_r(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(Hr(e,t)):_r(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;br(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,i=n._id,r=n.size();return new Promise((function(a,o){var s={value:o},u={value:function(){0==--r&&a()}};n.each((function(){var n=br(this,i),r=n.on;r!==t&&((e=(t=r).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(u)),n.on=e})),0===r&&a()}))}},qr[Symbol.iterator]=oa[Symbol.iterator],qr);var sa={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function ua(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error("transition "+e+" not found");return n}Ln.prototype.interrupt=function(t){return this.each((function(){mr(this,t)}))},Ln.prototype.transition=function(t){var e,n;t instanceof ia?(e=t._id,t=t._name):(e=aa(),(n=sa).time=sr(),t=null==t?null:t+"");for(var i=this._groups,r=i.length,a=0;a<r;++a)for(var o,s=i[a],u=s.length,c=0;c<u;++c)(o=s[c])&&yr(o,t,e,c,s,n||ua(o,e));return new ia(i,this._parents,t,e)};var ca=function(t){var e=this;return a(this,undefined),function(){return a(this,e),t}.bind(this)}.bind(void 0);function la(t,e){var n=e.sourceEvent,i=e.target,r=e.selection,a=e.mode,o=e.dispatch;Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:a,enumerable:!0,configurable:!0},_:{value:o}})}function ha(t){t.stopImmediatePropagation()}function fa(t){t.preventDefault(),t.stopImmediatePropagation()}function da(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return ga(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ga(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ga(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var pa={name:"drag"},va={name:"space"},ya={name:"handle"},xa={name:"center"},ba=Math.abs,_a=Math.max,ma=Math.min;function wa(t){return[+t[0],+t[1]]}function Ta(t){return[wa(t[0]),wa(t[1])]}var Aa={name:"x",handles:["w","e"].map(Ca),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},Sa={name:"y",handles:["n","s"].map(Ca),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},Ea=(["n","w","e","s","nw","ne","sw","se"].map(Ca),{overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"}),ka={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Ma={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Oa={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Ra={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Ca(t){return{type:t}}function Ia(t){return!t.ctrlKey&&!t.button}function La(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function Pa(){return navigator.maxTouchPoints||"ontouchstart"in this}function Da(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Na(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function za(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function Fa(t){var e,n=La,i=Ia,r=Pa,o=!0,s=qn("start","brush","end"),u=6;function c(e){var n=e.property("__brush",v).selectAll(".overlay").data([Ca("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Ea.overlay).merge(n).each((function(){var t=Da(this).extent;Pn(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),e.selectAll(".selection").data([Ca("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Ea.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var i=e.selectAll(".handle").data(t.handles,(function(t){return t.type}));i.exit().remove(),i.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return Ea[t.type]})),e.each(l).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",d).filter(r).on("touchstart.brush",d).on("touchmove.brush",g).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function l(){var t=Pn(this),e=Da(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-u/2:e[0][0]-u/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-u/2:e[0][1]-u/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+u:u})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+u:u}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function h(t,e,n){var i=t.__brush.emitter;return!i||n&&i.clean?new f(t,e,n):i}function f(t,e,n){this.that=t,this.args=e,this.state=t.__brush,this.active=0,this.clean=n}function d(n){var r=this;if((!e||n.touches)&&i.apply(this,arguments)){var s,u,c,f,d,g,p,v,y,x,b,_=this,m=n.target.__data__.type,w="selection"===(o&&n.metaKey?m="overlay":m)?pa:o&&n.altKey?xa:ya,T=t===Sa?null:Oa[m],A=t===Aa?null:Ra[m],S=Da(_),E=S.extent,k=S.selection,M=E[0][0],O=E[0][1],R=E[1][0],C=E[1][1],I=0,L=0,P=T&&A&&o&&n.shiftKey,D=Array.from(n.touches||[n],function(t){a(this,r);var e=t.identifier;return(t=$n(t,_)).point0=t.slice(),t.identifier=e,t}.bind(this));mr(_);var N=h(_,arguments,!0).beforestart();if("overlay"===m){k&&(y=!0);var z=[D[0],D[1]||D[0]];S.selection=k=[[s=t===Sa?M:ma(z[0][0],z[1][0]),c=t===Aa?O:ma(z[0][1],z[1][1])],[d=t===Sa?R:_a(z[0][0],z[1][0]),p=t===Aa?C:_a(z[0][1],z[1][1])]],D.length>1&&$(n)}else s=k[0][0],c=k[0][1],d=k[1][0],p=k[1][1];u=s,f=c,g=d,v=p;var F=Pn(_).attr("pointer-events","none"),j=F.selectAll(".overlay").attr("cursor",Ea[m]);if(n.touches)N.moved=X,N.ended=U;else{var B=Pn(n.view).on("mousemove.brush",X,!0).on("mouseup.brush",U,!0);o&&B.on("keydown.brush",Y,!0).on("keyup.brush",V,!0),ti(n.view)}l.call(_),N.start(n,w.name)}function X(t){for(var e,n=da(t.changedTouches||[t]);!(e=n()).done;)for(var i,r=e.value,a=da(D);!(i=a()).done;){var o=i.value;o.identifier===r.identifier&&(o.cur=$n(r,_))}if(P&&!x&&!b&&1===D.length){var s=D[0];ba(s.cur[0]-s[0])>ba(s.cur[1]-s[1])?b=!0:x=!0}for(var u,c=da(D);!(u=c()).done;){var l=u.value;l.cur&&(l[0]=l.cur[0],l[1]=l.cur[1])}y=!0,fa(t),$(t)}function $(t){var e,n=D[0],i=n.point0;switch(I=n[0]-i[0],L=n[1]-i[1],w){case va:case pa:T&&(I=_a(M-s,ma(R-d,I)),u=s+I,g=d+I),A&&(L=_a(O-c,ma(C-p,L)),f=c+L,v=p+L);break;case ya:D[1]?(T&&(u=_a(M,ma(R,D[0][0])),g=_a(M,ma(R,D[1][0])),T=1),A&&(f=_a(O,ma(C,D[0][1])),v=_a(O,ma(C,D[1][1])),A=1)):(T<0?(I=_a(M-s,ma(R-s,I)),u=s+I,g=d):T>0&&(I=_a(M-d,ma(R-d,I)),u=s,g=d+I),A<0?(L=_a(O-c,ma(C-c,L)),f=c+L,v=p):A>0&&(L=_a(O-p,ma(C-p,L)),f=c,v=p+L));break;case xa:T&&(u=_a(M,ma(R,s-I*T)),g=_a(M,ma(R,d+I*T))),A&&(f=_a(O,ma(C,c-L*A)),v=_a(O,ma(C,p+L*A)))}g<u&&(T*=-1,e=s,s=d,d=e,e=u,u=g,g=e,m in ka&&j.attr("cursor",Ea[m=ka[m]])),v<f&&(A*=-1,e=c,c=p,p=e,e=f,f=v,v=e,m in Ma&&j.attr("cursor",Ea[m=Ma[m]])),S.selection&&(k=S.selection),x&&(u=k[0][0],g=k[1][0]),b&&(f=k[0][1],v=k[1][1]),k[0][0]===u&&k[0][1]===f&&k[1][0]===g&&k[1][1]===v||(S.selection=[[u,f],[g,v]],l.call(_),N.brush(t,w.name))}function U(t){if(ha(t),t.touches){if(t.touches.length)return;e&&clearTimeout(e),e=setTimeout((function(){e=null}),500)}else ei(t.view,y),B.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);F.attr("pointer-events","all"),j.attr("cursor",Ea.overlay),S.selection&&(k=S.selection),Na(k)&&(S.selection=null,l.call(_)),N.end(t,w.name)}function Y(t){switch(t.keyCode){case 16:P=T&&A;break;case 18:w===ya&&(T&&(d=g-I*T,s=u+I*T),A&&(p=v-L*A,c=f+L*A),w=xa,$(t));break;case 32:w!==ya&&w!==xa||(T<0?d=g-I:T>0&&(s=u-I),A<0?p=v-L:A>0&&(c=f-L),w=va,j.attr("cursor",Ea.selection),$(t));break;default:return}fa(t)}function V(t){switch(t.keyCode){case 16:P&&(x=b=P=!1,$(t));break;case 18:w===xa&&(T<0?d=g:T>0&&(s=u),A<0?p=v:A>0&&(c=f),w=ya,$(t));break;case 32:w===va&&(t.altKey?(T&&(d=g-I*T,s=u+I*T),A&&(p=v-L*A,c=f+L*A),w=xa):(T<0?d=g:T>0&&(s=u),A<0?p=v:A>0&&(c=f),w=ya),j.attr("cursor",Ea[m]),$(t));break;default:return}fa(t)}}function g(t){h(this,arguments).moved(t)}function p(t){h(this,arguments).ended(t)}function v(){var e=this.__brush||{selection:null};return e.extent=Ta(n.apply(this,arguments)),e.dim=t,e}return c.move=function(e,n,i){e.tween?e.on("start.brush",(function(t){h(this,arguments).beforestart().start(t)})).on("interrupt.brush end.brush",(function(t){h(this,arguments).end(t)})).tween("brush",(function(){var e=this,i=e.__brush,r=h(e,arguments),a=i.selection,o=t.input("function"==typeof n?n.apply(this,arguments):n,i.extent),s=Zi(a,o);function u(t){i.selection=1===t&&null===o?null:s(t),l.call(e),r.brush()}return null!==a&&null!==o?u:u(1)})):e.each((function(){var e=this,r=arguments,a=e.__brush,o=t.input("function"==typeof n?n.apply(e,r):n,a.extent),s=h(e,r).beforestart();mr(e),a.selection=null===o?null:o,l.call(e),s.start(i).brush(i).end(i)}))},c.clear=function(t,e){c.move(t,null,e)},f.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(t,e){return this.starting?(this.starting=!1,this.emit("start",t,e)):this.emit("brush",t),this},brush:function(t,e){return this.emit("brush",t,e),this},end:function(t,e){return 0==--this.active&&(delete this.state.emitter,this.emit("end",t,e)),this},emit:function(e,n,i){var r=Pn(this.that).datum();s.call(e,this.that,new la(e,{sourceEvent:n,target:c,selection:t.output(this.state.selection),mode:i,dispatch:s}),r)}},c.extent=function(t){return arguments.length?(n="function"==typeof t?t:ca(Ta(t)),c):n},c.filter=function(t){return arguments.length?(i="function"==typeof t?t:ca(!!t),c):i},c.touchable=function(t){return arguments.length?(r="function"==typeof t?t:ca(!!t),c):r},c.handleSize=function(t){return arguments.length?(u=+t,c):u},c.keyModifiers=function(t){return arguments.length?(o=!!t,c):o},c.on=function(){var t=s.on.apply(s,arguments);return t===s?c:t},c}var ja=void 0;function Ba(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Xa(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?Ba(Object(e),!0).forEach((function(n){Xn(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Ba(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var $a=function(t){return a(this,ja),t||0===t}.bind(void 0),Ua=function(t){return a(this,ja),"function"==typeof t}.bind(void 0),Ya=function(t){return a(this,ja),"string"==typeof t}.bind(void 0),Va=function(t){return a(this,ja),"number"==typeof t}.bind(void 0),Ga=function(t){return a(this,ja),void 0===t}.bind(void 0),Ha=function(t){return a(this,ja),void 0!==t}.bind(void 0),Wa=function(t){return a(this,ja),"boolean"==typeof t}.bind(void 0),qa=function(t){return a(this,ja),10*Math.ceil(t/10)}.bind(void 0),Za=function(t){return a(this,ja),Math.ceil(t)+.5}.bind(void 0),Ka=function(t){return a(this,ja),t[1]-t[0]}.bind(void 0),Ja=function(t){return a(this,ja),"object"==typeof t}.bind(void 0),Qa=function(t){return a(this,ja),Ga(t)||null===t||Ya(t)&&0===t.length||Ja(t)&&!(t instanceof Date)&&0===Object.keys(t).length||Va(t)&&isNaN(t)}.bind(void 0),to=function(t){return a(this,ja),!Qa(t)}.bind(void 0),eo=function(t){return a(this,ja),Array.isArray(t)}.bind(void 0),no=function(t){return a(this,ja),t&&!(null!=t&&t.nodeType)&&Ja(t)&&!eo(t)}.bind(void 0);function io(t,e,n){return Ha(t[e])?t[e]:n}function ro(t,e){for(var n=Ua(t),i=arguments.length,r=Array(i>2?i-2:0),a=2;a<i;a++)r[a-2]=arguments[a];return n&&t.call.apply(t,[e].concat(r)),n}function ao(t,e){var n=this,i=0,r=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];--i||e.apply.apply(e,[this].concat(n))};"duration"in t?t.each(function(){return a(this,n),++i}.bind(this)).on("end",r):(++i,t.call(r))}function oo(t){return Ya(t)?t.replace(/</g,"&lt;").replace(/>/g,"&gt;"):t}function so(t,e,n,i){var r=this;if(void 0===n&&(n=[-1,1]),void 0===i&&(i=!1),t&&Ya(e))if(-1===e.indexOf("\n"))t.text(e);else{var o=[t.text(),e].map(function(t){return a(this,r),t.replace(/[\s\n]/g,"")}.bind(this));if(o[0]!==o[1]){var s=e.split("\n"),u=i?s.length-1:1;t.html(""),s.forEach(function(e,i){a(this,r),t.append("tspan").attr("x",0).attr("dy",(0===i?n[0]*u:n[1])+"em").text(e)}.bind(this))}}}function uo(t){var e=t.getBBox(),n=e.x,i=e.y,r=e.width,a=e.height;return[{x:n,y:i+a},{x:n,y:i},{x:n+r,y:i},{x:n+r,y:i+a}]}function co(t,e){var n,i=$n(t&&(null==(n=t.touches||t.sourceEvent&&t.sourceEvent.touches)?void 0:n[0])||t,e),r=this;return i.map(function(t){return a(this,r),isNaN(t)?0:t}.bind(this))}function lo(t){var e,n=t.event,i=t.$el,r=i.subchart.main||i.main;return n&&"brush"===n.type?e=n.selection:r&&(e=r.select(".bb-brush").node())&&(e=za(e)),e}function ho(t){return!("rect"in t)||"rect"in t&&t.hasAttribute("width")&&t.rect.width!==+t.getAttribute("width")?t.rect=t.getBoundingClientRect():t.rect}function fo(t,e,n){void 0===t&&(t=!0),void 0===e&&(e=0),void 0===n&&(n=1e4);var i=Math.floor(Math.random()*(n-e)+e);return t?i+"":i}function go(t,e,n,i,r){if(n>i)return-1;var a=Math.floor((n+i)/2),o=t[a],s=o.x,u=o.w,c=void 0===u?0:u;return r&&(s=t[a].y,c=t[a].h),e>=s&&e<=s+c?a:e<s?go(t,e,n,a-1,r):go(t,e,a+1,i,r)}function po(t){var e=lo(t);return!e||e[0]===e[1]}function vo(t,e){var n=this;for(var i in void 0===t&&(t={}),eo(e)&&e.forEach(function(e){return a(this,n),vo(t,e)}.bind(this)),e)/^\d+$/.test(i)||i in t||(t[i]=e[i]);return t}var yo=function(t){return a(this,ja),t.charAt(0).toUpperCase()+t.slice(1)}.bind(void 0);var xo=function(t){return a(this,ja),[].slice.call(t)}.bind(void 0);function bo(t){var e=t?t.transform:null,n=e&&e.baseVal;return n&&n.numberOfItems?n.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function _o(t){var e=this,n=t[0]instanceof Date,i=(n?t.map(Number):t).filter(function(t,n,i){return a(this,e),i.indexOf(t)===n}.bind(this));return n?i.map(function(t){return a(this,e),new Date(t)}.bind(this)):i}function mo(t){var e=this;return t&&t.length?t.reduce(function(t,n){return a(this,e),t.concat(n)}.bind(this)):[]}function wo(t){for(var e=this,n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];if(!i.length||1===i.length&&!i[0])return t;var o=i.shift();return no(t)&&no(o)&&Object.keys(o).forEach(function(n){a(this,e);var i=o[n];no(i)?(t[n]||(t[n]={}),t[n]=wo(t[n],i)):t[n]=eo(i)?i.concat():i}.bind(this)),wo.apply(void 0,[t].concat(i))}function To(t,e){var n,i=this;return void 0===e&&(e=!0),t[0]instanceof Date?n=e?function(t,e){return a(this,i),t-e}.bind(this):function(t,e){return a(this,i),e-t}.bind(this):e&&!t.every(isNaN)?n=function(t,e){return a(this,i),t-e}.bind(this):e||(n=function(t,e){return a(this,i),(t>e?-1:t<e&&1)||t===e&&0}.bind(this)),t.concat().sort(n)}function Ao(t,e){var n=this,i=e.filter(function(t){return a(this,n),to(t)}.bind(this));return i.length?Va(i[0])?i=Math[t].apply(Math,i):i[0]instanceof Date&&(i=To(i,"min"===t)[0]):i=void 0,i}var So=function(t,e,n){void 0===n&&(n=1),a(this,ja);for(var i=[],r=0|Math.max(0,Math.ceil((e-t)/n)),o=t;o<r;o++)i.push(t+o*n);return i}.bind(void 0),Eo={mouse:function(){var t=this;a(this,ja);var e=function(){return a(this,t),{bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0}}.bind(this);try{return new MouseEvent("t"),function(n,i,r){void 0===r&&(r=e()),a(this,t),n.dispatchEvent(new MouseEvent(i,r))}.bind(this)}catch(n){return function(n,i,r){void 0===r&&(r=e()),a(this,t);var o=zn.createEvent("MouseEvent");o.initMouseEvent(i,r.bubbles,r.cancelable,Nn,0,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),n.dispatchEvent(o)}.bind(this)}}.bind(void 0)(),touch:function(t,e,n){a(this,ja);var i=new Touch(wo({identifier:Date.now(),target:t,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},n));t.dispatchEvent(new TouchEvent(e,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[i],targetTouches:[],changedTouches:[i]}))}.bind(void 0)};function ko(t,e){var n=t;for(var i in e)n=n.replace(new RegExp("{="+i+"}","g"),e[i]);return n}function Mo(t){var e;if(t instanceof Date)e=t;else if(Ya(t)){var n,i=this.config;e=null!=(n=this.format.dataTime(i.data_xFormat)(t))?n:new Date(t)}else Va(t)&&!isNaN(t)&&(e=new Date(+t));return e&&!isNaN(+e)||console&&console.error&&console.error("Failed to parse x '"+t+"' to Date object"),e}function Oo(){return!1===(null==zn?void 0:zn.hidden)||"visible"===(null==zn?void 0:zn.visibilityState)}function Ro(t,e){var n=this;!1===e()?Nn.requestAnimationFrame(function(){return a(this,n),Ro(t,e)}.bind(this)):t()}function Co(t){var e=t,n=e.config,i="";if(Qa(n.data_type||n.data_types)&&!e[jn.LINE])i="line";else for(var r in jn){var o=Fn[r];if(e.hasType(o)&&!e[jn[r]]){i=o;break}}i&&function(t,e){var n,i="[billboard.js]";(null==(n=Nn.console)?void 0:n.error)&&(console.error("❌ "+i+" "+t,"background:red;color:white;display:block;font-size:15px",e),console.info("%cℹ️","font-size:15px","https://github.com/naver/billboard.js/wiki/CHANGELOG-v2#modularization-by-its-functionality"));throw Error(i+" "+t.replace(/\%c([a-z-]+)/i,"'$1' ")+" "+e)}("Please, make sure if %c"+function(t,e){var n=this;return void 0===e&&(e="-"),t.split(e).map(function(t,e){return a(this,n),e?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()}.bind(this)).join("")}(i),"module has been imported and specified correctly.")}function Io(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Lo(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?Io(Object(e),!0).forEach((function(n){Xn(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Io(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var Po={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_"},Do={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcs:"bb-arcs",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsTitle:"bb-chart-arcs-title"},No={area:"bb-area",areas:"bb-areas"},zo={axis:"bb-axis",axisX:"bb-axis-x",axisXLabel:"bb-axis-x-label",axisY:"bb-axis-y",axisY2:"bb-axis-y2",axisY2Label:"bb-axis-y2-label",axisYLabel:"bb-axis-y-label"},Fo={bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars"},jo={candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"},Bo={chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"},Xo={colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"},$o={dragarea:"bb-dragarea",INCLUDED:"_included_"},Uo={chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",gaugeValue:"bb-gauge-value"},Yo={legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile"},Vo={chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"},Go={eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"},Ho={focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"},Wo={grid:"bb-grid",gridLines:"bb-grid-lines",xgrid:"bb-xgrid",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids"},qo="bb-level",Zo="bb-levels",Ko={chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"},Jo={region:"bb-region",regions:"bb-regions"},Qo={selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"},ts={shape:"bb-shape",shapes:"bb-shapes"},es={brush:"bb-brush",subchart:"bb-subchart"},ns={chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",TextOverlapping:"text-overlapping"},is={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},rs={buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"},as=Lo(Lo(Lo(Lo(Lo(Lo(Lo(Lo(Lo(Lo(Lo(Lo(Lo(Lo(Lo(Lo(Lo(Lo(Lo(Lo(Lo(Lo(Lo({},Po),Do),No),zo),Fo),jo),Bo),Xo),$o),Uo),Yo),Vo),Go),Ho),Wo),Ko),Jo),Qo),ts),es),ns),is),rs),os={element:function(){return{chart:null,main:null,svg:null,axis:{x:null,y:null,y2:null,subX:null},defs:null,tooltip:null,legend:null,title:null,subchart:{main:null,bar:null,line:null,area:null},arcs:null,bar:null,candlestick:null,line:null,area:null,circle:null,radar:null,text:null,grid:{main:null,x:null,y:null},gridLines:{main:null,x:null,y:null},region:{main:null,list:null},eventRect:null,zoomResetBtn:null}},state:function(){return{width:0,width2:0,height:0,height2:0,margin:{top:0,bottom:0,left:0,right:0},margin2:{top:0,bottom:0,left:0,right:0},margin3:{top:0,bottom:0,left:0,right:0},arcWidth:0,arcHeight:0,xAxisHeight:0,hasAxis:!1,hasRadar:!1,cssRule:{},current:{width:0,height:0,dataMax:0,maxTickWidths:{x:{size:0,ticks:[],clipPath:0,domain:""},y:{size:0,domain:""},y2:{size:0,domain:""}},types:[]},isLegendRight:!1,isLegendInset:!1,isLegendTop:!1,isLegendLeft:!1,legendStep:0,legendItemWidth:0,legendItemHeight:0,legendHasRendered:!1,eventReceiver:{currentIdx:-1,rect:{},data:[],coords:[]},axis:{x:{padding:{left:0,right:0},tickCount:0}},rotatedPadding:{left:30,right:0,top:5},withoutFadeIn:{},inputType:"",datetimeId:"",clip:{id:"",idXAxis:"",idYAxis:"",idXAxisTickTexts:"",idGrid:"",idSubchart:"",path:"",pathXAxis:"",pathYAxis:"",pathXAxisTickTexts:"",pathGrid:""},event:null,dragStart:null,dragging:!1,flowing:!1,cancelClick:!1,mouseover:!1,rendered:!1,transiting:!1,redrawing:!1,resizing:!1,toggling:!1,zooming:!1,hasNegativeValue:!1,hasPositiveValue:!0,orgAreaOpacity:"0.2",orgConfig:{},hiddenTargetIds:[],hiddenLegendIds:[],focusedTargetIds:[],defocusedTargetIds:[],radius:0,innerRadius:0,outerRadius:void 0,innerRadiusRatio:0,gaugeArcWidth:0,radiusExpanded:0,xgridAttr:{x1:null,x2:null,y1:null,y2:null}}}},ss=function(){function t(){var t=this;Object.keys(os).forEach(function(e){a(this,t),this[e]=new os[e]}.bind(this))}return t.prototype.getStore=function(t){return this[t]},t}(),us={bindto:"#chart",background:{},clipPath:!0,svg_classname:void 0,size_width:void 0,size_height:void 0,padding:!0,padding_left:void 0,padding_right:void 0,padding_top:void 0,padding_bottom:void 0,resize_auto:!0,resize_timer:!0,onclick:void 0,onover:void 0,onout:void 0,onresize:void 0,onresized:void 0,onbeforeinit:void 0,oninit:void 0,onafterinit:void 0,onrendered:void 0,transition_duration:250,plugins:[],render:{},regions:[]},cs={boost_useCssRule:!1,boost_useWorker:!1},ls=void 0,hs={data_x:void 0,data_idConverter:function(t){return a(this,ls),t}.bind(void 0),data_names:{},data_classes:{},data_type:void 0,data_types:{},data_order:"desc",data_groups:[],data_groupsZeroAs:"positive",data_color:void 0,data_colors:{},data_labels:{},data_labels_backgroundColors:void 0,data_labels_colors:void 0,data_labels_position:{},data_hide:!1,data_filter:void 0,data_onclick:function(){a(this,ls)}.bind(void 0),data_onover:function(){a(this,ls)}.bind(void 0),data_onout:function(){a(this,ls)}.bind(void 0),data_onshown:void 0,data_onhidden:void 0,data_onmin:void 0,data_onmax:void 0,data_url:void 0,data_headers:void 0,data_json:void 0,data_rows:void 0,data_columns:void 0,data_mimeType:"csv",data_keys:void 0,data_empty_label_text:""},fs={color_pattern:[],color_tiles:void 0,color_threshold:{},color_onover:void 0},ds={interaction_enabled:!0,interaction_brighten:!0,interaction_inputType_mouse:!0,interaction_inputType_touch:{}},gs={legend_show:!0,legend_hide:!1,legend_contents_bindto:void 0,legend_contents_template:"<span style='color:#fff;padding:5px;background-color:{=COLOR}'>{=TITLE}</span>",legend_position:"bottom",legend_inset_anchor:"top-left",legend_inset_x:10,legend_inset_y:0,legend_inset_step:void 0,legend_item_onclick:void 0,legend_item_onover:void 0,legend_item_onout:void 0,legend_equally:!1,legend_padding:0,legend_item_tile_width:10,legend_item_tile_height:10,legend_item_tile_r:5,legend_item_tile_type:"rectangle",legend_usePoint:!1},ps={title_text:void 0,title_padding:{top:0,right:0,bottom:0,left:0},title_position:"center"},vs=void 0,ys={tooltip_show:!0,tooltip_doNotHide:!1,tooltip_grouped:!0,tooltip_format_title:void 0,tooltip_format_name:void 0,tooltip_format_value:void 0,tooltip_position:void 0,tooltip_contents:{},tooltip_init_show:!1,tooltip_init_x:0,tooltip_init_position:{top:"0px",left:"50px"},tooltip_linked:!1,tooltip_linked_name:"",tooltip_onshow:function(){a(this,vs)}.bind(void 0),tooltip_onhide:function(){a(this,vs)}.bind(void 0),tooltip_onshown:function(){a(this,vs)}.bind(void 0),tooltip_onhidden:function(){a(this,vs)}.bind(void 0),tooltip_order:null};function xs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function bs(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?xs(Object(e),!0).forEach((function(n){Xn(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):xs(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var _s=function(){function t(){return function(){for(var t=this,e=function(n){if(a(this,t),no(n)&&n.constructor){var i=new n.constructor;for(var r in n)i[r]=e(n[r]);return i}return n}.bind(this),n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];return i.map(function(n){return a(this,t),e(n)}.bind(this)).reduce(function(e,n){return a(this,t),Xa(Xa({},e),n)}.bind(this))}(us,cs,hs,fs,ds,gs,ps,ys,t.data)}return t.setOptions=function(t){var e=this;this.data=t.reduce(function(t,n){return a(this,e),bs(bs({},t),n)}.bind(this),this.data)},t}();_s.data={};var ms="$baseLength",ws="__colorPattern__",Ts="$dataMinMax",As="$dataTotalSum",Ss="$totalPerIndex",Es="legendItemTextBox",ks="$radarPoints",Ms="setOverOut",Os="callOverOutForTouch",Rs="textRect",Cs=function(){function t(){this.cache={}}var e=t.prototype;return e.add=function(t,e,n){return void 0===n&&(n=!1),this.cache[t]=n?this.cloneTarget(e):e,this.cache[t]},e.remove=function(t){var e=this;xo(t).forEach(function(t){return a(this,e),delete this.cache[t]}.bind(this))},e.get=function(t,e){if(void 0===e&&(e=!1),e){for(var n,i=[],r=0;n=t[r];r++)n in this.cache&&i.push(this.cloneTarget(this.cache[n]));return i}var a=this.cache[t];return $a(a)?a:null},e.reset=function(t){for(var e in this.cache)(t||/^\$/.test(e))&&(this.cache[e]=null)},e.cloneTarget=function(t){var e=this;return{id:t.id,id_org:t.id_org,values:t.values.map(function(t){return a(this,e),{x:t.x,value:t.value,id:t.id}}.bind(this))}},t}(),Is=Nn.setTimeout,Ls=Nn.clearTimeout;function Ps(){var t=[],e=function(e,n){var i=this;Ro(function(){a(this,i),null==n||n()}.bind(this),(function(){for(var e,n=0,i=0;e=t[i];i++)if(!0===e||null!=e.empty&&e.empty())n++;else{if(!1===Oo()){n=t.length;break}try{e.transition()}catch(t){n++}}return n===t.length}))};return e.add=function(e){eo(e)?t=t.concat(e):t.push(e)},e}var Ds={};function Ns(t,e,n,i){var r;if(void 0===t&&(t=!0),Nn.Worker&&t){var a=function(t,e){var n,i=t.toString(),r=i.replace(/(function|[\s\W\n])/g,"").substring(0,15);return r in Ds||(Ds[r]=new Nn.Blob([(null!=(n=null==e?void 0:e.map(String).join(";"))?n:"")+"\n\n\t\t\tself.onmessage=function({data}) {\n\t\t\t\tconst result = ("+i+").apply(null, data);\n\t\t\t\tself.postMessage(result);\n\t\t\t};"],{type:"text/javascript"})),Nn.URL.createObjectURL(Ds[r])}(e,i),o=new Nn.Worker(a);r=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];o.postMessage(e),o.onmessage=function(t){return Nn.URL.revokeObjectURL(a),n(t.data)},o.onerror=function(t){console.error(t)}}}else r=function(){var t=e.apply(void 0,arguments);n(t)};return r}var zs={},Fs={};function js(t){return new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'})).join(",")+"}")}function Bs(t){var e=Object.create(null),n=[];return t.forEach((function(t){for(var i in t)i in e||n.push(e[i]=i)})),n}function Xs(t,e){var n=t+"",i=n.length;return i<e?Array(e-i+1).join(0)+n:n}function $s(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),i=t.getUTCSeconds(),r=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":function(t){return t<0?"-"+Xs(-t,6):t>9999?"+"+Xs(t,6):Xs(t,4)}(t.getUTCFullYear())+"-"+Xs(t.getUTCMonth()+1,2)+"-"+Xs(t.getUTCDate(),2)+(r?"T"+Xs(e,2)+":"+Xs(n,2)+":"+Xs(i,2)+"."+Xs(r,3)+"Z":i?"T"+Xs(e,2)+":"+Xs(n,2)+":"+Xs(i,2)+"Z":n||e?"T"+Xs(e,2)+":"+Xs(n,2)+"Z":"")}function Us(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function i(t,e){var i,r=[],a=t.length,o=0,s=0,u=a<=0,c=!1;function l(){if(u)return Fs;if(c)return c=!1,zs;var e,i,r=o;if(34===t.charCodeAt(r)){for(;o++<a&&34!==t.charCodeAt(o)||34===t.charCodeAt(++o););return(e=o)>=a?u=!0:10===(i=t.charCodeAt(o++))?c=!0:13===i&&(c=!0,10===t.charCodeAt(o)&&++o),t.slice(r+1,e-1).replace(/""/g,'"')}for(;o<a;){if(10===(i=t.charCodeAt(e=o++)))c=!0;else if(13===i)c=!0,10===t.charCodeAt(o)&&++o;else if(i!==n)continue;return t.slice(r,e)}return u=!0,t.slice(r,a)}for(10===t.charCodeAt(a-1)&&--a,13===t.charCodeAt(a-1)&&--a;(i=l())!==Fs;){for(var h=[];i!==zs&&i!==Fs;)h.push(i),i=l();e&&null==(h=e(h,s++))||r.push(h)}return r}function r(e,n){return e.map((function(e){return n.map((function(t){return o(e[t])})).join(t)}))}function a(e){return e.map(o).join(t)}function o(t){return null==t?"":t instanceof Date?$s(t):e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,e){var n,r,a=i(t,(function(t,i){if(n)return n(t,i-1);r=t,n=e?function(t,e){var n=js(t);return function(i,r){return e(n(i),r,t)}}(t,e):js(t)}));return a.columns=r||[],a},parseRows:i,format:function(e,n){return null==n&&(n=Bs(e)),[n.map(o).join(t)].concat(r(e,n)).join("\n")},formatBody:function(t,e){return null==e&&(e=Bs(t)),r(t,e).join("\n")},formatRows:function(t){return t.map(a).join("\n")},formatRow:a,formatValue:o}}var Ys=Us(","),Vs=Ys.parse,Gs=Ys.parseRows,Hs=(Ys.format,Ys.formatBody,Ys.formatRows,Ys.formatRow,Ys.formatValue,Us("\t")),Ws=Hs.parse,qs=Hs.parseRows;Hs.format,Hs.formatBody,Hs.formatRows,Hs.formatRow,Hs.formatValue;function Zs(t){var e=[];return t.forEach((function(t,n){var i=t[0];t.forEach((function(t,r){if(r>0){if(void 0===e[r-1]&&(e[r-1]={}),void 0===t)throw new Error("Source data is missing a component at ("+n+", "+r+")!");e[r-1][i]=t}}))})),e}function Ks(t){var e=t[0],n=[];return t.forEach((function(t,i){if(i>0){var r={};t.forEach((function(t,n){if(void 0===t)throw new Error("Source data is missing a component at ("+i+", "+n+")!");r[e[n]]=t})),n.push(r)}})),n}function Js(t,e){var n,i,r=[];return Array.isArray(t)?(n=e.x?e.value.concat(e.x):e.value,r.push(n),t.forEach((function(t){var e=n.map((function(e){var n=function(t,e){if(void 0!==t[e])return t[e];var n=e.replace(/\[(\w+)\]/g,".$1").replace(/^\./,"").split("."),i=t;return n.some((function(t){return!(i=i&&t in i?i[t]:void 0)})),i}(t,e);return void 0===n&&(n=null),n}));r.push(e)})),i=Ks(r)):(Object.keys(t).forEach((function(e){var n=t[e].concat();n.unshift(e),r.push(n)})),i=Zs(r)),i}function Qs(t,e){var n,i=this,r=t.rows(e);return 1===r.length?(n=[{}],r[0].forEach(function(t){a(this,i),n[0][t]=null}.bind(this))):n=t.parse(e),n}function tu(t){return Qs({rows:Gs,parse:Vs},t)}function eu(t){return Qs({rows:qs,parse:Ws},t)}function nu(t,e){var n=t||(null==e?void 0:e.data_keys);return null!=n&&n.x&&(e.data_x=n.x),n}var iu={convertData:function(t,e){var n=this,i=this.config,r=i.boost_useWorker,o=t;if(t.bindto&&(o={},["url","mimeType","headers","keys","json","keys","rows","columns"].forEach(function(e){a(this,n);var i="data_"+e;i in t&&(o[e]=t[i])}.bind(this))),o.url&&e)!function(t,e,n,i,r){void 0===e&&(e="csv");var a=new XMLHttpRequest,o={csv:tu,tsv:eu,json:Js};a.open("GET",t),n&&Object.keys(n).forEach((function(t){a.setRequestHeader(t,n[t])})),a.onreadystatechange=function(){if(4===a.readyState){if(200!==a.status)throw new Error(t+": Something went wrong loading!");var n=a.responseText;n&&r.call(this,o[e]("json"===e?JSON.parse(n):n,i))}},a.send()}(o.url,o.mimeType,o.headers,nu(o.keys,i),e);else if(o.json)Ns(r,Js,e,[Zs,Ks])(o.json,nu(o.keys,i));else if(o.rows)Ns(r,Ks,e)(o.rows);else if(o.columns)Ns(r,Zs,e)(o.columns);else if(t.bindto)throw Error("url or json or rows or columns is required.")},convertDataToTargets:function(t,e){var n=this,i=this,r=i.axis,o=i.config,s=i.state,u=!1,c=!1,l=!1;r&&(u=r.isCategorized(),c=r.isTimeSeries(),l=r.isCustomX());var h,f=Object.keys(t[0]||{}),d=f.length?f.filter(i.isNotX,i):[],g=f.length?f.filter(i.isX,i):[];d.forEach(function(r){var s=this;a(this,n);var u=this.getXKey(r);l||c?g.indexOf(u)>=0?h=(e&&i.data.xs[r]||[]).concat(t.map(function(t){return a(this,s),t[u]}.bind(this)).filter($a).map(function(t,e){return a(this,s),i.generateTargetX(t,r,e)}.bind(this))):o.data_x?h=this.getOtherTargetXs():to(o.data_xs)&&(h=i.getXValuesOfXKey(u,i.data.targets)):h=t.map(function(t,e){return a(this,s),e}.bind(this)),h&&(this.data.xs[r]=h)}.bind(this)),d.forEach(function(t){if(a(this,n),!this.data.xs[t])throw new Error('x is not defined for id = "'+t+'".')}.bind(this));var p=d.map(function(e,r){var c=this;a(this,n);var h=o.data_idConverter.bind(i.api)(e),f=i.getXKey(e),d=l&&u,g=d&&t.map(function(t){return a(this,c),t.x}.bind(this)).every(function(t){return a(this,c),o.axis_x_categories.indexOf(t)>-1}.bind(this)),p=t.__append__,v=null===f&&p?i.api.data.values(e).length:0;return{id:h,id_org:e,values:t.map(function(t,n){a(this,c);var u,l=t[f],y=t[e];return y=null===y||isNaN(y)||no(y)?eo(y)||no(y)?y:null:+y,!d&&!s.hasRadar||0!==r||Ga(l)?u=i.generateTargetX(l,e,v+n):(g||0!==r||0!==n||p||(o.axis_x_categories=[]),-1===(u=o.axis_x_categories.indexOf(l))&&(u=o.axis_x_categories.length,o.axis_x_categories.push(l))),(Ga(y)||i.data.xs[e].length<=n)&&(u=void 0),{x:u,value:y,id:h,index:-1}}.bind(this)).filter(function(t){return a(this,c),Ha(t.x)}.bind(this))}}.bind(this));return p.forEach(function(t){var e,r=this;a(this,n),o.data_xSort&&(t.values=t.values.sort(function(t,e){return a(this,r),(t.x||0===t.x?t.x:1/0)-(e.x||0===e.x?e.x:1/0)}.bind(this))),t.values.forEach(function(t,e){return a(this,r),t.index=e}.bind(this)),null==(e=i.data.xs[t.id])||e.sort(function(t,e){return a(this,r),t-e}.bind(this))}.bind(this)),s.hasNegativeValue=i.hasNegativeValueInTargets(p),s.hasPositiveValue=i.hasPositiveValueInTargets(p),o.data_type&&i.setTargetType(i.mapToIds(p).filter(function(t){return a(this,n),!(t in o.data_types)}.bind(this)),o.data_type),p.forEach(function(t){return a(this,n),i.cache.add(t.id_org,t,!0)}.bind(this)),p}},ru={isX:function(t){var e=this.config,n=e.data_x&&t===e.data_x,i=to(e.data_xs)&&function(t,e){var n=this,i=!1;return Object.keys(t).forEach(function(r){return a(this,n),t[r]===e&&(i=!0)}.bind(this)),i}(e.data_xs,t);return n||i},isNotX:function(t){return!this.isX(t)},isStackNormalized:function(){var t=this.config;return!(!t.data_stack_normalize||!t.data_groups.length)},isGrouped:function(t){var e=this,n=this.config.data_groups;return t?n.some(function(n){return a(this,e),n.indexOf(t)>=0&&n.length>1}.bind(this)):n.length>0},getXKey:function(t){var e=this.config;return e.data_x?e.data_x:to(e.data_xs)?e.data_xs[t]:null},getXValuesOfXKey:function(t,e){var n,i=this,r=this;return(e&&to(e)?r.mapToIds(e):[]).forEach(function(e){a(this,i),r.getXKey(e)===t&&(n=r.data.xs[e])}.bind(this)),n},getIndexByX:function(t,e){return e?e.indexOf(Ya(t)?t:+t):(this.filterByX(this.data.targets,t)[0]||{index:null}).index},getXValue:function(t,e){var n=this;return t in n.data.xs&&n.data.xs[t]&&$a(n.data.xs[t][e])?n.data.xs[t][e]:e},getOtherTargetXs:function(){var t=Object.keys(this.data.xs);return t.length?this.data.xs[t[0]]:null},getOtherTargetX:function(t){var e=this.getOtherTargetXs();return e&&t<e.length?e[t]:null},addXs:function(t){var e=this,n=this.config;Object.keys(t).forEach(function(i){a(this,e),n.data_xs[i]=t[i]}.bind(this))},isMultipleX:function(){return to(this.config.data_xs)||!this.config.data_xSort||this.hasType("bubble")||this.hasType("scatter")},addName:function(t){var e,n=this.config;return t&&(e=n.data_names[t.id],t.name=void 0!==e?e:t.id),t},getAllValuesOnIndex:function(t,e){var n=this;void 0===e&&(e=!1);var i=this,r=i.filterTargetsToShow(i.data.targets).map(function(e){return a(this,n),i.addName(i.getValueOnIndex(e.values,t))}.bind(this));return e&&(r=r.filter(function(t){return a(this,n),t&&"value"in t&&$a(t.value)}.bind(this))),r},getValueOnIndex:function(t,e){var n=this,i=t.filter(function(t){return a(this,n),t.index===e}.bind(this));return i.length?i[0]:null},updateTargetX:function(t,e){var n=this,i=this;t.forEach(function(t){var r=this;a(this,n),t.values.forEach(function(n,o){a(this,r),n.x=i.generateTargetX(e[o],t.id,o)}.bind(this)),i.data.xs[t.id]=e}.bind(this))},updateTargetXs:function(t,e){var n=this,i=this;t.forEach(function(t){a(this,n),e[t.id]&&i.updateTargetX([t],e[t.id])}.bind(this))},generateTargetX:function(t,e,n){var i=this,r=i.axis,a=null!=r&&r.isCategorized()?n:t||n;if(null!=r&&r.isTimeSeries()){var o=Mo.bind(i);a=o(t||i.getXValue(e,n))}else null==r||!r.isCustomX()||null!=r&&r.isCategorized()||(a=$a(t)?+t:i.getXValue(e,n));return a},updateXs:function(t){var e=this;t.length&&(this.axis.xs=t.map(function(t){return a(this,e),t.x}.bind(this)))},getPrevX:function(t){var e=this.axis.xs[t-1];return Ha(e)?e:null},getNextX:function(t){var e=this.axis.xs[t+1];return Ha(e)?e:null},getBaseValue:function(t){var e=this,n=e.state.hasAxis,i=t.value;return i&&n&&(e.isAreaRangeType(t)?i=e.getRangedData(t,"mid"):e.isBubbleZType(t)&&(i=e.getBubbleZData(i,"y"))),i},getMinMaxValue:function(t){var e,n,i=this,r=this.getBaseValue.bind(this);return(t||this.data.targets.map(function(t){return a(this,i),t.values}.bind(this))).forEach(function(t,o){a(this,i);var s=t.map(r).filter(Va);e=Math.min.apply(Math,[o?e:1/0].concat(s)),n=Math.max.apply(Math,[o?n:-1/0].concat(s))}.bind(this)),{min:e,max:n}},getMinMaxData:function(){var t=this,e=this,n=Ts,i=e.cache.get(n);if(!i){var r=e.data.targets.map(function(e){return a(this,t),e.values}.bind(this)),o=e.getMinMaxValue(r),s=[],u=[];r.forEach(function(n){a(this,t);var i=e.getFilteredDataByValue(n,o.min),r=e.getFilteredDataByValue(n,o.max);i.length&&(s=s.concat(i)),r.length&&(u=u.concat(r))}.bind(this)),e.cache.add(n,i={min:s,max:u})}return i},getTotalPerIndex:function(){var t=this,e=this,n=Ss,i=e.cache.get(n);return e.isStackNormalized()&&!i&&(i=[],e.data.targets.forEach(function(e){var n=this;a(this,t),e.values.forEach(function(t,e){a(this,n),i[e]||(i[e]=0),i[e]+=Va(t.value)?t.value:0}.bind(this))}.bind(this))),i},getTotalDataSum:function(t){var e=this,n=this,i=As,r=n.cache.get(i);if(!Va(r)){var o=mo(n.data.targets.map(function(t){return a(this,e),t.values}.bind(this))).map(function(t){return a(this,e),t.value}.bind(this)).reduce(function(t,n){return a(this,e),t+n}.bind(this));n.cache.add(i,r=o)}return t&&(r-=n.getHiddenTotalDataSum()),r},getHiddenTotalDataSum:function(){var t=this,e=this.api,n=this.state.hiddenTargetIds,i=0;return n.length&&(i=e.data.values.bind(e)(n).reduce(function(e,n){return a(this,t),e+n}.bind(this))),i},getFilteredDataByValue:function(t,e){var n=this;return t.filter(function(t){return a(this,n),this.getBaseValue(t)===e}.bind(this))},getMaxDataCount:function(){var t=this;return Math.max.apply(Math,this.data.targets.map(function(e){return a(this,t),e.values.length}.bind(this)))},getMaxDataCountTarget:function(){var t=this,e=this.filterTargetsToShow()||[],n=e.length;return n>1?e=To(_o(e=e.map(function(e){return a(this,t),e.values}.bind(this)).reduce(function(e,n){return a(this,t),e.concat(n)}.bind(this)).map(function(e){return a(this,t),e.x}.bind(this)))).map(function(e,n){return a(this,t),{x:e,index:n}}.bind(this)):n&&(e=e[0].values),e},mapToIds:function(t){var e=this;return t.map(function(t){return a(this,e),t.id}.bind(this))},mapToTargetIds:function(t){return t?eo(t)?t.concat():[t]:this.mapToIds(this.data.targets)},hasTarget:function(t,e){for(var n,i=this.mapToIds(t),r=0;n=i[r];r++)if(n===e)return!0;return!1},isTargetToShow:function(t){return this.state.hiddenTargetIds.indexOf(t)<0},isLegendToShow:function(t){return this.state.hiddenLegendIds.indexOf(t)<0},filterTargetsToShow:function(t){var e=this,n=this;return(t||n.data.targets).filter(function(t){return a(this,e),n.isTargetToShow(t.id)}.bind(this))},mapTargetsToUniqueXs:function(t){var e=this,n=this.axis,i=[];return null!=t&&t.length&&(i=_o(mo(t.map(function(t){var n=this;return a(this,e),t.values.map(function(t){return a(this,n),+t.x}.bind(this))}.bind(this)))),i=null!=n&&n.isTimeSeries()?i.map(function(t){return a(this,e),new Date(+t)}.bind(this)):i.map(Number)),To(i)},addTargetIds:function(t,e){var n=this,i=this.state;(eo(e)?e:[e]).forEach(function(e){a(this,n),i[t].indexOf(e)<0&&i[t].push(e)}.bind(this))},removeTargetIds:function(t,e){var n=this,i=this.state;(eo(e)?e:[e]).forEach(function(e){a(this,n);var r=i[t].indexOf(e);r>=0&&i[t].splice(r,1)}.bind(this))},addHiddenTargetIds:function(t){this.addTargetIds("hiddenTargetIds",t)},removeHiddenTargetIds:function(t){this.removeTargetIds("hiddenTargetIds",t)},addHiddenLegendIds:function(t){this.addTargetIds("hiddenLegendIds",t)},removeHiddenLegendIds:function(t){this.removeTargetIds("hiddenLegendIds",t)},getValuesAsIdKeyed:function(t){var e=this,n=this,i=n.state.hasAxis,r={},o=n.isMultipleX(),s=o?n.mapTargetsToUniqueXs(t).map(function(t){return a(this,e),Ya(t)?t:+t}.bind(this)):null;return t.forEach(function(t){var u=this;a(this,e);var c=[];t.values.filter(function(t){var e=t.value;return a(this,u),$a(e)||null===e}.bind(this)).forEach(function(t){a(this,u);var e=t.value;null!==e&&n.isCandlestickType(t)&&(e=eo(e)?e.slice(0,4):[e.open,e.high,e.low,e.close]),eo(e)?c.push.apply(c,e):no(e)&&"high"in e?c.push.apply(c,Object.values(e)):n.isBubbleZType(t)?c.push(i&&n.getBubbleZData(e,"y")):o?c[n.getIndexByX(t.x,s)]=e:c.push(e)}.bind(this)),r[t.id]=c}.bind(this)),r},checkValueInTargets:function(t,e){for(var n,i=Object.keys(t),r=0;r<i.length;r++){n=t[i[r]].values;for(var a=0;a<n.length;a++)if(e(n[a].value))return!0}return!1},hasMultiTargets:function(){return this.filterTargetsToShow().length>1},hasNegativeValueInTargets:function(t){var e=this;return this.checkValueInTargets(t,function(t){return a(this,e),t<0}.bind(this))},hasPositiveValueInTargets:function(t){var e=this;return this.checkValueInTargets(t,function(t){return a(this,e),t>0}.bind(this))},orderTargets:function(t){var e=[].concat(t),n=this.getSortCompareFn();return n&&e.sort(n),e},getSortCompareFn:function(t){var e=this;void 0===t&&(t=!1);var n,i=this.config.data_order,r=/asc/i.test(i),o=/desc/i.test(i);if(r||o){var s=function(t,n){return a(this,e),t+Math.abs(n.value)}.bind(this);n=function(n,i){a(this,e);var o="values"in n?n.values.reduce(s,0):n.value,u="values"in i?i.values.reduce(s,0):i.value;return t?r?o-u:u-o:r?u-o:o-u}.bind(this)}else Ua(i)&&(n=i.bind(this.api));return n||null},filterByX:function(t,e){var n=this;return mo(t.map(function(t){return a(this,n),t.values}.bind(this))).filter(function(t){return a(this,n),t.x-e==0}.bind(this))},filterRemoveNull:function(t){var e=this;return t.filter(function(t){return a(this,e),$a(this.getBaseValue(t))}.bind(this))},filterByXDomain:function(t,e){var n=this;return t.map(function(t){var i=this;return a(this,n),{id:t.id,id_org:t.id_org,values:t.values.filter(function(t){return a(this,i),e[0]<=t.x&&t.x<=e[1]}.bind(this))}}.bind(this))},hasDataLabel:function(){var t=this.config.data_labels;return Wa(t)&&t||Ja(t)&&to(t)},getDataIndexFromEvent:function(t){var e=this.config,n=this.state,i=n.inputType,r=n.eventReceiver,a=r.coords,o=r.rect,s=e.axis_rotated,u="touch"===i&&t.changedTouches?t.changedTouches[0]:t;return go(a,s?u.clientY-o.top:u.clientX-o.left,0,a.length-1,s)},getDataLabelLength:function(t,e,n){var i=this,r=this,o=[0,0];return r.$el.chart.select("svg").selectAll(".dummy").data([t,e]).enter().append("text").text(function(t){return a(this,i),r.dataLabelFormat(t.id)(t)}.bind(this)).each((function(t,e){o[e]=1.3*this.getBoundingClientRect()[n]})).remove(),o},isNoneArc:function(t){return this.hasTarget(this.data.targets,t.id)},isArc:function(t){return"data"in t&&this.hasTarget(this.data.targets,t.data.id)},findSameXOfValues:function(t,e){var n,i=t[e].x,r=[];for(n=e-1;n>=0&&i===t[n].x;n--)r.push(t[n]);for(n=e;n<t.length&&i===t[n].x;n++)r.push(t[n]);return r},findClosestFromTargets:function(t,e){var n=this,i=this,r=t.map(function(t){return a(this,n),i.findClosest(t.values,e)}.bind(this));return i.findClosest(r,e)},findClosest:function(t,e){var n,i=this,r=this,o=r.config,s=r.$el.main,u=t.filter(function(t){return a(this,i),t&&$a(t.value)}.bind(this)),c=o.point_sensitivity;return u.filter(function(t){return a(this,i),r.isBarType(t.id)||r.isCandlestickType(t.id)}.bind(this)).forEach(function(t){a(this,i);var e=r.isBarType(t.id)?"."+Fo.chartBar+"."+Po.target+r.getTargetSelectorSuffix(t.id)+" ."+Fo.bar+"-"+t.index:"."+jo.chartCandlestick+"."+Po.target+r.getTargetSelectorSuffix(t.id)+" ."+jo.candlestick+"-"+t.index+" path";!n&&r.isWithinBar(s.select(e).node())&&(n=t)}.bind(this)),u.filter(function(t){return a(this,i),!r.isBarType(t.id)&&!r.isCandlestickType(t.id)}.bind(this)).forEach(function(t){a(this,i);var o=r.dist(t,e);o<c&&(c=o,n=t)}.bind(this)),n},dist:function(t,e){var n=this,i=n.config.axis_rotated,r=n.scale,a=i?1:0,o=i?0:1,s=n.circleY(t,t.index),u=(r.zoom||r.x)(t.x);return Math.sqrt(Math.pow(u-e[a],2)+Math.pow(s-e[o],2))},convertValuesToStep:function(t){var e=this.axis,n=this.config.line_step_type,i=!!e&&e.isCategorized(),r=eo(t)?t.concat():[t];if(!i&&!/step\-(after|before)/.test(n))return t;var a=r[0],o=r[r.length-1],s=a.id,u=a.x;return r.unshift({x:--u,value:a.value,id:s}),i&&"step-after"===n&&r.unshift({x:--u,value:a.value,id:s}),u=o.x,r.push({x:++u,value:o.value,id:s}),i&&"step-before"===n&&r.push({x:++u,value:o.value,id:s}),r},convertValuesToRange:function(t){var e=this,n=eo(t)?t.concat():[t],i=[];return n.forEach(function(t){a(this,e);var n=t.x,r=t.id;i.push({x:n,id:r,value:t.value[0]}),i.push({x:n,id:r,value:t.value[2]})}.bind(this)),i},updateDataAttributes:function(t,e){var n=this,i=this.config["data_"+t];return Ga(e)||(Object.keys(e).forEach(function(t){a(this,n),i[t]=e[t]}.bind(this)),this.redraw({withLegend:!0})),i},getRangedData:function(t,e,n){void 0===e&&(e=""),void 0===n&&(n="areaRange");var i=null==t?void 0:t.value;if(eo(i)){var r={areaRange:["high","mid","low"],candlestick:["open","high","low","close","volume"]}[n].indexOf(e);return r>=0&&i?i[r]:void 0}return i?i[e]:i},getRatio:function(t,e,n){var i=this;void 0===n&&(n=!1);var r=this,o=r.config,s=r.state,u=r.api,c=0;if(e&&u.data.shown().length)if(c=e.ratio||e.value,"arc"===t)if(r.pie.padAngle()())c=e.value/r.getTotalDataSum(!0);else{var l=o.gauge_fullCircle?r.getArcLength():-2*r.getStartAngle(),h=r.hasType("gauge")?l:2*Math.PI;c=(e.endAngle-e.startAngle)/h}else if("index"===t){var f=u.data.values.bind(u),d=this.getTotalPerIndex();if(s.hiddenTargetIds.length){var g=f(s.hiddenTargetIds,!1);g.length&&(g=g.reduce(function(t,e){var n=this;return a(this,i),t.map(function(t,i){return a(this,n),(Va(t)?t:0)+e[i]}.bind(this))}.bind(this)),d=d.map(function(t,e){return a(this,i),t-g[e]}.bind(this)))}e.ratio=Va(e.value)&&d&&d[e.index]>0?e.value/d[e.index]:0,c=e.ratio}else if("radar"===t)c=parseFloat(Math.max(e.value,0)+"")/s.current.dataMax*o.radar_size_ratio;else if("bar"===t){var p=r.getYScaleById.bind(r)(e.id).domain().reduce(function(t,e){return a(this,i),e-t}.bind(this));c=0===p?0:Math.abs(e.value)/p}return n&&c?100*c:c},updateDataIndexByX:function(t){var e=this,n=t.reduce(function(t,n,i){return a(this,e),t[+n.x]=i,t}.bind(this),{});this.data.targets.forEach(function(t){var i=this;a(this,e),t.values.forEach(function(t,e){a(this,i);var r=n[+t.x];void 0===r&&(r=e),t.index=r}.bind(this))}.bind(this))},isBubbleZType:function(t){return this.isBubbleType(t)&&(no(t.value)&&("z"in t.value||"y"in t.value)||eo(t.value)&&2===t.value.length)},isBarRangeType:function(t){var e=this,n=t.value;return this.isBarType(t)&&eo(n)&&2===n.length&&n.every(function(t){return a(this,e),Va(t)}.bind(this))},getDataById:function(t){var e,n=this.cache.get(t)||this.api.data(t);return null!=(e=null==n?void 0:n[0])?e:n}},au={load:function(t,e){var n,i=this,r=this,o=e.append,s=t;s&&(e.filter&&(s=s.filter(e.filter)),(e.type||e.types)&&s.forEach(function(t){var n;a(this,i);var o=(null==(n=e.types)?void 0:n[t.id])||e.type;r.setTargetType(t.id,o)}.bind(this)),r.data.targets.forEach(function(t){a(this,i);for(var e=0;e<s.length;e++)if(t.id===s[e].id){t.values=o?t.values.concat(s[e].values):s[e].values,s.splice(e,1);break}}.bind(this)),r.data.targets=r.data.targets.concat(s)),r.updateTargets(r.data.targets),r.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),r.updateTypesElements(),null==(n=e.done)||n.call(r.api)},loadFromArgs:function(t){var e=this,n=this;n.config&&(n.cache.reset(),n.convertData(t,function(i){a(this,e);var r=t.data||i;t.append&&(r.__append__=!0),r&&n.load(n.convertDataToTargets(r),t)}.bind(this)))},unload:function(t,e){var n=this,i=this,r=i.state,o=i.$el,s=i.$T,u=e,c=t;if(i.cache.reset(),u||(u=function(){a(this,n)}.bind(this)),c=c.filter(function(t){return a(this,n),i.hasTarget(i.data.targets,t)}.bind(this)),c&&0!==c.length){var l=o.svg.selectAll(c.map(function(t){return a(this,n),i.selectorTarget(t)}.bind(this)));s(l).style("opacity","0").remove().call(ao,u),c.forEach(function(t){var e=this;a(this,n),r.withoutFadeIn[t]=!1,o.legend&&o.legend.selectAll("."+Yo.legendItem+i.getTargetSelectorSuffix(t)).remove(),i.data.targets=i.data.targets.filter(function(n){return a(this,e),n.id!==t}.bind(this))}.bind(this)),i.updateTypesElements()}else u()}},ou=function(t){var e=this;return a(this,undefined),function(){return a(this,e),t}.bind(this)}.bind(void 0);function su(t,e){var n=e.sourceEvent,i=e.subject,r=e.target,a=e.identifier,o=e.active,s=e.x,u=e.y,c=e.dx,l=e.dy,h=e.dispatch;Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:i,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:a,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:h}})}function uu(t){return!t.ctrlKey&&!t.button}function cu(){return this.parentNode}function lu(t,e){return null==e?{x:t.x,y:t.y}:e}function hu(){return navigator.maxTouchPoints||"ontouchstart"in this}function fu(){var t,e,n,i,r=uu,a=cu,o=lu,s=hu,u={},c=qn("start","drag","end"),l=0,h=0;function f(t){t.on("mousedown.drag",d).filter(s).on("touchstart.drag",v).on("touchmove.drag",y,Zn).on("touchend.drag touchcancel.drag",x).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(o,s){if(!i&&r.call(this,o,s)){var u=b(this,a.call(this,o,s),o,s,"mouse");u&&(Pn(o.view).on("mousemove.drag",g,Kn).on("mouseup.drag",p,Kn),ti(o.view),Jn(o),n=!1,t=o.clientX,e=o.clientY,u("start",o))}}function g(i){if(Qn(i),!n){var r=i.clientX-t,a=i.clientY-e;n=r*r+a*a>h}u.mouse("drag",i)}function p(t){Pn(t.view).on("mousemove.drag mouseup.drag",null),ei(t.view,n),Qn(t),u.mouse("end",t)}function v(t,e){if(r.call(this,t,e)){var n,i,o=t.changedTouches,s=a.call(this,t,e),u=o.length;for(n=0;n<u;++n)(i=b(this,s,t,e,o[n].identifier,o[n]))&&(Jn(t),i("start",t,o[n]))}}function y(t){var e,n,i=t.changedTouches,r=i.length;for(e=0;e<r;++e)(n=u[i[e].identifier])&&(Qn(t),n("drag",t,i[e]))}function x(t){var e,n,r=t.changedTouches,a=r.length;for(i&&clearTimeout(i),i=setTimeout((function(){i=null}),500),e=0;e<a;++e)(n=u[r[e].identifier])&&(Jn(t),n("end",t,r[e]))}function b(t,e,n,i,r,a){var s,h,d,g=c.copy(),p=$n(a||n,e);if(null!=(d=o.call(t,new su("beforestart",{sourceEvent:n,target:f,identifier:r,active:l,x:p[0],y:p[1],dx:0,dy:0,dispatch:g}),i)))return s=d.x-p[0]||0,h=d.y-p[1]||0,function n(a,o,c){var v,y=p;switch(a){case"start":u[r]=n,v=l++;break;case"end":delete u[r],--l;case"drag":p=$n(c||o,e),v=l}g.call(a,t,new su(a,{sourceEvent:o,subject:d,target:f,identifier:r,active:v,x:p[0]+s,y:p[1]+h,dx:p[0]-y[0],dy:p[1]-y[1],dispatch:g}),i)}}return f.filter=function(t){return arguments.length?(r="function"==typeof t?t:ou(!!t),f):r},f.container=function(t){return arguments.length?(a="function"==typeof t?t:ou(t),f):a},f.subject=function(t){return arguments.length?(o="function"==typeof t?t:ou(t),f):o},f.touchable=function(t){return arguments.length?(s="function"==typeof t?t:ou(!!t),f):s},f.on=function(){var t=c.on.apply(c,arguments);return t===c?f:t},f.clickDistance=function(t){return arguments.length?(h=(t=+t)*t,f):Math.sqrt(h)},f}su.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var du={selectRectForSingle:function(t,e,n){var i=this,r=this,o=r.config,s=r.$el.main,u=o.data_selection_enabled,c=o.data_selection_grouped,l=o.data_selection_isselectable,h=o.tooltip_grouped,f=r.getAllValuesOnIndex(n);if(!h||(r.showTooltip(f,t),null==r.showGridFocus||r.showGridFocus(f),u&&!c)){s.selectAll("."+Po.EXPANDED+":not(."+ts.shape+"-"+n+")").classed(Po.EXPANDED,!1);var d=s.selectAll("."+ts.shape+"-"+n).classed(Po.EXPANDED,!0).style("cursor",l?"pointer":null).filter((function(t){return r.isWithinShape(this,t)}));d.empty()&&!h&&(null==r.hideGridFocus||r.hideGridFocus(),r.hideTooltip(),c||r.setExpand(n)),d.call(function(o){var s=this;a(this,i);var f=o.data();u&&(c||null!=l&&l.bind(r.api)(f))&&e.style("cursor","pointer"),h||(r.showTooltip(f,t),null==r.showGridFocus||r.showGridFocus(f),null==r.unexpandCircles||r.unexpandCircles(),o.each(function(t){return a(this,s),r.setExpand(n,t.id)}.bind(this)))}.bind(this))}},setExpand:function(t,e,n){var i=this,r=i.config;i.$el.circle&&r.point_focus_expand_enabled&&i.expandCircles(t,e,n),i.expandBarTypeShapes(!0,t,e,n)},expandBarTypeShapes:function(t,e,n,i){var r=this;void 0===t&&(t=!0);var o=this;["bar","candlestick"].filter(function(t){return a(this,r),o.$el[t]}.bind(this)).forEach(function(s){a(this,r),i&&o.$el[s].classed(Po.EXPANDED,!1),o.getShapeByIndex(s,e,n).classed(Po.EXPANDED,t)}.bind(this))},setOverOut:function(t,e){var n=this,i=this,r=i.config,o=i.state.hasRadar,s=i.$el.main,u=no(e);if(u||-1!==e){var c=r[t?"data_onover":"data_onout"].bind(i.api);if(r.color_onover&&i.setOverColor(t,e,u),u)c(e,s.select("."+Do.arc+i.getTargetSelectorSuffix(e.id)).node());else if(r.tooltip_grouped)t&&(r.point_focus_only&&o?i.showCircleFocus(i.getAllValuesOnIndex(e,!0)):i.setExpand(e,null,!0)),i.isMultipleX()||s.selectAll("."+ts.shape+"-"+e).each((function(t){c(t,this)}));else{var l=i.cache.get(Ms)||[],h=s.selectAll("."+ts.shape+"-"+e).filter((function(t){return i.isWithinShape(this,t)})),f=h.filter((function(){var t=this;return l.every(function(e){return a(this,t),e!==this}.bind(this))}));if(!t||h.empty()||l.length===f.size()&&f.nodes().every(function(t,e){return a(this,n),t!==l[e]}.bind(this)))for(;l.length;){var d=l.pop();r.data_onout.bind(i.api)(Pn(d).datum(),d)}f.each((function(){t&&(c(Pn(this).datum(),this),l.push(this))})),i.cache.add(Ms,l)}}},callOverOutForTouch:function(t){var e=this,n=e.cache.get(Os);(no(t)&&n?t.id!==n.id:t!==n)&&((n||Va(n))&&e.setOverOut(!1,n),(t||Va(t))&&e.setOverOut(!0,t),e.cache.add(Os,t))},getDraggableSelection:function(){var t=this,e=this,n=e.config,i=e.state;return n.interaction_enabled&&n.data_selection_draggable&&e.drag?fu().on("drag",(function(t){i.event=t,e.drag(co(t,this))})).on("start",(function(t){i.event=t,e.dragstart(co(t,this))})).on("end",function(n){a(this,t),i.event=n,e.dragend()}.bind(this)):function(){a(this,t)}.bind(this)},dispatchEvent:function(t,e,n){var i=this,r=this,o=r.config,s=r.state,u=s.eventReceiver,c=s.hasAxis,l=s.hasRadar,h=r.$el,f=h.eventRect,d=h.arcs,g=h.radar,p=r.isMultipleX(),v=(l?g.axes.select("."+zo.axis+"-"+e+" text"):f||d.selectAll("."+Po.target+" path").filter(function(t,n){return a(this,i),n===e}.bind(this))).node(),y=v.getBoundingClientRect(),x=y.width,b=y.left,_=y.top;if(c&&!l&&!p){var m=u.coords[e];x=m.w,b+=m.x,_+=m.y}var w=b+(n?n[0]:0)+(p||o.axis_rotated?0:x/2),T=_+(n?n[1]:0);Eo[/^(mouse|click)/.test(t)?"mouse":"touch"](v,t,{screenX:w,screenY:T,clientX:w,clientY:T})},setDragStatus:function(t){this.state.dragging=t},unbindZoomEvent:function(){var t=this.$el,e=t.eventRect,n=t.zoomResetBtn;null==e||e.on(".zoom wheel.zoom .drag",null),null==n||n.on("click",null).style("display","none")},unbindAllEvents:function(){var t=this,e=this,n=e.$el,i=n.arcs,r=n.eventRect,o=n.legend,s=n.region,u=n.svg,c=e.brush;[u,r,null==s?void 0:s.list,null==c?void 0:c.getSelection(),null==i?void 0:i.selectAll("path"),null==o?void 0:o.selectAll("g")].forEach(function(e){return a(this,t),null==e?void 0:e.on("wheel click mouseover mousemove mouseout touchstart touchmove touchend touchstart.eventRect touchmove.eventRect touchend.eventRect .brush .drag .zoom wheel.zoom dblclick.zoom",null)}.bind(this)),null==e.unbindZoomEvent||e.unbindZoomEvent()}},gu={generateClass:function(t,e){return" "+t+" "+(t+this.getTargetSelectorSuffix(e))},getClass:function(t,e){var n=this,i=/s$/.test(t),r=/^(area|arc|line)s?$/.test(t),o=i?"id":"index";return function(s){a(this,n);var u=s.data||s;return((e?this.generateClass(as[i?"shapes":"shape"],u[o]):"")+this.generateClass(as[t],u[r?"id":o])).trim()}.bind(this)},getChartClass:function(t){var e=this;return function(n){return a(this,e),as["chart"+t]+this.classTarget((n.data?n.data:n).id)}.bind(this)},generateExtraLineClass:function(){var t=this.config.line_classes||[],e=[];return function(n){var i,r=n.id||(null==(i=n.data)?void 0:i.id)||n;return e.indexOf(r)<0&&e.push(r),t[e.indexOf(r)%t.length]}},classRegion:function(t,e){return this.generateClass(as.region,e)+" "+("class"in t?t.class:"")},classTarget:function(t){var e=this.config.data_classes[t],n="";return e&&(n=" "+as.target+"-"+e),this.generateClass(as.target,t)+n},classFocus:function(t){return this.classFocused(t)+this.classDefocused(t)},classFocused:function(t){return" "+(this.state.focusedTargetIds.indexOf(t.id)>=0?as.focused:"")},classDefocused:function(t){return" "+(this.state.defocusedTargetIds.indexOf(t.id)>=0?as.defocused:"")},getTargetSelectorSuffix:function(t){return(t||0===t?"-"+t:"").replace(/([\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\])/g,"-")},selectorTarget:function(t,e){var n=e||"",i=this.getTargetSelectorSuffix(t);return n+"."+(as.target+i)+", "+n+"."+(as.circles+i)},selectorTargets:function(t,e){var n=this,i=t||[];return i.length?i.map(function(t){return a(this,n),this.selectorTarget(t,e)}.bind(this)):null},selectorLegend:function(t){return"."+(as.legendItem+this.getTargetSelectorSuffix(t))},selectorLegends:function(t){var e=this;return null!=t&&t.length?t.map(function(t){return a(this,e),this.selectorLegend(t)}.bind(this)):null}};function pu(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vu(t,e){return vu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},vu(t,e)}function yu(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,vu(t,e)}function xu(t){return xu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xu(t)}function bu(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function _u(t,e,n){return _u=bu()?Reflect.construct.bind():function(t,e,n){var i=[null];i.push.apply(i,e);var r=new(Function.bind.apply(t,i));return n&&vu(r,n.prototype),r},_u.apply(null,arguments)}function mu(t){var e="function"==typeof Map?new Map:void 0;return mu=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,i)}function i(){return _u(t,arguments,xu(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),vu(i,t)},mu(t)}function wu(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Tu(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tu(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Tu(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var Au=function(t){function e(e,n){var i;if(void 0===n&&(n=Mu),i=t.call(this)||this,Object.defineProperties(pu(i),{_intern:{value:new Map},_key:{value:n}}),null!=e)for(var r,a=wu(e);!(r=a()).done;){var o=r.value,s=o[0],u=o[1];i.set(s,u)}return i}yu(e,t);var n=e.prototype;return n.get=function(e){return t.prototype.get.call(this,Su(this,e))},n.has=function(e){return t.prototype.has.call(this,Su(this,e))},n.set=function(e,n){return t.prototype.set.call(this,Eu(this,e),n)},n.delete=function(e){return t.prototype.delete.call(this,ku(this,e))},e}(mu(Map));Set;function Su(t,e){var n=t._intern,i=(0,t._key)(e);return n.has(i)?n.get(i):e}function Eu(t,e){var n=t._intern,i=(0,t._key)(e);return n.has(i)?n.get(i):(n.set(i,e),e)}function ku(t,e){var n=t._intern,i=(0,t._key)(e);return n.has(i)&&(e=n.get(i),n.delete(i)),e}function Mu(t){return null!==t&&"object"==typeof t?t.valueOf():t}function Ou(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Ru(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Cu(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cu(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Cu(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var Iu=Symbol("implicit");function Lu(){var t=new Au,e=[],n=[],i=Iu;function r(r){var a=t.get(r);if(void 0===a){if(i!==Iu)return i;t.set(r,a=e.push(r)-1)}return n[a%n.length]}return r.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new Au;for(var i,a=Ru(n);!(i=a()).done;){var o=i.value;t.has(o)||t.set(o,e.push(o)-1)}return r},r.range=function(t){return arguments.length?(n=Array.from(t),r):n.slice()},r.unknown=function(t){return arguments.length?(i=t,r):i},r.copy=function(){return Lu(e,n).unknown(i)},Ou.apply(r,arguments),r}var Pu=function(t,e,n){a(this,undefined);var i=Pn(t.cloneNode(!0));return i.attr("id",n).insert("rect",":first-child").attr("width",i.attr("width")).attr("height",i.attr("height")).style("fill",e),{id:n,node:i.node()}}.bind(void 0);var Du=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],Nu={generateColor:function(){var t=this,e=this,n=e.$el,i=e.config,r=i.data_colors,o=i.data_color,s=[],u=to(i.color_pattern)?i.color_pattern:Lu(function(t){var e=this,n=ws,i=zn.body,r=i[n];if(!r){var o=t.classed(Xo.colorPattern,!0).style("background-image");t.classed(Xo.colorPattern,!1),o.indexOf(";")>-1&&(r=o.replace(/url[^#]*|["'()]|(\s|%20)/g,"").split(";").map(function(t){return a(this,e),t.trim().replace(/[\"'\s]/g,"")}.bind(this)).filter(Boolean),i[n]=r)}return r}(n.chart)||Du).range(),c=u;if(Ua(i.color_tiles)){var l=i.color_tiles.bind(e.api)(),h=u.map(function(n,i){a(this,t);var r=n.replace(/[#\(\)\s,]/g,""),o=e.state.datetimeId+"-pattern-"+r+"-"+i;return Pu(l[i%l.length],n,o)}.bind(this));u=h.map(function(e){return a(this,t),"url(#"+e.id+")"}.bind(this)),e.patterns=h}return function(t){var n,a,l=t.id||(null==(n=t.data)?void 0:n.id)||t,h=e.isTypeOf(l,["line","spline","step"])||!i.data_types[l];return Ua(r[l])?a=r[l].bind(e.api)(t):r[l]?a=r[l]:(s.indexOf(l)<0&&s.push(l),a=h?c[s.indexOf(l)%c.length]:u[s.indexOf(l)%u.length],r[l]=a),Ua(o)?o.bind(e.api)(a,t):a}},generateLevelColor:function(){var t=this.config,e=t.color_pattern,n=t.color_threshold,i="value"===n.unit,r=n.max||100,a=n.values&&n.values.length?n.values:[];return to(n)?function(t){for(var n=i?t:100*t/r,o=e[e.length-1],s=0,u=a.length;s<u;s++)if(n<=a[s]){o=e[s];break}return o}:null},generateDataLabelBackgroundColorFilter:function(t){var e=this,n=this,i=n.$el,r=n.config,o=n.state,s=t||r.data_labels_backgroundColors;if(s){var u=[];Ya(s)?u.push(""):no(s)&&(u=Object.keys(s)),u.forEach(function(r){a(this,e);var u=o.datetimeId+"-labels-bg"+n.getTargetSelectorSuffix(r)+(t?n.getTargetSelectorSuffix(t):"");i.defs.append("filter").attr("x","0").attr("y","0").attr("width","1").attr("height","1").attr("id",u).html('<feFlood flood-color="'+(""===r?s:s[r])+'" /><feComposite in="SourceGraphic"/>')}.bind(this))}},getGradienColortUrl:function(t){return"url(#"+this.state.datetimeId+"-gradient"+this.getTargetSelectorSuffix(t)+")"},updateLinearGradient:function(){var t=this,e=this,n=e.config,i=e.data.targets,r=e.state.datetimeId,o=e.$el.defs;i.forEach(function(i){var s=this;a(this,t);var u=r+"-gradient"+e.getTargetSelectorSuffix(i.id),c=e.isAreaType(i)?"area":e.isBarType(i)&&"bar",l=n.axis_rotated;if(c&&o.select("#"+u).empty()){var h=e.color(i),f=n[c+"_linearGradient"],d=f.x,g=void 0===d?l?[1,0]:[0,0]:d,p=f.y,v=void 0===p?l?[0,0]:[0,1]:p,y=f.stops,x=void 0===y?[[0,h,1],[1,h,0]]:y,b=o.append("linearGradient").attr("id",""+u).attr("x1",g[0]).attr("x2",g[1]).attr("y1",v[0]).attr("y2",v[1]);x.forEach(function(t){a(this,s);var n=Ua(t[1])?t[1].bind(e.api)(i.id):t[1];b.append("stop").attr("offset",t[0]).attr("stop-color",n||h).attr("stop-opacity",t[2])}.bind(this))}}.bind(this))},setOverColor:function(t,e){var n=this,i=this,r=i.config,o=i.$el.main,s=r.color_onover,u=t?s:i.color;no(u)?u=function(t){var e=t.id;return a(this,n),e in s?s[e]:i.color(e)}.bind(this):Ya(u)?u=function(){return a(this,n),s}.bind(this):Ua(s)&&(u=u.bind(i.api)),o.selectAll(no(e)?"."+Do.arc+i.getTargetSelectorSuffix(e.id):"."+ts.shape+"-"+e).style("fill",u)}},zu={getYDomainMinMax:function(t,e){var n=this,i=this,r=i.axis,o=i.config,s="min"===e,u=o.data_groups,c=i.mapToIds(t),l=i.getValuesAsIdKeyed(t);if(u.length>0){var h=i["has"+(s?"Negative":"Positive")+"ValueInTargets"](t);u.forEach(function(t){var e=this;a(this,n);var i=t.filter(function(t){return a(this,e),c.indexOf(t)>=0}.bind(this));if(i.length){var o=i[0],u=r.getId(o);h&&l[o]&&(l[o]=l[o].map(function(t){return a(this,e),(s?t<0:t>0)?t:0}.bind(this))),i.filter(function(t,n){return a(this,e),n>0}.bind(this)).forEach(function(t){var n=this;if(a(this,e),l[t]){var i=r.getId(t);l[t].forEach(function(t,e){a(this,n);var r=+t;i!==u||h&&(s?r>0:r<0)||(l[o][e]+=r)}.bind(this))}}.bind(this))}}.bind(this))}return Ao(e,Object.keys(l).map(function(t){return a(this,n),Ao(e,l[t])}.bind(this)))},isHiddenTargetWithYDomain:function(t){var e=this,n=this;return n.state.hiddenTargetIds.some(function(i){return a(this,e),n.axis.getId(i)===t}.bind(this))},getYDomain:function(t,e,n){var i=this,r=this,o=r.axis,s=r.config,u=r.scale,c="axis_"+e;if(r.isStackNormalized())return[0,100];var l=(null==u?void 0:u[e])&&"log"===u[e].type,h=t.filter(function(t){return a(this,i),o.getId(t.id)===e}.bind(this)),f=n?r.filterByXDomain(h,n):h;if(0===f.length)return r.isHiddenTargetWithYDomain(e)?u[e].domain():"y2"===e?u.y.domain():r.getYDomain(t,"y2",n);var d=s[c+"_min"],g=s[c+"_max"],p=s[c+"_center"],v=s[c+"_inverted"],y=r.hasDataLabel()&&s.axis_rotated,x=r.hasDataLabel()&&!s.axis_rotated,b=r.getYDomainMinMax(f,"min"),_=r.getYDomainMinMax(f,"max"),m=[Fn.BAR,Fn.BUBBLE,Fn.SCATTER].concat(Bn.Line).some(function(t){a(this,i);var e=t.indexOf("area")>-1?"area":t;return r.hasType(t,f,!0)&&s[e+"_zerobased"]}.bind(this));b=$a(d)?d:$a(g)?b<g?b:g-10:b,_=$a(g)?g:$a(d)?d<_?_:d+10:_,isNaN(b)&&(b=0),isNaN(_)&&(_=b),b===_&&(b<0?_=0:b=0);var w=b>=0&&_>=0,T=b<=0&&_<=0;($a(d)&&w||$a(g)&&T)&&(m=!1),m&&(w&&(b=0),T&&(_=0));var A=Math.abs(_-b),S={top:.1*A,bottom:.1*A};if(Ha(p)){var E=Math.max(Math.abs(b),Math.abs(_));_=p+E,b=p-E}if(y){var k=Ka(u.y.range()),M=r.getDataLabelLength(b,_,"width").map(function(t){return a(this,i),t/k}.bind(this));["bottom","top"].forEach(function(t,e){a(this,i),S[t]+=A*(M[e]/(1-M[0]-M[1]))}.bind(this))}else if(x){var O=r.getDataLabelLength(b,_,"height");["bottom","top"].forEach(function(t,e){a(this,i),S[t]+=r.convertPixelToScale("y",O[e],A)}.bind(this))}S=r.getResettedPadding(S);var R=s[c+"_padding"];to(R)&&["bottom","top"].forEach(function(t){a(this,i),S[t]=o.getPadding(R,t,S[t],A)}.bind(this)),m&&(w&&(S.bottom=b),T&&(S.top=-_));var C=l?[b,_].map(function(t){return a(this,i),t<0?0:t}.bind(this)):[b-S.bottom,_+S.top];return v?C.reverse():C},getXDomainMinMax:function(t,e){var n,i=this,r=this.config["axis_x_"+e],o=Ao(e,t.map(function(t){var n=this;return a(this,i),Ao(e,t.values.map(function(t){return a(this,n),t.x}.bind(this)))}.bind(this))),s=no(r)?r.value:r;return s=Ha(s)&&null!=(n=this.axis)&&n.isTimeSeries()?Mo.bind(this)(s):s,no(r)&&r.fit&&("min"===e&&s<o||"max"===e&&s>o)&&(s=void 0),Ha(s)?s:o},getXDomainPadding:function(t,e){var n,i=this,r=i.axis,a=i.config.axis_x_padding,o=r.isTimeSeries()&&e,s=Ka(t);if(r.isCategorized()||o)n=0;else if(i.hasType("bar")){var u=i.getMaxDataCount();n=u>1?s/(u-1)/2:.5}else n=i.getResettedPadding(.01*s);var c=Va(a)?{left:a,right:a}:a,l=c.left,h=void 0===l?n:l,f=c.right,d=void 0===f?n:f;if("px"===a.unit){var g=Math.abs(s+.2*s);h=r.getPadding(a,"left",n,g),d=r.getPadding(a,"right",n,g)}else{var p=s+h+d;if(o&&p){var v=s/e/p;h=h/p/v,d=d/p/v}}return{left:h,right:d}},getXDomain:function(t){var e=this,n=e.axis,i=e.scale.x,r=[e.getXDomainMinMax(t,"min"),e.getXDomainMinMax(t,"max")],a=r[0],o=void 0===a?0:a,s=r[1],u=void 0===s?0:s;if("log"!==i.type){var c=n.isCategorized(),l=n.isTimeSeries(),h=e.getXDomainPadding(r),f=r[0],d=r[1];f-d!=0||c||(l?(f=new Date(.5*f.getTime()),d=new Date(1.5*d.getTime())):(f=0===f?1:.5*f,d=0===d?-1:1.5*d)),(f||0===f)&&(o=l?new Date(f.getTime()-h.left):f-h.left),(d||0===d)&&(u=l?new Date(d.getTime()+h.right):d+h.right)}return[o,u]},updateXDomain:function(t,e,n,i,r){var a,o=this,s=o.config,u=o.org,c=o.scale,l=c.x,h=c.subX,f=s.zoom_enabled;n&&(l.domain(r||To(o.getXDomain(t))),u.xDomain=l.domain(),f&&o.zoom.updateScaleExtent(),h.domain(l.domain()),null==(a=o.brush)||a.scale(h));if(e){var d=r||!o.brush||po(o)?u.xDomain:lo(o).map(h.invert);l.domain(d),f&&o.zoom.updateScaleExtent()}return i&&l.domain(o.trimXDomain(l.orgDomain())),l.domain()},trimXDomain:function(t){var e=this.getZoomDomain(),n=e[0],i=e[1];return t[0]<=n&&(t[1]=+t[1]+(n-t[0]),t[0]=n),i<=t[1]&&(t[0]=+t[0]-(t[1]-i),t[1]=i),t},getZoomDomain:function(){var t=this.config,e=this.org.xDomain,n=e[0],i=e[1];return Ha(t.zoom_x_min)&&(n=Ao("min",[n,t.zoom_x_min])),Ha(t.zoom_x_max)&&(i=Ao("max",[i,t.zoom_x_max])),[n,i]},convertPixelToScale:function(t,e,n){var i=this.config,r=this.state,a=i.axis_rotated;return n*(e/r["x"===t?a?"height":"width":a?"width":"height"])}};function Fu(t,e,n){var i=t.config,r="axis_"+e+"_tick_format";return(i[r]?i[r]:t.defaultValueFormat)(n)}var ju={yFormat:function(t){return Fu(this,"y",t)},y2Format:function(t){return Fu(this,"y2",t)},getDefaultValueFormat:function(){var t=this,e=t.defaultArcValueFormat,n=t.yFormat,i=t.y2Format,r=t.hasArcType(null,["gauge","polar","radar"]);return function(a,o,s){return(r?e:t.axis&&"y2"===t.axis.getId(s)?i:n).call(t,a,o)}},defaultValueFormat:function(t){return $a(t)?+t:""},defaultArcValueFormat:function(t,e){return(100*e).toFixed(1)+"%"},defaultPolarValueFormat:function(t){return""+t},dataLabelFormat:function(t){var e=this,n=this.config.data_labels,i=function(t){return a(this,e),$a(t)?+t:""}.bind(this),r=i;return Ua(n.format)?r=n.format:Ja(n.format)&&(r=n.format[t]?!0===n.format[t]?i:n.format[t]:function(){return a(this,e),""}.bind(this)),r.bind(this.api)}};function Bu(t){var e=this,n=e.getDataById(t);return e.levelColor?e.levelColor(n.values[0].value):e.color(n)}var Xu={initLegend:function(){var t=this,e=t.config,n=t.$el;t.legendItemTextBox={},t.state.legendHasRendered=!1,e.legend_show?(e.legend_contents_bindto||(n.legend=t.$el.svg.append("g").classed(Yo.legend,!0).attr("transform",t.getTranslate("legend"))),t.updateLegend()):t.state.hiddenLegendIds=t.mapToIds(t.data.targets)},updateLegend:function(t,e,n){var i=this,r=i.config,a=i.state,o=i.scale,s=i.$el,u=e||{withTransform:!1,withTransitionForTransform:!1,withTransition:!1};u.withTransition=io(u,"withTransition",!0),u.withTransitionForTransform=io(u,"withTransitionForTransform",!0),r.legend_contents_bindto&&r.legend_contents_template?i.updateLegendTemplate():i.updateLegendElement(t||i.mapToIds(i.data.targets),u,n),s.legend.selectAll("."+Yo.legendItem).classed(Yo.legendItemHidden,(function(t){var e=!i.isTargetToShow(t);return e&&(this.style.opacity=null),e})),i.updateScales(!1,!o.zoom),i.updateSvgSize(),i.transformAll(u.withTransitionForTransform,n),a.legendHasRendered=!0},updateLegendTemplate:function(){var t=this,e=this,n=e.config,i=e.$el,r=Pn(n.legend_contents_bindto),o=n.legend_contents_template;if(!r.empty()){var s=e.mapToIds(e.data.targets),u=[],c="";s.forEach(function(n){a(this,t);var i=Ua(o)?o.bind(e.api)(n,e.color(n),e.api.data(n)[0].values):ko(o,{COLOR:e.color(n),TITLE:n});i&&(u.push(n),c+=i)}.bind(this));var l=r.html(c).selectAll((function(){return this.childNodes})).data(u);e.setLegendItem(l),i.legend=r}},updateSizeForLegend:function(t){var e=this,n=e.config,i=e.state,r=i.isLegendTop,a=i.isLegendLeft,o=i.isLegendRight,s=i.isLegendInset,u=i.current,c=t.width,l=t.height,h={top:r?e.getCurrentPaddingTop()+n.legend_inset_y+5.5:u.height-l-e.getCurrentPaddingBottom()-n.legend_inset_y,left:a?e.getCurrentPaddingLeft()+n.legend_inset_x+.5:u.width-c-e.getCurrentPaddingRight()-n.legend_inset_x+.5};e.state.margin3={top:o?0:s?h.top:u.height-l,right:NaN,bottom:0,left:o?u.width-c:s?h.left:0}},transformLegend:function(t){var e=this,n=e.$el.legend;(0,e.$T)(n,t).attr("transform",e.getTranslate("legend"))},updateLegendStep:function(t){this.state.legendStep=t},updateLegendItemWidth:function(t){this.state.legendItemWidth=t},updateLegendItemHeight:function(t){this.state.legendItemHeight=t},updateLegendItemColor:function(t,e){var n=this.$el.legend;n&&n.select("."+Yo.legendItem+"-"+t+" line").style("stroke",e)},getLegendWidth:function(){var t=this.state,e=t.current.width,n=t.isLegendRight,i=t.isLegendInset,r=t.legendItemWidth,a=t.legendStep;return this.config.legend_show?n||i?r*(a+1):e:0},getLegendHeight:function(){var t=this.state,e=t.current,n=t.isLegendRight,i=t.legendItemHeight,r=t.legendStep;return this.config.legend_show?n?e.height:Math.max(20,i)*(r+1):0},opacityForUnfocusedLegend:function(t){return t.classed(Yo.legendItemHidden)?null:"0.3"},toggleFocusLegend:function(t,e){var n=this,i=this,r=i.$el.legend,o=i.$T,s=i.mapToTargetIds(t);r&&o(r.selectAll("."+Yo.legendItem).filter(function(t){return a(this,n),s.indexOf(t)>=0}.bind(this)).classed(Ho.legendItemFocused,e)).style("opacity",(function(){return e?null:i.opacityForUnfocusedLegend.call(i,Pn(this))}))},revertLegend:function(){var t=this.$el.legend,e=this.$T;t&&e(t.selectAll("."+Yo.legendItem).classed(Ho.legendItemFocused,!1)).style("opacity",null)},showLegend:function(t){var e=this,n=e.config,i=e.$el,r=e.$T;n.legend_show||(n.legend_show=!0,i.legend?i.legend.style("visibility",null):e.initLegend(),e.state.legendHasRendered||e.updateLegend()),e.removeHiddenLegendIds(t),r(i.legend.selectAll(e.selectorLegends(t)).style("visibility",null)).style("opacity",null)},hideLegend:function(t){var e=this,n=e.config,i=e.$el.legend;n.legend_show&&Qa(t)&&(n.legend_show=!1,i.style("visibility","hidden")),e.addHiddenLegendIds(t),i.selectAll(e.selectorLegends(t)).style("opacity","0").style("visibility","hidden")},getLegendItemTextBox:function(t,e){var n,i=this,r=i.cache,a=i.state,o=Es;return t&&((n=!a.redrawing&&r.get(o)||{})[t]||(n[t]=i.getTextRect(e,Yo.legendItem),r.add(o,n)),n=n[t]),n},setLegendItem:function(t){var e=this,n=this,i=n.$el,r=n.api,o=n.config,s=n.state,u="touch"===s.inputType,c=n.hasType("gauge"),l=o.boost_useCssRule;t.attr("class",(function(t){var e=Pn(this);return(!e.empty()&&e.attr("class")||"")+n.generateClass(Yo.legendItem,t)})).style("visibility",function(t){return a(this,e),n.isLegendToShow(t)?null:"hidden"}.bind(this)),o.interaction_enabled&&(l&&[["."+Yo.legendItem,"cursor:pointer"],["."+Yo.legendItem+" text","pointer-events:none"],["."+Yo.legendItemPoint+" text","pointer-events:none"],["."+Yo.legendItemTile,"pointer-events:none"],["."+Yo.legendItemEvent,"fill-opacity:0"]].forEach(function(t){a(this,e);var r=t[0],o=t[1];n.setCssRule(!1,r,[o])(i.legend)}.bind(this)),t.style("cursor",n.getStylePropValue("pointer")).on("click",(function(t,e){ro(o.legend_item_onclick,r,e)||(t.altKey?(r.hide(),r.show(e)):(r.toggle(e),Pn(this).classed(Ho.legendItemFocused,!1))),u&&n.hideTooltip()})),u||t.on("mouseout",(function(t,e){ro(o.legend_item_onout,r,e)||(Pn(this).classed(Ho.legendItemFocused,!1),c&&n.undoMarkOverlapped(n,"."+Uo.gaugeValue),n.api.revert())})).on("mouseover",(function(t,e){ro(o.legend_item_onover,r,e)||(Pn(this).classed(Ho.legendItemFocused,!0),c&&n.markOverlapped(e,n,"."+Uo.gaugeValue),!s.transiting&&n.isTargetToShow(e)&&r.focus(e))})))},updateLegendElement:function(t,e){var n,i,r,o=this,s=this,u=s.config,c=s.state,l=s.$el.legend,h=s.$T,f="circle"!==u.legend_item_tile_type,d=u.legend_item_tile_r,g={width:f?u.legend_item_tile_width:2*d,height:f?u.legend_item_tile_height:2*d},p={padding:{top:4,right:10},max:{width:0,height:0},posMin:10,step:0,tileWidth:g.width+5,totalLength:0},v={offsets:{},widths:{},heights:{},margins:[0],steps:{}},y=t.filter(function(t){return a(this,o),!Ha(u.data_names[t])||null!==u.data_names[t]}.bind(this)),x=e.withTransition,b=s.getUpdateLegendPositions(y,p,v);c.isLegendInset&&(p.step=u.legend_inset_step?u.legend_inset_step:y.length,s.updateLegendStep(p.step)),c.isLegendRight?(n=function(t){return a(this,o),p.max.width*v.steps[t]}.bind(this),i=function(t){return a(this,o),v.margins[v.steps[t]]+v.offsets[t]}.bind(this)):c.isLegendInset?(n=function(t){return a(this,o),p.max.width*v.steps[t]+10}.bind(this),i=function(t){return a(this,o),v.margins[v.steps[t]]+v.offsets[t]}.bind(this)):(n=function(t){return a(this,o),v.margins[v.steps[t]]+v.offsets[t]}.bind(this),i=function(t){return a(this,o),p.max.height*v.steps[t]}.bind(this));var _={xText:function(t,e){return a(this,o),n(t,e)+4+g.width}.bind(this),xRect:function(t,e){return a(this,o),n(t,e)}.bind(this),x1Tile:function(t,e){return a(this,o),n(t,e)-2}.bind(this),x2Tile:function(t,e){return a(this,o),n(t,e)-2+g.width}.bind(this),yText:function(t,e){return a(this,o),i(t,e)+9}.bind(this),yRect:function(t,e){return a(this,o),i(t,e)-5}.bind(this),yTile:function(t,e){return a(this,o),i(t,e)+4}.bind(this)};s.generateLegendItem(y,g,b,_),r=l.select("."+Yo.legendBackground+" rect"),c.isLegendInset&&p.max.width>0&&0===r.size()&&(r=l.insert("g","."+Yo.legendItem).attr("class",Yo.legendBackground).append("rect"));var m=l.selectAll("text").data(y).text(function(t){return a(this,o),Ha(u.data_names[t])?u.data_names[t]:t}.bind(this)).each((function(t,e){b(this,t,e)}));h(m,x).attr("x",_.xText).attr("y",_.yText),h(l.selectAll("rect."+Yo.legendItemEvent).data(y),x).attr("width",function(t){return a(this,o),v.widths[t]}.bind(this)).attr("height",function(t){return a(this,o),v.heights[t]}.bind(this)).attr("x",_.xRect).attr("y",_.yRect),s.updateLegendItemPos(y,x,_),r&&h(r,x).attr("height",s.getLegendHeight()-12).attr("width",p.max.width*(p.step+1)+10),s.updateLegendItemWidth(p.max.width),s.updateLegendItemHeight(p.max.height),s.updateLegendStep(p.step)},getUpdateLegendPositions:function(t,e,n){var i=this,r=i.config,o=i.state,s=o.isLegendRight||o.isLegendInset;return function(u,c,l){var h,f=this,d=l===t.length-1,g=i.getLegendItemTextBox(c,u),p=g.width+e.tileWidth+(d&&!s?0:e.padding.right)+r.legend_padding,v=g.height+e.padding.top,y=s?v:p,x=s?i.getLegendHeight():i.getLegendWidth(),b=function(t,i){i||(h=(x-e.totalLength-y)/2)<e.posMin&&(h=(x-y)/2,e.totalLength=0,e.step++),n.steps[t]=e.step,n.margins[e.step]=o.isLegendInset?10:h,n.offsets[t]=e.totalLength,e.totalLength+=y};if(0===l&&(e.totalLength=0,e.step=0,e.max.width=0,e.max.height=0),r.legend_show&&!i.isLegendToShow(c))return n.widths[c]=0,n.heights[c]=0,n.steps[c]=0,void(n.offsets[c]=0);n.widths[c]=p,n.heights[c]=v,(!e.max.width||p>=e.max.width)&&(e.max.width=p),(!e.max.height||v>=e.max.height)&&(e.max.height=v);var _=s?e.max.height:e.max.width;r.legend_equally?(Object.keys(n.widths).forEach(function(t){return a(this,f),n.widths[t]=e.max.width}.bind(this)),Object.keys(n.heights).forEach(function(t){return a(this,f),n.heights[t]=e.max.height}.bind(this)),(h=(x-_*t.length)/2)<e.posMin?(e.totalLength=0,e.step=0,t.forEach(function(t){return a(this,f),b(t)}.bind(this))):b(c,!0)):b(c)}},generateLegendItem:function(t,e,n,i){var r=this,o=this,s=o.config,u=o.state,c=o.$el.legend,l=s.legend_usePoint,h=s.legend_item_tile_r,f=s.legend_item_tile_type,d="circle"!==f,g=u.isLegendRight||u.isLegendInset,p=c.selectAll("."+Yo.legendItem).data(t).enter().append("g");if(o.setLegendItem(p),p.append("text").text(function(t){return a(this,r),Ha(s.data_names[t])?s.data_names[t]:t}.bind(this)).each((function(t,e){n(this,t,e)})).style("pointer-events",o.getStylePropValue("none")).attr("x",g?i.xText:-200).attr("y",g?-200:i.yText),p.append("rect").attr("class",Yo.legendItemEvent).style("fill-opacity",o.getStylePropValue("0")).attr("x",g?i.xRect:-200).attr("y",g?-200:i.yRect),l){var v=[];p.append(function(t){a(this,r);var e=to(s.point_pattern)?s.point_pattern:[s.point_type];-1===v.indexOf(t)&&v.push(t);var n=e[v.indexOf(t)%e.length];return"rectangle"===n&&(n="rect"),zn.createElementNS(Pe.svg,"hasValidPointType"in o&&o.hasValidPointType(n)?n:"use")}.bind(this)).attr("class",Yo.legendItemPoint).style("fill",Bu.bind(o)).style("pointer-events",o.getStylePropValue("none")).attr("href",function(t,e,n){a(this,r);var i=n[e].nodeName.toLowerCase(),s=o.getTargetSelectorSuffix(t);return"use"===i?"#"+u.datetimeId+"-point"+s:void 0}.bind(this))}else p.append(d?"line":f).attr("class",Yo.legendItemTile).style("stroke",Bu.bind(o)).style("pointer-events",o.getStylePropValue("none")).call(function(t){a(this,r),"circle"===f?t.attr("r",h).style("fill",Bu.bind(o)).attr("cx",g?i.x2Tile:-200).attr("cy",g?-200:i.yTile):d&&t.attr("stroke-width",e.height).attr("x1",g?i.x1Tile:-200).attr("y1",g?-200:i.yTile).attr("x2",g?i.x2Tile:-200).attr("y2",g?-200:i.yTile)}.bind(this))},updateLegendItemPos:function(t,e,n){var i=this,r=this,o=r.config,s=r.$el.legend,u=r.$T,c=o.legend_usePoint,l=o.legend_item_tile_type;c?u(s.selectAll("."+Yo.legendItemPoint).data(t),e).each((function(){var t=this,e=this.nodeName.toLowerCase(),i=o.point_r,r="x",s="y",u=2,c=2.5,l=null,h=null,f=null;if("circle"===e){var d=.2*i;r="cx",s="cy",l=i+d,u=2*i,c=-d}else if("rect"===e){var g=2.5*i;h=g,f=g,c=3}Pn(this).attr(r,function(e){return a(this,t),n.x1Tile(e)+u}.bind(this)).attr(s,function(e){return a(this,t),n.yTile(e)-c}.bind(this)).attr("r",l).attr("width",h).attr("height",f)})):u(s.selectAll("."+Yo.legendItemTile).data(t),e).style("stroke",Bu.bind(r)).call(function(t){var e=this;a(this,i),"circle"===l?t.attr("cx",function(t){a(this,e);var i=n.x2Tile(t);return i-(i-n.x1Tile(t))/2}.bind(this)).attr("cy",n.yTile):"circle"!==l&&t.attr("x1",n.x1Tile).attr("y1",n.yTile).attr("x2",n.x2Tile).attr("y2",n.yTile)}.bind(this))}},$u={redraw:function(t){var e,n=this;void 0===t&&(t={});var i=this,r=i.config,o=i.state,s=i.$el,u=s.main;o.redrawing=!0;var c=i.filterTargetsToShow(i.data.targets),l=t,h=l.flow,f=l.initializing,d=i.getWithOption(t),g=d.Transition?r.transition_duration:0,p=d.TransitionForExit?g:0,v=d.TransitionForAxis?g:0,y=null==(e=i.axis)?void 0:e.generateTransitions(v);i.updateSizes(f),d.Legend&&r.legend_show?(t.withTransition=!!g,i.updateLegend(i.mapToIds(i.data.targets),t,y)):d.Dimension&&i.updateDimension(!0),i.hasArcType()&&!o.hasRadar||i.updateCircleY&&(i.circleY=i.updateCircleY()),o.hasAxis?(i.axis.redrawAxis(c,d,y,h,f),r.data_empty_label_text&&u.select("text."+ns.text+"."+Po.empty).attr("x",o.width/2).attr("y",o.height/2).text(r.data_empty_label_text).style("display",c.length?"none":null),i.hasGrid()&&i.updateGrid(),r.regions.length&&i.updateRegion(),["bar","candlestick","line","area"].forEach(function(t){a(this,n);var e=yo(t);(/^(line|area)$/.test(t)&&i.hasTypeOf(e)||i.hasType(t))&&i["update"+e](d.TransitionForExit)}.bind(this)),s.text&&u.selectAll("."+Qo.selectedCircles).filter(i.isBarType.bind(i)).selectAll("circle").remove(),r.interaction_enabled&&!h&&d.EventRect&&(i.redrawEventRect(),null==i.bindZoomEvent||i.bindZoomEvent())):(s.arcs&&i.redrawArc(g,p,d.Transform),s.radar&&i.redrawRadar(),s.polar&&i.redrawPolar()),o.resizing||!i.hasPointType()&&!o.hasRadar||i.updateCircle(),i.hasDataLabel()&&!i.hasArcType(null,["radar"])&&i.updateText(),null==i.redrawTitle||i.redrawTitle(),f&&i.updateTypesElements(),i.generateRedrawList(c,h,g,d.Subchart),i.callPluginHook("$redraw",t,g)},generateRedrawList:function(t,e,n,i){var r=this,o=this,s=o.config,u=o.state,c=o.getDrawShape();u.hasAxis&&s.subchart_show&&o.redrawSubchart(i,n,c);var l=e&&o.generateFlow({targets:t,flow:e,duration:e.duration,shape:c,xv:o.xv.bind(o)}),h=(n||l)&&Oo(),f=o.getRedrawList(c,e,l,h),d=function(){a(this,r),l&&l(),u.redrawing=!1,ro(s.onrendered,o.api)}.bind(this);if(d)if(h&&f.length){var g=Ps();ra().duration(n).each(function(){var t=this;a(this,r),f.reduce(function(e,n){return a(this,t),e.concat(n)}.bind(this),[]).forEach(function(e){return a(this,t),g.add(e)}.bind(this))}.bind(this)).call(g,d)}else u.transiting||d();o.mapToIds(o.data.targets).forEach(function(t){a(this,r),u.withoutFadeIn[t]=!0}.bind(this))},getRedrawList:function(t,e,n,i){var r=this,o=this,s=o.config,u=o.state,c=u.hasAxis,l=u.hasRadar,h=o.$el.grid,f=t.pos,d=f.cx,g=f.cy,p=f.xForText,v=f.yForText,y=[];return c&&((s.grid_x_lines.length||s.grid_y_lines.length)&&y.push(o.redrawGrid(i)),s.regions.length&&y.push(o.redrawRegion(i)),Object.keys(t.type).forEach(function(e){a(this,r);var n=yo(e),s=t.type[e];(/^(area|line)$/.test(e)&&o.hasTypeOf(n)||o.hasType(e))&&y.push(o["redraw"+n](s,i))}.bind(this)),!e&&h.main&&y.push(o.updateGridFocus())),o.hasArcType()&&!l||to(s.data_labels)&&!1!==s.data_labels&&y.push(o.redrawText(p,v,e,i)),!o.hasPointType()&&!l||s.point_focus_only||o.redrawCircle&&y.push(o.redrawCircle(d,g,i,n)),y},updateAndRedraw:function(t){void 0===t&&(t={});var e,n=this,i=n.config,r=n.state;t.withTransition=io(t,"withTransition",!0),t.withTransform=io(t,"withTransform",!1),t.withLegend=io(t,"withLegend",!1),t.withUpdateXDomain=!0,t.withUpdateOrgXDomain=!0,t.withTransitionForExit=!1,t.withTransitionForTransform=io(t,"withTransitionForTransform",t.withTransition),t.withLegend&&i.legend_show||(r.hasAxis&&(e=n.axis.generateTransitions(t.withTransitionForAxis?i.transition_duration:0)),n.updateScales(),n.updateSvgSize(),n.transformAll(t.withTransitionForTransform,e)),n.redraw(t,e)},redrawWithoutRescale:function(){this.redraw({withY:!1,withDimension:!1,withLegend:!1,withSubchart:!1,withEventRect:!1,withTransitionForAxis:!1})}},Uu=Math.sqrt(50),Yu=Math.sqrt(10),Vu=Math.sqrt(2);function Gu(t,e,n){var i,r,a,o,s=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];if((i=e<t)&&(r=t,t=e,e=r),0===(o=Hu(t,e,n))||!isFinite(o))return[];if(o>0){var u=Math.round(t/o),c=Math.round(e/o);for(u*o<t&&++u,c*o>e&&--c,a=Array(r=c-u+1);++s<r;)a[s]=(u+s)*o}else{o=-o;var l=Math.round(t*o),h=Math.round(e*o);for(l/o<t&&++l,h/o>e&&--h,a=Array(r=h-l+1);++s<r;)a[s]=(l+s)/o}return i&&a.reverse(),a}function Hu(t,e,n){var i=(e-t)/Math.max(0,n),r=Math.floor(Math.log(i)/Math.LN10),a=i/Math.pow(10,r);return r>=0?(a>=Uu?10:a>=Yu?5:a>=Vu?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(a>=Uu?10:a>=Yu?5:a>=Vu?2:1)}function Wu(t,e,n){var i=Math.abs(e-t)/Math.max(0,n),r=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),a=i/r;return a>=Uu?r*=10:a>=Yu?r*=5:a>=Vu&&(r*=2),e<t?-r:r}function qu(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Zu(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Ku(t){var e,n,i,r=this;function o(t,i,r,a){if(void 0===r&&(r=0),void 0===a&&(a=t.length),r<a){if(0!==e(i,i))return a;do{var o=r+a>>>1;n(t[o],i)<0?r=o+1:a=o}while(r<a)}return r}return 2!==t.length?(e=qu,n=function(e,n){return a(this,r),qu(t(e),n)}.bind(this),i=function(e,n){return a(this,r),t(e)-n}.bind(this)):(e=t===qu||t===Zu?t:Ju,n=t,i=t),{left:o,center:function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=t.length);var a=o(t,e,n,r-1);return a>n&&i(t[a-1],e)>-i(t[a],e)?a-1:a},right:function(t,i,r,a){if(void 0===r&&(r=0),void 0===a&&(a=t.length),r<a){if(0!==e(i,i))return a;do{var o=r+a>>>1;n(t[o],i)<=0?r=o+1:a=o}while(r<a)}return r}}}function Ju(){return 0}var Qu=Ku(qu),tc=Qu.right,ec=(Qu.left,Ku((function(t){return null===t?NaN:+t})).center,tc);function nc(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function ic(t){return+t}var rc=[0,1];function ac(t){return t}function oc(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function sc(t,e,n){var i=t[0],r=t[1],a=e[0],o=e[1];return r<i?(i=oc(r,i),a=n(o,a)):(i=oc(i,r),a=n(a,o)),function(t){return a(i(t))}}function uc(t,e,n){var i=Math.min(t.length,e.length)-1,r=Array(i),a=Array(i),o=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<i;)r[o]=oc(t[o],t[o+1]),a[o]=n(e[o],e[o+1]);return function(e){var n=ec(t,e,1,i)-1;return a[n](r[n](e))}}function cc(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function lc(){var t,e,n,i,r,a,o=rc,s=rc,u=Zi,c=ac;function l(){var t,e,n,u=Math.min(o.length,s.length);return c!==ac&&(t=o[0],e=o[u-1],t>e&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),i=u>2?uc:sc,r=a=null,h}function h(e){return null==e||isNaN(e=+e)?n:(r||(r=i(o.map(t),s,u)))(t(c(e)))}return h.invert=function(n){return c(e((a||(a=i(s,o.map(t),Vi)))(n)))},h.domain=function(t){return arguments.length?(o=Array.from(t,ic),l()):o.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),l()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),u=nc,l()},h.clamp=function(t){return arguments.length?(c=!!t||ac,l()):c!==ac},h.interpolate=function(t){return arguments.length?(u=t,l()):u},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,i){return t=n,e=i,l()}}function hc(){return lc()(ac,ac)}var fc,dc=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function gc(t){if(!(e=dc.exec(t)))throw new Error("invalid format: "+t);var e;return new pc({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function pc(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function vc(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function yc(t){return(t=vc(Math.abs(t)))?t[1]:NaN}function xc(t,e){var n=vc(t,e);if(!n)return t+"";var i=n[0],r=n[1];return r<0?"0."+Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+Array(r-i.length+2).join("0")}gc.prototype=pc.prototype,pc.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var bc=void 0,_c={"%":function(t,e){return a(this,bc),(100*t).toFixed(e)}.bind(void 0),b:function(t){return a(this,bc),Math.round(t).toString(2)}.bind(void 0),c:function(t){return a(this,bc),t+""}.bind(void 0),d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return a(this,bc),t.toExponential(e)}.bind(void 0),f:function(t,e){return a(this,bc),t.toFixed(e)}.bind(void 0),g:function(t,e){return a(this,bc),t.toPrecision(e)}.bind(void 0),o:function(t){return a(this,bc),Math.round(t).toString(8)}.bind(void 0),p:function(t,e){return a(this,bc),xc(100*t,e)}.bind(void 0),r:xc,s:function(t,e){var n=vc(t,e);if(!n)return t+"";var i=n[0],r=n[1],a=r-(fc=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,o=i.length;return a===o?i:a>o?i+Array(a-o+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+Array(1-a).join("0")+vc(t,Math.max(0,e+a-1))[0]},X:function(t){return a(this,bc),Math.round(t).toString(16).toUpperCase()}.bind(void 0),x:function(t){return a(this,bc),Math.round(t).toString(16)}.bind(void 0)};function mc(t){return t}var wc,Tc,Ac,Sc=Array.prototype.map,Ec=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function kc(t){var e,n,i=void 0===t.grouping||void 0===t.thousands?mc:(e=Sc.call(t.grouping,Number),n=t.thousands+"",function(t,i){for(var r=t.length,a=[],o=0,s=e[0],u=0;r>0&&s>0&&(u+s+1>i&&(s=Math.max(1,i-u)),a.push(t.substring(r-=s,r+s)),!((u+=s+1)>i));)s=e[o=(o+1)%e.length];return a.reverse().join(n)}),r=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?mc:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Sc.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function h(t){var e=(t=gc(t)).fill,n=t.align,h=t.sign,f=t.symbol,d=t.zero,g=t.width,p=t.comma,v=t.precision,y=t.trim,x=t.type;"n"===x?(p=!0,x="g"):_c[x]||(void 0===v&&(v=12),y=!0,x="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var b="$"===f?r:"#"===f&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",_="$"===f?a:/[%p]/.test(x)?u:"",m=_c[x],w=/[defgprs%]/.test(x);function T(t){var r,a,u,f=b,T=_;if("c"===x)T=m(t)+T,t="";else{var A=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:m(Math.abs(t),v),y&&(t=function(t){t:for(var e,n=t.length,i=1,r=-1;i<n;++i)switch(t[i]){case".":r=e=i;break;case"0":0===r&&(r=i),e=i;break;default:if(!+t[i])break t;r>0&&(r=0)}return r>0?t.slice(0,r)+t.slice(e+1):t}(t)),A&&0==+t&&"+"!==h&&(A=!1),f=(A?"("===h?h:c:"-"===h||"("===h?"":h)+f,T=("s"===x?Ec[8+fc/3]:"")+T+(A&&"("===h?")":""),w)for(r=-1,a=t.length;++r<a;)if(48>(u=t.charCodeAt(r))||u>57){T=(46===u?o+t.slice(r+1):t.slice(r))+T,t=t.slice(0,r);break}}p&&!d&&(t=i(t,1/0));var S=f.length+t.length+T.length,E=S<g?Array(g-S+1).join(e):"";switch(p&&d&&(t=i(E+t,E.length?g-T.length:1/0),E=""),n){case"<":t=f+t+T+E;break;case"=":t=f+E+t+T;break;case"^":t=E.slice(0,S=E.length>>1)+f+t+T+E.slice(S);break;default:t=E+f+t+T}return s(t)}return v=void 0===v?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),T.toString=function(){return t+""},T}return{format:h,formatPrefix:function(t,e){var n=h(((t=gc(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(yc(e)/3))),r=Math.pow(10,-i),a=Ec[8+i/3];return function(t){return n(r*t)+a}}}}function Mc(t,e,n,i){var r,a=Wu(t,e,n);switch((i=gc(null==i?",f":i)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=i.precision||isNaN(r=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(yc(e)/3)))-yc(Math.abs(t)))}(a,o))||(i.precision=r),Ac(i,o);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(r=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,yc(e)-yc(t))+1}(a,Math.max(Math.abs(t),Math.abs(e))))||(i.precision=r-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(r=function(t){return Math.max(0,-yc(Math.abs(t)))}(a))||(i.precision=r-2*("%"===i.type))}return Tc(i)}function Oc(t){var e=t.domain;return t.ticks=function(t){var n=e();return Gu(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var i=e();return Mc(i[0],i[i.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var i,r,a=e(),o=0,s=a.length-1,u=a[o],c=a[s],l=10;for(c<u&&(r=u,u=c,c=r,r=o,o=s,s=r);l-- >0;){if((r=Hu(u,c,n))===i)return a[o]=u,a[s]=c,e(a);if(r>0)u=Math.floor(u/r)*r,c=Math.ceil(c/r)*r;else{if(!(r<0))break;u=Math.ceil(u*r)/r,c=Math.floor(c*r)/r}i=r}return t},t}function Rc(){var t=hc();return t.copy=function(){return cc(t,Rc())},Ou.apply(t,arguments),Oc(t)}function Cc(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Ic(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Lc(t){var e=1,n=t(Cc(e),Ic(e));return n.constant=function(n){return arguments.length?t(Cc(e=+n),Ic(e)):e},Oc(n)}function Pc(){var t=Lc(lc());return t.copy=function(){return cc(t,Pc()).constant(t.constant())},Ou.apply(t,arguments)}function Dc(t,e){var n,i=0,r=(t=t.slice()).length-1,a=t[i],o=t[r];return o<a&&(n=i,i=r,r=n,n=a,a=o,o=n),t[i]=e.floor(a),t[r]=e.ceil(o),t}function Nc(t){return Math.log(t)}function zc(t){return Math.exp(t)}function Fc(t){return-Math.log(-t)}function jc(t){return-Math.exp(-t)}function Bc(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Xc(t){var e=this;return function(n,i){return a(this,e),-t(-n,i)}.bind(this)}function $c(t){var e,n,i=this,r=t(Nc,zc),o=r.domain,s=10;function u(){return e=function(t){var e=this;return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(n){return a(this,e),Math.log(n)/t}.bind(this))}(s),n=function(t){var e=this;return 10===t?Bc:t===Math.E?Math.exp:function(n){return a(this,e),Math.pow(t,n)}.bind(this)}(s),o()[0]<0?(e=Xc(e),n=Xc(n),t(Fc,jc)):t(Nc,zc),r}return r.base=function(t){return arguments.length?(s=+t,u()):s},r.domain=function(t){return arguments.length?(o(t),u()):o()},r.ticks=function(t){a(this,i);var r=o(),u=r[0],c=r[r.length-1],l=c<u;if(l){var h=[c,u];u=h[0],c=h[1]}var f,d,g=e(u),p=e(c),v=null==t?10:+t,y=[];if(!(s%1)&&p-g<v){if(g=Math.floor(g),p=Math.ceil(p),u>0){for(;g<=p;++g)for(f=1;f<s;++f)if(!((d=g<0?f/n(-g):f*n(g))<u)){if(d>c)break;y.push(d)}}else for(;g<=p;++g)for(f=s-1;f>=1;--f)if(!((d=g>0?f/n(-g):f*n(g))<u)){if(d>c)break;y.push(d)}2*y.length<v&&(y=Gu(u,c,v))}else y=Gu(g,p,Math.min(p-g,v)).map(n);return l?y.reverse():y}.bind(this),r.tickFormat=function(t,o){var u=this;if(a(this,i),null==t&&(t=10),null==o&&(o=10===s?"s":","),"function"!=typeof o&&(s%1||null!=(o=gc(o)).precision||(o.trim=!0),o=Tc(o)),t===1/0)return o;var c=Math.max(1,s*t/r.ticks().length);return function(t){a(this,u);var i=t/n(Math.round(e(t)));return i*s<s-.5&&(i*=s),i<=c?o(t):""}.bind(this)}.bind(this),r.nice=function(){var t=this;return a(this,i),o(Dc(o(),{floor:function(i){return a(this,t),n(Math.floor(e(i)))}.bind(this),ceil:function(i){return a(this,t),n(Math.ceil(e(i)))}.bind(this)}))}.bind(this),r}function Uc(){var t=this,e=$c(lc()).domain([1,10]);return e.copy=function(){return a(this,t),cc(e,Uc()).base(e.base())}.bind(this),Ou.apply(e,arguments),e}!function(t){wc=kc(t),Tc=wc.format,Ac=wc.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});var Yc=u((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));Yc.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?u((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):Yc:null};var Vc=Yc,Gc=(Yc.range,u((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*c)}),(function(t,e){return(e-t)/c}),(function(t){return t.getUTCSeconds()}))),Hc=Gc,Wc=(Gc.range,u((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*c)}),(function(t,e){t.setTime(+t+e*l)}),(function(t,e){return(e-t)/l}),(function(t){return t.getMinutes()}))),qc=Wc,Zc=(Wc.range,u((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*c-t.getMinutes()*l)}),(function(t,e){t.setTime(+t+e*h)}),(function(t,e){return(e-t)/h}),(function(t){return t.getHours()}))),Kc=Zc,Jc=(Zc.range,u((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),Qc=Jc,tl=(Jc.range,u((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*l)}),(function(t,e){return(e-t)/l}),(function(t){return t.getUTCMinutes()}))),el=tl,nl=(tl.range,u((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*h)}),(function(t,e){return(e-t)/h}),(function(t){return t.getUTCHours()}))),il=nl,rl=(nl.range,u((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}))),al=rl;rl.range;function ol(t,e,n,i,r,o){var s=[[Hc,1,c],[Hc,5,5e3],[Hc,15,15e3],[Hc,30,3e4],[o,1,l],[o,5,3e5],[o,15,9e5],[o,30,18e5],[r,1,h],[r,3,108e5],[r,6,216e5],[r,12,432e5],[i,1,f],[i,2,1728e5],[n,1,d],[e,1,g],[e,3,7776e6],[t,1,p]];function u(e,n,i){var r=this,o=Math.abs(n-e)/i,u=Ku(function(t){var e=t[2];return a(this,r),e}.bind(this)).right(s,o);if(u===s.length)return t.every(Wu(e/p,n/p,i));if(0===u)return Vc.every(Math.max(Wu(e,n,i),1));var c=s[o/s[u-1][2]<s[u][2]/o?u-1:u],l=c[0],h=c[1];return l.every(h)}return[function(t,e,n){var i=e<t;if(i){var r=[e,t];t=r[0],e=r[1]}var a=n&&"function"==typeof n.range?n:u(t,e,n),o=a?a.range(t,+e+1):[];return i?o.reverse():o},u]}var sl=ol(B,al,y,S,il,el),ul=sl[0],cl=sl[1],ll=ol(F,Qc,k,N,Kc,qc),hl=ll[0],fl=ll[1];function dl(t){return new Date(t)}function gl(t){return t instanceof Date?+t:+new Date(+t)}function pl(t,e,n,i,r,a,o,s,u,c){var l=hc(),h=l.invert,f=l.domain,d=c(".%L"),g=c(":%S"),p=c("%I:%M"),v=c("%I %p"),y=c("%a %d"),x=c("%b %d"),b=c("%B"),_=c("%Y");function m(t){return(u(t)<t?d:s(t)<t?g:o(t)<t?p:a(t)<t?v:i(t)<t?r(t)<t?y:x:n(t)<t?b:_)(t)}return l.invert=function(t){return new Date(h(t))},l.domain=function(t){return arguments.length?f(Array.from(t,gl)):f().map(dl)},l.ticks=function(e){var n=f();return t(n[0],n[n.length-1],null==e?10:e)},l.tickFormat=function(t,e){return null==e?m:c(e)},l.nice=function(t){var n=f();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?f(Dc(n,t)):l},l.copy=function(){return cc(l,pl(t,e,n,i,r,a,o,s,u,c))},l}function vl(){return Ou.apply(pl(hl,fl,F,Qc,k,N,Kc,qc,Hc,V).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function yl(){return Ou.apply(pl(ul,cl,B,al,y,S,il,el,Hc,H).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function xl(t,e,n){void 0===t&&(t="linear"),void 0===e&&(e=0),void 0===n&&(n=1);var i={linear:Rc,log:Pc,_log:Uc,time:vl,utc:yl}[t]();return i.type=t,/_?log/.test(t)&&i.clamp(!0),i.range([e,n])}var bl={getXScale:function(t,e,n,i){var r=this,a=r.scale.zoom||xl(r.axis.getAxisType("x"),t,e);return r.getCustomizedScale(n?a.domain(n):a,i)},getYScale:function(t,e,n,i){var r=xl(this.axis.getAxisType(t),e,n);return i&&r.domain(i),r},getYScaleById:function(t,e){void 0===e&&(e=!1);var n="y2"===this.axis.getId(t),i=e?n?"subY2":"subY":n?"y2":"y";return this.scale[i]},getCustomizedScale:function(t,e){var n=this,i=this,r=e||function(){return a(this,n),i.axis.x.tickOffset()}.bind(this),o=function(e,n){var i=t(e)+r();return n?i:Math.ceil(i)};for(var s in t)o[s]=t[s];return o.orgDomain=function(){return a(this,n),t.domain()}.bind(this),o.orgScale=function(){return a(this,n),t}.bind(this),i.axis.isCategorized()&&(o.domain=function(e){var n=e;return arguments.length?(t.domain(n),o):[(n=this.orgDomain())[0],n[1]+1]}),o},updateScales:function(t,e){var n=this;void 0===e&&(e=!0);var i=this,r=i.axis,o=i.config,s=i.format,u=i.org,c=i.scale,l=i.state,h=l.width,f=l.height,d=l.width2,g=l.height2;if(l.hasAxis){var p,v=o.axis_rotated,y=i.getResettedPadding(1),x={x:v?y:0,y:v?0:f,subX:v?1:0,subY:v?0:g},b={x:v?f:h,y:v?h:y,subX:v?f:h,subY:v?d:1},_=e&&(null==(p=c.x)?void 0:p.orgDomain()),m=e&&u.xDomain;c.x=i.getXScale(x.x,b.x,_,function(){return a(this,n),r.x.tickOffset()}.bind(this)),c.subX=i.getXScale(x.x,b.x,m,function(t){var e;return a(this,n),t%1?0:(null!=(e=r.subX)?e:r.x).tickOffset()}.bind(this)),s.xAxisTick=r.getXAxisTickFormat(),s.subXAxisTick=r.getXAxisTickFormat(!0),r.setAxis("x",c.x,o.axis_x_tick_outer,t),o.subchart_show&&r.setAxis("subX",c.subX,o.axis_x_tick_outer,t),c.y=i.getYScale("y",x.y,b.y,c.y?c.y.domain():o.axis_y_default),c.subY=i.getYScale("y",x.subY,b.subY,c.subY?c.subY.domain():o.axis_y_default),r.setAxis("y",c.y,o.axis_y_tick_outer,t),o.axis_y2_show&&(c.y2=i.getYScale("y2",x.y,b.y,c.y2?c.y2.domain():o.axis_y2_default),c.subY2=i.getYScale("y2",x.subY,b.subY,c.subY2?c.subY2.domain():o.axis_y2_default),r.setAxis("y2",c.y2,o.axis_y2_tick_outer,t))}else null==i.updateArc||i.updateArc()},xx:function(t){var e=this.config,n=this.scale,i=n.x,r=n.zoom,a=e.zoom_enabled&&r?r:i;return t?a($a(t.x)?t.x:t):null},xv:function(t){var e=this,n=e.axis,i=e.config,r=e.scale,a=r.x,o=r.zoom,s=i.zoom_enabled&&o?o:a,u=e.getBaseValue(t);return n.isTimeSeries()?u=Mo.call(e,u):n.isCategorized()&&Ya(u)&&(u=i.axis_x_categories.indexOf(u)),Math.ceil(s(u))},yv:function(t){var e=this.scale,n=e.y,i=e.y2,r=t.axis&&"y2"===t.axis?i:n;return Math.ceil(r(this.getBaseValue(t)))},subxx:function(t){return t?this.scale.subX(t.x):null}};function _l(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function ml(t){this._context=t}function wl(t){return new ml(t)}function Tl(){}function Al(t){this._context=t}function Sl(t){return new Al(t)}function El(t){this._context=t}function kl(t){return new El(t)}function Ml(t,e){this._basis=new ml(t),this._beta=e}ml.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:_l(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:_l(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Al.prototype={areaStart:Tl,areaEnd:Tl,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:_l(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},El.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:_l(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Ml.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var i,r=t[0],a=e[0],o=t[n]-r,s=e[n]-a,u=-1;++u<=n;)i=u/n,this._basis.point(this._beta*t[u]+(1-this._beta)*(r+i*o),this._beta*e[u]+(1-this._beta)*(a+i*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Ol=function t(e){function n(t){return 1===e?new ml(t):new Ml(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function Rl(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Cl(t,e){this._context=t,this._k=(1-e)/6}Cl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Rl(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Rl(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Il=function t(e){function n(t){return new Cl(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Ll(t,e){this._context=t,this._k=(1-e)/6}Ll.prototype={areaStart:Tl,areaEnd:Tl,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Rl(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Pl=function t(e){function n(t){return new Ll(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Dl(t,e){this._context=t,this._k=(1-e)/6}Dl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Rl(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Nl=function t(e){function n(t){return new Dl(t,e)}return n.tension=function(e){return t(+e)},n}(0),zl=Math.abs,Fl=Math.atan2,jl=Math.cos,Bl=Math.max,Xl=Math.min,$l=Math.sin,Ul=Math.sqrt,Yl=1e-12,Vl=Math.PI,Gl=Vl/2,Hl=2*Vl;function Wl(t){return t>1?0:t<-1?Vl:Math.acos(t)}function ql(t){return t>=1?Gl:t<=-1?-Gl:Math.asin(t)}function Zl(t,e,n){var i=t._x1,r=t._y1,a=t._x2,o=t._y2;if(t._l01_a>Yl){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,r=(r*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>Yl){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*c+t._x1*t._l23_2a-e*t._l12_2a)/l,o=(o*c+t._y1*t._l23_2a-n*t._l12_2a)/l}t._context.bezierCurveTo(i,r,a,o,t._x2,t._y2)}function Kl(t,e){this._context=t,this._alpha=e}Kl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Zl(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Jl=function t(e){function n(t){return e?new Kl(t,e):new Cl(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Ql(t,e){this._context=t,this._alpha=e}Ql.prototype={areaStart:Tl,areaEnd:Tl,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Zl(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var th=function t(e){function n(t){return e?new Ql(t,e):new Ll(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function eh(t,e){this._context=t,this._alpha=e}eh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Zl(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var nh=function t(e){function n(t){return e?new eh(t,e):new Dl(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function ih(t){return t<0?-1:1}function rh(t,e,n){var i=t._x1-t._x0,r=e-t._x1,a=(t._y1-t._y0)/(i||r<0&&-0),o=(n-t._y1)/(r||i<0&&-0);return(ih(a)+ih(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs((a*r+o*i)/(i+r)))||0}function ah(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function oh(t,e,n){var i=t._x0,r=t._y0,a=t._x1,o=t._y1,s=(a-i)/3;t._context.bezierCurveTo(i+s,r+s*e,a-s,o-s*n,a,o)}function sh(t){this._context=t}function uh(t){this._context=new ch(t)}function ch(t){this._context=t}function lh(t){return new sh(t)}function hh(t){return new uh(t)}function fh(t){this._context=t}function dh(t){var e,n,i=t.length-1,r=Array(i),a=Array(i),o=Array(i);for(r[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e<i-1;++e)r[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(r[i-1]=2,a[i-1]=7,o[i-1]=8*t[i-1]+t[i],e=1;e<i;++e)n=r[e]/a[e-1],a[e]-=n,o[e]-=n*o[e-1];for(r[i-1]=o[i-1]/a[i-1],e=i-2;e>=0;--e)r[e]=(o[e]-r[e+1])/a[e];for(a[i-1]=(t[i]+r[i-1])/2,e=0;e<i-1;++e)a[e]=2*t[e+1]-r[e+1];return[r,a]}function gh(t){return new fh(t)}function ph(t){this._context=t}function vh(t){return new ph(t)}function yh(t){this._context=t}function xh(t){return new yh(t)}function bh(t,e){this._context=t,this._t=e}function _h(t){return new bh(t,.5)}function mh(t){return new bh(t,0)}function wh(t){return new bh(t,1)}sh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:oh(this,this._t0,ah(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,oh(this,ah(this,n=rh(this,t,e)),n);break;default:oh(this,this._t0,n=rh(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(uh.prototype=Object.create(sh.prototype)).point=function(t,e){sh.prototype.point.call(this,e,t)},ch.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,i,r,a){this._context.bezierCurveTo(e,t,i,n,a,r)}},fh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var i=dh(t),r=dh(e),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(i[0][a],r[0][a],i[1][a],r[1][a],t[o],e[o]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},ph.prototype={areaStart:Tl,areaEnd:Tl,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},yh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},bh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var Th={getDrawShape:function(){var t=this,e=this,n=e.config.axis_rotated,i=e.state.hasRadar,r={type:{},indices:{},pos:{}};if(["bar","candlestick","line","area"].forEach(function(n){a(this,t);var i=yo(/^(bubble|scatter)$/.test(n)?"line":n);if(e.hasType(n)||e.hasTypeOf(i)||"line"===n&&(e.hasType("bubble")||e.hasType("scatter"))){var o=e.getShapeIndices(e["is"+i+"Type"]),s=e["generateDraw"+i];r.indices[n]=o,r.type[n]=s?s.bind(e)(o,!1):void 0}}.bind(this)),!e.hasArcType()||i){var o=i?e.radarCircleX:n?e.circleY:e.circleX,s=i?e.radarCircleY:n?e.circleX:e.circleY;r.pos={xForText:e.generateXYForText(r.indices,!0),yForText:e.generateXYForText(r.indices,!1),cx:(o||function(){}).bind(e),cy:(s||function(){}).bind(e)}}return r},getShapeIndices:function(t){var e=this,n=this,i=n.config,r=i.data_xs,o=to(r),s={},u=o?{}:0;return o&&_o(Object.keys(r).map(function(t){return a(this,e),r[t]}.bind(this))).forEach(function(t){a(this,e),u[t]=0,s[t]={}}.bind(this)),n.filterTargetsToShow(n.data.targets.filter(t,n)).forEach(function(t){a(this,e);for(var n,o=(t.id in r?r[t.id]:""),c=o?s[o]:s,l=0;n=i.data_groups[l];l++)if(!(n.indexOf(t.id)<0))for(var h,f=0;h=n[f];f++)if(h in c){c[t.id]=c[h];break}Ga(c[t.id])&&(c[t.id]=o?u[o]++:u++,c.__max__=(o?u[o]:u)-1)}.bind(this)),s},getIndices:function(t,e){var n=this,i=this,r=i.config,o=r.data_xs,s=r.bar_indices_removeNull,u=e.id,c=e.index;if(i.isBarType(u)&&s){var l={};return i.getAllValuesOnIndex(c,!0).forEach(function(t,e){a(this,n),l[t.id]=e,l.__max__=e}.bind(this)),l}return to(o)?t[o[u]]:t},getIndicesMax:function(t){var e=this;return to(this.config.data_xs)?Object.keys(t).map(function(n){return a(this,e),t[n].__max__||0}.bind(this)).reduce(function(t,n){return a(this,e),t+n}.bind(this)):t.__max__},getShapeX:function(t,e,n){var i=this,r=this,o=r.config,s=r.scale,u=n?s.subX:s.zoom||s.x,c=o.bar_overlap,l=o.bar_padding,h=function(t,e){return a(this,i),t+e}.bind(this),f=Ja(t)&&(t._$total.length?t._$total.reduce(h)/2:0);return function(n){a(this,i);var o=r.getIndices(e,n,"getShapeX"),s=n.id in o?o[n.id]:0,d=(o.__max__||0)+1,g=0;if(to(n.x)){var p=u(n.x,!0);if(f){var v=t[n.id]||t._$width;g=c?p-v/2:p-v+t._$total.slice(0,s+1).reduce(h)-f}else g=p-(Va(t)?t:t._$width)*(d/2-(c?1:s))}return t&&g&&d>1&&l&&(s&&(g+=l*s),d>2?g-=(d-1)*l/2:2===d&&(g-=l/2)),g}.bind(this)},getShapeY:function(t){var e=this,n=this,i=n.isStackNormalized();return function(r){a(this,e);var o=r.value;return Va(r)?o=r:i?o=n.getRatio("index",r,!0):n.isBubbleZType(r)?o=n.getBubbleZData(r.value,"y"):n.isBarRangeType(r)&&(o=o[1]),n.getYScaleById(r.id,t)(o)}.bind(this)},getShapeYMin:function(t){var e=this,n=e.axis.getId(t),i=e.scale[n].domain()[0],r=e.config["axis_"+n+"_inverted"];return!e.isGrouped(t)&&!r&&i>0?i:0},getShapeOffsetData:function(t){var e=this,n=this,i=n.orderTargets(n.filterTargetsToShow(n.data.targets.filter(t,n))),r=n.isStackNormalized(),o=i.map(function(t){var i=this;a(this,e);var o=t.values,s={};n.isStepType(t)&&(o=n.convertValuesToStep(o));var u=o.reduce(function(t,e){a(this,i);var o=+e.x;return t[o]=e,s[o]=r?n.getRatio("index",e,!0):e.value,t}.bind(this),{});return{id:t.id,rowValues:o,rowValueMapByXValue:u,values:s}}.bind(this)),s=i.reduce(function(t,n,i){var r=n.id;return a(this,e),t[r]=i,t}.bind(this),{});return{indexMapByTargetId:s,shapeOffsetTargets:o}},getShapeOffset:function(t,e,n){var i=this,r=this,o=r.getShapeOffsetData(t),s=o.shapeOffsetTargets,u=o.indexMapByTargetId,c=r.config.data_groupsZeroAs;return function(t,o){var l=this;a(this,i);var h=t.id,f=t.value,d=t.x,g=r.getIndices(e,t),p=r.getYScaleById(h,n);if(r.isBarRangeType(t))return p(f[0]);var v=+d,y=p("zero"===c?0:r.getShapeYMin(h)),x=y;return s.filter(function(t){return a(this,l),t.id!==h&&g[t.id]===g[h]}.bind(this)).forEach(function(t){a(this,l);var e=t.id,n=t.rowValueMapByXValue,i=t.rowValues,r=t.values;if(u[e]<u[h]){var s,d=r[v],g=i[o];if(g&&+g.x===v||(g=n[v]),(null==(s=g)?void 0:s.value)*f>=0&&Va(d))(0!==f||("positive"===c&&d>0||"negative"===c&&d<0))&&(x+=p(d)-y)}}.bind(this)),x}.bind(this)},getBarW:function(t,e,n){var i=this,r=this,o=r.config,s=r.org,u=r.scale,c=r.getMaxDataCount(),l="bar"===t&&o.data_groups.length,h=t+"_width",f=u.zoom&&!r.axis.isCategorized()?s.xDomain.map(function(t){return a(this,i),u.zoom(t)}.bind(this)).reduce(function(t,e){return a(this,i),Math.abs(t)+e}.bind(this))/c:e.tickInterval(c),d=function(t){a(this,i);var e=t?o[h][t]:o[h],r=t?e.ratio:o[h+"_ratio"],s=t?e.max:o[h+"_max"],u=Va(e)?e:n?f*r/n:0;return s&&u>s?s:u}.bind(this),g=d();return!l&&Ja(o[h])&&(g={_$width:g,_$total:[]},r.filterTargetsToShow(r.data.targets).forEach(function(t){a(this,i),o[h][t.id]&&(g[t.id]=d(t.id),g._$total.push(g[t.id]||g._$width))}.bind(this))),g},getShapeByIndex:function(t,e,n){var i=this,r=this.$el,o=$a(e)?"-"+e:"",s=r[t];return s=s&&!s.empty()?s.filter(function(t){return a(this,i),!n||t.id===n}.bind(this)).filter(function(t){return a(this,i),!$a(e)||t.index===e}.bind(this)):(n?r.main.selectAll("."+as[t+"s"]+this.getTargetSelectorSuffix(n)):r.main).selectAll("."+as[t]+o)},isWithinShape:function(t,e){var n,i=this,r=Pn(t);return i.isTargetToShow(e.id)?null!=i.hasValidPointType&&i.hasValidPointType(t.nodeName)?n=i.isStepType(e)?i.isWithinStep(t,i.getYScaleById(e.id)(e.value)):i.isWithinCircle(t,i.isBubbleType(e)?1.5*i.pointSelectR(e):0):"path"===t.nodeName&&(n=!r.classed(as.bar)||i.isWithinBar(t)):n=!1,n},getInterpolate:function(t){var e=this.getInterpolateType(t);return{basis:wl,"basis-closed":Sl,"basis-open":kl,bundle:Ol,cardinal:Il,"cardinal-closed":Pl,"cardinal-open":Nl,"catmull-rom":Jl,"catmull-rom-closed":th,"catmull-rom-open":nh,"monotone-x":lh,"monotone-y":hh,natural:gh,"linear-closed":vh,linear:xh,step:_h,"step-after":wh,"step-before":mh}[e]},getInterpolateType:function(t){var e=this,n=e.config,i=n.spline_interpolation_type,r=e.isInterpolationType(i)?i:"cardinal";return e.isSplineType(t)?r:e.isStepType(t)?n.line_step_type:"linear"},isWithinBar:function(t){var e=co(this.state.event,t),n=uo(t),i=n[0],r=n[1],a=Math.min(i.x,r.x),o=Math.min(i.y,r.y),s=this.config.bar_sensitivity,u=t.getBBox(),c=u.width,l=u.height;return a-s<e[0]&&e[0]<a+c+s&&o-s<e[1]&&e[1]<o+l+s}},Ah={setContainerSize:function(){var t=this,e=t.state;e.current.width=t.getCurrentWidth(),e.current.height=t.getCurrentHeight()},getCurrentWidth:function(){return this.config.size_width||this.getParentWidth()},getCurrentHeight:function(){var t=this,e=t.config,n=e.size_height||t.getParentHeight();return n>0?n:320/(t.hasType("gauge")&&!e.gauge_fullCircle?2:1)},getCurrentPaddingTop:function(){var t=this,e=t.config,n=t.state.hasAxis,i=t.$el,r=n?e.axis_y2_axes.length:0,a=$a(e.padding_top)?e.padding_top:0;return i.title&&i.title.node()&&(a+=t.getTitlePadding()),r&&e.axis_rotated&&(a+=t.getHorizontalAxisHeight("y2")*r),a},getCurrentPaddingBottom:function(){var t=this,e=t.config,n=t.state.hasAxis,i=e.axis_rotated?"y":"x",r=n?e["axis_"+i+"_axes"].length:0;return($a(e.padding_bottom)?e.padding_bottom:0)+(r?t.getHorizontalAxisHeight(i)*r:0)},getCurrentPaddingLeft:function(t){var e=this,n=e.config,i=e.state.hasAxis,r=n.axis_rotated,a=r?"x":"y",o=i?n["axis_"+a+"_axes"].length:0,s=i?e.getAxisWidthByAxisId(a,t):0;return($a(n.padding_left)?n.padding_left:i&&r?n.axis_x_show?Math.max(qa(s),40):1:!i||n.axis_y_show&&!n.axis_y_inner?qa(s):e.axis.getAxisLabelPosition("y").isOuter?30:1)+s*o},getCurrentPaddingRight:function(t){void 0===t&&(t=!1);var e=this,n=e.config,i=e.state.hasAxis,r=e.state.isLegendRight?e.getLegendWidth()+20:0,a=i?n.axis_y2_axes.length:0,o=i?e.getAxisWidthByAxisId("y2"):0,s=t?e.axis.getXAxisTickTextY2Overflow(10):0;return($a(n.padding_right)?n.padding_right+1:e.axis&&n.axis_rotated?10+r:!e.axis||n.axis_y2_show&&!n.axis_y2_inner?Math.max(qa(o)+r,s):Math.max(2+r+(e.axis.getAxisLabelPosition("y2").isOuter?20:0),s))+o*a},getParentRectValue:function(t){for(var e="offset"+yo(t),n=this.$el.chart.node(),i=0;i<30&&n&&"BODY"!==n.tagName;){try{i=n.getBoundingClientRect()[t]}catch(t){e in n&&(i=n[e])}n=n.parentNode}var r=zn.body[e];return i>r&&(i=r),i},getParentWidth:function(){return this.getParentRectValue("width")},getParentHeight:function(){var t=this.$el.chart.style("height"),e=0;return t&&(e=/px$/.test(t)?parseInt(t,10):this.getParentRectValue("height")),e},getSvgLeft:function(t){var e=this,n=e.config,i=e.$el,r=n.axis_rotated||!n.axis_rotated&&!n.axis_y_inner,a=n.axis_rotated?zo.axisX:zo.axisY,o=i.main.select("."+a).node(),s=o&&r?o.getBoundingClientRect():{right:0},u=i.chart.node().getBoundingClientRect(),c=e.hasArcType(),l=s.right-u.left-(c?0:e.getCurrentPaddingLeft(t));return l>0?l:0},updateDimension:function(t){var e,n=this,i=n.config,r=n.state.hasAxis,a=n.$el;r&&!t&&n.axis.x&&i.axis_rotated&&(null==(e=n.axis.subX)||e.create(a.axis.subX));n.updateScales(t),n.updateSvgSize(),n.transformAll(!1)},updateSvgSize:function(){var t=this,e=t.state,n=e.clip,i=e.current,r=e.hasAxis,a=e.width,o=e.height,s=t.$el.svg;if(s.attr("width",i.width).attr("height",i.height),r){var u=s.select("."+es.brush+" .overlay"),c={width:0,height:0};u.size()&&(c.width=+u.attr("width"),c.height=+u.attr("height")),s.selectAll(["#"+n.id,"#"+n.idGrid]).select("rect").attr("width",a).attr("height",o),s.select("#"+n.idXAxis).select("rect").call(t.setXAxisClipPath.bind(t)),s.select("#"+n.idYAxis).select("rect").call(t.setYAxisClipPath.bind(t)),n.idSubchart&&s.select("#"+n.idSubchart).select("rect").attr("width",a).attr("height",c.height)}},getResettedPadding:function(t){var e=this,n=this.config,i=Va(t),r=i?0:{};return!1===n.padding?i||Object.keys(t).forEach(function(i){a(this,e),r[i]=Qa(n.data_labels)||!1===n.data_labels||"top"!==i?0:t[i]}.bind(this)):r=t,r},updateSizes:function(t){var e=this,n=e.config,i=e.state,r=e.$el.legend,a=n.axis_rotated,o=e.hasArcType();t||e.setContainerSize();var s={width:r?e.getLegendWidth():0,height:r?e.getLegendHeight():0};!o&&n.axis_x_show&&n.axis_x_tick_autorotate&&e.updateXAxisTickClip();var u=i.isLegendRight||i.isLegendInset?0:s.height,c=a||o?0:e.getHorizontalAxisHeight("x"),l=n.subchart_axis_x_show&&n.subchart_axis_x_tick_text_show?c:30,h=n.subchart_show&&!o?n.subchart_size_height+l:0;i.margin=!o&&a?{top:e.getHorizontalAxisHeight("y2")+e.getCurrentPaddingTop(),right:o?0:e.getCurrentPaddingRight(!0),bottom:e.getHorizontalAxisHeight("y")+u+e.getCurrentPaddingBottom(),left:h+(o?0:e.getCurrentPaddingLeft())}:{top:4+e.getCurrentPaddingTop(),right:o?0:e.getCurrentPaddingRight(!0),bottom:c+h+u+e.getCurrentPaddingBottom(),left:o?0:e.getCurrentPaddingLeft()},i.margin=e.getResettedPadding(i.margin),i.margin2=a?{top:i.margin.top,right:NaN,bottom:20+u,left:e.state.rotatedPadding.left}:{top:i.current.height-h-u,right:NaN,bottom:l+u,left:i.margin.left},i.margin3={top:0,right:NaN,bottom:0,left:0},null==e.updateSizeForLegend||e.updateSizeForLegend(s),i.width=i.current.width-i.margin.left-i.margin.right,i.height=i.current.height-i.margin.top-i.margin.bottom,i.width<0&&(i.width=0),i.height<0&&(i.height=0),i.width2=a?i.margin.left-i.rotatedPadding.left-i.rotatedPadding.right:i.width,i.height2=a?i.height:i.current.height-i.margin2.top-i.margin2.bottom,i.width2<0&&(i.width2=0),i.height2<0&&(i.height2=0);var f=e.hasType("gauge"),d=n.legend_show&&i.isLegendRight;i.arcWidth=i.width-(d?s.width+10:0),i.arcHeight=i.height-(d&&!f?0:10),f&&!n.gauge_fullCircle&&(i.arcHeight+=i.height-e.getPaddingBottomForGauge()),null==e.updateRadius||e.updateRadius(),i.isLegendRight&&o&&(i.margin3.left=i.arcWidth/2+1.1*i.radiusExpanded)}},Sh={setCssRule:function(t,e,n,i){var r=this,o=this,s=o.config,u=o.state,c=u.cssRule,l=u.style;return s.boost_useCssRule?function(s){var u=this;a(this,r),s.each(function(r){var s=this;a(this,u);var h=i&&(null==i?void 0:i.call(o,r)),f=(t?"."+(ts.shapes+o.getTargetSelectorSuffix(r.id)):"")+e;e in c&&l.sheet.deleteRule(c[f]),o.state.cssRule[f]=function(t,e,n){var i=this,r=t.rootSelctor,o=t.sheet,s=r+" "+function(t){return a(this,i),t.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,".")}.bind(this)(e)+" {"+n.join(";")+"}";return o[o.insertRule?"insertRule":"addRule"](s,o.cssRules.length)}(l,f,n.filter(Boolean).map(function(t){return a(this,s),Ya(h)&&-1===t.indexOf(":")?t+": "+h:t||""}.bind(this)))}.bind(this))}.bind(this):function(){a(this,r)}.bind(this)},getStylePropValue:function(t){return this.config.boost_useCssRule?null:Ua(t)?t.bind(this):t}};function Eh(t){return"string"==typeof t?new Cn([document.querySelectorAll(t)],[document.documentElement]):new Cn([ge(t)],Rn)}function kh(t,e,n,i,r){var a,o=t.value,s=this.isCandlestickType(t),u=Va(o)&&o<0||s&&!(null!=(a=this.getCandlestickData(t))&&a._isUp),c=e.x,l=e.y;return i?"start"===n?(c+=u?0:8,l+=4):"middle"===n?(c+=8,l-=8):"end"===n&&(u&&(c-=8),l+=4):("start"===n?(c+=4,u&&(l+=16)):"middle"===n?l-=8:"end"===n&&(c-=4,u&&(l+=16)),r&&(l+=u?-17:s?13:7)),{x:c,y:l}}var Mh={opacityForText:function(t){var e=this;return e.isBarType(t)&&!e.meetsLabelThreshold(Math.abs(e.getRatio("bar",t)),"bar")?"0":e.hasDataLabel?null:"0"},initText:function(){this.$el.main.select("."+Po.chart).append("g").attr("class",ns.chartTexts)},updateTargetsForText:function(t){var e=this,n=this,i=n.getChartClass("Text"),r=n.getClass("texts","id"),o=n.classFocus.bind(n);n.$el.main.select("."+ns.chartTexts).selectAll("."+ns.chartText).data(t).attr("class",function(t){return a(this,e),i(t)+o(t)}.bind(this)).enter().append("g").style("opacity","0").attr("class",i).call(n.setCssRule(!0," ."+ns.text,["fill","pointer-events:none"],n.updateTextColor)).append("g").attr("class",r)},updateText:function(){var t=this,e=this,n=e.$el,i=e.$T,r=e.config,o=e.getClass("text","index"),s=n.main.selectAll("."+ns.texts).selectAll("."+ns.text).data(e.labelishData.bind(e));i(s.exit()).style("fill-opacity","0").remove(),n.text=s.enter().append("text").merge(s).attr("class",o).attr("text-anchor",function(n){a(this,t);var i=n.value<0;if(e.isCandlestickType(n)){var o=e.getCandlestickData(n);i=!(null!=o&&o._isUp)}return r.axis_rotated?i?"end":"start":"middle"}.bind(this)).style("fill",e.getStylePropValue(e.updateTextColor)).style("fill-opacity","0").each((function(t,n,i){var r=Pn(this),a=t.value;if(e.isBubbleZType(t))a=e.getBubbleZData(a,"z");else if(e.isCandlestickType(t)){var o=e.getCandlestickData(t);o&&(a=o.close)}a=e.dataLabelFormat(t.id)(a,t.id,n,i),Va(a)?this.textContent=a:so(r,a)}))},updateTextColor:function(t){var e,n=this,i=n.config,r=i.data_labels_colors,a=n.isArcType(t)&&!n.isRadarType(t)?null:n.color(t);if(Ya(r))e=r;else if(no(r)){e=r[(t.data||t).id]}else Ua(r)&&(e=r.bind(n.api)(a,t));if(n.isCandlestickType(t)&&!Ua(r)){var o=n.getCandlestickData(t);if(null==o||!o._isUp){var s=i.candlestick_color_down;e=no(s)?s[t.id]:s}}return e||a},updateTextBacgroundColor:function(t){var e=this,n=e.$el,i=e.config.data_labels_backgroundColors,r="";if(Ya(i)||no(i)){var a=Ya(i)?"":e.getTargetSelectorSuffix("id"in t?t.id:t.data.id),o=n.defs.select(["filter[id*='labels-bg","']"].join(a));o.size()&&(r="url(#"+o.attr("id")+")")}return r||null},redrawText:function(t,e,n,i){var r=this,a=r.$T,o=r.axis,s=r.config,u=fo(!0),c=s.axis_rotated,l=s.data_labels.rotate,h=function(t){var e="middle";return t>0&&t<=170?e="end":t>190&&t<=360&&(e="start"),e}(l),f=l?"rotate("+l+")":"";return r.$el.text.style("fill",r.getStylePropValue(r.updateTextColor)).attr("filter",r.updateTextBacgroundColor.bind(r)).style("fill-opacity",n?0:r.opacityForText.bind(r)).each((function(n,d){var g=a(this,!(!i||!this.getAttribute("x")),u),p=s["axis_"+(null==o?void 0:o.getId(n.id))+"_inverted"],v={x:t.bind(this)(n,d),y:e.bind(this)(n,d)};l&&(v=kh.bind(r)(n,v,h,c,p),g.attr("text-anchor",h)),this.childElementCount||l?g.attr("transform","translate("+v.x+" "+v.y+") "+f):g.attr("x",v.x).attr("y",v.y)})),!0},getTextRect:function(t,e){var n=this,i=this,r=t.node?t.node():t;/text/i.test(r.tagName)||(r=r.querySelector("text"));var o=r.textContent,s=Rs+"-"+o.replace(/\W/g,"_"),u=i.cache.get(s);return u||(i.$el.svg.append("text").style("visibility","hidden").style("font",Pn(r).style("font")).classed(e,!0).text(o).call(function(t){a(this,n),u=ho(t.node())}.bind(this)).remove(),i.cache.add(s,u)),u},generateXYForText:function(t,e){var n=this,i=this,r=Object.keys(t),o={},s=e?i.getXForText:i.getYForText;return i.hasType("radar")&&r.push("radar"),r.forEach(function(e){a(this,n),o[e]=i["generateGet"+yo(e)+"Points"](t[e],!1)}.bind(this)),function(t,e){var n=(i.isAreaType(t)?"area":i.isBarType(t)&&"bar")||i.isCandlestickType(t)&&"candlestick"||i.isRadarType(t)&&"radar"||"line";return s.call(i,o[n](t,e),t,this)}},getCenteredTextPos:function(t,e,n){var i=this.config,r=i.axis_rotated;if(i.data_labels.centered&&this.isBarType(t)){var a=ho(n),o=t.value>=0;if(r){var s=(o?e[1][1]-e[0][1]:e[0][1]-e[1][1])/2+a.width/2;return o?-s-3:s+2}var u=(o?e[0][1]-e[1][1]:e[1][1]-e[0][1])/2+a.height/2;return o?u:-u-2}return 0},getTextPos:function(t,e){var n=this.config.data_labels_position;return(t in n?n[t]:n)[e]||0},getXForText:function(t,e,n){var i,r=this,a=r.config,o=r.state,s=a.axis_rotated,u=t[0][0];if(r.isCandlestickType(e))s?u=null!=(i=r.getCandlestickData(e))&&i._isUp?t[2][2]+4:t[2][1]-4:u+=(t[1][0]-u)/2;else if(s){var c=r.isBarType(e)?4:6;u=t[2][1]+c*(e.value<0?-1:1)}else u=r.hasType("bar")?(t[2][0]+t[0][0])/2:u;if(null===e.value)if(u>o.width){var l=ho(n).width;u=o.width-l}else u<0&&(u=4);return s&&(u+=r.getCenteredTextPos(e,t,n)),u+r.getTextPos(e.id,"x")},getYForText:function(t,e,n){var i,r=this,a=r.axis,o=r.config,s=r.state,u=o.axis_rotated,c=o["axis_"+(null==a?void 0:a.getId(e.id))+"_inverted"],l=r.isBarType(e),h=o.point_r,f=ho(n),d=e.value,g=3;if(r.isCandlestickType(e))d=r.getCandlestickData(e),u?(i=t[0][0],i+=(t[1][0]-i)/2+g):(i=d&&d._isUp?t[2][2]-g:t[2][1]+4*g,c&&(i+=15*(d._isUp?1:-1)));else if(u)i=(t[0][0]+t[2][0]+.6*f.height)/2;else if(i=t[2][1],Va(h)&&h>5&&(r.isLineType(e)||r.isScatterType(e))&&(g+=o.point_r/2.3),d<0||0===d&&!s.hasPositiveValue&&s.hasNegativeValue)i+=c?l?-3:-5:f.height+(l?-g:g);else{var p=2*-g;l?p=-g:r.isBubbleType(e)&&(p=g),c&&(p=l?10:15),i+=p}if(null===e.value&&!u){var v=f.height;i<v?i=v:i>s.height&&(i=s.height-4)}return u||(i+=r.getCenteredTextPos(e,t,n)),i+r.getTextPos(e.id,"y")},markOverlapped:function(t,e,n){var i=this,r=e.$el.arcs.selectAll(n),o=r.filter(function(e){return a(this,i),e.data.id!==t}.bind(this)),s=r.filter(function(e){return a(this,i),e.data.id===t}.bind(this)),u=bo(s.node()),c=function(t,e){return a(this,i),Math.sqrt(Math.pow(t,2)+Math.pow(e,2))}.bind(this);s.node()&&o.each((function(){var t=bo(this),e=Pn(this),n=c(u.e,u.f)>c(t.e,t.f)?s:e,i=Math.ceil(Math.abs(u.e-t.e))<Math.ceil(n.node().getComputedTextLength()),r=Math.ceil(Math.abs(u.f-t.f))<parseInt(s.style("font-size"),10);e.classed(ns.TextOverlapping,i&&r)}))},undoMarkOverlapped:function(t,e){t.$el.arcs.selectAll(e).each((function(){Eh([this,this.previousSibling]).classed(ns.TextOverlapping,!1)}))},meetsLabelThreshold:function(t,e){void 0===t&&(t=0);return t>=(this.config[e+"_label_threshold"]||0)}};function Oh(t,e){void 0===t&&(t="left");var n=Va(e);return t.indexOf("center")>-1?n?e/2:"middle":t.indexOf("right")>-1?n?e:"end":n?0:"start"}var Rh={initTitle:function(){var t=this.config,e=this.$el;t.title_text&&(e.title=e.svg.append("g"),so(e.title.append("text").style("text-anchor",Oh(t.title_position)).attr("class",ns.title),t.title_text,[.3,1.5]))},redrawTitle:function(){var t=this,e=t.config,n=t.state.current,i=t.$el.title;if(i){var r=t.yForTitle.call(t);/g/i.test(i.node().tagName)?i.attr("transform","translate("+Oh(e.title_position,n.width)+", "+r+")"):i.attr("x",t.xForTitle.call(t)).attr("y",r)}},xForTitle:function(){var t,e=this,n=e.config,i=e.state.current,r=n.title_position||"left",a=e.getTextRect(e.$el.title,ns.title).width;return/(right|center)/.test(r)?(t=i.width-a,r.indexOf("right")>=0?t=i.width-a-n.title_padding.right:r.indexOf("center")>=0&&(t=(i.width-a)/2)):t=n.title_padding.left||0,t},yForTitle:function(){var t=this;return(t.config.title_padding.top||0)+t.getTextRect(t.$el.title,ns.title).height},getTitlePadding:function(){return this.yForTitle()+(this.config.title_padding.bottom||0)}},Ch={initTooltip:function(){var t=this,e=t.config,n=t.$el;n.tooltip=Pn(e.tooltip_contents.bindto),n.tooltip.empty()&&(n.tooltip=n.chart.append("div").attr("class",is.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none")),t.bindTooltipResizePos()},initShowTooltip:function(){var t=this,e=this,n=e.config,i=e.$el,r=e.state,o=r.hasAxis,s=r.hasRadar;if(n.tooltip_init_show){var u,c,l=!(o&&s);if(null!=(u=e.axis)&&u.isTimeSeries()&&Ya(n.tooltip_init_x)){var h,f,d=e.data.targets[0];for(n.tooltip_init_x=Mo.call(e,n.tooltip_init_x),h=0;(f=d.values[h])&&f.x-n.tooltip_init_x!=0;h++);n.tooltip_init_x=h}var g=e.data.targets.map(function(i){a(this,t);var r=l?0:n.tooltip_init_x;return e.addName(i.values[r])}.bind(this));l&&(g=[g[n.tooltip_init_x]]),i.tooltip.html(e.getTooltipHTML(g,null==(c=e.axis)?void 0:c.getXAxisTickFormat(),e.getDefaultValueFormat(),e.color)),n.tooltip_contents.bindto||i.tooltip.style("top",n.tooltip_init_position.top).style("left",n.tooltip_init_position.left).style("display",null)}},getTooltipHTML:function(){var t=this,e=t.api,n=t.config;return Ua(n.tooltip_contents)?n.tooltip_contents.bind(e).apply(void 0,arguments):t.getTooltipContent.apply(t,arguments)},getTooltipContent:function(t,e,n,i){var r=this,o=this,s=o.api,u=o.config,c=o.state,l=["title","name","value"].map(function(t){a(this,r);var e=u["tooltip_format_"+t];return Ua(e)?e.bind(s):e}.bind(this)),h=l[0],f=l[1],d=l[2];h=h||e,f=f||function(t){return a(this,r),t}.bind(this),d=d||(o.isStackNormalized()?function(t,e){return a(this,r),(100*e).toFixed(2)+"%"}.bind(this):n);var g=u.tooltip_order,p=function(t){return a(this,r),o.axis&&o.isBubbleZType(t)?o.getBubbleZData(t.value,"z"):o.getBaseValue(t)}.bind(this),v=o.levelColor?function(t){return a(this,r),o.levelColor(t.value)}.bind(this):function(t){return a(this,r),i(t)}.bind(this),y=u.tooltip_contents,x=y.template,b=o.mapToTargetIds();if(null===g&&u.data_groups.length){var _=o.orderTargets(o.data.targets).map(function(t){return a(this,r),t.id}.bind(this)).reverse();t.sort(function(t,e){a(this,r);var n=t?t.value:null,i=e?e.value:null;return n>0&&i>0&&(n=t.id?_.indexOf(t.id):null,i=e.id?_.indexOf(e.id):null),n-i}.bind(this))}else/^(asc|desc)$/.test(g)?t.sort(function(t,e){a(this,r);var n=t?p(t):null,i=e?p(e):null;return"asc"===g?n-i:i-n}.bind(this)):Ua(g)&&t.sort(g.bind(s));var m,w,T,A,S,E=o.getTooltipContentTemplate(x),k=t.length;for(S=0;S<k;S++)if((w=t[S])&&(p(w)||0===p(w))){if(Ga(m)){var M=(c.hasAxis||c.hasRadar)&&oo(h?h(w.x):w.x);m=ko(E[0],{CLASS_TOOLTIP:is.tooltip,TITLE:$a(M)?x?M:'<tr><th colspan="2">'+M+"</th></tr>":""})}if(!w.ratio&&o.$el.arcs&&(w.ratio=o.getRatio("arc",o.$el.arcs.select("path."+Do.arc+"-"+w.id).data()[0])),T=[w.ratio,w.id,w.index,t],A=oo(d.apply(void 0,[p(w)].concat(T))),o.isAreaRangeType(w)){var O=["high","low"].map(function(t){return a(this,r),oo(d.apply(void 0,[o.getRangedData(w,t)].concat(T)))}.bind(this)),R=O[0],C=O[1];A="<b>Mid:</b> "+A+" <b>High:</b> "+R+" <b>Low:</b> "+C}else if(o.isCandlestickType(w)){var I=["open","high","low","close","volume"].map(function(t){return a(this,r),oo(d.apply(void 0,[o.getRangedData(w,t,"candlestick")].concat(T)))}.bind(this)),L=I[0],P=I[1],D=I[2],N=I[3],z=I[4];A="<b>Open:</b> "+L+" <b>High:</b> "+P+" <b>Low:</b> "+D+" <b>Close:</b> "+N+(z?" <b>Volume:</b> "+z:"")}else if(o.isBarRangeType(w)){var F=w.value,j=F[0],B=F[1];A=d(j)+" ~ "+d(B)}if(void 0!==A){var X=function(){var t=this;if(null===w.name)return"continue";var e=oo(f.apply(void 0,[w.name].concat(T))),n=v(w),i={CLASS_TOOLTIP_NAME:is.tooltipName+o.getTargetSelectorSuffix(w.id),COLOR:x||!o.patterns?n:'<svg><rect style="fill:'+n+'" width="10" height="10"></rect></svg>',NAME:e,VALUE:A};if(x&&no(y.text)){var r=b.indexOf(w.id);Object.keys(y.text).forEach(function(e){a(this,t),i[e]=y.text[e][r]}.bind(this))}m+=ko(E[1],i)}();if("continue"===X)continue}}return m+"</table>"},getTooltipContentTemplate:function(t){return(t||'<table class="{=CLASS_TOOLTIP}"><tbody>\n\t\t\t\t{=TITLE}\n\t\t\t\t{{<tr class="{=CLASS_TOOLTIP_NAME}">\n\t\t\t\t\t<td class="name">'+(this.patterns?"{=COLOR}":'<span style="background-color:{=COLOR}"></span>')+'{=NAME}</td>\n\t\t\t\t\t<td class="value">{=VALUE}</td>\n\t\t\t\t</tr>}}\n\t\t\t</tbody></table>').replace(/(\r?\n|\t)/g,"").split(/{{(.*)}}/)},tooltipPosition:function(t,e,n,i){var r=this,o=this,s=o.config,u=o.scale,c=o.state,l=c.width,h=c.height,f=c.current,d=c.isLegendRight,g=c.inputType,p=c.event,v=o.hasType("gauge")&&!s.gauge_fullCircle,y=o.getSvgLeft(!0),x=y+f.width-o.getCurrentPaddingRight(),b=o.getCurrentPaddingLeft(!0),_=co(p,i),m=_[0],w=_[1];if(o.hasArcType()){"touch"===g||o.hasType("radar")||(w+=v?h:h/2,m+=(l-(d?o.getLegendWidth():0))/2)}else{var T=u.x(t[0].x);s.axis_rotated?(w=T+20,m+=y+100,x-=y):(w-=5,m=y+b+20+(o.scale.zoom?m:T))}m+e+15>x&&(m-=e+b),w+n>f.height&&(w-=v?3*n:n+30);var A={top:w,left:m};return Object.keys(A).forEach(function(t){a(this,r),A[t]<0&&(A[t]=0)}.bind(this)),A},showTooltip:function(t,e){var n=this,i=this,r=i.config,o=i.scale,s=i.state,u=i.$el.tooltip,c=r.tooltip_contents.bindto,l=t.filter(function(t){return a(this,n),t&&$a(i.getBaseValue(t))}.bind(this));if(u&&0!==l.length&&r.tooltip_show){var h=u.datum(),f=h||{},d=f.width,g=void 0===d?0:d,p=f.height,v=void 0===p?0:p,y=JSON.stringify(t);if(!h||h.current!==y){var x=t.concat().sort()[0].index;ro(r.tooltip_onshow,i.api,t),u.html(i.getTooltipHTML(t,i.axis?i.axis.getXAxisTickFormat():i.categoryName.bind(i),i.getDefaultValueFormat(),i.color)).style("display",null).style("visibility",null).datum(h={index:x,current:y,width:g=u.property("offsetWidth"),height:v=u.property("offsetHeight")}),ro(r.tooltip_onshown,i.api,t),i._handleLinkedCharts(!0,x)}if(!c){var b,_,m=(null==(b=r.tooltip_position)?void 0:b.bind(i.api))||i.tooltipPosition.bind(i),w=co(s.event,e),T={x:w[0],y:w[1]},A=null==(_=t.filter(Boolean))?void 0:_.shift();o.x&&A&&"x"in A&&(T.xAxis=o.x(A.x));var S=m(l,g,v,e,T);["top","left"].forEach(function(t){a(this,n);var e=S[t];u.style(t,e+"px"),"left"!==t||h.xPosInPercent||(h.xPosInPercent=e/s.current.width*100)}.bind(this))}}},bindTooltipResizePos:function(){var t=this,e=this,n=e.resizeFunction,i=e.state,r=e.$el.tooltip;n.add(function(){if(a(this,t),"block"===r.style("display")){var e=i.current,n=r.datum(),o=n.width,s=n.xPosInPercent,u=e.width/100*s,c=e.width-(u+o);c<0&&(u+=c),r.style("left",u+"px")}}.bind(this))},hideTooltip:function(t){var e=this,n=e.api,i=e.config,r=e.$el.tooltip;if(r&&"none"!==r.style("display")&&(!i.tooltip_doNotHide||t)){var a=JSON.parse(r.datum().current);ro(i.tooltip_onhide,n,a),r.style("display","none").style("visibility","hidden").datum(null),ro(i.tooltip_onhidden,n,a)}},_handleLinkedCharts:function(t,e){var n=this,i=this,r=i.charts,o=i.config,s=i.state.event;if(null!=s&&s.isTrusted&&o.tooltip_linked&&r.length>1){var u=o.tooltip_linked_name;r.filter(function(t){return a(this,n),t!==i.api}.bind(this)).forEach(function(i){a(this,n);var r=i.internal,o=r.config,s=r.$el,c=o.tooltip_linked,l=o.tooltip_linked_name,h=zn.body.contains(s.chart.node());if(c&&u===l&&h){var f=s.tooltip.data()[0],d=e!==(null==f?void 0:f.index);try{i.tooltip[t&&d?"show":"hide"]({index:e})}catch(t){}}}.bind(this))}}},Ih={getTranslate:function(t,e){void 0===e&&(e=0);var n,i,r=this,a=r.config,o=r.state,s=a.axis_rotated,u=0;if(e&&/^(x|y2?)$/.test(t)&&(u=r.getAxisSize(t)*e),"main"===t)n=Za(o.margin.left),i=Za(o.margin.top);else if("context"===t)n=Za(o.margin2.left),i=Za(o.margin2.top);else if("legend"===t)n=o.margin3.left,i=o.margin3.top;else if("x"===t)n=s?-u:0,i=s?0:o.height+u;else if("y"===t)n=s?0:-u,i=s?o.height+u:0;else if("y2"===t)n=s?0:o.width+u,i=s?1-u:0;else if("subX"===t)n=0,i=s?0:o.height2;else if("arc"===t)n=o.arcWidth/2,i=o.arcHeight/2;else if("polar"===t)n=o.arcWidth/2,i=o.arcHeight/2;else if("radar"===t){var c=r.getRadarSize()[0];n=o.width/2-c,i=Za(o.margin.top)}return"translate("+n+", "+i+")"},transformMain:function(t,e){var n=this,i=n.$el.main,r=n.$T,a=null!=e&&e.axisX?e.axisX:r(i.select("."+zo.axisX),t),o=null!=e&&e.axisY?e.axisY:r(i.select("."+zo.axisY),t),s=null!=e&&e.axisY2?e.axisY2:r(i.select("."+zo.axisY2),t);r(i,t).attr("transform",n.getTranslate("main")),a.attr("transform",n.getTranslate("x")),o.attr("transform",n.getTranslate("y")),s.attr("transform",n.getTranslate("y2")),i.select("."+Do.chartArcs).attr("transform",n.getTranslate("arc"))},transformAll:function(t,e){var n=this,i=n.config,r=n.state.hasAxis,a=n.$el;n.transformMain(t,e),r&&i.subchart_show&&n.transformContext(t,e),a.legend&&n.transformLegend(t)}},Lh={setTargetType:function(t,e){var n=this,i=this,r=i.config,o=i.state.withoutFadeIn;i.mapToTargetIds(t).forEach(function(t){a(this,n),o[t]=e===r.data_types[t],r.data_types[t]=e}.bind(this)),t||(r.data_type=e)},updateTypesElements:function(){var t=this,e=this,n=e.state.current;Object.keys(Fn).forEach(function(i){a(this,t);var r=Fn[i],o=e.hasType(r,null,!0),s=n.types.indexOf(r);-1===s&&o?n.types.push(r):s>-1&&!o&&n.types.splice(s,1)}.bind(this)),e.setChartElements()},hasType:function(t,e,n){var i,r=this;void 0===n&&(n=!1);var o=this,s=o.config,u=o.state.current,c=s.data_types,l=e||o.data.targets,h=!1;return!n&&(null==(i=u.types)?void 0:i.indexOf(t))>-1?h=!0:null!=l&&l.length?l.forEach(function(e){a(this,r);var n=c[e.id];(n===t||!n&&"line"===t)&&(h=!0)}.bind(this)):Object.keys(c).length?Object.keys(c).forEach(function(e){a(this,r),c[e]===t&&(h=!0)}.bind(this)):h=s.data_type===t,h},hasTypeOf:function(t,e,n){var i=this;return void 0===n&&(n=[]),t in Bn&&!Bn[t].filter(function(t){return a(this,i),-1===n.indexOf(t)}.bind(this)).every(function(t){return a(this,i),!this.hasType(t,e)}.bind(this))},isTypeOf:function(t,e){var n=Ya(t)?t:t.id,i=this.config.data_types[n]||this.config.data_type;return eo(e)?e.indexOf(i)>=0:i===e},hasPointType:function(){var t=this;return t.hasTypeOf("Line")||t.hasType("bubble")||t.hasType("scatter")},hasArcType:function(t,e){return this.hasTypeOf("Arc",t,e)},hasMultiArcGauge:function(){return this.hasType("gauge")&&"multi"===this.config.gauge_type},isLineType:function(t){var e=Ya(t)?t:t.id;return!this.config.data_types[e]||this.isTypeOf(e,Bn.Line)},isStepType:function(t){return this.isTypeOf(t,Bn.Step)},isSplineType:function(t){return this.isTypeOf(t,Bn.Spline)},isAreaType:function(t){return this.isTypeOf(t,Bn.Area)},isAreaRangeType:function(t){return this.isTypeOf(t,Bn.AreaRange)},isBarType:function(t){return this.isTypeOf(t,"bar")},isBubbleType:function(t){return this.isTypeOf(t,"bubble")},isCandlestickType:function(t){return this.isTypeOf(t,"candlestick")},isScatterType:function(t){return this.isTypeOf(t,"scatter")},isPieType:function(t){return this.isTypeOf(t,"pie")},isGaugeType:function(t){return this.isTypeOf(t,"gauge")},isDonutType:function(t){return this.isTypeOf(t,"donut")},isPolarType:function(t){return this.isTypeOf(t,"polar")},isRadarType:function(t){return this.isTypeOf(t,"radar")},isArcType:function(t){return this.isPieType(t)||this.isDonutType(t)||this.isGaugeType(t)||this.isPolarType(t)||this.isRadarType(t)},isCirclePoint:function(t){var e=this.config,n=e.point_pattern;return"circle"===(null==t?void 0:t.tagName)||"circle"===e.point_type&&(!n||eo(n)&&0===n.length)},lineData:function(t){return this.isLineType(t)?[t]:[]},arcData:function(t){return this.isArcType(t.data)?[t]:[]},labelishData:function(t){var e=this;return this.isBarType(t)||this.isLineType(t)||this.isScatterType(t)||this.isBubbleType(t)||this.isCandlestickType(t)||this.isRadarType(t)?t.values.filter(function(t){return a(this,e),Va(t.value)||!!t.value}.bind(this)):[]},barLineBubbleData:function(t){return this.isBarType(t)||this.isLineType(t)||this.isBubbleType(t)?t.values:[]},isInterpolationType:function(t){return["basis","basis-closed","basis-open","bundle","cardinal","cardinal-closed","cardinal-open","catmull-rom","catmull-rom-closed","catmull-rom-open","linear","linear-closed","monotone-x","monotone-y","natural"].indexOf(t)>=0}},Ph=function(){function t(t){this.api=void 0,this.config=void 0,this.cache=void 0,this.$el=void 0,this.state=void 0,this.charts=void 0,this.data={xs:{},targets:[]},this.axis=void 0,this.scale={x:null,y:null,y2:null,subX:null,subY:null,subY2:null,zoom:null},this.org={xScale:null,xDomain:null},this.color=void 0,this.patterns=void 0,this.levelColor=void 0,this.point=void 0,this.brush=void 0,this.format={extraLineClasses:null,xAxisTick:null,dataTime:null,defaultAxisTime:null,axisTime:null};var e=this;e.api=t,e.config=new _s,e.cache=new Cs;var n=new ss;e.$el=n.getStore("element"),e.state=n.getStore("state"),e.$T=e.$T.bind(e)}var e=t.prototype;return e.$T=function(t,e,n){var i=this.config,r=this.state,a=i.transition_duration,o=i.subchart_show,s=t;s&&("tagName"in s&&(s=Pn(s)),s=(!1!==e&&a||e)&&(!r.zooming||r.dragging)&&!r.resizing&&r.rendered&&!o?s.transition(n).duration(a):s);return s},e.beforeInit=function(){var t=this;t.callPluginHook("$beforeInit"),ro(t.config.onbeforeinit,t.api)},e.afterInit=function(){var t=this;t.callPluginHook("$afterInit"),ro(t.config.onafterinit,t.api)},e.init=function(){var t=this,e=t.config,n=t.state,i=t.$el,r=e.boost_useCssRule;if(Co(t),n.hasAxis=!t.hasArcType(),n.hasRadar=!n.hasAxis&&t.hasType("radar"),n.datetimeId="bb-"+ +new Date*fo(),r){var a=zn.createElement("style");a.type="text/css",zn.head.appendChild(a),n.style={rootSelctor:"."+n.datetimeId,sheet:a.sheet},i.style=a}var o={element:e.bindto,classname:"bb"};no(e.bindto)&&(o.element=e.bindto.element||"#chart",o.classname=e.bindto.classname||o.classname),i.chart=Ua(o.element.node)?e.bindto.element:Pn(o.element||[]),i.chart.empty()&&(i.chart=Pn(zn.body.appendChild(zn.createElement("div")))),i.chart.html("").classed(o.classname,!0).classed(n.datetimeId,r).style("position","relative"),t.initParams(),t.initToRender()},e.initToRender=function(t){var e=this,n=this,i=n.config,r=n.state,o=n.$el.chart,s=function(){return a(this,e),"none"===o.style("display")||"hidden"===o.style("visibility")}.bind(this),u=i.render.lazy||s(),c=Nn.MutationObserver;u&&c&&!1!==i.render.observe&&!t&&new c(function(t,i){a(this,e),s()||(i.disconnect(),r.rendered||n.initToRender(!0))}.bind(this)).observe(o.node(),{attributes:!0,attributeFilter:["class","style"]}),u&&!t||n.convertData(i,function(t){a(this,e),n.initWithData(t),n.afterInit()}.bind(this))},e.initParams=function(){var t=this,e=this,n=e.config,i=e.format,r=e.state,o=n.axis_rotated;if(e.color=e.generateColor(),e.levelColor=e.generateLevelColor(),!1===n.padding&&(n.axis_x_show=!1,n.axis_y_show=!1,n.axis_y2_show=!1,n.subchart_show=!1),e.hasPointType()&&(e.point=e.generatePoint()),r.hasAxis){e.initClip(),i.extraLineClasses=e.generateExtraLineClass(),i.dataTime=n.data_xLocaltime?G:W,i.axisTime=n.axis_x_localtime?V:H;var s=e.config.zoom_enabled&&"drag"===e.config.zoom_type;i.defaultAxisTime=function(n){a(this,t);var r=e.scale,o=r.x,u=r.zoom,c=s?u:u&&o.orgDomain().toString()!==u.domain().toString(),l=(n.getMilliseconds()?".%L":n.getSeconds()&&".:%S")||n.getMinutes()&&"%I:%M"||n.getHours()&&"%I %p"||1!==n.getDate()&&"%b %d"||c&&1===n.getDate()&&"%b'%y"||n.getMonth()&&"%-m/%-d"||"%Y";return i.axisTime(l)(n)}.bind(this)}r.isLegendRight="right"===n.legend_position,r.isLegendInset="inset"===n.legend_position,r.isLegendTop="top-left"===n.legend_inset_anchor||"top-right"===n.legend_inset_anchor,r.isLegendLeft="top-left"===n.legend_inset_anchor||"bottom-left"===n.legend_inset_anchor,r.rotatedPadding.top=e.getResettedPadding(r.rotatedPadding.top),r.rotatedPadding.right=o&&!n.axis_x_show?0:30,r.inputType=function(t,e){var n=this,i=Nn.DocumentTouch,r=Nn.matchMedia,o=Nn.navigator,s=!1;if(e)if(o&&"maxTouchPoints"in o)s=o.maxTouchPoints>0;else if("ontouchmove"in Nn||i&&zn instanceof i)s=!0;else if(null!=r&&r("(pointer:coarse)").matches)s=!0;else{var u=o.userAgent;s=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(u)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(u)}return(t&&["any-hover:hover","any-pointer:fine"].some(function(t){return a(this,n),null==r?void 0:r("("+t+")").matches}.bind(this))?"mouse":s&&"touch")||"mouse"}(n.interaction_inputType_mouse,n.interaction_inputType_touch)},e.initWithData=function(t){var e=this,n=this,i=n.config,r=n.scale,o=n.state,s=n.$el,u=n.org,c=o.hasAxis,l=i.interaction_enabled,h=n.hasType("polar");c&&(n.axis=n.getAxisInstance(),i.zoom_enabled&&n.initZoom()),n.data.xs={},n.data.targets=n.convertDataToTargets(t),i.data_filter&&(n.data.targets=n.data.targets.filter(i.data_filter.bind(n.api))),i.data_hide&&n.addHiddenTargetIds(!0===i.data_hide?n.mapToIds(n.data.targets):i.data_hide),i.legend_hide&&n.addHiddenLegendIds(!0===i.legend_hide?n.mapToIds(n.data.targets):i.legend_hide),n.updateSizes(),n.updateScales(!0);var f=r.x,d=r.y,g=r.y2,p=r.subX,v=r.subY,y=r.subY2;if(f&&(f.domain(To(n.getXDomain(n.data.targets))),p.domain(f.domain()),u.xDomain=f.domain()),d&&(d.domain(n.getYDomain(n.data.targets,"y")),v.domain(d.domain())),g&&(g.domain(n.getYDomain(n.data.targets,"y2")),y&&y.domain(g.domain())),s.svg=s.chart.append("svg").style("overflow","hidden").style("display","block"),l&&o.inputType){var x="touch"===o.inputType,b=i.onclick,_=i.onover,m=i.onout;s.svg.on("click",(null==b?void 0:b.bind(n.api))||null).on(x?"touchstart":"mouseenter",(null==_?void 0:_.bind(n.api))||null).on(x?"touchend":"mouseleave",(null==m?void 0:m.bind(n.api))||null)}i.svg_classname&&s.svg.attr("class",i.svg_classname);var w=Ua(i.color_tiles)&&n.patterns;(c||w||i.data_labels_backgroundColors||h)&&(s.defs=s.svg.append("defs"),c&&["id","idXAxis","idYAxis","idGrid"].forEach(function(t){a(this,e),n.appendClip(s.defs,o.clip[t])}.bind(this)),n.generateDataLabelBackgroundColorFilter(),w&&n.patterns.forEach(function(t){var n=this;return a(this,e),s.defs.append(function(){return a(this,n),t.node}.bind(this))}.bind(this))),n.updateSvgSize(),n.bindResize();var T,A=s.svg.append("g").classed(Po.main,!0).attr("transform",n.getTranslate("main"));(s.main=A,i.subchart_show&&n.initSubchart(),i.tooltip_show&&n.initTooltip(),i.title_text&&n.initTitle(),i.legend_show&&n.initLegend(),i.data_empty_label_text&&A.append("text").attr("class",ns.text+" "+Po.empty).attr("text-anchor","middle").attr("dominant-baseline","middle"),c&&(i.regions.length&&n.initRegion(),i.clipPath||n.axis.init()),A.append("g").classed(Po.chart,!0).attr("clip-path",c?o.clip.path:null),n.callPluginHook("$init"),c)&&(l&&(null==n.initEventRect||n.initEventRect()),n.initGrid(),i.clipPath&&(null==(T=n.axis)||T.init()));if(n.initChartElements(),n.updateTargets(n.data.targets),n.updateDimension(),ro(i.oninit,n.api),n.setBackground(),n.redraw({withTransition:!1,withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransitionForAxis:!1,initializing:!0}),i.data_onmin||i.data_onmax){var S=n.getMinMaxData();ro(i.data_onmin,n.api,S.min),ro(i.data_onmax,n.api,S.max)}i.tooltip_show&&n.initShowTooltip(),o.rendered=!0},e.initChartElements=function(){var t=this,e=this,n=e.state,i=n.hasAxis,r=n.hasRadar,o=[];if(i)["bar","bubble","candlestick","line"].forEach(function(n){a(this,t);var i=yo(n);("line"===n&&e.hasTypeOf(i)||e.hasType(n))&&o.push(i)}.bind(this));else{var s=e.hasType("polar");r||o.push("Arc","Pie"),e.hasType("gauge")?o.push("Gauge"):r?o.push("Radar"):s&&o.push("Polar")}o.forEach(function(n){a(this,t),e["init"+n]()}.bind(this)),to(e.config.data_labels)&&!e.hasArcType(null,["radar"])&&e.initText()},e.setChartElements=function(){var t=this.$el,e=t.chart,n=t.svg,i=t.defs,r=t.main,a=t.tooltip,o=t.legend,s=t.title,u=t.grid,c=t.arcs,l=t.circle,h=t.bar,f=t.candlestick,d=t.line,g=t.area,p=t.text;this.api.$={chart:e,svg:n,defs:i,main:r,tooltip:a,legend:o,title:s,grid:u,arc:c,circles:l,bar:{bars:h},candlestick:f,line:{lines:d,areas:g},text:{texts:p}}},e.setBackground=function(){var t=this,e=t.config.background,n=t.state,i=t.$el.svg;if(to(e)){var r=i.select("g").insert(e.imgUrl?"image":"rect",":first-child");e.imgUrl?r.attr("href",e.imgUrl):e.color&&r.style("fill",e.color).attr("clip-path",n.clip.path),r.attr("class",e.class||null).attr("width","100%").attr("height","100%")}},e.updateTargets=function(t){var e=this,n=this,i=n.state,r=i.hasAxis,o=i.hasRadar,s=function(i){return a(this,e),n["updateTargetsFor"+i](t.filter(n["is"+i+"Type"].bind(n)))}.bind(this);if(n.updateTargetsForText(t),r)["bar","candlestick","line"].forEach(function(t){a(this,e);var i=yo(t);("line"===t&&n.hasTypeOf(i)||n.hasType(t))&&s(i)}.bind(this)),n.updateTargetsForSubchart&&n.updateTargetsForSubchart(t);else if(n.hasArcType(t)){var u="Arc";o?u="Radar":n.hasType("polar")&&(u="Polar"),s(u)}var c=n.hasType("bubble")||n.hasType("scatter");c&&(null==n.updateTargetForCircle||n.updateTargetForCircle()),n.filterTargetsToShowAtInit(c)},e.filterTargetsToShowAtInit=function(t){var e=this;void 0===t&&(t=!1);var n=this,i=n.$el.svg,r=n.$T,o="."+Po.target;t&&(o+=", ."+Bo.chartCircles+" > ."+Bo.circles),r(i.selectAll(o).filter(function(t){return a(this,e),n.isTargetToShow(t.id)}.bind(this))).style("opacity",null)},e.getWithOption=function(t){var e=this,n={Dimension:!0,EventRect:!0,Legend:!1,Subchart:!0,Transform:!1,Transition:!0,TrimXDomain:!0,UpdateXAxis:"UpdateXDomain",UpdateXDomain:!1,UpdateOrgXDomain:!1,TransitionForExit:"Transition",TransitionForAxis:"Transition",Y:!0};return Object.keys(n).forEach(function(i){a(this,e);var r=n[i];Ya(r)&&(r=n[r]),n[i]=io(t,"with"+i,r)}.bind(this)),n},e.initialOpacity=function(t){var e=this.state.withoutFadeIn;return null!==this.getBaseValue(t)&&e[t.id]?null:"0"},e.bindResize=function(){var t=this,e=this,n=e.config,i=e.state,r=function(t){var e,n=this,i=[],r=function(){var n=this;r.clear(),!1===t&&Nn.requestIdleCallback?requestIdleCallback(function(){var t=this;a(this,n),i.forEach(function(e){return a(this,t),e()}.bind(this))}.bind(this),{timeout:200}):e=Is(function(){var t=this;a(this,n),i.forEach(function(e){return a(this,t),e()}.bind(this))}.bind(this),Va(t)?t:200)};return r.clear=function(){a(this,n),e&&(Ls(e),e=null)}.bind(this),r.add=function(t){return a(this,n),i.push(t)}.bind(this),r.remove=function(t){return a(this,n),i.splice(i.indexOf(t),1)}.bind(this),r}(n.resize_timer),o=[];o.push(function(){return a(this,t),ro(n.onresize,e.api)}.bind(this)),n.resize_auto&&o.push(function(){a(this,t),i.resizing=!0,n.legend_show&&(e.updateSizes(),e.updateLegend()),e.api.flush(!1)}.bind(this)),o.push(function(){a(this,t),ro(n.onresized,e.api),i.resizing=!1}.bind(this)),o.forEach(function(e){return a(this,t),r.add(e)}.bind(this)),e.resizeFunction=r,Nn.addEventListener("resize",e.resizeFunction=r)},e.callPluginHook=function(t){for(var e=this,n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this.config.plugins.forEach(function(n){a(this,e),"$beforeInit"===t&&(n.$$=this,this.api.plugins.push(n)),n[t].apply(n,i)}.bind(this))},t}();function Dh(t){var e,n,i,r=this,o=this.config,s=function(){a(this,r);var t=n.shift();return t&&e&&Ja(e)&&t in e?(e=e[t],s()):t?void 0:e}.bind(this);Object.keys(o).forEach(function(u){a(this,r),e=t,n=u.split("_"),i=s(),Ha(i)&&(o[u]=i)}.bind(this)),this.api&&(this.state.orgConfig=t)}vo(Ph.prototype,[iu,ru,au,{categoryName:function(t){var e=this.config.axis_x_categories;return t<(null==e?void 0:e.length)?e[t]:t}},gu,Nu,zu,du,ju,Xu,$u,bl,Th,Ah,Sh,Mh,Rh,Ch,Ih,Lh]);var Nh={resize:function(t){var e=this.internal,n=e.config,i=e.state;i.rendered&&(n.size_width=t?t.width:null,n.size_height=t?t.height:null,i.resizing=!0,this.flush(!1),e.resizeFunction())},flush:function(t){var e=this.internal,n=e.state,i=e.$el.zoomResetBtn;if(n.rendered){var r,a;if(n.resizing)null==(r=e.brush)||r.updateResize();else null==(a=e.axis)||a.setOrient();null==i||i.style("display","none"),e.scale.zoom=null,t?e.redraw({withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withLegend:!0}):e.updateAndRedraw({withLegend:!0,withTransition:!1,withTransitionForTransform:!1}),!n.resizing&&e.brush&&(e.brush.getSelection().call(e.brush.move),e.unselectRect())}else e.initToRender(!0)},destroy:function(){var t=this,e=this.internal,n=e.$el,i=n.chart,r=n.style,o=n.svg;if(to(e))for(var s in e.callPluginHook("$willDestroy"),e.charts.splice(e.charts.indexOf(this),1),e.unbindAllEvents(),o.select("*").interrupt(),e.resizeFunction.clear(),Nn.removeEventListener("resize",e.resizeFunction),i.classed("bb",!1).style("position",null).selectChildren().remove(),r&&r.parentNode.removeChild(r),Object.keys(this).forEach(function(n){var i=this;a(this,t),"internal"===n&&Object.keys(e).forEach(function(t){a(this,i),e[t]=null}.bind(this)),this[n]=null,delete this[n]}.bind(this)),this)this[s]=function(){a(this,t)}.bind(this);return null},config:function(t,e,n){var i,r=this.internal,a=r.config,o=r.state,s=null==t?void 0:t.replace(/\./g,"_");return t&&s in a?Ha(e)?(a[s]=e,i=e,n&&this.flush()):i=a[s]:i=o.orgConfig,i}};function zh(t){var e=this,n=this.internal.data.targets;if(!Ga(t)){var i=eo(t)?t:[t];return n.filter(function(t){var n=this;return a(this,e),i.some(function(e){return a(this,n),e===t.id}.bind(this))}.bind(this))}return n}vo(zh,{shown:function(t){return this.internal.filterTargetsToShow(this.data(t))},values:function(t,e){var n=this;void 0===e&&(e=!0);var i=null;if(t){var r=this.data(t);eo(r)&&(i=[],r.forEach(function(t){var r=this;a(this,n);var o=t.values.map(function(t){return a(this,r),t.value}.bind(this));e?i=i.concat(o):i.push(o)}.bind(this)))}return i},names:function(t){return this.internal.updateDataAttributes("names",t)},colors:function(t){return this.internal.updateDataAttributes("colors",t)},axes:function(t){return this.internal.updateDataAttributes("axes",t)},min:function(){return this.internal.getMinMaxData().min},max:function(){return this.internal.getMinMaxData().max}});var Fh={data:zh},jh=function(t){var e=this;return a(this,undefined),btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,function(t,n){return a(this,e),String.fromCharCode(+("0x"+n))}.bind(this)))}.bind(void 0);function Bh(t,e,n){var i=this,r=e||n,o=r.width,s=r.height,u=new XMLSerializer,c=t.cloneNode(!0),l=function(t){var e=this,n=[];return t.forEach(function(t){a(this,e);try{t.cssRules&&t.cssRules.length&&(n=n.concat(xo(t.cssRules)))}catch(e){console.error("Error while reading rules from "+t.href+": "+e.toString())}}.bind(this)),n}(xo(zn.styleSheets)).filter(function(t){return a(this,i),t.cssText}.bind(this)).map(function(t){return a(this,i),t.cssText}.bind(this));c.setAttribute("xmlns",Pe.xhtml);var h=u.serializeToString(c),f=zn.createElement("style");f.appendChild(zn.createTextNode(l.join("\n")));var d=u.serializeToString(f),g=('<svg xmlns="'+Pe.svg+'" width="'+o+'" height="'+s+'" \n\t\tviewBox="0 0 '+n.width+" "+n.height+'" \n\t\tpreserveAspectRatio="'+(!1===(null==e?void 0:e.preserveAspectRatio)?"none":"xMinYMid meet")+'">\n\t\t\t<foreignObject width="100%" height="100%">\n\t\t\t\t'+d+"\n\t\t\t\t"+h.replace(/(url\()[^#]+/g,"$1")+"\n\t\t\t</foreignObject></svg>").replace("/\n/g","%0A");return"data:image/svg+xml;base64,"+jh(g)}var Xh={export:function(t,e){var n=this,i=this.internal,r=i.state,o=i.$el.chart,s=r.current,u=s.width,c=s.height,l=wo({width:u,height:c,preserveAspectRatio:!0,mimeType:"image/png"},t),h=Bh(o.node(),l,{width:u,height:c});if(e&&Ua(e)){var f=new Image;f.crossOrigin="Anonymous",f.onload=function(){a(this,n);var t=zn.createElement("canvas"),i=t.getContext("2d");t.width=l.width||u,t.height=l.height||c,i.drawImage(f,0,0),e.bind(this)(t.toDataURL(l.mimeType))}.bind(this),f.src=h}return h}},$h={focus:function(t){var e=this,n=this.internal,i=n.state,r=n.mapToTargetIds(t),o=n.$el.svg.selectAll(n.selectorTargets(r.filter(n.isTargetToShow,n)));this.revert(),this.defocus(),o.classed(Ho.focused,!0).classed(Ho.defocused,!1),n.hasArcType()&&!i.hasRadar&&(n.expandArc(r),n.hasType("gauge")&&n.markOverlapped(t,n,"."+Uo.gaugeValue)),n.toggleFocusLegend(r,!0),i.focusedTargetIds=r,i.defocusedTargetIds=i.defocusedTargetIds.filter(function(t){return a(this,e),r.indexOf(t)<0}.bind(this))},defocus:function(t){var e=this,n=this.internal,i=n.state,r=n.mapToTargetIds(t);n.$el.svg.selectAll(n.selectorTargets(r.filter(n.isTargetToShow,n))).classed(Ho.focused,!1).classed(Ho.defocused,!0),n.hasArcType(null,["polar"])&&(n.unexpandArc(r),n.hasType("gauge")&&n.undoMarkOverlapped(n,"."+Uo.gaugeValue)),n.toggleFocusLegend(r,!1),i.focusedTargetIds=i.focusedTargetIds.filter(function(t){return a(this,e),r.indexOf(t)<0}.bind(this)),i.defocusedTargetIds=r},revert:function(t){var e=this.internal,n=e.config,i=e.state,r=e.$el,a=e.mapToTargetIds(t);r.svg.selectAll(e.selectorTargets(a)).classed(Ho.focused,!1).classed(Ho.defocused,!1),e.hasArcType(null,["polar"])&&e.unexpandArc(a),n.legend_show&&(e.showLegend(a.filter(e.isLegendToShow.bind(e))),r.legend.selectAll(e.selectorLegends(a)).filter((function(){return Pn(this).classed(Ho.legendItemFocused)})).classed(Ho.legendItemFocused,!1)),i.focusedTargetIds=[],i.defocusedTargetIds=[]}},Uh={load:function(t){var e=this,n=this.internal,i=n.config;t.xs&&n.addXs(t.xs),"names"in t&&this.data.names(t.names),"classes"in t&&Object.keys(t.classes).forEach(function(n){a(this,e),i.data_classes[n]=t.classes[n]}.bind(this)),"categories"in t&&n.axis.isCategorized()&&(i.axis_x_categories=t.categories),"axes"in t&&Object.keys(t.axes).forEach(function(n){a(this,e),i.data_axes[n]=t.axes[n]}.bind(this)),"colors"in t&&Object.keys(t.colors).forEach(function(n){a(this,e),i.data_colors[n]=t.colors[n]}.bind(this)),"unload"in t&&!1!==t.unload?n.unload(n.mapToTargetIds(!0===t.unload?null:t.unload),function(){var i=this;a(this,e),Nn.requestIdleCallback(function(){return a(this,i),n.loadFromArgs(t)}.bind(this))}.bind(this)):n.loadFromArgs(t)},unload:function(t){var e=this,n=this.internal,i=t||{};eo(i)?i={ids:i}:Ya(i)&&(i={ids:[i]});var r=n.mapToTargetIds(i.ids);n.unload(r,function(){a(this,e),n.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),n.cache.remove(r),i.done&&i.done.call(this)}.bind(this))}};function Yh(t,e,n){var i=this,r=this.internal,o=r.mapToTargetIds(e),s=r.state.hiddenTargetIds.map(function(t){return a(this,i),o.indexOf(t)>-1&&t}.bind(this)).filter(Boolean);r.state.toggling=!0,r[(t?"remove":"add")+"HiddenTargetIds"](o);var u=r.$el.svg.selectAll(r.selectorTargets(o)),c=t?null:"0";t&&s.length&&(u.style("display",null),ro(r.config.data_onshown,this,s)),r.$T(u).style("opacity",c,"important").call(ao,function(){a(this,i),t||0!==s.length||(u.style("display","none"),ro(r.config.data_onhidden,this,o)),u.style("opacity",c)}.bind(this)),n.withLegend&&r[(t?"show":"hide")+"Legend"](o),r.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),r.state.toggling=!1}var Vh={show:function(t,e){void 0===e&&(e={}),Yh.call(this,!0,t,e)},hide:function(t,e){void 0===e&&(e={}),Yh.call(this,!1,t,e)},toggle:function(t,e){var n=this;void 0===e&&(e={});var i=this.internal,r={show:[],hide:[]};i.mapToTargetIds(t).forEach(function(t){return a(this,n),r[i.isTargetToShow(t)?"hide":"show"].push(t)}.bind(this)),r.show.length&&this.show(r.show,e),r.hide.length&&setTimeout(function(){return a(this,n),this.hide(r.hide,e)}.bind(this),0)}},Gh={show:function(t){var e,n,i=this,r=this.internal,o=r.config,s=r.state.inputType;if(t.mouse&&(n=t.mouse),t.data){var u=t.data,c=r.getYScaleById(u.id)(u.value);r.isMultipleX()?n=[r.scale.x(u.x),c]:(o.tooltip_grouped||(n=[0,c]),e=$a(u.index)?u.index:r.getIndexByX(u.x))}else Ha(t.x)?e=r.getIndexByX(t.x):Ha(t.index)&&(e=t.index);("mouse"===s?["mouseover","mousemove"]:["touchstart"]).forEach(function(t){a(this,i),r.dispatchEvent(t,e,n)}.bind(this))},hide:function(){var t=this,e=this.internal,n=e.state.inputType,i=e.$el.tooltip,r=null==i?void 0:i.datum();if(r){var o=JSON.parse(r.current)[0].index;("mouse"===n?["mouseout"]:["touchend"]).forEach(function(n){a(this,t),e.dispatchEvent(n,o)}.bind(this))}"touch"===n&&e.callOverOutForTouch(),e.hideTooltip(!0),e.hideGridFocus(),null==e.unexpandCircles||e.unexpandCircles(),e.expandBarTypeShapes(!1)}},Hh=function t(e){this.plugins=[],this.internal=void 0;var n=new Ph(this);this.internal=n,function t(e,n,i){var r=this;Object.keys(e).forEach(function(o){a(this,r);var s=Ua(e[o]),u=n!==i,c=to(e[o]),l=c&&Object.keys(e[o]).length>0;n[o]=s&&(!u&&l||u)?e[o].bind(i):c&&!s?{}:e[o],l&&t(e[o],n[o],i)}.bind(this))}(t.prototype,this,this),Dh.call(n,e),n.beforeInit(),n.init()};function Wh(t,e,n){var i=this,r=t.config,o=function(t,n){a(this,i);var o=Va(n)?n:!1===n?void 0:null;null!==o&&(r["axis_"+t+"_"+e]=o)}.bind(this);Ha(n)&&(Ja(n)?Object.keys(n).forEach(function(t){a(this,i),o(t,n[t])}.bind(this)):(Va(n)||!1===n)&&["y","y2"].forEach(function(t){a(this,i),o(t,n)}.bind(this)),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))}function qh(t,e){var n=t.config;return{x:n["axis_x_"+e],y:n["axis_y_"+e],y2:n["axis_y2_"+e]}}vo(Hh.prototype,[Nh,{color:function(t){return this.internal.color(t)}},Fh,Xh,$h,{legend:{show:function(t){var e=this.internal;e.showLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})},hide:function(t){var e=this.internal;e.hideLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})}}},Uh,Vh,{tooltip:Gh}]);var Zh={labels:function(t){var e,n=this,i=this.internal;return t&&(Object.keys(t).forEach(function(e){a(this,n),i.axis.setLabelText(e,t[e])}.bind(this)),i.axis.updateLabels()),["x","y","y2"].forEach(function(t){a(this,n);var r=i.axis.getLabelText(t);r&&(e||(e={}),e[t]=r)}.bind(this)),e},min:function(t){var e=this.internal;return $a(t)||!1===t?Wh(e,"min",t):qh(e,"min")},max:function(t){var e=this.internal;return $a(t)||!1===t?Wh(e,"max",t):qh(e,"max")},range:function(t){var e=this.axis;if(!arguments.length)return{max:e.max(),min:e.min()};var n=t.min,i=t.max;Ha(i)&&e.max(i),Ha(n)&&e.min(n)}},Kh={axis:Zh};function Jh(t){var e=this.internal,n=e.config;return t?(n.grid_x_lines=t,e.redrawWithoutRescale(),n.grid_x_lines):n.grid_x_lines}vo(Jh,{add:function(t){return this.xgrids(this.internal.config.grid_x_lines.concat(t||[]))},remove:function(t){this.internal.removeGridLines(t,!0)}});var Qh={xgrids:Jh};function tf(t){var e=this.internal,n=e.config;return t?(n.grid_y_lines=t,e.redrawWithoutRescale(),n.grid_y_lines):n.grid_y_lines}vo(tf,{add:function(t){return this.ygrids(this.internal.config.grid_y_lines.concat(t||[]))},remove:function(t){this.internal.removeGridLines(t,!1)}});var ef={ygrids:tf},nf={groups:function(t){var e=this.internal,n=e.config;return Ga(t)||(n.data_groups=t,e.redraw()),n.data_groups}};function rf(t){var e=this.internal,n=e.config;return t?(n.regions=t,e.redrawWithoutRescale(),t):n.regions}vo(rf,{add:function(t){var e=this.internal,n=e.config;return t?(n.regions=n.regions.concat(t),e.redrawWithoutRescale(),n.regions):n.regions},remove:function(t){var e=this,n=this.internal,i=n.config,r=n.$T,o=t||{},s=io(o,"classes",[Jo.region]),u=n.$el.main.select("."+Jo.regions).selectAll(s.map(function(t){return a(this,e),"."+t}.bind(this)));return r(u).style("opacity","0").remove(),u=i.regions,Object.keys(o).length?(u=u.filter(function(t){var n=this;a(this,e);var i=!1;return!t.class||(t.class.split(" ").forEach(function(t){a(this,n),s.indexOf(t)>=0&&(i=!0)}.bind(this)),!i)}.bind(this)),i.regions=u):i.regions=[],u}});var af={regions:rf},of={x:function(t){var e=this.internal,n=e.axis,i=e.data,r=n.isCustomX()&&n.isCategorized();return eo(t)&&(r?this.categories(t):(e.updateTargetX(i.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))),r?this.categories():i.xs},xs:function(t){var e=this.internal;return no(t)&&(e.updateTargetXs(e.data.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),e.data.xs}},sf={flow:function(t){var e,n=this,i=this.internal;(t.json||t.rows||t.columns)&&i.convertData(t,function(r){a(this,n),e=r,function(){var n,r,o,s=this,u=0,c=0;if(i.state.redrawing||!e||!Oo())return;var l=[],h=i.getMaxDataCount(),f=i.convertDataToTargets(e,!0),d=i.axis.isTimeSeries();i.data.targets.forEach(function(t){a(this,s);for(var e=!1,n=0;n<f.length;n++)if(t.id===f[n].id){e=!0,t.values[t.values.length-1]&&(c=t.values[t.values.length-1].index+1),u=f[n].values.length;for(var i=0;i<u;i++)f[n].values[i].index=c+i,d||(f[n].values[i].x=c+i);t.values=t.values.concat(f[n].values),f.splice(n,1);break}e||l.push(t.id)}.bind(this)),i.data.targets.forEach(function(t){a(this,s);for(var e=0;e<l.length;e++)if(t.id===l[e]){c=t.values[t.values.length-1].index+1;for(var n=0;n<u;n++)t.values.push({id:t.id,index:c+n,x:d?i.getOtherTargetX(c+n):c+n,value:null})}}.bind(this)),i.data.targets.length&&f.forEach(function(t){var e=this;a(this,s);for(var n=[],r=i.data.targets[0].values[0].index;r<c;r++)n.push({id:t.id,index:r,x:d?i.getOtherTargetX(r):r,value:null});t.values.forEach(function(t){a(this,e),t.index+=c,d||(t.x+=c)}.bind(this)),t.values=n.concat(t.values)}.bind(this));i.data.targets=i.data.targets.concat(f);var g=i.data.targets[0],p=g.values[0];Ha(t.to)?(u=0,o=d?Mo.call(i,t.to):t.to,g.values.forEach(function(t){a(this,s),t.x<o&&u++}.bind(this))):Ha(t.length)&&(u=t.length);h?1===h&&d&&(r=(g.values[g.values.length-1].x-p.x)/2,n=[new Date(+p.x-r),new Date(+p.x+r)]):(r=d?g.values.length>1?g.values[g.values.length-1].x-p.x:p.x-i.getXDomain(i.data.targets)[0]:1,n=[p.x-r,p.x]);n&&i.updateXDomain(null,!0,!0,!1,n),i.updateTargets(i.data.targets),i.redraw({flow:{index:p.index,length:u,duration:$a(t.duration)?t.duration:i.config.transition_duration,done:t.done,orgDataCount:h},withLegend:!0,withTransition:h>1,withTrimXDomain:!1,withUpdateXAxis:!0})}()}.bind(this))}};function uf(t){return t}var cf=1e-6;function lf(t){return"translate("+t+",0)"}function hf(t){return"translate(0,"+t+")"}function ff(t){var e=this;return function(n){return a(this,e),+t(n)}.bind(this)}function df(t,e){var n=this;return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),function(i){return a(this,n),+t(i)+e}.bind(this)}function gf(){return!this.__axis}function pf(t,e){var n=[],i=null,r=null,a=6,o=6,s=3,u="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,c=1===t||4===t?-1:1,l=4===t||2===t?"x":"y",h=1===t||3===t?lf:hf;function f(f){var d=null==i?e.ticks?e.ticks.apply(e,n):e.domain():i,g=null==r?e.tickFormat?e.tickFormat.apply(e,n):uf:r,p=Math.max(a,0)+s,v=e.range(),y=+v[0]+u,x=+v[v.length-1]+u,b=(e.bandwidth?df:ff)(e.copy(),u),_=f.selection?f.selection():f,m=_.selectAll(".domain").data([null]),w=_.selectAll(".tick").data(d,e).order(),T=w.exit(),A=w.enter().append("g").attr("class","tick"),S=w.select("line"),E=w.select("text");m=m.merge(m.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(A),S=S.merge(A.append("line").attr("stroke","currentColor").attr(l+"2",c*a)),E=E.merge(A.append("text").attr("fill","currentColor").attr(l,c*p).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),f!==_&&(m=m.transition(f),w=w.transition(f),S=S.transition(f),E=E.transition(f),T=T.transition(f).attr("opacity",cf).attr("transform",(function(t){return isFinite(t=b(t))?h(t+u):this.getAttribute("transform")})),A.attr("opacity",cf).attr("transform",(function(t){var e=this.parentNode.__axis;return h((e&&isFinite(e=e(t))?e:b(t))+u)}))),T.remove(),m.attr("d",4===t||2===t?o?"M"+c*o+","+y+"H"+u+"V"+x+"H"+c*o:"M"+u+","+y+"V"+x:o?"M"+y+","+c*o+"V"+u+"H"+x+"V"+c*o:"M"+y+","+u+"H"+x),w.attr("opacity",1).attr("transform",(function(t){return h(b(t)+u)})),S.attr(l+"2",c*a),E.attr(l,c*p).text(g),_.filter(gf).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),_.each((function(){this.__axis=b}))}return f.scale=function(t){return arguments.length?(e=t,f):e},f.ticks=function(){return n=Array.from(arguments),f},f.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),f):n.slice()},f.tickValues=function(t){return arguments.length?(i=null==t?null:Array.from(t),f):i&&i.slice()},f.tickFormat=function(t){return arguments.length?(r=t,f):r},f.tickSize=function(t){return arguments.length?(a=o=+t,f):a},f.tickSizeInner=function(t){return arguments.length?(a=+t,f):a},f.tickSizeOuter=function(t){return arguments.length?(o=+t,f):o},f.tickPadding=function(t){return arguments.length?(s=+t,f):s},f.offset=function(t){return arguments.length?(u=+t,f):u},f}function vf(t){return pf(1,t)}function yf(t){return pf(2,t)}function xf(t){return pf(3,t)}function bf(t){return pf(4,t)}var _f=function(){function t(t){this.owner=void 0,this.config=void 0,this.scale=void 0;var e=xl(),n=t.config,i=t.params;this.owner=t,this.config=n,this.scale=e,!n.noTransition&&i.config.transition_duration||(n.withoutTransition=!0),n.range=this.scaleExtent((i.orgXScale||e).range())}t.getSizeFor1Char=function(t){var e=this,n={w:5.5,h:11.5};return t.empty()||t.select("text").text("0").call(function(t){a(this,e);try{var i=t.node().getBBox(),r=i.width,o=i.height;r&&o&&(n.w=r,n.h=o)}catch(t){}finally{t.text("")}}.bind(this)),this.getSizeFor1Char=function(){return a(this,e),n}.bind(this),n};var e=t.prototype;return e.getTickTransformSetter=function(t){var e=this,n=this.config,i="x"===t?function(t){return a(this,e),"translate("+(t+n.tickOffset)+",0)"}.bind(this):function(t){return a(this,e),"translate(0,"+t+")"}.bind(this);return function(t,n){var r=this;a(this,e),t.attr("transform",function(t){return a(this,r),$a(t)?i(Math.ceil(n(t))):null}.bind(this))}.bind(this)},e.scaleExtent=function(t){var e=t[0],n=t[t.length-1];return e<n?[e,n]:[n,e]},e.generateTicks=function(t,e){var n=this,i=this.owner.params.tickStepSize,r=t.domain(),o=r[0],s=r[1],u=[];if(e&&i)for(var c=Math.round(o);c<=s;)u.push(c),c+=i;else if(t.ticks){var l=this.config.tickArguments;if("log"!==t.type||l)u=t.ticks.apply(t,this.config.tickArguments||[]);else{var h=xl("_log").domain([o>0?o:1,s]).range(t.range());u=h.ticks();for(var f=s.toFixed().length;u.length>15;f--)u=h.ticks(f);u.splice(0,1,o),u.splice(u.length-1,1,s)}u=u.map(function(t){return a(this,n),Ya(t)&&Va(t)&&!isNaN(t)&&Math.round(10*t)/10||t}.bind(this))}else{for(var d=Math.ceil(o);d<s;d++)u.push(d);u.length>0&&u[0]>0&&u.unshift(u[0]-(u[1]-u[0]))}return u},e.copyScale=function(){var t=this.scale.copy();return t.domain().length||t.domain(this.scale.domain()),t.type=this.scale.type,t},e.textFormatted=function(t){var e=this.config.tickFormat,n=/\d+\.\d+0{5,}\d$/.test(t)?+(t+"").replace(/0+\d$/,""):t,i=e?e(n):n;return Ha(i)?i:""},e.transitionise=function(t){var e=this.config,n=t;if(e.withoutTransition)n=t.interrupt();else if(e.transition||!this.owner.params.noTransition)try{n=t.transition(e.transition)}catch(t){}return n},t}(),mf=function(){function t(t){void 0===t&&(t={}),this.helper=void 0,this.config=void 0,this.params=void 0,this.g=void 0,this.generatedTicks=void 0;var e={innerTickSize:6,outerTickSize:t.outerTick?6:0,orient:"bottom",range:[],tickArguments:null,tickCentered:null,tickCulling:!0,tickFormat:null,tickLength:9,tickOffset:0,tickPadding:3,tickValues:null,transition:null,noTransition:t.noTransition};e.tickLength=Math.max(e.innerTickSize,0)+e.tickPadding,this.config=e,this.params=t,this.helper=new _f(this)}var e=t.prototype;return e.create=function(t){var e=this,n=e.config,i=e.helper,r=e.params,o=i.scale,s=n.orient,u=this.splitTickText.bind(e),c=/^(left|right)$/.test(s),l=/^(top|bottom)$/.test(s),h=i.getTickTransformSetter(l?"x":"y"),f=h===i.axisX?"y":"x",d=/^(top|left)$/.test(s)?-1:1,g=r.tickTextRotate;this.config.range=o.rangeExtent?o.rangeExtent():i.scaleExtent((r.orgXScale||o).range());var p,v=n.innerTickSize,y=n.tickLength,x=n.range,b=r.id,_=b&&/^(x|y|y2)$/.test(b)?r.config["axis_"+b+"_tick_text_position"]:{x:0,y:0},m="subX"===b?"subchart_axis_x":"axis_"+b,w=r.config[m+"_show"],T=!!w&&r.config[m+"_tick_show"],A=!!w&&r.config[m+"_tick_text_show"];t.each((function(){var t=this,b=Pn(this),m=this.__chart__||o,w=i.copyScale();p=b,this.__chart__=w,n.tickOffset=r.isCategory?Math.ceil((w(1)-w(0))/2):0;var S=b.selectAll(".domain").data([0]);if(S.enter().append("path").attr("class","domain").merge(S).attr("d",function(){a(this,t);var e=n.outerTickSize*d;return l?"M"+x[0]+","+e+"V0H"+x[1]+"V"+e:"M"+e+","+x[0]+"H0V"+x[1]+"H"+e}.bind(this)),T||A){var E=n.tickValues||i.generateTicks(w,c);e.generatedTicks=E;var k=b.selectAll(".tick").data(E,w),M=k.enter().insert("g",".domain").attr("class","tick"),O=k.exit().remove();k=M.merge(k),T&&M.append("line"),A&&M.append("text");var R=_f.getSizeFor1Char(k),C=[],I=k.select("text").selectAll("tspan").data(function(e,n){var o=this;a(this,t);var s=r.tickMultiline?u(e,w,E,c,R.w):eo(i.textFormatted(e))?i.textFormatted(e).concat():[i.textFormatted(e)];return C[n]=s.length,s.map(function(t){return a(this,o),{index:n,splitted:t}}.bind(this))}.bind(this));I.exit().remove(),(I=I.enter().append("tspan").merge(I).text(function(e){return a(this,t),e.splitted}.bind(this))).attr("x",l?0:y*d).attr("dx",function(){a(this,t);var e=0;return/(top|bottom)/.test(s)&&g&&(e=8*Math.sin(Math.PI*(g/180))*("top"===s?-1:1)),e+(_.x||0)}.bind(this)()).attr("dy",function(e,n){a(this,t);var i=0;return"top"!==s&&(i=R.h,0===n&&(i=c?-((C[e.index]-1)*(R.h/2)-3):0===_.y?".71em":0)),Va(i)&&_.y?i+_.y:i||".71em"}.bind(this));var L=k.select("line"),P=k.select("text");if(M.select("line").attr(f+"2",v*d),M.select("text").attr(f,y*d),e.setTickLineTextPosition(L,P),r.tickTitle){var D=P.select("title");(D.empty()?P.append("title"):D).text(function(e){return a(this,t),r.tickTitle[e]}.bind(this))}if(w.bandwidth){var N=w,z=N.bandwidth()/2;m=function(e){return a(this,t),N(e)+z}.bind(this),w=m}else m.bandwidth?m=w:h(O,w);k=r.owner.state.flowing?i.transitionise(k):r.owner.$T(k),h(M,m),h(k.style("opacity",null),w)}})),this.g=p},e.getGeneratedTicks=function(t){var e,n=(null==(e=this.generatedTicks)?void 0:e.length)-1,i=this.generatedTicks,r=this;if(n>t){var o=Math.round(n/t+.1);i=this.generatedTicks.map(function(t,e){return a(this,r),e%o==0?t:null}.bind(this)).filter(function(t){return a(this,r),null!==t}.bind(this)).splice(0,t)}return i},e.getTickXY=function(){var t=this.config,e={x:0,y:0};return this.params.isCategory&&(e.x=t.tickCentered?0:t.tickOffset,e.y=t.tickCentered?t.tickOffset:0),e},e.getTickSize=function(t){var e=this.helper.scale,n=this.config,i=n,r=i.innerTickSize,a=i.range,o=e(t)+(n.tickCentered?0:n.tickOffset);return a[0]<o&&o<a[1]?r:0},e.setTickLineTextPosition=function(t,e){var n=this,i=this.getTickXY(),r=this.config,o=r.innerTickSize,s=r.orient,u=r.tickLength,c=r.tickOffset,l=this.params.tickTextRotate,h=function(t){a(this,n);var e=["start","end"];return"top"===s&&e.reverse(),t?e[t>0?0:1]:"middle"}.bind(this),f=function(t){return a(this,n),t?"rotate("+t+")":null}.bind(this),d=function(t){return a(this,n),t?11.5-2.5*(t/("bottom"===s?15:23))*(t>0?1:-1):u}.bind(this);switch(s){case"bottom":t.attr("x1",i.x).attr("x2",i.x).attr("y2",this.getTickSize.bind(this)),e.attr("x",0).attr("y",d(l)).style("text-anchor",h(l)).attr("transform",f(l));break;case"top":t.attr("x2",0).attr("y2",-o),e.attr("x",0).attr("y",2*-d(l)).style("text-anchor",h(l)).attr("transform",f(l));break;case"left":t.attr("x2",-o).attr("y1",i.y).attr("y2",i.y),e.attr("x",-u).attr("y",c).style("text-anchor","end");break;case"right":t.attr("x2",o).attr("y2",0),e.attr("x",u).attr("y",0).style("text-anchor","start")}},e.splitTickText=function(t,e,n,i,r){var a=this.params,o=this.helper.textFormatted(t),s=Ya(o)&&o.indexOf("\n")>-1?o.split("\n"):[];if(s.length)return s;if(eo(o))return o;var u=a.tickWidth;return(!u||u<=0)&&(u=i?95:a.isCategory?Math.ceil(e(n[1])-e(n[0]))-12:110),function t(e,n){for(var i,a,o,s=1;s<n.length;s++)if(" "===n.charAt(s)&&(a=s),i=n.substr(0,s+1),o=r*i.length,u<o)return t(e.concat(n.substr(0,a||s)),n.slice(a?a+1:s));return e.concat(n)}(s,o+"")},e.scale=function(t){return arguments.length?(this.helper.scale=t,this):this.helper.scale},e.orient=function(t){return arguments.length?(this.config.orient=t in{top:1,right:1,bottom:1,left:1}?t+"":"bottom",this):this.config.orient},e.tickFormat=function(t){var e=this.config;return arguments.length?(e.tickFormat=t,this):e.tickFormat},e.tickCentered=function(t){var e=this.config;return arguments.length?(e.tickCentered=t,this):e.tickCentered},e.tickOffset=function(){return this.config.tickOffset},e.tickInterval=function(t){var e,n=this,i=this.config,r=i.outerTickSize,o=i.tickOffset,s=i.tickValues;if(this.params.isCategory)e=2*o;else{e=(this.g.select("path.domain").node().getTotalLength()-2*r)/(t||this.g.selectAll("line").size());var u=s?s.map(function(t,e,i){a(this,n);var r=e+1;return r<i.length?this.helper.scale(i[r])-this.helper.scale(t):null}.bind(this)).filter(Boolean):[];e=Math.min.apply(Math,u.concat([e]))}return e===1/0?0:e},e.ticks=function(){for(var t=this.config,e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];return n.length?(t.tickArguments=xo(n),this):t.tickArguments},e.tickCulling=function(t){var e=this.config;return arguments.length?(e.tickCulling=t,this):e.tickCulling},e.tickValues=function(t){var e=this,n=this.config;if(Ua(t))n.tickValues=function(){return a(this,e),t(this.helper.scale.domain())}.bind(this);else{if(!arguments.length)return n.tickValues;n.tickValues=t}return this},e.setTransition=function(t){return this.config.transition=t,this},t}(),wf={getAxisInstance:function(){return this.axis||new Tf(this)}},Tf=function(){function t(t){this.owner=void 0,this.x=void 0,this.subX=void 0,this.y=void 0,this.y2=void 0,this.axesList={},this.tick={x:null,y:null,y2:null},this.xs=[],this.orient={x:"bottom",y:"left",y2:"right",subX:"bottom"},this.owner=t,this.setOrient()}var e=t.prototype;return e.getAxisClassName=function(t){return zo.axis+" "+zo["axis"+yo(t)]},e.isHorizontal=function(t,e){var n=t.config.axis_rotated;return e?n:!n},e.isCategorized=function(){var t=this.owner,e=t.config,n=t.state;return e.axis_x_type.indexOf("category")>=0||n.hasRadar},e.isCustomX=function(){var t=this.owner.config;return!this.isTimeSeries()&&(t.data_x||to(t.data_xs))},e.isTimeSeries=function(t){return void 0===t&&(t="x"),"timeseries"===this.owner.config["axis_"+t+"_type"]},e.isLog=function(t){return void 0===t&&(t="x"),"log"===this.owner.config["axis_"+t+"_type"]},e.isTimeSeriesY=function(){return this.isTimeSeries("y")},e.getAxisType=function(t){void 0===t&&(t="x");var e="linear";return this.isTimeSeries(t)?e=this.owner.config.axis_x_localtime?"time":"utc":this.isLog(t)&&(e="log"),e},e.init=function(){var t=this,e=this.owner,n=e.config,i=e.$el,r=i.main,o=i.axis,s=e.state.clip,u=n.axis_rotated,c=["x","y"];n.axis_y2_show&&c.push("y2"),c.forEach(function(i){var c=this;a(this,t);var l=this.getAxisClassName(i),h=zo["axis"+i.toUpperCase()+"Label"];o[i]=r.append("g").attr("class",l).attr("clip-path",function(){a(this,c);var t=null;return"x"===i?t=s.pathXAxis:"y"===i&&(t=s.pathYAxis),t}.bind(this)).attr("transform",e.getTranslate(i)).style("visibility",n["axis_"+i+"_show"]?null:"hidden"),o[i].append("text").attr("class",h).attr("transform",["rotate(-90)",null]["x"===i?+!u:+u]).style("text-anchor",function(){return a(this,c),this.textAnchorForAxisLabel(i)}.bind(this)),this.generateAxes(i)}.bind(this))},e.setOrient=function(){var t=this.owner.config,e=t.axis_rotated,n=t.axis_y_inner,i=t.axis_y2_inner;this.orient={x:e?"left":"bottom",y:e?n?"top":"bottom":n?"right":"left",y2:e?i?"bottom":"top":i?"left":"right",subX:e?"left":"bottom"}},e.generateAxes=function(t){var e,n=this,i=this.owner,r=i.config,o=[],s=r["axis_"+t+"_axes"],u=r.axis_rotated;"x"===t?e=u?bf:xf:"y"===t?e=u?xf:bf:"y2"===t&&(e=u?vf:yf),s.length&&s.forEach(function(r){var s=this;a(this,n);var u=r.tick||{},c=i.scale[t].copy();r.domain&&c.domain(r.domain),o.push(e(c).ticks(u.count).tickFormat(Ua(u.format)?u.format.bind(i.api):function(t){return a(this,s),t}.bind(this)).tickValues(u.values).tickSizeOuter(!1===u.outer?0:6))}.bind(this)),this.axesList[t]=o},e.updateAxes=function(){var t=this,e=this.owner,n=e.config,i=e.$el.main,r=e.$T;Object.keys(this.axesList).forEach(function(o){var s=this;a(this,t);var u=n["axis_"+o+"_axes"],c=e.scale[o].copy(),l=c.range();this.axesList[o].forEach(function(t,h){var f=this;a(this,s);var d=t.scale().range();l.every(function(t,e){return a(this,f),t===d[e]}.bind(this))||t.scale().range(l);var g=this.getAxisClassName(o)+"-"+(h+1),p=i.select("."+g.replace(/\s/,"."));p.empty()?p=i.append("g").attr("class",g).style("visibility",n["axis_"+o+"_show"]?null:"hidden").call(t):(u[h].domain&&c.domain(u[h].domain),r(p).call(t.scale(c))),p.attr("transform",e.getTranslate(o,h+1))}.bind(this))}.bind(this))},e.setAxis=function(t,e,n,i){var r=this.owner;"subX"!==t&&(this.tick[t]=this.getTickValues(t)),this[t]=this.getAxis(t,e,n,!("x"!==t||!(r.scale.zoom||r.config.subchart_show||r.state.resizing))||i)},e.getAxis=function(t,e,n,i,r){var o,s=this,u=this.owner,c=u.config,l=/^(x|subX)$/.test(t),h=l?"x":t,f=l&&this.isCategorized(),d=this.orient[t],g=r?0:u.getAxisTickRotate(h);if(l)o="subX"===t?u.format.subXAxisTick:u.format.xAxisTick;else{var p=c["axis_"+t+"_tick_format"];Ua(p)&&(o=p.bind(u.api))}var v=this.tick[h],y=wo({outerTick:n,noTransition:i,config:c,id:t,tickTextRotate:g,owner:u},l&&{isCategory:f,tickMultiline:c.axis_x_tick_multiline,tickWidth:c.axis_x_tick_width,tickTitle:f&&c.axis_x_tick_tooltip&&u.api.categories(),orgXScale:u.scale.x});l||(y.tickStepSize=c["axis_"+h+"_tick_stepSize"]);var x=new mf(y).scale(l&&u.scale.zoom||e).orient(d);if(l&&this.isTimeSeries()&&v&&!Ua(v)){var b=Mo.bind(u);v=v.map(function(t){return a(this,s),b(t)}.bind(this))}else!l&&this.isTimeSeriesY()&&(x.ticks(c.axis_y_tick_time_value),v=null);v&&x.tickValues(v),x.tickFormat(o||!l&&u.isStackNormalized()&&function(t){return a(this,s),t+"%"}.bind(this)),f&&(x.tickCentered(c.axis_x_tick_centered),Qa(c.axis_x_tick_culling)&&(c.axis_x_tick_culling=!1));var _=c["axis_"+h+"_tick_count"];return _&&x.ticks(_),x},e.updateXAxisTickValues=function(t,e){var n,i=this.owner,r=i.config,a=r.axis_x_tick_fit,o=r.axis_x_tick_count;if((a||o&&a)&&(n=i.mapTargetsToUniqueXs(t),this.isCategorized()&&o>n.length&&(o=n.length),n=this.generateTickValues(n,o,this.isTimeSeries())),e)e.tickValues(n);else if(this.x){var s;this.x.tickValues(n),null==(s=this.subX)||s.tickValues(n)}return n},e.getId=function(t){var e=this.owner,n=e.config,i=e.scale,r=n.data_axes[t];return r&&i[r]||(r="y"),r},e.getXAxisTickFormat=function(t){var e,n=this,i=this.owner,r=i.config,o=i.format,s=t&&r.subchart_axis_x_tick_format||r.axis_x_tick_format,u=this.isTimeSeries(),c=this.isCategorized();return s?Ua(s)?e=s.bind(i.api):u&&(e=function(t){return a(this,n),t?o.axisTime(s)(t):""}.bind(this)):e=u?o.defaultAxisTime:c?i.categoryName:function(t){return a(this,n),t<0?t.toFixed(0):t}.bind(this),Ua(e)?function(t){return a(this,n),e.apply(i,c?[t,i.categoryName(t)]:[t])}.bind(this):e},e.getTickValues=function(t){var e=this.owner,n=e.config["axis_"+t+"_tick_values"],i=e[t+"Axis"];return(Ua(n)?n.call(e.api):n)||(i?i.tickValues():void 0)},e.getLabelOptionByAxisId=function(t){return this.owner.config["axis_"+t+"_label"]},e.getLabelText=function(t){var e=this.getLabelOptionByAxisId(t);return Ya(e)?e:e?e.text:null},e.setLabelText=function(t,e){var n=this.owner.config,i=this.getLabelOptionByAxisId(t);Ya(i)?n["axis_"+t+"_label"]=e:i&&(i.text=e)},e.getLabelPosition=function(t,e){var n=this,i=this.owner.config.axis_rotated,r=this.getLabelOptionByAxisId(t),o=Ja(r)&&r.position?r.position:e[+!i],s=function(t){return a(this,n),!!~o.indexOf(t)}.bind(this);return{isInner:s("inner"),isOuter:s("outer"),isLeft:s("left"),isCenter:s("center"),isRight:s("right"),isTop:s("top"),isMiddle:s("middle"),isBottom:s("bottom")}},e.getAxisLabelPosition=function(t){return this.getLabelPosition(t,"x"===t?["inner-top","inner-right"]:["inner-right","inner-top"])},e.getLabelPositionById=function(t){return this.getAxisLabelPosition(t)},e.xForAxisLabel=function(t){var e=this.owner,n=e.state,i=n.width,r=n.height,a=this.getAxisLabelPosition(t),o=a.isMiddle?-r/2:0;return this.isHorizontal(e,"x"!==t)?o=a.isLeft?0:a.isCenter?i/2:i:a.isBottom&&(o=-r),o},e.dxForAxisLabel=function(t){var e=this.owner,n=this.getAxisLabelPosition(t),i=n.isBottom?"0.5em":"0";return this.isHorizontal(e,"x"!==t)?i=n.isLeft?"0.5em":n.isRight?"-0.5em":"0":n.isTop&&(i="-0.5em"),i},e.textAnchorForAxisLabel=function(t){var e=this.owner,n=this.getAxisLabelPosition(t),i=n.isMiddle?"middle":"end";return this.isHorizontal(e,"x"!==t)?i=n.isLeft?"start":n.isCenter?"middle":"end":n.isBottom&&(i="start"),i},e.dyForAxisLabel=function(t){var e,n=this.owner,i=n.config,r=i.axis_rotated,a=this.getAxisLabelPosition(t).isInner,o=i["axis_"+t+"_tick_rotate"]?n.getHorizontalAxisHeight(t):0,s=this.getMaxTickWidth(t);if("x"===t){var u=i.axis_x_height;e=r?a?"1.2em":-25-s:a?"-0.5em":u?u-10:o?o-10:"3em"}else e={y:["-0.5em",10,"3em","1.2em",10],y2:["1.2em",-20,"-2.2em","-0.5em",15]}[t],e=r?a?e[0]:o?o*("y2"===t?-1:1)-e[1]:e[2]:a?e[3]:(e[4]+(i["axis_"+t+"_inner"]?0:s+e[4]))*("y"===t?-1:1);return e},e.getMaxTickWidth=function(t,e){var n=this,i=this.owner,r=i.config,o=i.state.current,s=i.$el,u=s.svg,c=s.chart,l=o.maxTickWidths[t],h=0;if(e||!r["axis_"+t+"_show"]||0===i.filterTargetsToShow().length)return l.size;if(u){var f=/^y2?$/.test(t),d=i.filterTargetsToShow(i.data.targets),g=i.scale[t].copy().domain(i["get"+(f?"Y":"X")+"Domain"](d,t)),p=g.domain(),v=p[0]===p[1]&&p.every(function(t){return a(this,n),t>0}.bind(this)),y=eo(l.domain)&&l.domain[0]===l.domain[1]&&l.domain.every(function(t){return a(this,n),t>0}.bind(this));if(v||y)return l.size;l.domain=p,f||l.ticks.splice(0);var x=this.getAxis(t,g,!1,!1,!0),b=r["axis_"+t+"_tick_count"];!r["axis_"+t+"_tick_values"]&&b&&x.tickValues(this.generateTickValues(p,b,f?this.isTimeSeriesY():this.isTimeSeries())),f||this.updateXAxisTickValues(d,x);var _=c.append("svg").style("visibility","hidden").style("position","fixed").style("top","0").style("left","0");x.create(_),_.selectAll("text").each((function(t,e){var n=this.getBoundingClientRect().width;h=Math.max(h,n),f||(l.ticks[e]=n)})),_.remove()}return h>0&&(l.size=h),l.size},e.getXAxisTickTextY2Overflow=function(t){var e=this.owner,n=e.axis,i=e.config,r=e.state,a=e.getAxisTickRotate("x");if((n.isCategorized()||n.isTimeSeries())&&i.axis_x_tick_fit&&!i.axis_x_tick_culling&&!i.axis_x_tick_multiline&&a>0&&a<90){var o=r.current.width-e.getCurrentPaddingLeft(),s=this.getXAxisTickMaxOverflow(a,o-t),u=Math.max(0,s)+t;return Math.min(u,o/2)}return 0},e.getXAxisTickMaxOverflow=function(t,e){for(var n=this.owner,i=n.axis,r=n.config,a=n.state,o=i.isTimeSeries(),s=a.current.maxTickWidths.x.ticks,u=s.length,c=a.axis.x.padding,l=c.left,h=c.right,f=0,d=u-(o&&r.axis_x_tick_fit?.5:0),g=0;g<u;g++){var p=g+1,v=Math.cos(Math.PI*t/180)*s[g],y=p-(o?1:.5)+l;if(!(y<=0)){var x=(e-v)/y,b=v-x/2-((d-p)*x+h*x);f=Math.max(f,b)}}var _=n.filterTargetsToShow(n.data.targets),m=0;if(!o&&r.axis_x_tick_count<=_.length&&_[0].values.length){var w=xl(n.axis.getAxisType("x"),0,e-f).domain([-1*l,n.getXDomainMax(n.data.targets)+1+h]);m=Math.ceil((w(1)-w(0))/2)}return f+m},e.updateLabels=function(t){var e=this,n=this.owner,i=n.$el.main,r=n.$T,o={x:i.select("."+zo.axisX+" ."+zo.axisXLabel),y:i.select("."+zo.axisY+" ."+zo.axisYLabel),y2:i.select("."+zo.axisY2+" ."+zo.axisY2Label)};Object.keys(o).filter(function(t){return a(this,e),!o[t].empty()}.bind(this)).forEach(function(n){var i=this;a(this,e);var s=o[n];r(s,t).attr("x",function(){return a(this,i),this.xForAxisLabel(n)}.bind(this)).attr("dx",function(){return a(this,i),this.dxForAxisLabel(n)}.bind(this)).attr("dy",function(){return a(this,i),this.dyForAxisLabel(n)}.bind(this)).text(function(){return a(this,i),this.getLabelText(n)}.bind(this))}.bind(this))},e.getPadding=function(t,e,n,i){var r=Va(t)?t:t[e];return $a(r)?this.owner.convertPixelToScale(/(bottom|top)/.test(e)?"y":"x",r,i):n},e.generateTickValues=function(t,e,n){var i=this,r=t;if(e){var o=Ua(e)?e():e;if(1===o)r=[t[0]];else if(2===o)r=[t[0],t[t.length-1]];else if(o>2){var s,u=this.isCategorized(),c=o-2,l=t[0],h=t[t.length-1];r=[l];for(var f=0;f<c;f++)s=+l+(h-l)/(c+1)*(f+1),r.push(n?new Date(s):u?Math.round(s):s);r.push(h)}}return n||(r=r.sort(function(t,e){return a(this,i),t-e}.bind(this))),r},e.generateTransitions=function(t){var e=this,n=this.owner,i=n.$el.axis,r=n.$T,o=["x","y","y2","subX"].map(function(n){return a(this,e),r(i[n],t)}.bind(this));return{axisX:o[0],axisY:o[1],axisY2:o[2],axisSubX:o[3]}},e.redraw=function(t,e,n){var i=this,r=this.owner,o=r.config,s=r.$el,u=e?"0":null;["x","y","y2","subX"].forEach(function(e){a(this,i);var r=this[e],c=s.axis[e];r&&c&&(n||o.transition_duration||(r.config.withoutTransition=!0),c.style("opacity",u),r.create(t["axis"+yo(e)]))}.bind(this)),this.updateAxes()},e.redrawAxis=function(t,e,n,i,r){var o,s,u,c=this,l=this.owner,h=l.config,f=l.scale,d=l.$el,g=!!f.zoom;if(!g&&this.isCategorized()&&0===t.length&&f.x.domain([0,d.axis.x.selectAll(".tick").size()]),f.x&&t.length)g||l.updateXDomain(t,e.UpdateXDomain,e.UpdateOrgXDomain,e.TrimXDomain),h.axis_x_tick_values||this.updateXAxisTickValues(t);else if(this.x){var p;this.x.tickValues([]),null==(p=this.subX)||p.tickValues([])}(h.zoom_rescale&&!i&&(o=f.x.orgDomain()),["y","y2"].forEach(function(e){var n=this;a(this,c);var i="axis_"+e+"_",r=f[e];if(r){var s=h[i+"tick_values"],u=h[i+"tick_count"];if(r.domain(l.getYDomain(t,e,o)),!s&&u){var d=l.axis[e],g=r.domain();d.tickValues(this.generateTickValues(g,g.every(function(t){return a(this,n),0===t}.bind(this))?1:u,this.isTimeSeriesY()))}}}.bind(this)),this.redraw(n,l.hasArcType(),r),this.updateLabels(e.Transition),(e.UpdateXDomain||e.UpdateXAxis||e.Y)&&t.length&&this.setCulling(),e.Y)&&(null==(s=f.subY)||s.domain(l.getYDomain(t,"y")),null==(u=f.subY2)||u.domain(l.getYDomain(t,"y2")))},e.setCulling=function(){var t=this,e=this.owner,n=e.config,i=e.state,r=i.clip,o=i.current,s=e.$el;["subX","x","y","y2"].forEach(function(e){a(this,t);var i=s.axis[e],u="axis_"+("subX"===e?"x":e)+"_tick_culling",c=n[u];if(i&&c){var l,h=i.selectAll(".tick"),f=To(h.data()),d=f.length,g=n[u+"_max"],p=n[u+"_lines"];if(d){for(var v=1;v<d;v++)if(d/v<g){l=v;break}h.each((function(t){var e=p?this.querySelector("text"):this;e&&(e.style.display=f.indexOf(t)%l?"none":null)}))}else h.style("display",null);if("x"===e){var y=o.maxTickWidths.x.clipPath?r.pathXAxisTickTexts:null;s.svg.selectAll("."+zo.axisX+" .tick text").attr("clip-path",y)}}}.bind(this))},t}(),Af={initEventRect:function(){this.$el.main.select("."+Po.chart).append("g").attr("class",Go.eventRects).style("fill-opacity","0")},redrawEventRect:function(){var t=this,e=t.config,n=t.state,i=t.$el,r=t.isMultipleX();if(i.eventRect)t.updateEventRect(i.eventRect,!0);else{var a=t.$el.main.select("."+Go.eventRects).style("cursor",e.zoom_enabled&&"drag"!==e.zoom_type?e.axis_rotated?"ns-resize":"ew-resize":null).classed(Go.eventRectsMultiple,r).classed(Go.eventRectsSingle,!r).selectAll("."+Go.eventRect).data([0]).enter().append("rect");t.updateEventRect(a),r?t.generateEventRectsForMultipleXs(a):t.generateEventRectsForSingleX(a),a.call(t.getDraggableSelection()),i.eventRect=a,"touch"!==t.state.inputType||i.svg.on("touchstart.eventRect")||t.hasArcType()||t.bindTouchOnEventRect(r)}if(!r){var o=t.getMaxDataCountTarget();t.updateDataIndexByX(o),t.updateXs(o),null==t.updatePointClass||t.updatePointClass(!0),n.eventReceiver.data=o}t.updateEventRectData()},bindTouchOnEventRect:function(t){var e,n=this,i=this,r=i.config,o=i.state,s=i.$el,u=s.eventRect,c=s.svg,l=function(e){if(a(this,n),t)i.selectRectForMultipleXs(e);else{var r=i.getDataIndexFromEvent(o.event);i.callOverOutForTouch(r),-1===r?i.unselectRect():i.selectRectForSingle(e,u,r)}}.bind(this),h=function(){a(this,n),i.unselectRect(),i.callOverOutForTouch()}.bind(this),f=r.interaction_inputType_touch.preventDefault,d=Wa(f)&&f||!1,g=!isNaN(f)&&f||null,p=function(t){a(this,n);var i=t.type,o=t.changedTouches[0]["client"+(r.axis_rotated?"Y":"X")];"touchstart"===i?d?t.preventDefault():null!==g&&(e=o):"touchmove"===i&&(d||!0===e||null!==g&&Math.abs(e-o)>=g)&&(e=!0,t.preventDefault())}.bind(this);u.on("touchstart",function(t){a(this,n),o.event=t,i.updateEventRect()}.bind(this)).on("touchstart.eventRect touchmove.eventRect",function(t){if(a(this,n),o.event=t,!u.empty()&&u.classed(Go.eventRect)){if(o.dragging||o.flowing||i.hasArcType()||t.touches.length>1)return;p(t),l(u.node())}else h()}.bind(this),!0).on("touchend.eventRect",function(t){a(this,n),o.event=t,!u.empty()&&u.classed(Go.eventRect)&&(i.hasArcType()||!i.toggleShape||o.cancelClick)&&o.cancelClick&&(o.cancelClick=!1)}.bind(this),!0),c.on("touchstart",function(t){a(this,n),o.event=t;var e=t.target;e&&e!==u.node()&&h()}.bind(this))},updateEventRect:function(t,e){var n=this;void 0===e&&(e=!1);var i=this.state,r=this.$el,o=i,s=o.eventReceiver,u=o.width,c=o.height,l=o.rendered,h=o.resizing,f=t||r.eventRect,d=function(){a(this,n),s&&(s.rect=f.node().getBoundingClientRect())}.bind(this);(!l||h||e)&&(f.attr("x",0).attr("y",0).attr("width",u).attr("height",c),l||f.attr("class",Go.eventRect)),d()},updateEventRectData:function(){var t,e,n,i,r=this,o=this,s=o.config,u=o.scale,c=o.state,l=u.zoom||u.x,h=s.axis_rotated;if(o.isMultipleX())t=0,e=0,n=c.width,i=c.height;else{var f,d;if(o.axis.isCategorized())f=o.getEventRectWidth(),d=function(t){return a(this,r),l(t.x)-f/2}.bind(this);else{var g=function(t){var e=t.index;return a(this,r),{prev:o.getPrevX(e),next:o.getNextX(e)}}.bind(this);f=function(t){var e=this;a(this,r);var n,i=g(t),o=l.domain();return null===i.prev&&null===i.next?n=h?c.height:c.width:null===i.prev?n=(l(i.next)+l(t.x))/2:null===i.next?n=l(o[1])-(l(i.prev)+l(t.x))/2:(Object.keys(i).forEach(function(t,n){var r;a(this,e),i[t]=null!=(r=i[t])?r:o[n]}.bind(this)),n=Math.max(0,(l(i.next)-l(i.prev))/2)),n}.bind(this),d=function(t){a(this,r);var e=g(t);return null===e.prev&&null===e.next?0:null===e.prev?l(l.domain()[0]):(l(t.x)+l(e.prev))/2}.bind(this)}t=h?0:d,e=h?d:0,n=h?c.width:f,i=h?f:c.height}var p=c.eventReceiver,v=function(t,e){return a(this,r),Ua(t)?t(e):t}.bind(this);p.coords.splice(p.data.length),p.data.forEach(function(o,s){a(this,r),p.coords[s]={x:v(t,o),y:v(e,o),w:v(n,o),h:v(i,o)}}.bind(this))},selectRectForMultipleXs:function(t){var e=this,n=this,i=n.config,r=n.state,o=n.filterTargetsToShow(n.data.targets);if(!r.dragging&&!n.hasArcType(o)){var s=co(r.event,t),u=n.findClosestFromTargets(o,s);if(!r.mouseover||u&&u.id===r.mouseover.id||(i.data_onout.call(n.api,r.mouseover),r.mouseover=void 0),u){var c=(n.isBubbleType(u)||n.isScatterType(u)||!i.tooltip_grouped?[u]:n.filterByX(o,u.x)).map(function(t){return a(this,e),n.addName(t)}.bind(this));n.showTooltip(c,t),n.setExpand(u.index,u.id,!0),n.showGridFocus(c),(n.isBarType(u.id)||n.dist(u,s)<i.point_sensitivity)&&(n.$el.svg.select("."+Go.eventRect).style("cursor","pointer"),r.mouseover||(i.data_onover.call(n.api,u),r.mouseover=u))}else n.unselectRect()}},unselectRect:function(){var t=this,e=t.config,n=t.$el,i=n.circle,r=n.tooltip;t.$el.svg.select("."+Go.eventRect).style("cursor",null),t.hideGridFocus(),r&&(t.hideTooltip(),t._handleLinkedCharts(!1)),i&&!e.point_focus_only&&t.unexpandCircles(),t.expandBarTypeShapes(!1)},generateEventRectsForSingleX:function(t){var e=this,n=this,i=n.config,r=n.state,o=r.eventReceiver,s=t.style("cursor",i.data_selection_enabled&&i.data_selection_grouped?"pointer":null).on("click",(function(t){r.event=t;var e=o.currentIdx,i=o.data[-1===e?n.getDataIndexFromEvent(t):e];n.clickHandlerForSingleX.bind(this)(i,n)}));if("mouse"===r.inputType){var u=function(t){a(this,e);var i=t?n.getDataIndexFromEvent(t):o.currentIdx;return i>-1?o.data[i]:null}.bind(this);s.on("mouseover",function(t){a(this,e),r.event=t,n.updateEventRect()}.bind(this)).on("mousemove",(function(t){var e=u(t);if(r.event=t,e){var a=e.index,c=i.line_step_type;if(i.line_step_tooltipMatch&&n.hasType("step")&&/^step\-(before|after)$/.test(c)){var l=n.scale.zoom||n.scale.x,h=n.axis.xs[a],f=l.invert(co(t,this)[0]);"step-after"===c&&f<h?a-=1:"step-before"===c&&f>h&&(a+=1)}r.dragging||r.flowing||n.hasArcType()||i.tooltip_grouped&&a===o.currentIdx||(a!==o.currentIdx&&(n.setOverOut(!1,o.currentIdx),o.currentIdx=a),-1===a?n.unselectRect():n.selectRectForSingle(this,s,a),n.setOverOut(-1!==a,a))}})).on("mouseout",function(t){a(this,e),r.event=t,i&&!n.hasArcType()&&-1!==o.currentIdx&&(n.unselectRect(),n.setOverOut(!1,o.currentIdx),o.currentIdx=-1)}.bind(this))}return s},clickHandlerForSingleX:function(t,e){var n=e,i=n.config,r=n.state,a=n.$el.main;if(!t||n.hasArcType()||r.cancelClick)r.cancelClick&&(r.cancelClick=!1);else{var o=t.index;a.selectAll("."+ts.shape+"-"+o).each((function(t){(i.data_selection_grouped||n.isWithinShape(this,t))&&(null==n.toggleShape||n.toggleShape(this,t,o),i.data_onclick.bind(n.api)(t,this))}))}},generateEventRectsForMultipleXs:function(t){var e=this,n=this,i=n.state;t.on("click",(function(t){i.event=t,n.clickHandlerForMultipleXS.bind(this)(n)})),"mouse"===i.inputType&&t.on("mouseover mousemove",(function(t){i.event=t,n.selectRectForMultipleXs(this)})).on("mouseout",function(t){a(this,e),i.event=t,n.config&&!n.hasArcType()&&n.unselectRect()}.bind(this))},clickHandlerForMultipleXS:function(t){var e=t,n=e.config,i=e.state,r=e.filterTargetsToShow(e.data.targets);if(!e.hasArcType(r)){var a=co(i.event,this),o=e.findClosestFromTargets(r,a);o&&(e.isBarType(o.id)||e.dist(o,a)<n.point_sensitivity)&&e.$el.main.selectAll("."+ts.shapes+e.getTargetSelectorSuffix(o.id)).selectAll("."+ts.shape+"-"+o.index).each((function(){(n.data_selection_grouped||e.isWithinShape(this,o))&&(null==e.toggleShape||e.toggleShape(this,o,o.index),n.data_onclick.bind(e.api)(o,this))}))}}},Sf=function(t){return a(this,undefined),+t}.bind(void 0),Ef={generateFlow:function(t){var e=this,n=e.data,i=e.state,r=e.$el;return function(){var o=this,s=t.flow.length;i.flowing=!0,n.targets.forEach(function(t){a(this,o),t.values.splice(0,s)}.bind(this)),e.updateXGrid&&e.updateXGrid(!0);var u={};["axis.x","grid.x","gridLines.x","region.list","text","bar","line","area","circle"].forEach(function(t){var e;a(this,o);var n=t.split("."),i=r[n[0]];i&&n.length>1&&(i=i[n[1]]),null!=(e=i)&&e.size()&&(u[t]=i)}.bind(this)),e.hideGridFocus(),e.setFlowList(u,t)}},setFlowList:function(t,e){var n,i=this,r=this,o=e.flow,s=e.targets,u=o,c=u.duration,l=void 0===c?e.duration:c,h=u.index,f=u.length,d=u.orgDataCount,g=r.getFlowTransform(s,d,h,f),p=Ps();p.add(Object.keys(t).map(function(e){var o=this;return a(this,i),n=t[e].transition().ease(Sf).duration(l),n="axis.x"===e?n.call(function(t){a(this,o),r.axis.x.setTransition(t).create(t)}.bind(this)):"region.list"===e?n.filter(r.isRegionOnX).attr("transform",g):n.attr("transform",g)}.bind(this))),n.call(p,function(){a(this,i),r.cleanUpFlow(t,e)}.bind(this))},cleanUpFlow:function(t,e){var n=this,i=this,r=i.config,o=i.state,s=i.$el.svg,u=r.axis_rotated,c=e.flow,l=e.shape,h=e.xv,f=l.pos,d=f.cx,g=f.cy,p=f.xForText,v=f.yForText,y=c,x=y.done,b=void 0===x?function(){a(this,n)}.bind(this):x,_=y.length;_&&(["circle","text","shape","eventRect"].forEach(function(t){a(this,n);for(var e=[],i=0;i<_;i++)e.push("."+as[t]+"-"+i);s.selectAll("."+as[t+"s"]).selectAll(e).remove()}.bind(this)),s.select("."+as.xgrid).remove()),Object.keys(t).forEach(function(e){var s=this;a(this,n);var c=t[e];if("axis.x"!==e&&c.attr("transform",null),"grid.x"===e)c.attr(o.xgridAttr);else if("gridLines.x"===e)c.attr("x1",u?0:h).attr("x2",u?o.width:h);else if("gridLines.x"===e)c.select("line").attr("x1",u?0:h).attr("x2",u?o.width:h),c.select("text").attr("x",u?o.width:0).attr("y",h);else if(/^(area|bar|line)$/.test(e))c.attr("d",l.type[e]);else if("text"===e)c.attr("x",p).attr("y",v).style("fill-opacity",i.opacityForText.bind(i));else if("circle"===e)if(i.isCirclePoint())c.attr("cx",d).attr("cy",g);else{var f=function(t){return a(this,s),d(t)-r.point_r}.bind(this),y=function(t){return a(this,s),g(t)-r.point_r}.bind(this);c.attr("x",f).attr("y",y).attr("cx",d).attr("cy",g)}else"region.list"===e&&c.select("rect").filter(i.isRegionOnX).attr("x",i.regionX.bind(i)).attr("width",i.regionWidth.bind(i))}.bind(this)),r.interaction_enabled&&i.redrawEventRect(),b.call(i.api),o.flowing=!1},getFlowTransform:function(t,e,n,i){var r,a,o,s=this,u=s.data,c=s.scale.x,l=u.targets[0].values,h=s.getValueOnIndex(l,n),f=s.getValueOnIndex(l,n+i),d=c.domain(),g=s.updateXDomain(t,!0,!0);if(e)if(1===e||(null==(r=h)?void 0:r.x)===(null==(a=f)?void 0:a.x))o=c(d[0])-c(g[0]);else{var p;o=s.axis.isTimeSeries()?c(d[0])-c(g[0]):c((null==(p=h)?void 0:p.x)||0)-c(f.x)}else 1!==l.length?o=c(d[0])-c(g[0]):s.axis.isTimeSeries()?(h=s.getValueOnIndex(l,0),f=s.getValueOnIndex(l,l.length-1),o=c(h.x)-c(f.x)):o=Ka(g)/2;return"translate("+o+",0) scale("+Ka(d)/Ka(g)+",1)"}},kf={initClip:function(){var t=this,e=t.state.clip;e.id=t.state.datetimeId+"-clip",e.idXAxis=e.id+"-xaxis",e.idYAxis=e.id+"-yaxis",e.idGrid=e.id+"-grid",e.path=t.getClipPath(e.id),e.pathXAxis=t.getClipPath(e.idXAxis),e.pathYAxis=t.getClipPath(e.idYAxis),e.pathGrid=t.getClipPath(e.idGrid)},getClipPath:function(t){var e=this.config;return!e.clipPath&&/-clip$/.test(t)||!e.axis_x_clipPath&&/-clip-xaxis$/.test(t)||!e.axis_y_clipPath&&/-clip-yaxis$/.test(t)?null:"url("+(!!Nn.navigator&&Nn.navigator.appVersion.toLowerCase().indexOf("msie 9.")>=0?"":zn.URL.split("#")[0])+"#"+t+")"},appendClip:function(t,e){e&&t.append("clipPath").attr("id",e).append("rect")},setXAxisClipPath:function(t){var e=this.config,n=this.state,i=n.margin,r=n.width,a=n.height,o=e.axis_rotated,s=Math.max(30,i.left)-(o?0:20),u=o?-(1+s):-(s-1),c=-Math.max(15,i.top),l=o?i.left+20:r+10+s,h=(o?i.top+a+10:i.bottom)+20;t.attr("x",u).attr("y",c).attr("width",l).attr("height",h)},setYAxisClipPath:function(t){var e=this.config,n=this.state,i=n.margin,r=n.width,a=n.height,o=e.axis_rotated,s=Math.max(30,i.left)-(o?20:0),u=e.axis_y_inner,c=u?-1:o?-(1+s):-(s-1),l=-(o?20:i.top),h=(o?r+15+s:i.left+20)+(u?20:0),f=(o?i.bottom:i.top+a)+10;t.attr("x",c).attr("y",l).attr("width",h).attr("height",f)},updateXAxisTickClip:function(){var t=this,e=t.config,n=t.state,i=n.clip,r=n.xAxisHeight,a=t.$el.defs,o=t.getHorizontalAxisHeight("x");if(a&&!i.idXAxisTickTexts){var s=i.id+"-xaxisticktexts";t.appendClip(a,s),i.pathXAxisTickTexts=t.getClipPath(i.idXAxisTickTexts),i.idXAxisTickTexts=s}!e.axis_x_tick_multiline&&t.getAxisTickRotate("x")&&o!==r&&(t.setXAxisTickClipWidth(),t.setXAxisTickTextClipPathWidth()),t.state.xAxisHeight=o},setXAxisTickClipWidth:function(){var t=this,e=t.config,n=t.state.current.maxTickWidths,i=t.getAxisTickRotate("x");if(!e.axis_x_tick_multiline&&i){var r=Math.sin(Math.PI/180*Math.abs(i));n.x.clipPath=(t.getHorizontalAxisHeight("x")-20)/r}else n.x.clipPath=null},setXAxisTickTextClipPathWidth:function(){var t=this.state,e=t.clip,n=t.current,i=this.$el.svg;i&&i.select("#"+e.idXAxisTickTexts+" rect").attr("width",n.maxTickWidths.x.clipPath).attr("height",30)}},Mf=void 0,Of=function(t){return a(this,Mf),$a(t.position)||"end"}.bind(void 0),Rf=function(t){return a(this,Mf),"start"===t.position?4:"middle"===t.position?0:-4}.bind(void 0);function Cf(t,e,n){var i=this;return function(r){a(this,i);var o=t?0:e;return"start"===r.position?o=t?-n:0:"middle"===r.position&&(o=(t?-n:e)/2),o}.bind(this)}function If(t,e){"grid"===e&&t.each((function(){var t=this,e=Pn(this);["x1","x2","y1","y2"].forEach(function(n){return a(this,t),e.attr(n,Math.ceil(+e.attr(n)))}.bind(this))}))}var Lf={hasGrid:function(){var t=this,e=this.config;return["x","y"].some(function(n){return a(this,t),e["grid_"+n+"_show"]||e["grid_"+n+"_lines"].length}.bind(this))},initGrid:function(){var t=this;t.hasGrid()&&t.initGridLines(),t.initFocusGrid()},initGridLines:function(){var t=this,e=t.config,n=t.state.clip,i=t.$el;(e.grid_x_lines.length||e.grid_y_lines.length)&&(i.gridLines.main=i.main.insert("g","."+Po.chart+(e.grid_lines_front?" + *":"")).attr("clip-path",n.pathGrid).attr("class",Wo.grid+" "+Wo.gridLines),i.gridLines.main.append("g").attr("class",Wo.xgridLines),i.gridLines.main.append("g").attr("class",Wo.ygridLines),i.gridLines.x=Eh([]))},updateXGrid:function(t){var e=this,n=this,i=n.config,r=n.scale,o=n.state,s=n.$el,u=s.main,c=s.grid,l=i.axis_rotated,h=n.generateGridData(i.grid_x_type,r.x),f=n.axis.isCategorized()?n.axis.x.tickOffset():0,d=function(t){return a(this,e),(r.zoom||r.x)(t)+f*(l?-1:1)}.bind(this);o.xgridAttr=l?{x1:0,x2:o.width,y1:d,y2:d}:{x1:d,x2:d,y1:0,y2:o.height},c.x=u.select("."+Wo.xgrids).selectAll("."+Wo.xgrid).data(h),c.x.exit().remove(),c.x=c.x.enter().append("line").attr("class",Wo.xgrid).merge(c.x),t||c.x.each((function(){var t=this,e=Pn(this);Object.keys(o.xgridAttr).forEach(function(n){var i=this;a(this,t),e.attr(n,o.xgridAttr[n]).style("opacity",function(){return a(this,i),e.attr(l?"y1":"x1")===(l?o.height:0)?"0":null}.bind(this))}.bind(this))}))},updateYGrid:function(){var t=this,e=this,n=e.axis,i=e.config,r=e.scale,o=e.state,s=e.$el,u=s.grid,c=s.main,l=i.axis_rotated,h=function(e){return a(this,t),Math.ceil(r.y(e))}.bind(this),f=n.y.getGeneratedTicks(i.grid_y_ticks)||e.scale.y.ticks(i.grid_y_ticks);u.y=c.select("."+Wo.ygrids).selectAll("."+Wo.ygrid).data(f),u.y.exit().remove(),u.y=u.y.enter().append("line").attr("class",Wo.ygrid).merge(u.y),u.y.attr("x1",l?h:0).attr("x2",l?h:o.width).attr("y1",l?0:h).attr("y2",l?o.height:h),If(u.y,"grid")},updateGrid:function(){var t=this,e=t.$el,n=e.grid;e.gridLines.main||t.initGridLines(),n.main.style("visibility",t.hasArcType()?"hidden":null),t.hideGridFocus(),t.updateXGridLines(),t.updateYGridLines()},updateXGridLines:function(){var t=this,e=this,n=e.config,i=e.$el,r=i.gridLines,o=i.main,s=e.$T,u=n.axis_rotated;n.grid_x_show&&e.updateXGrid();var c=o.select("."+Wo.xgridLines).selectAll("."+Wo.xgridLine).data(n.grid_x_lines);s(c.exit()).style("opacity","0").remove();var l=c.enter().append("g");l.append("line").style("opacity","0"),l.append("text").attr("transform",u?"":"rotate(-90)").attr("dy",-5).style("opacity","0"),s((c=l.merge(c)).attr("class",function(e){return a(this,t),(Wo.xgridLine+" "+(e.class||"")).trim()}.bind(this)).select("text").attr("text-anchor",Of).attr("dx",Rf)).text(function(e){return a(this,t),e.text}.bind(this)).style("opacity",null),r.x=c},updateYGridLines:function(){var t=this,e=this,n=e.config,i=e.state,r=i.width,o=i.height,s=e.$el,u=e.$T,c=n.axis_rotated;n.grid_y_show&&e.updateYGrid();var l=s.main.select("."+Wo.ygridLines).selectAll("."+Wo.ygridLine).data(n.grid_y_lines);u(l.exit()).style("opacity","0").remove();var h=l.enter().append("g");h.append("line").style("opacity","0"),h.append("text").attr("transform",c?"rotate(-90)":"").style("opacity","0"),l=h.merge(l);var f=e.yv.bind(e);u(l.attr("class",function(e){return a(this,t),(Wo.ygridLine+" "+(e.class||"")).trim()}.bind(this)).select("line")).attr("x1",c?f:0).attr("x2",c?f:r).attr("y1",c?0:f).attr("y2",c?o:f).style("opacity",null),u(l.select("text").attr("text-anchor",Of).attr("dx",Rf)).attr("dy",-5).attr("x",Cf(c,r,o)).attr("y",f).text(function(e){return a(this,t),e.text}.bind(this)).style("opacity",null),s.gridLines.y=l},redrawGrid:function(t){var e=this,n=this,i=n.config.axis_rotated,r=n.state,o=r.width,s=r.height,u=n.$el.gridLines,c=n.$T,l=n.xv.bind(n),h=u.x.select("line"),f=u.x.select("text");return h=c(h,t).attr("x1",i?0:l).attr("x2",i?o:l).attr("y1",i?l:0).attr("y2",i?l:s),f=c(f,t).attr("x",Cf(!i,o,s)).attr("y",l).text(function(t){return a(this,e),t.text}.bind(this)),[h.style("opacity",null),f.style("opacity",null)]},initFocusGrid:function(){var t=this,e=t.config,n=t.state.clip,i=t.$el,r=e.grid_front,a="."+(r&&i.gridLines.main?Wo.gridLines:Po.chart)+(r?" + *":""),o=i.main.insert("g",a).attr("clip-path",n.pathGrid).attr("class",Wo.grid);i.grid.main=o,e.grid_x_show&&o.append("g").attr("class",Wo.xgrids),e.grid_y_show&&o.append("g").attr("class",Wo.ygrids),e.interaction_enabled&&e.grid_focus_show&&(o.append("g").attr("class",Ho.xgridFocus).append("line").attr("class",Ho.xgridFocus),e.grid_focus_y&&!e.tooltip_grouped&&o.append("g").attr("class",Ho.ygridFocus).append("line").attr("class",Ho.ygridFocus))},showGridFocus:function(t){var e=this,n=this,i=n.config,r=n.state,o=r.width,s=r.height,u=i.axis_rotated,c=n.$el.main.selectAll("line."+Ho.xgridFocus+", line."+Ho.ygridFocus),l=(t||[c.datum()]).filter(function(t){return a(this,e),t&&$a(n.getBaseValue(t))}.bind(this));if(i.tooltip_show&&0!==l.length&&!n.hasType("bubble")&&!n.hasArcType()){var h=i.grid_focus_edge&&!i.tooltip_grouped,f=n.xx.bind(n);c.style("visibility",null).data(l.concat(l)).each((function(t){var e,i=this,r=Pn(this),c={x:f(t),y:n.getYScaleById(t.id)(t.value)};if(r.classed(Ho.xgridFocus))e=u?[null,c.x,h?c.y:o,c.x]:[c.x,h?c.y:null,c.x,s];else{var l="y2"===n.axis.getId(t.id);e=u?[c.y,h&&!l?c.x:null,c.y,h&&l?c.x:s]:[h&&l?c.x:null,c.y,h&&!l?c.x:o,c.y]}["x1","y1","x2","y2"].forEach(function(t,n){return a(this,i),r.attr(t,e[n])}.bind(this))})),If(c,"grid"),null==n.showCircleFocus||n.showCircleFocus(t)}},hideGridFocus:function(){var t=this,e=t.state,n=e.inputType,i=e.resizing,r=t.$el.main;"mouse"!==n&&i||(r.selectAll("line."+Ho.xgridFocus+", line."+Ho.ygridFocus).style("visibility","hidden"),null==t.hideCircleFocus||t.hideCircleFocus())},updateGridFocus:function(){var t=this,e=t.state,n=e.inputType,i=e.width,r=e.height,a=e.resizing,o=t.$el.grid.main.select("line."+Ho.xgridFocus);if("touch"===n)o.empty()?a&&(null==t.showCircleFocus||t.showCircleFocus()):t.showGridFocus();else{var s=t.config.axis_rotated;o.attr("x1",s?0:-10).attr("x2",s?i:-10).attr("y1",s?-10:0).attr("y2",s?-10:r)}return!0},generateGridData:function(t,e){var n=this,i=this.$el.main.select("."+zo.axisX).selectAll(".tick").size(),r=[];if("year"===t)for(var o=this.getXDomain().map(function(t){return a(this,n),t.getFullYear()}.bind(this)),s=o[0],u=o[1],c=s;c<=u;c++)r.push(new Date(c+"-01-01 00:00:00"));else(r=e.ticks(10)).length>i&&(r=r.filter(function(t){return a(this,n),(t+"").indexOf(".")<0}.bind(this)));return r},getGridFilterToRemove:function(t){var e=this;return t?function(n){var i=this;a(this,e);var r=!1;return(eo(t)?t.concat():[t]).forEach(function(t){a(this,i),("value"in t&&n.value===t.value||"class"in t&&n.class===t.class)&&(r=!0)}.bind(this)),r}.bind(this):function(){return a(this,e),!0}.bind(this)},removeGridLines:function(t,e){var n=this,i=this,r=i.config,o=i.$T,s=i.getGridFilterToRemove(t),u=function(t){return a(this,n),!s(t)}.bind(this),c=e?Wo.xgridLines:Wo.ygridLines,l=e?Wo.xgridLine:Wo.ygridLine;o(i.$el.main.select("."+c).selectAll("."+l).filter(s)).style("opacity","0").remove();var h="grid_"+(e?"x":"y")+"_lines";r[h]=r[h].filter(u)}},Pf={initRegion:function(){var t=this.$el;t.region.main=t.main.insert("g",":first-child").attr("clip-path",this.state.clip.path).attr("class",Jo.regions)},updateRegion:function(){var t=this,e=t.config,n=t.$el.region,i=t.$T;n.main||t.initRegion(),n.main.style("visibility",t.hasArcType()?"hidden":null);var r=n.main.selectAll("."+Jo.region).data(e.regions);i(r.exit()).style("opacity","0").remove(),(r=r.enter().append("g").merge(r).attr("class",t.classRegion.bind(t))).append("rect").style("fill-opacity","0"),n.list=r},redrawRegion:function(t){var e=this,n=this,i=n.$el.region,r=n.$T,o=i.list.select("rect");return[(o=r(o,t).attr("x",n.regionX.bind(n)).attr("y",n.regionY.bind(n)).attr("width",n.regionWidth.bind(n)).attr("height",n.regionHeight.bind(n))).style("fill-opacity",function(t){return a(this,e),$a(t.opacity)?t.opacity:null}.bind(this)).on("end",(function(){Pn(this.parentNode).selectAll("rect:not([x])").remove()}))]},getRegionXY:function(t,e){var n=this,i=n.config,r=n.scale,a=i.axis_rotated,o="x"===t,s="start",u=0;return"y"===e.axis||"y2"===e.axis?(o||(s="end"),(o?a:!a)&&s in e&&(u=(0,r[e.axis])(e[s]))):(o?!a:a)&&s in e&&(u=(r.zoom||r.x)(n.axis.isTimeSeries()?Mo.call(n,e[s]):e[s])),u},regionX:function(t){return this.getRegionXY("x",t)},regionY:function(t){return this.getRegionXY("y",t)},getRegionSize:function(t,e){var n=this,i=n.config,r=n.scale,a=n.state,o=i.axis_rotated,s="width"===t,u=n[s?"regionX":"regionY"](e),c="end",l=a[t];return"y"===e.axis||"y2"===e.axis?(s||(c="start"),(s?o:!o)&&c in e&&(l=(0,r[e.axis])(e[c]))):(s?!o:o)&&c in e&&(l=(r.zoom||r.x)(n.axis.isTimeSeries()?Mo.call(n,e[c]):e[c])),l<u?0:l-u},regionWidth:function(t){return this.getRegionSize("width",t)},regionHeight:function(t){return this.getRegionSize("height",t)},isRegionOnX:function(t){return!t.axis||"x"===t.axis}},Df={getAxisSize:function(t){var e=this,n=e.config.axis_rotated;return n&&"x"===t||!n&&/y2?/.test(t)?e.getAxisWidthByAxisId(t,!0):e.getHorizontalAxisHeight(t)},getAxisWidthByAxisId:function(t,e){var n=this;if(n.axis){var i,r=null==(i=n.axis)?void 0:i.getLabelPositionById(t),a=n.axis.getMaxTickWidth(t,e),o=0===a?.5:0;return a+(r.isInner?20+o:40)}return 40},getHorizontalAxisHeight:function(t){var e=this,n=e.config,i=e.state,r=i.current,a=i.rotatedPadding,o=i.isLegendRight,s=i.isLegendInset,u=n.axis_rotated,c=30;if("x"===t&&!n.axis_x_show)return 8;if("x"===t&&n.axis_x_height)return n.axis_x_height;if("y"===t&&!n.axis_y_show)return!n.legend_show||o||s?1:10;if("y2"===t&&!n.axis_y2_show)return a.top;var l=e.getAxisTickRotate(t);return("x"===t&&!u||/y2?/.test(t)&&u)&&l&&(c=30+e.axis.getMaxTickWidth(t)*Math.cos(Math.PI*(90-Math.abs(l))/180),!n.axis_x_tick_multiline&&r.height&&c>r.height/2&&(c=r.height/2)),c+(e.axis.getLabelPositionById(t).isInner?0:10)+("y2"!==t||u?0:-10)},getEventRectWidth:function(){return Math.max(0,this.axis.x.tickInterval())},getAxisTickRotate:function(t){var e=this,n=e.axis,i=e.config,r=e.state,a=e.$el,o=i["axis_"+t+"_tick_rotate"];if("x"===t){var s=n.isCategorized()||n.isTimeSeries();if(i.axis_x_tick_fit&&s){var u=i.axis_x_tick_count,c=r.current.maxTickWidths.x.ticks.length,l=0;if(u?l=u>c?c:u:c&&(l=c),l!==r.axis.x.tickCount){var h=e.data.targets;r.axis.x.padding=e.getXDomainPadding([e.getXDomainMinMax(h,"min"),e.getXDomainMinMax(h,"max")],l)}r.axis.x.tickCount=l}a.svg&&i.axis_x_tick_fit&&!i.axis_x_tick_multiline&&!i.axis_x_tick_culling&&i.axis_x_tick_autorotate&&s&&(o=e.needToRotateXAxisTickTexts()?i.axis_x_tick_rotate:0)}return o},needToRotateXAxisTickTexts:function(){var t=this,e=t.state,n=e.axis,i=e.current.width-t.getCurrentPaddingLeft(!1)-t.getCurrentPaddingRight(),r=n.x.tickCount+n.x.padding.left+n.x.padding.right;return t.axis.getMaxTickWidth("x")>(r?i/r:0)}},Nf={axis_y_clipPath:!0,axis_y_show:!0,axis_y_type:"indexed",axis_y_max:void 0,axis_y_min:void 0,axis_y_inverted:!1,axis_y_center:void 0,axis_y_inner:!1,axis_y_label:{},axis_y_tick_format:void 0,axis_y_tick_culling:!1,axis_y_tick_culling_max:5,axis_y_tick_culling_lines:!0,axis_y_tick_outer:!0,axis_y_tick_values:null,axis_y_tick_rotate:0,axis_y_tick_count:void 0,axis_y_tick_show:!0,axis_y_tick_stepSize:null,axis_y_tick_text_show:!0,axis_y_tick_text_position:{x:0,y:0},axis_y_tick_time_value:void 0,axis_y_padding:{},axis_y_default:void 0,axis_y_axes:[]},zf={axis_y2_show:!1,axis_y2_type:"indexed",axis_y2_max:void 0,axis_y2_min:void 0,axis_y2_inverted:!1,axis_y2_center:void 0,axis_y2_inner:!1,axis_y2_label:{},axis_y2_tick_format:void 0,axis_y2_tick_culling:!1,axis_y2_tick_culling_max:5,axis_y2_tick_culling_lines:!0,axis_y2_tick_outer:!0,axis_y2_tick_values:null,axis_y2_tick_rotate:0,axis_y2_tick_count:void 0,axis_y2_tick_show:!0,axis_y2_tick_stepSize:null,axis_y2_tick_text_show:!0,axis_y2_tick_text_position:{x:0,y:0},axis_y2_padding:{},axis_y2_default:void 0,axis_y2_axes:[]};function Ff(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function jf(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?Ff(Object(e),!0).forEach((function(n){Xn(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Ff(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var Bf=jf(jf(jf({axis_rotated:!1},{axis_x_clipPath:!0,axis_x_show:!0,axis_x_type:"indexed",axis_x_localtime:!0,axis_x_categories:[],axis_x_tick_centered:!1,axis_x_tick_format:void 0,axis_x_tick_culling:{},axis_x_tick_culling_max:10,axis_x_tick_culling_lines:!0,axis_x_tick_count:void 0,axis_x_tick_show:!0,axis_x_tick_text_show:!0,axis_x_tick_text_position:{x:0,y:0},axis_x_tick_fit:!0,axis_x_tick_values:null,axis_x_tick_autorotate:!1,axis_x_tick_rotate:0,axis_x_tick_outer:!0,axis_x_tick_multiline:!0,axis_x_tick_width:null,axis_x_tick_tooltip:!1,axis_x_max:void 0,axis_x_min:void 0,axis_x_padding:{},axis_x_height:void 0,axis_x_extent:void 0,axis_x_label:{},axis_x_axes:[]}),Nf),zf),Xf=[Kh,{category:function(t,e){var n=this.internal,i=n.config;return arguments.length>1&&(i.axis_x_categories[t]=e,n.redraw()),i.axis_x_categories[t]},categories:function(t){var e=this.internal,n=e.config;return arguments.length?(n.axis_x_categories=t,e.redraw(),n.axis_x_categories):n.axis_x_categories}},Qh,ef,sf,nf,af,of],$f=[wf,kf,Af,Ef,Lf,Pf,Df],Uf=[{data_xs:{},data_xFormat:"%Y-%m-%d",data_xLocaltime:!0,data_xSort:!0,data_axes:{},data_regions:{},data_stack_normalize:!1},Bf,{grid_x_show:!1,grid_x_type:"tick",grid_x_lines:[],grid_y_show:!1,grid_y_lines:[],grid_y_ticks:void 0,grid_focus_edge:!1,grid_focus_show:!0,grid_focus_y:!1,grid_front:!1,grid_lines_front:!0}];Array.prototype.slice;function Yf(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Vf(t){return function(){return t}}function Gf(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function Hf(t){return t}var Wf=Math.PI,qf=2*Wf,Zf=1e-6,Kf=qf-Zf;function Jf(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Qf(){return new Jf}Jf.prototype=Qf.prototype={constructor:Jf,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,r,a){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+a)},arcTo:function(t,e,n,i,r){t=+t,e=+e,n=+n,i=+i,r=+r;var a=this._x1,o=this._y1,s=n-t,u=i-e,c=a-t,l=o-e,h=c*c+l*l;if(r<0)throw new Error("negative radius: "+r);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>Zf)if(Math.abs(l*s-u*c)>Zf&&r){var f=n-a,d=i-o,g=s*s+u*u,p=Math.sqrt(g),v=Math.sqrt(h),y=r*Math.tan((Wf-Math.acos((g+h-(f*f+d*d))/(2*p*v)))/2),x=y/v,b=y/p;Math.abs(x-1)>Zf&&(this._+="L"+(t+x*c)+","+(e+x*l)),this._+="A"+r+","+r+",0,0,"+ +(l*f>c*d)+","+(this._x1=t+b*s)+","+(this._y1=e+b*u)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,i,r,a){t=+t,e=+e,a=!!a;var o=(n=+n)*Math.cos(i),s=n*Math.sin(i),u=t+o,c=e+s,l=1^a,h=a?i-r:r-i;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+c:(Math.abs(this._x1-u)>Zf||Math.abs(this._y1-c)>Zf)&&(this._+="L"+u+","+c),n&&(h<0&&(h=h%qf+qf),h>Kf?this._+="A"+n+","+n+",0,1,"+l+","+(t-o)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):h>Zf&&(this._+="A"+n+","+n+",0,"+ +(h>=Wf)+","+l+","+(this._x1=t+n*Math.cos(r))+","+(this._y1=e+n*Math.sin(r))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}};var td=Qf;function ed(t){return t.innerRadius}function nd(t){return t.outerRadius}function id(t){return t.startAngle}function rd(t){return t.endAngle}function ad(t){return t&&t.padAngle}function od(t,e,n,i,r,a,o,s){var u=n-t,c=i-e,l=o-r,h=s-a,f=h*u-l*c;if(!(f*f<Yl))return[t+(f=(l*(e-a)-h*(t-r))/f)*u,e+f*c]}function sd(t,e,n,i,r,a,o){var s=t-n,u=e-i,c=(o?a:-a)/Ul(s*s+u*u),l=c*u,h=-c*s,f=t+l,d=e+h,g=n+l,p=i+h,v=(f+g)/2,y=(d+p)/2,x=g-f,b=p-d,_=x*x+b*b,m=r-a,w=f*p-g*d,T=(b<0?-1:1)*Ul(Bl(0,m*m*_-w*w)),A=(w*b-x*T)/_,S=(-w*x-b*T)/_,E=(w*b+x*T)/_,k=(-w*x+b*T)/_,M=A-v,O=S-y,R=E-v,C=k-y;return M*M+O*O>R*R+C*C&&(A=E,S=k),{cx:A,cy:S,x01:-l,y01:-h,x11:A*(r/m-1),y11:S*(r/m-1)}}function ud(){var t=ed,e=nd,n=Vf(0),i=null,r=id,a=rd,o=ad,s=null;function u(){var u,c,l=+t.apply(this,arguments),h=+e.apply(this,arguments),f=r.apply(this,arguments)-Gl,d=a.apply(this,arguments)-Gl,g=zl(d-f),p=d>f;if(s||(s=u=td()),h<l&&(c=h,h=l,l=c),h>Yl)if(g>Hl-Yl)s.moveTo(h*jl(f),h*$l(f)),s.arc(0,0,h,f,d,!p),l>Yl&&(s.moveTo(l*jl(d),l*$l(d)),s.arc(0,0,l,d,f,p));else{var v,y,x=f,b=d,_=f,m=d,w=g,T=g,A=o.apply(this,arguments)/2,S=A>Yl&&(i?+i.apply(this,arguments):Ul(l*l+h*h)),E=Xl(zl(h-l)/2,+n.apply(this,arguments)),k=E,M=E;if(S>Yl){var O=ql(S/l*$l(A)),R=ql(S/h*$l(A));(w-=2*O)>Yl?(_+=O*=p?1:-1,m-=O):(w=0,_=m=(f+d)/2),(T-=2*R)>Yl?(x+=R*=p?1:-1,b-=R):(T=0,x=b=(f+d)/2)}var C=h*jl(x),I=h*$l(x),L=l*jl(m),P=l*$l(m);if(E>Yl){var D,N=h*jl(b),z=h*$l(b),F=l*jl(_),j=l*$l(_);if(g<Vl&&(D=od(C,I,F,j,N,z,L,P))){var B=C-D[0],X=I-D[1],$=N-D[0],U=z-D[1],Y=1/$l(Wl((B*$+X*U)/(Ul(B*B+X*X)*Ul($*$+U*U)))/2),V=Ul(D[0]*D[0]+D[1]*D[1]);k=Xl(E,(l-V)/(Y-1)),M=Xl(E,(h-V)/(Y+1))}}T>Yl?M>Yl?(v=sd(F,j,C,I,h,M,p),y=sd(N,z,L,P,h,M,p),s.moveTo(v.cx+v.x01,v.cy+v.y01),M<E?s.arc(v.cx,v.cy,M,Fl(v.y01,v.x01),Fl(y.y01,y.x01),!p):(s.arc(v.cx,v.cy,M,Fl(v.y01,v.x01),Fl(v.y11,v.x11),!p),s.arc(0,0,h,Fl(v.cy+v.y11,v.cx+v.x11),Fl(y.cy+y.y11,y.cx+y.x11),!p),s.arc(y.cx,y.cy,M,Fl(y.y11,y.x11),Fl(y.y01,y.x01),!p))):(s.moveTo(C,I),s.arc(0,0,h,x,b,!p)):s.moveTo(C,I),l>Yl&&w>Yl?k>Yl?(v=sd(L,P,N,z,l,-k,p),y=sd(C,I,F,j,l,-k,p),s.lineTo(v.cx+v.x01,v.cy+v.y01),k<E?s.arc(v.cx,v.cy,k,Fl(v.y01,v.x01),Fl(y.y01,y.x01),!p):(s.arc(v.cx,v.cy,k,Fl(v.y01,v.x01),Fl(v.y11,v.x11),!p),s.arc(0,0,l,Fl(v.cy+v.y11,v.cx+v.x11),Fl(y.cy+y.y11,y.cx+y.x11),p),s.arc(y.cx,y.cy,k,Fl(y.y11,y.x11),Fl(y.y01,y.x01),!p))):s.arc(0,0,l,m,_,p):s.lineTo(L,P)}else s.moveTo(0,0);if(s.closePath(),u)return s=null,u+""||null}return u.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,i=(+r.apply(this,arguments)+ +a.apply(this,arguments))/2-Vl/2;return[jl(i)*n,$l(i)*n]},u.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:Vf(+e),u):t},u.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Vf(+t),u):e},u.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:Vf(+t),u):n},u.padRadius=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:Vf(+t),u):i},u.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Vf(+t),u):r},u.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:Vf(+t),u):a},u.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:Vf(+t),u):o},u.context=function(t){return arguments.length?(s=null==t?null:t,u):s},u}var cd={initPie:function(){var t=this,e=this,n=e.config,i=n.data_type,r=n[i+"_padding"],o=n[i+"_startingAngle"]||0,s=(r?.01*r:n[i+"_padAngle"])||0;e.pie=function(){var t=Hf,e=Gf,n=null,i=Vf(0),r=Vf(Hl),a=Vf(0);function o(o){var s,u,c,l,h,f=(o=Yf(o)).length,d=0,g=Array(f),p=Array(f),v=+i.apply(this,arguments),y=Math.min(Hl,Math.max(-Hl,r.apply(this,arguments)-v)),x=Math.min(Math.abs(y)/f,a.apply(this,arguments)),b=x*(y<0?-1:1);for(s=0;s<f;++s)(h=p[g[s]=s]=+t(o[s],s,o))>0&&(d+=h);for(null!=e?g.sort((function(t,n){return e(p[t],p[n])})):null!=n&&g.sort((function(t,e){return n(o[t],o[e])})),s=0,c=d?(y-f*b)/d:0;s<f;++s,v=l)u=g[s],l=v+((h=p[u])>0?h*c:0)+b,p[u]={data:o[u],index:s,value:h,startAngle:v,endAngle:l,padAngle:x};return p}return o.value=function(e){return arguments.length?(t="function"==typeof e?e:Vf(+e),o):t},o.sortValues=function(t){return arguments.length?(e=t,n=null,o):e},o.sort=function(t){return arguments.length?(n=t,e=null,o):n},o.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:Vf(+t),o):i},o.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:Vf(+t),o):r},o.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:Vf(+t),o):a},o}().startAngle(o).endAngle(o+2*Math.PI).padAngle(s).value(function(e){var n=this;return a(this,t),e.values.reduce(function(t,e){return a(this,n),t+e.value}.bind(this),0)}.bind(this)).sort(e.getSortCompareFn.bind(e)(!0))},updateRadius:function(){var t=this,e=t.config,n=t.state,i=e[e.data_type+"_padding"],r=e.gauge_width||e.donut_width,a=t.filterTargetsToShow(t.data.targets).length*e.gauge_arcs_minWidth;n.radiusExpanded=Math.min(n.arcWidth,n.arcHeight)/2*(t.hasMultiArcGauge()&&e.gauge_label_show?.85:1),n.radius=.95*n.radiusExpanded,n.innerRadiusRatio=r?(n.radius-r)/n.radius:.6,n.gaugeArcWidth=r||(a<=n.radius-n.innerRadius?n.radius-n.innerRadius:a<=n.radius?a:n.radius);var o=e.pie_innerRadius||(i?i*(n.innerRadiusRatio+.1):0);n.outerRadius=e.pie_outerRadius,n.innerRadius=t.hasType("donut")||t.hasType("gauge")?n.radius*n.innerRadiusRatio:o},getRadius:function(t){var e=null==t?void 0:t.data,n=this.state,i=n.innerRadius,r=n.outerRadius;return!Va(i)&&e&&(i=i[e.id]||0),no(r)&&e&&e.id in r?r=r[e.id]:Va(r)||(r=this.state.radius),{innerRadius:i,outerRadius:r}},updateArc:function(){var t=this;t.updateRadius(),t.svgArc=t.getSvgArc(),t.svgArcExpanded=t.getSvgArcExpanded()},getArcLength:function(){var t=3.6*this.config.gauge_arcLength,e=t/360*2;return t<-360?e=-2:t>360&&(e=2),e*Math.PI},getStartAngle:function(){var t=this.config,e=t.gauge_fullCircle,n=-1*Math.PI/2,i=Math.PI/2,r=t.gauge_startingAngle;return!e&&r<=n?r=n:!e&&r>=i?r=i:(r>Math.PI||r<-1*Math.PI)&&(r=Math.PI),r},updateAngle:function(t){var e=this,n=this,i=n.config,r=n.state,o=n.pie,s=t,u=!1;if(!i)return null;var c=n.getStartAngle(),l=i.gauge_fullCircle?n.getArcLength():-2*c;if(s.data&&n.isGaugeType(s.data)&&!n.hasMultiArcGauge()){var h=i.gauge_min,f=i.gauge_max,d=n.getTotalDataSum(r.rendered);o=o.startAngle(c).endAngle(l*((d-h)/(f-h))+c)}if(o(n.filterTargetsToShow()).forEach(function(t,n){a(this,e),u||t.data.id!==s.data.id||(u=!0,(s=t).index=n)}.bind(this)),isNaN(s.startAngle)&&(s.startAngle=0),isNaN(s.endAngle)&&(s.endAngle=s.startAngle),s.data&&n.hasMultiArcGauge()){var g=i.gauge_min,p=i.gauge_max,v=s.value<g?0:s.value<p?s.value-g:p-g;s.startAngle=c,s.endAngle=c+l/(p-g)*v}return u?s:null},getSvgArc:function(){var t=this,e=this,n=e.state,i=n.gaugeArcWidth/e.filterTargetsToShow(e.data.targets).length,r=e.hasMultiArcGauge(),o=e.hasType("polar"),s=ud().innerRadius(function(o){a(this,t);var s=e.getRadius(o).innerRadius;return r?n.radius-i*(o.index+1):Va(s)?s:0}.bind(this)).outerRadius(function(s){a(this,t);var u=e.getRadius(s).outerRadius,c=u;return r?c=n.radius-i*s.index:o&&(c=e.getPolarOuterRadius(s,u)),c}.bind(this)),u=function(t,n){var i="M 0 0";if(t.value||t.data){var r=!n&&e.updateAngle(t);n?i=s(t):r&&(i=s(r))}return i};return u.centroid=s.centroid,u},getSvgArcExpanded:function(t){var e=this,n=this,i=n.state,r=t||1,o=i.gaugeArcWidth/n.filterTargetsToShow(n.data.targets).length,s=n.hasMultiArcGauge(),u=Math.min(i.radiusExpanded*r-i.radius,.8*o-100*(1-r)),c=ud().innerRadius(function(t){return a(this,e),s?i.radius-o*(t.index+1):n.getRadius(t).innerRadius}.bind(this)).outerRadius(function(t){var c;if(a(this,e),s)c=i.radius-o*t.index+u;else{var l=n.getRadius(t).outerRadius,h=i.radiusExpanded;i.radius!==l&&(h-=Math.abs(i.radius-l)),c=h*r}return c}.bind(this));return function(t){var e=n.updateAngle(t);return e?c(e):"M 0 0"}},getArc:function(t,e,n){return n||this.isArcType(t.data)?this.svgArc(t,e):"M 0 0"},transformForArcLabel:function(t){var e=this,n=this,i=n.config,r=n.state.radiusExpanded,o=n.updateAngle(t),s="";if(o)if(n.hasMultiArcGauge()){var u=Math.sin(o.endAngle-Math.PI/2);s="translate("+(f=Math.cos(o.endAngle-Math.PI/2)*(r+25))+","+(d=u*(r+15-Math.abs(10*u))+3)+")"}else if(!n.hasType("gauge")||n.data.targets.length>1){var c,l=n.getRadius(t).outerRadius;n.hasType("polar")&&(l=n.getPolarOuterRadius(t,l));var h=this.svgArc.centroid(o).map(function(t){return a(this,e),isNaN(t)?0:t}.bind(this)),f=h[0],d=h[1],g=Math.sqrt(f*f+d*d),p=null==(c=["donut","pie","polar"].filter(n.hasType.bind(n)).map(function(t){return a(this,e),i[t+"_label_ratio"]}.bind(this)))?void 0:c[0];s="translate("+f*(p=p?Ua(p)?p.bind(n.api)(t,l,g):p:l&&(g?(36/l>.375?1.175-36/l:.8)*l/g:0))+","+d*p+")"}return s},convertToArcData:function(t){return this.addName({id:t.data?t.data.id:t.id,value:t.value,ratio:this.getRatio("arc",t),index:t.index})},textForArcLabel:function(t){var e=this,n=e.hasType("gauge");e.shouldShowArcLabel()&&t.style("fill",e.updateTextColor.bind(e)).attr("filter",e.updateTextBacgroundColor.bind(e)).each((function(t){var i,r=Pn(this),a=e.updateAngle(t),o=e.getRatio("arc",a);if(e.meetsLabelThreshold(o,null==(i=["donut","gauge","pie","polar"].filter(e.hasType.bind(e)))?void 0:i[0])){var s=(a||t).value;so(r,(e.getArcLabelFormat()||e.defaultArcValueFormat)(s,o,t.data.id).toString(),[-1,1],n)}else r.text("")}))},expandArc:function(t){var e=this,n=this,i=n.state.transiting,r=n.$el;if(i)var o=setInterval(function(){a(this,e),i||(clearInterval(o),r.legend.selectAll("."+Ho.legendItemFocused).size()>0&&n.expandArc(t))}.bind(this),10);else{var s=n.mapToTargetIds(t);r.svg.selectAll(n.selectorTargets(s,"."+Do.chartArc)).each((function(t){if(n.shouldExpand(t.data.id)){var e=n.getExpandConfig(t.data.id,"duration"),i=n.getSvgArcExpanded(n.getExpandConfig(t.data.id,"rate"));Pn(this).selectAll("path").transition().duration(e).attr("d",n.svgArcExpanded).transition().duration(2*e).attr("d",i)}}))}},unexpandArc:function(t){var e=this,n=this,i=n.state.transiting,r=n.$el.svg;if(!i){var o=n.mapToTargetIds(t);r.selectAll(n.selectorTargets(o,"."+Do.chartArc)).selectAll("path").transition().duration(function(t){return a(this,e),n.getExpandConfig(t.data.id,"duration")}.bind(this)).attr("d",n.svgArc),r.selectAll(""+Do.arc).style("opacity",null)}},getExpandConfig:function(t,e){var n,i=this,r=i.config;return i.isDonutType(t)?n="donut":i.isGaugeType(t)?n="gauge":i.isPieType(t)&&(n="pie"),n?r[n+"_expand_"+e]:{duration:50,rate:.98}[e]},shouldExpand:function(t){var e=this,n=e.config;return e.isDonutType(t)&&n.donut_expand||e.isGaugeType(t)&&n.gauge_expand||e.isPieType(t)&&n.pie_expand},shouldShowArcLabel:function(){var t=this,e=this,n=e.config;return["donut","gauge","pie","polar"].some(function(i){return a(this,t),e.hasType(i)&&n[i+"_label_show"]}.bind(this))},getArcLabelFormat:function(){var t=this,e=this,n=e.config,i=function(e){return a(this,t),e}.bind(this);return["donut","gauge","pie","polar"].filter(e.hasType.bind(e)).forEach(function(e){a(this,t),i=n[e+"_label_format"]}.bind(this)),Ua(i)?i.bind(e.api):i},getArcTitle:function(){var t=this,e=t.hasType("donut")?"donut":t.hasType("gauge")&&"gauge";return e?t.config[e+"_title"]:""},updateTargetsForArc:function(t){var e=this,n=this,i=n.$el,r=n.hasType("gauge"),o=n.getChartClass("Arc"),s=n.getClass("arcs",!0),u=n.classFocus.bind(n),c=i.main.select("."+Do.chartArcs),l=c.selectAll("."+Do.chartArc).data(n.pie(t)).attr("class",function(t){return a(this,e),o(t)+u(t.data)}.bind(this)),h=l.enter().append("g").attr("class",o).call(this.setCssRule(!1,"."+Do.chartArcs+" text",["pointer-events:none","text-anchor:middle"]));h.append("g").attr("class",s).merge(l),h.append("text").attr("dy",r&&!n.hasMultiTargets()?"-.1em":".35em").style("opacity","0").style("text-anchor",n.getStylePropValue("middle")).style("pointer-events",n.getStylePropValue("none")),i.text=c.selectAll("."+Po.target+" text")},initArc:function(){var t=this,e=t.$el;e.arcs=e.main.select("."+Po.chart).append("g").attr("class",Do.chartArcs).attr("transform",t.getTranslate("arc")),t.setArcTitle()},setArcTitle:function(){var t=this,e=t.getArcTitle(),n=t.hasType("gauge");if(e){var i=t.$el.arcs.append("text").attr("class",n?Uo.chartArcsGaugeTitle:Do.chartArcsTitle).style("text-anchor","middle");n&&i.attr("dy","-0.3em"),so(i,e,n?void 0:[-.6,1.35],!0)}},redrawArc:function(t,e,n){var i=this,r=this,o=r.config,s=r.state,u=r.$el.main,c=o.interaction_enabled,l=c&&o.data_selection_isselectable,h=u.selectAll("."+Do.arcs).selectAll("."+Do.arc).data(r.arcData.bind(r));h.exit().transition().duration(e).style("opacity","0").remove(),h=h.enter().append("path").attr("class",r.getClass("arc",!0)).style("fill",function(t){return a(this,i),r.color(t.data)}.bind(this)).style("cursor",function(t){return a(this,i),null!=l&&null!=l.bind&&l.bind(r.api)(t)?"pointer":null}.bind(this)).style("opacity","0").each((function(t){r.isGaugeType(t.data)&&(t.startAngle=o.gauge_startingAngle,t.endAngle=o.gauge_startingAngle),this._current=t})).merge(h),r.hasType("gauge")&&(r.updateGaugeMax(),r.hasMultiArcGauge()&&r.redrawMultiArcGauge()),h.attr("transform",function(t){return a(this,i),!r.isGaugeType(t.data)&&n?"scale(0)":""}.bind(this)).style("opacity",(function(t){return t===this._current?"0":null})).each(function(){a(this,i),s.transiting=!0}.bind(this)).transition().duration(t).attrTween("d",(function(t){var e=this,n=r.updateAngle(t);if(!n)return function(){return a(this,e),"M 0 0"}.bind(this);isNaN(this._current.startAngle)&&(this._current.startAngle=0),isNaN(this._current.endAngle)&&(this._current.endAngle=this._current.startAngle);var i=Zi(this._current,n);return this._current=i(0),function(e){var n=i(e);return n.data=t.data,r.getArc(n,!0)}})).attr("transform",n?"scale(1)":"").style("fill",function(t){var e;return a(this,i),r.levelColor?(e=r.levelColor(t.data.values[0].value),o.data_colors[t.data.id]=e):e=r.color(t.data),e}.bind(this)).style("opacity",null).call(ao,(function(){if(r.levelColor){var t=Pn(this),e=t.datum();r.updateLegendItemColor(e.data.id,t.style("fill"))}s.transiting=!1,ro(o.onrendered,r.api)})),c&&r.bindArcEvent(h),r.hasType("polar")&&r.redrawPolar(),r.hasType("gauge")&&r.redrawBackgroundArcs(),r.redrawArcText(t)},redrawBackgroundArcs:function(){var t=this,e=this,n=e.config,i=e.state,r=e.hasMultiArcGauge(),o=n.gauge_fullCircle,s=e.getStartAngle(),u=o?s+e.getArcLength():-1*s,c=e.$el.arcs.select((r?"g":"")+"."+Do.chartArcsBackground);if(r){var l=0;(c=c.selectAll("path."+Do.chartArcsBackground).data(e.data.targets)).enter().append("path").attr("class",function(e,n){return a(this,t),Do.chartArcsBackground+" "+Do.chartArcsBackground+"-"+n}.bind(this)).merge(c).style("fill",n.gauge_background||null).attr("d",function(r){var o=r.id;if(a(this,t),i.hiddenTargetIds.indexOf(o)>=0)return"M 0 0";var c={data:[{value:n.gauge_max}],startAngle:s,endAngle:u,index:l++};return e.getArc(c,!0,!0)}.bind(this)),c.exit().remove()}else c.attr("d",function(){a(this,t);var i={data:[{value:n.gauge_max}],startAngle:s,endAngle:u};return e.getArc(i,!0,!0)}.bind(this))},bindArcEvent:function(t){var e=this,n=this,i=n.config,r=n.state,o="touch"===r.inputType,s="mouse"===r.inputType;function u(t,e,i){n.expandArc(i),n.api.focus(i),n.toggleFocusLegend(i,!0),n.showTooltip([e],t)}function c(t){var e=(null==t?void 0:t.id)||void 0;n.unexpandArc(e),n.api.revert(),n.revertLegend(),n.hideTooltip()}if(t.on("click",(function(t,e,r){var a,o=n.updateAngle(e);o&&(a=n.convertToArcData(o),null==n.toggleShape||n.toggleShape(this,a,r),i.data_onclick.bind(n.api)(a,this))})),s&&t.on("mouseover",(function(t,e){var i;if(!r.transiting){r.event=t;var a=n.updateAngle(e),o=a?n.convertToArcData(a):null;u(this,o,(null==(i=o)?void 0:i.id)||void 0),n.setOverOut(!0,o)}})).on("mouseout",function(t,i){if(a(this,e),!r.transiting){r.event=t;var o=n.updateAngle(i),s=o?n.convertToArcData(o):null;c(),n.setOverOut(!1,s)}}.bind(this)).on("mousemove",(function(t,e){var i=n.updateAngle(e),a=i?n.convertToArcData(i):null;r.event=t,n.showTooltip([a],this)})),o&&n.hasArcType()&&!n.radars){var l=function(t){a(this,e);var n=t.changedTouches[0];return Pn(zn.elementFromPoint(n.clientX,n.clientY))}.bind(this);n.$el.svg.on("touchstart touchmove",(function(t){var e,i;if(!r.transiting){r.event=t;var a=l(t).datum(),o=null!=(e=a)&&e.data&&a.data.id?n.updateAngle(a):null,s=o?n.convertToArcData(o):null,h=(null==(i=s)?void 0:i.id)||void 0;n.callOverOutForTouch(s),Ga(h)?c():u(this,s,h)}}))}},redrawArcText:function(t){var e,n=this,i=this,r=i.config,o=i.state,s=i.$el,u=s.main,c=s.arcs,l=i.hasType("gauge"),h=i.hasMultiArcGauge();if(l&&1===i.data.targets.length&&r.gauge_title||(e=u.selectAll("."+Do.chartArc).select("text").style("opacity","0").attr("class",function(t){return a(this,n),i.isGaugeType(t.data)?Uo.gaugeValue:null}.bind(this)).call(i.textForArcLabel.bind(i)).attr("transform",i.transformForArcLabel.bind(i)).style("font-size",function(t){return a(this,n),i.isGaugeType(t.data)&&1===i.data.targets.length&&!h?Math.round(o.radius/5)+"px":null}.bind(this)).transition().duration(t).style("opacity",function(t){return a(this,n),i.isTargetToShow(t.data.id)&&i.isArcType(t.data)?null:"0"}.bind(this)),h&&e.attr("dy","-.1em")),u.select("."+Do.chartArcsTitle).style("opacity",i.hasType("donut")||l?null:"0"),l){var f,d=r.gauge_fullCircle;d&&(null==(f=e)||f.attr("dy",""+(h?0:Math.round(o.radius/14)))),r.gauge_label_show&&(c.select("."+Uo.chartArcsGaugeUnit).attr("dy",(d?1.5:.75)+"em").text(r.gauge_units),c.select("."+Uo.chartArcsGaugeMin).attr("dx",-1*(o.innerRadius+(o.radius-o.innerRadius)/(d?1:2))+"px").attr("dy","1.2em").text(i.textForGaugeMinMax(r.gauge_min,!1)),d||c.select("."+Uo.chartArcsGaugeMax).attr("dx",o.innerRadius+(o.radius-o.innerRadius)/2+"px").attr("dy","1.2em").text(i.textForGaugeMinMax(r.gauge_max,!0)))}}};function ld(t){return t[0]}function hd(t){return t[1]}function fd(t,e){var n=Vf(!0),i=null,r=xh,a=null;function o(o){var s,u,c,l=(o=Yf(o)).length,h=!1;for(null==i&&(a=r(c=td())),s=0;s<=l;++s)!(s<l&&n(u=o[s],s,o))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+t(u,s,o),+e(u,s,o));if(c)return a=null,c+""||null}return t="function"==typeof t?t:void 0===t?ld:Vf(t),e="function"==typeof e?e:void 0===e?hd:Vf(e),o.x=function(e){return arguments.length?(t="function"==typeof e?e:Vf(+e),o):t},o.y=function(t){return arguments.length?(e="function"==typeof t?t:Vf(+t),o):e},o.defined=function(t){return arguments.length?(n="function"==typeof t?t:Vf(!!t),o):n},o.curve=function(t){return arguments.length?(r=t,null!=i&&(a=r(i)),o):r},o.context=function(t){return arguments.length?(null==t?i=a=null:a=r(i=t),o):i},o}var dd={initArea:function(t){var e=this.config;t.insert("g","."+(e.area_front?Bo.circles:Vo.lines)).attr("class",this.getClass("areas",!0))},updateAreaColor:function(t){var e=this;return e.config.area_linearGradient?e.getGradienColortUrl(t.id):e.color(t)},updateArea:function(t,e){void 0===e&&(e=!1);var n=this,i=n.config,r=n.state,a=n.$el,o=n.$T,s=e?a.subchart:a;i.area_linearGradient&&n.updateLinearGradient();var u=s.main.selectAll("."+No.areas).selectAll("."+No.area).data(n.lineData.bind(n));o(u.exit(),t).style("opacity","0").remove(),s.area=u.enter().append("path").attr("class",n.getClass("area",!0)).style("fill",n.updateAreaColor.bind(n)).style("opacity",(function(){return r.orgAreaOpacity=Pn(this).style("opacity"),"0"})).merge(u),u.style("opacity",r.orgAreaOpacity)},redrawArea:function(t,e,n){var i=this;void 0===n&&(n=!1);var r=this,o=(n?this.$el.subchart:this.$el).area,s=r.state.orgAreaOpacity;return[r.$T(o,e,fo()).attr("d",t).style("fill",r.updateAreaColor.bind(r)).style("opacity",function(t){return a(this,i),(r.isAreaRangeType(t)?s/1.75:s)+""}.bind(this))]},generateDrawArea:function(t,e){var n=this,i=this,r=i.config,o=r.line_connectNull,s=r.axis_rotated,u=i.generateGetAreaPoints(t,e),c=i.getYScaleById.bind(i),l=function(t){return a(this,n),(e?i.subxx:i.xx).call(i,t)}.bind(this),h=function(t,r){return a(this,n),i.isGrouped(t.id)?u(t,r)[0][1]:c(t.id,e)(i.isAreaRangeType(t)?i.getRangedData(t,"high"):i.getShapeYMin(t.id))}.bind(this),f=function(t,r){return a(this,n),i.isGrouped(t.id)?u(t,r)[1][1]:c(t.id,e)(i.isAreaRangeType(t)?i.getRangedData(t,"low"):t.value)}.bind(this);return function(t){var e=this;a(this,n);var u,c=o?i.filterRemoveNull(t.values):t.values,d=0,g=0;if(i.isAreaType(t)){var p=function(t,e,n){var i=null,r=Vf(!0),a=null,o=xh,s=null;function u(u){var c,l,h,f,d,g=(u=Yf(u)).length,p=!1,v=Array(g),y=Array(g);for(null==a&&(s=o(d=td())),c=0;c<=g;++c){if(!(c<g&&r(f=u[c],c,u))===p)if(p=!p)l=c,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),h=c-1;h>=l;--h)s.point(v[h],y[h]);s.lineEnd(),s.areaEnd()}p&&(v[c]=+t(f,c,u),y[c]=+e(f,c,u),s.point(i?+i(f,c,u):v[c],n?+n(f,c,u):y[c]))}if(d)return s=null,d+""||null}function c(){return fd().defined(r).curve(o).context(a)}return t="function"==typeof t?t:void 0===t?ld:Vf(+t),e="function"==typeof e?e:Vf(void 0===e?0:+e),n="function"==typeof n?n:void 0===n?hd:Vf(+n),u.x=function(e){return arguments.length?(t="function"==typeof e?e:Vf(+e),i=null,u):t},u.x0=function(e){return arguments.length?(t="function"==typeof e?e:Vf(+e),u):t},u.x1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:Vf(+t),u):i},u.y=function(t){return arguments.length?(e="function"==typeof t?t:Vf(+t),n=null,u):e},u.y0=function(t){return arguments.length?(e="function"==typeof t?t:Vf(+t),u):e},u.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:Vf(+t),u):n},u.lineX0=u.lineY0=function(){return c().x(t).y(e)},u.lineY1=function(){return c().x(t).y(n)},u.lineX1=function(){return c().x(i).y(e)},u.defined=function(t){return arguments.length?(r="function"==typeof t?t:Vf(!!t),u):r},u.curve=function(t){return arguments.length?(o=t,null!=a&&(s=o(a)),u):o},u.context=function(t){return arguments.length?(null==t?a=s=null:s=o(a=t),u):a},u}();p=s?p.y(l).x0(h).x1(f):p.x(l).y0(r.area_above?0:r.area_below?i.state.height:h).y1(f),o||(p=p.defined(function(t){return a(this,e),null!==i.getBaseValue(t)}.bind(this))),i.isStepType(t)&&(c=i.convertValuesToStep(c)),u=p.curve(i.getCurve(t))(c)}else c[0]&&(d=i.scale.x(c[0].x),g=i.getYScaleById(t.id)(c[0].value)),u=s?"M "+g+" "+d:"M "+d+" "+g;return u||"M 0 0"}.bind(this)},generateGetAreaPoints:function(t,e){var n=this,i=n.config,r=n.getShapeX(0,t,e),a=n.getShapeY(!!e),o=n.getShapeOffset(n.isAreaType,t,e),s=n.getYScaleById.bind(n);return function(t,u){var c=s.call(n,t.id,e)(n.getShapeYMin(t.id)),l=o(t,u)||c,h=r(t),f=t.value,d=a(t);return i.axis_rotated&&(f>0&&d<c||f<0&&c<d)&&(d=c),[[h,l],[h,d-(c-l)],[h,d-(c-l)],[h,l]]}}},gd={initBar:function(){var t=this.$el,e=this.config,n=this.state.clip;t.bar=t.main.select("."+Po.chart).insert("g",":first-child").attr("class",Fo.chartBars).call(this.setCssRule(!1,"."+Fo.chartBars,["pointer-events:none"])),!1===e.clipPath&&(e.bar_radius||e.bar_radius_ratio)&&t.bar.attr("clip-path",n.pathXAxis.replace(/#[^)]*/,"#"+n.id))},updateTargetsForBar:function(t){var e=this,n=this,i=n.config,r=n.$el,o=n.getChartClass("Bar"),s=n.getClass("bars",!0),u=n.classFocus.bind(n),c=i.interaction_enabled&&i.data_selection_isselectable;r.bar||n.initBar(),n.$el.main.select("."+Fo.chartBars).selectAll("."+Fo.chartBar).data(t.filter(function(t){var i=this;return a(this,e),t.values.some(function(t){return a(this,i),Va(t.value)||n.isBarRangeType(t)}.bind(this))}.bind(this))).attr("class",function(t){return a(this,e),o(t)+u(t)}.bind(this)).enter().append("g").attr("class",o).style("opacity","0").style("pointer-events",n.getStylePropValue("none")).append("g").attr("class",s).style("cursor",function(t){return a(this,e),null!=c&&null!=c.bind&&c.bind(n.api)(t)?"pointer":null}.bind(this)).call(n.setCssRule(!0," ."+Fo.bar,["fill"],n.color))},updateBar:function(t,e){void 0===e&&(e=!1);var n=this,i=n.config,r=n.$el,a=n.$T,o=e?r.subchart:r,s=n.getClass("bar",!0),u=n.initialOpacity.bind(n);i.bar_linearGradient&&n.updateLinearGradient();var c=o.main.selectAll("."+Fo.bars).selectAll("."+Fo.bar).data(n.labelishData.bind(n));a(c.exit(),t).style("opacity","0").remove(),o.bar=c.enter().append("path").attr("class",s).style("fill",n.updateBarColor.bind(n)).merge(c).style("opacity",u)},updateBarColor:function(t){var e=this,n=e.getStylePropValue(e.color);return e.config.bar_linearGradient?e.getGradienColortUrl(t.id):n?n(t):null},redrawBar:function(t,e,n){var i=this;void 0===n&&(n=!1);var r=this,o=(n?r.$el.subchart:r.$el).bar;return[r.$T(o,e,fo()).attr("d",function(e){return a(this,i),(Va(e.value)||r.isBarRangeType(e))&&t(e)}.bind(this)).style("fill",r.updateBarColor.bind(r)).style("opacity",null)]},generateDrawBar:function(t,e){var n=this,i=this,r=i.config,o=i.generateGetBarPoints(t,e),s=r.axis_rotated,u=r.bar_radius,c=r.bar_radius_ratio,l=Va(u)&&u>0?function(){return a(this,n),u}.bind(this):Va(c)?function(t){return a(this,n),t*c}.bind(this):null;return function(t,e){a(this,n);var r=o(t,e),u=+s,c=+!u,h=t.value<0,f=["",""],d=0,g=i.isGrouped(t.id),p=!(!l||!g)&&i.isStackingRadiusData(t);if(l&&(!g||p)){var v=s?c:u,y=r[2][v]-r[0][v],x="a"+(d=l(y))+","+d+" "+(h?"1 0 0":"0 0 1")+" ";f[+!s]=""+x+d+","+d,f[+s]=""+x+[-d,d][s?"sort":"reverse"](),h&&f.reverse()}var b=s?"H"+(r[1][u]-d)+" "+f[0]+"V"+(r[2][c]-d)+" "+f[1]+"H"+r[3][u]:"V"+(r[1][c]+(h?-d:d))+" "+f[0]+"H"+(r[2][u]-d)+" "+f[1]+"V"+r[3][c];return"M"+r[0][u]+","+r[0][c]+b+"z"}.bind(this)},isStackingRadiusData:function(t){var e=this,n=this,i=n.$el,r=n.config,o=n.data,s=n.state,u=t.id,c=t.index,l=t.value;if(s.hiddenTargetIds.indexOf(u)>-1){var h=i.bar.filter(function(t){return a(this,e),t.id===u&&t.value===l}.bind(this));return!h.empty()&&/a\d+/i.test(h.attr("d"))}var f=r.data_groups.find(function(t){return a(this,e),t.indexOf(u)>-1}.bind(this)),d=n.orderTargets(n.filterTargetsToShow(o.targets.filter(n.isBarType,n))).filter(function(t){return a(this,e),f.indexOf(t.id)>-1}.bind(this)).map(function(t){var n=this;return a(this,e),t.values.filter(function(t){return a(this,n),t.index===c&&(Va(l)&&l>0?t.value>0:t.value<0)}.bind(this))[0]}.bind(this)).filter(Boolean).map(function(t){return a(this,e),t.id}.bind(this));return 0!==l&&d.indexOf(u)===d.length-1},generateGetBarPoints:function(t,e){var n=this,i=this,r=i.config,o=e?i.axis.subX:i.axis.x,s=i.getIndicesMax(t)+1,u=i.getBarW("bar",o,s),c=i.getShapeX(u,t,!!e),l=i.getShapeY(!!e),h=i.getShapeOffset(i.isBarType,t,!!e),f=i.getYScaleById.bind(i);return function(t,o){a(this,n);var s=f.call(i,t.id,e)(i.getShapeYMin(t.id)),d=h(t,o)||s,g=Va(u)?u:u[t.id]||u._$width,p=t.value,v=c(t),y=l(t);r.axis_rotated&&(p>0&&y<s||p<0&&s<y)&&(y=s),i.isBarRangeType(t)||(y-=s-d);var x=v+g;return[[v,d],[v,y],[x,y],[x,d]]}.bind(this)}};function pd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}var vd={initCandlestick:function(){var t=this.$el;t.candlestick=t.main.select("."+Po.chart).append("g").attr("class",jo.chartCandlesticks)},updateTargetsForCandlestick:function(t){var e=this,n=this,i=n.$el,r=n.getChartClass("Candlestick"),o=n.classFocus.bind(n);i.candlestick||n.initCandlestick(),n.$el.main.select("."+jo.chartCandlesticks).selectAll("."+jo.chartCandlestick).data(t).attr("class",function(t){return a(this,e),r(t)+o(t)}.bind(this)).enter().append("g").attr("class",r).style("pointer-events","none")},updateCandlestick:function(t,e){var n=this;void 0===e&&(e=!1);var i=this,r=i.$el,o=i.$T,s=e?r.subchart:r,u=i.getClass("candlestick",!0),c=i.initialOpacity.bind(i),l=s.main.selectAll("."+jo.chartCandlestick).selectAll("."+jo.candlestick).data(i.labelishData.bind(i));o(l.exit(),t).style("opacity","0").remove();var h=l.enter().filter(function(t){return a(this,n),t.value}.bind(this)).append("g").attr("class",u);h.append("line"),h.append("path"),s.candlestick||(s.candlestick={}),s.candlestick=l.merge(h).style("opacity",c)},generateDrawCandlestick:function(t,e){var n=this,i=this,r=i.config,o=i.generateGetCandlestickPoints(t,e),s=r.axis_rotated,u=r.candlestick_color_down;return function(t,e,r){var c,l=this;a(this,n);var h=o(t,e),f=null==(c=i.getCandlestickData(t))?void 0:c._isUp,d=+s;r.classed&&r.classed(jo[f?"valueUp":"valueDown"],!0);var g=s?"H"+h[1][1]+" V"+h[1][0]+" H"+h[0][1]:"V"+h[1][1]+" H"+h[1][0]+" V"+h[0][1];r.select("path").attr("d","M"+h[0][d]+","+h[0][+!d]+g+"z").style("fill",function(t){return a(this,l),(f?i.color(t):no(u)?u[t.id]:u)||i.color(t)}.bind(this));var p=r.select("line"),v=s?{x1:h[2][1],x2:h[2][2],y1:h[2][0],y2:h[2][0]}:{x1:h[2][0],x2:h[2][0],y1:h[2][1],y2:h[2][2]};for(var y in v)p.attr(y,v[y])}.bind(this)},generateGetCandlestickPoints:function(t,e){var n=this;void 0===e&&(e=!1);var i=this,r=i.config,o=e?i.axis.subX:i.axis.x,s=i.getIndicesMax(t)+1,u=i.getBarW("candlestick",o,s),c=i.getShapeX(u,t,!!e),l=i.getShapeY(!!e),h=i.getShapeOffset(i.isBarType,t,!!e),f=i.getYScaleById.bind(i);return function(t,o){a(this,n);var s,d=f.call(i,t.id,e)(i.getShapeYMin(t.id)),g=h(t,o)||d,p=Va(u)?u:u[t.id]||u._$width,v=i.getCandlestickData(t);if(v){var y={start:c(t),end:0};y.end=y.start+p;var x={start:l(v.open),end:l(v.close)},b={x:y.start+p/2,high:l(v.high),low:l(v.low)};r.axis_rotated&&(t.value>0&&x.start<d||t.value<0&&d<x.start)&&(x.start=d),x.start-=d-g,s=[[y.start,x.start],[y.end,x.end],[b.x,b.low,b.high]]}else s=[[0,0],[0,0],[0,0,0]];return s}.bind(this)},redrawCandlestick:function(t,e,n){void 0===n&&(n=!1);var i=this.$el,r=this.$T,a=(n?i.subchart:i).candlestick,o=fo(!0);return[a.each((function(n,i){var a=r(Pn(this),e,o);t(n,i,a)})).style("opacity",null)]},getCandlestickData:function(t){var e,n=t.value;if(eo(n)){var i=n[0],r=n[1],a=n[2],o=n[3],s=n[4],u=void 0!==s&&s;e={open:i,high:r,low:a,close:o},!1!==u&&(e.volume=u)}else no(n)&&(e=function(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?pd(Object(e),!0).forEach((function(n){Xn(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):pd(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}({},n));return e&&(e._isUp=e.close>=e.open),e||null}},yd={initGauge:function(){var t=this,e=this,n=e.config,i=e.$el.arcs,r=function(e){a(this,t),i.append("text").attr("class",e).style("text-anchor","middle").style("pointer-events","none")}.bind(this);if(e.hasType("gauge")){var o=e.hasMultiArcGauge();i.append(o?"g":"path").attr("class",Do.chartArcsBackground).style("fill",!o&&n.gauge_background||null),n.gauge_units&&r(Uo.chartArcsGaugeUnit),n.gauge_label_show&&(r(Uo.chartArcsGaugeMin),n.gauge_fullCircle||r(Uo.chartArcsGaugeMax))}},updateGaugeMax:function(){var t=this,e=t.config,n=t.state,i=t.hasMultiArcGauge()?t.getMinMaxData().max[0].value:t.getTotalDataSum(n.rendered);i+e.gauge_min*(e.gauge_min>0?-1:1)>e.gauge_max&&(e.gauge_max=i-e.gauge_min)},redrawMultiArcGauge:function(){var t=this,e=this,n=e.config,i=e.state,r=e.$el,o=e.state.hiddenTargetIds,s=r.main.selectAll("."+Do.arcs).selectAll("."+Do.arcLabelLine).data(e.arcData.bind(e));s.enter().append("rect").attr("class",function(e){return a(this,t),Do.arcLabelLine+" "+Po.target+" "+Po.target+"-"+e.data.id}.bind(this)).merge(s).style("fill",function(n){return a(this,t),e.levelColor?e.levelColor(n.data.values[0].value):e.color(n.data)}.bind(this)).style("display",n.gauge_label_show?null:"none").each((function(t){var n=0,r=0,a=0,s="";if(o.indexOf(t.data.id)<0){var u=e.updateAngle(t),c=i.gaugeArcWidth/e.filterTargetsToShow(e.data.targets).length*(u.index+1),l=u.endAngle-Math.PI/2,h=i.radius-c,f=l-(0===h?0:1/h);n=i.radiusExpanded-i.radius+c,r=Math.cos(f)*h,a=Math.sin(f)*h,s="rotate("+180*l/Math.PI+", "+r+", "+a+")"}Pn(this).attr("x",r).attr("y",a).attr("width",n).attr("height",2).attr("transform",s).style("stroke-dasharray","0, "+(n+2)+", 0")}))},textForGaugeMinMax:function(t,e){var n=this.config.gauge_label_extents;return Ua(n)?n.bind(this.api)(t,e):t},getGaugeLabelHeight:function(){var t=this.config;return this.config.gauge_label_show&&!t.gauge_fullCircle?20:0},getPaddingBottomForGauge:function(){return this.getGaugeLabelHeight()*(this.config.gauge_label_show?2:2.5)}},xd={initBubble:function(){var t=this.config;this.hasType("bubble")&&(t.point_show=!0,t.point_type="circle",t.point_sensitivity=25)},getBaseLength:function(){var t=this,e=t.state,n=e.width,i=e.height,r=ms,a=t.cache.get(r);return a||t.cache.add(r,a=Ao("min",[n,i])),a},getBubbleR:function(t){var e=this,n=this,i=n.config.bubble_maxR;Ua(i)?i=i.bind(n.api)(t):Va(i)||(i=n.getBaseLength()/(2*n.getMaxDataCount())+12);var r=Ao("max",n.getMinMaxData().max.map(function(t){return a(this,e),n.isBubbleZType(t)?n.getBubbleZData(t.value,"y"):no(t.value)?t.value.mid:t.value}.bind(this))),o=i*i*Math.PI,s=(n.isBubbleZType(t)?n.getBubbleZData(t.value,"z"):t.value)*(o/r);return Math.sqrt(s/Math.PI)},getBubbleZData:function(t,e){return no(t)?t[e]:t["y"===e?0:1]}},bd={initLine:function(){var t=this.$el;t.line=t.main.select("."+Po.chart).append("g").attr("class",Vo.chartLines).call(this.setCssRule(!1,"."+Vo.chartLines,["pointer-events:none"]))},updateTargetsForLine:function(t){var e=this,n=this,i=n.$el,r=i.area,o=i.line,s=i.main,u=n.getChartClass("Line"),c=n.getClass("lines",!0),l=n.classFocus.bind(n);o||n.initLine();var h=t.filter(function(t){return a(this,e),!(n.isScatterType(t)||n.isBubbleType(t))}.bind(this)),f=s.select("."+Vo.chartLines).selectAll("."+Vo.chartLine).data(h).attr("class",function(t){return a(this,e),u(t)+l(t)}.bind(this)),d=f.enter().append("g").attr("class",u).style("opacity","0").style("pointer-events",n.getStylePropValue("none"));if(d.append("g").attr("class",c),n.hasTypeOf("Area")){var g=(!r&&d.empty()?f:d).filter(n.isAreaType.bind(n));n.initArea(g)}n.updateTargetForCircle(h,d)},updateLine:function(t,e){var n=this;void 0===e&&(e=!1);var i=this,r=i.format.extraLineClasses,o=i.$el,s=i.$T,u=e?o.subchart:o,c=u.main.selectAll("."+Vo.lines).selectAll("."+Vo.line).data(i.lineData.bind(i));s(c.exit(),t).style("opacity","0").remove(),u.line=c.enter().append("path").attr("class",function(t){return a(this,n),i.getClass("line",!0)(t)+" "+(r(t)||"")}.bind(this)).style("stroke",i.color).merge(c).style("opacity",i.initialOpacity.bind(i)).style("shape-rendering",function(t){return a(this,n),i.isStepType(t)?"crispEdges":""}.bind(this)).attr("transform",null)},redrawLine:function(t,e,n){void 0===n&&(n=!1);var i=this.$el;return[(0,this.$T)((n?i.subchart:i).line,e,fo()).attr("d",t).style("stroke",this.color).style("opacity",null)]},getCurve:function(t){var e=this,n=this;return n.config.axis_rotated&&n.isStepType(t)?function(i){a(this,e);var r=n.getInterpolate(t)(i);return r.orgPoint=r.point,r.pointRotated=function(t,e){1===this._point&&(this._point=2);var n=this._y*(1-this._t)+e*this._t;this._context.lineTo(this._x,n),this._context.lineTo(t,n),this._x=t,this._y=e},r.point=function(t,e){0===this._point?this.orgPoint(t,e):this.pointRotated(t,e)},r}.bind(this):n.getInterpolate(t)},generateDrawLine:function(t,e){var n=this,i=this,r=i.config,o=i.scale,s=r.line_connectNull,u=r.axis_rotated,c=i.generateGetLinePoints(t,e),l=i.getYScaleById.bind(i),h=function(t){return a(this,n),(e?i.subxx:i.xx).call(i,t)}.bind(this),f=function(t,r){return a(this,n),i.isGrouped(t.id)?c(t,r)[0][1]:l(t.id,e)(i.getBaseValue(t))}.bind(this),d=fd();d=u?d.x(f).y(h):d.x(h).y(f),s||(d=d.defined(function(t){return a(this,n),null!==i.getBaseValue(t)}.bind(this)));var g=e?o.subX:o.x;return function(t){a(this,n);var c,h=l(t.id,e),f=s?i.filterRemoveNull(t.values):t.values,p=0,v=0;if(i.isLineType(t)){var y=r.data_regions[t.id];y?c=i.lineWithRegions(f,o.zoom||g,h,y):(i.isStepType(t)&&(f=i.convertValuesToStep(f)),c=d.curve(i.getCurve(t))(f))}else f[0]&&(p=g(f[0].x),v=h(f[0].value)),c=u?"M "+v+" "+p:"M "+p+" "+v;return c||"M 0 0"}.bind(this)},lineWithRegions:function(t,e,n,i){var r,o,s,u,c=this,l=this,h=l.config.axis_rotated,f=l.axis.isTimeSeries(),d=l.axis.isCategorized()?.5:0,g=[],p=function(t,e){a(this,c);for(var n,i=0;n=e[i];i++)if(n.start<t&&t<=n.end)return n.style;return!1}.bind(this);if(Ha(i))for(var v,y=function(t,e){return a(this,c),Ga(t)?e:f?Mo.call(l,t):t}.bind(this),x=0;v=i[x];x++){var b=y(v.start,t[0].x),_=y(v.end,t[t.length-1].x),m=v.style||{dasharray:"2 2"};g[x]={start:b,end:_,style:m}}for(var w,T=h?function(t){return a(this,c),n(t.value)}.bind(this):function(t){return a(this,c),e(t.x)}.bind(this),A=h?function(t){return a(this,c),e(t.x)}.bind(this):function(t){return a(this,c),n(t.value)}.bind(this),S=function(t){return a(this,c),"M"+t[0][0]+","+t[0][1]+"L"+t[1][0]+","+t[1][1]}.bind(this),E=f?function(t,i,r,u){a(this,c);var l=t.x.getTime(),f=i.x-t.x,d=new Date(l+f*r),g=new Date(l+f*(r+u)),p=h?[[n(o(r)),e(d)],[n(o(r+s)),e(g)]]:[[e(d),n(o(r))],[e(g),n(o(r+s))]];return S(p)}.bind(this):function(t,i,s,u){a(this,c);var l=h?[[n(o(s),!0),e(r(s))],[n(o(s+u),!0),e(r(s+u))]]:[[e(r(s),!0),n(o(s))],[e(r(s+u),!0),n(o(s+u))]];return S(l)}.bind(this),k={x:l.axis.getAxisType("x"),y:l.axis.getAxisType("y")},M="",O=0;w=t[O];O++){var R=t[O-1],C=R&&$a(R.value);m=p(w.x,g);if($a(w.value))if(!Ga(g)&&m&&C){if(C){try{m=m.dasharray.split(" ")}catch(t){m="2 2".split(" ")}r=xl(k.x,R.x+d,w.x+d),o=xl(k.y,R.value,w.value);var I=e(w.x)-e(R.x),L=n(w.value)-n(R.value),P=Math.sqrt(Math.pow(I,2)+Math.pow(L,2));u=(s=m[0]/P)*m[1];for(var D=s;D<=1;D+=u)M+=E(R,w,D,s),D+u>=1&&(M+=E(R,w,1,0))}}else M+=(O&&C?"L":"M")+T(w)+","+A(w)}return M},isWithinStep:function(t,e){return Math.abs(e-co(this.state.event,t)[1])<30},shouldDrawPointsForLine:function(t){var e=this.config.line_point;return!0===e||eo(e)&&-1!==e.indexOf(t.id)}},_d=function(){return a(this,undefined),fo()}.bind(void 0),md={hasValidPointType:function(t){return/^(circle|rect(angle)?|polygon|ellipse|use)$/i.test(t||this.config.point_type)},hasValidPointDrawMethods:function(t){var e=t||this.config.point_type;return Ja(e)&&Ua(e.create)&&Ua(e.update)},initialOpacityForCircle:function(t){var e=this.config,n=this.state.withoutFadeIn,i=e.point_opacity;return Ga(i)&&(i=null!==this.getBaseValue(t)&&n[t.id]?this.opacityForCircle(t):"0"),i},opacityForCircle:function(t){var e=this.config,n=e.point_opacity;return Ga(n)&&(n=e.point_show&&!e.point_focus_only?null:"0",n=$a(this.getBaseValue(t))?this.isBubbleType(t)||this.isScatterType(t)?"0.5":n:"0"),n},initCircle:function(){var t=this,e=t.$el.main;t.point=t.generatePoint(),(t.hasType("bubble")||t.hasType("scatter"))&&e.select("."+Bo.chartCircles).empty()&&e.select("."+Po.chart).append("g").attr("class",Bo.chartCircles)},updateTargetForCircle:function(t,e){var n=this,i=this,r=i.config,o=i.data,s=i.$el,u=r.interaction_enabled&&r.data_selection_enabled,c=u&&r.data_selection_isselectable,l=i.getClass("circles",!0);if(r.point_show){s.circle||i.initCircle();var h=t,f=e;if(!h){h=o.targets.filter(function(t){return a(this,n),this.isScatterType(t)||this.isBubbleType(t)}.bind(this));var d=s.main.select("."+Bo.chartCircles).style("pointer-events","none").selectAll("."+Bo.circles).data(h);d.exit().remove(),f=d.enter()}u&&f.append("g").attr("class",function(t){return a(this,n),i.generateClass(Qo.selectedCircles,t.id)}.bind(this)),f.append("g").attr("class",l).call(function(t){a(this,n),i.setCssRule(!0,"."+Bo.circles,["cursor:pointer"],c)(t),i.setCssRule(!0," ."+Bo.circle,["fill","stroke"],i.color)(t)}.bind(this)).style("opacity",(function(){return Pn(this.parentNode).attr("class").indexOf(Bo.chartCircles)>-1?"0":null})),u&&h.forEach(function(t){var e=this;a(this,n),s.main.selectAll("."+Qo.selectedCircles+i.getTargetSelectorSuffix(t.id)).selectAll(""+Qo.selectedCircle).each(function(n){a(this,e),n.value=t.values[n.index].value}.bind(this))}.bind(this))}},updateCircle:function(t){var e=this;void 0===t&&(t=!1);var n=this,i=n.config,r=n.state,o=n.$el,s=i.point_focus_only,u=t?o.subchart:o;if(i.point_show&&!r.toggling){var c=u.main.selectAll("."+Bo.circles).selectAll("."+Bo.circle).data(function(t){return a(this,e),n.isLineType(t)&&n.shouldDrawPointsForLine(t)||n.isBubbleType(t)||n.isRadarType(t)||n.isScatterType(t)?s?[t.values[0]]:t.values:[]}.bind(this));c.exit().remove(),c.enter().filter(Boolean).append(n.point("create",this,n.pointR.bind(n),n.getStylePropValue(n.color))),u.circle=u.main.selectAll("."+Bo.circles+" ."+Bo.circle).style("stroke",n.getStylePropValue(n.color)).style("opacity",n.initialOpacityForCircle.bind(n))}},redrawCircle:function(t,e,n,i,r){void 0===r&&(r=!1);var a=this,o=a.state.rendered,s=a.$el,u=a.$T,c=r?s.subchart:s,l=c.main.selectAll("."+Qo.selectedCircle);if(!a.config.point_show)return[];var h=a.point("update",a,t,e,a.getStylePropValue(a.color),n,i,l),f=a.isCirclePoint()?"c":"",d=fo(),g=a.opacityForCircle.bind(a),p=[];return c.circle.each((function(t){var e=h.bind(this)(t);e=u(e,n||!o,d).style("opacity",g),p.push(e)})),[p,u(l,n).attr(f+"x",t).attr(f+"y",e)]},showCircleFocus:function(t){var e=this,n=e.config,i=e.state,r=i.hasRadar,o=i.resizing,s=i.toggling,u=i.transiting,c=e.$el.circle;if(!1===u&&n.point_focus_only&&c){var l=(r?e.radarCircleX:e.circleX).bind(e),h=(r?e.radarCircleY:e.circleY).bind(e),f=s||Ga(t),d=e.point("update",e,l,h,e.getStylePropValue(e.color),!o&&f);t&&(c=c.filter((function(e){var n=this,i=t.filter(function(t){return a(this,n),t.id===e.id}.bind(this));return!!i.length&&Pn(this).datum(i[0])}))),c.attr("class",this.updatePointClass.bind(this)).style("opacity",null).each((function(t){var n=t.id,i=t.index,r=t.value,a="hidden";$a(r)&&(d.bind(this)(t),e.expandCircles(i,n),a=""),this.style.visibility=a}))}},hideCircleFocus:function(){var t=this,e=t.config,n=t.$el.circle;e.point_focus_only&&n&&(t.unexpandCircles(),n.style("visibility","hidden"))},circleX:function(t){return this.xx(t)},updateCircleY:function(t){var e=this;void 0===t&&(t=!1);var n=this,i=n.generateGetLinePoints(n.getShapeIndices(n.isLineType),t);return function(r,o){a(this,e);var s=r.id;return n.isGrouped(s)?i(r,o)[0][1]:n.getYScaleById(s,t)(n.getBaseValue(r))}.bind(this)},expandCircles:function(t,e,n){var i=this,r=i.pointExpandedR.bind(i);n&&i.unexpandCircles();var a=i.getShapeByIndex("circle",t,e).classed(Po.EXPANDED,!0),o=r(a)/i.config.point_r,s=1-o;i.isCirclePoint()?a.attr("r",r):a.each((function(){var t=Pn(this);if("circle"===this.tagName)t.attr("r",r);else{var e=this.getBBox(),n=e.width,i=e.height,a=s*(+t.attr("x")+n/2),u=s*(+t.attr("y")+i/2);t.attr("transform","translate("+a+" "+u+") scale("+o+")")}}))},unexpandCircles:function(t){var e=this,n=e.pointR.bind(e),i=e.getShapeByIndex("circle",t).filter((function(){return Pn(this).classed(Po.EXPANDED)})).classed(Po.EXPANDED,!1);if(i.attr("r",n),!e.isCirclePoint()){var r=n(i)/e.config.point_r;i.attr("transform",1!==r?"scale("+r+")":null)}},pointR:function(t){var e=this,n=e.config.point_r,i=n;return e.isBubbleType(t)?i=e.getBubbleR(t):Ua(n)&&(i=n.bind(e.api)(t)),i},pointExpandedR:function(t){var e=this,n=e.config,i=e.isBubbleType(t)?1.15:1.75;return n.point_focus_expand_enabled?n.point_focus_expand_r||e.pointR(t)*i:e.pointR(t)},pointSelectR:function(t){var e=this.config.point_select_r;return Ua(e)?e(t):e||4*this.pointR(t)},isWithinCircle:function(t,e){var n=co(this.state.event,t),i=Pn(t),r=this.isCirclePoint(t)?"c":"",a=+i.attr(r+"x"),o=+i.attr(r+"y");if(!a&&!o&&1===t.nodeType){var s=ho(t);a=s.x,o=s.y}return Math.sqrt(Math.pow(a-n[0],2)+Math.pow(o-n[1],2))<(e||this.config.point_sensitivity)},insertPointInfoDefs:function(t,e){var n,i=this,r=function(t,e){a(this,i);for(var n,r=t.attributes,o=0;n=r[o];o++)n=n.name,e.setAttribute(n,t.getAttribute(n))}.bind(this),o=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement,s=zn.createElementNS(Pe.svg,o.nodeName.toLowerCase());if(s.id=e,s.style.fill="inherit",s.style.stroke="inherit",r(o,s),null!=(n=o.childNodes)&&n.length){var u=Pn(s);"innerHTML"in s?u.html(o.innerHTML):xo(o.childNodes).forEach(function(t){a(this,i),r(t,u.append(t.tagName).node())}.bind(this))}this.$el.defs.node().appendChild(s)},pointFromDefs:function(t){return this.$el.defs.select("#"+t)},updatePointClass:function(t){var e=this,n=e.$el.circle,i=!1;return(no(t)||n)&&(i=!0===t?n.each((function(t){var n=e.getClass("circle",!0)(t);this.getAttribute("class").indexOf(Po.EXPANDED)>-1&&(n+=" "+Po.EXPANDED),this.setAttribute("class",n)})):e.getClass("circle",!0)(t)),i},generateGetLinePoints:function(t,e){var n=this,i=this,r=i.config,o=i.getShapeX(0,t,e),s=i.getShapeY(e),u=i.getShapeOffset(i.isLineType,t,e),c=i.getYScaleById.bind(i);return function(t,l){a(this,n);var h=c.call(i,t.id,e)(i.getShapeYMin(t.id)),f=u(t,l)||h,d=o(t),g=s(t);r.axis_rotated&&(t.value>0&&g<h||t.value<0&&h<g)&&(g=h);var p=[d,g-(h-f)];return[p,p,p,p]}.bind(this)},generatePoint:function(){var t=this,e=t.config,n=t.state.datetimeId,i=[],r=to(e.point_pattern)?e.point_pattern:[e.point_type];return function(e,a){for(var o=arguments.length,s=Array(o>2?o-2:0),u=2;u<o;u++)s[u-2]=arguments[u];return function(o){var u,c=t.getTargetSelectorSuffix(o.id||(null==(u=o.data)?void 0:u.id)||o),l=Pn(this);i.indexOf(c)<0&&i.push(c);var h=r[i.indexOf(c)%r.length];if(t.hasValidPointType(h))h=t[h];else if(!t.hasValidPointDrawMethods(h)){var f=n+"-point"+c;if(t.pointFromDefs(f).size()<1&&t.insertPointInfoDefs(h,f),"create"===e)return t.custom.create.bind(a).apply(void 0,[l,f].concat(s));if("update"===e)return t.custom.update.bind(a).apply(void 0,[l].concat(s))}return h[e].bind(a).apply(void 0,[l].concat(s))}}},custom:{create:function(t,e,n){return t.append("use").attr("xlink:href","#"+e).attr("class",this.updatePointClass.bind(this)).style("fill",n).node()},update:function(t,e,n,i,r,o,s){var u=this,c=t.node().getBBox(),l=c.width,h=c.height,f=function(t){return a(this,u),$a(t.value)?e(t)-l/2:0}.bind(this),d=function(t){return a(this,u),$a(t.value)?n(t)-h/2:0}.bind(this),g=t;return r&&(o&&g.attr("x",f),g=this.$T(g,r,_d()),s&&this.$T(s,r,_d())),g.attr("x",f).attr("y",d).style("fill",i)}},circle:{create:function(t,e,n){return t.append("circle").attr("class",this.updatePointClass.bind(this)).attr("r",e).style("fill",n).node()},update:function(t,e,n,i,r,a,o){var s=this,u=t;return s.hasType("bubble")&&u.attr("r",s.pointR.bind(s)),r&&(a&&u.attr("cx",e),u.attr("cx")&&(u=s.$T(u,r,_d())),o&&s.$T(u,r,_d())),u.attr("cx",e).attr("cy",n).style("fill",i)}},rectangle:{create:function(t,e,n){var i=this,r=function(t){return a(this,i),2*e(t)}.bind(this);return t.append("rect").attr("class",this.updatePointClass.bind(this)).attr("width",r).attr("height",r).style("fill",n).node()},update:function(t,e,n,i,r,o,s){var u=this,c=this,l=c.config.point_r,h=function(t){return a(this,u),e(t)-l}.bind(this),f=function(t){return a(this,u),n(t)-l}.bind(this),d=t;return r&&(o&&d.attr("x",h),d=c.$T(d,r,_d()),s&&c.$T(s,r,_d())),d.attr("x",h).attr("y",f).style("fill",i)}}};function wd(t){var e=t.config.polar_level_max,n=t.getMinMaxData().max[0].value;return e&&e>n&&(n=e),n}var Td={initPolar:function(){var t=this,e=t.$el.arcs,n=t.config,i=n.polar_level_text_show,r=n.polar_level_text_backgroundColor;e.levels=e.append("g").attr("class",Zo),i&&r&&t.generateDataLabelBackgroundColorFilter(r)},getPolarOuterRadius:function(t,e){var n,i=wd(this);return(null!=(n=null==t?void 0:t.data.values[0].value)?n:0)/i*e},updateTargetsForPolar:function(t){this.updateTargetsForArc(t)},redrawPolar:function(){this.config.polar_level_show&&this.updatePolarLevel()},updatePolarLevel:function(){var t=this,e=this,n=e.config,i=e.state,r=e.$el.arcs.levels,o=n.polar_level_depth,s=wd(e),u=So(0,o),c=i.radius,l=u.map(function(e){return a(this,t),c*((e+1)/o)}.bind(this)),h=(n.polar_level_text_format||function(){}).bind(e.api),f=r.selectAll("."+qo).data(u);f.exit().remove();var d=f.enter().append("g").attr("class",function(e,n){return a(this,t),qo+" "+qo+"-"+n}.bind(this));if(d.append("circle"),d.merge(f).selectAll("circle").style("visibility",n.polar_level_show?null:"hidden").attr("cx",0).attr("cy",0).attr("r",function(e){return a(this,t),l[e]}.bind(this)),n.polar_level_text_show){var g=n.polar_level_text_backgroundColor,p="#"+i.datetimeId+"-labels-bg"+e.getTargetSelectorSuffix(g);d.append("text").style("text-anchor","middle"),d.merge(f).selectAll("text").attr("dy",function(e){return a(this,t),5-l[e]}.bind(this)).attr("filter",g?"url("+p+")":null).text(function(e){return a(this,t),h(s/u.length*(e+1))}.bind(this))}}};var Ad=ks,Sd={initRadar:function(){var t=this,e=t.config,n=t.state.current,i=t.$el;t.hasType("radar")&&(i.radar=i.main.select("."+Po.chart).append("g").attr("class",Ko.chartRadars),i.radar.levels=i.radar.append("g").attr("class",Zo),i.radar.axes=i.radar.append("g").attr("class",zo.axis),i.radar.shapes=i.radar.append("g").attr("class",ts.shapes),n.dataMax=e.radar_axis_max||t.getMinMaxData().max[0].value)},getRadarSize:function(){var t=this.config,e=this.state,n=e.arcWidth,i=e.arcHeight,r=t.axis_x_categories.length<4?-20:10,a=(Math.min(n,i)-r)/2;return[a,a]},updateTargetsForRadar:function(t){var e=this,n=this.config;Qa(n.axis_x_categories)&&(n.axis_x_categories=So(0,Ao("max",t.map(function(t){return a(this,e),t.values.length}.bind(this))))),this.generateRadarPoints()},getRadarPosition:function(t,e,n,i){var r=this,o=this.config,s=this.getRadarSize(),u=s[0],c=s[1],l=o.axis_x_categories.length,h=o.radar_direction_clockwise,f=xo(t).map(function(s){return a(this,r),function(t,e,n,i,r,a){var o=t&&i>0?n-i:i,s=2*Math.PI;return r*(1-a*("x"===e?Math.sin:Math.cos)(o*s/n))}(h,s,l,e,Ha(n)?n:"x"===t?u:c,Va(i)?i:o.radar_size_ratio)}.bind(this));return 1===f.length?f[0]:f},generateRadarPoints:function(){var t=this,e=this,n=e.data.targets,i=e.getRadarSize(),r=i[0],o=i[1],s=e.cache.get(Ad)||{},u=s._size;(!u||u.width!==r&&u.height!==o)&&(n.forEach(function(n){var i=this;a(this,t),s[n.id]=n.values.map(function(t,n){return a(this,i),e.getRadarPosition(["x","y"],n,void 0,e.getRatio("radar",t))}.bind(this))}.bind(this)),s._size={width:r,height:o},e.cache.add(Ad,s))},redrawRadar:function(){var t=this,e=t.$el,n=e.radar,i=e.main,r=t.getTranslate("radar");r&&(n.attr("transform",r),i.select("."+ns.chartTexts).attr("transform",r),t.generateRadarPoints(),t.updateRadarLevel(),t.updateRadarAxes(),t.updateRadarShape())},generateGetRadarPoints:function(){var t=this,e=this.cache.get(Ad);return function(n,i){a(this,t);var r=e[n.id][i];return[r,r,r,r]}.bind(this)},updateRadarLevel:function(){var t=this,e=this,n=e.config,i=e.state,r=e.$el.radar,o=e.getRadarSize(),s=o[0],u=o[1],c=n.radar_level_depth,l=n.axis_x_categories.length,h=n.radar_level_text_show,f=r.levels,d=So(0,c),g=n.radar_size_ratio*Math.min(s,u),p=d.map(function(e){return a(this,t),g*((e+1)/c)}.bind(this)),v=(n.radar_level_text_format||function(){}).bind(e.api),y=d.map(function(n){var i=this;a(this,t);var r=p[n];return So(0,l).map(function(t){return a(this,i),e.getRadarPosition(["x","y"],t,r,1).join(",")}.bind(this)).join(" ")}.bind(this)),x=f.selectAll("."+qo).data(d);x.exit().remove();var b=x.enter().append("g").attr("class",function(e,n){return a(this,t),qo+" "+qo+"-"+n}.bind(this));b.append("polygon").style("visibility",n.radar_level_show?null:"hidden"),h&&(f.select("text").empty()&&f.append("text").attr("dx","-.5em").attr("dy","-.7em").style("text-anchor","end").text(function(){return a(this,t),v(0)}.bind(this)),b.append("text").attr("dx","-.5em").style("text-anchor","end").text(function(e){return a(this,t),v(i.current.dataMax/d.length*(e+1))}.bind(this))),b.merge(x).attr("transform",function(e){return a(this,t),"translate("+(s-p[e])+", "+(u-p[e])+")"}.bind(this)).selectAll("polygon").attr("points",function(e){return a(this,t),y[e]}.bind(this)),h&&f.selectAll("text").attr("x",function(e){return a(this,t),Ga(e)?s:y[e].split(",")[0]}.bind(this)).attr("y",function(e){return a(this,t),Ga(e)?u:0}.bind(this))},updateRadarAxes:function(){var t=this,e=this,n=e.config,i=e.$el.radar,r=e.getRadarSize(),o=r[0],s=r[1],u=n.axis_x_categories,c=i.axes.selectAll("g").data(u);c.exit().remove();var l=c.enter().append("g").attr("class",function(e,n){return a(this,t),zo.axis+"-"+n}.bind(this));if(n.radar_axis_line_show&&l.append("line"),n.radar_axis_text_show&&l.append("text"),c=l.merge(c),n.radar_axis_line_show&&c.select("line").attr("x1",o).attr("y1",s).attr("x2",function(n,i){return a(this,t),e.getRadarPosition("x",i)}.bind(this)).attr("y2",function(n,i){return a(this,t),e.getRadarPosition("y",i)}.bind(this)),n.radar_axis_text_show){var h=n.radar_axis_text_position,f=h.x,d=void 0===f?0:f,g=h.y,p=void 0===g?0:g;c.select("text").style("text-anchor","middle").attr("dy",".5em").call(function(e){a(this,t),e.each((function(t){so(Pn(this),t+"",[-.6,1.2])}))}.bind(this)).datum(function(e,n){return a(this,t),{index:n}}.bind(this)).attr("transform",(function(t){Ga(this.width)&&(this.width=this.getBoundingClientRect().width/2);var n=e.getRadarPosition("x",t.index,void 0,1),i=Math.round(e.getRadarPosition("y",t.index,void 0,1));return n>o?n+=this.width+d:Math.round(n)<o&&(n-=this.width+d),i>s?(i/2===s&&"tspan"===this.firstChild.tagName&&this.firstChild.setAttribute("dy","0em"),i+=p):i<s&&(i-=p),"translate("+n+" "+i+")"}))}e.bindEvent()},bindEvent:function(){var t=this,e=this,n=e.config,i=e.state,r=e.$el,o=r.radar,s=r.svg,u=n.point_focus_only,c=i,l=c.inputType,h=c.transiting;if(n.interaction_enabled){var f="mouse"===l,d=function(e){a(this,t);var n=e.target;/tspan/i.test(n.tagName)&&(n=n.parentNode);var i=Pn(n).datum();return i&&1===Object.keys(i).length?i.index:void 0}.bind(this),g=function(n){a(this,t),i.event=n;var r=d(n),o=Ga(r);(f||o)&&(e.hideTooltip(),u?e.hideCircleFocus():e.unexpandCircles(),f?e.setOverOut(!1,r):o&&e.callOverOutForTouch())}.bind(this);o.axes.selectAll("text").on(f?"mouseover ":"touchstart",function(n){if(a(this,t),!h){i.event=n;var r=d(n);e.selectRectForSingle(s.node(),null,r),f?e.setOverOut(!0,r):e.callOverOutForTouch(r)}}.bind(this)).on("mouseout",f?g:null),f||s.on("touchstart",g)}},updateRadarShape:function(){var t=this,e=this,n=e.data.targets.filter(function(n){return a(this,t),e.isRadarType(n)}.bind(this)),i=e.cache.get(Ad),r=e.$el.radar.shapes.selectAll("polygon").data(n),o=r.enter().append("g").attr("class",e.getChartClass("Radar"));e.$T(r.exit()).remove(),o.append("polygon").merge(r).style("fill",e.color).style("stroke",e.color).attr("points",function(e){return a(this,t),i[e.id].join(" ")}.bind(this)),e.updateTargetForCircle(n,o)},radarCircleX:function(t){return this.cache.get(Ad)[t.id][t.index][0]},radarCircleY:function(t){return this.cache.get(Ad)[t.id][t.index][1]}},Ed={point_show:!0,point_r:2.5,point_sensitivity:10,point_focus_expand_enabled:!0,point_focus_expand_r:void 0,point_focus_only:!1,point_opacity:void 0,point_pattern:[],point_select_r:void 0,point_type:"circle"},kd={area_above:!1,area_below:!1,area_front:!0,area_linearGradient:!1,area_zerobased:!0},Md={bar_label_threshold:0,bar_linearGradient:!1,bar_indices_removeNull:!1,bar_overlap:!1,bar_padding:0,bar_radius:void 0,bar_radius_ratio:void 0,bar_sensitivity:2,bar_width:void 0,bar_width_ratio:.6,bar_width_max:void 0,bar_zerobased:!0},Od={bubble_maxR:35,bubble_zerobased:!1},Rd={candlestick_width:void 0,candlestick_width_ratio:.6,candlestick_width_max:void 0,candlestick_color_down:"red"},Cd={line_connectNull:!1,line_step_type:"step",line_step_tooltipMatch:!1,line_zerobased:!1,line_classes:void 0,line_point:!0},Id={scatter_zerobased:!1},Ld={spline_interpolation_type:"cardinal"},Pd={donut_label_show:!0,donut_label_format:void 0,donut_label_threshold:.05,donut_label_ratio:void 0,donut_width:void 0,donut_title:"",donut_expand:{},donut_expand_rate:.98,donut_expand_duration:50,donut_padAngle:0,donut_startingAngle:0},Dd={gauge_background:"",gauge_fullCircle:!1,gauge_label_show:!0,gauge_label_format:void 0,gauge_label_extents:void 0,gauge_label_threshold:0,gauge_min:0,gauge_max:100,gauge_type:"single",gauge_startingAngle:-1*Math.PI/2,gauge_arcLength:100,gauge_title:"",gauge_units:void 0,gauge_width:void 0,gauge_arcs_minWidth:5,gauge_expand:{},gauge_expand_rate:.98,gauge_expand_duration:50},Nd={pie_label_show:!0,pie_label_format:void 0,pie_label_threshold:.05,pie_label_ratio:void 0,pie_expand:{},pie_expand_rate:.98,pie_expand_duration:50,pie_innerRadius:0,pie_outerRadius:void 0,pie_padAngle:0,pie_padding:0,pie_startingAngle:0},zd={polar_label_show:!0,polar_label_format:void 0,polar_label_threshold:.05,polar_label_ratio:void 0,polar_level_depth:3,polar_level_max:void 0,polar_level_show:!0,polar_level_text_backgroundColor:"#fff",polar_level_text_format:function(t){return a(this,undefined),t%1==0?t:t.toFixed(2)}.bind(void 0),polar_level_text_show:!0,polar_padAngle:0,polar_padding:0,polar_startingAngle:0},Fd={radar_axis_max:void 0,radar_axis_line_show:!0,radar_axis_text_show:!0,radar_axis_text_position:{},radar_level_depth:3,radar_level_show:!0,radar_level_text_format:function(t){return a(this,undefined),t%1==0?t:t.toFixed(2)}.bind(void 0),radar_level_text_show:!0,radar_size_ratio:.87,radar_direction_clockwise:!1},jd=void 0;function Bd(t,e){vo(Ph.prototype,$f.concat(t)),vo(Hh.prototype,Xf),_s.setOptions(Uf.concat(e||[]))}function Xd(t,e){Bd([md,bd].concat(t||[])),_s.setOptions([Ed,Cd].concat(e||[]))}function $d(t,e){vo(Ph.prototype,[cd].concat(t||[])),_s.setOptions(e)}var Ud=function(){var t=this;return a(this,jd),Xd(dd,[kd]),(Ud=function(){return a(this,t),Fn.AREA}.bind(this))()}.bind(void 0),Yd=function(){var t=this;return a(this,jd),Xd(dd,[kd]),(Yd=function(){return a(this,t),Fn.AREA_LINE_RANGE}.bind(this))()}.bind(void 0),Vd=function(){var t=this;return a(this,jd),Xd(dd,[kd,Ld]),(Vd=function(){return a(this,t),Fn.AREA_SPLINE}.bind(this))()}.bind(void 0),Gd=function(){var t=this;return a(this,jd),Xd(dd,[kd,Ld]),(Gd=function(){return a(this,t),Fn.AREA_SPLINE_RANGE}.bind(this))()}.bind(void 0),Hd=function(){var t=this;return a(this,jd),Xd(dd,[kd]),(Hd=function(){return a(this,t),Fn.AREA_STEP}.bind(this))()}.bind(void 0),Wd=function(){var t=this;return a(this,jd),Xd(),(Wd=function(){return a(this,t),Fn.LINE}.bind(this))()}.bind(void 0),qd=function(){var t=this;return a(this,jd),Xd(void 0,[Ld]),(qd=function(){return a(this,t),Fn.SPLINE}.bind(this))()}.bind(void 0),Zd=function(){var t=this;return a(this,jd),Xd(),(Zd=function(){return a(this,t),Fn.STEP}.bind(this))()}.bind(void 0),Kd=function(){var t=this;return a(this,jd),$d(void 0,[Pd]),(Kd=function(){return a(this,t),Fn.DONUT}.bind(this))()}.bind(void 0),Jd=function(){var t=this;return a(this,jd),$d([yd],[Dd]),(Jd=function(){return a(this,t),Fn.GAUGE}.bind(this))()}.bind(void 0),Qd=function(){var t=this;return a(this,jd),$d(void 0,[Nd]),(Qd=function(){return a(this,t),Fn.PIE}.bind(this))()}.bind(void 0),tg=function(){var t=this;return a(this,jd),$d([Td],[zd]),(tg=function(){return a(this,t),Fn.POLAR}.bind(this))()}.bind(void 0),eg=function(){var t=this;return a(this,jd),$d([md,Sd],[Ed,Fd]),(eg=function(){return a(this,t),Fn.RADAR}.bind(this))()}.bind(void 0),ng=function(){var t=this;return a(this,jd),Bd([gd],Md),(ng=function(){return a(this,t),Fn.BAR}.bind(this))()}.bind(void 0),ig=function(){var t=this;return a(this,jd),Bd([md,xd],[Od,Ed]),(ig=function(){return a(this,t),Fn.BUBBLE}.bind(this))()}.bind(void 0),rg=function(){var t=this;return a(this,jd),Bd([vd],[Rd]),(rg=function(){return a(this,t),Fn.CANDLESTICK}.bind(this))()}.bind(void 0),ag=function(){var t=this;return a(this,jd),Bd([md],[Ed,Id]),(ag=function(){return a(this,t),Fn.SCATTER}.bind(this))()}.bind(void 0),og={selected:function(t){var e=this,n=this.internal,i=[];return n.$el.main.selectAll("."+(ts.shapes+n.getTargetSelectorSuffix(t))).selectAll("."+ts.shape).filter((function(){return Pn(this).classed(Qo.SELECTED)})).each(function(t){return a(this,e),i.push(t)}.bind(this)),i},select:function(t,e,n){var i=this.internal,r=i.config,a=i.$el;r.data_selection_enabled&&a.main.selectAll("."+ts.shapes).selectAll("."+ts.shape).each((function(a,o){var s=Pn(this),u=a.data?a.data.id:a.id,c=i.getToggle(this,a).bind(i),l=r.data_selection_grouped||!t||t.indexOf(u)>=0,h=!e||e.indexOf(o)>=0,f=s.classed(Qo.SELECTED);s.classed(Vo.line)||s.classed(No.area)||(l&&h?r.data_selection_isselectable.bind(i.api)(a)&&!f&&c(!0,s.classed(Qo.SELECTED,!0),a,o):Ha(n)&&n&&f&&c(!1,s.classed(Qo.SELECTED,!1),a,o))}))},unselect:function(t,e){var n=this.internal,i=n.config,r=n.$el;i.data_selection_enabled&&r.main.selectAll("."+ts.shapes).selectAll("."+ts.shape).each((function(r,a){var o=Pn(this),s=r.data?r.data.id:r.id,u=n.getToggle(this,r).bind(n),c=i.data_selection_grouped||!t||t.indexOf(s)>=0,l=!e||e.indexOf(a)>=0,h=o.classed(Qo.SELECTED);o.classed(Vo.line)||o.classed(No.area)||c&&l&&i.data_selection_isselectable.bind(n.api)(r)&&h&&u(!1,o.classed(Qo.SELECTED,!1),r,a)}))}},sg={subchart:{show:function(){var t=this.internal,e=t.$el.subchart,n=t.config,i=n.subchart_show;if(!i){var r,a;t.unbindZoomEvent(),n.subchart_show=!i,e.main||t.initSubchart();var o,s=e.main.selectAll("."+Po.target);if(t.data.targets.length!==s.size())t.updateSizes(),t.updateTargetsForSubchart(t.data.targets),s=null==(o=e.main)?void 0:o.selectAll("."+Po.target);null==(r=s)||r.style("opacity",null),null==(a=e.main)||a.style("display",null),this.resize()}},hide:function(){var t=this.internal,e=t.$el.subchart.main,n=t.config;n.subchart_show&&"none"!==(null==e?void 0:e.style("display"))&&(n.subchart_show=!1,e.style("display","none"),this.resize())},toggle:function(){var t=this.internal.config;this.subchart[t.subchart_show?"hide":"show"]()}}};function ug(t){return((t=Math.exp(t))+1/t)/2}var cg=function t(e,n,i){function r(t,r){var a,o,s=t[0],u=t[1],c=t[2],l=r[0],h=r[1],f=r[2],d=l-s,g=h-u,p=d*d+g*g;if(p<1e-12)o=Math.log(f/c)/e,a=function(t){return[s+t*d,u+t*g,c*Math.exp(e*t*o)]};else{var v=Math.sqrt(p),y=(f*f-c*c+i*p)/(2*c*n*v),x=(f*f-c*c-i*p)/(2*f*n*v),b=Math.log(Math.sqrt(y*y+1)-y),_=Math.log(Math.sqrt(x*x+1)-x);o=(_-b)/e,a=function(t){var i=t*o,r=ug(b),a=c/(n*v)*(r*function(t){return((t=Math.exp(2*t))-1)/(t+1)}(e*i+b)-function(t){return((t=Math.exp(t))-1/t)/2}(b));return[s+a*d,u+a*g,c*r/ug(e*i+b)]}}return a.duration=1e3*o*e/Math.SQRT2,a}return r.rho=function(e){var n=Math.max(.001,+e),i=n*n;return t(n,i,i*i)},r}(Math.SQRT2,2,4),lg=function(t){var e=this;return a(this,undefined),function(){return a(this,e),t}.bind(this)}.bind(void 0);function hg(t,e){var n=e.sourceEvent,i=e.target,r=e.transform,a=e.dispatch;Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:a}})}function fg(t,e,n){this.k=t,this.x=e,this.y=n}fg.prototype={constructor:fg,scale:function(t){return 1===t?this:new fg(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new fg(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var dg=new fg(1,0,0);function gg(t){for(;!t.__zoom;)if(!(t=t.parentNode))return dg;return t.__zoom}function pg(t){t.stopImmediatePropagation()}function vg(t){t.preventDefault(),t.stopImmediatePropagation()}function yg(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function xg(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function bg(){return this.__zoom||dg}function _g(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function mg(){return navigator.maxTouchPoints||"ontouchstart"in this}function wg(t,e,n){var i=t.invertX(e[0][0])-n[0][0],r=t.invertX(e[1][0])-n[1][0],a=t.invertY(e[0][1])-n[0][1],o=t.invertY(e[1][1])-n[1][1];return t.translate(r>i?(i+r)/2:Math.min(0,i)||Math.max(0,r),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}gg.prototype=fg.prototype;var Tg=function(t){var e=this,n=this.internal,i=n.$el,r=n.axis,o=n.config,s=n.org,u=n.scale,c=o.axis_rotated,l=r.isCategorized(),h=t;if(o.zoom_enabled&&h){if(r.isTimeSeries()&&(h=h.map(function(t){return a(this,e),Mo.bind(n)(t)}.bind(this))),function(t,e,n){var i=this,r=n[0],o=n[1];return t.every(function(n,s){var u=this;return a(this,i),(0===s?n>=r:n<=o)&&!t.every(function(t,n){return a(this,u),t===e[n]}.bind(this))}.bind(this))}(h,n.getZoomDomain(!0),n.getZoomDomain())){if(l&&(h=h.map(function(t,n){return a(this,e),+t+(0===n?0:1)}.bind(this))),n.api.tooltip.hide(),o.subchart_show){var f=u.zoom||u.x;n.brush.getSelection().call(n.brush.move,h.map(f))}else{var d,g=l?u.x.orgScale():s.xScale||u.x,p=[-g(h[0]),0],v=(d=dg.scale(g.range()[1]/(g(h[1])-g(h[0])))).translate.apply(d,c?p.reverse():p);i.eventRect.call(n.zoom.transform,v)}n.setZoomResetButton()}}else h=u.zoom?u.zoom.domain():u.x.orgDomain();return h};vo(Tg,{enable:function(t){var e=this.internal,n=e.config;/^(drag|wheel)$/.test(t)&&(n.zoom_type=t),n.zoom_enabled=!!t,e.zoom?!1===t&&e.bindZoomEvent(!1):(e.initZoom(),e.bindZoomEvent()),e.updateAndRedraw()},max:function(t){var e=this.internal,n=e.config,i=e.org.xDomain;return(0===t||t)&&(n.zoom_x_max=Ao("max",[i[1],t])),n.zoom_x_max},min:function(t){var e=this.internal,n=e.config,i=e.org.xDomain;return(0===t||t)&&(n.zoom_x_min=Ao("min",[i[0],t])),n.zoom_x_min},range:function(t){var e=this.zoom;if(no(t)){var n=t.min,i=t.max;Ha(n)&&e.min(n),Ha(i)&&e.max(i)}return{min:e.min(),max:e.max()}}});var Ag={zoom:Tg,unzoom:function(){var t=this.internal,e=t.config,n=t.$el,i=n.eventRect,r=n.zoomResetBtn;t.scale.zoom&&(e.subchart_show?t.brush.getSelection().call(t.brush.move,null):t.zoom.updateTransformScale(dg),t.updateZoom(!0),null==r||r.style("display","none"),gg(i.node())!==dg&&t.zoom.transform(i,dg))}},Sg={drag:function(t){var e=this,n=this,i=n.config,r=n.state,o=n.$el.main,s=i.data_selection_grouped,u=i.interaction_enabled&&i.data_selection_isselectable;if(!n.hasArcType()&&i.data_selection_enabled&&(!i.zoom_enabled||n.zoom.altDomain)&&i.data_selection_multiple){var c=r.dragStart||[0,0],l=c[0],h=c[1],f=t[0],d=t[1],g=Math.min(l,f),p=Math.max(l,f),v=s?r.margin.top:Math.min(h,d),y=s?r.height:Math.max(h,d);o.select("."+$o.dragarea).attr("x",g).attr("y",v).attr("width",p-g).attr("height",y-v),o.selectAll("."+ts.shapes).selectAll("."+ts.shape).filter(function(t){return a(this,e),null==u?void 0:u.bind(n.api)(t)}.bind(this)).each((function(t,e){var i,r=Pn(this),a=r.classed(Qo.SELECTED),o=r.classed($o.INCLUDED),s=!1;if(r.classed(Bo.circle)){var u=1*+r.attr("cx"),c=1*+r.attr("cy");i=n.togglePoint,s=g<u&&u<p&&v<c&&c<y}else{if(!r.classed(Fo.bar))return;var l=function(t){var e=t.getBoundingClientRect(),n=e.width,i=e.height,r=uo(t);return{x:r[0].x,y:Math.min(r[0].y,r[1].y),width:n,height:i}}(this),h=l.x,f=(c=l.y,l.width),d=l.height;i=n.togglePath,s=!(p<h||h+f<g||y<c||c+d<v)}s^o&&(r.classed($o.INCLUDED,!o),r.classed(Qo.SELECTED,!a),i.call(n,!a,r,t,e))}))}},dragstart:function(t){var e=this,n=e.config,i=e.state,r=e.$el.main;!e.hasArcType()&&n.data_selection_enabled&&(i.dragStart=t,r.select("."+Po.chart).append("rect").attr("class",$o.dragarea).style("opacity","0.1"),e.setDragStatus(!0))},dragend:function(){var t=this,e=t.config,n=t.$el.main,i=t.$T;!t.hasArcType()&&e.data_selection_enabled&&(i(n.select("."+$o.dragarea)).style("opacity","0").remove(),n.selectAll("."+ts.shape).classed($o.INCLUDED,!1),t.setDragStatus(!1))}};function Eg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function kg(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?Eg(Object(e),!0).forEach((function(n){Xn(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Eg(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var Mg=kg(kg({},Sg),{},{selectPoint:function(t,e,n){var i=this,r=this,o=r.config,s=r.$el.main,u=r.$T,c=o.axis_rotated,l=(c?r.circleY:r.circleX).bind(r),h=(c?r.circleX:r.circleY).bind(r),f=r.pointSelectR.bind(r);ro(o.data_onselected,r.api,e,t.node()),u(s.select("."+Qo.selectedCircles+r.getTargetSelectorSuffix(e.id)).selectAll("."+Qo.selectedCircle+"-"+n).data([e]).enter().append("circle").attr("class",function(){return a(this,i),r.generateClass(Qo.selectedCircle,n)}.bind(this)).attr("cx",l).attr("cy",h).attr("stroke",r.color).attr("r",function(t){return a(this,i),1.4*r.pointSelectR(t)}.bind(this))).attr("r",f)},unselectPoint:function(t,e,n){var i=this,r=i.config,a=i.$el.main,o=i.$T;ro(r.data_onunselected,i.api,e,t.node()),o(a.select("."+Qo.selectedCircles+i.getTargetSelectorSuffix(e.id)).selectAll("."+Qo.selectedCircle+"-"+n)).attr("r",0).remove()},togglePoint:function(t,e,n,i){this[(t?"":"un")+"selectPoint"](e,n,i)},selectPath:function(t,e){var n=this.config;ro(n.data_onselected,this.api,e,t.node()),n.interaction_brighten&&t.style("filter","brightness(1.25)")},unselectPath:function(t,e){var n=this.config;ro(n.data_onunselected,this.api,e,t.node()),n.interaction_brighten&&t.style("filter",null)},togglePath:function(t,e,n,i){this[(t?"":"un")+"selectPath"](e,n,i)},getToggle:function(t,e){var n=this,i=this;return"path"===t.nodeName?i.togglePath:i.isStepType(e)?function(){a(this,n)}.bind(this):i.togglePoint},toggleShape:function(t,e,n){var i=this,r=i.config,a=i.$el.main;if(r.data_selection_enabled&&r.data_selection_isselectable.bind(i.api)(e)){var o,s=Pn(t),u=s.classed(Qo.SELECTED),c=i.getToggle(t,e).bind(i);if(!r.data_selection_multiple){var l="."+ts.shapes;r.data_selection_grouped&&(l+=i.getTargetSelectorSuffix(e.id)),a.selectAll(l).selectAll("."+ts.shape).each((function(t,e){var n=Pn(this);n.classed(Qo.SELECTED)&&(o=n,c(!1,n.classed(Qo.SELECTED,!1),t,e))}))}o&&o.node()===s.node()||(s.classed(Qo.SELECTED,!u),c(!u,s,e,n))}}}),Og={initBrush:function(){var t,e,n=this,i=this,r=i.config,o=i.scale,s=i.$el.subchart,u=r.axis_rotated;i.brush=Fa(u?Sa:Aa).handleSize(5);var c=function(){a(this,n);var t=i.$el.svg.select("."+as.brush+" .overlay"),e={width:0,height:0};return t.size()&&(e.width=+t.attr("width"),e.height=+t.attr("height")),e[u?"width":"height"]}.bind(this);i.brush.on("start brush end",function(e){var r=this;a(this,n);var s=e.selection,c=e.target,l=e.type;"start"===l&&"touch"===i.state.inputType&&i.hideTooltip(),/(start|brush)/.test(l)&&i.redrawForBrush(),"end"===l&&(t=o.x.orgDomain()),null!=c&&c.handle&&(null===s?i.brush.handle.attr("display","none"):i.brush.handle.attr("display",null).attr("transform",function(t,e){return a(this,r),"translate("+(u?[33,s[e]-(0===e?30:24)]:[s[e],3])+")"}.bind(this)))}.bind(this)),i.brush.updateResize=function(){var n=this;e&&clearTimeout(e),e=setTimeout(function(){a(this,n);var e=this.getSelection();t&&za(e.node())&&this.move(e,t.map(o.subX.orgScale()))}.bind(this),0)},i.brush.update=function(){var t,e=this;0===this.extent()()[1].filter(function(t){return a(this,e),isNaN(t)}.bind(this)).length&&(null==(t=s.main)||t.select("."+as.brush).call(this));return this},i.brush.scale=function(t){var e=this,n=r.subchart_size_height||c(),o=i.getExtent();!o&&t.range?o=[[0,0],[t.range()[1],n]]:eo(o)&&(o=o.map(function(t,i){return a(this,e),[t,i>0?n:i]}.bind(this))),u&&o[1].reverse(),this.extent(o),this.update()},i.brush.getSelection=function(){return a(this,n),s.main?s.main.select("."+as.brush):Pn([])}.bind(this)},initSubchart:function(){var t=this,e=this,n=e.config,i=e.state,r=i.clip,o=i.hasAxis,s=e.$el,u=s.defs,c=s.svg,l=s.subchart,h=s.axis;if(o){var f=n.subchart_show?null:"hidden",d=r.id+"-subchart",g=e.getClipPath(d);r.idSubchart=d,e.appendClip(u,d),e.initBrush(),l.main=c.append("g").classed(as.subchart,!0).attr("transform",e.getTranslate("context"));var p=l.main;p.style("visibility",f),p.append("g").attr("clip-path",g).attr("class",as.chart),["bar","line","bubble","candlestick","scatter"].forEach(function(n){a(this,t);var i=yo(/^(bubble|scatter)$/.test(n)?"circle":n);if(e.hasType(n)||e.hasTypeOf(i)){var r=p.select("."+as.chart),o=as["chart"+i+"s"];r.select("."+o).empty()&&r.append("g").attr("class",o)}}.bind(this));var v=p.append("g").attr("clip-path",g).attr("class",as.brush).call(e.brush);n.subchart_showHandle&&e.addBrushHandle(v),h.subX=p.append("g").attr("class",as.axisX).attr("transform",e.getTranslate("subX")).attr("clip-path",n.axis_rotated?"":r.pathXAxis).style("visibility",n.subchart_axis_x_show?f:"hidden")}},addBrushHandle:function(t){var e=this,n=this.config,i=n.axis_rotated,r=n.subchart_init_range,o=i?["M 5.2491724,29.749209 a 6,6 0 0 0 -5.50000003,-6.5 H -5.7508276 a 6,6 0 0 0 -6.0000004,6.5 z m -5.00000003,-2 H -6.7508276 m 6.99999997,-2 H -6.7508276Z","M 5.2491724,23.249172 a 6,-6 0 0 1 -5.50000003,6.5 H -5.7508276 a 6,-6 0 0 1 -6.0000004,-6.5 z m -5.00000003,2 H -6.7508276 m 6.99999997,2 H -6.7508276Z"]:["M 0 18 A 6 6 0 0 0 -6.5 23.5 V 29 A 6 6 0 0 0 0 35 Z M -2 23 V 30 M -4 23 V 30Z","M 0 18 A 6 6 0 0 1 6.5 23.5 V 29 A 6 6 0 0 1 0 35 Z M 2 23 V 30 M 4 23 V 30Z"];this.brush.handle=t.selectAll(".handle--custom").data(i?[{type:"n"},{type:"s"}]:[{type:"w"},{type:"e"}]).enter().append("path").attr("class","handle--custom").attr("cursor",(i?"ns":"ew")+"-resize").attr("d",function(t){return a(this,e),o[+/[se]/.test(t.type)]}.bind(this)).attr("display",r?null:"none")},updateTargetsForSubchart:function(t){var e=this,n=this,i=n.config,r=n.state,o=n.$el.subchart.main;i.subchart_show&&(["bar","line","bubble","candlestick","scatter"].filter(function(t){return a(this,e),n.hasType(t)||n.hasTypeOf(yo(t))}.bind(this)).forEach(function(i){a(this,e);var r=/^(bubble|scatter)$/.test(i),s=yo(r?"circle":i),u=n.getChartClass(s,!0),c=n.getClass(r?"circles":i+"s",!0),l=o.select("."+as["chart"+s+"s"]);if(r){var h=l.selectAll("."+as.circles).data(t.filter(n["is"+yo(i)+"Type"].bind(n))).attr("class",c);h.exit().remove(),h.enter().append("g").attr("class",c)}else{var f=l.selectAll("."+as["chart"+s]).attr("class",u).data(t.filter(n["is"+s+"Type"].bind(n))),d=f.enter().append("g").style("opacity","0").attr("class",u).append("g").attr("class",c);f.exit().remove(),"line"===i&&n.hasTypeOf("Area")&&d.append("g").attr("class",n.getClass("areas",!0))}}.bind(this)),o.selectAll("."+as.brush+" rect").attr(i.axis_rotated?"width":"height",i.axis_rotated?r.width2:r.height2))},redrawSubchart:function(t,e,n){var i,r=this,o=this,s=o.config,u=o.$el.subchart.main,c=o.state,l=!!e;if((u.style("visibility",s.subchart_show?null:"hidden"),s.subchart_show)&&("zoom"===(null==(i=c.event)?void 0:i.type)&&o.brush.update(),t)){var h=s.subchart_init_range;if(po(o)||o.brush.update(),Object.keys(n.type).forEach(function(t){a(this,r);var e=yo(t),i=o["generateDraw"+e](n.indices[t],!0);o["update"+e](l,!0),o["redraw"+e](i,l,!0)}.bind(this)),o.hasType("bubble")||o.hasType("scatter")){var f=n.pos.cx,d=o.updateCircleY(!0);o.updateCircle(!0),o.redrawCircle(f,d,l,void 0,!0)}!c.rendered&&h&&o.brush.move(o.brush.getSelection(),h.map(o.scale.x))}},redrawForBrush:function(){var t=this,e=t.config,n=e.subchart_onbrush,i=e.zoom_rescale,r=t.scale;t.redraw({withTransition:!1,withY:i,withSubchart:!1,withUpdateXDomain:!0,withDimension:!1}),n.bind(t.api)(r.x.orgDomain())},transformContext:function(t,e){var n=this,i=n.$el.subchart,r=n.$T,a=null!=e&&e.axisSubX?e.axisSubX:r(i.main.select("."+as.axisX),t);i.main.attr("transform",n.getTranslate("context")),a.attr("transform",n.getTranslate("subX"))},getExtent:function(){var t=this,e=this,n=e.config,i=e.scale,r=n.axis_x_extent;if(r)if(Ua(r))r=r.bind(e.api)(e.getXDomain(e.data.targets),i.subX);else if(e.axis.isTimeSeries()&&r.every(isNaN)){var o=Mo.bind(e);r=r.map(function(e){return a(this,t),i.subX(o(e))}.bind(this))}return r}},Rg={initZoom:function(){var t=this;t.scale.zoom=null,t.generateZoom(),t.initZoomBehaviour()},bindZoomEvent:function(t){void 0===t&&(t=!0);var e=this,n=e.config;n.zoom_enabled&&t?n.subchart_show||e.bindZoomOnEventRect():!1===t&&(e.api.unzoom(),e.unbindZoomEvent())},generateZoom:function(){var t=this,e=this,n=e.config,i=e.org,r=e.scale,o=function(){var t,e,n,i=yg,r=xg,a=wg,o=_g,s=mg,u=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],l=250,h=cg,f=qn("start","zoom","end"),d=0,g=10;function p(t){t.property("__zoom",bg).on("wheel.zoom",w,{passive:!1}).on("mousedown.zoom",T).on("dblclick.zoom",A).filter(s).on("touchstart.zoom",S).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",k).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(t,e){return(e=Math.max(u[0],Math.min(u[1],e)))===t.k?t:new fg(e,t.x,t.y)}function y(t,e,n){var i=e[0]-n[0]*t.k,r=e[1]-n[1]*t.k;return i===t.x&&r===t.y?t:new fg(t.k,i,r)}function x(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function b(t,e,n,i){t.on("start.zoom",(function(){_(this,arguments).event(i).start()})).on("interrupt.zoom end.zoom",(function(){_(this,arguments).event(i).end()})).tween("zoom",(function(){var t=this,a=arguments,o=_(t,a).event(i),s=r.apply(t,a),u=null==n?x(s):"function"==typeof n?n.apply(t,a):n,c=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),l=t.__zoom,f="function"==typeof e?e.apply(t,a):e,d=h(l.invert(u).concat(c/l.k),f.invert(u).concat(c/f.k));return function(t){if(1===t)t=f;else{var e=d(t),n=c/e[2];t=new fg(n,u[0]-e[0]*n,u[1]-e[1]*n)}o.zoom(null,t)}}))}function _(t,e,n){return!n&&t.__zooming||new m(t,e)}function m(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=r.apply(t,e),this.taps=0}function w(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(i.apply(this,arguments)){var s=_(this,n).event(t),l=this.__zoom,h=Math.max(u[0],Math.min(u[1],l.k*Math.pow(2,o.apply(this,arguments)))),f=$n(t);if(s.wheel)s.mouse[0][0]===f[0]&&s.mouse[0][1]===f[1]||(s.mouse[1]=l.invert(s.mouse[0]=f)),clearTimeout(s.wheel);else{if(l.k===h)return;s.mouse=[f,l.invert(f)],mr(this),s.start()}vg(t),s.wheel=setTimeout(d,150),s.zoom("mouse",a(y(v(l,h),s.mouse[0],s.mouse[1]),s.extent,c))}function d(){s.wheel=null,s.end()}}function T(t){for(var e=arguments.length,r=Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(!n&&i.apply(this,arguments)){var s=t.currentTarget,u=_(this,r,!0).event(t),l=Pn(t.view).on("mousemove.zoom",p,!0).on("mouseup.zoom",v,!0),h=$n(t,s),f=t.clientX,g=t.clientY;ti(t.view),pg(t),u.mouse=[h,this.__zoom.invert(h)],mr(this),u.start()}function p(t){if(vg(t),!u.moved){var e=t.clientX-f,n=t.clientY-g;u.moved=e*e+n*n>d}u.event(t).zoom("mouse",a(y(u.that.__zoom,u.mouse[0]=$n(t,s),u.mouse[1]),u.extent,c))}function v(t){l.on("mousemove.zoom mouseup.zoom",null),ei(t.view,u.moved),vg(t),u.event(t).end()}}function A(t){for(var e=arguments.length,n=Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];if(i.apply(this,arguments)){var s=this.__zoom,u=$n(t.changedTouches?t.changedTouches[0]:t,this),h=s.invert(u),f=s.k*(t.shiftKey?.5:2),d=a(y(v(s,f),u,h),r.apply(this,n),c);vg(t),l>0?Pn(this).transition().duration(l).call(b,d,u,t):Pn(this).call(p.transform,d,u,t)}}function S(n){for(var r=arguments.length,a=Array(r>1?r-1:0),o=1;o<r;o++)a[o-1]=arguments[o];if(i.apply(this,arguments)){var s,u,c,l,h=n.touches,f=h.length,d=_(this,a,n.changedTouches.length===f).event(n);for(pg(n),u=0;u<f;++u)l=[l=$n(c=h[u],this),this.__zoom.invert(l),c.identifier],d.touch0?d.touch1||d.touch0[2]===l[2]||(d.touch1=l,d.taps=0):(d.touch0=l,s=!0,d.taps=1+!!t);t&&(t=clearTimeout(t)),s&&(d.taps<2&&(e=l[0],t=setTimeout((function(){t=null}),500)),mr(this),d.start())}}function E(t){if(this.__zooming){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];var r,o,s,u,l=_(this,n).event(t),h=t.changedTouches,f=h.length;for(vg(t),r=0;r<f;++r)s=$n(o=h[r],this),l.touch0&&l.touch0[2]===o.identifier?l.touch0[0]=s:l.touch1&&l.touch1[2]===o.identifier&&(l.touch1[0]=s);if(o=l.that.__zoom,l.touch1){var d=l.touch0[0],g=l.touch0[1],p=l.touch1[0],x=l.touch1[1],b=(b=p[0]-d[0])*b+(b=p[1]-d[1])*b,m=(m=x[0]-g[0])*m+(m=x[1]-g[1])*m;o=v(o,Math.sqrt(b/m)),s=[(d[0]+p[0])/2,(d[1]+p[1])/2],u=[(g[0]+x[0])/2,(g[1]+x[1])/2]}else{if(!l.touch0)return;s=l.touch0[0],u=l.touch0[1]}l.zoom("touch",a(y(o,s,u),l.extent,c))}}function k(t){for(var i=arguments.length,r=Array(i>1?i-1:0),a=1;a<i;a++)r[a-1]=arguments[a];if(this.__zooming){var o,s,u=_(this,r).event(t),c=t.changedTouches,l=c.length;for(pg(t),n&&clearTimeout(n),n=setTimeout((function(){n=null}),500),o=0;o<l;++o)s=c[o],u.touch0&&u.touch0[2]===s.identifier?delete u.touch0:u.touch1&&u.touch1[2]===s.identifier&&delete u.touch1;if(u.touch1&&!u.touch0&&(u.touch0=u.touch1,delete u.touch1),u.touch0)u.touch0[1]=this.__zoom.invert(u.touch0[0]);else if(u.end(),2===u.taps&&(s=$n(s,this),Math.hypot(e[0]-s[0],e[1]-s[1])<g)){var h=Pn(this).on("dblclick.zoom");h&&h.apply(this,arguments)}}}return p.transform=function(t,e,n,i){var r=t.selection?t.selection():t;r.property("__zoom",bg),t!==r?b(t,e,n,i):r.interrupt().each((function(){_(this,arguments).event(i).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()}))},p.scaleBy=function(t,e,n,i){p.scaleTo(t,(function(){return this.__zoom.k*("function"==typeof e?e.apply(this,arguments):e)}),n,i)},p.scaleTo=function(t,e,n,i){p.transform(t,(function(){var t=r.apply(this,arguments),i=this.__zoom,o=null==n?x(t):"function"==typeof n?n.apply(this,arguments):n,s=i.invert(o),u="function"==typeof e?e.apply(this,arguments):e;return a(y(v(i,u),o,s),t,c)}),n,i)},p.translateBy=function(t,e,n,i){p.transform(t,(function(){return a(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),r.apply(this,arguments),c)}),null,i)},p.translateTo=function(t,e,n,i,o){p.transform(t,(function(){var t=r.apply(this,arguments),o=this.__zoom,s=null==i?x(t):"function"==typeof i?i.apply(this,arguments):i;return a(dg.translate(s[0],s[1]).scale(o.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,c)}),i,o)},m.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=Pn(this.that).datum();f.call(t,this.that,new hg(t,{sourceEvent:this.sourceEvent,target:p,type:t,transform:this.that.__zoom,dispatch:f}),e)}},p.wheelDelta=function(t){return arguments.length?(o="function"==typeof t?t:lg(+t),p):o},p.filter=function(t){return arguments.length?(i="function"==typeof t?t:lg(!!t),p):i},p.touchable=function(t){return arguments.length?(s="function"==typeof t?t:lg(!!t),p):s},p.extent=function(t){return arguments.length?(r="function"==typeof t?t:lg([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),p):r},p.scaleExtent=function(t){return arguments.length?(u[0]=+t[0],u[1]=+t[1],p):[u[0],u[1]]},p.translateExtent=function(t){return arguments.length?(c[0][0]=+t[0][0],c[1][0]=+t[1][0],c[0][1]=+t[0][1],c[1][1]=+t[1][1],p):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},p.constrain=function(t){return arguments.length?(a=t,p):a},p.duration=function(t){return arguments.length?(l=+t,p):l},p.interpolate=function(t){return arguments.length?(h=t,p):h},p.on=function(){var t=f.on.apply(f,arguments);return t===f?p:t},p.clickDistance=function(t){return arguments.length?(d=(t=+t)*t,p):Math.sqrt(d)},p.tapDistance=function(t){return arguments.length?(g=+t,p):g},p}().duration(0).on("start",e.onZoomStart.bind(e)).on("zoom",e.onZoom.bind(e)).on("end",e.onZoomEnd.bind(e));o.orgScaleExtent=function(){a(this,t);var i=n.zoom_extent||[1,10];return[i[0],Math.max(e.getMaxDataCount()/i[1],i[1])]}.bind(this),o.updateScaleExtent=function(){var t=Ka(e.scale.x.orgDomain())/Ka(e.getZoomDomain()),n=this.orgScaleExtent();return this.scaleExtent([n[0]*t,n[1]*t]),this},o.updateTransformScale=function(o,s){var u;a(this,t);var c=n.axis_rotated;null==(u=i.xScale)||u.range(r.x.range());var l=o[c?"rescaleY":"rescaleX"](i.xScale||r.x),h=e.trimXDomain(l.domain()),f=n.zoom_rescale;if(l.domain(h,i.xDomain),s){var d=l(r.x.domain()[0]),g=c?o.x:d,p=c?d:o.y;e.$el.eventRect.property("__zoom",dg.translate(g,p).scale(o.k))}e.state.xTickOffset||(e.state.xTickOffset=e.axis.x.tickOffset()),r.zoom=e.getCustomizedScale(l),e.axis.x.scale(r.zoom),f&&(i.xScale||(i.xScale=r.x.copy()),r.x.domain(h))}.bind(this),o.getDomain=function(){a(this,t);var n=r[r.zoom?"zoom":"subX"].domain();return e.axis.isCategorized()&&(n[1]-=2),n}.bind(this),e.zoom=o},onZoomStart:function(t){var e=this,n=t.sourceEvent;n&&(e.zoom.startEvent=n,e.state.zooming=!0,ro(e.config.zoom_onzoomstart,e.api,t))},onZoom:function(t){var e=this,n=this,i=n.config,r=n.scale,o=n.state,s=n.org,u=t.sourceEvent,c=(null==t?void 0:t.transform)===dg;if(!(!i.zoom_enabled||0===n.filterTargetsToShow(n.data.targets).length||!r.zoom&&(null==u?void 0:u.type.indexOf("touch"))>-1&&1===(null==u?void 0:u.touches.length))){t.sourceEvent&&(o.zooming=!0);var l="mousemove"===(null==u?void 0:u.type),h=(null==u?void 0:u.wheelDelta)<0,f=t.transform;!l&&h&&r.x.domain().every(function(t,n){return a(this,e),t!==s.xDomain[n]}.bind(this))&&r.x.domain(s.xDomain),n.zoom.updateTransformScale(f,"wheel"===i.zoom_type&&u);var d=i.transition_duration>0&&!i.subchart_show&&(o.dragging||c||!t.sourceEvent);n.redraw({withTransition:d,withY:i.zoom_rescale,withSubchart:!1,withEventRect:!1,withDimension:!1}),n.state.cancelClick=l,c||ro(i.zoom_onzoom,n.api,n.zoom.getDomain())}},onZoomEnd:function(t){var e,n,i,r=this,a=r.config,o=r.state,s=r.zoom.startEvent,u=null==t?void 0:t.sourceEvent,c=(null==t?void 0:t.transform)===dg;(null==(e=s)?void 0:e.type.indexOf("touch"))>-1&&(s=s.changedTouches[0],u=null==(n=u)||null==(i=n.changedTouches)?void 0:i[0]);"drag"===a.zoom_type&&u&&s.clientX===u.clientX&&s.clientY===u.clientY||(r.redrawEventRect(),r.updateZoom(),o.zooming=!1,!c&&(u||o.dragging)&&ro(a.zoom_onzoomend,r.api,r.zoom.getDomain()))},updateZoom:function(t){var e=this,n=e.scale,i=n.subX,r=n.x,a=n.zoom;if(a){var o=a.domain(),s=i.domain(),u=(o[0]<=s[0]||o[0]-.015<=s[0])&&(s[1]<=o[1]||s[1]<=o[1]-.015);(t||u)&&(e.axis.x.scale(i),r.domain(i.orgDomain()),e.scale.zoom=null)}},bindZoomOnEventRect:function(){var t=this,e=this,n=e.config,i=e.$el.eventRect,r="drag"===n.zoom_type?e.zoomBehaviour:e.zoom;e.$el.svg.on("wheel",function(){a(this,t)}.bind(this)),i.call(r).on("dblclick.zoom",null)},initZoomBehaviour:function(){var t,e=this,n=this,i=n.config,r=n.state,o=i.axis_rotated,s=0,u=0,c={axis:o?"y":"x",attr:o?"height":"width",index:o?1:0};n.zoomBehaviour=fu().clickDistance(4).on("start",(function(e){r.event=e,n.setDragStatus(!0),n.unselectRect(),t||(t=n.$el.main.append("rect").attr("clip-path",r.clip.path).attr("class",rs.zoomBrush).attr("width",o?r.width:0).attr("height",o?0:r.height)),s=co(e,this)[c.index],u=s,t.attr(c.axis,s).attr(c.attr,0),n.onZoomStart(e)})).on("drag",(function(e){u=co(e,this)[c.index],t.attr(c.axis,Math.min(s,u)).attr(c.attr,Math.abs(u-s))})).on("end",function(i){var o=this;a(this,e);var l=n.scale.zoom||n.scale.x;if(r.event=i,t.attr(c.axis,0).attr(c.attr,0),s>u){var h=[u,s];s=h[0],u=h[1]}s<0&&(u+=Math.abs(s),s=0),s!==u&&n.api.zoom([s,u].map(function(t){return a(this,o),l.invert(t)}.bind(this))),n.setDragStatus(!1)}.bind(this))},setZoomResetButton:function(){var t=this,e=t.config,n=t.$el,i=e.zoom_resetButton;i&&"drag"===e.zoom_type&&(n.zoomResetBtn?n.zoomResetBtn.style("display",null):n.zoomResetBtn=t.$el.chart.append("div").classed(Po.button,!0).append("span").on("click",(function(){Ua(i.onclick)&&i.onclick.bind(t.api)(this),t.api.unzoom()})).classed(rs.buttonZoomReset,!0).text(i.text||"Reset Zoom"))}},Cg=void 0,Ig={data_selection_enabled:!1,data_selection_grouped:!1,data_selection_isselectable:function(){return a(this,Cg),!0}.bind(void 0),data_selection_multiple:!0,data_selection_draggable:!1,data_onselected:function(){a(this,Cg)}.bind(void 0),data_onunselected:function(){a(this,Cg)}.bind(void 0)},Lg={subchart_show:!1,subchart_showHandle:!1,subchart_size_height:60,subchart_axis_x_show:!0,subchart_axis_x_tick_show:!0,subchart_axis_x_tick_format:void 0,subchart_axis_x_tick_text_show:!0,subchart_init_range:void 0,subchart_onbrush:function(){a(this,undefined)}.bind(void 0)},Pg={zoom_enabled:!1,zoom_type:"wheel",zoom_extent:void 0,zoom_privileged:!1,zoom_rescale:!1,zoom_onzoom:void 0,zoom_onzoomstart:void 0,zoom_onzoomend:void 0,zoom_resetButton:!0,zoom_x_min:void 0,zoom_x_max:void 0},Dg=void 0,Ng=function(){var t=this;return a(this,Dg),vo(Ph.prototype,Mg),vo(Hh.prototype,og),_s.setOptions([Ig]),(Ng=function(){return a(this,t),!0}.bind(this))()}.bind(void 0),zg=function(){var t=this;return a(this,Dg),vo(Ph.prototype,Og),vo(Hh.prototype,sg),_s.setOptions([Lg]),(zg=function(){return a(this,t),!0}.bind(this))()}.bind(void 0),Fg=function(){var t=this;return a(this,Dg),vo(Ph.prototype,Rg),vo(Hh.prototype,Ag),_s.setOptions([Pg]),(Fg=function(){return a(this,t),!0}.bind(this))()}.bind(void 0),jg={},Bg={version:"3.6.3",generate:function(t){var e=wo({},jg,t),n=new Hh(e);return n.internal.charts=this.instance,this.instance.push(n),n},defaults:function(t){return no(t)&&(jg=t),jg},instance:[],plugin:{}},Xg=void 0;Object.keys(i).forEach(function(t){return a(this,Xg),i[t]()}.bind(void 0)),Object.keys(r).forEach(function(t){return a(this,Xg),r[t]()}.bind(void 0))},function(t,e,n){var i=n(504)();t.exports=i;try{regeneratorRuntime=i}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}},function(t,e,n){var i=n(505).default;function r(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=r=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(t){h=function(t,e,n){return t[e]=n}}function f(t,e,n,i){var r=e&&e.prototype instanceof p?e:p,a=Object.create(r.prototype),s=new M(i||[]);return o(a,"_invoke",{value:A(t,n,s)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var g={};function p(){}function v(){}function y(){}var x={};h(x,u,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b(O([])));_&&_!==n&&a.call(_,u)&&(x=_);var m=y.prototype=p.prototype=Object.create(x);function w(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function n(r,o,s,u){var c=d(t[r],t,o);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==i(h)&&a.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,s,u)}),(function(t){n("throw",t,s,u)})):e.resolve(h).then((function(t){l.value=t,s(l)}),(function(t){return n("throw",t,s,u)}))}u(c.arg)}var r;o(this,"_invoke",{value:function(t,i){function a(){return new e((function(e,r){n(t,i,e,r)}))}return r=r?r.then(a,a):a()}})}function A(t,e,n){var i="suspendedStart";return function(r,a){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw a;return R()}for(n.method=r,n.arg=a;;){var o=n.delegate;if(o){var s=S(o,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var u=d(t,e,n);if("normal"===u.type){if(i=n.done?"completed":"suspendedYield",u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i="completed",n.method="throw",n.arg=u.arg)}}}function S(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method))return g;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=d(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,g;var r=i.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,g):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function O(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(a.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:R}}function R(){return{value:void 0,done:!0}}return v.prototype=y,o(m,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=h(y,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,h(t,l,"GeneratorFunction")),t.prototype=Object.create(m),t},e.awrap=function(t){return{__await:t}},w(T.prototype),h(T.prototype,c,(function(){return this})),e.AsyncIterator=T,e.async=function(t,n,i,r,a){void 0===a&&(a=Promise);var o=new T(f(t,n,i,r),a);return e.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},w(m),h(m,l,"Generator"),h(m,u,(function(){return this})),h(m,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=O,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&a.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,i){return o.type="throw",o.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],o=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var s=a.call(r,"catchLoc"),u=a.call(r,"finallyLoc");if(s&&u){if(this.prev<r.catchLoc)return n(r.catchLoc,!0);if(this.prev<r.finallyLoc)return n(r.finallyLoc)}else if(s){if(this.prev<r.catchLoc)return n(r.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return n(r.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=t,o.arg=e,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;k(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:O(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),g}},e}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}],e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var a=e[i]={exports:{}};return t[i](a,a.exports,n),a.exports}return n.d=function(t,e){for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n(0),n(502)}()}));
\No newline at end of file