billboard.js 3.9.3 → 3.10.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/billboard.css +2 -2
- package/dist/billboard.js +2687 -2541
- package/dist/billboard.min.css +2 -2
- package/dist/billboard.min.js +2 -2
- package/dist/billboard.pkgd.js +3493 -3331
- package/dist/billboard.pkgd.min.js +4 -4
- package/dist/plugin/billboardjs-plugin-bubblecompare.js +15 -15
- package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.js +215 -196
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.js +244 -239
- package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.js +184 -164
- package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.js +170 -151
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
- package/dist/plugin/pkgd/{billboardjs-plugin-bubblecompare.js → billboardjs-plugin-bubblecompare.pkgd.js} +664 -634
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +12 -0
- package/dist/plugin/pkgd/{billboardjs-plugin-sparkline.js → billboardjs-plugin-sparkline.pkgd.js} +861 -812
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +12 -0
- package/dist/plugin/pkgd/{billboardjs-plugin-stanford.js → billboardjs-plugin-stanford.pkgd.js} +926 -892
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +12 -0
- package/dist/plugin/pkgd/{billboardjs-plugin-tableview.js → billboardjs-plugin-tableview.pkgd.js} +830 -780
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +12 -0
- package/dist/plugin/pkgd/{billboardjs-plugin-textoverlap.js → billboardjs-plugin-textoverlap.pkgd.js} +929 -889
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +12 -0
- package/dist/theme/dark.css +5 -4
- package/dist/theme/dark.min.css +2 -2
- package/dist/theme/datalab.css +5 -4
- package/dist/theme/datalab.min.css +2 -2
- package/dist/theme/graph.css +5 -4
- package/dist/theme/graph.min.css +2 -2
- package/dist/theme/insight.css +5 -4
- package/dist/theme/insight.min.css +2 -2
- package/dist-esm/billboard.js +591 -462
- package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +3 -3
- package/dist-esm/plugin/billboardjs-plugin-sparkline.js +13 -7
- package/dist-esm/plugin/billboardjs-plugin-stanford.js +21 -28
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +17 -11
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +13 -7
- package/package.json +27 -27
- package/src/Chart/api/axis.ts +4 -0
- package/src/Chart/api/category.ts +8 -4
- package/src/Chart/api/export.ts +1 -2
- package/src/Chart/api/subchart.ts +162 -89
- package/src/Chart/api/zoom.ts +69 -79
- package/src/ChartInternal/Axis/AxisRendererHelper.ts +0 -8
- package/src/ChartInternal/data/IData.ts +4 -1
- package/src/ChartInternal/data/convert.helper.ts +1 -15
- package/src/ChartInternal/data/data.ts +8 -2
- package/src/ChartInternal/interactions/eventrect.ts +0 -1
- package/src/ChartInternal/interactions/flow.ts +1 -7
- package/src/ChartInternal/interactions/interaction.ts +10 -4
- package/src/ChartInternal/interactions/subchart.ts +36 -30
- package/src/ChartInternal/interactions/zoom.ts +13 -3
- package/src/ChartInternal/internals/category.ts +2 -2
- package/src/ChartInternal/internals/clip.ts +4 -4
- package/src/ChartInternal/internals/domain.ts +46 -10
- package/src/ChartInternal/internals/grid.ts +57 -86
- package/src/ChartInternal/internals/redraw.ts +0 -5
- package/src/ChartInternal/internals/region.ts +35 -12
- package/src/ChartInternal/internals/text.ts +1 -26
- package/src/ChartInternal/internals/title.ts +10 -48
- package/src/ChartInternal/internals/tooltip.ts +47 -51
- package/src/ChartInternal/shape/arc.ts +2 -2
- package/src/ChartInternal/shape/candlestick.ts +2 -17
- package/src/ChartInternal/shape/shape.ts +50 -4
- package/src/ChartInternal/shape/treemap.ts +2 -2
- package/src/Plugin/bubblecompare/index.ts +1 -1
- package/src/Plugin/stanford/Elements.ts +10 -2
- package/src/Plugin/stanford/index.ts +1 -24
- package/src/Plugin/tableview/index.ts +2 -2
- package/src/config/Options/axis/x.ts +1 -0
- package/src/config/Options/common/main.ts +12 -2
- package/src/config/Options/common/tooltip.ts +10 -10
- package/src/config/Options/data/axis.ts +3 -1
- package/src/config/Options/data/data.ts +10 -2
- package/src/config/Store/State.ts +3 -0
- package/src/module/Cache.ts +7 -5
- package/src/module/browser.ts +34 -14
- package/src/module/util.ts +8 -4
- package/src/module/worker.ts +24 -13
- package/src/scss/billboard.scss +4 -2
- package/src/scss/theme/dark.scss +4 -2
- package/src/scss/theme/datalab.scss +4 -2
- package/src/scss/theme/graph.scss +4 -2
- package/src/scss/theme/insight.scss +4 -2
- package/types/chart.d.ts +11 -0
- package/types/options.d.ts +3 -3
- package/types/types.d.ts +15 -1
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.
|
|
8
|
+
* @version 3.10.0-next.1
|
|
9
9
|
*
|
|
10
10
|
* All-in-one packaged file for ease use of 'billboard.js' with dependant d3.js modules & polyfills.
|
|
11
|
-
* - @types/d3-selection ^3.0.
|
|
12
|
-
* - @types/d3-transition ^3.0.
|
|
11
|
+
* - @types/d3-selection ^3.0.6
|
|
12
|
+
* - @types/d3-transition ^3.0.4
|
|
13
13
|
* - d3-axis ^3.0.0
|
|
14
14
|
* - d3-brush ^3.0.0
|
|
15
15
|
* - d3-drag ^3.0.0
|
|
@@ -24,4 +24,4 @@
|
|
|
24
24
|
* - d3-transition ^3.0.1
|
|
25
25
|
* - d3-zoom ^3.0.0
|
|
26
26
|
*/
|
|
27
|
-
!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){"use strict";n(1),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(113),n(114),n(126),n(128),n(138),n(139),n(141),n(144),n(147),n(149),n(151),n(152),n(153),n(154),n(156),n(157),n(159),n(160),n(162),n(166),n(167),n(168),n(169),n(174),n(175),n(177),n(178),n(179),n(181),n(184),n(185),n(186),n(187),n(188),n(193),n(195),n(196),n(198),n(201),n(202),n(203),n(204),n(205),n(207),n(214),n(216),n(219),n(221),n(222),n(223),n(224),n(225),n(229),n(230),n(232),n(233),n(234),n(236),n(237),n(238),n(95),n(239),n(240),n(248),n(250),n(251),n(252),n(254),n(255),n(257),n(258),n(260),n(261),n(262),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(275),n(276),n(278),n(280),n(281),n(282),n(283),n(284),n(286),n(288),n(289),n(290),n(291),n(293),n(294),n(296),n(297),n(298),n(299),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(322),n(323),n(324),n(325),n(348),n(349),n(350),n(351),n(352),n(353),n(354),n(355),n(357),n(358),n(359),n(360),n(361),n(362),n(363),n(364),n(365),n(366),n(373),n(374),n(376),n(377),n(378),n(379),n(380),n(382),n(383),n(385),n(388),n(389),n(390),n(391),n(392),n(396),n(397),n(399),n(400),n(401),n(402),n(404),n(405),n(406),n(407),n(408),n(409),n(410),n(412),n(415),n(418),n(421),n(422),n(423),n(424),n(425),n(426),n(427),n(428),n(429),n(430),n(431),n(432),n(433),n(442),n(443),n(444),n(445),n(446),n(447),n(448),n(449),n(450),n(451),n(452),n(453),n(454),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(469),n(470),n(471),n(472),n(473),n(474),n(475),n(476),n(477),n(478),n(479),n(480),n(481),n(482),n(483),n(484),n(487),n(489),n(491),n(492),n(495),n(496),n(499),n(500),n(501),n(506),n(507),n(508),n(512),n(515),n(520),n(521),n(522),n(523),n(524),n(525),n(82)},function(t,e,n){"use strict";n(2),n(92),n(94),n(95),n(99)},function(t,e,n){"use strict";var i=n(3),r=n(4),a=n(8),o=n(14),s=n(36),u=n(6),c=n(27),l=n(7),h=n(39),f=n(25),d=n(47),g=n(12),p=n(18),v=n(69),y=n(11),x=n(72),b=n(74),m=n(58),_=n(76),T=n(67),w=n(5),A=n(45),S=n(73),E=n(10),k=n(48),O=n(79),M=n(35),R=n(54),C=n(55),I=n(41),P=n(34),L=n(80),D=n(81),N=n(83),F=n(84),z=n(52),j=n(85).forEach,B=R("hidden"),$="Symbol",X="prototype",U=z.set,Y=z.getterFor($),V=Object[X],G=r.Symbol,H=G&&G[X],W=r.TypeError,q=r.QObject,Z=w.f,K=A.f,J=_.f,Q=E.f,tt=o([].push),et=M("symbols"),nt=M("op-symbols"),it=M("wks"),rt=!q||!q[X]||!q[X].findChild,at=u&&l((function(){return 7!=x(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(t,e,n){var i=Z(V,e);i&&delete V[e],K(t,e,n),i&&t!==V&&K(V,e,i)}:K,ot=function(t,e){var n=et[t]=x(H);return U(n,{type:$,tag:t,description:e}),u||(n.description=e),n},st=function(t,e,n){t===V&&st(nt,e,n),d(t);var i=p(e);return d(n),h(et,i)?(n.enumerable?(h(t,B)&&t[B][i]&&(t[B][i]=!1),n=x(n,{enumerable:y(0,!1)})):(h(t,B)||K(t,B,y(1,{})),t[B][i]=!0),at(t,i,n)):K(t,i,n)},ut=function(t,e){d(t);var n=g(e),i=b(n).concat(ft(n));return j(i,(function(e){u&&!a(ct,n,e)||st(t,e,n[e])})),t},ct=function(t){var e=p(t),n=a(Q,this,e);return!(this===V&&h(et,e)&&!h(nt,e))&&(!(n||!h(this,e)||!h(et,e)||h(this,B)&&this[B][e])||n)},lt=function(t,e){var n=g(t),i=p(e);if(n!==V||!h(et,i)||h(nt,i)){var r=Z(n,i);return!r||!h(et,i)||h(n,B)&&n[B][i]||(r.enumerable=!0),r}},ht=function(t){var e=J(g(t)),n=[];return j(e,(function(t){h(et,t)||h(C,t)||tt(n,t)})),n},ft=function(t){var e=t===V,n=J(e?nt:g(t)),i=[];return j(n,(function(t){!h(et,t)||e&&!h(V,t)||tt(i,et[t])})),i};c||(G=function(){if(f(H,this))throw W("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,e=I(t),n=function(t){this===V&&a(n,nt,t),h(this,B)&&h(this[B],e)&&(this[B][e]=!1),at(this,e,y(1,t))};return u&&rt&&at(V,e,{configurable:!0,set:n}),ot(e,t)},k(H=G[X],"toString",(function(){return Y(this).tag})),k(G,"withoutSetter",(function(t){return ot(I(t),t)})),E.f=ct,A.f=st,S.f=ut,w.f=lt,m.f=_.f=ht,T.f=ft,L.f=function(t){return ot(P(t),t)},u&&(O(H,"description",{configurable:!0,get:function(){return Y(this).description}}),s||k(V,"propertyIsEnumerable",ct,{unsafe:!0}))),i({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:G}),j(b(it),(function(t){D(t)})),i({target:$,stat:!0,forced:!c},{useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),i({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(t,e){return void 0===e?x(t):ut(x(t),e)},defineProperty:st,defineProperties:ut,getOwnPropertyDescriptor:lt}),i({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ht}),N(),F(G,$),C[B]=!0},function(t,e,n){"use strict";var i=n(4),r=n(5).f,a=n(44),o=n(48),s=n(38),u=n(56),c=n(68);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){"use strict";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}()||this||Function("return this")()},function(t,e,n){"use strict";var i=n(6),r=n(8),a=n(10),o=n(11),s=n(12),u=n(18),c=n(39),l=n(42),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){"use strict";var i=n(7);t.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";var i=n(9),r=Function.prototype.call;t.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},function(t,e,n){"use strict";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){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";var i=n(13),r=n(16);t.exports=function(t){return i(r(t))}},function(t,e,n){"use strict";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){"use strict";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){"use strict";var i=n(14),r=i({}.toString),a=i("".slice);t.exports=function(t){return a(r(t),8,-1)}},function(t,e,n){"use strict";var i=n(17),r=TypeError;t.exports=function(t){if(i(t))throw r("Can't call method on "+t);return t}},function(t){"use strict";t.exports=function(t){return null==t}},function(t,e,n){"use strict";var i=n(19),r=n(23);t.exports=function(t){var e=i(t,"string");return r(e)?e:e+""}},function(t,e,n){"use strict";var i=n(8),r=n(20),a=n(23),o=n(30),s=n(33),u=n(34),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){"use strict";var i=n(21),r=n(22),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){"use strict";var i=n(22),r=i.all;t.exports=i.IS_HTMLDDA?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},function(t){"use strict";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){"use strict";var i=n(24),r=n(21),a=n(25),o=n(26),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){"use strict";var i=n(4),r=n(21);t.exports=function(t,e){return arguments.length<2?(n=i[t],r(n)?n:void 0):i[t]&&i[t][e];var n}},function(t,e,n){"use strict";var i=n(14);t.exports=i({}.isPrototypeOf)},function(t,e,n){"use strict";var i=n(27);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){"use strict";var i=n(28),r=n(7),a=n(4).String;t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol();return!a(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},function(t,e,n){"use strict";var i,r,a=n(4),o=n(29),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){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},function(t,e,n){"use strict";var i=n(31),r=n(17);t.exports=function(t,e){var n=t[e];return r(n)?void 0:i(n)}},function(t,e,n){"use strict";var i=n(21),r=n(32),a=TypeError;t.exports=function(t){if(i(t))return t;throw a(r(t)+" is not a function")}},function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},function(t,e,n){"use strict";var i=n(8),r=n(21),a=n(20),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){"use strict";var i=n(4),r=n(35),a=n(39),o=n(41),s=n(27),u=n(26),c=i.Symbol,l=r("wks"),h=u?c.for||c:c&&c.withoutSetter||o;t.exports=function(t){return a(l,t)||(l[t]=s&&a(c,t)?c[t]:h("Symbol."+t)),l[t]}},function(t,e,n){"use strict";var i=n(36),r=n(37);(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.32.0",mode:i?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.0/LICENSE",source:"https://github.com/zloirock/core-js"})},function(t){"use strict";t.exports=!1},function(t,e,n){"use strict";var i=n(4),r=n(38),a="__core-js_shared__",o=i[a]||r(a,{});t.exports=o},function(t,e,n){"use strict";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){"use strict";var i=n(14),r=n(40),a=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return a(r(t),e)}},function(t,e,n){"use strict";var i=n(16),r=Object;t.exports=function(t){return r(i(t))}},function(t,e,n){"use strict";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){"use strict";var i=n(6),r=n(7),a=n(43);t.exports=!i&&!r((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){"use strict";var i=n(4),r=n(20),a=i.document,o=r(a)&&r(a.createElement);t.exports=function(t){return o?a.createElement(t):{}}},function(t,e,n){"use strict";var i=n(6),r=n(45),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){"use strict";var i=n(6),r=n(42),a=n(46),o=n(47),s=n(18),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[d]){var i=l(t,e);i&&i[d]&&(t[e]=n.value,n={configurable:f in n?n[f]:i[f],enumerable:h in n?n[h]:i[h],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){"use strict";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){"use strict";var i=n(20),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){"use strict";var i=n(21),r=n(45),a=n(49),o=n(38);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){"use strict";var i=n(14),r=n(7),a=n(21),o=n(39),s=n(6),u=n(50).CONFIGURABLE,c=n(51),l=n(52),h=l.enforce,f=l.get,d=String,g=Object.defineProperty,p=i("".slice),v=i("".replace),y=i([].join),x=s&&!r((function(){return 8!==g((function(){}),"length",{value:8}).length})),b=String(String).split("String"),m=t.exports=function(t,e,n){"Symbol("===p(d(e),0,7)&&(e="["+v(d(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!o(t,"name")||u&&t.name!==e)&&(s?g(t,"name",{value:e,configurable:!0}):t.name=e),x&&n&&o(n,"arity")&&t.length!==n.arity&&g(t,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?s&&g(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var i=h(t);return o(i,"source")||(i.source=y(b,"string"==typeof e?e:"")),t};Function.prototype.toString=m((function(){return a(this)&&f(this).source||c(this)}),"toString")},function(t,e,n){"use strict";var i=n(6),r=n(39),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){"use strict";var i=n(14),r=n(21),a=n(37),o=i(Function.toString);r(a.inspectSource)||(a.inspectSource=function(t){return o(t)}),t.exports=a.inspectSource},function(t,e,n){"use strict";var i,r,a,o=n(53),s=n(4),u=n(20),c=n(44),l=n(39),h=n(37),f=n(54),d=n(55),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){"use strict";var i=n(4),r=n(21),a=i.WeakMap;t.exports=r(a)&&/native code/.test(String(a))},function(t,e,n){"use strict";var i=n(35),r=n(41),a=i("keys");t.exports=function(t){return a[t]||(a[t]=r(t))}},function(t){"use strict";t.exports={}},function(t,e,n){"use strict";var i=n(39),r=n(57),a=n(5),o=n(45);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){"use strict";var i=n(24),r=n(14),a=n(58),o=n(67),s=n(47),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){"use strict";var i=n(59),r=n(66).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},function(t,e,n){"use strict";var i=n(14),r=n(39),a=n(12),o=n(60).indexOf,s=n(55),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){"use strict";var i=n(12),r=n(61),a=n(64),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){"use strict";var i=n(62),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){"use strict";var i=n(63);t.exports=function(t){var e=+t;return e!=e||0===e?0:i(e)}},function(t){"use strict";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){"use strict";var i=n(65);t.exports=function(t){return i(t.length)}},function(t,e,n){"use strict";var i=n(62),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},function(t,e,n){"use strict";var i=n(7),r=n(21),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){"use strict";var i=n(70),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){"use strict";var i=n(71),r=n(21),a=n(15),o=n(34)("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){"use strict";var i={};i[n(34)("toStringTag")]="z",t.exports="[object z]"===String(i)},function(t,e,n){"use strict";var i,r=n(47),a=n(73),o=n(66),s=n(55),u=n(75),c=n(43),l=n(54),h="prototype",f="script",d=l("IE_PROTO"),g=function(){},p=function(t){return"<"+f+">"+t+"</"+f+">"},v=function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;y="undefined"!=typeof document?document.domain&&i?v(i):(e=c("iframe"),n="java"+f+":",e.style.display="none",u.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F):v(i);for(var r=o.length;r--;)delete y[h][o[r]];return y()};s[d]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(g[h]=r(t),n=new g,g[h]=null,n[d]=t):n=y(),void 0===e?n:a.f(n,e)}},function(t,e,n){"use strict";var i=n(6),r=n(46),a=n(45),o=n(47),s=n(12),u=n(74);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){"use strict";var i=n(59),r=n(66);t.exports=Object.keys||function(t){return i(t,r)}},function(t,e,n){"use strict";var i=n(24);t.exports=i("document","documentElement")},function(t,e,n){"use strict";var i=n(15),r=n(12),a=n(58).f,o=n(77),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){"use strict";var i=n(61),r=n(64),a=n(78),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(18),r=n(45),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){"use strict";var i=n(49),r=n(45);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){"use strict";var i=n(34);e.f=i},function(t,e,n){"use strict";var i=n(82),r=n(39),a=n(80),o=n(45).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){"use strict";var i=n(4);t.exports=i},function(t,e,n){"use strict";var i=n(8),r=n(24),a=n(34),o=n(48);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){"use strict";var i=n(45).f,r=n(39),a=n(34)("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){"use strict";var i=n(86),r=n(14),a=n(13),o=n(40),s=n(64),u=n(88),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,m=o(g),_=a(m),T=i(p,v),w=s(_),A=0,S=y||u,E=e?S(g,w):n||f?S(g,0):void 0;w>A;A++)if((d||A in _)&&(b=T(x=_[A],A,m),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){"use strict";var i=n(87),r=n(31),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){"use strict";var i=n(15),r=n(14);t.exports=function(t){if("Function"===i(t))return r(t)}},function(t,e,n){"use strict";var i=n(89);t.exports=function(t,e){return new(i(t))(0===e?0:e)}},function(t,e,n){"use strict";var i=n(90),r=n(91),a=n(20),o=n(34)("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){"use strict";var i=n(15);t.exports=Array.isArray||function(t){return"Array"==i(t)}},function(t,e,n){"use strict";var i=n(14),r=n(7),a=n(21),o=n(70),s=n(24),u=n(51),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){"use strict";var i=n(3),r=n(24),a=n(39),o=n(69),s=n(35),u=n(93),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){"use strict";var i=n(27);t.exports=i&&!!Symbol.for&&!!Symbol.keyFor},function(t,e,n){"use strict";var i=n(3),r=n(39),a=n(23),o=n(32),s=n(35),u=n(93),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){"use strict";var i=n(3),r=n(24),a=n(96),o=n(8),s=n(14),u=n(7),c=n(21),l=n(23),h=n(97),f=n(98),d=n(27),g=String,p=r("JSON","stringify"),v=s(/./.exec),y=s("".charAt),x=s("".charCodeAt),b=s("".replace),m=s(1..toString),_=/[\uD800-\uDFFF]/g,T=/^[\uD800-\uDBFF]$/,w=/^[\uDC00-\uDFFF]$/,A=!d||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=h(arguments),i=f(e);if(c(i)||void 0!==t&&!l(t))return n[1]=function(t,e){if(c(i)&&(e=o(i,this,g(t),e)),!l(e))return e},a(p,null,n)},k=function(t,e,n){var i=y(n,e-1),r=y(n,e+1);return v(T,t)&&!v(w,r)||v(w,t)&&!v(T,i)?"\\u"+m(x(t,0),16):t};p&&i({target:"JSON",stat:!0,arity:3,forced:A||S},{stringify:function(t,e,n){var i=h(arguments),r=a(A?E:p,null,i);return S&&"string"==typeof r?b(r,_,k):r}})},function(t,e,n){"use strict";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){"use strict";var i=n(14);t.exports=i([].slice)},function(t,e,n){"use strict";var i=n(14),r=n(90),a=n(21),o=n(15),s=n(69),u=i([].push);t.exports=function(t){if(a(t))return t;if(r(t)){for(var e=t.length,n=[],i=0;i<e;i++){var c=t[i];"string"==typeof c?u(n,c):"number"!=typeof c&&"Number"!=o(c)&&"String"!=o(c)||u(n,s(c))}var l=n.length,h=!0;return function(t,e){if(h)return h=!1,e;if(r(this))return e;for(var i=0;i<l;i++)if(n[i]===t)return e}}}},function(t,e,n){"use strict";var i=n(3),r=n(27),a=n(7),o=n(67),s=n(40);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(39),u=n(21),c=n(25),l=n(69),h=n(79),f=n(56),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),m=/^Symbol\((.*)\)[^)]+$/,_=o("".replace),T=o("".slice);h(g,"description",{configurable:!0,get:function(){var t=x(this);if(s(p,t))return"";var e=b(t),n=y?T(e,7,-1):_(e,m,"$1");return""===n?void 0:n}}),i({global:!0,constructor:!0,forced:!0},{Symbol:v})}},function(t,e,n){"use strict";n(81)("asyncIterator")},function(t,e,n){"use strict";n(81)("hasInstance")},function(t,e,n){"use strict";n(81)("isConcatSpreadable")},function(t,e,n){"use strict";n(81)("iterator")},function(t,e,n){"use strict";n(81)("match")},function(t,e,n){"use strict";n(81)("matchAll")},function(t,e,n){"use strict";n(81)("replace")},function(t,e,n){"use strict";n(81)("search")},function(t,e,n){"use strict";n(81)("species")},function(t,e,n){"use strict";n(81)("split")},function(t,e,n){"use strict";var i=n(81),r=n(83);i("toPrimitive"),r()},function(t,e,n){"use strict";var i=n(24),r=n(81),a=n(84);r("toStringTag"),a(i("Symbol"),"Symbol")},function(t,e,n){"use strict";n(81)("unscopables")},function(t,e,n){"use strict";var i=n(3),r=n(4),a=n(96),o=n(115),s="WebAssembly",u=r[s],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(s+"."+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(24),r=n(39),a=n(44),o=n(25),s=n(116),u=n(56),c=n(119),l=n(120),h=n(121),f=n(122),d=n(123),g=n(6),p=n(36);t.exports=function(t,e,n,v){var y="stackTraceLimit",x=v?2:1,b=t.split("."),m=b[b.length-1],_=i.apply(null,b);if(_){var T=_.prototype;if(!p&&r(T,"cause")&&delete T.cause,!n)return _;var w=i("Error"),A=e((function(t,e){var n=h(v?e:t,void 0),i=v?new _(t):new _;return void 0!==n&&a(i,"message",n),d(i,A,i.stack,2),this&&o(T,this)&&l(i,this,A),arguments.length>x&&f(i,arguments[x]),i}));if(A.prototype=T,"Error"!==m?s?s(A,w):u(A,w,{name:!0}):g&&y in _&&(c(A,_,y),c(A,_,"prepareStackTrace")),u(A,_),!p)try{T.name!==m&&a(T,"name",m),T.constructor=A}catch(t){}return A}}},function(t,e,n){"use strict";var i=n(117),r=n(47),a=n(118);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=i(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){"use strict";var i=n(14),r=n(31);t.exports=function(t,e,n){try{return i(r(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}},function(t,e,n){"use strict";var i=n(21),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){"use strict";var i=n(45).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){"use strict";var i=n(21),r=n(20),a=n(116);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){"use strict";var i=n(69);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:i(t)}},function(t,e,n){"use strict";var i=n(20),r=n(44);t.exports=function(t,e){i(e)&&"cause"in e&&r(t,"cause",e.cause)}},function(t,e,n){"use strict";var i=n(44),r=n(124),a=n(125),o=Error.captureStackTrace;t.exports=function(t,e,n,s){a&&(o?o(t,e):i(t,"stack",r(n,s)))}},function(t,e,n){"use strict";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){"use strict";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){"use strict";var i=n(48),r=n(127),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(47),o=n(72),s=n(121),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){"use strict";n(129)},function(t,e,n){"use strict";var i=n(3),r=n(25),a=n(130),o=n(116),s=n(56),u=n(72),c=n(44),l=n(11),h=n(122),f=n(123),d=n(132),g=n(121),p=n(34)("toStringTag"),v=Error,y=[].push,x=function(t,e){var n,i=r(b,this);o?n=o(v(),i?a(this):b):(n=i?this:u(b),c(n,p,"Error")),void 0!==e&&c(n,"message",g(e)),f(n,x,n.stack,1),arguments.length>2&&h(n,arguments[2]);var s=[];return d(t,y,{that:s}),c(n,"errors",s),n};o?o(x,v):s(x,v,{name:!0});var b=x.prototype=u(v.prototype,{constructor:l(1,x),message:l(1,""),name:l(1,"AggregateError")});i({global:!0,constructor:!0,arity:2},{AggregateError:x})},function(t,e,n){"use strict";var i=n(39),r=n(21),a=n(40),o=n(54),s=n(131),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){"use strict";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){"use strict";var i=n(86),r=n(8),a=n(47),o=n(32),s=n(133),u=n(64),c=n(25),l=n(135),h=n(136),f=n(137),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,_,T,w=n&&n.that,A=!(!n||!n.AS_ENTRIES),S=!(!n||!n.IS_RECORD),E=!(!n||!n.IS_ITERATOR),k=!(!n||!n.INTERRUPTED),O=i(e,w),M=function(t){return v&&f(v,"normal",t),new g(!0,t)},R=function(t){return A?(a(t),k?O(t[0],t[1],M):O(t[0],t[1])):k?O(t,M):O(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((m=R(t[x]))&&c(p,m))return m;return new g(!1)}v=l(t,y)}for(_=S?t.next:v.next;!(T=r(_,v)).done;){try{m=R(T.value)}catch(t){f(v,"throw",t)}if("object"==typeof m&&m&&c(p,m))return m}return new g(!1)}},function(t,e,n){"use strict";var i=n(34),r=n(134),a=i("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[a]===t)}},function(t){"use strict";t.exports={}},function(t,e,n){"use strict";var i=n(8),r=n(31),a=n(47),o=n(32),s=n(136),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){"use strict";var i=n(70),r=n(30),a=n(17),o=n(134),s=n(34)("iterator");t.exports=function(t){if(!a(t))return r(t,s)||r(t,"@@iterator")||o[i(t)]}},function(t,e,n){"use strict";var i=n(8),r=n(47),a=n(30);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){"use strict";var i=n(3),r=n(24),a=n(96),o=n(7),s=n(115),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(40),a=n(64),o=n(62),s=n(140);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){"use strict";var i=n(34),r=n(72),a=n(45).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(90),o=n(20),s=n(40),u=n(64),c=n(142),l=n(78),h=n(88),f=n(143),d=n(34),g=n(28),p=d("isConcatSpreadable"),v=g>=51||!r((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),y=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||!f("concat")},{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(y(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){"use strict";var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},function(t,e,n){"use strict";var i=n(7),r=n(34),a=n(28),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){"use strict";var i=n(3),r=n(145),a=n(140);i({target:"Array",proto:!0},{copyWithin:r}),a("copyWithin")},function(t,e,n){"use strict";var i=n(40),r=n(61),a=n(64),o=n(146),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(32),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(148)("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){"use strict";var i=n(3),r=n(150),a=n(140);i({target:"Array",proto:!0},{fill:r}),a("fill")},function(t,e,n){"use strict";var i=n(40),r=n(61),a=n(64);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(143)("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(140),o="find",s=!0;o in[]&&Array(1)[o]((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(140),o="findIndex",s=!0;o in[]&&Array(1)[o]((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(155).findLast,a=n(140);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){"use strict";var i=n(86),r=n(13),a=n(40),o=n(64),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(155).findLastIndex,a=n(140);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(158),a=n(40),o=n(64),s=n(62),u=n(88);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(90),r=n(64),a=n(142),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(158),a=n(31),o=n(40),s=n(64),u=n(88);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(161);i({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},function(t,e,n){"use strict";var i=n(85).forEach,r=n(148)("forEach");t.exports=r?[].forEach:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,n){"use strict";var i=n(3),r=n(163);i({target:"Array",stat:!0,forced:!n(165)((function(t){Array.from(t)}))},{from:r})},function(t,e,n){"use strict";var i=n(86),r=n(8),a=n(40),o=n(164),s=n(133),u=n(91),c=n(64),l=n(78),h=n(135),f=n(136),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,_,T,w=f(e),A=0;if(!w||this===d&&s(w))for(y=c(e),x=n?new this(y):d(y);y>A;A++)T=v?p(e[A],A):e[A],l(x,A,T);else for(_=(m=h(e,w)).next,x=n?new this:[];!(b=r(_,m)).done;A++)T=v?o(m,p,[b.value,A],!0):b.value,l(x,A,T);return x.length=A,x}},function(t,e,n){"use strict";var i=n(47),r=n(137);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){"use strict";var i=n(34)("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(60).includes,a=n(7),o=n(140);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(87),a=n(60).indexOf,o=n(148),s=r([].indexOf),u=!!s&&1/s([1],1,-0)<0;i({target:"Array",proto:!0,forced:u||!o("indexOf")},{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){"use strict";n(3)({target:"Array",stat:!0},{isArray:n(90)})},function(t,e,n){"use strict";var i=n(12),r=n(140),a=n(134),o=n(52),s=n(45).f,u=n(170),c=n(173),l=n(36),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(36),o=n(50),s=n(21),u=n(171),c=n(130),l=n(116),h=n(84),f=n(44),d=n(48),g=n(34),p=n(134),v=n(172),y=o.PROPER,x=o.CONFIGURABLE,b=v.IteratorPrototype,m=v.BUGGY_SAFARI_ITERATORS,_=g("iterator"),T="keys",w="values",A="entries",S=function(){return this};t.exports=function(t,e,n,o,g,v,E){u(n,e,o);var k,O,M,R=function(t){if(t===g&&D)return D;if(!m&&t in P)return P[t];switch(t){case T:case w:case A:return function(){return new n(this,t)}}return function(){return new n(this)}},C=e+" Iterator",I=!1,P=t.prototype,L=P[_]||P["@@iterator"]||g&&P[g],D=!m&&L||R(g),N="Array"==e&&P.entries||L;if(N&&(k=c(N.call(new t)))!==Object.prototype&&k.next&&(a||c(k)===b||(l?l(k,b):s(k[_])||d(k,_,S)),h(k,C,!0,!0),a&&(p[C]=S)),y&&g==w&&L&&L.name!==w&&(!a&&x?f(P,"name",w):(I=!0,D=function(){return r(L,this)})),g)if(O={values:R(w),keys:v?D:R(T),entries:R(A)},E)for(M in O)(m||I||!(M in P))&&d(P,M,O[M]);else i({target:e,proto:!0,forced:m||I},O);return a&&!E||P[_]===D||d(P,_,D,{name:g}),p[e]=D,O}},function(t,e,n){"use strict";var i=n(172).IteratorPrototype,r=n(72),a=n(11),o=n(84),s=n(134),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(21),u=n(20),c=n(72),l=n(130),h=n(48),f=n(34),d=n(36),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){"use strict";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(148),u=r([].join);i({target:"Array",proto:!0,forced:a!=Object||!s("join",",")},{join:function(t){return u(o(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var i=n(3),r=n(176);i({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r})},function(t,e,n){"use strict";var i=n(96),r=n(12),a=n(62),o=n(64),s=n(148),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(143)("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(91),o=n(78),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(40),a=n(64),o=n(180),s=n(142);i({target:"Array",proto:!0,arity:1,forced:n(7)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{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(90),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(182).left,a=n(148),o=n(28);i({target:"Array",proto:!0,forced:!n(183)&&o>79&&o<83||!a("reduce")},{reduce:function(t){var e=arguments.length;return r(this,t,e,e>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var i=n(31),r=n(40),a=n(13),o=n(64),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){"use strict";var i=n(15);t.exports="undefined"!=typeof process&&"process"==i(process)},function(t,e,n){"use strict";var i=n(3),r=n(182).right,a=n(148),o=n(28);i({target:"Array",proto:!0,forced:!n(183)&&o>79&&o<83||!a("reduceRight")},{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(90),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(90),a=n(91),o=n(20),s=n(61),u=n(64),c=n(12),l=n(78),h=n(34),f=n(143),d=n(97),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(148)("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(31),o=n(40),s=n(64),u=n(146),c=n(69),l=n(7),h=n(189),f=n(148),d=n(190),g=n(191),p=n(28),v=n(192),y=[],x=r(y.sort),b=r(y.push),m=l((function(){y.sort(void 0)})),_=l((function(){y.sort(null)})),T=f("sort"),w=!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||!_||!T||!w},{sort:function(t){void 0!==t&&a(t);var e=o(this);if(w)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){"use strict";var i=n(77),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){"use strict";var i=n(29).match(/firefox\/(\d+)/i);t.exports=!!i&&+i[1]},function(t,e,n){"use strict";var i=n(29);t.exports=/MSIE|Trident/.test(i)},function(t,e,n){"use strict";var i=n(29).match(/AppleWebKit\/(\d+)\./);t.exports=!!i&&+i[1]},function(t,e,n){"use strict";n(194)("Array")},function(t,e,n){"use strict";var i=n(24),r=n(79),a=n(34),o=n(6),s=a("species");t.exports=function(t){var e=i(t);o&&e&&!e[s]&&r(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,n){"use strict";var i=n(3),r=n(40),a=n(61),o=n(62),s=n(64),u=n(180),c=n(142),l=n(88),h=n(78),f=n(146),d=n(143)("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),m=s(b),_=a(t,m),T=arguments.length;for(0===T?n=i=0:1===T?(n=0,i=m-_):(n=T-2,i=p(g(o(e),0),m-_)),c(m+n-i),d=l(b,i),v=0;v<i;v++)(y=_+v)in b&&h(d,v,b[y]);if(d.length=i,n<i){for(v=_;v<m-i;v++)x=v+n,(y=v+i)in b?b[x]=b[y]:f(b,x);for(v=m;v>m-i+n;v--)f(b,v-1)}else if(n>i)for(v=m-i;v>_;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+_]=arguments[v+2];return u(b,m-i+n),d}})},function(t,e,n){"use strict";var i=n(3),r=n(197),a=n(12),o=n(140),s=Array;i({target:"Array",proto:!0},{toReversed:function(){return r(a(this),s)}}),o("toReversed")},function(t,e,n){"use strict";var i=n(64);t.exports=function(t,e){for(var n=i(t),r=new e(n),a=0;a<n;a++)r[a]=t[n-a-1];return r}},function(t,e,n){"use strict";var i=n(3),r=n(14),a=n(31),o=n(12),s=n(199),u=n(200),c=n(140),l=Array,h=r(u("Array").sort);i({target:"Array",proto:!0},{toSorted:function(t){void 0!==t&&a(t);var e=o(this),n=s(l,e);return h(n,t)}}),c("toSorted")},function(t,e,n){"use strict";var i=n(64);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){"use strict";var i=n(4);t.exports=function(t){return i[t].prototype}},function(t,e,n){"use strict";var i=n(3),r=n(140),a=n(142),o=n(64),s=n(61),u=n(12),c=n(62),l=Array,h=Math.max,f=Math.min;i({target:"Array",proto:!0},{toSpliced:function(t,e){var n,i,r,d,g=u(this),p=o(g),v=s(t,p),y=arguments.length,x=0;for(0===y?n=i=0:1===y?(n=0,i=p-v):(n=y-2,i=f(h(c(e),0),p-v)),r=a(p+n-i),d=l(r);x<v;x++)d[x]=g[x];for(;x<v+n;x++)d[x]=arguments[x-v+2];for(;x<r;x++)d[x]=g[x+i-n];return d}}),r("toSpliced")},function(t,e,n){"use strict";n(140)("flat")},function(t,e,n){"use strict";n(140)("flatMap")},function(t,e,n){"use strict";var i=n(3),r=n(40),a=n(64),o=n(180),s=n(146),u=n(142);i({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}}()},{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(206),a=n(12),o=Array;i({target:"Array",proto:!0},{with:function(t,e){return r(a(this),o,t,e)}})},function(t,e,n){"use strict";var i=n(64),r=n(62),a=RangeError;t.exports=function(t,e,n,o){var s=i(t),u=r(n),c=u<0?s+u:u;if(c>=s||c<0)throw a("Incorrect index");for(var l=new e(s),h=0;h<s;h++)l[h]=h===c?o:t[h];return l}},function(t,e,n){"use strict";var i=n(3),r=n(4),a=n(208),o=n(194),s="ArrayBuffer",u=a[s];i({global:!0,constructor:!0,forced:r[s]!==u},{ArrayBuffer:u}),o(s)},function(t,e,n){"use strict";var i=n(4),r=n(14),a=n(6),o=n(209),s=n(50),u=n(44),c=n(79),l=n(210),h=n(7),f=n(211),d=n(62),g=n(65),p=n(212),v=n(213),y=n(130),x=n(116),b=n(58).f,m=n(150),_=n(77),T=n(84),w=n(52),A=s.PROPER,S=s.CONFIGURABLE,E="ArrayBuffer",k="DataView",O="prototype",M="Wrong index",R=w.getterFor(E),C=w.getterFor(k),I=w.set,P=i[E],L=P,D=L&&L[O],N=i[k],F=N&&N[O],z=Object.prototype,j=i.Array,B=i.RangeError,$=r(m),X=r([].reverse),U=v.pack,Y=v.unpack,V=function(t){return[255&t]},G=function(t){return[255&t,t>>8&255]},H=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},W=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},q=function(t){return U(t,23,4)},Z=function(t){return U(t,52,8)},K=function(t,e,n){c(t[O],e,{configurable:!0,get:function(){return n(this)[e]}})},J=function(t,e,n,i){var r=C(t),a=p(n),o=!!i;if(a+e>r.byteLength)throw B(M);var s=r.bytes,u=a+r.byteOffset,c=_(s,u,u+e);return o?c:X(c)},Q=function(t,e,n,i,r,a){var o=C(t),s=p(n),u=i(+r),c=!!a;if(s+e>o.byteLength)throw B(M);for(var l=o.bytes,h=s+o.byteOffset,f=0;f<e;f++)l[h+f]=u[c?f:e-f-1]};if(o){var tt=A&&P.name!==E;if(h((function(){P(1)}))&&h((function(){new P(-1)}))&&!h((function(){return new P,new P(1.5),new P(NaN),1!=P.length||tt&&!S})))tt&&S&&u(P,"name",E);else{(L=function(t){return f(this,D),new P(p(t))})[O]=D;for(var et,nt=b(P),it=0;nt.length>it;)(et=nt[it++])in L||u(L,et,P[et]);D.constructor=L}x&&y(F)!==z&&x(F,z);var rt=new N(new L(2)),at=r(F.setInt8);rt.setInt8(0,2147483648),rt.setInt8(1,2147483649),!rt.getInt8(0)&&rt.getInt8(1)||l(F,{setInt8:function(t,e){at(this,t,e<<24>>24)},setUint8:function(t,e){at(this,t,e<<24>>24)}},{unsafe:!0})}else D=(L=function(t){f(this,D);var e=p(t);I(this,{type:E,bytes:$(j(e),0),byteLength:e}),a||(this.byteLength=e,this.detached=!1)})[O],F=(N=function(t,e,n){f(this,F),f(t,D);var i=R(t),r=i.byteLength,o=d(e);if(o<0||o>r)throw B("Wrong offset");if(o+(n=void 0===n?r-o:g(n))>r)throw B("Wrong length");I(this,{type:k,buffer:t,byteLength:n,byteOffset:o,bytes:i.bytes}),a||(this.buffer=t,this.byteLength=n,this.byteOffset=o)})[O],a&&(K(L,"byteLength",R),K(N,"buffer",C),K(N,"byteLength",C),K(N,"byteOffset",C)),l(F,{getInt8:function(t){return J(this,1,t)[0]<<24>>24},getUint8:function(t){return J(this,1,t)[0]},getInt16:function(t){var e=J(this,2,t,arguments.length>1&&arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=J(this,2,t,arguments.length>1&&arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return W(J(this,4,t,arguments.length>1&&arguments[1]))},getUint32:function(t){return W(J(this,4,t,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(t){return Y(J(this,4,t,arguments.length>1&&arguments[1]),23)},getFloat64:function(t){return Y(J(this,8,t,arguments.length>1&&arguments[1]),52)},setInt8:function(t,e){Q(this,1,t,V,e)},setUint8:function(t,e){Q(this,1,t,V,e)},setInt16:function(t,e){Q(this,2,t,G,e,arguments.length>2&&arguments[2])},setUint16:function(t,e){Q(this,2,t,G,e,arguments.length>2&&arguments[2])},setInt32:function(t,e){Q(this,4,t,H,e,arguments.length>2&&arguments[2])},setUint32:function(t,e){Q(this,4,t,H,e,arguments.length>2&&arguments[2])},setFloat32:function(t,e){Q(this,4,t,q,e,arguments.length>2&&arguments[2])},setFloat64:function(t,e){Q(this,8,t,Z,e,arguments.length>2&&arguments[2])}});T(L,E),T(N,k),t.exports={ArrayBuffer:L,DataView:N}},function(t){"use strict";t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(t,e,n){"use strict";var i=n(48);t.exports=function(t,e,n){for(var r in e)i(t,r,e[r],n);return t}},function(t,e,n){"use strict";var i=n(25),r=TypeError;t.exports=function(t,e){if(i(e,t))return t;throw r("Incorrect invocation")}},function(t,e,n){"use strict";var i=n(62),r=n(65),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){"use strict";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){"use strict";var i=n(3),r=n(215);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(209),s=n(6),u=n(4),c=n(21),l=n(20),h=n(39),f=n(70),d=n(32),g=n(44),p=n(48),v=n(79),y=n(25),x=n(130),b=n(116),m=n(34),_=n(41),T=n(52),w=T.enforce,A=T.get,S=u.Int8Array,E=S&&S.prototype,k=u.Uint8ClampedArray,O=k&&k.prototype,M=S&&x(S),R=E&&x(E),C=Object.prototype,I=u.TypeError,P=m("toStringTag"),L=_("TYPED_ARRAY_TAG"),D="TypedArrayConstructor",N=o&&!!b&&"Opera"!==f(u.opera),F=!1,z={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[D]:B(e)}},$=function(t){if(!l(t))return!1;var e=f(t);return h(z,e)||h(j,e)};for(i in z)(a=(r=u[i])&&r.prototype)?w(a)[D]=r:N=!1;for(i in j)(a=(r=u[i])&&r.prototype)&&(w(a)[D]=r);if((!N||!c(M)||M===Function.prototype)&&(M=function(){throw I("Incorrect invocation")},N))for(i in z)u[i]&&b(u[i],M);if((!N||!R||R===C)&&(R=M.prototype,N))for(i in z)u[i]&&b(u[i].prototype,R);if(N&&x(O)!==R&&b(O,R),s&&!h(R,P))for(i in F=!0,v(R,P,{configurable:!0,get:function(){return l(this)?this[L]:void 0}}),z)u[i]&&g(u[i],L,i);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:F&&L,aTypedArray:function(t){if($(t))return t;throw I("Target is not a typed array")},aTypedArrayConstructor:function(t){if(c(t)&&(!b||y(M,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 z){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 z)if((r=u[i])&&h(r,t))try{delete r[t]}catch(t){}if(M[t]&&!n)return;try{return p(M,t,n?e:N&&M[t]||e)}catch(t){}}for(i in z)!(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(z,e)||h(j,e)},isTypedArray:$,TypedArray:M,TypedArrayPrototype:R}},function(t,e,n){"use strict";var i=n(3),r=n(87),a=n(7),o=n(208),s=n(47),u=n(61),c=n(65),l=n(217),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){"use strict";var i=n(47),r=n(218),a=n(17),o=n(34)("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){"use strict";var i=n(91),r=n(32),a=TypeError;t.exports=function(t){if(i(t))return t;throw a(r(t)+" is not a constructor")}},function(t,e,n){"use strict";n(220)},function(t,e,n){"use strict";var i=n(3),r=n(208);i({global:!0,constructor:!0,forced:!n(209)},{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){"use strict";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(62),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){"use strict";n(3)({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})},function(t,e,n){"use strict";var i=n(3),r=n(226);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(227).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){"use strict";var i=n(14),r=n(65),a=n(69),o=n(228),s=n(16),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(62),r=n(69),a=n(16),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(40),o=n(19);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){"use strict";var i=n(39),r=n(48),a=n(231),o=n(34)("toPrimitive"),s=Date.prototype;i(s,o)||r(s,o,a)},function(t,e,n){"use strict";var i=n(47),r=n(33),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){"use strict";var i=n(14),r=n(48),a=Date.prototype,o="Invalid Date",s="toString",u=i(a[s]),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(69),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){"use strict";var i=n(3),r=n(235);i({target:"Function",proto:!0,forced:Function.bind!==r},{bind:r})},function(t,e,n){"use strict";var i=n(14),r=n(31),a=n(20),o=n(39),s=n(97),u=n(9),c=Function,l=i([].concat),h=i([].join),f={};t.exports=u?c.bind:function(t){var e=r(this),n=e.prototype,i=s(arguments,1),u=function(){var n=l(i,s(arguments));return this instanceof u?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)}(e,n.length,n):e.apply(t,n)};return a(n)&&(u.prototype=n),u}},function(t,e,n){"use strict";var i=n(21),r=n(20),a=n(45),o=n(130),s=n(34),u=n(49),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){"use strict";var i=n(6),r=n(50).EXISTS,a=n(14),o=n(79),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){"use strict";var i=n(3),r=n(4);i({global:!0,forced:r.globalThis!==r},{globalThis:r})},function(t,e,n){"use strict";var i=n(4);n(84)(i.JSON,"JSON",!0)},function(t,e,n){"use strict";n(241)},function(t,e,n){"use strict";n(242)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(247))},function(t,e,n){"use strict";var i=n(3),r=n(4),a=n(14),o=n(68),s=n(48),u=n(243),c=n(132),l=n(211),h=n(21),f=n(17),d=n(20),g=n(7),p=n(165),v=n(84),y=n(120);t.exports=function(t,e,n){var x=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),m=x?"set":"add",_=r[t],T=_&&_.prototype,w=_,A={},S=function(t){var e=a(T[t]);s(T,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(_)||!(b||T.forEach&&!g((function(){(new _).entries().next()})))))w=n.getConstructor(e,t,x,m),u.enable();else if(o(t,!0)){var E=new w,k=E[m](b?{}:-0,1)!=E,O=g((function(){E.has(1)})),M=p((function(t){new _(t)})),R=!b&&g((function(){for(var t=new _,e=5;e--;)t[m](e,e);return!t.has(-0)}));M||((w=e((function(t,e){l(t,T);var n=y(new _,t,w);return f(e)||c(e,n[m],{that:n,AS_ENTRIES:x}),n}))).prototype=T,T.constructor=w),(O||R)&&(S("delete"),S("has"),x&&S("get")),(R||k)&&S(m),b&&T.clear&&delete T.clear}return A[t]=w,i({global:!0,constructor:!0,forced:w!=_},A),v(w,t),b||n.setStrong(w,t,x),w}},function(t,e,n){"use strict";var i=n(3),r=n(14),a=n(55),o=n(20),s=n(39),u=n(45).f,c=n(58),l=n(76),h=n(244),f=n(41),d=n(246),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){"use strict";var i=n(7),r=n(20),a=n(15),o=n(245),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){"use strict";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){"use strict";var i=n(7);t.exports=!i((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(t,e,n){"use strict";var i=n(72),r=n(79),a=n(210),o=n(86),s=n(211),u=n(17),c=n(132),l=n(170),h=n(173),f=n(194),d=n(6),g=n(243).fastKey,p=n(52),v=p.set,y=p.getterFor;t.exports={getConstructor:function(t,e,n,l){var h=t((function(t,r){s(t,f),v(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),d||(t.size=0),u(r)||c(r,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&&r(f,"size",{configurable:!0,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){"use strict";var i=n(3),r=n(249),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){"use strict";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){"use strict";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){"use strict";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){"use strict";var i=n(3),r=n(253),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){"use strict";t.exports=Math.sign||function(t){var e=+t;return 0==e||e!=e?e:e<0?-1:1}},function(t,e,n){"use strict";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){"use strict";var i=n(3),r=n(256),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){"use strict";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){"use strict";var i=n(3),r=n(256);i({target:"Math",stat:!0,forced:r!=Math.expm1},{expm1:r})},function(t,e,n){"use strict";n(3)({target:"Math",stat:!0},{fround:n(259)})},function(t,e,n){"use strict";var i=n(253),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){"use strict";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){"use strict";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){"use strict";n(3)({target:"Math",stat:!0},{log10:n(263)})},function(t){"use strict";var e=Math.log,n=Math.LOG10E;t.exports=Math.log10||function(t){return e(t)*n}},function(t,e,n){"use strict";n(3)({target:"Math",stat:!0},{log1p:n(249)})},function(t,e,n){"use strict";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){"use strict";n(3)({target:"Math",stat:!0},{sign:n(253)})},function(t,e,n){"use strict";var i=n(3),r=n(7),a=n(256),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){"use strict";var i=n(3),r=n(256),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){"use strict";n(84)(Math,"Math",!0)},function(t,e,n){"use strict";n(3)({target:"Math",stat:!0},{trunc:n(63)})},function(t,e,n){"use strict";var i=n(3),r=n(36),a=n(6),o=n(4),s=n(82),u=n(14),c=n(68),l=n(39),h=n(120),f=n(25),d=n(23),g=n(19),p=n(7),v=n(58).f,y=n(5).f,x=n(45).f,b=n(272),m=n(273).trim,_="Number",T=o[_],w=s[_],A=T.prototype,S=o.TypeError,E=u("".slice),k=u("".charCodeAt),O=function(t){var e,n,i,r,a,o,s,u,c=g(t,"number");if(d(c))throw S("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=m(c),43===(e=k(c,0))||45===e){if(88===(n=k(c,2))||120===n)return NaN}else if(48===e){switch(k(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=E(c,2)).length,s=0;s<o;s++)if((u=k(a,s))<48||u>r)return NaN;return parseInt(a,i)}return+c},M=c(_,!T(" 0o1")||!T("0b1")||T("+0x1")),R=function(t){var e,n=arguments.length<1?0:T(function(t){var e=g(t,"number");return"bigint"==typeof e?e:O(e)}(t));return f(A,e=this)&&p((function(){b(e)}))?h(Object(n),this,R):n};R.prototype=A,M&&!r&&(A.constructor=R),i({global:!0,constructor:!0,wrap:!0,forced:M},{Number:R});var C=function(t,e){for(var n,i=a?v(e):"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;i.length>r;r++)l(e,n=i[r])&&!l(t,n)&&x(t,n,y(e,n))};r&&w&&C(s[_],w),(M||r)&&C(s[_],T)},function(t,e,n){"use strict";var i=n(14);t.exports=i(1..valueOf)},function(t,e,n){"use strict";var i=n(14),r=n(16),a=n(69),o=n(274),s=i("".replace),u=RegExp("^["+o+"]+"),c=RegExp("(^|[^"+o+"])["+o+"]+$"),l=function(t){return function(e){var n=a(r(e));return 1&t&&(n=s(n,u,"")),2&t&&(n=s(n,c,"$1")),n}};t.exports={start:l(1),end:l(2),trim:l(3)}},function(t){"use strict";t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(t,e,n){"use strict";n(3)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},function(t,e,n){"use strict";n(3)({target:"Number",stat:!0},{isFinite:n(277)})},function(t,e,n){"use strict";var i=n(4).isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&i(t)}},function(t,e,n){"use strict";n(3)({target:"Number",stat:!0},{isInteger:n(279)})},function(t,e,n){"use strict";var i=n(20),r=Math.floor;t.exports=Number.isInteger||function(t){return!i(t)&&isFinite(t)&&r(t)===t}},function(t,e,n){"use strict";n(3)({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},function(t,e,n){"use strict";var i=n(3),r=n(279),a=Math.abs;i({target:"Number",stat:!0},{isSafeInteger:function(t){return r(t)&&a(t)<=9007199254740991}})},function(t,e,n){"use strict";n(3)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){"use strict";n(3)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){"use strict";var i=n(3),r=n(285);i({target:"Number",stat:!0,forced:Number.parseFloat!=r},{parseFloat:r})},function(t,e,n){"use strict";var i=n(4),r=n(7),a=n(14),o=n(69),s=n(273).trim,u=n(274),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){"use strict";var i=n(3),r=n(287);i({target:"Number",stat:!0,forced:Number.parseInt!=r},{parseInt:r})},function(t,e,n){"use strict";var i=n(4),r=n(7),a=n(14),o=n(69),s=n(273).trim,u=n(274),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(62),o=n(272),s=n(228),u=n(263),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),m="-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);i({target:"Number",proto:!0,forced:!m||!(c((function(){y(1,1/0)}))&&c((function(){y(1,-1/0)})))||!!c((function(){y(1/0,1/0),y(NaN,1/0)}))},{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(m)return y(e,n);var i="",r="",s=0,c="",_="";if(e<0&&(i="-",e=-e),0===e)s=0,r=x("0",n+1);else{var T=u(e);s=g(T);var w=0,A=p(10,s-n);2*e>=(2*(w=v(e/A))+1)*A&&(w+=1),w>=p(10,n+1)&&(w/=10,s+=1),r=h(w)}return 0!==n&&(r=b(r,0,1)+"."+b(r,1)),0===s?(c="+",_="0"):(c=s>0?"+":"-",_=h(d(s))),i+(r+="e"+c+_)}})},function(t,e,n){"use strict";var i=n(3),r=n(14),a=n(62),o=n(272),s=n(228),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(272),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){"use strict";var i=n(3),r=n(292);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(74),u=n(67),c=n(10),l=n(40),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){"use strict";n(3)({target:"Object",stat:!0,sham:!n(6)},{create:n(72)})},function(t,e,n){"use strict";var i=n(3),r=n(6),a=n(295),o=n(31),s=n(40),u=n(45);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(36),r=n(4),a=n(7),o=n(192);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){"use strict";var i=n(3),r=n(6),a=n(73).f;i({target:"Object",stat:!0,forced:Object.defineProperties!==a,sham:!r},{defineProperties:a})},function(t,e,n){"use strict";var i=n(3),r=n(6),a=n(45).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(295),o=n(31),s=n(40),u=n(45);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){"use strict";var i=n(3),r=n(300).entries;i({target:"Object",stat:!0},{entries:function(t){return r(t)}})},function(t,e,n){"use strict";var i=n(6),r=n(7),a=n(14),o=n(130),s=n(74),u=n(12),c=a(n(10).f),l=a([].push),h=i&&r((function(){var t=Object.create(null);return t[2]=2,!c(t,2)})),f=function(t){return function(e){for(var n,r=u(e),a=s(r),f=h&&null===o(r),d=a.length,g=0,p=[];d>g;)n=a[g++],i&&!(f?n in r:c(r,n))||l(p,t?[n,r[n]]:r[n]);return p}};t.exports={entries:f(!0),values:f(!1)}},function(t,e,n){"use strict";var i=n(3),r=n(246),a=n(7),o=n(20),s=n(243).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){"use strict";var i=n(3),r=n(132),a=n(78);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){"use strict";var i=n(3),r=n(7),a=n(12),o=n(5).f,s=n(6);i({target:"Object",stat:!0,forced:!s||r((function(){o(1)})),sham:!s},{getOwnPropertyDescriptor:function(t,e){return o(a(t),e)}})},function(t,e,n){"use strict";var i=n(3),r=n(6),a=n(57),o=n(12),s=n(5),u=n(78);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){"use strict";var i=n(3),r=n(7),a=n(76).f;i({target:"Object",stat:!0,forced:r((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:a})},function(t,e,n){"use strict";var i=n(3),r=n(7),a=n(40),o=n(130),s=n(131);i({target:"Object",stat:!0,forced:r((function(){o(1)})),sham:!s},{getPrototypeOf:function(t){return o(a(t))}})},function(t,e,n){"use strict";n(3)({target:"Object",stat:!0},{hasOwn:n(39)})},function(t,e,n){"use strict";n(3)({target:"Object",stat:!0},{is:n(309)})},function(t){"use strict";t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){"use strict";var i=n(3),r=n(244);i({target:"Object",stat:!0,forced:Object.isExtensible!==r},{isExtensible:r})},function(t,e,n){"use strict";var i=n(3),r=n(7),a=n(20),o=n(15),s=n(245),u=Object.isFrozen;i({target:"Object",stat:!0,forced:s||r((function(){u(1)}))},{isFrozen:function(t){return!a(t)||(!(!s||"ArrayBuffer"!=o(t))||!!u&&u(t))}})},function(t,e,n){"use strict";var i=n(3),r=n(7),a=n(20),o=n(15),s=n(245),u=Object.isSealed;i({target:"Object",stat:!0,forced:s||r((function(){u(1)}))},{isSealed:function(t){return!a(t)||(!(!s||"ArrayBuffer"!=o(t))||!!u&&u(t))}})},function(t,e,n){"use strict";var i=n(3),r=n(40),a=n(74);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(295),o=n(40),s=n(18),u=n(130),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(295),o=n(40),s=n(18),u=n(130),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){"use strict";var i=n(3),r=n(20),a=n(243).onFreeze,o=n(246),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(79),a=n(20),o=n(40),s=n(16),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){"use strict";var i=n(3),r=n(20),a=n(243).onFreeze,o=n(246),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){"use strict";n(3)({target:"Object",stat:!0},{setPrototypeOf:n(116)})},function(t,e,n){"use strict";var i=n(71),r=n(48),a=n(321);i||r(Object.prototype,"toString",a,{unsafe:!0})},function(t,e,n){"use strict";var i=n(71),r=n(70);t.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},function(t,e,n){"use strict";var i=n(3),r=n(300).values;i({target:"Object",stat:!0},{values:function(t){return r(t)}})},function(t,e,n){"use strict";var i=n(3),r=n(285);i({global:!0,forced:parseFloat!=r},{parseFloat:r})},function(t,e,n){"use strict";var i=n(3),r=n(287);i({global:!0,forced:parseInt!=r},{parseInt:r})},function(t,e,n){"use strict";n(326),n(341),n(343),n(344),n(345),n(346)},function(t,e,n){"use strict";var i,r,a,o=n(3),s=n(36),u=n(183),c=n(4),l=n(8),h=n(48),f=n(116),d=n(84),g=n(194),p=n(31),v=n(21),y=n(20),x=n(211),b=n(217),m=n(327).set,_=n(330),T=n(334),w=n(335),A=n(331),S=n(52),E=n(336),k=n(337),O=n(340),M="Promise",R=k.CONSTRUCTOR,C=k.REJECTION_EVENT,I=k.SUBCLASSING,P=S.getterFor(M),L=S.set,D=E&&E.prototype,N=E,F=D,z=c.TypeError,j=c.document,B=c.process,$=O.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(z("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,_((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&&T("Unhandled promise rejection",n)},q=function(t){l(m,c,(function(){var e,n=t.facade,i=t.value;if(Z(t)&&(e=w((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(m,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 z("Promise can't be resolved itself");var i=V(e);i?_((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&&(F=(N=function(t){x(this,F),p(t),l(i,this);var e=P(this);try{t(J(tt,e),J(Q,e))}catch(t){Q(e,t)}}).prototype,(i=function(t){L(this,{type:M,done:!1,notified:!1,parent:!1,reactions:new A,rejection:!1,state:0,value:void 0})}).prototype=h(F,"then",(function(t,e){var n=P(this),i=$(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):_((function(){G(i,n)})),i.promise})),r=function(){var t=new i,e=P(t);this.promise=t,this.resolve=J(tt,e),this.reject=J(Q,e)},O.f=$=function(t){return t===N||undefined===t?new r(t):X(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,F)}o({global:!0,constructor:!0,wrap:!0,forced:R},{Promise:N}),d(N,M,!1,!0),g(M)},function(t,e,n){"use strict";var i,r,a,o,s=n(4),u=n(96),c=n(86),l=n(21),h=n(39),f=n(7),d=n(75),g=n(97),p=n(43),v=n(328),y=n(329),x=n(183),b=s.setImmediate,m=s.clearImmediate,_=s.process,T=s.Dispatch,w=s.Function,A=s.MessageChannel,S=s.String,E=0,k={},O="onreadystatechange";f((function(){i=s.location}));var M=function(t){if(h(k,t)){var e=k[t];delete k[t],e()}},R=function(t){return function(){M(t)}},C=function(t){M(t.data)},I=function(t){s.postMessage(S(t),i.protocol+"//"+i.host)};b&&m||(b=function(t){v(arguments.length,1);var e=l(t)?t:w(t),n=g(arguments,1);return k[++E]=function(){u(e,void 0,n)},r(E),E},m=function(t){delete k[t]},x?r=function(t){_.nextTick(R(t))}:T&&T.now?r=function(t){T.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=O in p("script")?function(t){d.appendChild(p("script"))[O]=function(){d.removeChild(this),M(t)}}:function(t){setTimeout(R(t),0)}),t.exports={set:b,clear:m}},function(t){"use strict";var e=TypeError;t.exports=function(t,n){if(t<n)throw e("Not enough arguments");return t}},function(t,e,n){"use strict";var i=n(29);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(i)},function(t,e,n){"use strict";var i,r,a,o,s,u=n(4),c=n(86),l=n(5).f,h=n(327).set,f=n(331),d=n(329),g=n(332),p=n(333),v=n(183),y=u.MutationObserver||u.WebKitMutationObserver,x=u.document,b=u.process,m=u.Promise,_=l(u,"queueMicrotask"),T=_&&_.value;if(!T){var w=new f,A=function(){var t,e;for(v&&(t=b.domain)&&t.exit();e=w.get();)try{e()}catch(t){throw w.head&&i(),t}t&&t.enter()};d||v||p||!y||!x?!g&&m&&m.resolve?((o=m.resolve(void 0)).constructor=m,s=c(o.then,o),i=function(){s(A)}):v?i=function(){b.nextTick(A)}:(h=c(h,u),i=function(){h(A)}):(r=!0,a=x.createTextNode(""),new y(A).observe(a,{characterData:!0}),i=function(){a.data=r=!r}),T=function(t){w.head||i(),w.add(t)}}t.exports=T},function(t){"use strict";var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=e},function(t,e,n){"use strict";var i=n(29);t.exports=/ipad|iphone|ipod/i.test(i)&&"undefined"!=typeof Pebble},function(t,e,n){"use strict";var i=n(29);t.exports=/web0s(?!.*chrome)/i.test(i)},function(t){"use strict";t.exports=function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}},function(t){"use strict";t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,n){"use strict";var i=n(4);t.exports=i.Promise},function(t,e,n){"use strict";var i=n(4),r=n(336),a=n(21),o=n(68),s=n(51),u=n(34),c=n(338),l=n(339),h=n(36),f=n(28),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){"use strict";var i=n(339),r=n(183);t.exports=!i&&!r&&"object"==typeof window&&"object"==typeof document},function(t){"use strict";t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},function(t,e,n){"use strict";var i=n(31),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(31),o=n(340),s=n(335),u=n(132);i({target:"Promise",stat:!0,forced:n(342)},{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){"use strict";var i=n(336),r=n(165),a=n(337).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(36),a=n(337).CONSTRUCTOR,o=n(336),s=n(24),u=n(21),c=n(48),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(31),o=n(340),s=n(335),u=n(132);i({target:"Promise",stat:!0,forced:n(342)},{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(340);i({target:"Promise",stat:!0,forced:n(337).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(24),a=n(36),o=n(336),s=n(337).CONSTRUCTOR,u=n(347),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){"use strict";var i=n(47),r=n(20),a=n(340);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(31),o=n(340),s=n(335),u=n(132);i({target:"Promise",stat:!0,forced:n(342)},{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(31),o=n(24),s=n(340),u=n(335),c=n(132),l=n(342),h="No one promise resolved";i({target:"Promise",stat:!0,forced:l},{any:function(t){var e=this,n=o("AggregateError"),i=s.f(e),l=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,l(t))}),(function(t){c||d||(c=!0,o[a]=t,--u||f(new n(o,h)))}))})),--u||f(new n(o,h))}));return d.error&&f(d.value),i.promise}})},function(t,e,n){"use strict";var i=n(3),r=n(36),a=n(336),o=n(7),s=n(24),u=n(21),c=n(217),l=n(347),h=n(48),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){"use strict";var i=n(3),r=n(96),a=n(31),o=n(47);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){"use strict";var i=n(3),r=n(24),a=n(96),o=n(235),s=n(218),u=n(47),c=n(20),l=n(72),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){"use strict";var i=n(3),r=n(6),a=n(47),o=n(18),s=n(45);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){"use strict";var i=n(3),r=n(47),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){"use strict";var i=n(3),r=n(8),a=n(20),o=n(47),s=n(356),u=n(5),c=n(130);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){"use strict";var i=n(39);t.exports=function(t){return void 0!==t&&(i(t,"value")||i(t,"writable"))}},function(t,e,n){"use strict";var i=n(3),r=n(6),a=n(47),o=n(5);i({target:"Reflect",stat:!0,sham:!r},{getOwnPropertyDescriptor:function(t,e){return o.f(a(t),e)}})},function(t,e,n){"use strict";var i=n(3),r=n(47),a=n(130);i({target:"Reflect",stat:!0,sham:!n(131)},{getPrototypeOf:function(t){return a(r(t))}})},function(t,e,n){"use strict";n(3)({target:"Reflect",stat:!0},{has:function(t,e){return e in t}})},function(t,e,n){"use strict";var i=n(3),r=n(47),a=n(244);i({target:"Reflect",stat:!0},{isExtensible:function(t){return r(t),a(t)}})},function(t,e,n){"use strict";n(3)({target:"Reflect",stat:!0},{ownKeys:n(57)})},function(t,e,n){"use strict";var i=n(3),r=n(24),a=n(47);i({target:"Reflect",stat:!0,sham:!n(246)},{preventExtensions:function(t){a(t);try{var e=r("Object","preventExtensions");return e&&e(t),!0}catch(t){return!1}}})},function(t,e,n){"use strict";var i=n(3),r=n(8),a=n(47),o=n(20),s=n(356),u=n(7),c=n(45),l=n(5),h=n(130),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){"use strict";var i=n(3),r=n(47),a=n(118),o=n(116);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){"use strict";var i=n(3),r=n(4),a=n(84);i({global:!0},{Reflect:{}}),a(r.Reflect,"Reflect",!0)},function(t,e,n){"use strict";var i=n(6),r=n(4),a=n(14),o=n(68),s=n(120),u=n(44),c=n(58).f,l=n(25),h=n(367),f=n(69),d=n(368),g=n(370),p=n(119),v=n(48),y=n(7),x=n(39),b=n(52).enforce,m=n(194),_=n(34),T=n(371),w=n(372),A=_("match"),S=r.RegExp,E=S.prototype,k=r.SyntaxError,O=a(E.exec),M=a("".charAt),R=a("".replace),C=a("".indexOf),I=a("".slice),P=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,L=/a/g,D=/a/g,N=new S(L)!==L,F=g.MISSED_STICKY,z=g.UNSUPPORTED_Y,j=i&&(!N||F||T||w||y((function(){return D[A]=!1,S(L)!=L||S(D)==D||"/a/i"!=S(L,"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=[],m=t;if(!g&&p&&v&&t.constructor===B)return t;if((p||l(E,t))&&(t=t.source,v&&(e=d(m))),t=void 0===t?"":f(t),e=void 0===e?"":f(e),m=t,T&&"dotAll"in L&&(i=!!e&&C(e,"s")>-1)&&(e=R(e,/s/g,"")),n=e,F&&"sticky"in L&&(r=!!e&&C(e,"y")>-1)&&z&&(e=R(e,/y/g,"")),w&&(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=M(t,i)))e+=M(t,++i);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:O(P,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=M(t,i))?a||"."!==e?("["===e?a=!0:"]"===e&&(a=!1),r+=e):r+="[\\s\\S]":r+=e+M(t,++i);return r}(t),n)),r&&(c.sticky=!0),y.length&&(c.groups=y)),t!==m)try{u(o,"source",""===m?"(?:)":m)}catch(t){}return o},$=c(S),X=0;$.length>X;)p(B,S,$[X++]);E.constructor=B,B.prototype=E,v(r,"RegExp",B,{constructor:!0})}m("RegExp")},function(t,e,n){"use strict";var i=n(20),r=n(15),a=n(34)("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==r(t))}},function(t,e,n){"use strict";var i=n(8),r=n(39),a=n(25),o=n(369),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(47);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){"use strict";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){"use strict";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){"use strict";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){"use strict";var i=n(6),r=n(371),a=n(15),o=n(79),s=n(52).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(375);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(69),u=n(369),c=n(370),l=n(35),h=n(72),f=n(52).get,d=n(371),g=n(372),p=l("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,y=v,x=o("".charAt),b=o("".indexOf),m=o("".replace),_=o("".slice),T=(r=/b*/g,a(v,i=/a/,"a"),a(v,r,"a"),0!==i.lastIndex||0!==r.lastIndex),w=c.BROKEN_CARET,A=void 0!==/()??/.exec("")[1];(T||A||w||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,O=w&&d.sticky,M=a(u,d),R=d.source,C=0,I=S;if(O&&(M=m(M,"y",""),-1===b(M,"g")&&(M+="g"),I=_(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+")",M)),A&&(n=new RegExp("^"+R+"$(?!\\s)",M)),T&&(i=d.lastIndex),r=a(v,O?n:d,I),O?r?(r.input=_(r.input,C),r[0]=_(r[0],C),r.index=d.lastIndex,d.lastIndex+=r[0].length):d.lastIndex=0:T&&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){"use strict";var i=n(4),r=n(6),a=n(79),o=n(369),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){"use strict";var i=n(6),r=n(370).MISSED_STICKY,a=n(15),o=n(79),s=n(52).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(374);var i,r,a=n(3),o=n(8),s=n(21),u=n(47),c=n(69),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(50).PROPER,r=n(48),a=n(47),o=n(69),s=n(7),u=n(368),c="toString",l=RegExp.prototype[c],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){"use strict";n(381)},function(t,e,n){"use strict";n(242)("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(247))},function(t,e,n){"use strict";var i=n(3),r=n(14),a=n(16),o=n(62),s=n(69),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(384).codeAt;i({target:"String",proto:!0},{codePointAt:function(t){return r(this,t)}})},function(t,e,n){"use strict";var i=n(14),r=n(62),a=n(69),o=n(16),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(87),o=n(5).f,s=n(65),u=n(69),c=n(386),l=n(16),h=n(387),f=n(36),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){"use strict";var i=n(367),r=TypeError;t.exports=function(t){if(i(t))throw r("The method doesn't accept regular expressions");return t}},function(t,e,n){"use strict";var i=n(34)("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){"use strict";var i=n(3),r=n(14),a=n(61),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(386),o=n(16),s=n(69),u=n(387),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(3),r=n(14),a=n(16),o=n(69),s=r("".charCodeAt);i({target:"String",proto:!0},{isWellFormed:function(){for(var t=o(a(this)),e=t.length,n=0;n<e;n++){var i=s(t,n);if(55296==(63488&i)&&(i>=56320||++n>=e||56320!=(64512&s(t,n))))return!1}return!0}})},function(t,e,n){"use strict";var i=n(384).charAt,r=n(69),a=n(52),o=n(170),s=n(173),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(393),a=n(47),o=n(17),s=n(65),u=n(69),c=n(16),l=n(30),h=n(394),f=n(395);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(374);var i=n(87),r=n(48),a=n(375),o=n(7),s=n(34),u=n(44),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(384).charAt;t.exports=function(t,e,n){return e+(n?i(t,e).length:1)}},function(t,e,n){"use strict";var i=n(8),r=n(47),a=n(21),o=n(15),s=n(375),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(87),o=n(171),s=n(173),u=n(16),c=n(65),l=n(69),h=n(47),f=n(17),d=n(15),g=n(367),p=n(368),v=n(30),y=n(48),x=n(7),b=n(34),m=n(217),_=n(394),T=n(395),w=n(52),A=n(36),S=b("matchAll"),E="RegExp String",k=E+" Iterator",O=w.set,M=w.getterFor(k),R=RegExp.prototype,C=TypeError,I=a("".indexOf),P=a("".matchAll),L=!!P&&!x((function(){P("a",/./)})),D=o((function(t,e,n,i){O(this,{type:k,regexp:t,string:e,global:n,unicode:i,done:!1})}),E,(function(){var t=M(this);if(t.done)return s(void 0,!0);var e=t.regexp,n=t.string,i=T(e,n);return null===i?(t.done=!0,s(void 0,!0)):t.global?(""===l(i[0])&&(e.lastIndex=_(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=m(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:L},{matchAll:function(t){var e,n,i,a,o=u(this);if(f(t)){if(L)return P(o,t)}else{if(g(t)&&(e=l(u(p(t))),!~I(e,"g")))throw C("`.matchAll` does not allow non-global regexes");if(L)return P(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(227).end;i({target:"String",proto:!0,forced:n(398)},{padEnd:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var i=n(29);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(227).start;i({target:"String",proto:!0,forced:n(398)},{padStart: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(12),o=n(40),s=n(69),u=n(64),c=r([].push),l=r([].join);i({target:"String",stat:!0},{raw:function(t){var e=a(o(t).raw),n=u(e);if(!n)return"";for(var i=arguments.length,r=[],h=0;;){if(c(r,s(e[h++])),h===n)return l(r,"");h<i&&c(r,s(arguments[h]))}}})},function(t,e,n){"use strict";n(3)({target:"String",proto:!0},{repeat:n(228)})},function(t,e,n){"use strict";var i=n(96),r=n(8),a=n(14),o=n(393),s=n(7),u=n(47),c=n(21),l=n(17),h=n(62),f=n(65),d=n(69),g=n(16),p=n(394),v=n(30),y=n(403),x=n(395),b=n(34)("replace"),m=Math.max,_=Math.min,T=a([].concat),w=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(w(E,k),!v)break;""===d(k[0])&&(o.lastIndex=p(s,f(o.lastIndex),b))}for(var O,M="",R=0,C=0;C<E.length;C++){for(var I=d((k=E[C])[0]),P=m(_(h(k.index),s.length),0),L=[],D=1;D<k.length;D++)w(L,void 0===(O=k[D])?O:String(O));var N=k.groups;if(g){var F=T([I],L,P,s);void 0!==N&&w(F,N);var z=d(i(r,void 0,F))}else z=y(I,s,P,L,N,r);P>=R&&(M+=S(s,R,P)+z,R=P+I.length)}return M+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){"use strict";var i=n(14),r=n(40),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(16),s=n(21),u=n(17),c=n(367),l=n(69),h=n(30),f=n(368),d=n(403),g=n(34),p=n(36),v=g("replace"),y=TypeError,x=a("".indexOf),b=a("".replace),m=a("".slice),_=Math.max,T=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,w,A,S,E,k,O=o(this),M=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,O,e);if(p&&n)return b(l(O),t,e)}for(g=l(O),w=l(t),(A=s(e))||(e=l(e)),S=w.length,E=_(1,S),M=T(g,w,0);-1!==M;)k=A?l(e(w,M,g)):d(w,g,M,[],void 0,e),C+=m(g,R,M)+k,R=M+S,M=T(g,w,M+E);return R<g.length&&(C+=m(g,R)),C}})},function(t,e,n){"use strict";var i=n(8),r=n(393),a=n(47),o=n(17),s=n(16),u=n(309),c=n(69),l=n(30),h=n(395);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(96),r=n(8),a=n(14),o=n(393),s=n(47),u=n(17),c=n(367),l=n(16),h=n(217),f=n(394),d=n(65),g=n(69),p=n(30),v=n(77),y=n(395),x=n(375),b=n(370),m=n(7),_=b.UNSUPPORTED_Y,T=4294967295,w=Math.min,A=[].push,S=a(/./.exec),E=a(A),k=a("".slice),O=!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?T: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":"")+(_?"g":"y"),v=new c(_?"^(?:"+r.source+")":r,p),x=void 0===i?T:i>>>0;if(0===x)return[];if(0===o.length)return null===y(v,o)?[o]:[];for(var b=0,m=0,A=[];m<o.length;){v.lastIndex=_?0:m;var S,O=y(v,_?k(o,m):o);if(null===O||(S=w(d(v.lastIndex+(_?m:0)),o.length))===b)m=f(o,m,l);else{if(E(A,k(o,b,m)),A.length===x)return A;for(var M=1;M<=O.length-1;M++)if(E(A,O[M]),A.length===x)return A;m=b=S}}return E(A,k(o,b)),A}]}),!O,_)},function(t,e,n){"use strict";var i,r=n(3),a=n(87),o=n(5).f,s=n(65),u=n(69),c=n(386),l=n(16),h=n(387),f=n(36),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(16),o=n(62),s=n(69),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(8),a=n(14),o=n(16),s=n(69),u=n(7),c=Array,l=a("".charAt),h=a("".charCodeAt),f=a([].join),d="".toWellFormed,g=d&&u((function(){return"1"!==r(d,1)}));i({target:"String",proto:!0,forced:g},{toWellFormed:function(){var t=s(o(this));if(g)return r(d,t);for(var e=t.length,n=c(e),i=0;i<e;i++){var a=h(t,i);55296!=(63488&a)?n[i]=l(t,i):a>=56320||i+1>=e||56320!=(64512&h(t,i+1))?n[i]="�":(n[i]=l(t,i),n[++i]=l(t,i))}return f(n,"")}})},function(t,e,n){"use strict";var i=n(3),r=n(273).trim;i({target:"String",proto:!0,forced:n(411)("trim")},{trim:function(){return r(this)}})},function(t,e,n){"use strict";var i=n(50).PROPER,r=n(7),a=n(274);t.exports=function(t){return r((function(){return!!a[t]()||"
"!=="
"[t]()||i&&a[t].name!==t}))}},function(t,e,n){"use strict";n(413);var i=n(3),r=n(414);i({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==r},{trimEnd:r})},function(t,e,n){"use strict";var i=n(3),r=n(414);i({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==r},{trimRight:r})},function(t,e,n){"use strict";var i=n(273).end,r=n(411);t.exports=r("trimEnd")?function(){return i(this)}:"".trimEnd},function(t,e,n){"use strict";n(416);var i=n(3),r=n(417);i({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==r},{trimStart:r})},function(t,e,n){"use strict";var i=n(3),r=n(417);i({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==r},{trimLeft:r})},function(t,e,n){"use strict";var i=n(273).start,r=n(411);t.exports=r("trimStart")?function(){return i(this)}:"".trimStart},function(t,e,n){"use strict";var i=n(3),r=n(419);i({target:"String",proto:!0,forced:n(420)("anchor")},{anchor:function(t){return r(this,"a","name",t)}})},function(t,e,n){"use strict";var i=n(14),r=n(16),a=n(69),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,""")+'"'),c+">"+u+"</"+e+">"}},function(t,e,n){"use strict";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(419);i({target:"String",proto:!0,forced:n(420)("big")},{big:function(){return r(this,"big","","")}})},function(t,e,n){"use strict";var i=n(3),r=n(419);i({target:"String",proto:!0,forced:n(420)("blink")},{blink:function(){return r(this,"blink","","")}})},function(t,e,n){"use strict";var i=n(3),r=n(419);i({target:"String",proto:!0,forced:n(420)("bold")},{bold:function(){return r(this,"b","","")}})},function(t,e,n){"use strict";var i=n(3),r=n(419);i({target:"String",proto:!0,forced:n(420)("fixed")},{fixed:function(){return r(this,"tt","","")}})},function(t,e,n){"use strict";var i=n(3),r=n(419);i({target:"String",proto:!0,forced:n(420)("fontcolor")},{fontcolor:function(t){return r(this,"font","color",t)}})},function(t,e,n){"use strict";var i=n(3),r=n(419);i({target:"String",proto:!0,forced:n(420)("fontsize")},{fontsize:function(t){return r(this,"font","size",t)}})},function(t,e,n){"use strict";var i=n(3),r=n(419);i({target:"String",proto:!0,forced:n(420)("italics")},{italics:function(){return r(this,"i","","")}})},function(t,e,n){"use strict";var i=n(3),r=n(419);i({target:"String",proto:!0,forced:n(420)("link")},{link:function(t){return r(this,"a","href",t)}})},function(t,e,n){"use strict";var i=n(3),r=n(419);i({target:"String",proto:!0,forced:n(420)("small")},{small:function(){return r(this,"small","","")}})},function(t,e,n){"use strict";var i=n(3),r=n(419);i({target:"String",proto:!0,forced:n(420)("strike")},{strike:function(){return r(this,"strike","","")}})},function(t,e,n){"use strict";var i=n(3),r=n(419);i({target:"String",proto:!0,forced:n(420)("sub")},{sub:function(){return r(this,"sub","","")}})},function(t,e,n){"use strict";var i=n(3),r=n(419);i({target:"String",proto:!0,forced:n(420)("sup")},{sup:function(){return r(this,"sup","","")}})},function(t,e,n){"use strict";n(434)("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(435),u=n(215),c=n(208),l=n(211),h=n(11),f=n(44),d=n(279),g=n(65),p=n(212),v=n(436),y=n(438),x=n(18),b=n(39),m=n(70),_=n(20),T=n(23),w=n(72),A=n(25),S=n(116),E=n(58).f,k=n(439),O=n(85).forEach,M=n(194),R=n(79),C=n(45),I=n(5),P=n(52),L=n(120),D=P.get,N=P.set,F=P.enforce,z=C.f,j=I.f,B=r.RangeError,$=c.ArrayBuffer,X=$.prototype,U=c.DataView,Y=u.NATIVE_ARRAY_BUFFER_VIEWS,V=u.TYPED_ARRAY_TAG,G=u.TypedArray,H=u.TypedArrayPrototype,W=u.aTypedArrayConstructor,q=u.isTypedArray,Z="BYTES_PER_ELEMENT",K="Wrong length",J=function(t,e){W(t);for(var n=0,i=e.length,r=new t(i);i>n;)r[n]=e[n++];return r},Q=function(t,e){R(t,e,{configurable:!0,get:function(){return D(this)[e]}})},tt=function(t){var e;return A(X,t)||"ArrayBuffer"==(e=m(t))||"SharedArrayBuffer"==e},et=function(t,e){return q(t)&&!T(e)&&e in t&&d(+e)&&e>=0},nt=function(t,e){return e=x(e),et(t,e)?h(2,t[e]):j(t,e)},it=function(t,e,n){return e=x(e),!(et(t,e)&&_(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?z(t,e,n):(t[e]=n.value,t)};o?(Y||(I.f=nt,C.f=it,Q(H,"buffer"),Q(H,"byteOffset"),Q(H,"byteLength"),Q(H,"length")),i({target:"Object",stat:!0,forced:!Y},{getOwnPropertyDescriptor:nt,defineProperty:it}),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],x=d,b=x&&x.prototype,m={},T=function(t,e){z(t,e,{get:function(){return function(t,e){var n=D(t);return n.view[c](e*o+n.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,i){var r=D(t);r.view[h](e*o+r.byteOffset,n?y(i):i,!0)}(this,e,t)},enumerable:!0})};Y?s&&(x=e((function(t,e,n,i){return l(t,b),L(_(e)?tt(e)?void 0!==i?new d(e,v(n,o),i):void 0!==n?new d(e,v(n,o)):new d(e):q(e)?J(x,e):a(k,x,e):new d(p(e)),t,x)})),S&&S(x,G),O(E(d),(function(t){t in x||f(x,t,d[t])})),x.prototype=b):(x=e((function(t,e,n,i){l(t,b);var r,s,u,c=0,h=0;if(_(e)){if(!tt(e))return q(e)?J(x,e):a(k,x,e);r=e,h=v(n,o);var f=e.byteLength;if(void 0===i){if(f%o)throw B(K);if((s=f-h)<0)throw B(K)}else if((s=g(i)*o)+h>f)throw B(K);u=s/o}else u=p(e),r=new $(s=u*o);for(N(t,{buffer:r,byteOffset:h,byteLength:s,length:u,view:new U(r)});c<u;)T(t,c++)})),S&&S(x,G),b=x.prototype=w(H)),b.constructor!==x&&f(b,"constructor",x),F(b).TypedArrayConstructor=x,V&&f(b,V,u);var A=x!=d;m[u]=x,i({global:!0,constructor:!0,forced:A,sham:!Y},m),Z in x||f(x,Z,o),Z in b||f(b,Z,o),M(u)}):t.exports=function(){}},function(t,e,n){"use strict";var i=n(4),r=n(7),a=n(165),o=n(215).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){"use strict";var i=n(437),r=RangeError;t.exports=function(t,e){var n=i(t);if(n%e)throw r("Wrong offset");return n}},function(t,e,n){"use strict";var i=n(62),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){"use strict";var e=Math.round;t.exports=function(t){var n=e(t);return n<0?0:n>255?255:255&n}},function(t,e,n){"use strict";var i=n(86),r=n(8),a=n(218),o=n(40),s=n(64),u=n(135),c=n(136),l=n(133),h=n(440),f=n(215).aTypedArrayConstructor,d=n(441);t.exports=function(t){var e,n,g,p,v,y,x,b,m=a(this),_=o(t),T=arguments.length,w=T>1?arguments[1]:void 0,A=void 0!==w,S=c(_);if(S&&!l(S))for(b=(x=u(_,S)).next,_=[];!(y=r(b,x)).done;)_.push(y.value);for(A&&T>2&&(w=i(w,arguments[2])),n=s(_),g=new(f(m))(n),p=h(g),e=0;n>e;e++)v=A?w(_[e],e):_[e],g[e]=p?d(v):+v;return g}},function(t,e,n){"use strict";var i=n(70);t.exports=function(t){var e=i(t);return"BigInt64Array"==e||"BigUint64Array"==e}},function(t,e,n){"use strict";var i=n(19),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){"use strict";n(434)("Float64",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){"use strict";n(434)("Int8",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){"use strict";n(434)("Int16",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){"use strict";n(434)("Int32",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){"use strict";n(434)("Uint8",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){"use strict";n(434)("Uint8",(function(t){return function(e,n,i){return t(this,e,n,i)}}),!0)},function(t,e,n){"use strict";n(434)("Uint16",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){"use strict";n(434)("Uint32",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){"use strict";var i=n(215),r=n(64),a=n(62),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(215),a=i(n(145)),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(215),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(215),r=n(150),a=n(441),o=n(70),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(215),r=n(85).filter,a=n(455),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){"use strict";var i=n(199),r=n(456);t.exports=function(t,e){return i(r(t),e)}},function(t,e,n){"use strict";var i=n(215),r=n(217),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(215),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(215),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(215),r=n(155).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(215),r=n(155).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(215),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(435);(0,n(215).exportTypedArrayStaticMethod)("from",n(439),i)},function(t,e,n){"use strict";var i=n(215),r=n(60).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(215),r=n(60).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(215),s=n(169),u=n(34)("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(215),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(215),r=n(96),a=n(176),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(215),r=n(85).map,a=n(456),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(215),r=n(435),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(215),r=n(182).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(215),r=n(182).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(215),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(215),o=n(64),s=n(436),u=n(40),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(215),r=n(456),a=n(7),o=n(97),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(215),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(87),a=n(7),o=n(31),s=n(189),u=n(215),c=n(190),l=n(191),h=n(28),f=n(192),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(215),r=n(65),a=n(61),o=n(456),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(96),a=n(215),o=n(7),s=n(97),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(197),r=n(215),a=r.aTypedArray,o=r.exportTypedArrayMethod,s=r.getTypedArrayConstructor;o("toReversed",(function(){return i(a(this),s(this))}))},function(t,e,n){"use strict";var i=n(215),r=n(14),a=n(31),o=n(199),s=i.aTypedArray,u=i.getTypedArrayConstructor,c=i.exportTypedArrayMethod,l=r(i.TypedArrayPrototype.sort);c("toSorted",(function(t){void 0!==t&&a(t);var e=s(this),n=o(u(e),e);return l(n,t)}))},function(t,e,n){"use strict";var i=n(215).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(206),r=n(215),a=n(440),o=n(62),s=n(441),u=r.aTypedArray,c=r.getTypedArrayConstructor,l=r.exportTypedArrayMethod,h=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}();l("with",{with:function(t,e){var n=u(this),r=o(t),l=a(n)?s(e):+e;return i(n,c(n),r,l)}}.with,!h)},function(t,e,n){"use strict";var i=n(3),r=n(14),a=n(69),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){"use strict";n(485)},function(t,e,n){"use strict";var i,r=n(246),a=n(4),o=n(14),s=n(210),u=n(243),c=n(242),l=n(486),h=n(20),f=n(52).enforce,d=n(7),g=n(53),p=Object,v=Array.isArray,y=p.isExtensible,x=p.isFrozen,b=p.isSealed,m=p.freeze,_=p.seal,T={},w={},A=!a.ActiveXObject&&"ActiveXObject"in a,S=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},E=c("WeakMap",S,l),k=E.prototype,O=o(k.set);if(g)if(A){i=l.getConstructor(S,"WeakMap",!0),u.enable();var M=o(k.delete),R=o(k.has),C=o(k.get);s(k,{delete:function(t){if(h(t)&&!y(t)){var e=f(this);return e.frozen||(e.frozen=new i),M(this,t)||e.frozen.delete(t)}return M(this,t)},has:function(t){if(h(t)&&!y(t)){var e=f(this);return e.frozen||(e.frozen=new i),R(this,t)||e.frozen.has(t)}return R(this,t)},get:function(t){if(h(t)&&!y(t)){var e=f(this);return e.frozen||(e.frozen=new i),R(this,t)?C(this,t):e.frozen.get(t)}return C(this,t)},set:function(t,e){if(h(t)&&!y(t)){var n=f(this);n.frozen||(n.frozen=new i),R(this,t)?O(this,t,e):n.frozen.set(t,e)}else O(this,t,e);return this}})}else r&&d((function(){var t=m([]);return O(new E,t,1),!x(t)}))&&s(k,{set:function(t,e){var n;return v(t)&&(x(t)?n=T:b(t)&&(n=w)),O(this,t,e),n==T&&m(t),n==w&&_(t),this}})},function(t,e,n){"use strict";var i=n(14),r=n(210),a=n(243).getWeakData,o=n(211),s=n(47),u=n(17),c=n(20),l=n(132),h=n(85),f=n(39),d=n(52),g=d.set,p=d.getterFor,v=h.find,y=h.findIndex,x=i([].splice),b=0,m=function(t){return t.frozen||(t.frozen=new _)},_=function(){this.entries=[]},T=function(t,e){return v(t.entries,(function(t){return t[0]===e}))};_.prototype={get:function(t){var e=T(this,t);if(e)return e[1]},has:function(t){return!!T(this,t)},set:function(t,e){var n=T(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?m(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?m(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?m(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?m(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){"use strict";n(488)},function(t,e,n){"use strict";n(242)("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(486))},function(t,e,n){"use strict";var i=n(3),r=n(4),a=n(24),o=n(14),s=n(8),u=n(7),c=n(69),l=n(39),h=n(328),f=n(490).ctoi,d=/[^\d+/a-z]/i,g=/[\t\n\f\r ]+/g,p=/[=]{1,2}$/,v=a("atob"),y=String.fromCharCode,x=o("".charAt),b=o("".replace),m=o(d.exec),_=u((function(){return""!==v(" ")})),T=!u((function(){v("a")})),w=!_&&!T&&!u((function(){v()})),A=!_&&!T&&1!==v.length;i({global:!0,bind:!0,enumerable:!0,forced:_||T||w||A},{atob:function(t){if(h(arguments.length,1),w||A)return s(v,r,t);var e,n,i=b(c(t),g,""),o="",u=0,_=0;if(i.length%4==0&&(i=b(i,p,"")),i.length%4==1||m(d,i))throw new(a("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;e=x(i,u++);)l(f,e)&&(n=_%4?64*n+f[e]:f[e],_++%4&&(o+=y(255&n>>(-2*_&6))));return o}})},function(t){"use strict";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){"use strict";var i=n(3),r=n(4),a=n(24),o=n(14),s=n(8),u=n(7),c=n(69),l=n(328),h=n(490).itoc,f=a("btoa"),d=o("".charAt),g=o("".charCodeAt),p=!!f&&!u((function(){f()})),v=!!f&&u((function(){return"bnVsbA=="!==f(null)})),y=!!f&&1!==f.length;i({global:!0,bind:!0,enumerable:!0,forced:p||v||y},{btoa:function(t){if(l(arguments.length,1),p||v||y)return s(f,r,c(t));for(var e,n,i=c(t),o="",u=0,x=h;d(i,u)||(x="=",u%1);){if((n=g(i,u+=3/4))>255)throw new(a("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");o+=d(x,63&(e=e<<8|n)>>8-u%1*8)}return o}})},function(t,e,n){"use strict";var i=n(4),r=n(493),a=n(494),o=n(161),s=n(44),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){"use strict";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){"use strict";var i=n(43)("span").classList,r=i&&i.constructor&&i.constructor.prototype;t.exports=r===Object.prototype?void 0:r},function(t,e,n){"use strict";var i=n(4),r=n(493),a=n(494),o=n(169),s=n(44),u=n(34),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(497),a=n(24),o=n(7),s=n(72),u=n(11),c=n(45).f,l=n(48),h=n(79),f=n(39),d=n(211),g=n(47),p=n(127),v=n(121),y=n(498),x=n(124),b=n(52),m=n(6),_=n(36),T="DOMException",w="DATA_CLONE_ERR",A=a("Error"),S=a(T)||function(){try{(new(a("MessageChannel")||r("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(t){if(t.name==w&&25==t.code)return t.constructor}}(),E=S&&S.prototype,k=A.prototype,O=b.set,M=b.getterFor(T),R="stack"in A(T),C=function(t){return f(y,t)&&y[t].m?y[t].c:0},I=function(){d(this,P);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(O(this,{type:T,name:n,message:e,code:i}),m||(this.name=n,this.message=e,this.code=i),R){var r=A(e);r.name=T,c(this,"stack",u(1,x(r.stack,1)))}},P=I.prototype=s(k),L=function(t){return{enumerable:!0,configurable:!0,get:t}},D=function(t){return L((function(){return M(this)[t]}))};m&&(h(P,"code",D("code")),h(P,"message",D("message")),h(P,"name",D("name"))),c(P,"constructor",u(1,I));var N=o((function(){return!(new S instanceof A)})),F=N||o((function(){return k.toString!==p||"2: 1"!==String(new S(1,2))})),z=N||o((function(){return 25!==new S(1,"DataCloneError").code})),j=N||25!==S[w]||25!==E[w],B=_?F||z||j:N;i({global:!0,constructor:!0,forced:B},{DOMException:B?I:S});var $=a(T),X=$.prototype;for(var U in F&&(_||S===$)&&l(X,"toString",p),z&&m&&S===$&&h(X,"code",L((function(){return C(g(this).name)}))),y)if(f(y,U)){var Y=y[U],V=Y.s,G=u(6,Y.c);f($,V)||c($,V,G),f(X,V)||c(X,V,G)}},function(t,e,n){"use strict";var i=n(183);t.exports=function(t){try{if(i)return Function('return require("'+t+'")')()}catch(t){}}},function(t){"use strict";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(24),o=n(11),s=n(45).f,u=n(39),c=n(211),l=n(120),h=n(121),f=n(498),d=n(124),g=n(6),p=n(36),v="DOMException",y=a("Error"),x=a(v),b=function(){c(this,m);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},m=b.prototype=x.prototype,_="stack"in y(v),T="stack"in new x(1,2),w=x&&g&&Object.getOwnPropertyDescriptor(r,v),A=!(!w||w.writable&&w.configurable),S=_&&!A&&!T;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 O in p||s(k,"constructor",o(1,E)),f)if(u(f,O)){var M=f[O],R=M.s;u(E,R)||s(E,R,o(6,M.c))}},function(t,e,n){"use strict";var i=n(24),r="DOMException";n(84)(i(r),r)},function(t,e,n){"use strict";n(502),n(503)},function(t,e,n){"use strict";var i=n(3),r=n(4),a=n(327).clear;i({global:!0,bind:!0,enumerable:!0,forced:r.clearImmediate!==a},{clearImmediate:a})},function(t,e,n){"use strict";var i=n(3),r=n(4),a=n(327).set,o=n(504),s=r.setImmediate?o(a,!1):a;i({global:!0,bind:!0,enumerable:!0,forced:r.setImmediate!==s},{setImmediate:s})},function(t,e,n){"use strict";var i,r=n(4),a=n(96),o=n(21),s=n(505),u=n(29),c=n(97),l=n(328),h=r.Function,f=/MSIE .\./.test(u)||s&&((i=r.Bun.version.split(".")).length<3||0==i[0]&&(i[1]<3||3==i[1]&&0==i[2]));t.exports=function(t,e){var n=e?2:1;return f?function(i,r){var s=l(arguments.length,1)>n,u=o(i)?i:h(i),f=s?c(arguments,n):[],d=s?function(){a(u,this,f)}:u;return e?t(d,r):t(d)}:t}},function(t){"use strict";t.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},function(t,e,n){"use strict";var i=n(3),r=n(4),a=n(330),o=n(31),s=n(328),u=n(183),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(79),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){"use strict";var i,r=n(36),a=n(3),o=n(4),s=n(24),u=n(14),c=n(7),l=n(41),h=n(21),f=n(91),d=n(17),g=n(20),p=n(23),v=n(132),y=n(47),x=n(70),b=n(39),m=n(78),_=n(44),T=n(64),w=n(328),A=n(368),S=n(509),E=n(510),k=n(125),O=n(511),M=o.Object,R=o.Array,C=o.Date,I=o.Error,P=o.EvalError,L=o.RangeError,D=o.ReferenceError,N=o.SyntaxError,F=o.TypeError,z=o.URIError,j=o.PerformanceMark,B=o.WebAssembly,$=B&&B.CompileError||I,X=B&&B.LinkError||I,U=B&&B.RuntimeError||I,Y=s("DOMException"),V=S.Map,G=S.has,H=S.get,W=S.set,q=E.Set,Z=E.add,K=s("Object","keys"),J=u([].push),Q=u((!0).valueOf),tt=u(1..valueOf),et=u("".valueOf),nt=u(C.prototype.getTime),it=l("structuredClone"),rt="DataCloneError",at="Transferring",ot=function(t){return!c((function(){var e=new o.Set([7]),n=t(e),i=t(M(7));return n==e||!n.has(7)||"object"!=typeof i||7!=i}))&&t},st=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)}))},ut=o.structuredClone,ct=r||!st(ut,I)||!st(ut,Y)||(i=ut,!!c((function(){var t=i(new o.AggregateError([1],it,{cause:3}));return"AggregateError"!=t.name||1!=t.errors[0]||t.message!=it||3!=t.cause}))),lt=!ut&&ot((function(t){return new j(it,{detail:t}).detail})),ht=ot(ut)||lt,ft=function(t){throw new Y("Uncloneable type: "+t,rt)},dt=function(t,e){throw new Y((e||"Cloning")+" of "+t+" cannot be properly polyfilled in this engine",rt)},gt=function(t,e){return ht||dt(e),ht(t)},pt=function(t,e,n){if(G(e,t))return H(e,t);var i,r,a,s,u,c;if("SharedArrayBuffer"===(n||x(t)))i=ht?ht(t):t;else{var l=o.DataView;l||"function"==typeof t.slice||dt("ArrayBuffer");try{if("function"!=typeof t.slice||t.resizable){r=t.byteLength,a="maxByteLength"in t?{maxByteLength:t.maxByteLength}:void 0,i=new ArrayBuffer(r,a),s=new l(t),u=new l(i);for(c=0;c<r;c++)u.setUint8(c,s.getUint8(c))}else i=t.slice(0)}catch(t){throw new Y("ArrayBuffer is detached",rt)}}return W(e,t,i),i},vt=function(t,e,n,i,r){var a=o[e];return g(a)||dt(e),new a(pt(t.buffer,r),n,i)},yt=function(t,e,n){this.object=t,this.type=e,this.metadata=n},xt=function(t,e,n){if(p(t)&&ft("Symbol"),!g(t))return t;if(e){if(G(e,t))return H(e,t)}else e=new V;var i,r,a,u,c,l,f,d,v=x(t);switch(v){case"Array":a=R(T(t));break;case"Object":a={};break;case"Map":a=new V;break;case"Set":a=new q;break;case"RegExp":a=new RegExp(t.source,A(t));break;case"Error":switch(r=t.name){case"AggregateError":a=s("AggregateError")([]);break;case"EvalError":a=P();break;case"RangeError":a=L();break;case"ReferenceError":a=D();break;case"SyntaxError":a=N();break;case"TypeError":a=F();break;case"URIError":a=z();break;case"CompileError":a=$();break;case"LinkError":a=X();break;case"RuntimeError":a=U();break;default:a=I()}break;case"DOMException":a=new Y(t.message,t.name);break;case"ArrayBuffer":case"SharedArrayBuffer":a=n?new yt(t,v):pt(t,e,v);break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float16Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":l="DataView"===v?t.byteLength:t.length,a=n?new yt(t,v,{offset:t.byteOffset,length:l}):vt(t,v,t.byteOffset,l,e);break;case"DOMQuad":try{a=new DOMQuad(xt(t.p1,e,n),xt(t.p2,e,n),xt(t.p3,e,n),xt(t.p4,e,n))}catch(e){a=gt(t,v)}break;case"File":if(ht)try{a=ht(t),x(a)!==v&&(a=void 0)}catch(t){}if(!a)try{a=new File([t],t.name,t)}catch(t){}a||dt(v);break;case"FileList":if(u=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(c=0,l=T(t);c<l;c++)u.items.add(xt(t[c],e,n));a=u.files}else a=gt(t,v);break;case"ImageData":try{a=new ImageData(xt(t.data,e,n),t.width,t.height,{colorSpace:t.colorSpace})}catch(e){a=gt(t,v)}break;default:if(ht)a=ht(t);else switch(v){case"BigInt":a=M(t.valueOf());break;case"Boolean":a=M(Q(t));break;case"Number":a=M(tt(t));break;case"String":a=M(et(t));break;case"Date":a=new C(nt(t));break;case"Blob":try{a=t.slice(0,t.size,t.type)}catch(t){dt(v)}break;case"DOMPoint":case"DOMPointReadOnly":i=o[v];try{a=i.fromPoint?i.fromPoint(t):new i(t.x,t.y,t.z,t.w)}catch(t){dt(v)}break;case"DOMRect":case"DOMRectReadOnly":i=o[v];try{a=i.fromRect?i.fromRect(t):new i(t.x,t.y,t.width,t.height)}catch(t){dt(v)}break;case"DOMMatrix":case"DOMMatrixReadOnly":i=o[v];try{a=i.fromMatrix?i.fromMatrix(t):new i(t)}catch(t){dt(v)}break;case"AudioData":case"VideoFrame":h(t.clone)||dt(v);try{a=t.clone()}catch(t){ft(v)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":dt(v);default:ft(v)}}switch(W(e,t,a),v){case"Array":case"Object":for(f=K(t),c=0,l=T(f);c<l;c++)d=f[c],m(a,d,xt(t[d],e,n));break;case"Map":t.forEach((function(t,i){W(a,xt(i,e,n),xt(t,e,n))}));break;case"Set":t.forEach((function(t){Z(a,xt(t,e,n))}));break;case"Error":_(a,"message",xt(t.message,e,n)),b(t,"cause")&&_(a,"cause",xt(t.cause,e,n)),"AggregateError"==r&&(a.errors=xt(t.errors,e,n));case"DOMException":k&&_(a,"stack",xt(t.stack,e,n))}return a},bt=function(t,e){if(!g(t))return t;if(G(e,t))return H(e,t);var n,i,r,a,o,s,u,c;if(t instanceof yt)switch(n=t.type,i=t.object,n){case"ArrayBuffer":case"SharedArrayBuffer":c=pt(i,e,n);break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float16Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":r=t.metadata,c=vt(i,n,r.offset,r.length,e)}else switch(x(t)){case"Array":case"Object":for(s=K(t),a=0,o=T(s);a<o;a++)t[u=s[a]]=bt(t[u],e);break;case"Map":c=new V,t.forEach((function(t,n){W(c,bt(n,e),bt(t,e))}));break;case"Set":c=new q,t.forEach((function(t){Z(c,bt(t,e))}));break;case"Error":t.message=bt(t.message,e),b(t,"cause")&&(t.cause=bt(t.cause,e)),"AggregateError"==t.name&&(t.errors=bt(t.errors,e));case"DOMException":k&&(t.stack=bt(t.stack,e))}return W(e,t,c||t),c||t};a({global:!0,enumerable:!0,sham:!O,forced:ct},{structuredClone:function(t){var e,n,i=w(arguments.length,1)>1&&!d(arguments[1])?y(arguments[1]):void 0,r=i?i.transfer:void 0,a=!1;void 0!==r&&(n=function(t,e){if(!g(t))throw F("Transfer option cannot be converted to a sequence");var n=[];v(t,(function(t){J(n,y(t))}));for(var i,r,a,s,u,c=0,l=T(n),d=[];c<l;)if(i=n[c++],"ArrayBuffer"!==(r=x(i))){if(G(e,i))throw new Y("Duplicate transferable",rt);if(O)s=ut(i,{transfer:[i]});else switch(r){case"ImageBitmap":a=o.OffscreenCanvas,f(a)||dt(r,at);try{(u=new a(i.width,i.height)).getContext("bitmaprenderer").transferFromImageBitmap(i),s=u.transferToImageBitmap()}catch(t){}break;case"AudioData":case"VideoFrame":h(i.clone)&&h(i.close)||dt(r,at);try{s=i.clone(),i.close()}catch(t){}break;case"MediaSourceHandle":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":dt(r,at)}if(void 0===s)throw new Y("This object cannot be transferred: "+r,rt);W(e,i,s)}else J(d,i);return d}(r,e=new V),a=!!T(n));var s=xt(t,e,a);return a&&(function(t,e){for(var n,i,r=0,a=T(t);r<a;){if(n=t[r++],G(e,n))throw new Y("Duplicate transferable",rt);O?i=ut(n,{transfer:[n]}):(h(n.transfer)||dt("ArrayBuffer",at),i=n.transfer()),W(e,n,i)}}(r,e=new V),s=bt(s,e)),s}})},function(t,e,n){"use strict";var i=n(14),r=Map.prototype;t.exports={Map:Map,set:i(r.set),get:i(r.get),has:i(r.has),remove:i(r.delete),proto:r}},function(t,e,n){"use strict";var i=n(14),r=Set.prototype;t.exports={Set:Set,add:i(r.add),has:i(r.has),remove:i(r.delete),proto:r}},function(t,e,n){"use strict";var i=n(4),r=n(7),a=n(28),o=n(338),s=n(339),u=n(183),c=i.structuredClone;t.exports=!!c&&!r((function(){if(s&&a>92||u&&a>94||o&&a>97)return!1;var t=new ArrayBuffer(8),e=c(t,{transfer:[t]});return 0!=t.byteLength||8!=e.byteLength}))},function(t,e,n){"use strict";n(513),n(514)},function(t,e,n){"use strict";var i=n(3),r=n(4),a=n(504)(r.setInterval,!0);i({global:!0,bind:!0,forced:r.setInterval!==a},{setInterval:a})},function(t,e,n){"use strict";var i=n(3),r=n(4),a=n(504)(r.setTimeout,!0);i({global:!0,bind:!0,forced:r.setTimeout!==a},{setTimeout:a})},function(t,e,n){"use strict";n(516)},function(t,e,n){"use strict";n(391);var i,r=n(3),a=n(6),o=n(517),s=n(4),u=n(86),c=n(14),l=n(48),h=n(79),f=n(211),d=n(39),g=n(292),p=n(163),v=n(77),y=n(384).codeAt,x=n(518),b=n(69),m=n(84),_=n(328),T=n(519),w=n(52),A=w.set,S=w.getterFor("URL"),E=T.URLSearchParams,k=T.getState,O=s.URL,M=s.TypeError,R=s.parseInt,C=Math.floor,I=Math.pow,P=c("".charAt),L=c(/./.exec),D=c([].join),N=c(1..toString),F=c([].pop),z=c([].push),j=c("".replace),B=c([].shift),$=c("".split),X=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]+/,rt=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,at=/[\t\n\r]/g,ot=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},st={},ut=g({},st,{" ":1,'"':1,"<":1,">":1,"`":1}),ct=g({},ut,{"#":1,"?":1,"{":1,"}":1}),lt=g({},ct,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ht=function(t,e){var n=y(t,0);return n>32&&n<127&&!d(e,t)?t:encodeURIComponent(t)},ft={ftp:21,file:null,http:80,https:443,ws:80,wss:443},dt=function(t,e){var n;return 2==t.length&&L(W,P(t,0))&&(":"==(n=P(t,1))||!e&&"|"==n)},gt=function(t){var e;return t.length>1&&dt(X(t,0,2))&&(2==t.length||"/"===(e=P(t,2))||"\\"===e||"?"===e||"#"===e)},pt=function(t){return"."===t||"%2e"===U(t)},vt={},yt={},xt={},bt={},mt={},_t={},Tt={},wt={},At={},St={},Et={},kt={},Ot={},Mt={},Rt={},Ct={},It={},Pt={},Lt={},Dt={},Nt={},Ft=function(t,e,n){var i,r,a,o=b(t);if(e){if(r=this.parse(o))throw M(r);this.searchParams=null}else{if(void 0!==n&&(i=new Ft(n,!0)),r=this.parse(o,null,i))throw M(r);(a=k(new E)).bindURL(this),this.searchParams=a}};Ft.prototype={type:"URL",parse:function(t,e,n){var r,a,o,s,u,c=this,l=e||vt,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,"$1")),t=j(t,at,""),r=p(t);h<=r.length;){switch(a=r[h],l){case vt:if(!a||!L(W,a)){if(e)return V;l=xt;continue}f+=U(a),l=yt;break;case yt:if(a&&(L(q,a)||"+"==a||"-"==a||"."==a))f+=U(a);else{if(":"!=a){if(e)return V;f="",l=xt,h=0;continue}if(e&&(c.isSpecial()!=d(ft,f)||"file"==f&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=f,e)return void(c.isSpecial()&&ft[c.scheme]==c.port&&(c.port=null));f="","file"==c.scheme?l=Mt:c.isSpecial()&&n&&n.scheme==c.scheme?l=bt:c.isSpecial()?l=wt:"/"==r[h+1]?(l=mt,h++):(c.cannotBeABaseURL=!0,z(c.path,""),l=Lt)}break;case xt: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=Nt;break}l="file"==n.scheme?Mt:_t;continue;case bt:if("/"!=a||"/"!=r[h+1]){l=_t;continue}l=At,h++;break;case mt:if("/"==a){l=St;break}l=Pt;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=Tt;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=Dt;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=Pt;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=Nt}break;case Tt:if(!c.isSpecial()||"/"!=a&&"\\"!=a){if("/"!=a){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,l=Pt;continue}l=St}else l=At;break;case wt:if(l=At,"/"!=a||"/"!=P(f,h+1))continue;h++;break;case At:if("/"!=a&&"\\"!=a){l=St;continue}break;case St:if("@"==a){g&&(f="%40"+f),g=!0,o=p(f);for(var m=0;m<o.length;m++){var _=o[m];if(":"!=_||x){var T=ht(_,lt);x?c.password+=T:c.username+=T}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=Et}else f+=a;break;case Et:case kt:if(e&&"file"==c.scheme){l=Ct;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=It,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=Ot,e==kt)return}break;case Ot:if(!L(Z,a)){if(a==i||"/"==a||"?"==a||"#"==a||"\\"==a&&c.isSpecial()||e){if(""!=f){var w=R(f,10);if(w>65535)return H;c.port=c.isSpecial()&&w===ft[c.scheme]?null:w,f=""}if(e)return;l=It;continue}return H}f+=a;break;case Mt:if(c.scheme="file","/"==a||"\\"==a)l=Rt;else{if(!n||"file"!=n.scheme){l=Pt;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=Dt;else{if("#"!=a){gt(D(v(r,h),""))||(c.host=n.host,c.path=v(n.path),c.shortenPath()),l=Pt;continue}c.host=n.host,c.path=v(n.path),c.query=n.query,c.fragment="",l=Nt}}break;case Rt:if("/"==a||"\\"==a){l=Ct;break}n&&"file"==n.scheme&&!gt(D(v(r,h),""))&&(dt(n.path[0],!0)?z(c.path,n.path[0]):c.host=n.host),l=Pt;continue;case Ct:if(a==i||"/"==a||"\\"==a||"?"==a||"#"==a){if(!e&&dt(f))l=Pt;else if(""==f){if(c.host="",e)return;l=It}else{if(s=c.parseHost(f))return s;if("localhost"==c.host&&(c.host=""),e)return;f="",l=It}continue}f+=a;break;case It:if(c.isSpecial()){if(l=Pt,"/"!=a&&"\\"!=a)continue}else if(e||"?"!=a)if(e||"#"!=a){if(a!=i&&(l=Pt,"/"!=a))continue}else c.fragment="",l=Nt;else c.query="",l=Dt;break;case Pt: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()||z(c.path,"")):pt(f)?"/"==a||"\\"==a&&c.isSpecial()||z(c.path,""):("file"==c.scheme&&!c.path.length&&dt(f)&&(c.host&&(c.host=""),f=P(f,0)+":"),z(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=Dt):"#"==a&&(c.fragment="",l=Nt)}else f+=ht(a,ct);break;case Lt:"?"==a?(c.query="",l=Dt):"#"==a?(c.fragment="",l=Nt):a!=i&&(c.path[0]+=ht(a,st));break;case Dt:e||"#"!=a?a!=i&&("'"==a&&c.isSpecial()?c.query+="%27":c.query+="#"==a?"%23":ht(a,st)):(c.fragment="",l=Nt);break;case Nt:a!=i&&(c.fragment+=ht(a,ut))}h++}},parseHost:function(t){var e,n,i;if("["==P(t,0)){if("]"!=P(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 P(t,h)};if(":"==f()){if(":"!=P(t,1))return;h+=2,l=++c}for(;f();){if(8==c)return;if(":"!=f()){for(e=n=0;n<4&&L(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(!L(Z,f()))return;for(;L(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}(X(t,1,-1)),!e)return G;this.host=e}else if(this.isSpecial()){if(t=x(t),L(et,t))return G;if(e=function(t){var e,n,i,r,a,o,s,u=$(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"==P(r,0)&&(a=L(K,r)?16:8,r=X(r,8==a?1:2)),""===r)o=0;else{if(!L(10==a?Q:8==a?J:tt,r))return t;o=R(r,a)}z(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=F(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(L(nt,t))return G;for(e="",n=p(t),i=0;i<n.length;i++)e+=ht(n[i],st);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return d(ft,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"==this.scheme&&1==e&&dt(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+=ot(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 M(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+"://"+ot(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(b(t)+":",vt)},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+=ht(e[n],lt)}},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+=ht(e[n],lt)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?ot(t):ot(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,Et)},getHostname:function(){var t=this.host;return null===t?"":ot(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,kt)},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,Ot))},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,It))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""==(t=b(t))?this.query=null:("?"==P(t,0)&&(t=X(t,1)),this.query="",this.parse(t,Dt)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!=(t=b(t))?("#"==P(t,0)&&(t=X(t,1)),this.fragment="",this.parse(t,Nt)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var zt=function(t){var e=f(this,jt),n=_(arguments.length,1)>1?arguments[1]:void 0,i=A(e,new Ft(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())},jt=zt.prototype,Bt=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(jt,"href",Bt("serialize","setHref")),h(jt,"origin",Bt("getOrigin")),h(jt,"protocol",Bt("getProtocol","setProtocol")),h(jt,"username",Bt("getUsername","setUsername")),h(jt,"password",Bt("getPassword","setPassword")),h(jt,"host",Bt("getHost","setHost")),h(jt,"hostname",Bt("getHostname","setHostname")),h(jt,"port",Bt("getPort","setPort")),h(jt,"pathname",Bt("getPathname","setPathname")),h(jt,"search",Bt("getSearch","setSearch")),h(jt,"searchParams",Bt("getSearchParams")),h(jt,"hash",Bt("getHash","setHash"))),l(jt,"toJSON",(function(){return S(this).serialize()}),{enumerable:!0}),l(jt,"toString",(function(){return S(this).serialize()}),{enumerable:!0}),O){var $t=O.createObjectURL,Xt=O.revokeObjectURL;$t&&l(zt,"createObjectURL",u($t,O)),Xt&&l(zt,"revokeObjectURL",u(Xt,O))}m(zt,"URL"),r({global:!0,constructor:!0,forced:!o,sham:!a},{URL:zt})},function(t,e,n){"use strict";var i=n(7),r=n(34),a=n(6),o=n(36),s=r("iterator");t.exports=!i((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),i="";return t.pathname="c%20d",e.forEach((function(t,n){e.delete("b"),i+=n+t})),n.delete("a",2),n.delete("b",void 0),o&&(!t.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!e.size&&(o||!a)||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[s]||"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"!==i||"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))},m=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 m=r;for(n=0;n<t.length;n++)(i=t[n])>=o&&i<m&&(m=i);var _=y+1;if(m-o>l((r-c)/_))throw u(s);for(c+=(m-o)*_,o=m,n=0;n<t.length;n++){if((i=t[n])<o&&++c>r)throw u(s);if(i==o){for(var T=c,w=36;;){var A=w<=p?1:w>=p+26?26:w-p;if(T<A)break;var S=T-A,E=36-A;g(e,h(x(A+S%E))),T=l(S/E),w+=36}g(e,h(x(T))),p=b(c,_,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--"+m(n):n);return d(i,".")}},function(t,e,n){"use strict";n(169);var i=n(3),r=n(4),a=n(8),o=n(14),s=n(6),u=n(517),c=n(48),l=n(79),h=n(210),f=n(84),d=n(171),g=n(52),p=n(211),v=n(21),y=n(39),x=n(86),b=n(70),m=n(47),_=n(20),T=n(69),w=n(72),A=n(11),S=n(135),E=n(136),k=n(328),O=n(34),M=n(189),R=O("iterator"),C="URLSearchParams",I=C+"Iterator",P=g.set,L=g.getterFor(C),D=g.getterFor(I),N=Object.getOwnPropertyDescriptor,F=function(t){if(!s)return r[t];var e=N(r,t);return e&&e.value},z=F("fetch"),j=F("Request"),B=F("Headers"),$=j&&j.prototype,X=B&&B.prototype,U=r.RegExp,Y=r.TypeError,V=r.decodeURIComponent,G=r.encodeURIComponent,H=o("".charAt),W=o([].join),q=o([].push),Z=o("".replace),K=o([].shift),J=o([].splice),Q=o("".split),tt=o("".slice),et=/\+/g,nt=Array(4),it=function(t){return nt[t-1]||(nt[t-1]=U("((?:%[\\da-f]{2}){"+t+"})","gi"))},rt=function(t){try{return V(t)}catch(e){return t}},at=function(t){var e=Z(t,et," "),n=4;try{return V(e)}catch(t){for(;n;)e=Z(e,it(n--),rt);return e}},ot=/[!'()~]|%20/g,st={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ut=function(t){return st[t]},ct=function(t){return Z(G(t),ot,ut)},lt=d((function(t,e){P(this,{type:I,iterator:S(L(t).entries),kind:e})}),"Iterator",(function(){var t=D(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),ht=function(t){this.entries=[],this.url=null,void 0!==t&&(_(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===H(t,0)?tt(t,1):t:T(t)))};ht.prototype={type:C,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,n,i,r,o,s,u,c=E(t);if(c)for(n=(e=S(t,c)).next;!(i=a(n,e)).done;){if(o=(r=S(m(i.value))).next,(s=a(o,r)).done||(u=a(o,r)).done||!a(o,r).done)throw Y("Expected sequence with length 2");q(this.entries,{key:T(s.value),value:T(u.value)})}else for(var l in t)y(t,l)&&q(this.entries,{key:l,value:T(t[l])})},parseQuery:function(t){if(t)for(var e,n,i=Q(t,"&"),r=0;r<i.length;)(e=i[r++]).length&&(n=Q(e,"="),q(this.entries,{key:at(K(n)),value:at(W(n,"="))}))},serialize:function(){for(var t,e=this.entries,n=[],i=0;i<e.length;)t=e[i++],q(n,ct(t.key)+"="+ct(t.value));return W(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ft=function(){p(this,dt);var t=P(this,new ht(arguments.length>0?arguments[0]:void 0));s||(this.size=t.entries.length)},dt=ft.prototype;if(h(dt,{append:function(t,e){var n=L(this);k(arguments.length,2),q(n.entries,{key:T(t),value:T(e)}),s||this.length++,n.updateURL()},delete:function(t){for(var e=L(this),n=k(arguments.length,1),i=e.entries,r=T(t),a=n<2?void 0:arguments[1],o=void 0===a?a:T(a),u=0;u<i.length;){var c=i[u];if(c.key!==r||void 0!==o&&c.value!==o)u++;else if(J(i,u,1),void 0!==o)break}s||(this.size=i.length),e.updateURL()},get:function(t){var e=L(this).entries;k(arguments.length,1);for(var n=T(t),i=0;i<e.length;i++)if(e[i].key===n)return e[i].value;return null},getAll:function(t){var e=L(this).entries;k(arguments.length,1);for(var n=T(t),i=[],r=0;r<e.length;r++)e[r].key===n&&q(i,e[r].value);return i},has:function(t){for(var e=L(this).entries,n=k(arguments.length,1),i=T(t),r=n<2?void 0:arguments[1],a=void 0===r?r:T(r),o=0;o<e.length;){var s=e[o++];if(s.key===i&&(void 0===a||s.value===a))return!0}return!1},set:function(t,e){var n=L(this);k(arguments.length,1);for(var i,r=n.entries,a=!1,o=T(t),u=T(e),c=0;c<r.length;c++)(i=r[c]).key===o&&(a?J(r,c--,1):(a=!0,i.value=u));a||q(r,{key:o,value:u}),s||(this.size=r.length),n.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=x(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 lt(this,"keys")},values:function(){return new lt(this,"values")},entries:function(){return new lt(this,"entries")}},{enumerable:!0}),c(dt,R,dt.entries,{name:"entries"}),c(dt,"toString",(function(){return L(this).serialize()}),{enumerable:!0}),s&&l(dt,"size",{get:function(){return L(this).entries.length},configurable:!0,enumerable:!0}),f(ft,C),i({global:!0,constructor:!0,forced:!u},{URLSearchParams:ft}),!u&&v(B)){var gt=o(X.has),pt=o(X.set),vt=function(t){if(_(t)){var e,n=t.body;if(b(n)===C)return e=t.headers?new B(t.headers):new B,gt(e,"content-type")||pt(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),w(t,{body:A(0,T(n)),headers:A(0,e)})}return t};if(v(z)&&i({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return z(t,arguments.length>1?vt(arguments[1]):{})}}),v(j)){var yt=function(t){return p(this,$),new j(t,arguments.length>1?vt(arguments[1]):{})};$.constructor=yt,yt.prototype=$,i({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:yt})}}t.exports={URLSearchParams:ft,getState:L}},function(t,e,n){"use strict";var i=n(3),r=n(24),a=n(7),o=n(328),s=n(69),u=n(517),c=r("URL");i({target:"URL",stat:!0,forced:!(u&&a((function(){c.canParse()})))},{canParse:function(t){var e=o(arguments.length,1),n=s(t),i=e<2||void 0===arguments[1]?void 0:s(arguments[1]);try{return!!new c(n,i)}catch(t){return!1}}})},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){"use strict";n(519)},function(t,e,n){"use strict";var i=n(48),r=n(14),a=n(69),o=n(328),s=URLSearchParams,u=s.prototype,c=r(u.append),l=r(u.delete),h=r(u.forEach),f=r([].push),d=new s("a=1&a=2&b=3");d.delete("a",1),d.delete("b",void 0),d+""!="a=2"&&i(u,"delete",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return l(this,t);var i=[];h(this,(function(t,e){f(i,{key:e,value:t})})),o(e,1);for(var r,s=a(t),u=a(n),d=0,g=0,p=!1,v=i.length;d<v;)r=i[d++],p||r.key===s?(p=!0,l(this,r.key)):g++;for(;g<v;)(r=i[g++]).key===s&&r.value===u||c(this,r.key,r.value)}),{enumerable:!0,unsafe:!0})},function(t,e,n){"use strict";var i=n(48),r=n(14),a=n(69),o=n(328),s=URLSearchParams,u=s.prototype,c=r(u.getAll),l=r(u.has),h=new s("a=1");!h.has("a",2)&&h.has("a",void 0)||i(u,"has",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return l(this,t);var i=c(this,t);o(e,1);for(var r=a(n),s=0;s<i.length;)if(i[s++]===r)return!0;return!1}),{enumerable:!0,unsafe:!0})},function(t,e,n){"use strict";var i=n(6),r=n(14),a=n(79),o=URLSearchParams.prototype,s=r(o.forEach);i&&!("size"in o)&&a(o,"size",{get:function(){var t=0;return s(this,(function(){t++})),t},configurable:!0,enumerable:!0})},function(t,e,n){"use strict";n.r(e),n.d(e,{bb:function(){return Gp},default:function(){return Gp}});var i={};n.r(i),n.d(i,{area:function(){return Hg},areaLineRange:function(){return Wg},areaSpline:function(){return qg},areaSplineRange:function(){return Zg},areaStep:function(){return Kg},bar:function(){return op},bubble:function(){return sp},candlestick:function(){return up},donut:function(){return ep},gauge:function(){return np},line:function(){return Jg},pie:function(){return ip},polar:function(){return rp},radar:function(){return ap},scatter:function(){return cp},spline:function(){return Qg},step:function(){return tp},treemap:function(){return lp}});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 Xp},subchart:function(){return Up},zoom:function(){return Yp}});var o=new Date,s=new Date;function u(t,e,n,i){var r=this;function c(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return c.floor=function(e){return a(this,r),t(e=new Date(+e)),e}.bind(this),c.ceil=function(n){return a(this,r),t(n=new Date(n-1)),e(n,1),t(n),n}.bind(this),c.round=function(t){a(this,r);var e=c(t),n=c.ceil(t);return t-e<n-t?e:n}.bind(this),c.offset=function(t,n){return a(this,r),e(t=new Date(+t),null==n?1:Math.floor(n)),t}.bind(this),c.range=function(n,i,o){a(this,r);var s,u=[];if(n=c.ceil(n),o=null==o?1:Math.floor(o),!(n<i&&o>0))return u;do{u.push(s=new Date(+n)),e(n,o),t(n)}while(s<n&&n<i);return u}.bind(this),c.filter=function(n){var i=this;return a(this,r),u(function(e){if(a(this,i),e>=e)for(;t(e),!n(e);)e.setTime(e-1)}.bind(this),function(t,r){if(a(this,i),t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}.bind(this))}.bind(this),n&&(c.count=function(e,i){return a(this,r),o.setTime(+e),s.setTime(+i),t(o),t(s),Math.floor(n(o,s))}.bind(this),c.every=function(t){var e=this;return a(this,r),t=Math.floor(t),isFinite(t)&&t>0?t>1?c.filter(i?function(n){return a(this,e),i(n)%t==0}.bind(this):function(n){return a(this,e),c.count(0,n)%t==0}.bind(this)):c:null}.bind(this)),c}var c=1e3,l=6e4,h=36e5,f=864e5,d=6048e5,g=2592e6,p=31536e6;function v(t){var e=this;return u(function(n){a(this,e),n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}.bind(this),function(t,n){a(this,e),t.setDate(t.getDate()+7*n)}.bind(this),function(t,n){return a(this,e),(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*l)/d}.bind(this))}var y=v(0),x=v(1),b=v(2),m=v(3),_=v(4),T=v(5),w=v(6);y.range,x.range,b.range,m.range,_.range,T.range,w.range;function A(t){var e=this;return u(function(n){a(this,e),n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}.bind(this),function(t,n){a(this,e),t.setUTCDate(t.getUTCDate()+7*n)}.bind(this),function(t,n){return a(this,e),(n-t)/d}.bind(this))}var S=A(0),E=A(1),k=A(2),O=A(3),M=A(4),R=A(5),C=A(6),I=(S.range,E.range,k.range,O.range,M.range,R.range,C.range,void 0),P=u(function(t){return a(this,I),t.setHours(0,0,0,0)}.bind(void 0),function(t,e){return a(this,I),t.setDate(t.getDate()+e)}.bind(void 0),function(t,e){return a(this,I),(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*l)/f}.bind(void 0),function(t){return a(this,I),t.getDate()-1}.bind(void 0)),L=(P.range,u(function(t){a(this,I),t.setUTCHours(0,0,0,0)}.bind(void 0),function(t,e){a(this,I),t.setUTCDate(t.getUTCDate()+e)}.bind(void 0),function(t,e){return a(this,I),(e-t)/f}.bind(void 0),function(t){return a(this,I),t.getUTCDate()-1}.bind(void 0))),D=(L.range,u(function(t){a(this,I),t.setUTCHours(0,0,0,0)}.bind(void 0),function(t,e){a(this,I),t.setUTCDate(t.getUTCDate()+e)}.bind(void 0),function(t,e){return a(this,I),(e-t)/f}.bind(void 0),function(t){return a(this,I),Math.floor(t/f)}.bind(void 0))),N=(D.range,void 0),F=u(function(t){a(this,N),t.setMonth(0,1),t.setHours(0,0,0,0)}.bind(void 0),function(t,e){a(this,N),t.setFullYear(t.getFullYear()+e)}.bind(void 0),function(t,e){return a(this,N),e.getFullYear()-t.getFullYear()}.bind(void 0),function(t){return a(this,N),t.getFullYear()}.bind(void 0));F.every=function(t){var e=this;return a(this,N),isFinite(t=Math.floor(t))&&t>0?u(function(n){a(this,e),n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}.bind(this),function(n,i){a(this,e),n.setFullYear(n.getFullYear()+i*t)}.bind(this)):null}.bind(void 0);F.range;var z=u(function(t){a(this,N),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}.bind(void 0),function(t,e){a(this,N),t.setUTCFullYear(t.getUTCFullYear()+e)}.bind(void 0),function(t,e){return a(this,N),e.getUTCFullYear()-t.getUTCFullYear()}.bind(void 0),function(t){return a(this,N),t.getUTCFullYear()}.bind(void 0));z.every=function(t){var e=this;return a(this,N),isFinite(t=Math.floor(t))&&t>0?u(function(n){a(this,e),n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}.bind(this),function(n,i){a(this,e),n.setUTCFullYear(n.getUTCFullYear()+i*t)}.bind(this)):null}.bind(void 0);z.range;function j(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 B(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 $(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var X,U,Y,V,G,H={"-":"",_:" ",0:"0"},W=/^\s*\d+/,q=/^%/,Z=/[\\^$*+?|[\]().{}]/g;function K(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 J(t){return t.replace(Z,"\\$&")}function Q(t){return new RegExp("^(?:"+t.map(J).join("|")+")","i")}function tt(t){var e=this;return new Map(t.map(function(t,n){return a(this,e),[t.toLowerCase(),n]}.bind(this)))}function et(t,e,n){var i=W.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function nt(t,e,n){var i=W.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function it(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function rt(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function at(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function ot(t,e,n){var i=W.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function st(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function ut(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 ct(t,e,n){var i=W.exec(e.slice(n,n+1));return i?(t.q=3*i[0]-3,n+i[0].length):-1}function lt(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function ht(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function ft(t,e,n){var i=W.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function dt(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function gt(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function pt(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function vt(t,e,n){var i=W.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function yt(t,e,n){var i=W.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function xt(t,e,n){var i=q.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function bt(t,e,n){var i=W.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function mt(t,e,n){var i=W.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function _t(t,e){return K(t.getDate(),e,2)}function Tt(t,e){return K(t.getHours(),e,2)}function wt(t,e){return K(t.getHours()%12||12,e,2)}function At(t,e){return K(1+P.count(F(t),t),e,3)}function St(t,e){return K(t.getMilliseconds(),e,3)}function Et(t,e){return St(t,e)+"000"}function kt(t,e){return K(t.getMonth()+1,e,2)}function Ot(t,e){return K(t.getMinutes(),e,2)}function Mt(t,e){return K(t.getSeconds(),e,2)}function Rt(t){var e=t.getDay();return 0===e?7:e}function Ct(t,e){return K(y.count(F(t)-1,t),e,2)}function It(t){var e=t.getDay();return e>=4||0===e?_(t):_.ceil(t)}function Pt(t,e){return t=It(t),K(_.count(F(t),t)+(4===F(t).getDay()),e,2)}function Lt(t){return t.getDay()}function Dt(t,e){return K(x.count(F(t)-1,t),e,2)}function Nt(t,e){return K(t.getFullYear()%100,e,2)}function Ft(t,e){return K((t=It(t)).getFullYear()%100,e,2)}function zt(t,e){return K(t.getFullYear()%1e4,e,4)}function jt(t,e){var n=t.getDay();return K((t=n>=4||0===n?_(t):_.ceil(t)).getFullYear()%1e4,e,4)}function Bt(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+K(e/60|0,"0",2)+K(e%60,"0",2)}function $t(t,e){return K(t.getUTCDate(),e,2)}function Xt(t,e){return K(t.getUTCHours(),e,2)}function Ut(t,e){return K(t.getUTCHours()%12||12,e,2)}function Yt(t,e){return K(1+L.count(z(t),t),e,3)}function Vt(t,e){return K(t.getUTCMilliseconds(),e,3)}function Gt(t,e){return Vt(t,e)+"000"}function Ht(t,e){return K(t.getUTCMonth()+1,e,2)}function Wt(t,e){return K(t.getUTCMinutes(),e,2)}function qt(t,e){return K(t.getUTCSeconds(),e,2)}function Zt(t){var e=t.getUTCDay();return 0===e?7:e}function Kt(t,e){return K(S.count(z(t)-1,t),e,2)}function Jt(t){var e=t.getUTCDay();return e>=4||0===e?M(t):M.ceil(t)}function Qt(t,e){return t=Jt(t),K(M.count(z(t),t)+(4===z(t).getUTCDay()),e,2)}function te(t){return t.getUTCDay()}function ee(t,e){return K(E.count(z(t)-1,t),e,2)}function ne(t,e){return K(t.getUTCFullYear()%100,e,2)}function ie(t,e){return K((t=Jt(t)).getUTCFullYear()%100,e,2)}function re(t,e){return K(t.getUTCFullYear()%1e4,e,4)}function ae(t,e){var n=t.getUTCDay();return K((t=n>=4||0===n?M(t):M.ceil(t)).getUTCFullYear()%1e4,e,4)}function oe(){return"+0000"}function se(){return"%"}function ue(t){return+t}function ce(t){return Math.floor(+t/1e3)}function le(){}function he(t){return null==t?le:function(){return this.querySelector(t)}}function fe(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function de(){return[]}function ge(t){return null==t?de:function(){return this.querySelectorAll(t)}}function pe(t){return function(){return this.matches(t)}}function ve(t){return function(e){return e.matches(t)}}X=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=Q(r),l=tt(r),h=Q(a),f=tt(a),d=Q(o),g=tt(o),p=Q(s),v=tt(s),y=Q(u),b=tt(u),m={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:_t,e:_t,f:Et,g:Ft,G:jt,H:Tt,I:wt,j:At,L:St,m:kt,M:Ot,p:function(t){return r[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:ue,s:ce,S:Mt,u:Rt,U:Ct,V:Pt,w:Lt,W:Dt,x:null,X:null,y:Nt,Y:zt,Z:Bt,"%":se},_={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:$t,e:$t,f:Gt,g:ie,G:ae,H:Xt,I:Ut,j:Yt,L:Vt,m:Ht,M:Wt,p:function(t){return r[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:ue,s:ce,S:qt,u:Zt,U:Kt,V:Qt,w:te,W:ee,x:null,X:null,y:ne,Y:re,Z:oe,"%":se},T={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 S(t,e,n,i)},d:ht,e:ht,f:yt,g:st,G:ot,H:dt,I:dt,j:ft,L:vt,m:lt,M:gt,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:ct,Q:bt,s:mt,S:pt,u:nt,U:it,V:rt,w:et,W:at,x:function(t,e,i){return S(t,n,e,i)},X:function(t,e,n){return S(t,i,e,n)},y:st,Y:ot,Z:ut,"%":xt};function w(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=H[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=$(1900,void 0,1);if(S(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=B($(a.y,0,1))).getUTCDay(),i=r>4||0===r?E.ceil(i):E(i),i=L.offset(i,7*(a.V-1)),a.y=i.getUTCFullYear(),a.m=i.getUTCMonth(),a.d=i.getUTCDate()+(a.w+6)%7):(r=(i=j($(a.y,0,1))).getDay(),i=r>4||0===r?x.ceil(i):x(i),i=P.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?B($(a.y,0,1)).getUTCDay():j($(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,B(a)):j(a)}}function S(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=T[r in H?e.charAt(o++):r])||(i=a(t,n,i))<0)return-1}else if(r!=n.charCodeAt(i++))return-1}return i}return m.x=w(n,m),m.X=w(i,m),m.c=w(e,m),_.x=w(n,_),_.X=w(i,_),_.c=w(e,_),{format:function(t){var e=w(t+="",m);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=w(t+="",_);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"]}),U=X.format,Y=X.parse,V=X.utcFormat,G=X.utcParse;var ye=Array.prototype.find;function xe(){return this.firstElementChild}var be=Array.prototype.filter;function me(){return Array.from(this.children)}function _e(t){return Array(t.length)}function Te(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function we(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 Te(t,a[s]);for(;s<u;++s)(o=e[s])&&(r[s]=o)}function Ae(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 Te(t,a[s]);for(s=0;s<h;++s)(u=e[s])&&l.get(d[s])===u&&(r[s]=u)}function Se(t){return t.__data__}function Ee(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function ke(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Oe(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 Me(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 Me(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 Me(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}Te.prototype={constructor:Te,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 Re="http://www.w3.org/1999/xhtml",Ce={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 Ie(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Ce.hasOwnProperty(e)?{space:Ce[e],local:t}:t}function Pe(t){return function(){this.removeAttribute(t)}}function Le(t){return function(){this.removeAttributeNS(t.space,t.local)}}function De(t,e){return function(){this.setAttribute(t,e)}}function Ne(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Fe(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function ze(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 je(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Be(t){return function(){this.style.removeProperty(t)}}function $e(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Xe(t,e,n){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function Ue(t,e){return t.style.getPropertyValue(e)||je(t).getComputedStyle(t,null).getPropertyValue(e)}function Ye(t){return function(){delete this[t]}}function Ve(t,e){return function(){this[t]=e}}function Ge(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function He(t){return t.trim().split(/^|\s+/)}function We(t){return t.classList||new qe(t)}function qe(t){this._node=t,this._names=He(t.getAttribute("class")||"")}function Ze(t,e){for(var n=We(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function Ke(t,e){for(var n=We(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function Je(t){return function(){Ze(this,t)}}function Qe(t){return function(){Ke(this,t)}}function tn(t,e){return function(){(e.apply(this,arguments)?Ze:Ke)(this,t)}}function en(){this.textContent=""}function nn(t){return function(){this.textContent=t}}function rn(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function an(){this.innerHTML=""}function on(t){return function(){this.innerHTML=t}}function sn(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function un(){this.nextSibling&&this.parentNode.appendChild(this)}function cn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ln(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Re&&e.documentElement.namespaceURI===Re?e.createElement(t):e.createElementNS(n,t)}}function hn(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function fn(t){var e=Ie(t);return(e.local?hn:ln)(e)}function dn(){return null}function gn(){var t=this.parentNode;t&&t.removeChild(this)}function pn(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function vn(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function yn(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 xn(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 bn(t,e,n){var i=je(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 mn(t,e){return function(){return bn(this,t,e)}}function _n(t,e){return function(){return bn(this,t,e.apply(this,arguments))}}qe.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 Tn,wn=n(527),An=wn.mark(Sn);function Sn(){var t,e,n,i,r,a,o;return wn.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()}}),An,this)}var En=[null];function kn(t,e){this._groups=t,this._parents=e}function On(){return new kn([[document.documentElement]],En)}kn.prototype=On.prototype=(Tn={constructor:kn,select:function(t){"function"!=typeof t&&(t=he(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 kn(i,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return fe(t.apply(this,arguments))}}(t):ge(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 kn(i,r)},selectChild:function(t){return this.select(null==t?xe:function(t){return function(){return ye.call(this.children,t)}}("function"==typeof t?t:ve(t)))},selectChildren:function(t){return this.selectAll(null==t?me:function(t){return function(){return be.call(this.children,t)}}("function"==typeof t?t:ve(t)))},filter:function(t){"function"!=typeof t&&(t=pe(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 kn(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,Se);var n=e?Ae:we,i=this._parents,r=this._groups;"function"!=typeof t&&(t=function(t){return function(){return t}}(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=Ee(t.call(l,l&&l.__data__,c,i)),g=d.length,p=s[c]=Array(g),v=o[c]=Array(g);n(l,h,p,v,u[c]=Array(f),d,e);for(var y,x,b=0,m=0;b<g;++b)if(y=p[b]){for(b>=m&&(m=b+1);!(x=v[m])&&++m<g;);y._next=x||null}}return(o=new kn(o,i))._enter=s,o._exit=u,o},enter:function(){return new kn(this._enter||this._groups.map(_e),this._parents)},exit:function(){return new kn(this._exit||this._groups.map(_e),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 kn(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=ke);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 kn(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=Oe(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=Ie(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?Le:Pe:"function"==typeof e?n.local?ze:Fe:n.local?Ne:De)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?Be:"function"==typeof e?Xe:$e)(t,e,null==n?"":n)):Ue(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Ye:"function"==typeof e?Ge:Ve)(t,e)):this.node()[t]},classed:function(t,e){var n=He(t+"");if(arguments.length<2){for(var i=We(this.node()),r=-1,a=n.length;++r<a;)if(!i.contains(n[r]))return!1;return!0}return this.each(("function"==typeof e?tn:e?Je:Qe)(n,e))},text:function(t){return arguments.length?this.each(null==t?en:("function"==typeof t?rn:nn)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?an:("function"==typeof t?sn:on)(t)):this.node().innerHTML},raise:function(){return this.each(un)},lower:function(){return this.each(cn)},append:function(t){var e="function"==typeof t?t:fn(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:fn(t),i=null==e?dn:"function"==typeof e?e:he(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(gn)},clone:function(t){return this.select(t?vn:pn)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,r,a=function(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}}))}(t+""),o=a.length;if(!(arguments.length<2)){for(s=e?xn:yn,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?_n:mn)(t,e))}},Tn[Symbol.iterator]=Sn,Tn);var Mn=On;function Rn(t){return"string"==typeof t?new kn([[document.querySelector(t)]],[document.documentElement]):new kn([[t]],En)}var Cn=void 0,In=function(){return a(this,Cn),"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)(),Pn="function"==typeof In.requestAnimationFrame,Ln="function"==typeof In.requestIdleCallback,Dn=Pn?In.requestAnimationFrame:function(t){return a(this,Cn),setTimeout(t,1)}.bind(void 0),Nn=Pn?In.cancelAnimationFrame:function(t){return a(this,Cn),clearTimeout(t)}.bind(void 0),Fn=Ln?In.requestIdleCallback:Dn,zn=(Ln&&In.cancelIdleCallback,null==In?void 0:In.document),jn={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",TREEMAP:"treemap"},Bn={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",TREEMAP:"initTreemap"},$n={Area:[jn.AREA,jn.AREA_SPLINE,jn.AREA_SPLINE_RANGE,jn.AREA_LINE_RANGE,jn.AREA_STEP],AreaRange:[jn.AREA_SPLINE_RANGE,jn.AREA_LINE_RANGE],Arc:[jn.PIE,jn.DONUT,jn.GAUGE,jn.POLAR,jn.RADAR],Line:[jn.LINE,jn.SPLINE,jn.AREA,jn.AREA_SPLINE,jn.AREA_SPLINE_RANGE,jn.AREA_LINE_RANGE,jn.STEP,jn.AREA_STEP],Step:[jn.STEP,jn.AREA_STEP],Spline:[jn.SPLINE,jn.AREA_SPLINE,jn.AREA_SPLINE_RANGE]};function Xn(t){return Xn="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},Xn(t)}function Un(t){var e=function(t,e){if("object"!==Xn(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==Xn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Xn(e)?e:String(e)}function Yn(t,e,n){return(e=Un(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Vn(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 Gn={value:function(){a(this,undefined)}.bind(void 0)};function Hn(){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 Wn(i)}function Wn(t){this._=t}function qn(t,e){for(var n,i=0,r=t.length;i<r;++i)if((n=t[i]).name===e)return n.value}function Zn(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=Gn,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}Wn.prototype=Hn.prototype={constructor:Wn,on:function(t,e){var n,i,r=this._,a=(i=r,(t+"").trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!i.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),o=-1,s=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o<s;)if(n=(t=a[o]).type)r[n]=Zn(r[n],t.name,e);else if(null==e)for(n in r)r[n]=Zn(r[n],t.name,null);return this}for(;++o<s;)if((n=(t=a[o]).type)&&(n=qn(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Wn(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 Kn=Hn,Jn={passive:!1},Qn={capture:!0,passive:!1};function ti(t){t.stopImmediatePropagation()}function ei(t){t.preventDefault(),t.stopImmediatePropagation()}function ni(t){var e=t.document.documentElement,n=Rn(t).on("dragstart.drag",ei,Qn);"onselectstart"in e?n.on("selectstart.drag",ei,Qn):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function ii(t,e){var n=t.document.documentElement,i=Rn(t).on("dragstart.drag",null);e&&(i.on("click.drag",ei,Qn),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 ri(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function ai(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function oi(){}var si=.7,ui=1/si,ci=/^#([0-9a-f]{3,8})$/,li=new RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),hi=new RegExp("^rgb\\(\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),fi=new RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),di=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*\\)$"),gi=new RegExp("^hsl\\(\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),pi=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*\\)$"),vi={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 yi(){return this.rgb().formatHex()}function xi(){return this.rgb().formatRgb()}function bi(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=ci.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?mi(e):3===n?new wi(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?_i(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?_i(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=li.exec(t))?new wi(e[1],e[2],e[3],1):(e=hi.exec(t))?new wi(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=fi.exec(t))?_i(e[1],e[2],e[3],e[4]):(e=di.exec(t))?_i(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=gi.exec(t))?Mi(e[1],e[2]/100,e[3]/100,1):(e=pi.exec(t))?Mi(e[1],e[2]/100,e[3]/100,e[4]):vi.hasOwnProperty(t)?mi(vi[t]):"transparent"===t?new wi(NaN,NaN,NaN,0):null}function mi(t){return new wi(t>>16&255,t>>8&255,255&t,1)}function _i(t,e,n,i){return i<=0&&(t=e=n=NaN),new wi(t,e,n,i)}function Ti(t,e,n,i){return 1===arguments.length?((r=t)instanceof oi||(r=bi(r)),r?new wi((r=r.rgb()).r,r.g,r.b,r.opacity):new wi):new wi(t,e,n,null==i?1:i);var r}function wi(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function Ai(){return"#"+Oi(this.r)+Oi(this.g)+Oi(this.b)}function Si(){var t=Ei(this.opacity);return(1===t?"rgb(":"rgba(")+ki(this.r)+", "+ki(this.g)+", "+ki(this.b)+(1===t?")":", "+t+")")}function Ei(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ki(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Oi(t){return((t=ki(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 Ci(t,e,n,i)}function Ri(t){if(t instanceof Ci)return new Ci(t.h,t.s,t.l,t.opacity);if(t instanceof oi||(t=bi(t)),!t)return new Ci;if(t instanceof Ci)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 Ci(o,s,u,t.opacity)}function Ci(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function Ii(t){return(t=(t||0)%360)<0?t+360:t}function Pi(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 Di(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}ri(oi,bi,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:yi,formatHex:yi,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ri(this).formatHsl()},formatRgb:xi,toString:xi}),ri(wi,Ti,ai(oi,{brighter:function(t){return t=null==t?ui:Math.pow(ui,t),new wi(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?si:Math.pow(si,t),new wi(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},clamp:function(){return new wi(ki(this.r),ki(this.g),ki(this.b),Ei(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:Ai,formatHex:Ai,formatHex8:function(){return"#"+Oi(this.r)+Oi(this.g)+Oi(this.b)+Oi(255*(isNaN(this.opacity)?1:this.opacity))},formatRgb:Si,toString:Si})),ri(Ci,(function(t,e,n,i){return 1===arguments.length?Ri(t):new Ci(t,e,n,null==i?1:i)}),ai(oi,{brighter:function(t){return t=null==t?ui:Math.pow(ui,t),new Ci(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?si:Math.pow(si,t),new Ci(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 Ci(Ii(this.h),Pi(this.s),Pi(this.l),Ei(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=Ei(this.opacity);return(1===t?"hsl(":"hsla(")+Ii(this.h)+", "+100*Pi(this.s)+"%, "+100*Pi(this.l)+"%"+(1===t?")":", "+t+")")}}));var Ni=function(t){var e=this;return a(this,undefined),function(){return a(this,e),t}.bind(this)}.bind(void 0);function Fi(t,e){return function(n){return t+n*e}}function zi(t){return 1==(t=+t)?ji: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):Ni(isNaN(e)?n:e)}}function ji(t,e){var n=e-t;return n?Fi(t,n):Ni(isNaN(t)?e:t)}var Bi=function t(e){var n=zi(e);function i(t,e){var i=n((t=Ti(t)).r,(e=Ti(e)).r),r=n(t.g,e.g),a=n(t.b,e.b),o=ji(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 $i(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=Ti(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+""}}}$i((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 Di((n-i/e)*e,o,r,a,s)}})),$i((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 Di((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 Ui(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Yi(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]=Ki(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 Vi(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function Gi(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Hi(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]=Ki(t[n],e[n]):r[n]=e[n];return function(t){for(n in i)r[n]=i[n](t);return r}}var Wi=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,qi=new RegExp(Wi.source,"g");function Zi(t,e){var n,i,r,a=Wi.lastIndex=qi.lastIndex=0,o=-1,s=[],u=[];for(t+="",e+="";(n=Wi.exec(t))&&(i=qi.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:Gi(n,i)})),a=qi.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 Ki(t,e){var n,i=typeof e;return null==e||"boolean"===i?Ni(e):("number"===i?Gi:"string"===i?(n=bi(e))?(e=n,Bi):Zi:e instanceof bi?Bi:e instanceof Date?Vi:Ui(e)?Xi:Array.isArray(e)?Yi:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Hi:Gi)(t,e)}var Ji,Qi,tr=0,er=0,nr=0,ir=1e3,rr=0,ar=0,or=0,sr="object"==typeof performance&&performance.now?performance:Date,ur="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function cr(){return ar||(ur(lr),ar=sr.now()+or)}function lr(){ar=0}function hr(){this._call=this._time=this._next=null}function fr(t,e,n){var i=new hr;return i.restart(t,e,n),i}function dr(){ar=(rr=sr.now())+or,tr=er=0;try{!function(){cr(),++tr;for(var t,e=Ji;e;)(t=ar-e._time)>=0&&e._call.call(void 0,t),e=e._next;--tr}()}finally{tr=0,function(){var t,e,n=Ji,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:Ji=e);Qi=t,pr(i)}(),ar=0}}function gr(){var t=sr.now(),e=t-rr;e>ir&&(or-=e,rr=t)}function pr(t){tr||(er&&(er=clearTimeout(er)),t-ar>24?(t<1/0&&(er=setTimeout(dr,t-sr.now()-or)),nr&&(nr=clearInterval(nr))):(nr||(rr=sr.now(),nr=setInterval(gr,ir)),tr=1,ur(dr)))}function vr(t,e,n){var i=this,r=new hr;return e=null==e?0:+e,r.restart(function(n){a(this,i),r.stop(),t(n+e)}.bind(this),e,n),r}hr.prototype=fr.prototype={constructor:hr,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?cr():+n)+(null==e?0:+e),this._next||Qi===this||(Qi?Qi._next=this:Ji=this,Qi=this),this._call=t,this._time=n,pr()},stop:function(){this._call&&(this._call=null,this._time=1/0,pr())}};var yr=Kn("start","end","cancel","interrupt"),xr=[],br=0,mr=1,_r=2,Tr=3,wr=4,Ar=5,Sr=6;function Er(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(n.state!==mr)return s();for(c in r)if((f=r[c]).name===n.name){if(f.state===Tr)return vr(a);f.state===wr?(f.state=Sr,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete r[c]):+c<e&&(f.state=Sr,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete r[c])}if(vr((function(){n.state===Tr&&(n.state=wr,n.timer.restart(o,n.delay,n.time),o(u))})),n.state=_r,n.on.call("start",t,t.__data__,n.index,n.group),n.state===_r){for(n.state=Tr,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=Ar,1),a=-1,o=i.length;++a<o;)i[a].call(t,r);n.state===Ar&&(n.on.call("end",t,t.__data__,n.index,n.group),s())}function s(){for(var i in n.state=Sr,n.timer.stop(),delete r[e],r)return;delete t.__transition}r[e]=n,n.timer=fr((function(t){n.state=mr,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:yr,tween:xr,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:br})}function kr(t,e){var n=Mr(t,e);if(n.state>br)throw new Error("too late; already scheduled");return n}function Or(t,e){var n=Mr(t,e);if(n.state>Tr)throw new Error("too late; already running");return n}function Mr(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Rr(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>_r&&n.state<Ar,n.state=Sr,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 Cr,Ir=180/Math.PI,Pr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Lr(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)*Ir,skewX:Math.atan(u)*Ir,scaleX:o,scaleY:s}}function Dr(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:Gi(t,r)},{i:u-2,x:Gi(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:Gi(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:Gi(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:Gi(t,n)},{i:s-2,x:Gi(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 Nr=Dr((function(t){var e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Pr:Lr(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),Fr=Dr((function(t){return null==t?Pr:(Cr||(Cr=document.createElementNS("http://www.w3.org/2000/svg","g")),Cr.setAttribute("transform",t),(t=Cr.transform.baseVal.consolidate())?Lr((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Pr)}),", ",")",")");function zr(t,e){var n,i;return function(){var r=Or(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 jr(t,e,n){var i,r;if("function"!=typeof n)throw new Error;return function(){var a=Or(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 Br(t,e,n){var i=t._id;return t.each((function(){var t=Or(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return Mr(t,i).value[e]}}function $r(t,e){var n;return("number"==typeof e?Gi:e instanceof bi?Bi:(n=bi(e))?(e=n,Bi):Zi)(t,e)}function Xr(t){return function(){this.removeAttribute(t)}}function Ur(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Yr(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 Vr(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 Gr(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 Hr(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 Wr(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,r)),n}return r._value=e,r}function qr(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,r)),n}return r._value=e,r}function Zr(t,e){return function(){kr(this,t).delay=+e.apply(this,arguments)}}function Kr(t,e){return e=+e,function(){kr(this,t).delay=e}}function Jr(t,e){return function(){Or(this,t).duration=+e.apply(this,arguments)}}function Qr(t,e){return e=+e,function(){Or(this,t).duration=e}}var ta,ea=Mn.prototype.constructor;function na(t){return function(){this.style.removeProperty(t)}}var ia=0;function ra(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function aa(t){return Mn().transition(t)}function oa(){return++ia}var sa=Mn.prototype;ra.prototype=aa.prototype=(ta={constructor:ra,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=he(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,Er(h[f],e,n,f,h,Mr(s,n)));return new ra(a,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=ge(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=Mr(u,n),p=0,v=d.length;p<v;++p)(f=d[p])&&Er(f,e,n,p,d,g);a.push(d),o.push(u)}return new ra(a,o,e,n)},selectChild:sa.selectChild,selectChildren:sa.selectChildren,filter:function(t){"function"!=typeof t&&(t=pe(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 ra(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 ra(o,this._parents,this._name,this._id)},selection:function(){return new ea(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=oa(),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=Mr(o,e);Er(o,t,n,c,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new ra(i,this._parents,t,n)},call:sa.call,nodes:sa.nodes,node:sa.node,size:sa.size,empty:sa.empty,each:sa.each,on:function(t,e){var n=this._id;return arguments.length<2?Mr(this.node(),n).on.on(t):this.each(function(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)?kr:Or;return function(){var o=a(this,t),s=o.on;s!==i&&(r=(i=s).copy()).on(e,n),o.on=r}}(n,t,e))},attr:function(t,e){var n=Ie(t),i="transform"===n?Fr:$r;return this.attrTween(t,"function"==typeof e?(n.local?Hr:Gr)(n,i,Br(this,"attr."+t,e)):null==e?(n.local?Ur:Xr)(n):(n.local?Vr:Yr)(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=Ie(t);return this.tween(n,(i.local?Wr:qr)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?Nr:$r;return null==e?this.styleTween(t,function(t,e){var n,i,r;return function(){var a=Ue(this,t),o=(this.style.removeProperty(t),Ue(this,t));return a===o?null:a===n&&o===i?r:r=e(n=a,i=o)}}(t,i)).on("end.style."+t,na(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,r,a;return function(){var o=Ue(this,t),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(t),u=s=Ue(this,t)),o===u?null:o===i&&u===r?a:(r=u,a=e(i=o,s))}}(t,i,Br(this,"style."+t,e))).each(function(t,e){var n,i,r,a,o="style."+e;return function(){var s=Or(this,t),u=s.on,c=null==s.value[o]?a||(a=na(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=Ue(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,function(t,e,n){var i,r;function a(){var a=e.apply(this,arguments);return a!==r&&(i=(r=a)&&function(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}(t,a,n)),i}return a._value=e,a}(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}}(Br(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,function(t){var e,n;function i(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&function(t){return function(e){this.textContent=t.call(this,e)}}(i)),e}return i._value=t,i}(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=Mr(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?zr:jr)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Zr:Kr)(e,t)):Mr(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Jr:Qr)(e,t)):Mr(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){Or(this,t).ease=e}}(e,t)):Mr(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;Or(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=Or(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()}))}},ta[Symbol.iterator]=sa[Symbol.iterator],ta);var ua={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function ca(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error("transition "+e+" not found");return n}Mn.prototype.interrupt=function(t){return this.each((function(){Rr(this,t)}))},Mn.prototype.transition=function(t){var e,n;t instanceof ra?(e=t._id,t=t._name):(e=oa(),(n=ua).time=cr(),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])&&Er(o,t,e,c,s,n||ca(o,e));return new ra(i,this._parents,t,e)};var la=function(t){var e=this;return a(this,undefined),function(){return a(this,e),t}.bind(this)}.bind(void 0);function ha(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 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,ma=Math.max,_a=Math.min;function Ta(t){return[+t[0],+t[1]]}function wa(t){return[Ta(t[0]),Ta(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"},Oa={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Ma={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 Pa(){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 La(){return navigator.maxTouchPoints||"ontouchstart"in this}function Da(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Na(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function Fa(t){var e,n=Pa,i=Ia,r=La,o=!0,s=Kn("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;Rn(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=Rn(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,m=this,_=n.target.__data__.type,T="selection"===(o&&n.metaKey?_="overlay":_)?pa:o&&n.altKey?xa:ya,w=t===Sa?null:Ma[_],A=t===Aa?null:Ra[_],S=Da(m),E=S.extent,k=S.selection,O=E[0][0],M=E[0][1],R=E[1][0],C=E[1][1],I=0,P=0,L=w&&A&&o&&n.shiftKey,D=Array.from(n.touches||[n],function(t){a(this,r);var e=t.identifier;return(t=Vn(t,m)).point0=t.slice(),t.identifier=e,t}.bind(this));Rr(m);var N=h(m,arguments,!0).beforestart();if("overlay"===_){k&&(y=!0);var F=[D[0],D[1]||D[0]];S.selection=k=[[s=t===Sa?O:_a(F[0][0],F[1][0]),c=t===Aa?M:_a(F[0][1],F[1][1])],[d=t===Sa?R:ma(F[0][0],F[1][0]),p=t===Aa?C:ma(F[0][1],F[1][1])]],D.length>1&&X(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 z=Rn(m).attr("pointer-events","none"),j=z.selectAll(".overlay").attr("cursor",Ea[_]);if(n.touches)N.moved=$,N.ended=U;else{var B=Rn(n.view).on("mousemove.brush",$,!0).on("mouseup.brush",U,!0);o&&B.on("keydown.brush",(function(t){switch(t.keyCode){case 16:L=w&&A;break;case 18:T===ya&&(w&&(d=g-I*w,s=u+I*w),A&&(p=v-P*A,c=f+P*A),T=xa,X(t));break;case 32:T!==ya&&T!==xa||(w<0?d=g-I:w>0&&(s=u-I),A<0?p=v-P:A>0&&(c=f-P),T=va,j.attr("cursor",Ea.selection),X(t));break;default:return}fa(t)}),!0).on("keyup.brush",(function(t){switch(t.keyCode){case 16:L&&(x=b=L=!1,X(t));break;case 18:T===xa&&(w<0?d=g:w>0&&(s=u),A<0?p=v:A>0&&(c=f),T=ya,X(t));break;case 32:T===va&&(t.altKey?(w&&(d=g-I*w,s=u+I*w),A&&(p=v-P*A,c=f+P*A),T=xa):(w<0?d=g:w>0&&(s=u),A<0?p=v:A>0&&(c=f),T=ya),j.attr("cursor",Ea[_]),X(t));break;default:return}fa(t)}),!0),ni(n.view)}l.call(m),N.start(n,T.name)}function $(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=Vn(r,m))}if(L&&!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),X(t)}function X(t){var e,n=D[0],i=n.point0;switch(I=n[0]-i[0],P=n[1]-i[1],T){case va:case pa:w&&(I=ma(O-s,_a(R-d,I)),u=s+I,g=d+I),A&&(P=ma(M-c,_a(C-p,P)),f=c+P,v=p+P);break;case ya:D[1]?(w&&(u=ma(O,_a(R,D[0][0])),g=ma(O,_a(R,D[1][0])),w=1),A&&(f=ma(M,_a(C,D[0][1])),v=ma(M,_a(C,D[1][1])),A=1)):(w<0?(I=ma(O-s,_a(R-s,I)),u=s+I,g=d):w>0&&(I=ma(O-d,_a(R-d,I)),u=s,g=d+I),A<0?(P=ma(M-c,_a(C-c,P)),f=c+P,v=p):A>0&&(P=ma(M-p,_a(C-p,P)),f=c,v=p+P));break;case xa:w&&(u=ma(O,_a(R,s-I*w)),g=ma(O,_a(R,d+I*w))),A&&(f=ma(M,_a(C,c-P*A)),v=ma(M,_a(C,p+P*A)))}g<u&&(w*=-1,e=s,s=d,d=e,e=u,u=g,g=e,_ in ka&&j.attr("cursor",Ea[_=ka[_]])),v<f&&(A*=-1,e=c,c=p,p=e,e=f,f=v,v=e,_ in Oa&&j.attr("cursor",Ea[_=Oa[_]])),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(m),N.brush(t,T.name))}function U(t){if(function(t){t.stopImmediatePropagation()}(t),t.touches){if(t.touches.length)return;e&&clearTimeout(e),e=setTimeout((function(){e=null}),500)}else ii(t.view,y),B.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);z.attr("pointer-events","all"),j.attr("cursor",Ea.overlay),S.selection&&(k=S.selection),function(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}(k)&&(S.selection=null,l.call(m)),N.end(t,T.name)}}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=wa(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=Ki(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();Rr(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=Rn(this.that).datum();s.call(e,this.that,new ha(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:la(wa(t)),c):n},c.filter=function(t){return arguments.length?(i="function"==typeof t?t:la(!!t),c):i},c.touchable=function(t){return arguments.length?(r="function"==typeof t?t:la(!!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 za=void 0;function ja(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 Ba(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?ja(Object(e),!0).forEach((function(n){Yn(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):ja(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var $a=function(t){return a(this,za),t||0===t}.bind(void 0),Xa=function(t){return a(this,za),"function"==typeof t}.bind(void 0),Ua=function(t){return a(this,za),"string"==typeof t}.bind(void 0),Ya=function(t){return a(this,za),"number"==typeof t}.bind(void 0),Va=function(t){return a(this,za),void 0===t}.bind(void 0),Ga=function(t){return a(this,za),void 0!==t}.bind(void 0),Ha=function(t){return a(this,za),"boolean"==typeof t}.bind(void 0),Wa=function(t){return a(this,za),10*Math.ceil(t/10)}.bind(void 0),qa=function(t){return a(this,za),Math.ceil(t)+.5}.bind(void 0),Za=function(t){return a(this,za),t[1]-t[0]}.bind(void 0),Ka=function(t){return a(this,za),"object"==typeof t}.bind(void 0),Ja=function(t){return a(this,za),Va(t)||null===t||Ua(t)&&0===t.length||Ka(t)&&!(t instanceof Date)&&0===Object.keys(t).length||Ya(t)&&isNaN(t)}.bind(void 0),Qa=function(t){return a(this,za),!Ja(t)}.bind(void 0),to=function(t){return a(this,za),Array.isArray(t)}.bind(void 0),eo=function(t){return a(this,za),t&&!(null!=t&&t.nodeType)&&Ka(t)&&!to(t)}.bind(void 0);function no(t,e,n){return Ga(t[e])?t[e]:n}function io(t,e){for(var n=Xa(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 ro(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 ao(t){return Ua(t)?t.replace(/</g,"<").replace(/>/g,">"):t}function oo(t,e,n,i){var r=this;if(void 0===n&&(n=[-1,1]),void 0===i&&(i=!1),t&&Ua(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 so(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 uo(t,e){var n,i=Vn(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 co(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=Na(e)),e}function lo(t){return!("rect"in t)||"rect"in t&&t.hasAttribute("width")&&t.rect.width!==+t.getAttribute("width")?t.rect=t.getBoundingClientRect():t.rect}function ho(t,e,n){void 0===t&&(t=!0),void 0===e&&(e=0),void 0===n&&(n=1e4);var i=In.crypto||In.msCrypto,r=i?e+i.getRandomValues(new Uint32Array(1))[0]%(n-e+1):Math.floor(Math.random()*(n-e)+e);return t?r+"":r}function fo(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?fo(t,e,n,a-1,r):fo(t,e,a+1,i,r)}function go(t){var e=co(t);return!e||e[0]===e[1]}function po(t,e){var n=this;for(var i in void 0===t&&(t={}),to(e)&&e.forEach(function(e){return a(this,n),po(t,e)}.bind(this)),e)/^\d+$/.test(i)||i in t||(t[i]=e[i]);return t}var vo=function(t){return a(this,za),t.charAt(0).toUpperCase()+t.slice(1)}.bind(void 0);var yo=function(t){return a(this,za),[].slice.call(t)}.bind(void 0);function xo(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 bo(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 _o(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 eo(t)&&eo(o)&&Object.keys(o).forEach(function(n){a(this,e);var i=o[n];eo(i)?(t[n]||(t[n]={}),t[n]=_o(t[n],i)):t[n]=to(i)?i.concat():i}.bind(this)),_o.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 wo(t,e){var n=this,i=e.filter(function(t){return a(this,n),Qa(t)}.bind(this));return i.length?Ya(i[0])?i=Math[t].apply(Math,i):i[0]instanceof Date&&(i=To(i,"min"===t)[0]):i=void 0,i}var Ao=function(t,e,n){void 0===n&&(n=1),a(this,za);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),So={mouse:function(){var t=this;a(this,za);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,In,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,za);var i=new Touch(_o({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 Eo(t,e){var n=t;for(var i in e)n=n.replace(new RegExp("{="+i+"}","g"),e[i]);return n}function ko(t){var e;if(t instanceof Date)e=t;else if(Ua(t)){var n,i=this.config;e=null!=(n=this.format.dataTime(i.data_xFormat)(t))?n:new Date(t)}else Ya(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 Mo(t,e){var n=this;!1===e()?Dn(function(){return a(this,n),Mo(t,e)}.bind(this)):t()}function Ro(t){var e=t,n=e.config,i="";if(Ja(n.data_type||n.data_types)&&!e[Bn.LINE])i="line";else for(var r in Bn){var o=jn[r];if(e.hasType(o)&&!e[Bn[r]]){i=o;break}}i&&function(t,e){var n,i="[billboard.js]";(null==(n=In.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 Co(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 Io(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?Co(Object(e),!0).forEach((function(n){Yn(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Co(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_"},Lo={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",needle:"bb-needle"},Do={area:"bb-area",areas:"bb-areas"},No={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"},zo={candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"},jo={chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"},Bo={colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"},$o={dragarea:"bb-dragarea",INCLUDED:"_included_"},Xo={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"},Uo={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"},Yo={chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"},Vo={eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"},Go={focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"},Ho={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"},Wo="bb-level",qo="bb-levels",Zo={chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"},Ko={region:"bb-region",regions:"bb-regions"},Jo={selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"},Qo={shape:"bb-shape",shapes:"bb-shapes"},ts={brush:"bb-brush",subchart:"bb-subchart"},es={chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",TextOverlapping:"text-overlapping"},ns={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},is={treemap:"bb-treemap",chartTreemap:"bb-chart-treemap",chartTreemaps:"bb-chart-treemaps"},rs={buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"},as=Io(Io(Io(Io(Io(Io(Io(Io(Io(Io(Io(Io(Io(Io(Io(Io(Io(Io(Io(Io(Io(Io(Io(Io({},Po),Lo),Do),No),Fo),zo),jo),Bo),$o),Xo),Uo),Yo),Vo),Go),Ho),Zo),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,hasTreemap:!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:[],needle:void 0},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_mode:void 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_contents_bindto:void 0,legend_contents_template:"<span style='color:#fff;padding:5px;background-color:{=COLOR}'>{=TITLE}</span>",legend_equally:!1,legend_hide:!1,legend_inset_anchor:"top-left",legend_inset_x:10,legend_inset_y:0,legend_inset_step:void 0,legend_item_interaction:!0,legend_item_dblclick:!1,legend_item_onclick:void 0,legend_item_onover:void 0,legend_item_onout:void 0,legend_item_tile_width:10,legend_item_tile_height:10,legend_item_tile_r:5,legend_item_tile_type:"rectangle",legend_padding:0,legend_position:"bottom",legend_show:!0,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){Yn(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 ms=function(){function t(){return function(){for(var t=this,e=function(n){if(a(this,t),eo(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),Ba(Ba({},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}();ms.data={};var _s="$baseLength",Ts="__colorPattern__",ws="$dataMinMax",As="$dataTotalSum",Ss="$totalPerIndex",Es="legendItemTextBox",ks="$radarPoints",Os="setOverOut",Ms="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;yo(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=In.setTimeout,Ps=In.clearTimeout;function Ls(){var t=[],e=function(e,n){var i=this;Mo(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){to(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),In.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 In.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"})),In.URL.createObjectURL(Ds[r])}(e,i),o=new In.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 In.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 Fs={},zs={};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 $s(t,e){var n=t+"",i=n.length;return i<e?Array(e-i+1).join(0)+n:n}function Xs(t){var e,n=t.getUTCHours(),i=t.getUTCMinutes(),r=t.getUTCSeconds(),a=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":((e=t.getUTCFullYear())<0?"-"+$s(-e,6):e>9999?"+"+$s(e,6):$s(e,4))+"-"+$s(t.getUTCMonth()+1,2)+"-"+$s(t.getUTCDate(),2)+(a?"T"+$s(n,2)+":"+$s(i,2)+":"+$s(r,2)+"."+$s(a,3)+"Z":r?"T"+$s(n,2)+":"+$s(i,2)+":"+$s(r,2)+"Z":i||n?"T"+$s(n,2)+":"+$s(i,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 zs;if(c)return c=!1,Fs;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())!==zs;){for(var h=[];i!==Fs&&i!==zs;)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?Xs(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=[];if(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)}else Object.keys(t).forEach((function(e){var n=t[e].concat();null==n.unshift||n.unshift(e),r.push(n)})),i=Zs(r);return 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=o.data_type,c=!1,l=!1,h=!1;r&&(c=r.isCategorized(),l=r.isTimeSeries(),h=r.isCustomX());var f,d=Object.keys(t[0]||{}),g=d.length?d.filter(i.isNotX,i):[],p=d.length?d.filter(i.isX,i):[];g.forEach(function(r){var s=this;a(this,n);var u=this.getXKey(r);h||l?p.indexOf(u)>=0?f=(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?f=this.getOtherTargetXs():Qa(o.data_xs)&&(f=i.getXValuesOfXKey(u,i.data.targets)):f=t.map(function(t,e){return a(this,s),e}.bind(this)),f&&(this.data.xs[r]=f)}.bind(this)),g.forEach(function(t){if(a(this,n),!this.data.xs[t])throw new Error('x is not defined for id = "'+t+'".')}.bind(this));var v=g.map(function(e,r){var u=this;a(this,n);var l=o.data_idConverter.bind(i.api)(e),f=i.getXKey(e),d=h&&c,g=d&&t.map(function(t){return a(this,u),t.x}.bind(this)).every(function(t){return a(this,u),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:l,id_org:e,values:t.map(function(t,n){a(this,u);var c,h=t[f],y=t[e];return y=null===y||isNaN(y)||eo(y)?to(y)||eo(y)?y:null:+y,!d&&!s.hasRadar||0!==r||Va(h)?c=i.generateTargetX(h,e,v+n):(g||0!==r||0!==n||p||(o.axis_x_categories=[]),-1===(c=o.axis_x_categories.indexOf(h))&&(c=o.axis_x_categories.length,o.axis_x_categories.push(h))),(Va(y)||i.data.xs[e].length<=n)&&(c=void 0),{x:c,value:y,id:l,index:-1}}.bind(this)).filter(function(t){return a(this,u),Ga(t.x)}.bind(this))}}.bind(this));if(v.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(v),s.hasPositiveValue=i.hasPositiveValueInTargets(v),u&&i.isValidChartType(u)){var y=i.mapToIds(v).filter(function(t){return a(this,n),!(t in o.data_types)||!i.isValidChartType(o.data_types[t])}.bind(this));i.setTargetType(y,u)}return v.forEach(function(t){return a(this,n),i.cache.add(t.id_org,t,!0)}.bind(this)),v}},ru={isX:function(t){var e=this.config,n=e.data_x&&t===e.data_x,i=Qa(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:Qa(e.data_xs)?e.data_xs[t]:null},getXValuesOfXKey:function(t,e){var n,i=this,r=this;return(e&&Qa(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(Ua(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 Qa(this.config.data_xs)||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=ko.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 Ga(e)?e:null},getNextX:function(t){var e=this.axis.xs[t+1];return Ga(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(Ya);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=ws,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.config.data_groups.length&&!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]+=Ya(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(!Ya(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));r=o.length?o.reduce(function(t,n){return a(this,e),t+n}.bind(this)):0,n.cache.add(i,r)}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,i=this.config.axis_x_inverted;return n>1?e=To(bo(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,r){return a(this,t),{x:e,index:i?r.length-n-1:n}}.bind(this)):n&&(e=e[0].values.concat()),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?to(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=bo(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;(to(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;(to(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),Ua(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=to(e)?e.slice(0,4):[e.open,e.high,e.low,e.close]),to(e)?c.push.apply(c,e):eo(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 Xa(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 Ha(t)&&t||Ka(t)&&Qa(t)},getDataIndexFromEvent:function(t){var e,n=this.config,i=this.state,r=i.hasRadar,a=i.inputType,o=i.eventReceiver,s=o.coords,u=o.rect;if(r){var c=t.target;/tspan/i.test(c.tagName)&&(c=c.parentNode);var l=Rn(c).datum();e=l&&1===Object.keys(l).length?l.index:void 0}else{var h=n.axis_rotated,f="touch"===a&&t.changedTouches?t.changedTouches[0]:t;e=fo(s,h?f.clientY-u.top:f.clientX-u.left,0,s.length-1,h)}return e},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.$el.main,s=t.filter(function(t){return a(this,i),t&&$a(t.value)}.bind(this));return s.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:"."+zo.chartCandlestick+"."+Po.target+r.getTargetSelectorSuffix(t.id)+" ."+zo.candlestick+"-"+t.index+" path";!n&&r.isWithinBar(o.select(e).node())&&(n=t)}.bind(this)),s.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<r.getPointSensitivity(t)&&(o,n=t)}.bind(this)),n},dist:function(t,e){var n=this,i=n.config.axis_rotated,r=n.scale,a=n.circleY(t,t.index),o=(r.zoom||r.x)(t.x);return Math.sqrt(Math.pow(o-e[+i],2)+Math.pow(a-e[+!i],2))},convertValuesToStep:function(t){var e=this.axis,n=this.config.line_step_type,i=!!e&&e.isCategorized(),r=to(t)?t.concat():[t];if(!i&&!/step\-(after|before)/.test(n))return t;if(r.length){var a=r[0],o=r[r.length-1],s=a.id,u=a.x;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})}return r},convertValuesToRange:function(t){var e=this,n=to(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 Va(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(to(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},setRatioForGroupedData:function(t){var e=this,n=this;if(n.config.data_groups.length&&t.some(function(t){return a(this,e),n.isGrouped(t.id)}.bind(this))){var i=function(t){return a(this,e),n.getRatio("index",t,!0)}.bind(this);t.forEach(function(t){a(this,e),"values"in t?t.values.forEach(i):i(t)}.bind(this))}},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.getGaugeStartAngle(),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),(Ya(t)?t:0)+e[i]}.bind(this))}.bind(this)),d=d.map(function(t,e){return a(this,i),t-g[e]}.bind(this)))}var p=d[e.index];e.ratio=Ya(e.value)&&d&&p?e.value/p: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 v=r.getYScaleById.bind(r)(e.id).domain().reduce(function(t,e){return a(this,i),e-t}.bind(this));c=0===v?0:Math.abs(e.value)/v}else"treemap"===t&&(c/=r.getTotalDataSum(!0));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)&&(eo(t.value)&&("z"in t.value||"y"in t.value)||to(t.value)&&t.value.length>=2)},isBarRangeType:function(t){var e=this,n=t.value;return this.isBarType(t)&&to(n)&&n.length>=2&&n.every(function(t){return a(this,e),Ya(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}};function au(t,e){void 0===e&&(e=!1);var n=this.api;e&&this.api.flush(!0),null==t||t.call(n)}var ou={load:function(t,e){var n=this,i=this,r=i.data,o=e.append,s=t;s&&(e.filter&&(s=s.filter(e.filter)),(e.type||e.types)&&s.forEach(function(t){var r;a(this,n);var o=(null==(r=e.types)?void 0:r[t.id])||e.type;i.setTargetType(t.id,o)}.bind(this)),r.targets.forEach(function(t){a(this,n);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.targets=r.targets.concat(s)),i.updateTargets(r.targets),i.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),i.updateTypesElements(),au.call(i,e.done,e.resizeAfter)},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(ro,u),c.forEach(function(t){var e=this;a(this,n),r.withoutFadeIn[t]=!1,o.legend&&o.legend.selectAll("."+Uo.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)),r.hasTreemap&&i.updateTargetsForTreemap(i.data.targets),i.updateTypesElements()}else u()}},su=function(t){var e=this;return a(this,undefined),function(){return a(this,e),t}.bind(this)}.bind(void 0);function uu(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 cu(t){return!t.ctrlKey&&!t.button}function lu(){return this.parentNode}function hu(t,e){return null==e?{x:t.x,y:t.y}:e}function fu(){return navigator.maxTouchPoints||"ontouchstart"in this}function du(){var t,e,n,i,r=cu,a=lu,o=hu,s=fu,u={},c=Kn("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,Jn).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&&(Rn(o.view).on("mousemove.drag",g,Qn).on("mouseup.drag",p,Qn),ni(o.view),ti(o),n=!1,t=o.clientX,e=o.clientY,u("start",o))}}function g(i){if(ei(i),!n){var r=i.clientX-t,a=i.clientY-e;n=r*r+a*a>h}u.mouse("drag",i)}function p(t){Rn(t.view).on("mousemove.drag mouseup.drag",null),ii(t.view,n),ei(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]))&&(ti(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])&&(ei(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])&&(ti(t),n("end",t,r[e]))}function b(t,e,n,i,r,a){var s,h,d,g=c.copy(),p=Vn(a||n,e);if(null!=(d=o.call(t,new uu("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=Vn(c||o,e),v=l}g.call(a,t,new uu(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:su(!!t),f):r},f.container=function(t){return arguments.length?(a="function"==typeof t?t:su(t),f):a},f.subject=function(t){return arguments.length?(o="function"==typeof t?t:su(t),f):o},f.touchable=function(t){return arguments.length?(s="function"==typeof t?t:su(!!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}uu.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var gu={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,s=o.hasRadar,u=o.hasTreemap,c=i.$el.main,l=eo(e);if(l||-1!==e){var h=r[t?"data_onover":"data_onout"].bind(i.api);if(r.color_onover&&i.setOverColor(t,e,l),l){var f=u?is.treemap:Lo.arc;h(e,c.select("."+f+i.getTargetSelectorSuffix(e.id)).node())}else if(r.tooltip_grouped)t&&(r.point_focus_only&&s?i.showCircleFocus(i.getAllValuesOnIndex(e,!0)):i.setExpand(e,null,!0)),i.isMultipleX()||c.selectAll("."+Qo.shape+"-"+e).each((function(t){h(t,this)}));else{var d=i.cache.get(Os)||[],g=c.selectAll("."+Qo.shape+"-"+e).filter((function(t){return i.isWithinShape(this,t)})),p=g.filter((function(){var t=this;return d.every(function(e){return a(this,t),e!==this}.bind(this))}));if(!t||g.empty()||d.length===p.size()&&p.nodes().every(function(t,e){return a(this,n),t!==d[e]}.bind(this)))for(;d.length;){var v=d.pop();r.data_onout.bind(i.api)(Rn(v).datum(),v)}p.each((function(){t&&(h(Rn(this).datum(),this),d.push(this))})),i.cache.add(Os,d)}}},callOverOutForTouch:function(t){var e=this,n=e.cache.get(Ms);(eo(t)&&n?t.id!==n.id:t!==n)&&((n||Ya(n))&&e.setOverOut(!1,n),(t||Ya(t))&&e.setOverOut(!0,t),e.cache.add(Ms,t))},getDraggableSelection:function(){var t=this,e=this,n=e.config,i=e.state;return n.interaction_enabled&&n.data_selection_draggable&&e.drag?du().on("drag",(function(t){i.event=t,e.drag(uo(t,this))})).on("start",(function(t){i.event=t,e.dragstart(uo(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,r=this,a=r.config,o=r.state,s=o.eventReceiver,u=o.hasAxis,c=o.hasRadar,l=o.hasTreemap,h=r.$el,f=h.eventRect,d=h.radar,g=h.treemap,p=null==(i=l&&s.rect||c&&d.axes.select("."+No.axis+"-"+e+" text")||f||(null==r.getArcElementByIdOrIndex?void 0:r.getArcElementByIdOrIndex(e)))?void 0:i.node();if(p){var v=r.isMultipleX(),y=p.getBoundingClientRect(),x=y.width,b=y.left,m=y.top;if(u&&!c&&!v){var _=s.coords[e];x=_.w,b+=_.x,m+=_.y}var T=b+(n?n[0]:0)+(v||a.axis_rotated?0:x/2),w=m+(n?n[1]:0);So[/^(mouse|click)/.test(t)?"mouse":"touch"](l?g.node():p,t,{screenX:T,screenY:w,clientX:T,clientY:w})}},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=n.treemap,l=e.brush;[u,r,null==s?void 0:s.list,null==l?void 0:l.getSelection(),null==i?void 0:i.selectAll("path"),null==o?void 0:o.selectAll("g"),c].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()}},pu={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|treemap)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,n){void 0===e&&(e=""),void 0===n&&(n="");var i=this.getTargetSelectorSuffix(t);return e+"."+(as.target+i)+" "+n+", "+e+"."+(as.circles+i)+" "+n},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 vu(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function yu(t,e){return yu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},yu(t,e)}function xu(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,yu(t,e)}function bu(t){return bu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},bu(t)}function mu(t,e,n){return mu=function(){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}}()?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&&yu(r,n.prototype),r},mu.apply(null,arguments)}function _u(t){var e="function"==typeof Map?new Map:void 0;return _u=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 mu(t,arguments,bu(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),yu(i,t)},_u(t)}function Tu(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 wu(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 wu(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 wu(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=Ou),i=t.call(this)||this,Object.defineProperties(vu(i),{_intern:{value:new Map},_key:{value:n}}),null!=e)for(var r,a=Tu(e);!(r=a()).done;){var o=r.value,s=o[0],u=o[1];i.set(s,u)}return i}xu(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}(_u(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 Ou(t){return null!==t&&"object"==typeof t?t.valueOf():t}function Mu(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 Pu(){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 Pu(e,n).unknown(i)},Mu.apply(r,arguments),r}var Lu=function(t,e,n){a(this,undefined);var i=Rn(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=Qa(i.color_pattern)?i.color_pattern:Pu(function(t){var e=this,n=Ts,i=zn.body,r=i[n];if(!r){var o=t.classed(Bo.colorPattern,!0).style("background-image");t.classed(Bo.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(Xa(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 Lu(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 Xa(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),Xa(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 Qa(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=[];Ua(s)?u.push(""):eo(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=Xa(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;eo(u)?u=function(t){var e=t.id;return a(this,n),e in s?s[e]:i.color(e)}.bind(this):Ua(u)?u=function(){return a(this,n),s}.bind(this):Xa(s)&&(u=u.bind(i.api)),o.selectAll(eo(e)?"."+Lo.arc+i.getTargetSelectorSuffix(e.id):"."+Qo.shape+"-"+e).style("fill",u)}},Fu={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 wo(e,Object.keys(l).map(function(t){return a(this,n),wo(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"),m=r.getYDomainMinMax(f,"max"),_=[jn.BAR,jn.BUBBLE,jn.SCATTER].concat($n.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,m=$a(g)?g:$a(d)?d<=m?m:d+10:m,isNaN(b)&&(b=0),isNaN(m)&&(m=b),b===m&&(b<0?m=0:b=0);var T=b>=0&&m>=0,w=b<=0&&m<=0;($a(d)&&T||$a(g)&&w)&&(_=!1),_&&(T&&(b=0),w&&(m=0));var A=Math.abs(m-b),S={top:.1*A,bottom:.1*A};if(Ga(p)){var E=Math.max(Math.abs(b),Math.abs(m));m=p+E,b=p-E}if(y){var k=Za(u.y.range()),O=r.getDataLabelLength(b,m,"width").map(function(t){return a(this,i),t/k}.bind(this));["bottom","top"].forEach(function(t,e){a(this,i),S[t]+=A*(O[e]/(1-O[0]-O[1]))}.bind(this))}else if(x){var M=r.getDataLabelLength(b,m,"height");["bottom","top"].forEach(function(t,e){a(this,i),S[t]+=r.convertPixelToScale("y",M[e],A)}.bind(this))}S=r.getResettedPadding(S);var R=s[c+"_padding"];Qa(R)&&["bottom","top"].forEach(function(t){a(this,i),S[t]=o.getPadding(R,t,S[t],A)}.bind(this)),_&&(T&&(S.bottom=b),w&&(S.top=-m));var C=l?[b,m].map(function(t){return a(this,i),t<0?0:t}.bind(this)):[b-S.bottom,m+S.top];return v?C.reverse():C},getXDomainMinMax:function(t,e){var n,i=this,r=this.config["axis_x_"+e],o=wo(e,t.map(function(t){var n=this;return a(this,i),wo(e,t.values.map(function(t){return a(this,n),t.x}.bind(this)))}.bind(this))),s=eo(r)?r.value:r;return s=Ga(s)&&null!=(n=this.axis)&&n.isTimeSeries()?ko.bind(this)(s):s,eo(r)&&r.fit&&("min"===e&&s<o||"max"===e&&s>o)&&(s=void 0),Ga(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=Za(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=Ya(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.config,r=e.scale.x,a=i.axis_x_inverted,o=[e.getXDomainMinMax(t,"min"),e.getXDomainMinMax(t,"max")],s=o[0],u=void 0===s?0:s,c=o[1],l=void 0===c?0:c;if("log"!==r.type){var h=n.isCategorized(),f=n.isTimeSeries(),d=e.getXDomainPadding(o),g=o[0],p=o[1];g-p!=0||h||(f?(g=new Date(.5*g.getTime()),p=new Date(1.5*p.getTime())):(g=0===g?1:.5*g,p=0===p?-1:1.5*p)),(g||0===g)&&(u=f?new Date(g.getTime()-d.left):g-d.left),(p||0===p)&&(l=f?new Date(p.getTime()+d.right):p+d.right)}return a?[l,u]:[u,l]},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),!s.axis_x_inverted)),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||go(o)?u.xDomain:co(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.config.axis_x_inverted,n=this.getZoomDomain(),i=n[0],r=n[1];return(e?t[0]>=i:t[0]<=i)&&(t[0]=i,t[1]=+t[1]+(i-t[0])),(e?t[1]<=r:t[1]>=r)&&(t[0]=+t[0]-(t[1]-r),t[1]=r),t},getZoomDomain:function(){var t=this.config,e=this.org.xDomain,n=e[0],i=e[1];return Ga(t.zoom_x_min)&&(n=wo("min",[n,t.zoom_x_min])),Ga(t.zoom_x_max)&&(i=wo("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 zu(t,e,n){var i=t.config,r="axis_"+e+"_tick_format";return(i[r]?i[r]:t.defaultValueFormat).call(t.api,n)}var ju={yFormat:function(t){return zu(this,"y",t)},y2Format:function(t){return zu(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 Xa(n.format)?r=n.format:Ka(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 $u={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(Uo.legend,!0).attr("transform",t.getTranslate("legend"))),t.updateLegend()):t.state.hiddenLegendIds=t.mapToIds(t.data.targets)},updateLegend:function(t,e,n){var i,r=this,a=r.config,o=r.state,s=r.scale,u=r.$el,c=e||{withTransform:!1,withTransitionForTransform:!1,withTransition:!1};c.withTransition=no(c,"withTransition",!0),c.withTransitionForTransform=no(c,"withTransitionForTransform",!0),a.legend_contents_bindto&&a.legend_contents_template?r.updateLegendTemplate():o.hasTreemap||r.updateLegendElement(t||r.mapToIds(r.data.targets),c,n),null==(i=u.legend)||i.selectAll("."+Uo.legendItem).classed(Uo.legendItemHidden,(function(t){var e=!r.isTargetToShow(t);return e&&(this.style.opacity=null),e})),r.updateScales(!1,!s.zoom),r.updateSvgSize(),r.transformAll(c.withTransitionForTransform,n),o.legendHasRendered=!0},updateLegendTemplate:function(){var t=this,e=this,n=e.config,i=e.$el,r=Rn(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=Xa(o)?o.bind(e.api)(n,e.color(n),e.api.data(n)[0].values):Eo(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("."+Uo.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,e=this,n=e.state,i=n.current,r=n.isLegendRight,a=n.legendItemHeight,o=n.legendStep,s="fit"===(null==(t=e.config.padding)?void 0:t.mode);return e.config.legend_show?r?i.height:(s?10:Math.max(20,a))*(o+1):0},opacityForUnfocusedLegend:function(t){return t.classed(Uo.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("."+Uo.legendItem).filter(function(t){return a(this,n),s.indexOf(t)>=0}.bind(this)).classed(Go.legendItemFocused,e)).style("opacity",(function(){return e?null:i.opacityForUnfocusedLegend.call(i,Rn(this))}))},revertLegend:function(){var t=this.$el.legend,e=this.$T;t&&e(t.selectAll("."+Uo.legendItem).classed(Go.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&&Ja(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,Uo.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,h=o.legend_item_interaction;t.attr("class",(function(t){var e=Rn(this);return(!e.empty()&&e.attr("class")||"")+n.generateClass(Uo.legendItem,t)})).style("visibility",function(t){return a(this,e),n.isLegendToShow(t)?null:"hidden"}.bind(this)),o.interaction_enabled&&(l&&[["."+Uo.legendItem,"cursor:pointer"],["."+Uo.legendItem+" text","pointer-events:none"],["."+Uo.legendItemPoint+" text","pointer-events:none"],["."+Uo.legendItemTile,"pointer-events:none"],["."+Uo.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.on(h.dblclick?"dblclick":"click",h||Xa(o.legend_item_onclick)?function(t,e){if(!io(o.legend_item_onclick,r,e)){var i=t.altKey,a=t.target;"dblclick"===t.type||i?s.hiddenTargetIds.length&&-1===a.parentNode.getAttribute("class").indexOf(Uo.legendItemHidden)?r.show():(r.hide(),r.show(e)):(r.toggle(e),Rn(this).classed(Go.legendItemFocused,!1))}u&&n.hideTooltip()}:null),u||t.on("mouseout",h||Xa(o.legend_item_onout)?function(t,e){io(o.legend_item_onout,r,e)||(Rn(this).classed(Go.legendItemFocused,!1),c&&n.undoMarkOverlapped(n,"."+Xo.gaugeValue),n.api.revert())}:null).on("mouseover",h||Xa(o.legend_item_onover)?function(t,e){io(o.legend_item_onover,r,e)||(Rn(this).classed(Go.legendItemFocused,!0),c&&n.markOverlapped(e,n,"."+Xo.gaugeValue),!s.transiting&&n.isTargetToShow(e)&&r.focus(e))}:null),!t.empty()&&t.on("click mouseout mouseover")&&t.style("cursor",n.getStylePropValue("pointer")))},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),!Ga(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 m={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,m),r=l.select("."+Uo.legendBackground+" rect"),c.isLegendInset&&p.max.width>0&&0===r.size()&&(r=l.insert("g","."+Uo.legendItem).attr("class",Uo.legendBackground).append("rect"));var _=l.selectAll("text").data(y).text(function(t){return a(this,o),Ga(u.data_names[t])?u.data_names[t]:t}.bind(this)).each((function(t,e){b(this,t,e)}));h(_,x).attr("x",m.xText).attr("y",m.yText),h(l.selectAll("rect."+Uo.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",m.xRect).attr("y",m.yRect),s.updateLegendItemPos(y,x,m),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 m=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-m*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("."+Uo.legendItem).data(t).enter().append("g");if(o.setLegendItem(p),p.append("text").text(function(t){return a(this,r),Ga(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",Uo.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=Qa(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(Ce.svg,"hasValidPointType"in o&&o.hasValidPointType(n)?n:"use")}.bind(this)).attr("class",Uo.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",Uo.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("."+Uo.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}Rn(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("."+Uo.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))}},Xu={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,c=u.main,l=u.treemap;o.redrawing=!0;var h=i.filterTargetsToShow(i.data.targets),f=t,d=f.flow,g=f.initializing,p=i.getWithOption(t),v=p.Transition?r.transition_duration:0,y=p.TransitionForExit?v:0,x=p.TransitionForAxis?v:0,b=null==(e=i.axis)?void 0:e.generateTransitions(x);i.updateSizes(g),p.Legend&&r.legend_show?(t.withTransition=!!v,l||i.updateLegend(i.mapToIds(i.data.targets),t,b)):p.Dimension&&i.updateDimension(!0),l||i.hasArcType()&&!o.hasRadar||i.updateCircleY&&(i.circleY=i.updateCircleY()),r.data_empty_label_text&&c.select("text."+es.text+"."+Po.empty).attr("x",o.width/2).attr("y",o.height/2).text(r.data_empty_label_text).style("display",h.length?"none":null),o.hasAxis?(i.axis.redrawAxis(h,p,b,d,g),i.hasGrid()&&i.updateGrid(),r.regions.length&&i.updateRegion(),["bar","candlestick","line","area"].forEach(function(t){a(this,n);var e=vo(t);(/^(line|area)$/.test(t)&&i.hasTypeOf(e)||i.hasType(t))&&i["update"+e](p.TransitionForExit)}.bind(this)),s.text&&c.selectAll("."+Jo.selectedCircles).filter(i.isBarType.bind(i)).selectAll("circle").remove(),r.interaction_enabled&&!d&&p.EventRect&&(i.redrawEventRect(),null==i.bindZoomEvent||i.bindZoomEvent())):(s.arcs&&i.redrawArc(v,y,p.Transform),s.radar&&i.redrawRadar(),s.polar&&i.redrawPolar(),l&&i.updateTreemap(y)),o.resizing||l||!i.hasPointType()&&!o.hasRadar||i.updateCircle(),i.hasDataLabel()&&!i.hasArcType(null,["radar"])&&i.updateText(),null==i.redrawTitle||i.redrawTitle(),g&&i.updateTypesElements(),i.generateRedrawList(h,d,v,p.Subchart),i.updateTooltipOnRedraw(),i.callPluginHook("$redraw",t,v)},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,io(s.onrendered,o.api)}.bind(this);if(d)if(h&&f.length){var g=Ls();aa().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=u.hasTreemap,f=o.$el.grid,d=t.pos,g=d.cx,p=d.cy,v=d.xForText,y=d.yForText,x=[];return c&&((s.grid_x_lines.length||s.grid_y_lines.length)&&x.push(o.redrawGrid(i)),s.regions.length&&x.push(o.redrawRegion(i)),Object.keys(t.type).forEach(function(e){a(this,r);var n=vo(e),s=t.type[e];(/^(area|line)$/.test(e)&&o.hasTypeOf(n)||o.hasType(e))&&x.push(o["redraw"+n](s,i))}.bind(this)),!e&&f.main&&x.push(o.updateGridFocus())),o.hasArcType()&&!l||Qa(s.data_labels)&&!1!==s.data_labels&&x.push(o.redrawText(v,y,e,i)),!o.hasPointType()&&!l||s.point_focus_only||o.redrawCircle&&x.push(o.redrawCircle(g,p,i,n)),h&&x.push(o.redrawTreemap(i)),x},updateAndRedraw:function(t){void 0===t&&(t={});var e,n=this,i=n.config,r=n.state;t.withTransition=no(t,"withTransition",!0),t.withTransform=no(t,"withTransform",!1),t.withLegend=no(t,"withLegend",!1),t.withUpdateXDomain=!0,t.withUpdateOrgXDomain=!0,t.withTransitionForExit=!1,t.withTransitionForTransform=no(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)}},Uu=Math.sqrt(50),Yu=Math.sqrt(10),Vu=Math.sqrt(2);function Gu(t,e,n){var i,r,a,o=(e-t)/Math.max(0,n),s=Math.floor(Math.log10(o)),u=o/Math.pow(10,s),c=u>=Uu?10:u>=Yu?5:u>=Vu?2:1;return s<0?(a=Math.pow(10,-s)/c,(i=Math.round(t*a))/a<t&&++i,(r=Math.round(e*a))/a>e&&--r,a=-a):(a=Math.pow(10,s)*c,(i=Math.round(t/a))*a<t&&++i,(r=Math.round(e/a))*a>e&&--r),r<i&&.5<=n&&n<2?Gu(t,e,2*n):[i,r,a]}function Hu(t,e,n){if(!((n=+n)>0))return[];if((t=+t)===(e=+e))return[t];var i=e<t,r=i?Gu(e,t,n):Gu(t,e,n),a=r[0],o=r[1],s=r[2];if(!(o>=a))return[];var u=o-a+1,c=Array(u);if(i)if(s<0)for(var l=0;l<u;++l)c[l]=(o-l)/-s;else for(var h=0;h<u;++h)c[h]=(o-h)*s;else if(s<0)for(var f=0;f<u;++f)c[f]=(a+f)/-s;else for(var d=0;d<u;++d)c[d]=(a+d)*s;return c}function Wu(t,e,n){return Gu(t=+t,e=+e,n=+n)[2]}function qu(t,e,n){n=+n;var i=(e=+e)<(t=+t),r=i?Wu(e,t,n):Wu(t,e,n);return(i?-1:1)*(r<0?1/-r:r)}function Zu(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ku(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Ju(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=Zu,n=function(e,n){return a(this,r),Zu(t(e),n)}.bind(this),i=function(e,n){return a(this,r),t(e)-n}.bind(this)):(e=t===Zu||t===Ku?t:Qu,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 Qu(){return 0}var tc=Ju(Zu),ec=tc.right,nc=(tc.left,Ju((function(t){return null===t?NaN:+t})).center,ec);function ic(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function rc(t){return+t}var ac=[0,1];function oc(t){return t}function sc(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function uc(t,e,n){var i=t[0],r=t[1],a=e[0],o=e[1];return r<i?(i=sc(r,i),a=n(o,a)):(i=sc(i,r),a=n(a,o)),function(t){return a(i(t))}}function cc(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]=sc(t[o],t[o+1]),a[o]=n(e[o],e[o+1]);return function(e){var n=nc(t,e,1,i)-1;return a[n](r[n](e))}}function lc(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function hc(){var t,e,n,i,r,a,o=ac,s=ac,u=Ki,c=oc;function l(){var t,e,n,u=Math.min(o.length,s.length);return c!==oc&&(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?cc:uc,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),Gi)))(n)))},h.domain=function(t){return arguments.length?(o=Array.from(t,rc),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=ic,l()},h.clamp=function(t){return arguments.length?(c=!!t||oc,l()):c!==oc},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 fc(){return hc()(oc,oc)}var dc,gc=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function pc(t){if(!(e=gc.exec(t)))throw new Error("invalid format: "+t);var e;return new vc({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 vc(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 yc(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 xc(t){return(t=yc(Math.abs(t)))?t[1]:NaN}function bc(t,e){var n=yc(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")}pc.prototype=vc.prototype,vc.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 mc=void 0,_c={"%":function(t,e){return a(this,mc),(100*t).toFixed(e)}.bind(void 0),b:function(t){return a(this,mc),Math.round(t).toString(2)}.bind(void 0),c:function(t){return a(this,mc),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,mc),t.toExponential(e)}.bind(void 0),f:function(t,e){return a(this,mc),t.toFixed(e)}.bind(void 0),g:function(t,e){return a(this,mc),t.toPrecision(e)}.bind(void 0),o:function(t){return a(this,mc),Math.round(t).toString(8)}.bind(void 0),p:function(t,e){return a(this,mc),bc(100*t,e)}.bind(void 0),r:bc,s:function(t,e){var n=yc(t,e);if(!n)return t+"";var i=n[0],r=n[1],a=r-(dc=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")+yc(t,Math.max(0,e+a-1))[0]},X:function(t){return a(this,mc),Math.round(t).toString(16).toUpperCase()}.bind(void 0),x:function(t){return a(this,mc),Math.round(t).toString(16)}.bind(void 0)};function Tc(t){return t}var wc,Ac,Sc,Ec=Array.prototype.map,kc=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Oc(t){var e,n,i=void 0===t.grouping||void 0===t.thousands?Tc:(e=Ec.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?Tc:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Ec.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=pc(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():"",m="$"===f?a:/[%p]/.test(x)?u:"",_=_c[x],T=/[defgprs%]/.test(x);function w(t){var r,a,u,f=b,w=m;if("c"===x)w=_(t)+w,t="";else{var A=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:_(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,w=("s"===x?kc[8+dc/3]:"")+w+(A&&"("===h?")":""),T)for(r=-1,a=t.length;++r<a;)if(48>(u=t.charCodeAt(r))||u>57){w=(46===u?o+t.slice(r+1):t.slice(r))+w,t=t.slice(0,r);break}}p&&!d&&(t=i(t,1/0));var S=f.length+t.length+w.length,E=S<g?Array(g-S+1).join(e):"";switch(p&&d&&(t=i(E+t,E.length?g-w.length:1/0),E=""),n){case"<":t=f+t+w+E;break;case"=":t=f+E+t+w;break;case"^":t=E.slice(0,S=E.length>>1)+f+t+w+E.slice(S);break;default:t=E+f+t+w}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)),w.toString=function(){return t+""},w}return{format:h,formatPrefix:function(t,e){var n=h(((t=pc(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(xc(e)/3))),r=Math.pow(10,-i),a=kc[8+i/3];return function(t){return n(r*t)+a}}}}function Mc(t,e,n,i){var r,a=qu(t,e,n);switch((i=pc(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(xc(e)/3)))-xc(Math.abs(t)))}(a,o))||(i.precision=r),Sc(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,xc(e)-xc(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,-xc(Math.abs(t)))}(a))||(i.precision=r-2*("%"===i.type))}return Ac(i)}function Rc(t){var e=t.domain;return t.ticks=function(t){var n=e();return Hu(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=Wu(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 Cc(){var t=fc();return t.copy=function(){return lc(t,Cc())},Mu.apply(t,arguments),Rc(t)}function Ic(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Pc(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Lc(){var t=function(t){var e=1,n=t(Ic(e),Pc(e));return n.constant=function(n){return arguments.length?t(Ic(e=+n),Pc(e)):e},Rc(n)}(hc());return t.copy=function(){return lc(t,Lc()).constant(t.constant())},Mu.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 Fc(t){return Math.exp(t)}function zc(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 $c(t){var e=this;return function(n,i){return a(this,e),-t(-n,i)}.bind(this)}function Xc(t){var e,n,i=this,r=t(Nc,Fc),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=$c(e),n=$c(n),t(zc,jc)):t(Nc,Fc),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=Hu(u,c,v))}else y=Hu(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=pc(o)).precision||(o.trim=!0),o=Ac(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=Xc(hc()).domain([1,10]);return e.copy=function(){return a(this,t),lc(e,Uc()).base(e.base())}.bind(this),Mu.apply(e,arguments),e}!function(t){wc=Oc(t),Ac=wc.format,Sc=wc.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});var Yc=void 0,Vc=u(function(){a(this,Yc)}.bind(void 0),function(t,e){a(this,Yc),t.setTime(+t+e)}.bind(void 0),function(t,e){return a(this,Yc),e-t}.bind(void 0));Vc.every=function(t){var e=this;return a(this,Yc),t=Math.floor(t),isFinite(t)&&t>0?t>1?u(function(n){a(this,e),n.setTime(Math.floor(n/t)*t)}.bind(this),function(n,i){a(this,e),n.setTime(+n+i*t)}.bind(this),function(n,i){return a(this,e),(i-n)/t}.bind(this)):Vc:null}.bind(void 0);Vc.range;var Gc=void 0,Hc=u(function(t){a(this,Gc),t.setTime(t-t.getMilliseconds())}.bind(void 0),function(t,e){a(this,Gc),t.setTime(+t+e*c)}.bind(void 0),function(t,e){return a(this,Gc),(e-t)/c}.bind(void 0),function(t){return a(this,Gc),t.getUTCSeconds()}.bind(void 0)),Wc=(Hc.range,void 0),qc=u(function(t){a(this,Wc),t.setTime(t-t.getMilliseconds()-t.getSeconds()*c)}.bind(void 0),function(t,e){a(this,Wc),t.setTime(+t+e*l)}.bind(void 0),function(t,e){return a(this,Wc),(e-t)/l}.bind(void 0),function(t){return a(this,Wc),t.getMinutes()}.bind(void 0)),Zc=(qc.range,u(function(t){a(this,Wc),t.setUTCSeconds(0,0)}.bind(void 0),function(t,e){a(this,Wc),t.setTime(+t+e*l)}.bind(void 0),function(t,e){return a(this,Wc),(e-t)/l}.bind(void 0),function(t){return a(this,Wc),t.getUTCMinutes()}.bind(void 0))),Kc=(Zc.range,void 0),Jc=u(function(t){a(this,Kc),t.setTime(t-t.getMilliseconds()-t.getSeconds()*c-t.getMinutes()*l)}.bind(void 0),function(t,e){a(this,Kc),t.setTime(+t+e*h)}.bind(void 0),function(t,e){return a(this,Kc),(e-t)/h}.bind(void 0),function(t){return a(this,Kc),t.getHours()}.bind(void 0)),Qc=(Jc.range,u(function(t){a(this,Kc),t.setUTCMinutes(0,0,0)}.bind(void 0),function(t,e){a(this,Kc),t.setTime(+t+e*h)}.bind(void 0),function(t,e){return a(this,Kc),(e-t)/h}.bind(void 0),function(t){return a(this,Kc),t.getUTCHours()}.bind(void 0))),tl=(Qc.range,void 0),el=u(function(t){a(this,tl),t.setDate(1),t.setHours(0,0,0,0)}.bind(void 0),function(t,e){a(this,tl),t.setMonth(t.getMonth()+e)}.bind(void 0),function(t,e){return a(this,tl),e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}.bind(void 0),function(t){return a(this,tl),t.getMonth()}.bind(void 0)),nl=(el.range,u(function(t){a(this,tl),t.setUTCDate(1),t.setUTCHours(0,0,0,0)}.bind(void 0),function(t,e){a(this,tl),t.setUTCMonth(t.getUTCMonth()+e)}.bind(void 0),function(t,e){return a(this,tl),e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}.bind(void 0),function(t){return a(this,tl),t.getUTCMonth()}.bind(void 0)));nl.range;function il(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=Ju(function(t){var e=t[2];return a(this,r),e}.bind(this)).right(s,o);if(u===s.length)return t.every(qu(e/p,n/p,i));if(0===u)return Vc.every(Math.max(qu(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 rl=il(z,nl,S,D,Qc,Zc),al=rl[0],ol=rl[1],sl=il(F,el,y,P,Jc,qc),ul=sl[0],cl=sl[1];function ll(t){return new Date(t)}function hl(t){return t instanceof Date?+t:+new Date(+t)}function fl(t,e,n,i,r,a,o,s,u,c){var l=fc(),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"),m=c("%Y");function _(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:m)(t)}return l.invert=function(t){return new Date(h(t))},l.domain=function(t){return arguments.length?f(Array.from(t,hl)):f().map(ll)},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?_: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 lc(l,fl(t,e,n,i,r,a,o,s,u,c))},l}function dl(){return Mu.apply(fl(ul,cl,F,el,y,P,Jc,qc,Hc,U).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function gl(){return Mu.apply(fl(al,ol,z,nl,S,L,Qc,Zc,Hc,V).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function pl(t,e,n){void 0===t&&(t="linear"),void 0===e&&(e=0),void 0===n&&(n=1);var i={linear:Cc,log:Lc,_log:Uc,time:dl,utc:gl}[t]();return i.type=t,/_?log/.test(t)&&i.clamp(!0),i.range([e,n])}var vl={getXScale:function(t,e,n,i){var r=this,a=r.scale.zoom||pl(r.axis.getAxisType("x"),t,e);return r.getCustomizedXScale(n?a.domain(n):a,i)},getYScale:function(t,e,n,i){var r=pl(this.axis.getAxisType(t),e,n);return i&&r.domain(i),r},getYScaleById:function(t,e){var n;void 0===e&&(e=!1);var i="y2"===(null==(n=this.axis)?void 0:n.getId(t)),r=e?i?"subY2":"subY":i?"y2":"y";return this.scale[r]},getCustomizedXScale:function(t,e){var n=this,i=this,r=e||function(){return a(this,n),i.axis.x.tickOffset()}.bind(this),o=i.config.axis_x_inverted,s=function(e,n){var i=t(e)+r();return n?i:Math.ceil(i)};for(var u in t)s[u]=t[u];return s.orgDomain=function(){return a(this,n),t.domain()}.bind(this),s.orgScale=function(){return a(this,n),t}.bind(this),i.axis.isCategorized()&&(s.domain=function(e){var n=e;return arguments.length?(t.domain(n),s):(n=this.orgDomain(),o?[n[0]+1,n[1]]:[n[0],n[1]+1])}),s},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.current,f=l.width,d=l.height,g=l.width2,p=l.height2,v=l.hasAxis,y=l.hasTreemap;if(v){var x,b=o.axis_rotated,m=i.getResettedPadding(1),_={x:b?m:0,y:b?0:d,subX:b?1:0,subY:b?0:p},T={x:b?d:f,y:b?f:m,subX:b?d:f,subY:b?g:1},w=e&&(null==(x=c.x)?void 0:x.orgDomain()),A=e&&u.xDomain;c.x=i.getXScale(_.x,T.x,w,function(){return a(this,n),r.x.tickOffset()}.bind(this)),c.subX=i.getXScale(_.x,T.x,A,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",_.y,T.y,c.y?c.y.domain():o.axis_y_default),c.subY=i.getYScale("y",_.subY,T.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",_.y,T.y,c.y2?c.y2.domain():o.axis_y2_default),c.subY2=i.getYScale("y2",_.subY,T.subY,c.subY2?c.subY2.domain():o.axis_y2_default),r.setAxis("y2",c.y2,o.axis_y2_tick_outer,t))}else if(y){var S=i.getCurrentPadding();c.x=Cc().rangeRound([S.left,h.width-S.right]),c.y=Cc().rangeRound([S.top,h.height-S.bottom])}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=ko.call(e,u):n.isCategorized()&&Ua(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 yl(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 xl(t){this._context=t}function bl(t){return new xl(t)}function ml(){}function _l(t){this._context=t}function Tl(t){return new _l(t)}function wl(t){this._context=t}function Al(t){return new wl(t)}function Sl(t,e){this._basis=new xl(t),this._beta=e}xl.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:yl(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:yl(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},_l.prototype={areaStart:ml,areaEnd:ml,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:yl(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},wl.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:yl(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Sl.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 El=function t(e){function n(t){return 1===e?new xl(t):new Sl(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function kl(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 Ol(t,e){this._context=t,this._k=(1-e)/6}Ol.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:kl(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:kl(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 Ml=function t(e){function n(t){return new Ol(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Rl(t,e){this._context=t,this._k=(1-e)/6}Rl.prototype={areaStart:ml,areaEnd:ml,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:kl(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 Cl=function t(e){function n(t){return new Rl(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Il(t,e){this._context=t,this._k=(1-e)/6}Il.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:kl(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 Il(t,e)}return n.tension=function(e){return t(+e)},n}(0),Ll=Math.abs,Dl=Math.atan2,Nl=Math.cos,Fl=Math.max,zl=Math.min,jl=Math.sin,Bl=Math.sqrt,$l=1e-12,Xl=Math.PI,Ul=Xl/2,Yl=2*Xl;function Vl(t){return t>=1?Ul:t<=-1?-Ul:Math.asin(t)}function Gl(t,e,n){var i=t._x1,r=t._y1,a=t._x2,o=t._y2;if(t._l01_a>$l){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>$l){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 Hl(t,e){this._context=t,this._alpha=e}Hl.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:Gl(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 Wl=function t(e){function n(t){return e?new Hl(t,e):new Ol(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:ml,areaEnd:ml,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:Gl(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 Zl=function t(e){function n(t){return e?new ql(t,e):new Rl(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);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(){(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:Gl(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 Il(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Ql(t){return t<0?-1:1}function th(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(Ql(a)+Ql(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs((a*r+o*i)/(i+r)))||0}function eh(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function nh(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 ih(t){this._context=t}function rh(t){this._context=new ah(t)}function ah(t){this._context=t}function oh(t){return new ih(t)}function sh(t){return new rh(t)}function uh(t){this._context=t}function ch(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 lh(t){return new uh(t)}function hh(t){this._context=t}function fh(t){return new hh(t)}function dh(t){this._context=t}function gh(t){return new dh(t)}function ph(t,e){this._context=t,this._t=e}function vh(t){return new ph(t,.5)}function yh(t){return new ph(t,0)}function xh(t){return new ph(t,1)}ih.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:nh(this,this._t0,eh(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,nh(this,eh(this,n=th(this,t,e)),n);break;default:nh(this,this._t0,n=th(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(rh.prototype=Object.create(ih.prototype)).point=function(t,e){ih.prototype.point.call(this,e,t)},ah.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)}},uh.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=ch(t),r=ch(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)}},hh.prototype={areaStart:ml,areaEnd:ml,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))}},dh.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)}}},ph.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 bh={getDrawShape:function(){var t,e,n=this,i=this,r=i.config.axis_rotated,o=i.state,s=o.hasRadar,u=o.hasTreemap,c={type:{},indices:{},pos:{}};(u||["bar","candlestick","line","area"].forEach(function(t){a(this,n);var e=vo(/^(bubble|scatter)$/.test(t)?"line":t);if(i.hasType(t)||i.hasTypeOf(e)||"line"===t&&(i.hasType("bubble")||i.hasType("scatter"))){var r=i.getShapeIndices(i["is"+e+"Type"]),o=i["generateDraw"+e];c.indices[t]=r,c.type[t]=o?o.bind(i)(r,!1):void 0}}.bind(this)),!i.hasArcType()||s||u)&&(u||(t=s?i.radarCircleX:r?i.circleY:i.circleX,e=s?i.radarCircleY:r?i.circleX:i.circleY),c.pos={xForText:i.generateXYForText(c.indices,!0),yForText:i.generateXYForText(c.indices,!1),cx:(t||function(){}).bind(i),cy:(e||function(){}).bind(i)});return c},getShapeIndices:function(t){var e=this,n=this,i=n.config,r=i.data_xs,o=Qa(r),s={},u=o?{}:0;return o&&bo(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}Va(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 Qa(o)?t[o[u]]:t},getIndicesMax:function(t){var e=this;return Qa(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=Ka(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(Qa(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-(Ya(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 Ya(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&&Ya(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=Ya(e)?e:n?f*r/n:0;return s&&u>s?s:u}.bind(this),g=d();return!l&&Ka(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=Rn(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:bl,"basis-closed":Tl,"basis-open":Al,bundle:El,cardinal:Ml,"cardinal-closed":Cl,"cardinal-open":Pl,"catmull-rom":Wl,"catmull-rom-closed":Zl,"catmull-rom-open":Jl,"monotone-x":oh,"monotone-y":sh,natural:lh,"linear-closed":fh,linear:gh,step:vh,"step-after":xh,"step-before":yh}[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=uo(this.state.event,t),n=so(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}},mh={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,n=this,i=n.config,r=n.state.hasAxis,a=i.axis_rotated,o="fit"===(null==(e=i.padding)?void 0:e.mode),s=a?"x":"y",u=r?i["axis_"+s+"_axes"].length:0,c=r?n.getAxisWidthByAxisId(s,t):0;o||(c=Wa(c));var l=i["axis_"+s+"_inner"]||!i["axis_"+s+"_show"]?0:c;return $a(i.padding_left)?l=i.padding_left+(o&&a?c:0):r&&a&&(l=i.axis_x_show?o?c:Math.max(c,40):1),r&&(o||i["axis_"+s+"_inner"])&&i["axis_"+s+"_label"].text&&(l+=n.axis.getAxisLabelPosition("y").isOuter?20:0),l+c*u},getCurrentPaddingRight:function(t){var e,n;void 0===t&&(t=!1);var i=this,r=i.config,a=i.state.hasAxis,o=r.axis_rotated,s="fit"===(null==(e=r.padding)?void 0:e.mode),u=s?2:10,c=i.state.isLegendRight?i.getLegendWidth()+20:0,l=a?r.axis_y2_axes.length:0,h=null!=(n=i.axis)&&n.getAxisLabelPosition("y2").isOuter?20:0,f=t?i.axis.getXAxisTickTextY2Overflow(u):0,d=a&&!r.axis_y2_inner?i.getAxisWidthByAxisId("y2"):1;s||(d=Wa(d));var g=o?0:Math.max(d+c,f);return $a(r.padding_right)?g=r.padding_right+(s&&(o||!r.axis_y2_show?u:g))+(a&&!s?1:0):i.axis&&o?g=u+c:!i.axis||r.axis_y2_show&&!r.axis_y2_inner||(g=Math.max((s&&!r.axis_y2_show?2:1)+c+h,f)),a&&!o&&s&&r.axis_y2_show&&!r.axis_y2_inner&&r.axis_y2_label.text&&(g+=h),g+d*l},getParentRectValue:function(t){for(var e="offset"+vo(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?No.axisX:No.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("."+ts.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)}},getCurrentPadding:function(){var t=this;return{top:t.getCurrentPaddingTop(),bottom:t.getCurrentPaddingBottom(),left:t.getCurrentPaddingLeft(),right:t.getCurrentPaddingRight()}},getResettedPadding:function(t){var e=this,n=this.config,i=Ya(t),r=i?0:{};return!1===n.padding?i||Object.keys(t).forEach(function(i){a(this,e),r[i]=Ja(n.data_labels)||!1===n.data_labels||"top"!==i?0:t[i]}.bind(this)):r=t,r},updateSizes:function(t){var e,n=this,i=n.config,r=n.state,a=n.$el.legend,o=i.axis_rotated,s=n.hasArcType()||r.hasTreemap,u="fit"===(null==(e=i.padding)?void 0:e.mode);t||n.setContainerSize();var c={width:a?n.getLegendWidth():0,height:a?n.getLegendHeight():0};!s&&i.axis_x_show&&i.axis_x_tick_autorotate&&n.updateXAxisTickClip();var l=r.isLegendRight||r.isLegendInset?0:c.height,h=o||s?0:n.getHorizontalAxisHeight("x"),f=i.subchart_axis_x_show&&i.subchart_axis_x_tick_text_show?h:30,d=i.subchart_show&&!s?i.subchart_size_height+f:0,g=n.hasType("gauge")&&i.arc_needle_show&&!i.gauge_fullCircle&&!i.gauge_label_show?10:0,p=n.getCurrentPadding();if(r.margin=!s&&o?{top:n.getHorizontalAxisHeight("y2")+p.top,right:s?0:n.getCurrentPaddingRight(!0),bottom:n.getHorizontalAxisHeight("y")+l+p.bottom,left:d+(s?0:p.left)}:{top:(u?0:4)+p.top,right:s?0:n.getCurrentPaddingRight(!0),bottom:g+h+d+l+p.bottom,left:s?0:p.left},r.margin=n.getResettedPadding(r.margin),r.margin2=o?{top:r.margin.top,right:NaN,bottom:20+l,left:n.state.rotatedPadding.left}:{top:r.current.height-d-l,right:NaN,bottom:f+l,left:r.margin.left},r.margin3={top:0,right:NaN,bottom:0,left:0},null==n.updateSizeForLegend||n.updateSizeForLegend(c),r.width=r.current.width-r.margin.left-r.margin.right,r.height=r.current.height-r.margin.top-r.margin.bottom,r.width<0&&(r.width=0),r.height<0&&(r.height=0),r.width2=o?r.margin.left-r.rotatedPadding.left-r.rotatedPadding.right:r.width,r.height2=o?r.height:r.current.height-r.margin2.top-r.margin2.bottom,r.width2<0&&(r.width2=0),r.height2<0&&(r.height2=0),n.hasArcType()){var v=n.hasType("gauge"),y=i.legend_show&&r.isLegendRight;r.arcWidth=r.width-(y?c.width+10:0),r.arcHeight=r.height-(y&&!v?0:10),v&&!i.gauge_fullCircle&&(r.arcHeight+=r.height-n.getPaddingBottomForGauge()),null==n.updateRadius||n.updateRadius()}r.isLegendRight&&s&&(r.margin3.left=r.arcWidth/2+1.1*r.radiusExpanded)}},_h={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?"."+(Qo.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),Ua(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:Xa(t)?t.bind(this):t}};function Th(t){return"string"==typeof t?new kn([document.querySelectorAll(t)],[document.documentElement]):new kn([fe(t)],En)}function wh(t,e,n,i,r){var a,o=t.value,s=this.isCandlestickType(t),u=Ya(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}}function Ah(t,e){var n,i=this.config.data_labels_position,r=t.id,a=t.index,o=t.value;return null!=(n=Xa(i)?i.bind(this.api)(e,o,r,a,this.$el.text):(r in i?i[r]:i)[e])?n:0}var Sh={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(){var t=this.$el;t.main.select("."+Po.chart).append("g").attr("class",es.chartTexts).style("pointer-events",t.treemap?"none":null)},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("."+es.chartTexts).selectAll("."+es.chartText).data(t).attr("class",function(t){return a(this,e),(""+i(t)+o(t)).trim()}.bind(this)).enter().append("g").style("opacity","0").attr("class",i).call(n.setCssRule(!0," ."+es.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.axis,s=e.getClass("text","index"),u=r.data_labels.centered,c=n.main.selectAll("."+es.texts).selectAll("."+es.text).data(e.labelishData.bind(e));i(c.exit()).style("fill-opacity","0").remove(),n.text=c.enter().append("text").merge(c).attr("class",s).attr("text-anchor",function(n){a(this,t);var i=r["axis_"+(null==o?void 0:o.getId(n.id))+"_inverted"]?n.value>0:n.value<0;if(e.isCandlestickType(n)){var s=e.getCandlestickData(n);i=!(null!=s&&s._isUp)}else if(e.isTreemapType(n))return u?"middle":"start";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=Rn(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.isTreemapType(t)?e.treemapDataLabelFormat(t)(r):e.dataLabelFormat(t.id)(a,t.id,n,i),Ya(a)?this.textContent=a:oo(r,a)}))},updateTextColor:function(t){var e,n=this,i=n.config,r=i.data_labels_colors,a=n.isArcType(t)&&!n.isRadarType(t)||n.isTreemapType(t)?null:n.color(t);if(Ua(r))e=r;else if(eo(r)){e=r[(t.data||t).id]}else Xa(r)&&(e=r.bind(n.api)(a,t));if(n.isCandlestickType(t)&&!Xa(r)){var o=n.getCandlestickData(t);if(null==o||!o._isUp){var s=i.candlestick_color_down;e=eo(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(Ua(i)||eo(i)){var a=Ua(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=r.state.hasTreemap,c=ho(!0),l=s.axis_rotated,h=s.data_labels.rotate,f=function(t){var e="middle";return t>0&&t<=170?e="end":t>190&&t<=360&&(e="start"),e}(h),d=h?"rotate("+h+")":"";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,g){var p=a(u&&this.childElementCount?this.parentNode:this,!(!i||!this.getAttribute("x")),c),v=s["axis_"+(null==o?void 0:o.getId(n.id))+"_inverted"],y={x:t.bind(this)(n,g),y:e.bind(this)(n,g)};h&&(y=wh.bind(r)(n,y,f,l,v),p.attr("text-anchor",f)),this.childElementCount||h?p.attr("transform","translate("+y.x+" "+y.y+") "+d):p.attr("x",y.x).attr("y",y.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",Rn(r).style("font")).classed(e,!0).text(o).call(function(t){a(this,n),u=lo(t.node())}.bind(this)).remove(),i.cache.add(s,u)),u},generateXYForText:function(t,e){var n=this,i=this,r=i.state,o=r.hasRadar,s=r.hasTreemap,u=Object.keys(t),c={},l=e?i.getXForText:i.getYForText;return o&&u.push("radar"),s&&u.push("treemap"),u.forEach(function(e){a(this,n),c[e]=i["generateGet"+vo(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"||i.isTreemapType(t)&&"treemap"||"line";return l.call(i,c[n](t,e),t,this)}},getCenteredTextPos:function(t,e,n,i){var r=this,a=r.config,o=a.axis_rotated,s=r.isBarType(t),u=r.isTreemapType(t);if(a.data_labels.centered&&(s||u)){var c=lo(n);if(s){var l=t.value>=0;if(o){var h=(l?e[1][1]-e[0][1]:e[0][1]-e[1][1])/2+c.width/2;return l?-h-3:h+2}var f=(l?e[0][1]-e[1][1]:e[1][1]-e[0][1])/2+c.height/2;return l?f:-f-2}if(u)return"x"===i?(e[1][0]-e[0][0])/2:(e[1][1]-e[0][1])/2+c.height/2}return 0},getXForText:function(t,e,n){var i,r=this,a=r.config,o=r.state,s=a.axis_rotated,u=r.isTreemapType(e),c=t[0][0];if(r.isCandlestickType(e))s?c=null!=(i=r.getCandlestickData(e))&&i._isUp?t[2][2]+4:t[2][1]-4:c+=(t[1][0]-c)/2;else if(u)c+=a.data_labels.centered?0:5;else if(s){var l=a["axis_"+r.axis.getId(e.id)+"_inverted"],h=r.isBarType(e)?4:6,f=e.value;c=t[2][1],l?c-=h*(f>0?1:-1):c+=h*(f<0?-1:1)}else c=r.hasType("bar")?(t[2][0]+t[0][0])/2:c;if(null===e.value)if(c>o.width){var d=lo(n).width;c=o.width-d}else c<0&&(c=4);return(s||u)&&(c+=r.getCenteredTextPos(e,t,n,"x")),c+Ah.call(this,e,"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=r.isTreemapType(e),f=o.point_r,d=lo(n),g=e.value,p=3;if(r.isCandlestickType(e))g=r.getCandlestickData(e),u?(i=t[0][0],i+=(t[1][0]-i)/2+p):(i=g&&g._isUp?t[2][2]-p:t[2][1]+4*p,c&&(i+=15*(g._isUp?1:-1)));else if(h)i=t[0][1]+(o.data_labels.centered?0:d.height+5);else if(u)i=(t[0][0]+t[2][0]+.6*d.height)/2;else if(i=t[2][1],Ya(f)&&f>5&&(r.isLineType(e)||r.isScatterType(e))&&(p+=o.point_r/2.3),g<0||0===g&&!s.hasPositiveValue&&s.hasNegativeValue)i+=c?l?-3:-5:d.height+(l?-p:p);else{var v=2*-p;l?v=-p:r.isBubbleType(e)&&(v=p),c&&(v=l?10:15),i+=v}if(null===e.value&&!u){var y=d.height;i<y?i=y:i>s.height&&(i=s.height-4)}return u&&!h||(i+=r.getCenteredTextPos(e,t,n,"y")),i+Ah.call(this,e,"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=xo(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=xo(this),e=Rn(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(es.TextOverlapping,i&&r)}))},undoMarkOverlapped:function(t,e){t.$el.arcs.selectAll(e).each((function(){Th([this,this.previousSibling]).classed(es.TextOverlapping,!1)}))},meetsLabelThreshold:function(t,e){void 0===t&&(t=0);return t>=(this.config[e+"_label_threshold"]||0)}};function Eh(t,e){void 0===t&&(t="left");var n=Ya(e);return t.indexOf("center")>-1?n?e/2:"middle":t.indexOf("right")>-1?n?e:"end":n?0:"start"}var kh={initTitle:function(){var t=this.config,e=this.$el;t.title_text&&(e.title=e.svg.append("g"),oo(e.title.append("text").style("text-anchor",Eh(t.title_position)).attr("class",es.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("+Eh(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,es.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,es.title).height},getTitlePadding:function(){return this.yForTitle()+(this.config.title_padding.bottom||0)}},Oh={initTooltip:function(){var t=this,e=t.config,n=t.$el;n.tooltip=Rn(e.tooltip_contents.bindto),n.tooltip.empty()&&(n.tooltip=n.chart.append("div").attr("class",ns.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()&&Ua(n.tooltip_init_x)){var h,f,d=e.data.targets[0];for(n.tooltip_init_x=ko.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 Xa(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=o.$el,h=["title","name","value"].map(function(t){a(this,r);var e=u["tooltip_format_"+t];return Xa(e)?e.bind(s):e}.bind(this)),f=h[0],d=h[1],g=h[2];f=f||e,d=d||function(t){return a(this,r),t}.bind(this),g=g||(c.hasTreemap||o.isStackNormalized()?function(t,e){return a(this,r),(100*e).toFixed(2)+"%"}.bind(this):n);var p=u.tooltip_order,v=function(t){return a(this,r),o.axis&&o.isBubbleZType(t)?o.getBubbleZData(t.value,"z"):o.getBaseValue(t)}.bind(this),y=o.levelColor?function(t){return a(this,r),o.levelColor(t.value)}.bind(this):function(t){return a(this,r),i(t)}.bind(this),x=u.tooltip_contents,b=x.template,m=o.mapToTargetIds();if(null===p&&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(p)?t.sort(function(t,e){a(this,r);var n=t?v(t):null,i=e?v(e):null;return"asc"===p?n-i:i-n}.bind(this)):Xa(p)&&t.sort(p.bind(s));var T,w,A,S,E,k=o.getTooltipContentTemplate(b),O=t.length,M=function(){var e=this;if(!(w=t[E])||!v(w)&&0!==v(w))return 0;if(Va(T)){var n=(c.hasAxis||c.hasRadar)&&ao(f?f(w.x):w.x);T=Eo(k[0],{CLASS_TOOLTIP:ns.tooltip,TITLE:$a(n)?b?n:'<tr><th colspan="2">'+n+"</th></tr>":""})}if(!w.ratio&&l.arcs&&(A=["arc",o.$el.arcs.select("path."+Lo.arc+"-"+w.id).data()[0]],w.ratio=o.getRatio.apply(o,A)),A=[w.ratio,w.id,w.index,t],S=ao(g.apply(void 0,[v(w)].concat(A))),o.isAreaRangeType(w)){var i=["high","low"].map(function(t){return a(this,e),ao(g.apply(void 0,[o.getRangedData(w,t)].concat(A)))}.bind(this)),r=i[0],s=i[1];S="<b>Mid:</b> "+S+" <b>High:</b> "+r+" <b>Low:</b> "+s}else if(o.isCandlestickType(w)){var u=["open","high","low","close","volume"].map(function(t){return a(this,e),ao(g.apply(void 0,[o.getRangedData(w,t,"candlestick")].concat(A)))}.bind(this)),h=u[0],p=u[1],_=u[2],O=u[3],M=u[4];S="<b>Open:</b> "+h+" <b>High:</b> "+p+" <b>Low:</b> "+_+" <b>Close:</b> "+O+(M?" <b>Volume:</b> "+M:"")}else if(o.isBarRangeType(w)){var R=w.value,C=R[0],I=R[1];S=g(C)+" ~ "+g(I)}if(void 0!==S){if(null===w.name)return 0;var P=ao(d.apply(void 0,[w.name].concat(A))),L=y(w),D={CLASS_TOOLTIP_NAME:ns.tooltipName+o.getTargetSelectorSuffix(w.id),COLOR:b||!o.patterns?L:'<svg><rect style="fill:'+L+'" width="10" height="10"></rect></svg>',NAME:P,VALUE:S};if(b&&eo(x.text)){var N=m.indexOf(w.id);Object.keys(x.text).forEach(function(t){a(this,e),D[t]=x.text[t][N]}.bind(this))}T+=Eo(k[1],D)}};for(E=0;E<O;E++)M();return T+"</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(/{{(.*)}}/)},setTooltipPosition:function(t,e){var n=this,i=this,r=i.config,o=i.scale,s=i.state,u=i.$el,c=u.eventRect,l=u.tooltip,h=r.tooltip_contents.bindto,f=l.datum();if(!h&&f){var d,g,p=uo(s.event,null!=e?e:null==c?void 0:c.node()),v={x:p[0],y:p[1]};o.x&&f&&"x"in f&&(v.xAxis=o.x(f.x));var y=f.width,x=void 0===y?0:y,b=f.height,m=void 0===b?0:b,_=null!=(d=null==(g=r.tooltip_position)?void 0:g.bind(i.api)(null!=t?t:JSON.parse(f.current),x,m,null==c?void 0:c.node(),v))?d:i.getTooltipPosition.bind(i)(x,m,v);["top","left"].forEach(function(t){a(this,n);var e=_[t];l.style(t,e+"px"),"left"!==t||f.xPosInPercent||(f.xPosInPercent=e/s.current.width*100)}.bind(this))}},getTooltipPosition:function(t,e,n){var i=this,r=this,o=r.config,s=r.scale,u=r.state,c=u,l=c.width,h=c.height,f=c.current,d=c.isLegendRight,g=c.inputType,p=r.hasType("gauge")&&!o.gauge_fullCircle,v=u.hasTreemap,y=o.axis_rotated,x=r.getSvgLeft(!0),b=x+f.width-r.getCurrentPaddingRight(),m=r.getCurrentPaddingLeft(!0),_=n.x,T=n.y;r.hasArcType()?"touch"===g||r.hasType("radar")||(T+=p?h:h/2,_+=(l-(d?r.getLegendWidth():0))/2):v||(y?(T=n.xAxis+20,_+=x,b-=x):(T-=5,_=x+m+20+(s.zoom?_:n.xAxis)));(_+t+15>b&&(_-=y?t-m:t+(v?0:m)),T+e>f.height)&&(T-=p?3*e:e+(v?0:30));var w={top:T,left:_};return Object.keys(w).forEach(function(t){a(this,i),w[t]<0&&(w[t]=0)}.bind(this)),w},showTooltip:function(t,e){var n=this,i=this,r=i.config,o=i.$el.tooltip,s=t.filter(function(t){return a(this,n),t&&$a(i.getBaseValue(t))}.bind(this));if(o&&0!==s.length&&r.tooltip_show){var u=o.datum(),c=JSON.stringify(t);if(!u||u.current!==c){var l=t.concat().sort()[0],h=l.index,f=l.x;io(r.tooltip_onshow,i.api,t),o.html(i.getTooltipHTML(t,i.axis?i.axis.getXAxisTickFormat():i.categoryName.bind(i),i.getDefaultValueFormat(),i.color)).style("display",null).style("visibility",null).datum(u={index:h,x:f,current:c,width:o.property("offsetWidth"),height:o.property("offsetHeight")}),io(r.tooltip_onshown,i.api,t),i._handleLinkedCharts(!0,h)}i.setTooltipPosition(s,e)}},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);io(i.tooltip_onhide,n,a),r.style("display","none").style("visibility","hidden").datum(null),io(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))}},updateTooltipOnRedraw:function(t,e){var n=this,i=this,r=i.config,o=i.$el,s=o.eventRect,u=o.svg,c=o.tooltip,l=i.state,h=l.event,f=l.hasAxis,d=l.hasRadar,g=l.hasTreemap;if("block"===(null==c?void 0:c.style("display"))&&h){var p,v=null!=t?t:null==(p=d?u:s)?void 0:p.node();if(f||d)if(i.isMultipleX())i.selectRectForMultipleXs(v,!1);else{var y=null!=e?e:i.getDataIndexFromEvent(h);-1===e?i.api.tooltip.hide():(i.selectRectForSingle(v,y),i.setExpand(y,null,!0))}else{var x=h.clientX,b=h.clientY;setTimeout(function(){a(this,n);var t=zn.elementFromPoint(x,b),e=Rn(t).datum();if(e){var r=i.hasArcType()?i.convertToArcData(i.updateAngle(e)):null==e?void 0:e.data;g&&(t=u.node()),r&&i.showTooltip([r],t)}else i.api.tooltip.hide()}.bind(this),r.transition_duration)}}}},Mh={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=qa(o.margin.left),i=qa(o.margin.top);else if("context"===t)n=qa(o.margin2.left),i=qa(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&&u?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=qa(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("."+No.axisX),t),o=null!=e&&e.axisY?e.axisY:r(i.select("."+No.axisY),t),s=null!=e&&e.axisY2?e.axisY2:r(i.select("."+No.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("."+Lo.chartArcs).attr("transform",n.getTranslate("arc"))},transformAll:function(t,e){var n=this,i=n.config,r=n.state,a=r.hasAxis,o=r.hasTreemap,s=n.$el;o||n.transformMain(t,e),a&&i.subchart_show&&n.transformContext(t,e),s.legend&&n.transformLegend(t)}},Rh={isValidChartType:function(t){return!!(t&&Object.values(jn).indexOf(t)>-1)},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(jn).forEach(function(i){a(this,t);var r=jn[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 $n&&!$n[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=Ua(t)?t:t.id,i=this.config.data_types[n]||this.config.data_type;return to(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=Ua(t)?t:t.id;return!this.config.data_types[e]||this.isTypeOf(e,$n.Line)},isStepType:function(t){return this.isTypeOf(t,$n.Step)},isSplineType:function(t){return this.isTypeOf(t,$n.Spline)},isAreaType:function(t){return this.isTypeOf(t,$n.Area)},isAreaRangeType:function(t){return this.isTypeOf(t,$n.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")},isTreemapType:function(t){return this.isTypeOf(t,"treemap")},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||to(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)||this.isTreemapType(t)?t.values.filter(function(t){return a(this,e),Ya(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}},Ch=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 ms,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=Rn(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"),io(t.config.onbeforeinit,t.api)},e.afterInit=function(){var t=this;t.callPluginHook("$afterInit"),io(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(Ro(t),n.hasRadar=!n.hasAxis&&t.hasType("radar"),n.hasTreemap=!n.hasAxis&&t.hasType("treemap"),n.hasAxis=!t.hasArcType()&&!n.hasTreemap,n.datetimeId="bb-"+ +new Date*ho(),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"};eo(e.bindto)&&(o.element=e.bindto.element||"#chart",o.classname=e.bindto.classname||o.classname),i.chart=Xa(o.element.node)?e.bindto.element:Rn(o.element||[]),i.chart.empty()&&(i.chart=Rn(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=In.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?Y:G,i.axisTime=n.axis_x_localtime?U:V;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=In.DocumentTouch,r=In.matchMedia,o=In.navigator,s=!1;if(e)if(o&&"maxTouchPoints"in o)s=o.maxTouchPoints>0;else if("ontouchmove"in In||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,l=c.hasAxis,h=c.hasTreemap,f=i.interaction_enabled,d=n.hasType("polar");if(l&&(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),l){var g=r.x,p=r.y,v=r.y2,y=r.subX,x=r.subY,b=r.subY2;g&&(g.domain(To(n.getXDomain(n.data.targets),!i.axis_x_inverted)),y.domain(g.domain()),u.xDomain=g.domain()),p&&(p.domain(n.getYDomain(n.data.targets,"y")),x.domain(p.domain())),v&&(v.domain(n.getYDomain(n.data.targets,"y2")),b&&b.domain(v.domain()))}if(s.svg=s.chart.append("svg").style("overflow","hidden").style("display","block"),f&&o.inputType){var m="touch"===o.inputType,_=i.onclick,T=i.onover,w=i.onout;s.svg.on("click",(null==_?void 0:_.bind(n.api))||null).on(m?"touchstart":"mouseenter",(null==T?void 0:T.bind(n.api))||null).on(m?"touchend":"mouseleave",(null==w?void 0:w.bind(n.api))||null)}i.svg_classname&&s.svg.attr("class",i.svg_classname);var A=Xa(i.color_tiles)&&n.patterns;(l||A||d||h||i.data_labels_backgroundColors)&&(s.defs=s.svg.append("defs"),l&&["id","idXAxis","idYAxis","idGrid"].forEach(function(t){a(this,e),n.appendClip(s.defs,o.clip[t])}.bind(this)),n.generateDataLabelBackgroundColorFilter(),A&&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 S,E=s.svg.append("g").classed(Po.main,!0).attr("transform",h?null:n.getTranslate("main"));(s.main=E,i.subchart_show&&n.initSubchart(),i.tooltip_show&&n.initTooltip(),i.title_text&&n.initTitle(),!h&&i.legend_show&&n.initLegend(),i.data_empty_label_text&&E.append("text").attr("class",es.text+" "+Po.empty).attr("text-anchor","middle").attr("dominant-baseline","middle"),l&&(i.regions.length&&n.initRegion(),i.clipPath||n.axis.init()),E.append("g").classed(Po.chart,!0).attr("clip-path",l?o.clip.path:null),n.callPluginHook("$init"),n.initChartElements(),l)&&(f&&(null==n.initEventRect||n.initEventRect()),n.initGrid(),i.clipPath&&(null==(S=n.axis)||S.init()));if(n.updateTargets(n.data.targets),n.updateDimension(),io(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 k=n.getMinMaxData();io(i.data_onmin,n.api,k.min),io(i.data_onmax,n.api,k.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=n.hasTreemap,s=[];if(i){var u=["bar","bubble","candlestick","line"];e.config.bar_front&&u.push(u.shift()),u.forEach(function(n){a(this,t);var i=vo(n);("line"===n&&e.hasTypeOf(i)||e.hasType(n))&&s.push(i)}.bind(this))}else if(o)s.push("Treemap");else{var c=e.hasType("polar");r||s.push("Arc","Pie"),e.hasType("gauge")?s.push("Gauge"):r?s.push("Radar"):c&&s.push("Polar")}s.forEach(function(n){a(this,t),e["init"+n]()}.bind(this)),Qa(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.needle,l=t.arcs,h=t.circle,f=t.bar,d=t.candlestick,g=t.line,p=t.area,v=t.text;this.api.$={chart:e,svg:n,defs:i,main:r,tooltip:a,legend:o,title:s,grid:u,arc:l,circles:h,bar:{bars:f},candlestick:d,line:{lines:g,areas:p},needle:c,text:{texts:v}}},e.setBackground=function(){var t=this,e=t.config.background,n=t.state,i=t.$el.svg;if(Qa(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=i.hasTreemap,u=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=vo(t);("line"===t&&n.hasTypeOf(i)||n.hasType(t))&&u(i)}.bind(this)),n.updateTargetsForSubchart&&n.updateTargetsForSubchart(t);else if(n.hasArcType(t)){var c="Arc";o?c="Radar":n.hasType("polar")&&(c="Polar"),u(c)}else s&&u("Treemap");var l=n.hasType("bubble")||n.hasType("scatter");l&&(null==n.updateTargetForCircle||n.updateTargetForCircle()),n.filterTargetsToShowAtInit(l)},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+=", ."+jo.chartCircles+" > ."+jo.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];Ua(r)&&(r=n[r]),n[i]=no(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?Fn(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),Ya(t)?t:200)};return r.clear=function(){a(this,n),e&&(Ps(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),io(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),io(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,In.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 Ih(t){var e,n,i,r=this,o=this.config,s=function(){a(this,r);var t=n.shift();return t&&e&&Ka(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(),Ga(i)&&(o[u]=i)}.bind(this)),this.api&&(this.state.orgConfig=t)}po(Ch.prototype,[iu,ru,ou,{categoryName:function(t){var e=this.config.axis_x_categories;return t<(null==e?void 0:e.length)?e[t]:t}},pu,Nu,Fu,gu,ju,$u,Xu,vl,bh,mh,_h,Sh,kh,Oh,Mh,Rh]);var Ph={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(Qa(e))for(var s in e.callPluginHook("$willDestroy"),e.charts.splice(e.charts.indexOf(this),1),e.unbindAllEvents(),o.select("*").interrupt(),e.resizeFunction.clear(),In.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?Ga(e)?(a[s]=e,i=e,n&&this.flush()):i=a[s]:(0===arguments.length||Ja(t))&&(i=o.orgConfig),i}},Lh=function(t){var e=this,n=this.internal.data.targets;if(!Va(t)){var i=to(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};po(Lh,{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);to(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 Dh={data:Lh},Nh=function(t){var e=this;return a(this,undefined),null==In.btoa?void 0:In.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 Fh(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(yo(t.cssRules)))}catch(e){var i;null==(i=In.console)||i.warn("Error while reading rules from "+t.href+": "+e.toString())}}.bind(this)),n}(yo(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",Ce.xhtml),c.style.margin="0",c.style.padding="0",e.preserveFontStyle&&c.querySelectorAll("text").forEach(function(t){a(this,i),t.innerHTML=""}.bind(this));var h=u.serializeToString(c),f=zn.createElement("style");f.appendChild(zn.createTextNode(l.join("\n")));var d=u.serializeToString(f),g=('<svg xmlns="'+Ce.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,"+Nh(g)}function zh(t){var e=this,n=t.getBoundingClientRect(),i=n.left,r=n.top,o=function(t){return a(this,e),t.textContent||t.childElementCount}.bind(this),s=[];return yo(t.querySelectorAll("text")).filter(o).forEach(function(t){var n=this;a(this,e);var u=function(t){var e;a(this,n);var o=In.getComputedStyle(t),s=o.fill,u=o.fontFamily,c=o.fontSize,l=o.textAnchor,h=o.transform,f=function(t,e){var n=e.top,i=e.left,r=t.getBBox(),a=r.x,o=r.y,s=t.getScreenCTM(),u=s.a,c=s.b,l=s.c,h=s.d,f=s.e,d=s.f,g=t.getBoundingClientRect(),p=g.width,v=g.height;return{x:u*a+l*o+f-i,y:c*a+h*o+d-n+(v-Math.round(v/4)),width:p,height:v}}(t,{left:i,top:r}),d=f.x,g=f.y,p=f.width,v=f.height;return(e={})[t.textContent]={x:d,y:g,width:p,height:v,fill:s,fontFamily:u,fontSize:c,textAnchor:l,transform:h},e}.bind(this);if(t.childElementCount>1)return yo(t.querySelectorAll("tspan")).filter(o).forEach(function(t){a(this,n),s.push(u(t))}.bind(this)),[];s.push(u(t))}.bind(this)),s}var jh={export:function(t,e){var n=this,i=this.internal,r=i.state,o=i.$el,s=o.chart,u=o.svg,c=r.current,l=c.width,h=c.height,f=_o({width:l,height:h,preserveAspectRatio:!0,preserveFontStyle:!1,mimeType:"image/png"},t),d=Fh(s.node(),f,{width:l,height:h}),g=f.preserveFontStyle?zh(u.node()):[];if(e&&Xa(e)){var p=new Image;p.crossOrigin="Anonymous",p.onload=function(){a(this,n);var t=zn.createElement("canvas"),i=t.getContext("2d");t.width=f.width||l,t.height=f.height||h,i.drawImage(p,0,0),g.length&&(!function(t,e){var n=this;e.forEach(function(e){var i=this;a(this,n),Object.keys(e).forEach(function(n){var r=this;a(this,i);var o=e[n],s=o.x,u=o.y,c=o.width,l=o.height,h=o.fill,f=o.fontFamily,d=o.fontSize,g=o.transform;if(t.save(),t.font=d+" "+f,t.fillStyle=h,"none"===g)t.fillText(n,s,u);else{var p=g.replace(/(matrix|\(|\))/g,"").split(",");p.splice(4).every(function(t){return a(this,r),0==+t}.bind(this))?(p.push(s+c-c/4),p.push(u-l+l/3)):(p.push(s),p.push(u)),t.transform.apply(t,p),t.fillText(n,0,0)}t.restore()}.bind(this))}.bind(this))}(i,g),g.length=0),e.bind(this)(t.toDataURL(f.mimeType))}.bind(this),p.src=d}return d}},Bh={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(Go.focused,!0).classed(Go.defocused,!1),n.hasArcType()&&!i.hasRadar&&(n.expandArc(r),n.hasType("gauge")&&n.markOverlapped(t,n,"."+Xo.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(Go.focused,!1).classed(Go.defocused,!0),n.hasArcType(null,["polar"])&&(n.unexpandArc(r),n.hasType("gauge")&&n.undoMarkOverlapped(n,"."+Xo.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(Go.focused,!1).classed(Go.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 Rn(this).classed(Go.legendItemFocused)})).classed(Go.legendItemFocused,!1)),i.focusedTargetIds=[],i.defocusedTargetIds=[]}},$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})}}},Xh={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),Fn(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||{};Ja(i)&&this.tooltip.hide(),to(i)?i={ids:i}:Ua(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),au.call(n,i.done,i.resizeAfter)}.bind(this))}};function Uh(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),io(r.config.data_onshown,this,s)),r.$T(u).style("opacity",c,"important").call(ro,function(){a(this,i),t||0!==s.length||(u.style("display","none"),io(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 Yh={show:function(t,e){void 0===e&&(e={}),Uh.call(this,!0,t,e)},hide:function(t,e){void 0===e&&(e={}),Uh.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)}},Vh={show:function(t){var e,n,i=this,r=this.internal,o=r.$el,s=r.config,u=r.state,c=u.eventReceiver,l=u.hasTreemap,h=u.inputType;if(t.mouse&&(n=t.mouse),t.data){var f,d=t.data,g=null==(f=r.getYScaleById(d.id))?void 0:f(d.value);if(l&&d.id)c.rect=o.main.select(""+r.selectorTarget(d.id,void 0,"rect"));else if(r.isMultipleX())n=[r.xx(d),g];else{var p,v;s.tooltip_grouped||(n=[0,g]),e=null!=(p=d.index)?p:r.hasArcType()&&d.id?null==(v=r.getArcElementByIdOrIndex(d.id))?void 0:v.datum().index:r.getIndexByX(d.x)}}else Ga(t.x)?e=r.getIndexByX(t.x):Ga(t.index)&&(e=t.index);("mouse"===h?["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),null==e.hideGridFocus||e.hideGridFocus(),null==e.unexpandCircles||e.unexpandCircles(),null==e.expandBarTypeShapes||e.expandBarTypeShapes(!1)}},Gh={tooltip:Vh},Hh=function t(e){this.plugins=[],this.internal=void 0;var n=new Ch(this);this.internal=n,function t(e,n,i){var r=this;Object.keys(e).forEach(function(o){a(this,r);var s=Xa(e[o]),u=n!==i,c=Qa(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),Ih.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=Ya(n)?n:!1===n?void 0:null;null!==o&&(r["axis_"+t+"_"+e]=o)}.bind(this);Ga(n)&&(Ka(n)?Object.keys(n).forEach(function(t){a(this,i),o(t,n[t])}.bind(this)):(Ya(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]}}po(Hh.prototype,[Ph,{color:function(t){return this.internal.color(t)}},Dh,jh,Bh,$h,Xh,Yh,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;Ga(i)&&e.max(i),Ga(n)&&e.min(n)}},Kh={axis:Zh};function Jh(t,e){var n=this.internal,i=n.config,r=i.transition_duration&&Oo(),a="grid_"+e+"_lines";return t?(i[a]=t,n.updateGrid(),n.redrawGrid(r),i[a]):i[a]}function Qh(t,e){return Jh.bind(this)(this.internal.config["grid_"+e+"_lines"].concat(t||[]),e)}function tf(t,e){this.internal.removeGridLines(t,e)}var ef=function(t){return Jh.bind(this)(t,"x")};po(ef,{add:function(t){return Qh.bind(this)(t,"x")},remove:function(t){return tf.bind(this)(t,!0)}});var nf=function(t){return Jh.bind(this)(t,"y")};po(nf,{add:function(t){return Qh.bind(this)(t,"y")},remove:function(t){return tf.bind(this)(t,!1)}});var rf={xgrids:ef,ygrids:nf},af={groups:function(t){var e=this.internal,n=e.config;return Va(t)||(n.data_groups=t,e.redraw()),n.data_groups}};function of(t,e){void 0===e&&(e=!1);var n=this.internal,i=n.config,r=i.transition_duration&&Oo();return t?(i.regions=e?i.regions.concat(t):t,n.updateRegion(),n.redrawRegion(r),e?i.regions:t):i.regions}var sf=function(t){return of.bind(this)(t)};po(sf,{add:function(t){return of.bind(this)(t,!0)},remove:function(t){var e=this,n=this.internal,i=n.config,r=n.$T,o=t||{},s=no(o,"classes",[Ko.region]),u=n.$el.main.select("."+Ko.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 uf={regions:sf},cf={x:function(t){var e=this.internal,n=e.axis,i=e.data,r=n.isCustomX()&&n.isCategorized();return to(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 eo(t)&&(e.updateTargetXs(e.data.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),e.data.xs}},lf={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];Ga(t.to)?(u=0,o=d?ko.call(i,t.to):t.to,g.values.forEach(function(t){a(this,s),t.x<o&&u++}.bind(this))):Ga(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 hf(t){return t}var ff=1,df=2,gf=3,pf=4,vf=1e-6;function yf(t){return"translate("+t+",0)"}function xf(t){return"translate(0,"+t+")"}function bf(t){var e=this;return function(n){return a(this,e),+t(n)}.bind(this)}function mf(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 _f(){return!this.__axis}function Tf(t,e){var n=[],i=null,r=null,a=6,o=6,s=3,u="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,c=t===ff||t===pf?-1:1,l=t===pf||t===df?"x":"y",h=t===ff||t===gf?yf:xf;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):hf:r,p=Math.max(a,0)+s,v=e.range(),y=+v[0]+u,x=+v[v.length-1]+u,b=(e.bandwidth?mf:bf)(e.copy(),u),m=f.selection?f.selection():f,_=m.selectAll(".domain").data([null]),T=m.selectAll(".tick").data(d,e).order(),w=T.exit(),A=T.enter().append("g").attr("class","tick"),S=T.select("line"),E=T.select("text");_=_.merge(_.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),T=T.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",t===ff?"0em":t===gf?"0.71em":"0.32em")),f!==m&&(_=_.transition(f),T=T.transition(f),S=S.transition(f),E=E.transition(f),w=w.transition(f).attr("opacity",vf).attr("transform",(function(t){return isFinite(t=b(t))?h(t+u):this.getAttribute("transform")})),A.attr("opacity",vf).attr("transform",(function(t){var e=this.parentNode.__axis;return h((e&&isFinite(e=e(t))?e:b(t))+u)}))),w.remove(),_.attr("d",t===pf||t===df?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),T.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),m.filter(_f).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===df?"start":t===pf?"end":"middle"),m.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 wf(t){return Tf(ff,t)}function Af(t){return Tf(df,t)}function Sf(t){return Tf(gf,t)}function Ef(t){return Tf(pf,t)}var kf=function(){function t(t){this.owner=void 0,this.config=void 0,this.scale=void 0;var e=pl(),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=pl("_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),Ua(t)&&Ya(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 Ga(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}(),Of=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 kf(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,m=b&&/^(x|y|y2)$/.test(b)?r.config["axis_"+b+"_tick_text_position"]:{x:0,y:0},_="subX"===b?"subchart_axis_x":"axis_"+b,T=r.config[_+"_show"],w=!!T&&r.config[_+"_tick_show"],A=!!T&&r.config[_+"_tick_text_show"];t.each((function(){var t=this,b=Rn(this),_=this.__chart__||o,T=i.copyScale();p=b,this.__chart__=T,n.tickOffset=r.isCategory?Math.ceil((T(1)-T(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)),w||A){var E=n.tickValues||i.generateTicks(T,c);e.generatedTicks=E;var k=b.selectAll(".tick").data(E,T),O=k.enter().insert("g",".domain").attr("class","tick"),M=k.exit().remove();k=O.merge(k),w&&O.append("line"),A&&O.append("text");var R=kf.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,T,E,c,R.w):to(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+(m.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===m.y?".71em":0)),Ya(i)&&m.y?i+m.y:i||".71em"}.bind(this));var P=k.select("line"),L=k.select("text");if(O.select("line").attr(f+"2",v*d),O.select("text").attr(f,y*d),e.setTickLineTextPosition(P,L),r.tickTitle){var D=L.select("title");(D.empty()?L.append("title"):D).text(function(e){return a(this,t),r.tickTitle[e]}.bind(this))}if(T.bandwidth){var N=T,F=N.bandwidth()/2;_=function(e){return a(this,t),N(e)+F}.bind(this),T=_}else _.bandwidth?_=T:h(M,T);k=r.owner.state.flowing?i.transitionise(k):r.owner.$T(k),h(O,_),h(k.style("opacity",null),T)}})),this.g=p},e.getGeneratedTicks=function(t){var e,n=this,i=(null==(e=this.generatedTicks)?void 0:e.length)-1,r=this.generatedTicks;if(i>t){var o=Math.round(i/t+.1);r=this.generatedTicks.map(function(t,e){return a(this,n),e%o==0?t:null}.bind(this)).filter(function(t){return a(this,n),null!==t}.bind(this)).splice(0,t)}return r},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=Ua(o)&&o.indexOf("\n")>-1?o.split("\n"):[];if(s.length)return s;if(to(o))return o;var u=a.tickWidth;return(!u||u<=0)&&(u=i?95:a.isCategory?Math.ceil(a.isInverted?e(n[0])-e(n[1]):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=yo(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(Xa(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}(),Mf={getAxisInstance:function(){return this.axis||new Rf(this)}},Rf=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 No.axis+" "+No["axis"+vo(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||Qa(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=No["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?Ef:Sf:"y"===t?e=u?Sf:Ef:"y2"===t&&(e=u?wf:Af),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(Xa(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"];Xa(p)&&(o=p.bind(u.api))}var v=this.tick[h],y=_o({outerTick:n,noTransition:i,config:c,id:t,tickTextRotate:g,owner:u},l&&{isCategory:f,isInverted:c.axis_x_inverted,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 Of(y).scale(l&&u.scale.zoom||e).orient(d);if(l&&this.isTimeSeries()&&v&&!Xa(v)){var b=ko.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),Ja(c.axis_x_tick_culling)&&(c.axis_x_tick_culling=!1));var m=c["axis_"+h+"_tick_count"];return m&&x.ticks(m),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?Xa(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),Xa(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(Xa(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 Ua(e)?e:e?e.text:null},e.setLabelText=function(t,e){var n=this.owner.config,i=this.getLabelOptionByAxisId(t);Ua(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=Ka(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"]||l.size>0&&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=to(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 m=c.append("svg").style("visibility","hidden").style("position","fixed").style("top","0").style("left","0");x.create(m),m.selectAll("text").each((function(t,e){var n=this.getBoundingClientRect().width;h=Math.max(h,n),f||(l.ticks[e]=n)})),m.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 m=n.filterTargetsToShow(n.data.targets),_=0;if(!o&&r.axis_x_tick_count<=m.length&&m[0].values.length){var T=pl(n.axis.getAxisType("x"),0,e-f).domain([-1*l,n.getXDomainMax(n.data.targets)+1+h]);_=Math.ceil((T(1)-T(0))/2)}return f+_},e.updateLabels=function(t){var e=this,n=this.owner,i=n.$el.main,r=n.$T,o={x:i.select("."+No.axisX+" ."+No.axisXLabel),y:i.select("."+No.axisY+" ."+No.axisYLabel),y2:i.select("."+No.axisY2+" ."+No.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=Ya(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=Xa(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"+vo(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("."+No.axisX+" .tick text").attr("clip-path",y)}}}.bind(this))},t}(),Cf={initEventRect:function(){this.$el.main.select("."+Po.chart).append("g").attr("class",Vo.eventRects).style("fill-opacity","0")},redrawEventRect:function(){var t=this,e=this,n=e.config,i=e.state,r=e.$el,o=e.isMultipleX(),s=n.axis_x_inverted;if(r.eventRect)e.updateEventRect(r.eventRect,!0);else if(e.data.targets.length){var u=e.$el.main.select("."+Vo.eventRects).style("cursor",n.zoom_enabled&&"drag"!==n.zoom_type?n.axis_rotated?"ns-resize":"ew-resize":null).classed(Vo.eventRectsMultiple,o).classed(Vo.eventRectsSingle,!o).selectAll("."+Vo.eventRect).data([0]).enter().append("rect");e.updateEventRect(u),o?e.generateEventRectsForMultipleXs(u):e.generateEventRectsForSingleX(u),u.call(e.getDraggableSelection()),r.eventRect=u,"touch"!==e.state.inputType||r.svg.on("touchstart.eventRect")||e.hasArcType()||e.bindTouchOnEventRect(),i.rendered&&e.updateEventRect(r.eventRect,!0)}if(!o){var c=e.getMaxDataCountTarget();n.data_xSort&&!s||c.sort(function(e,n){return a(this,t),s?n.x-e.x:e.x-n.x}.bind(this)),e.updateDataIndexByX(c),e.updateXs(c),null==e.updatePointClass||e.updatePointClass(!0),i.eventReceiver.data=c}e.updateEventRectData()},bindTouchOnEventRect:function(){var t,e=this,n=this,i=n.config,r=n.state,o=n.$el,s=o.eventRect,u=o.svg,c=function(t){if(a(this,e),n.isMultipleX())n.selectRectForMultipleXs(t);else{var i=n.getDataIndexFromEvent(r.event);n.callOverOutForTouch(i),-1===i?n.unselectRect():n.selectRectForSingle(t,i)}}.bind(this),l=function(){a(this,e),n.unselectRect(),n.callOverOutForTouch()}.bind(this),h=i.interaction_inputType_touch.preventDefault,f=Ha(h)&&h||!1,d=!isNaN(h)&&h||null,g=function(n){a(this,e);var r=n.type,o=n.changedTouches[0]["client"+(i.axis_rotated?"Y":"X")];"touchstart"===r?f?n.preventDefault():null!==d&&(t=o):"touchmove"===r&&(f||!0===t||null!==d&&Math.abs(t-o)>=d)&&(t=!0,n.preventDefault())}.bind(this);s.on("touchstart",function(t){a(this,e),r.event=t,n.updateEventRect()}.bind(this)).on("touchstart.eventRect touchmove.eventRect",function(t){if(a(this,e),r.event=t,!s.empty()&&s.classed(Vo.eventRect)){if(r.dragging||r.flowing||n.hasArcType()||t.touches.length>1)return;g(t),c(s.node())}else l()}.bind(this),!0).on("touchend.eventRect",function(t){a(this,e),r.event=t,!s.empty()&&s.classed(Vo.eventRect)&&(n.hasArcType()||!n.toggleShape||r.cancelClick)&&r.cancelClick&&(r.cancelClick=!1)}.bind(this),!0),u.on("touchstart",function(t){a(this,e),r.event=t;var n=t.target;n&&n!==s.node()&&l()}.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&&!e||f.classed(Vo.eventRect,!0)),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),Xa(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))},selectRectForSingle:function(t,e){var n=this,i=this,r=i.config,o=i.$el,s=o.main,u=o.circle,c=r.data_selection_enabled,l=r.data_selection_grouped,h=r.data_selection_isselectable,f=r.tooltip_grouped,d=i.getAllValuesOnIndex(e);if(!f||(i.showTooltip(d,t),null==i.showGridFocus||i.showGridFocus(d),c&&!l)){u||s.selectAll("."+Po.EXPANDED+":not(."+Qo.shape+"-"+e+")").classed(Po.EXPANDED,!1);var g=s.selectAll("."+Qo.shape+"-"+e).classed(Po.EXPANDED,!0).style("cursor",h?"pointer":null).filter((function(t){return i.isWithinShape(this,t)}));g.empty()&&!f&&(null==i.hideGridFocus||i.hideGridFocus(),i.hideTooltip(),l||i.setExpand(e)),g.call(function(r){var o=this;a(this,n);var s=r.data();c&&(l||null!=h&&h.bind(i.api)(s))&&(t.style.cursor="pointer"),f||(i.showTooltip(s,t),null==i.showGridFocus||i.showGridFocus(s),null==i.unexpandCircles||i.unexpandCircles(),r.each(function(t){return a(this,o),i.setExpand(e,t.id)}.bind(this)))}.bind(this))}},selectRectForMultipleXs:function(t,e){var n=this;void 0===e&&(e=!0);var i=this,r=i.config,o=i.state,s=i.filterTargetsToShow(i.data.targets);if(!o.dragging&&!i.hasArcType(s)){var u=uo(o.event,t),c=i.findClosestFromTargets(s,u);if(!e||!o.mouseover||c&&c.id===o.mouseover.id||(r.data_onout.call(i.api,o.mouseover),o.mouseover=void 0),c){var l=(i.isBubbleType(c)||i.isScatterType(c)||!r.tooltip_grouped?[c]:i.filterByX(s,c.x)).map(function(t){return a(this,n),i.addName(t)}.bind(this));i.showTooltip(l,t),i.setExpand(c.index,c.id,!0),i.showGridFocus(l);var h=i.dist(c,u);(i.isBarType(c.id)||h<i.getPointSensitivity(c))&&(i.$el.svg.select("."+Vo.eventRect).style("cursor","pointer"),e&&!o.mouseover&&(r.data_onover.call(i.api,c),o.mouseover=c))}else i.unselectRect()}},unselectRect:function(){var t=this,e=t.config,n=t.$el,i=n.circle,r=n.tooltip;t.$el.svg.select("."+Vo.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,s=i.line_step_type;if(i.line_step_tooltipMatch&&n.hasType("step")&&/^step\-(before|after)$/.test(s)){var c=n.scale.zoom||n.scale.x,l=n.axis.xs[a],h=c.invert(uo(t,this)[0]);"step-after"===s&&h<l?a-=1:"step-before"===s&&h>l&&(a+=1)}var f=i.tooltip_grouped&&a===o.currentIdx;r.dragging||r.flowing||n.hasArcType()||f?f&&n.setTooltipPosition():(a!==o.currentIdx&&(n.setOverOut(!1,o.currentIdx),o.currentIdx=a),-1===a?n.unselectRect():n.selectRectForSingle(this,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("."+Qo.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=uo(i.event,this),o=e.findClosestFromTargets(r,a);o&&(e.isBarType(o.id)||e.dist(o,a)<n.point_sensitivity)&&e.$el.main.selectAll("."+Qo.shapes+e.getTargetSelectorSuffix(o.id)).selectAll("."+Qo.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))}))}}},If=function(t){return a(this,undefined),+t}.bind(void 0),Pf={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=Ls();p.add(Object.keys(t).map(function(e){var o=this;return a(this,i),n=t[e].transition().ease(If).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,m=y.length;m&&(["circle","text","shape","eventRect"].forEach(function(t){a(this,n);for(var e=[],i=0;i<m;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=Za(g)/2;return"translate("+o+",0) scale("+Za(d)/Za(g)+",1)"}},Lf={initClip:function(){var t=this,e=t.state,n=e.clip,i=e.datetimeId;n.id=i+"-clip",n.idXAxis=n.id+"-xaxis",n.idYAxis=n.id+"-yaxis",n.idGrid=n.id+"-grid",n.path=t.getClipPath(n.id),n.pathXAxis=t.getClipPath(n.idXAxis),n.pathYAxis=t.getClipPath(n.idYAxis),n.pathGrid=t.getClipPath(n.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("+(!!In.navigator&&In.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,n=this.config,i=this.state,r=i.margin,a=i.width,o=i.height,s=n.axis_rotated,u=Math.max(30,r.left)-(s?20:0),c=n.axis_y_inner,l=c&&!s?n.axis_y_label.text?-20:-1:s?-(1+u):-(u-1),h=-(s?20:r.top),f=(s?a+15+u:r.left+20)+(c?20:0),d=(s?r.bottom+("fit"===(null==(e=n.padding)?void 0:e.mode)?10:0):r.top+o)+10;t.attr("x",l).attr("y",h).attr("width",f).attr("height",d)},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)}},Df=void 0,Nf=function(t){return a(this,Df),$a(t.position)||"end"}.bind(void 0),Ff=function(t){return a(this,Df),"start"===t.position?4:"middle"===t.position?0:-4}.bind(void 0);function zf(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 jf(t,e){"grid"===e&&t.each((function(){var t=this,e=Rn(this);["x1","x2","y1","y2"].forEach(function(n){return a(this,t),e.attr(n,Math.ceil(+e.attr(n)))}.bind(this))}))}var Bf={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",Ho.grid+" "+Ho.gridLines),i.gridLines.main.append("g").attr("class",Ho.xgridLines),i.gridLines.main.append("g").attr("class",Ho.ygridLines),i.gridLines.x=Th([]))},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("."+Ho.xgrids).selectAll("."+Ho.xgrid).data(h),c.x.exit().remove(),c.x=c.x.enter().append("line").attr("class",Ho.xgrid).merge(c.x),t||c.x.each((function(){var t=this,e=Rn(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("."+Ho.ygrids).selectAll("."+Ho.ygrid).data(f),u.y.exit().remove(),u.y=u.y.enter().append("line").attr("class",Ho.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),jf(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("."+Ho.xgridLines).selectAll("."+Ho.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?null:"rotate(-90)").attr("dy",-5).style("opacity","0"),s((c=l.merge(c)).attr("class",function(e){return a(this,t),(Ho.xgridLine+" "+(e.class||"")).trim()}.bind(this)).select("text").attr("text-anchor",Nf).attr("dx",Ff)).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("."+Ho.ygridLines).selectAll("."+Ho.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),(Ho.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",Nf).attr("dx",Ff)).attr("dy",-5).attr("x",zf(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",zf(!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?Ho.gridLines:Po.chart)+(r?" + *":""),o=i.main.insert("g",a).attr("clip-path",n.pathGrid).attr("class",Ho.grid);i.grid.main=o,e.grid_x_show&&o.append("g").attr("class",Ho.xgrids),e.grid_y_show&&o.append("g").attr("class",Ho.ygrids),e.interaction_enabled&&e.grid_focus_show&&(o.append("g").attr("class",Go.xgridFocus).append("line").attr("class",Go.xgridFocus),e.grid_focus_y&&!e.tooltip_grouped&&o.append("g").attr("class",Go.ygridFocus).append("line").attr("class",Go.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."+Go.xgridFocus+", line."+Go.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=Rn(this),c={x:f(t),y:n.getYScaleById(t.id)(t.value)};if(r.classed(Go.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))})),jf(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."+Go.xgridFocus+", line."+Go.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."+Go.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("."+No.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(to(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?Ho.xgridLines:Ho.ygridLines,l=e?Ho.xgridLine:Ho.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)}},$f={initRegion:function(){var t=this.$el;t.region.main=t.main.insert("g",":first-child").attr("clip-path",this.state.clip.path).attr("class",Ko.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("."+Ko.region).data(e.regions);i(r.exit()).style("opacity","0").remove();var a=r.enter().append("g");a.append("rect").style("fill-opacity","0"),n.list=a.merge(r).attr("class",t.classRegion.bind(t))},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(){Rn(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()?ko.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()?ko.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}},Xf={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,a=null==(i=n.axis)?void 0:i.getLabelPositionById(t),o=n.axis.getMaxTickWidth(t,e),s=0===o?.5:0;return o+("fit"===(null==(r=n.config.padding)?void 0:r.mode)?a.isInner?10+s:10:a.isInner?20+s:40)}return 40},getHorizontalAxisHeight:function(t){var e,n,i=this,r=i.config,a=i.state,o=a.current,s=a.rotatedPadding,u=a.isLegendRight,c=a.isLegendInset,l=r.axis_rotated,h="fit"===(null==(e=r.padding)?void 0:e.mode),f=r["axis_"+t+"_inner"],d=r["axis_"+t+"_label"].text,g="fit"===(null==(n=r.padding)?void 0:n.mode)?f&&!d?"y"===t?1:0:20:30;if("x"===t&&!r.axis_x_show)return 8;if("x"===t&&r.axis_x_height)return r.axis_x_height;if("y"===t&&!r.axis_y_show)return!r.legend_show||u||c?1:10;if("y2"===t&&!r.axis_y2_show)return h?0:s.top;var p=i.getAxisTickRotate(t);return("x"===t&&!l||/y2?/.test(t)&&l)&&p&&(g=30+i.axis.getMaxTickWidth(t)*Math.cos(Math.PI*(90-Math.abs(p))/180),!r.axis_x_tick_multiline&&o.height&&g>o.height/2&&(g=o.height/2)),g+(i.axis.getLabelPositionById(t).isInner?0:10)+("y2"!==t||l?0:-10)},getEventRectWidth:function(){var t=this.config,e=this.axis,n=t.axis_x_inverted,i=e.x.tickInterval();return Math.max(0,n?Math.abs(i):i)},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)}},Uf={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:[]},Yf={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 Vf(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 Gf(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?Vf(Object(e),!0).forEach((function(n){Yn(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Vf(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var Hf=Gf(Gf(Gf({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_inverted:!1,axis_x_padding:{},axis_x_height:void 0,axis_x_extent:void 0,axis_x_label:{},axis_x_axes:[]}),Uf),Yf),Wf=[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}},lf,rf,af,uf,cf],qf=[Mf,Lf,Cf,Pf,Bf,$f,Xf],Zf=[{data_xs:{},data_xFormat:"%Y-%m-%d",data_xLocaltime:!0,data_xSort:!0,data_axes:{},data_regions:{},data_stack_normalize:!1},Hf,{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 Kf(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Jf(t){return function(){return t}}function Qf(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function td(t){return t}function ed(t,e){return e||(e=t.slice(0)),t.raw=e,t}var nd,id,rd,ad,od,sd,ud,cd,ld,hd,fd,dd,gd,pd,vd=Math.PI,yd=2*vd,xd=1e-6,bd=yd-xd;function md(t){this._+=t[0];for(var e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}var _d=function(){function t(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?md:function(t){var e=Math.floor(t);if(!(e>=0))throw new Error("invalid digits: "+t);if(e>15)return md;var n=Math.pow(10,e);return function(t){this._+=t[0];for(var e=1,i=t.length;e<i;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}(t)}var e=t.prototype;return e.moveTo=function(t,e){this._append(nd||(nd=ed(["M",",",""])),this._x0=this._x1=+t,this._y0=this._y1=+e)},e.closePath=function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append(id||(id=ed(["Z"]))))},e.lineTo=function(t,e){this._append(rd||(rd=ed(["L",",",""])),this._x1=+t,this._y1=+e)},e.quadraticCurveTo=function(t,e,n,i){this._append(ad||(ad=ed(["Q",",",",",",",""])),+t,+e,this._x1=+n,this._y1=+i)},e.bezierCurveTo=function(t,e,n,i,r,a){this._append(od||(od=ed(["C",",",",",",",",",",",""])),+t,+e,+n,+i,this._x1=+r,this._y1=+a)},e.arcTo=function(t,e,n,i,r){if(t=+t,e=+e,n=+n,i=+i,(r=+r)<0)throw new Error("negative radius: "+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(null===this._x1)this._append(sd||(sd=ed(["M",",",""])),this._x1=t,this._y1=e);else if(h>xd)if(Math.abs(l*s-u*c)>xd&&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((vd-Math.acos((g+h-(f*f+d*d))/(2*p*v)))/2),x=y/v,b=y/p;Math.abs(x-1)>xd&&this._append(cd||(cd=ed(["L",",",""])),t+x*c,e+x*l),this._append(ld||(ld=ed(["A",",",",0,0,",",",",",""])),r,r,+(l*f>c*d),this._x1=t+b*s,this._y1=e+b*u)}else this._append(ud||(ud=ed(["L",",",""])),this._x1=t,this._y1=e);else;},e.arc=function(t,e,n,i,r,a){if(t=+t,e=+e,a=!!a,(n=+n)<0)throw new Error("negative radius: "+n);var o=n*Math.cos(i),s=n*Math.sin(i),u=t+o,c=e+s,l=1^a,h=a?i-r:r-i;null===this._x1?this._append(hd||(hd=ed(["M",",",""])),u,c):(Math.abs(this._x1-u)>xd||Math.abs(this._y1-c)>xd)&&this._append(fd||(fd=ed(["L",",",""])),u,c),n&&(h<0&&(h=h%yd+yd),h>bd?this._append(dd||(dd=ed(["A",",",",0,1,",",",",","A",",",",0,1,",",",",",""])),n,n,l,t-o,e-s,n,n,l,this._x1=u,this._y1=c):h>xd&&this._append(gd||(gd=ed(["A",",",",0,",",",",",",",""])),n,n,+(h>=vd),l,this._x1=t+n*Math.cos(r),this._y1=e+n*Math.sin(r)))},e.rect=function(t,e,n,i){this._append(pd||(pd=ed(["M",",","h","v","h","Z"])),this._x0=this._x1=+t,this._y0=this._y1=+e,n=+n,+i,-n)},e.toString=function(){return this._},t}();function Td(t){var e=this,n=3;return t.digits=function(e){if(!arguments.length)return n;if(null==e)n=null;else{var i=Math.floor(e);if(!(i>=0))throw new RangeError("invalid digits: "+e);n=i}return t},function(){return a(this,e),new _d(n)}.bind(this)}function wd(t){return t.innerRadius}function Ad(t){return t.outerRadius}function Sd(t){return t.startAngle}function Ed(t){return t.endAngle}function kd(t){return t&&t.padAngle}function Od(t,e,n,i,r,a,o){var s=t-n,u=e-i,c=(o?a:-a)/Bl(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,m=x*x+b*b,_=r-a,T=f*p-g*d,w=(b<0?-1:1)*Bl(Fl(0,_*_*m-T*T)),A=(T*b-x*w)/m,S=(-T*x-b*w)/m,E=(T*b+x*w)/m,k=(-T*x+b*w)/m,O=A-v,M=S-y,R=E-v,C=k-y;return O*O+M*M>R*R+C*C&&(A=E,S=k),{cx:A,cy:S,x01:-l,y01:-h,x11:A*(r/_-1),y11:S*(r/_-1)}}function Md(){var t=wd,e=Ad,n=Jf(0),i=null,r=Sd,a=Ed,o=kd,s=null,u=Td(c);function c(){var c,l,h=+t.apply(this,arguments),f=+e.apply(this,arguments),d=r.apply(this,arguments)-Ul,g=a.apply(this,arguments)-Ul,p=Ll(g-d),v=g>d;if(s||(s=c=u()),f<h&&(l=f,f=h,h=l),f>$l)if(p>Yl-$l)s.moveTo(f*Nl(d),f*jl(d)),s.arc(0,0,f,d,g,!v),h>$l&&(s.moveTo(h*Nl(g),h*jl(g)),s.arc(0,0,h,g,d,v));else{var y,x,b=d,m=g,_=d,T=g,w=p,A=p,S=o.apply(this,arguments)/2,E=S>$l&&(i?+i.apply(this,arguments):Bl(h*h+f*f)),k=zl(Ll(f-h)/2,+n.apply(this,arguments)),O=k,M=k;if(E>$l){var R=Vl(E/h*jl(S)),C=Vl(E/f*jl(S));(w-=2*R)>$l?(_+=R*=v?1:-1,T-=R):(w=0,_=T=(d+g)/2),(A-=2*C)>$l?(b+=C*=v?1:-1,m-=C):(A=0,b=m=(d+g)/2)}var I=f*Nl(b),P=f*jl(b),L=h*Nl(T),D=h*jl(T);if(k>$l){var N,F=f*Nl(m),z=f*jl(m),j=h*Nl(_),B=h*jl(_);if(p<Xl)if(N=function(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<$l))return[t+(f=(l*(e-a)-h*(t-r))/f)*u,e+f*c]}(I,P,j,B,F,z,L,D)){var $=I-N[0],X=P-N[1],U=F-N[0],Y=z-N[1],V=1/jl(function(t){return t>1?0:t<-1?Xl:Math.acos(t)}(($*U+X*Y)/(Bl($*$+X*X)*Bl(U*U+Y*Y)))/2),G=Bl(N[0]*N[0]+N[1]*N[1]);O=zl(k,(h-G)/(V-1)),M=zl(k,(f-G)/(V+1))}else O=M=0}A>$l?M>$l?(y=Od(j,B,I,P,f,M,v),x=Od(F,z,L,D,f,M,v),s.moveTo(y.cx+y.x01,y.cy+y.y01),M<k?s.arc(y.cx,y.cy,M,Dl(y.y01,y.x01),Dl(x.y01,x.x01),!v):(s.arc(y.cx,y.cy,M,Dl(y.y01,y.x01),Dl(y.y11,y.x11),!v),s.arc(0,0,f,Dl(y.cy+y.y11,y.cx+y.x11),Dl(x.cy+x.y11,x.cx+x.x11),!v),s.arc(x.cx,x.cy,M,Dl(x.y11,x.x11),Dl(x.y01,x.x01),!v))):(s.moveTo(I,P),s.arc(0,0,f,b,m,!v)):s.moveTo(I,P),h>$l&&w>$l?O>$l?(y=Od(L,D,F,z,h,-O,v),x=Od(I,P,j,B,h,-O,v),s.lineTo(y.cx+y.x01,y.cy+y.y01),O<k?s.arc(y.cx,y.cy,O,Dl(y.y01,y.x01),Dl(x.y01,x.x01),!v):(s.arc(y.cx,y.cy,O,Dl(y.y01,y.x01),Dl(y.y11,y.x11),!v),s.arc(0,0,h,Dl(y.cy+y.y11,y.cx+y.x11),Dl(x.cy+x.y11,x.cx+x.x11),v),s.arc(x.cx,x.cy,O,Dl(x.y11,x.x11),Dl(x.y01,x.x01),!v))):s.arc(0,0,h,T,_,v):s.lineTo(L,D)}else s.moveTo(0,0);if(s.closePath(),c)return s=null,c+""||null}return c.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,i=(+r.apply(this,arguments)+ +a.apply(this,arguments))/2-Xl/2;return[Nl(i)*n,jl(i)*n]},c.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:Jf(+e),c):t},c.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Jf(+t),c):e},c.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:Jf(+t),c):n},c.padRadius=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:Jf(+t),c):i},c.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Jf(+t),c):r},c.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:Jf(+t),c):a},c.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:Jf(+t),c):o},c.context=function(t){return arguments.length?(s=null==t?null:t,c):s},c}function Rd(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 Cd(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?Rd(Object(e),!0).forEach((function(n){Yn(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Rd(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}function Id(t){void 0===t&&(t=0);var e=this,n=e.config,i=e.state,r=e.hasMultiArcGauge(),a=i.gaugeArcWidth/e.filterTargetsToShow(e.data.targets).length,o=t?Math.min(i.radiusExpanded*t-i.radius,.8*a-100*(1-t)):0;return{inner:function(t){var n=e.getRadius(t).innerRadius;return r?i.radius-a*(t.index+1):Ya(n)?n:0},outer:function(n){var s,u=e.getRadius(n).outerRadius;if(r)s=i.radius-a*n.index+o;else if(e.hasType("polar")&&!t)s=e.getPolarOuterRadius(n,u);else if(s=u,t){var c=i.radiusExpanded;i.radius!==u&&(c-=Math.abs(i.radius-u)),s=c*t}return s},corner:function(t,i){var r=n.arc_cornerRadius_ratio,a=void 0===r?0:r,o=n.arc_cornerRadius,s=void 0===o?0:o,u=t.data.id,c=t.value;return a?a*i:Ya(s)?s:s.call(e.api,u,c,i)}}}function Pd(t){return function(e){var n=this,i=function(t){var e=t.startAngle,i=void 0===e?0:e,r=t.endAngle,o=void 0===r?0:r,s=t.padAngle,u=void 0===s?0:s;return a(this,n),{startAngle:i,endAngle:o,padAngle:u}}.bind(this),r=Ki(i(this._current),i(e));return this._current=e,function(n){var i=r(n),a=e.data,o=e.index,s=e.value;return t(Cd(Cd({},i),{},{data:a,index:o,value:s}))}}}_d.prototype;var Ld={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=td,e=Qf,n=null,i=Jf(0),r=Jf(Yl),a=Jf(0);function o(o){var s,u,c,l,h,f=(o=Kf(o)).length,d=0,g=Array(f),p=Array(f),v=+i.apply(this,arguments),y=Math.min(Yl,Math.max(-Yl,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:Jf(+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:Jf(+t),o):i},o.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:Jf(+t),o):r},o.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:Jf(+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!Ya(i)&&e&&(i=i[e.id]||0),eo(r)&&e&&e.id in r?r=r[e.id]:Ya(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},getGaugeStartAngle: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.getGaugeStartAngle(),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){var i;a(this,e),u||t.data.id!==(null==(i=s.data)?void 0:i.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=Id.call(t),n=e.inner,i=e.outer,r=e.corner,a=Md().innerRadius(n).outerRadius(i),o=function(e,n){var o="M 0 0";if(e.value||e.data){var s,u=n?e:null!=(s=t.updateAngle(e))?s:null;u&&(o=a.cornerRadius(r(u,i(u)))(u))}return o};return o.centroid=a.centroid,o},getSvgArcExpanded:function(t){var e=this;void 0===t&&(t=1);var n=this,i=Id.call(n,t),r=i.inner,o=i.outer,s=i.corner,u=Md().innerRadius(r).outerRadius(o);return function(t){a(this,e);var i=n.updateAngle(t),r=o(i),c=0;return i&&(c=s(i,r)),i?u.cornerRadius(c)(i):"M 0 0"}.bind(this)},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?Xa(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:"data"in t?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=Rn(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;oo(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("."+Go.legendItemFocused).size()>0&&n.expandArc(t))}.bind(this),10);else{var s=n.mapToTargetIds(t);r.svg.selectAll(n.selectorTargets(s,"."+Lo.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"));Rn(this).selectAll("path").transition().duration(e).attrTween("d",Pd(n.svgArcExpanded.bind(n))).transition().duration(2*e).attrTween("d",Pd(i.bind(n)))}}))}},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,"."+Lo.chartArc)).selectAll("path").transition().duration(function(t){return a(this,e),n.getExpandConfig(t.data.id,"duration")}.bind(this)).attrTween("d",Pd(n.svgArc.bind(n))),r.selectAll(""+Lo.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)),Xa(i)?i.bind(e.api):i},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("."+Lo.chartArcs),l=c.selectAll("."+Lo.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,"."+Lo.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",Lo.chartArcs).attr("transform",t.getTranslate("arc")),t.setArcTitle()},setArcTitle:function(t){var e=this,n=t||e.getArcTitle(),i=e.hasType("gauge");if(n){var r=i?Xo.chartArcsGaugeTitle:Lo.chartArcsTitle,a=e.$el.arcs.select("."+r);a.empty()&&(a=e.$el.arcs.append("text").attr("class",r).style("text-anchor","middle")),i&&a.attr("dy","-0.3em"),oo(a,n,i?void 0:[-.6,1.35],!0)}},getArcTitle:function(){var t=this,e=t.hasType("donut")?"donut":t.hasType("gauge")&&"gauge";return e?t.config[e+"_title"]:""},getArcTitleWithNeedleValue:function(){var t=this,e=t.config,n=t.state,i=t.getArcTitle();if(i&&t.config.arc_needle_show&&/{=[A-Z_]+}/.test(i)){var r=n.current.needle;return Ya(r)||(r=e.arc_needle_value),Eo(i,{NEEDLE_VALUE:Ya(r)?r:0})}return!1},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("."+Lo.arcs).selectAll("."+Lo.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=Ki(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(ro,(function(){if(r.levelColor){var t=Rn(this),e=t.datum(this._current);r.updateLegendItemColor(e.data.id,t.style("fill"))}s.transiting=!1,io(o.onrendered,r.api)})),c&&r.bindArcEvent(h),r.hasType("polar")&&r.redrawPolar(),r.hasType("gauge")&&r.redrawBackgroundArcs(),o.arc_needle_show&&r.redrawNeedle(),r.redrawArcText(t)},redrawNeedle:function(){var t=this,e=this,n=e.$el,i=e.config,r=e.state,o=r.hiddenTargetIds,s=(r.radius-1)/100*i.arc_needle_length,u=o.length!==e.data.targets.length,c=e.$el.arcs.select("."+Lo.needle),l=i.arc_needle_path,h=i.arc_needle_bottom_width/2,f=i.arc_needle_top_width/2,d=i.arc_needle_top_rx,g=i.arc_needle_top_ry,p=i.arc_needle_bottom_len,v=i.arc_needle_bottom_rx,y=i.arc_needle_bottom_ry,x=e.getNeedleAngle(),b=function(){a(this,t);var n=e.getArcTitleWithNeedleValue();n&&e.setArcTitle(n)}.bind(this);if(b(),c.empty()&&(c=n.arcs.append("path").classed(Lo.needle,!0),n.needle=c,n.needle.updateHelper=function(r,o){var s=this;void 0===o&&(o=!1),a(this,t),"none"!==n.needle.style("display")&&e.$T(n.needle).style("transform","rotate("+e.getNeedleAngle(r)+"deg)").call(ro,function(){a(this,s),o&&(i.arc_needle_value=r),b()}.bind(this))}.bind(this)),u){var m=Xa(l)?l.call(e,s):"M-"+h+" "+p+" A"+v+" "+y+" 0 0 0 "+h+" "+p+" L"+f+" -"+s+" A"+d+" "+g+" 0 0 0 -"+f+" -"+s+" L-"+h+" "+p+" Z";e.$T(c).attr("d",m).style("fill",i.arc_needle_color).style("display",null).style("transform","rotate("+x+"deg)")}else c.style("display","none")},getNeedleAngle:function(t){var e=this,n=e.config,i=e.state,r=e.getArcLength(),a=e.hasType("gauge"),o=e.getTotalDataSum(!0),s=Ga(t)?t:n.arc_needle_value,u=n[n.data_type+"_startingAngle"]||0,c=0;if(Ya(s)||(s=a&&1===e.data.targets.length?o:0),i.current.needle=s,a){u=e.getGaugeStartAngle();var l=n.gauge_fullCircle?r:-2*u,h=n.gauge_min;c=l*((s-h)/(n.gauge_max-h))}else c=r*(s/o);return(u+c)*(180/Math.PI)},redrawBackgroundArcs:function(){var t=this,e=this,n=e.config,i=e.state,r=e.hasMultiArcGauge(),o=n.gauge_fullCircle,s=0===e.filterTargetsToShow(e.data.targets).length&&!!n.data_empty_label_text,u=e.getGaugeStartAngle(),c=o?u+e.getArcLength():-1*u,l=e.$el.arcs.select((r?"g":"")+"."+Lo.chartArcsBackground);if(r){var h=0;(l=l.selectAll("path."+Lo.chartArcsBackground).data(e.data.targets)).enter().append("path").attr("class",function(e,n){return a(this,t),Lo.chartArcsBackground+" "+Lo.chartArcsBackground+"-"+n}.bind(this)).merge(l).style("fill",n.gauge_background||null).attr("d",function(r){var o=r.id;if(a(this,t),s||i.hiddenTargetIds.indexOf(o)>=0)return"M 0 0";var l={data:[{value:n.gauge_max}],startAngle:u,endAngle:c,index:h++};return e.getArc(l,!0,!0)}.bind(this)),l.exit().remove()}else l.attr("d",s?"M 0 0":function(){a(this,t);var i={data:[{value:n.gauge_max}],startAngle:u,endAngle:c};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 Rn(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),Va(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("."+Lo.chartArc).select("text").style("opacity","0").attr("class",function(t){return a(this,n),i.isGaugeType(t.data)?Xo.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("."+Lo.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("."+Xo.chartArcsGaugeUnit).attr("dy",(d?1.5:.75)+"em").text(r.gauge_units),c.select("."+Xo.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("."+Xo.chartArcsGaugeMax).attr("dx",o.innerRadius+(o.radius-o.innerRadius)/2+"px").attr("dy","1.2em").text(i.textForGaugeMinMax(r.gauge_max,!0)))}},getArcElementByIdOrIndex:function(t){var e,n=this,i=this.$el.arcs,r=Ya(t)?function(e){return a(this,n),e.index===t}.bind(this):function(e){return a(this,n),e.data.id===t}.bind(this);return null==(e=i)?void 0:e.selectAll("."+Po.target+" path").filter(r)}};function Dd(t){return t[0]}function Nd(t){return t[1]}function Fd(t,e){var n=Jf(!0),i=null,r=gh,a=null,o=Td(s);function s(s){var u,c,l,h=(s=Kf(s)).length,f=!1;for(null==i&&(a=r(l=o())),u=0;u<=h;++u)!(u<h&&n(c=s[u],u,s))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+t(c,u,s),+e(c,u,s));if(l)return a=null,l+""||null}return t="function"==typeof t?t:void 0===t?Dd:Jf(t),e="function"==typeof e?e:void 0===e?Nd:Jf(e),s.x=function(e){return arguments.length?(t="function"==typeof e?e:Jf(+e),s):t},s.y=function(t){return arguments.length?(e="function"==typeof t?t:Jf(+t),s):e},s.defined=function(t){return arguments.length?(n="function"==typeof t?t:Jf(!!t),s):n},s.curve=function(t){return arguments.length?(r=t,null!=i&&(a=r(i)),s):r},s.context=function(t){return arguments.length?(null==t?i=a=null:a=r(i=t),s):i},s}var zd={initArea:function(t){var e=this.config;t.insert("g","."+(e.area_front?jo.circles:Yo.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("."+Do.areas).selectAll("."+Do.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=Rn(this).style("opacity"),"0"})).merge(u),u.style("opacity",r.orgAreaOpacity),n.setRatioForGroupedData(s.area.data())},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,ho()).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=Jf(!0),a=null,o=gh,s=null,u=Td(c);function c(c){var l,h,f,d,g,p=(c=Kf(c)).length,v=!1,y=Array(p),x=Array(p);for(null==a&&(s=o(g=u())),l=0;l<=p;++l){if(!(l<p&&r(d=c[l],l,c))===v)if(v=!v)h=l,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=l-1;f>=h;--f)s.point(y[f],x[f]);s.lineEnd(),s.areaEnd()}v&&(y[l]=+t(d,l,c),x[l]=+e(d,l,c),s.point(i?+i(d,l,c):y[l],n?+n(d,l,c):x[l]))}if(g)return s=null,g+""||null}function l(){return Fd().defined(r).curve(o).context(a)}return t="function"==typeof t?t:void 0===t?Dd:Jf(+t),e="function"==typeof e?e:Jf(void 0===e?0:+e),n="function"==typeof n?n:void 0===n?Nd:Jf(+n),c.x=function(e){return arguments.length?(t="function"==typeof e?e:Jf(+e),i=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:Jf(+e),c):t},c.x1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:Jf(+t),c):i},c.y=function(t){return arguments.length?(e="function"==typeof t?t:Jf(+t),n=null,c):e},c.y0=function(t){return arguments.length?(e="function"==typeof t?t:Jf(+t),c):e},c.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:Jf(+t),c):n},c.lineX0=c.lineY0=function(){return l().x(t).y(e)},c.lineY1=function(){return l().x(t).y(n)},c.lineX1=function(){return l().x(i).y(e)},c.defined=function(t){return arguments.length?(r="function"==typeof t?t:Jf(!!t),c):r},c.curve=function(t){return arguments.length?(o=t,null!=a&&(s=o(a)),c):o},c.context=function(t){return arguments.length?(null==t?a=s=null:s=o(a=t),c):a},c}();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]]}}},jd={initBar:function(){var t=this.$el,e=this.config,n=this.state.clip;t.bar=t.main.select("."+Po.chart),t.bar=e.bar_front?t.bar.append("g"):t.bar.insert("g",":first-child"),t.bar.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(),r.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),Ya(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),n.setRatioForGroupedData(o.bar.data())},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,ho()).attr("d",function(e){return a(this,i),(Ya(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=Ya(u)&&u>0?function(){return a(this,n),u}.bind(this):Ya(c)?function(t){return a(this,n),t*c}.bind(this):null;return function(t,e){a(this,n);var u=o(t,e),c=+s,h=+!c,f=t.value<0,d=r["axis_"+i.axis.getId(t.id)+"_inverted"],g=!d&&f||d&&!f,p=["",""],v=0,y=i.isGrouped(t.id),x=!(!l||!y)&&i.isStackingRadiusData(t);if(l){var b=s?h:c,m=u[2][b]-u[0][b],_="a"+(v=!y||x?l(m):0)+","+v+" "+(g?"1 0 0":"0 0 1")+" ";p[+!s]=""+_+v+","+v,p[+s]=""+_+[-v,v][s?"sort":"reverse"](),g&&p.reverse()}var T=s?"H"+(u[1][c]+(g?v:-v))+" "+p[0]+"V"+(u[2][h]-v)+" "+p[1]+"H"+u[3][c]:"V"+(u[1][h]+(g?-v:v))+" "+p[0]+"H"+(u[2][c]-v)+" "+p[1]+"V"+u[3][h];return"M"+u[0][c]+","+u[0][h]+T+"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&&(Ya(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=t.id,d=f.call(i,s,e)(i.getShapeYMin(s)),g=h(t,o)||d,p=Ya(u)?u:u[t.id]||u._$width,v=r["axis_"+i.axis.getId(s)+"_inverted"],y=t.value,x=c(t),b=l(t);r.axis_rotated&&!v&&(y>0&&b<d||y<0&&d<b)&&(b=d),i.isBarRangeType(t)||(b-=d-g);var m=x+p;return[[x,g],[x,b],[m,b],[m,g]]}.bind(this)}};function Bd(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 $d={initCandlestick:function(){var t=this.$el;t.candlestick=t.main.select("."+Po.chart).append("g").attr("class",zo.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("."+zo.chartCandlesticks).selectAll("."+zo.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("."+zo.chartCandlestick).selectAll("."+zo.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(zo[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):eo(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=Ya(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=ho(!0);return[a.each((function(n,i){var a=r(Rn(this),e,o);t(n,i,a)})).style("opacity",null)]},getCandlestickData:function(t){var e,n=t.value;if(to(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 eo(n)&&(e=function(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?Bd(Object(e),!0).forEach((function(n){Yn(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Bd(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}},Xd={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",Lo.chartArcsBackground).style("fill",!o&&n.gauge_background||null),n.gauge_units&&r(Xo.chartArcsGaugeUnit),n.gauge_label_show&&(r(Xo.chartArcsGaugeMin),n.gauge_fullCircle||r(Xo.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("."+Lo.arcs).selectAll("."+Lo.arcLabelLine).data(e.arcData.bind(e));s.enter().append("rect").attr("class",function(e){return a(this,t),Lo.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+")"}Rn(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 Xa(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)}},Ud={initBubble:function(){var t=this.config;this.hasType("bubble")&&(t.point_show=!0,t.point_type="circle")},getBaseLength:function(){var t=this,e=t.state,n=e.width,i=e.height,r=_s,a=t.cache.get(r);return a||t.cache.add(r,a=wo("min",[n,i])),a},getBubbleR:function(t){var e=this,n=this,i=n.config.bubble_maxR;Xa(i)?i=i.bind(n.api)(t):Ya(i)||(i=n.getBaseLength()/(2*n.getMaxDataCount())+12);var r=wo("max",n.getMinMaxData().max.map(function(t){return a(this,e),n.isBubbleZType(t)?n.getBubbleZData(t.value,"y"):eo(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 eo(t)?t[e]:t["y"===e?0:1]}},Yd={initLine:function(){var t=this.$el;t.line=t.main.select("."+Po.chart).append("g").attr("class",Yo.chartLines).call(this.setCssRule(!1,"."+Yo.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("."+Yo.chartLines).selectAll("."+Yo.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("."+Yo.lines).selectAll("."+Yo.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)).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,ho()).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=[];if(Ga(i))for(var g,p=function(t,e){return a(this,c),Va(t)?e:f?ko.call(l,t):t}.bind(this),v=0;g=i[v];v++){var y=p(g.start,t[0].x),x=p(g.end,t[t.length-1].x),b=g.style||{dasharray:"2 2"};d[v]={start:y,end:x,style:b}}for(var m,_=h?function(t){return a(this,c),n(t.value)}.bind(this):function(t){return a(this,c),e(t.x)}.bind(this),T=h?function(t){return a(this,c),e(t.x)}.bind(this):function(t){return a(this,c),n(t.value)}.bind(this),w=function(t){return a(this,c),"M"+t[0][0]+","+t[0][1]+"L"+t[1][0]+","+t[1][1]}.bind(this),A=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 w(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 w(l)}.bind(this),S={x:l.axis.getAxisType("x"),y:l.axis.getAxisType("y")},E="",k=0;m=t[k];k++){var O=t[k-1],M=O&&$a(O.value);b=l.isWithinRegions(m.x,d);if($a(m.value))if(!Va(d)&&b&&M){if(M){try{b=b.dasharray.split(" ")}catch(t){b="2 2".split(" ")}r=pl(S.x,O.x,m.x),o=pl(S.y,O.value,m.value);var R=e(m.x)-e(O.x),C=n(m.value)-n(O.value),I=Math.sqrt(Math.pow(R,2)+Math.pow(C,2));u=(s=b[0]/I)*b[1];for(var P=s;P<=1;P+=u)E+=A(O,m,P,s),P+u>=1&&(E+=A(O,m,1,0))}}else E+=(k&&M?"L":"M")+_(m)+","+T(m)}return E},isWithinRegions:function(t,e){for(var n,i=0;n=e[i];i++)if(n.start<t&&t<=n.end)return n.style;return!1},isWithinStep:function(t,e){return Math.abs(e-uo(this.state.event,t)[1])<30},shouldDrawPointsForLine:function(t){var e=this.config.line_point;return!0===e||to(e)&&-1!==e.indexOf(t.id)}},Vd=function(){return a(this,undefined),ho()}.bind(void 0),Gd={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 Ka(e)&&Xa(e.create)&&Xa(e.update)},initialOpacityForCircle:function(t){var e=this.config,n=this.state.withoutFadeIn,i=e.point_opacity;return Va(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 Va(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("."+jo.chartCircles).empty()&&e.select("."+Po.chart).append("g").attr("class",jo.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("."+jo.chartCircles).style("pointer-events","none").selectAll("."+jo.circles).data(h);d.exit().remove(),f=d.enter()}u&&f.append("g").attr("class",function(t){return a(this,n),i.generateClass(Jo.selectedCircles,t.id)}.bind(this)),f.append("g").attr("class",l).call(function(t){a(this,n),i.setCssRule(!0,"."+jo.circles,["cursor:pointer"],c)(t),i.setCssRule(!0," ."+jo.circle,["fill","stroke"],i.color)(t)}.bind(this)).style("opacity",(function(){return Rn(this.parentNode).attr("class").indexOf(jo.chartCircles)>-1?"0":null})),u&&h.forEach(function(t){var e=this;a(this,n),s.main.selectAll("."+Jo.selectedCircles+i.getTargetSelectorSuffix(t.id)).selectAll(""+Jo.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("."+jo.circles).selectAll("."+jo.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("."+jo.circles+" ."+jo.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("."+Jo.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=ho(),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||Va(t),d=e.point("update",e,l,h,e.getStylePropValue(e.color),!o&&f);t&&(c=c.filter((function(e){var n=this,i=null==t.filter?void 0:t.filter(function(t){return a(this,n),t.id===e.id}.bind(this));return!!i.length&&Rn(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=Rn(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 Rn(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):Xa(n)&&(i=n.bind(e.api)(t)),t.r=i,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 Xa(e)?e(t):e||4*this.pointR(t)},isWithinCircle:function(t,e){var n=uo(this.state.event,t),i=Rn(t),r=this.isCirclePoint(t)?"c":"",a=+i.attr(r+"x"),o=+i.attr(r+"y");if(!a&&!o&&1===t.nodeType){var s=lo(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)},getPointSensitivity:function(t){var e=this.config.point_sensitivity;return Xa(e)?e=e.call(this.api,t):"radius"===e&&(e=t.r),e},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(Ce.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=Rn(s);"innerHTML"in s?u.html(o.innerHTML):yo(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(eo(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=Qa(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=Rn(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,Vd()),s&&this.$T(s,r,Vd())),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,Vd())),o&&s.$T(u,r,Vd())),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,Vd()),s&&c.$T(s,r,Vd())),d.attr("x",h).attr("y",f).style("fill",i)}}};function Hd(t){var e=t.config.polar_level_max,n=t.getMinMaxData().max[0].value;return e&&e>n&&(n=e),n}var Wd={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",qo),i&&r&&t.generateDataLabelBackgroundColorFilter(r)},getPolarOuterRadius:function(t,e){var n,i=Hd(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=Hd(e),u=Ao(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("."+Wo).data(u);f.exit().remove();var d=f.enter().append("g").attr("class",function(e,n){return a(this,t),Wo+" "+Wo+"-"+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 qd=ks,Zd={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",Zo.chartRadars),i.radar.levels=i.radar.append("g").attr("class",qo),i.radar.axes=i.radar.append("g").attr("class",No.axis),i.radar.shapes=i.radar.append("g").attr("class",Qo.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;Ja(n.axis_x_categories)&&(n.axis_x_categories=Ao(0,wo("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=yo(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,Ga(n)?n:"x"===t?u:c,Ya(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(qd)||{},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(qd,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("."+es.chartTexts).attr("transform",r),t.generateRadarPoints(),t.updateRadarLevel(),t.updateRadarAxes(),t.updateRadarShape())},generateGetRadarPoints:function(){var t=this,e=this.cache.get(qd);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=Ao(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 Ao(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("."+Wo).data(d);x.exit().remove();var b=x.enter().append("g").attr("class",function(e,n){return a(this,t),Wo+" "+Wo+"-"+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),Va(e)?s:y[e].split(",")[0]}.bind(this)).attr("y",function(e){return a(this,t),Va(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),No.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){oo(Rn(this),t+"",[-.6,1.2])}))}.bind(this)).datum(function(e,n){return a(this,t),{index:n}}.bind(this)).attr("transform",(function(t){Va(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.bindRadarEvent()},bindRadarEvent: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(n){a(this,t),i.event=n;var r=e.getDataIndexFromEvent(n),o=Va(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=e.getDataIndexFromEvent(n);e.selectRectForSingle(s.node(),r),f?e.setOverOut(!0,r):e.callOverOutForTouch(r)}}.bind(this)).on("mouseout",f?d:null),f||s.on("touchstart",d)}},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(qd),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(qd)[t.id][t.index][0]},radarCircleY:function(t){return this.cache.get(qd)[t.id][t.index][1]}};function Kd(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Jd(t,e,n,i,r){for(var a,o=t.children,s=-1,u=o.length,c=t.value&&(i-e)/t.value;++s<u;)(a=o[s]).y0=n,a.y1=r,a.x0=e,a.x1=e+=a.value*c}function Qd(t,e,n,i,r){for(var a,o=t.children,s=-1,u=o.length,c=t.value&&(r-n)/t.value;++s<u;)(a=o[s]).x0=e,a.x1=i,a.y0=n,a.y1=n+=a.value*c}var tg=(1+Math.sqrt(5))/2;function eg(t,e,n,i,r,a){for(var o,s,u,c,l,h,f,d,g,p,v,y=[],x=e.children,b=0,m=0,_=x.length,T=e.value;b<_;){u=r-n,c=a-i;do{l=x[m++].value}while(!l&&m<_);for(h=f=l,v=l*l*(p=Math.max(c/u,u/c)/(T*t)),g=Math.max(f/v,v/h);m<_;++m){if(l+=s=x[m].value,s<h&&(h=s),s>f&&(f=s),v=l*l*p,(d=Math.max(f/v,v/h))>g){l-=s;break}g=d}y.push(o={value:l,dice:u<c,children:x.slice(b,m)}),o.dice?Jd(o,n,i,r,T?i+=c*l/T:a):Qd(o,n,i,T?n+=u*l/T:r,a),T-=l,b=m}return y}var ng=function t(e){function n(t,n,i,r,a){eg(e,t,n,i,r,a)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(tg);function ig(t){if("function"!=typeof t)throw new Error;return t}function rg(){return 0}function ag(t){return function(){return t}}function og(t){var e=0,n=t.children,i=n&&n.length;if(i)for(;--i>=0;)e+=n[i].value;else e=1;t.value=e}function sg(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 ug(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 ug(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 ug(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}function cg(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 lg(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 lg(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 lg(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 hg,fg=wn.mark(dg);function dg(){var t,e,n,i,r,a;return wn.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:n=[t=this];case 1:e=n.reverse(),n=[];case 2:if(!(t=e.pop())){o.next=8;break}return o.next=5,t;case 5:if(i=t.children)for(r=0,a=i.length;r<a;++r)n.push(i[r]);o.next=2;break;case 8:if(n.length){o.next=1;break}case 9:case"end":return o.stop()}}),fg,this)}function gg(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=vg)):void 0===e&&(e=pg);for(var n,i,r,a,o,s=new bg(t),u=[s];n=u.pop();)if((r=e(n.data))&&(o=(r=Array.from(r)).length))for(n.children=r,a=o-1;a>=0;--a)u.push(i=r[a]=new bg(r[a])),i.parent=n,i.depth=n.depth+1;return s.eachBefore(xg)}function pg(t){return t.children}function vg(t){return Array.isArray(t)?t[1]:null}function yg(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function xg(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function bg(t){this.data=t,this.depth=this.height=0,this.parent=null}function mg(t,e,n,i,r){var a,o,s=t.children,u=s.length,c=Array(u+1);for(c[0]=o=a=0;a<u;++a)c[a+1]=o+=s[a].value;!function t(e,n,i,r,a,o,u){if(e>=n-1){var l=s[e];return l.x0=r,l.y0=a,l.x1=o,void(l.y1=u)}var h=c[e],f=i/2+h,d=e+1,g=n-1;for(;d<g;){var p=d+g>>>1;c[p]<f?d=p+1:g=p}f-c[d-1]<c[d]-f&&e+1<d&&--d;var v=c[d]-h,y=i-v;if(o-r>u-a){var x=i?(r*y+o*v)/i:o;t(e,d,v,r,a,x,u),t(d,n,y,x,a,o,u)}else{var b=i?(a*y+u*v)/i:u;t(e,d,v,r,a,o,b),t(d,n,y,r,b,o,u)}}(0,u,t.value,e,n,i,r)}function _g(t,e,n,i,r){(1&t.depth?Qd:Jd)(t,e,n,i,r)}bg.prototype=gg.prototype=(hg={constructor:bg,count:function(){return this.eachAfter(og)},each:function(t,e){for(var n,i=-1,r=sg(this);!(n=r()).done;){var a=n.value;t.call(e,a,++i,this)}return this},eachAfter:function(t,e){for(var n,i,r,a=this,o=[a],s=[],u=-1;a=o.pop();)if(s.push(a),n=a.children)for(i=0,r=n.length;i<r;++i)o.push(n[i]);for(;a=s.pop();)t.call(e,a,++u,this);return this},eachBefore:function(t,e){for(var n,i,r=this,a=[r],o=-1;r=a.pop();)if(t.call(e,r,++o,this),n=r.children)for(i=n.length-1;i>=0;--i)a.push(n[i]);return this},find:function(t,e){for(var n,i=-1,r=cg(this);!(n=r()).done;){var a=n.value;if(t.call(e,a,++i,this))return a}},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,i=e.children,r=i&&i.length;--r>=0;)n+=i[r].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),i=e.ancestors(),r=null;t=n.pop(),e=i.pop();for(;t===e;)r=t,t=n.pop(),e=i.pop();return r}(e,t),i=[e];e!==n;)e=e.parent,i.push(e);for(var r=i.length;t!==n;)i.splice(r,0,t),t=t.parent;return i},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return gg(this).eachBefore(yg)}},hg[Symbol.iterator]=dg,hg);var Tg=function t(e){function n(t,n,i,r,a){if((o=t._squarify)&&o.ratio===e)for(var o,s,u,c,l,h=-1,f=o.length,d=t.value;++h<f;){for(u=(s=o[h]).children,c=s.value=0,l=u.length;c<l;++c)s.value+=u[c].value;s.dice?Jd(s,n,i,r,d?i+=(a-i)*s.value/d:a):Qd(s,n,i,d?n+=(r-n)*s.value/d:r,a),d-=s.value}else t._squarify=o=eg(e,t,n,i,r,a),o.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(tg);function wg(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 Ag(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 Ag(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 Ag(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}function Sg(t,e){var n=this,i=this.scale,r=i.x,o=i.y,s=this.state.width;t.selectAll("g").attr("transform",function(t){return a(this,n),"translate("+(t===e?"0,0":r(t.x0)+","+o(t.y0))+")"}.bind(this)).select("rect").attr("width",function(t){return a(this,n),t===e?s:r(t.x1)-r(t.x0)}.bind(this)).attr("height",function(t){return a(this,n),t===e?0:o(t.y1)-o(t.y0)}.bind(this))}function Eg(t){var e=this,n=this;return t.map(function(t){a(this,e);var i=t.id,r=t.values;return{name:i,id:i,value:r[0].value,ratio:n.getRatio("treemap",r[0])}}.bind(this))}var kg={initTreemap:function(){var t=this,e=this,n=e.$el,i=e.state,r=i.current,o=r.width,s=r.height,u=i.clip,c=i.datetimeId;u.id=c+"-clip",e.treemap=function(){var t=ng,e=!1,n=1,i=1,r=[0],a=rg,o=rg,s=rg,u=rg,c=rg;function l(t){return t.x0=t.y0=0,t.x1=n,t.y1=i,t.eachBefore(h),r=[0],e&&t.eachBefore(Kd),t}function h(e){var n=r[e.depth],i=e.x0+n,l=e.y0+n,h=e.x1-n,f=e.y1-n;h<i&&(i=h=(i+h)/2),f<l&&(l=f=(l+f)/2),e.x0=i,e.y0=l,e.x1=h,e.y1=f,e.children&&(n=r[e.depth+1]=a(e)/2,i+=c(e)-n,l+=o(e)-n,(h-=s(e)-n)<i&&(i=h=(i+h)/2),(f-=u(e)-n)<l&&(l=f=(l+f)/2),t(e,i,l,h,f))}return l.round=function(t){return arguments.length?(e=!!t,l):e},l.size=function(t){return arguments.length?(n=+t[0],i=+t[1],l):[n,i]},l.tile=function(e){return arguments.length?(t=ig(e),l):t},l.padding=function(t){return arguments.length?l.paddingInner(t).paddingOuter(t):l.paddingInner()},l.paddingInner=function(t){return arguments.length?(a="function"==typeof t?t:ag(+t),l):a},l.paddingOuter=function(t){return arguments.length?l.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):l.paddingTop()},l.paddingTop=function(t){return arguments.length?(o="function"==typeof t?t:ag(+t),l):o},l.paddingRight=function(t){return arguments.length?(s="function"==typeof t?t:ag(+t),l):s},l.paddingBottom=function(t){return arguments.length?(u="function"==typeof t?t:ag(+t),l):u},l.paddingLeft=function(t){return arguments.length?(c="function"==typeof t?t:ag(+t),l):c},l}().tile(e.getTreemapTile()),e.treemapFn=function(n){var i=this;a(this,t);var r=gg(n).sum(function(t){return a(this,i),t.value}.bind(this)),o=e.getSortCompareFn(!0);return e.treemap(o?r.sort(o):r)}.bind(this),n.defs.append("clipPath").attr("id",u.id).append("rect").attr("width",o).attr("height",s),n.treemap=n.main.select("."+Po.chart).attr("clip-path","url(#"+u.id+")").append("g").classed(is.chartTreemaps,!0),e.bindTreemapEvent()},bindTreemapEvent:function(){var t=this,e=this,n=e.$el,i=e.config,r=e.state,o=function(e){var n,i;a(this,t);var o,s=e.isTrusted?e.target:null==(n=r.eventReceiver.rect)?void 0:n.node();return/^rect$/i.test(s.tagName)&&(r.event=e,o=Rn(s).datum()),null==(i=o)?void 0:i.data}.bind(this);if(i.interaction_enabled){var s="touch"===r.inputType;n.treemap.on(s?"touchstart":"mousemove",function(n){a(this,t);var i=o(n);i&&(e.showTooltip([i],n.currentTarget),"mouseover"===n.type&&e.setOverOut(!0,i))}.bind(this)).on(s?"touchend":"mouseout",function(n){a(this,t);var i=o(n);e.hideTooltip(),e.setOverOut(!1,i)}.bind(this))}},getTreemapTile:function(){var t,e,n=this.config,i=this.state.current,r=i.width,o=i.height,s=null!=(t={binary:mg,dice:Jd,slice:Qd,sliceDice:_g,squarify:ng,resquarify:Tg}[null!=(e=n.treemap_tile)?e:"binary"])?t:mg,u=this;return function(t,e,n,i,c){a(this,u),s(t,0,0,r,o);for(var l,h=wg(t.children);!(l=h()).done;){var f=l.value;f.x0=e+f.x0/r*(i-e),f.x1=e+f.x1/r*(i-e),f.y0=n+f.y0/o*(c-n),f.y1=n+f.y1/o*(c-n)}}.bind(this)},getTreemapData:function(t){var e=this;return{name:"root",children:Eg.bind(e)(e.filterTargetsToShow(t.filter(e.isTreemapType,e)))}},updateTargetsForTreemap:function(t){var e=this,n=e.$el.treemap,i=e.treemapFn(e.getTreemapData(null!=t?t:e.data.targets));n.data(i)},updateTreemap:function(t){var e=this,n=this,i=n.$el,r=n.$T,o=i.treemap.datum(),s=n.getChartClass("Treemap"),u=i.treemap.selectAll("g").data(o.children);r(u.exit(),t).style("opacity","0").remove(),u.enter().append("g").append("rect"),i.treemap.selectAll("g").attr("class",s).select("rect").attr("fill",function(t){return a(this,e),n.color(t.data.name)}.bind(this))},generateGetTreemapPoints:function(){var t=this,e=this.$el,n=this.scale,i=n.x,r=n.y,o={};return e.treemap.selectAll("g").each(function(e){a(this,t),o[e.data.name]=[[i(e.x0),r(e.y0)],[i(e.x1),r(e.y1)]]}.bind(this)),function(e){return a(this,t),o[e.id]}.bind(this)},redrawTreemap:function(t){var e=this,n=e.$el,i=e.state.current,r=i.width,a=i.height;return n.defs.select("rect").attr("width",r).attr("height",a),[e.$T(n.treemap,t,ho()).call(Sg.bind(e),n.treemap.datum())]},treemapDataLabelFormat:function(t){var e=this,n=e.config,i=t.id,r=t.value,a=n.treemap_label_format,o=e.getRatio("treemap",t),s=(100*o).toFixed(2),u=n.treemap_label_show&&e.meetsLabelThreshold(o,"treemap")?null:"0";return function(t){return t.style("opacity",u),Xa(a)?a.bind(e.api)(r,o,i):i+"\n"+s+"%"}}},Og={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"},Mg={area_above:!1,area_below:!1,area_front:!0,area_linearGradient:!1,area_zerobased:!0},Rg={bar_front:!1,bar_indices_removeNull:!1,bar_label_threshold:0,bar_linearGradient:!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},Cg={bubble_maxR:35,bubble_zerobased:!1},Ig={candlestick_width:void 0,candlestick_width_ratio:.6,candlestick_width_max:void 0,candlestick_color_down:"red"},Pg={line_connectNull:!1,line_step_type:"step",line_step_tooltipMatch:!1,line_zerobased:!1,line_classes:void 0,line_point:!0},Lg={scatter_zerobased:!1},Dg={spline_interpolation_type:"cardinal"},Ng={arc_cornerRadius:0,arc_cornerRadius_ratio:0,arc_needle_show:!1,arc_needle_color:void 0,arc_needle_value:void 0,arc_needle_path:void 0,arc_needle_length:100,arc_needle_top_rx:0,arc_needle_top_ry:0,arc_needle_top_width:0,arc_needle_bottom_rx:1,arc_needle_bottom_ry:1,arc_needle_bottom_width:15,arc_needle_bottom_len:0},Fg={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},zg={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},jg={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},Bg={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},$g={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},Xg={treemap_tile:"binary",treemap_label_format:void 0,treemap_label_threshold:.05,treemap_label_show:!0},Ug=void 0;function Yg(t,e){po(Ch.prototype,qf.concat(t)),po(Hh.prototype,Wf),ms.setOptions(Zf.concat(e||[]))}function Vg(t,e){Yg([Gd,Yd].concat(t||[])),ms.setOptions([Og,Pg].concat(e||[]))}function Gg(t,e){po(Ch.prototype,[Ld].concat(t||[])),ms.setOptions(e)}var Hg=function(){var t=this;return a(this,Ug),Vg(zd,[Mg]),(Hg=function(){return a(this,t),jn.AREA}.bind(this))()}.bind(void 0),Wg=function(){var t=this;return a(this,Ug),Vg(zd,[Mg]),(Wg=function(){return a(this,t),jn.AREA_LINE_RANGE}.bind(this))()}.bind(void 0),qg=function(){var t=this;return a(this,Ug),Vg(zd,[Mg,Dg]),(qg=function(){return a(this,t),jn.AREA_SPLINE}.bind(this))()}.bind(void 0),Zg=function(){var t=this;return a(this,Ug),Vg(zd,[Mg,Dg]),(Zg=function(){return a(this,t),jn.AREA_SPLINE_RANGE}.bind(this))()}.bind(void 0),Kg=function(){var t=this;return a(this,Ug),Vg(zd,[Mg]),(Kg=function(){return a(this,t),jn.AREA_STEP}.bind(this))()}.bind(void 0),Jg=function(){var t=this;return a(this,Ug),Vg(),(Jg=function(){return a(this,t),jn.LINE}.bind(this))()}.bind(void 0),Qg=function(){var t=this;return a(this,Ug),Vg(void 0,[Dg]),(Qg=function(){return a(this,t),jn.SPLINE}.bind(this))()}.bind(void 0),tp=function(){var t=this;return a(this,Ug),Vg(),(tp=function(){return a(this,t),jn.STEP}.bind(this))()}.bind(void 0),ep=function(){var t=this;return a(this,Ug),Gg(void 0,[Ng,Fg]),(ep=function(){return a(this,t),jn.DONUT}.bind(this))()}.bind(void 0),np=function(){var t=this;return a(this,Ug),Gg([Xd],[Ng,zg]),(np=function(){return a(this,t),jn.GAUGE}.bind(this))()}.bind(void 0),ip=function(){var t=this;return a(this,Ug),Gg(void 0,[Ng,jg]),(ip=function(){return a(this,t),jn.PIE}.bind(this))()}.bind(void 0),rp=function(){var t=this;return a(this,Ug),Gg([Wd],[Ng,Bg]),(rp=function(){return a(this,t),jn.POLAR}.bind(this))()}.bind(void 0),ap=function(){var t=this;return a(this,Ug),Gg([Gd,Zd],[Og,$g]),(ap=function(){return a(this,t),jn.RADAR}.bind(this))()}.bind(void 0),op=function(){var t=this;return a(this,Ug),Yg([jd],Rg),(op=function(){return a(this,t),jn.BAR}.bind(this))()}.bind(void 0),sp=function(){var t=this;return a(this,Ug),Yg([Gd,Ud],[Cg,Og]),(sp=function(){return a(this,t),jn.BUBBLE}.bind(this))()}.bind(void 0),up=function(){var t=this;return a(this,Ug),Yg([$d],[Ig]),(up=function(){return a(this,t),jn.CANDLESTICK}.bind(this))()}.bind(void 0),cp=function(){var t=this;return a(this,Ug),Yg([Gd],[Og,Lg]),(cp=function(){return a(this,t),jn.SCATTER}.bind(this))()}.bind(void 0),lp=function(){var t=this;return a(this,Ug),Yg([kg],[Xg]),(lp=function(){return a(this,t),jn.TREEMAP}.bind(this))()}.bind(void 0);function hp(t,e,n,i){void 0===t&&(t=!1);var r=this,a=r.config,o=r.$el.main,s=a.data_selection_grouped,u=a.data_selection_isselectable.bind(r.api);a.data_selection_enabled&&o.selectAll("."+Qo.shapes).selectAll("."+Qo.shape).each((function(a){var o=Rn(this),c=a.data?a.data:a,l=c.id,h=c.index,f=r.getToggle(this,a).bind(r),d=s||!e||e.indexOf(l)>=0,g=!n||n.indexOf(h)>=0,p=o.classed(Jo.SELECTED);o.classed(Yo.line)||o.classed(Do.area)||(t?d&&g&&u(a)&&!p?f(!0,o.classed(Jo.SELECTED,!0),a,h):Ga(i)&&i&&p&&f(!1,o.classed(Jo.SELECTED,!1),a,h):d&&g&&u(a)&&p&&f(!1,o.classed(Jo.SELECTED,!1),a,h))}))}var fp={selected:function(t){var e=this,n=this.internal,i=[];return n.$el.main.selectAll("."+(Qo.shapes+n.getTargetSelectorSuffix(t))).selectAll("."+Qo.shape).filter((function(){return Rn(this).classed(Jo.SELECTED)})).each(function(t){return a(this,e),i.push(t)}.bind(this)),i},select:function(t,e,n){var i=this.internal;hp.bind(i)(!0,t,e,n)},unselect:function(t,e){var n=this.internal;hp.bind(n)(!1,t,e)}},dp={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 gp(t){return((t=Math.exp(t))+1/t)/2}var pp=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),m=Math.log(Math.sqrt(x*x+1)-x);o=(m-b)/e,a=function(t){var i=t*o,r=gp(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/gp(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),vp=function(t){var e=this;return a(this,undefined),function(){return a(this,e),t}.bind(this)}.bind(void 0);function yp(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 xp(t,e,n){this.k=t,this.x=e,this.y=n}xp.prototype={constructor:xp,scale:function(t){return 1===t?this:new xp(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new xp(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 bp=new xp(1,0,0);function mp(t){for(;!t.__zoom;)if(!(t=t.parentNode))return bp;return t.__zoom}function _p(t){t.stopImmediatePropagation()}function Tp(t){t.preventDefault(),t.stopImmediatePropagation()}function wp(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function Ap(){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 Sp(){return this.__zoom||bp}function Ep(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function kp(){return navigator.maxTouchPoints||"ontouchstart"in this}function Op(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))}mp.prototype=xp.prototype;var Mp=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=o.axis_x_inverted,h=r.isCategorized(),f=t;if(o.zoom_enabled&&f){r.isTimeSeries()&&(f=f.map(function(t){return a(this,e),ko.bind(n)(t)}.bind(this)));var d=function(t,e,n,i){var r=this;void 0===i&&(i=!1);var o=n[0],s=n[1];return t.every(function(n,u){var c=this;return a(this,r),(0===u?i?+n<=o:+n>=o:i?+n>=s:+n<=s)&&!t.every(function(t,n){return a(this,c),t===e[n]}.bind(this))}.bind(this))}(f,n.getZoomDomain(!0),n.getZoomDomain(),l);if(d){if(h&&(f=f.map(function(t,n){return a(this,e),+t+(0===n?0:1)}.bind(this))),n.api.tooltip.hide(),o.subchart_show){var g=u.zoom||u.x;n.brush.getSelection().call(n.brush.move,f.map(g))}else{var p,v=h?u.x.orgScale():s.xScale||u.x,y=[-v(f[0]),0],x=(p=bp.scale(v.range()[1]/(v(f[1])-v(f[0])))).translate.apply(p,c?y.reverse():y);i.eventRect.call(n.zoom.transform,x)}n.setZoomResetButton()}}else f=u.zoom?u.zoom.domain():u.x.orgDomain();return f};po(Mp,{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=wo("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=wo("min",[i[0],t])),n.zoom_x_min},range:function(t){var e=this.zoom;if(eo(t)){var n=t.min,i=t.max;Ga(n)&&e.min(n),Ga(i)&&e.max(i)}return{min:e.min(),max:e.max()}}});var Rp={zoom:Mp,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(bp),t.updateZoom(!0),null==r||r.style("display","none"),mp(i.node())!==bp&&t.zoom.transform(i,bp))}},Cp={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("."+Qo.shapes).selectAll("."+Qo.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=Rn(this),a=r.classed(Jo.SELECTED),o=r.classed($o.INCLUDED),s=!1;if(r.classed(jo.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=so(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(Jo.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("."+Qo.shape).classed($o.INCLUDED,!1),t.setDragStatus(!1))}};function Ip(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 Pp(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?Ip(Object(e),!0).forEach((function(n){Yn(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Ip(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var Lp=Pp(Pp({},Cp),{},{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);io(o.data_onselected,r.api,e,t.node()),u(s.select("."+Jo.selectedCircles+r.getTargetSelectorSuffix(e.id)).selectAll("."+Jo.selectedCircle+"-"+n).data([e]).enter().append("circle").attr("class",function(){return a(this,i),r.generateClass(Jo.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;io(r.data_onunselected,i.api,e,null==t?void 0:t.node()),o(a.select("."+Jo.selectedCircles+i.getTargetSelectorSuffix(e.id)).selectAll("."+Jo.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;io(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;io(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=Rn(t),u=s.classed(Jo.SELECTED),c=i.getToggle(t,e).bind(i);if(!r.data_selection_multiple){var l=r.point_focus_only,h="."+(l?Jo.selectedCircles:Qo.shapes);r.data_selection_grouped&&(h+=i.getTargetSelectorSuffix(e.id)),a.selectAll(h).selectAll(l?"."+Jo.selectedCircle:"."+Qo.shape+"."+Jo.SELECTED).classed(Jo.SELECTED,!1).each((function(t){var e=Rn(this);o=e,c(!1,e,t,t.index)}))}o&&o.node()===s.node()||(s.classed(Jo.SELECTED,!u),c(!u,s,e,n))}}}),Dp={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&&Na(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]]:to(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):Rn([])}.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=vo(/^(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(vo(t))}.bind(this)).forEach(function(i){a(this,e);var r=/^(bubble|scatter)$/.test(i),s=vo(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"+vo(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(go(o)||o.brush.update(),Object.keys(n.type).forEach(function(t){a(this,r);var e=vo(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(Xa(r))r=r.bind(e.api)(e.getXDomain(e.data.targets),i.subX);else if(e.axis.isTimeSeries()&&r.every(isNaN)){var o=ko.bind(e);r=r.map(function(e){return a(this,t),i.subX(o(e))}.bind(this))}return r}},Np={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=wp,r=Ap,a=Op,o=Ep,s=kp,u=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],l=250,h=pp,f=Kn("start","zoom","end"),d=0,g=10;function p(t){t.property("__zoom",Sp).on("wheel.zoom",T,{passive:!1}).on("mousedown.zoom",w).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 xp(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 xp(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(){m(this,arguments).event(i).start()})).on("interrupt.zoom end.zoom",(function(){m(this,arguments).event(i).end()})).tween("zoom",(function(){var t=this,a=arguments,o=m(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 xp(n,u[0]-e[0]*n,u[1]-e[1]*n)}o.zoom(null,t)}}))}function m(t,e,n){return!n&&t.__zooming||new _(t,e)}function _(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=r.apply(t,e),this.taps=0}function T(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=m(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=Vn(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)],Rr(this),s.start()}Tp(t),s.wheel=setTimeout((function(){s.wheel=null,s.end()}),150),s.zoom("mouse",a(y(v(l,h),s.mouse[0],s.mouse[1]),s.extent,c))}}function w(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=m(this,r,!0).event(t),l=Rn(t.view).on("mousemove.zoom",(function(t){if(Tp(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]=Vn(t,s),u.mouse[1]),u.extent,c))}),!0).on("mouseup.zoom",(function(t){l.on("mousemove.zoom mouseup.zoom",null),ii(t.view,u.moved),Tp(t),u.event(t).end()}),!0),h=Vn(t,s),f=t.clientX,g=t.clientY;ni(t.view),_p(t),u.mouse=[h,this.__zoom.invert(h)],Rr(this),u.start()}}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=Vn(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);Tp(t),l>0?Rn(this).transition().duration(l).call(b,d,u,t):Rn(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=m(this,a,n.changedTouches.length===f).event(n);for(_p(n),u=0;u<f;++u)l=[l=Vn(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)),Rr(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=m(this,n).event(t),h=t.changedTouches,f=h.length;for(Tp(t),r=0;r<f;++r)s=Vn(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,_=(_=x[0]-g[0])*_+(_=x[1]-g[1])*_;o=v(o,Math.sqrt(b/_)),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=m(this,r).event(t),c=t.changedTouches,l=c.length;for(_p(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=Vn(s,this),Math.hypot(e[0]-s[0],e[1]-s[1])<g)){var h=Rn(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",Sp),t!==r?b(t,e,n,i):r.interrupt().each((function(){m(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(bp.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)},_.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=Rn(this.that).datum();f.call(t,this.that,new yp(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:vp(+t),p):o},p.filter=function(t){return arguments.length?(i="function"==typeof t?t:vp(!!t),p):i},p.touchable=function(t){return arguments.length?(s="function"==typeof t?t:vp(!!t),p):s},p.extent=function(t){return arguments.length?(r="function"==typeof t?t:vp([[+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=Za(e.scale.x.orgDomain())/Za(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",bp.translate(g,p).scale(o.k))}e.state.xTickOffset||(e.state.xTickOffset=e.axis.x.tickOffset()),r.zoom=e.getCustomizedXScale(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,io(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)===bp;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||io(i.zoom_onzoom,n.api,n.zoom.getDomain())}},onZoomEnd:function(t){var e,n,i=this,r=i.config,a=i.state,o=i.zoom.startEvent,s=null==t?void 0:t.sourceEvent,u=(null==t?void 0:t.transform)===bp;(null==(e=o)?void 0:e.type.indexOf("touch"))>-1&&(o=o.changedTouches[0],s=null==(n=s)||null==(n=n.changedTouches)?void 0:n[0]);"drag"===r.zoom_type&&s&&o.clientX===s.clientX&&o.clientY===s.clientY||(i.redrawEventRect(),i.updateZoom(),a.zooming=!1,!u&&(s||a.dragging)&&io(r.zoom_onzoomend,i.api,i.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=.015,c=e.config.axis_x_inverted?(o[0]>=s[0]||o[0]+u>=s[0])&&(s[1]>=o[1]||s[1]>=o[1]+u):(o[0]<=s[0]||o[0]-u<=s[0])&&(s[1]<=o[1]||s[1]<=o[1]-u);(t||c)&&(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=du().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=uo(e,this)[c.index],u=s,t.attr(c.axis,s).attr(c.attr,0),n.onZoomStart(e)})).on("drag",(function(e){u=uo(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(){Xa(i.onclick)&&i.onclick.bind(t.api)(this),t.api.unzoom()})).classed(rs.buttonZoomReset,!0).text(i.text||"Reset Zoom"))}},Fp=void 0,zp={data_selection_enabled:!1,data_selection_grouped:!1,data_selection_isselectable:function(){return a(this,Fp),!0}.bind(void 0),data_selection_multiple:!0,data_selection_draggable:!1,data_onselected:function(){a(this,Fp)}.bind(void 0),data_onunselected:function(){a(this,Fp)}.bind(void 0)},jp={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)},Bp={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},$p=void 0,Xp=function(){var t=this;return a(this,$p),po(Ch.prototype,Lp),po(Hh.prototype,fp),ms.setOptions([zp]),(Xp=function(){return a(this,t),!0}.bind(this))()}.bind(void 0),Up=function(){var t=this;return a(this,$p),po(Ch.prototype,Dp),po(Hh.prototype,dp),ms.setOptions([jp]),(Up=function(){return a(this,t),!0}.bind(this))()}.bind(void 0),Yp=function(){var t=this;return a(this,$p),po(Ch.prototype,Np),po(Hh.prototype,Rp),ms.setOptions([Bp]),(Yp=function(){return a(this,t),!0}.bind(this))()}.bind(void 0),Vp={},Gp={version:"3.9.3",generate:function(t){var e=_o({},Vp,t),n=new Hh(e);return n.internal.charts=this.instance,this.instance.push(n),n},defaults:function(t){return eo(t)&&(Vp=t),Vp},instance:[],plugin:{}},Hp=void 0;Object.keys(i).forEach(function(t){return a(this,Hp),i[t]()}.bind(void 0)),Object.keys(r).forEach(function(t){return a(this,Hp),r[t]()}.bind(void 0))},function(t,e,n){var i=n(528)();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(529).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 O(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,m=b&&b(b(M([])));m&&m!==n&&a.call(m,u)&&(x=m);var _=y.prototype=p.prototype=Object.create(x);function T(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function w(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{value:void 0,done:!0}}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=e.method,i=t.iterator[n];if(void 0===i)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var r=d(i,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,g;var a=r.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,g):a:(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 O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function M(t){if(t||""===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,r=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 r.next=r}}throw new TypeError(i(t)+" is not iterable")}return v.prototype=y,o(_,"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(_),t},e.awrap=function(t){return{__await:t}},T(w.prototype),h(w.prototype,c,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,i,r,a){void 0===a&&(a=Promise);var o=new w(f(t,n,i,r),a);return e.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},T(_),h(_,l,"Generator"),h(_,u,(function(){return this})),h(_,"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=M,O.prototype={constructor:O,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:M(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].call(a.exports,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(526)}()}));
|
|
27
|
+
!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){"use strict";n(1),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(113),n(114),n(126),n(128),n(138),n(139),n(141),n(144),n(147),n(149),n(151),n(152),n(153),n(154),n(156),n(157),n(159),n(160),n(162),n(166),n(167),n(168),n(169),n(174),n(175),n(177),n(178),n(179),n(181),n(184),n(185),n(186),n(187),n(188),n(193),n(195),n(196),n(198),n(201),n(202),n(203),n(204),n(205),n(207),n(215),n(217),n(220),n(222),n(223),n(224),n(225),n(226),n(230),n(231),n(233),n(234),n(235),n(237),n(238),n(239),n(95),n(240),n(241),n(249),n(251),n(252),n(253),n(254),n(255),n(257),n(258),n(260),n(261),n(262),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(275),n(276),n(278),n(280),n(281),n(282),n(283),n(284),n(286),n(288),n(289),n(290),n(291),n(293),n(294),n(296),n(297),n(298),n(299),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(322),n(323),n(324),n(325),n(348),n(349),n(350),n(351),n(352),n(353),n(354),n(355),n(357),n(358),n(359),n(360),n(361),n(362),n(363),n(364),n(365),n(366),n(373),n(374),n(376),n(377),n(378),n(379),n(380),n(382),n(383),n(385),n(388),n(389),n(390),n(391),n(392),n(396),n(397),n(399),n(400),n(401),n(402),n(404),n(405),n(406),n(407),n(408),n(409),n(410),n(412),n(415),n(418),n(421),n(422),n(423),n(424),n(425),n(426),n(427),n(428),n(429),n(430),n(431),n(432),n(433),n(442),n(443),n(444),n(445),n(446),n(447),n(448),n(449),n(450),n(451),n(452),n(453),n(454),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(469),n(470),n(471),n(472),n(473),n(474),n(475),n(476),n(477),n(478),n(479),n(480),n(481),n(482),n(483),n(484),n(487),n(489),n(491),n(492),n(495),n(496),n(499),n(500),n(501),n(506),n(507),n(508),n(512),n(515),n(520),n(521),n(522),n(523),n(524),n(525),n(82)},function(t,e,n){"use strict";n(2),n(92),n(94),n(95),n(99)},function(t,e,n){"use strict";var i=n(3),r=n(4),o=n(8),s=n(14),a=n(36),c=n(6),u=n(27),l=n(7),h=n(39),f=n(25),d=n(47),g=n(12),p=n(18),v=n(69),y=n(11),b=n(72),x=n(74),m=n(58),_=n(76),T=n(67),w=n(5),A=n(45),S=n(73),E=n(10),k=n(48),O=n(79),M=n(35),R=n(54),C=n(55),I=n(41),P=n(34),L=n(80),D=n(81),N=n(83),z=n(84),F=n(52),j=n(85).forEach,B=R("hidden"),X="Symbol",$="prototype",U=F.set,Y=F.getterFor(X),V=Object[$],G=r.Symbol,H=G&&G[$],W=r.TypeError,q=r.QObject,Z=w.f,K=A.f,J=_.f,Q=E.f,tt=s([].push),et=M("symbols"),nt=M("op-symbols"),it=M("wks"),rt=!q||!q[$]||!q[$].findChild,ot=c&&l((function(){return 7!==b(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(t,e,n){var i=Z(V,e);i&&delete V[e],K(t,e,n),i&&t!==V&&K(V,e,i)}:K,st=function(t,e){var n=et[t]=b(H);return U(n,{type:X,tag:t,description:e}),c||(n.description=e),n},at=function(t,e,n){t===V&&at(nt,e,n),d(t);var i=p(e);return d(n),h(et,i)?(n.enumerable?(h(t,B)&&t[B][i]&&(t[B][i]=!1),n=b(n,{enumerable:y(0,!1)})):(h(t,B)||K(t,B,y(1,{})),t[B][i]=!0),ot(t,i,n)):K(t,i,n)},ct=function(t,e){d(t);var n=g(e),i=x(n).concat(ft(n));return j(i,(function(e){c&&!o(ut,n,e)||at(t,e,n[e])})),t},ut=function(t){var e=p(t),n=o(Q,this,e);return!(this===V&&h(et,e)&&!h(nt,e))&&(!(n||!h(this,e)||!h(et,e)||h(this,B)&&this[B][e])||n)},lt=function(t,e){var n=g(t),i=p(e);if(n!==V||!h(et,i)||h(nt,i)){var r=Z(n,i);return!r||!h(et,i)||h(n,B)&&n[B][i]||(r.enumerable=!0),r}},ht=function(t){var e=J(g(t)),n=[];return j(e,(function(t){h(et,t)||h(C,t)||tt(n,t)})),n},ft=function(t){var e=t===V,n=J(e?nt:g(t)),i=[];return j(n,(function(t){!h(et,t)||e&&!h(V,t)||tt(i,et[t])})),i};u||(G=function(){if(f(H,this))throw W("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,e=I(t),n=function(t){this===V&&o(n,nt,t),h(this,B)&&h(this[B],e)&&(this[B][e]=!1),ot(this,e,y(1,t))};return c&&rt&&ot(V,e,{configurable:!0,set:n}),st(e,t)},k(H=G[$],"toString",(function(){return Y(this).tag})),k(G,"withoutSetter",(function(t){return st(I(t),t)})),E.f=ut,A.f=at,S.f=ct,w.f=lt,m.f=_.f=ht,T.f=ft,L.f=function(t){return st(P(t),t)},c&&(O(H,"description",{configurable:!0,get:function(){return Y(this).description}}),a||k(V,"propertyIsEnumerable",ut,{unsafe:!0}))),i({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:G}),j(x(it),(function(t){D(t)})),i({target:X,stat:!0,forced:!u},{useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),i({target:"Object",stat:!0,forced:!u,sham:!c},{create:function(t,e){return void 0===e?b(t):ct(b(t),e)},defineProperty:at,defineProperties:ct,getOwnPropertyDescriptor:lt}),i({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:ht}),N(),z(G,X),C[B]=!0},function(t,e,n){"use strict";var i=n(4),r=n(5).f,o=n(44),s=n(48),a=n(38),c=n(56),u=n(68);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]||a(g,{}):(i[g]||{}).prototype)for(l in e){if(f=e[l],h=t.dontCallGetSet?(d=r(n,l))&&d.value:n[l],!u(p?l:g+(v?".":"#")+l,t.forced)&&void 0!==h){if(typeof f==typeof h)continue;c(f,h)}(t.sham||h&&h.sham)&&o(f,"sham",!0),s(n,l,f,t)}}},function(t){"use strict";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}()||this||Function("return this")()},function(t,e,n){"use strict";var i=n(6),r=n(8),o=n(10),s=n(11),a=n(12),c=n(18),u=n(39),l=n(42),h=Object.getOwnPropertyDescriptor;e.f=i?h:function(t,e){if(t=a(t),e=c(e),l)try{return h(t,e)}catch(t){}if(u(t,e))return s(!r(o.f,t,e),t[e])}},function(t,e,n){"use strict";var i=n(7);t.exports=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";var i=n(9),r=Function.prototype.call;t.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},function(t,e,n){"use strict";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){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";var i=n(13),r=n(16);t.exports=function(t){return i(r(t))}},function(t,e,n){"use strict";var i=n(14),r=n(7),o=n(15),s=Object,a=i("".split);t.exports=r((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?a(t,""):s(t)}:s},function(t,e,n){"use strict";var i=n(9),r=Function.prototype,o=r.call,s=i&&r.bind.bind(o,o);t.exports=i?s:function(t){return function(){return o.apply(t,arguments)}}},function(t,e,n){"use strict";var i=n(14),r=i({}.toString),o=i("".slice);t.exports=function(t){return o(r(t),8,-1)}},function(t,e,n){"use strict";var i=n(17),r=TypeError;t.exports=function(t){if(i(t))throw r("Can't call method on "+t);return t}},function(t){"use strict";t.exports=function(t){return null==t}},function(t,e,n){"use strict";var i=n(19),r=n(23);t.exports=function(t){var e=i(t,"string");return r(e)?e:e+""}},function(t,e,n){"use strict";var i=n(8),r=n(20),o=n(23),s=n(30),a=n(33),c=n(34),u=TypeError,l=c("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var n,c=s(t,l);if(c){if(void 0===e&&(e="default"),n=i(c,t,e),!r(n)||o(n))return n;throw u("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},function(t,e,n){"use strict";var i=n(21),r=n(22),o=r.all;t.exports=r.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:i(t)||t===o}:function(t){return"object"==typeof t?null!==t:i(t)}},function(t,e,n){"use strict";var i=n(22),r=i.all;t.exports=i.IS_HTMLDDA?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},function(t){"use strict";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){"use strict";var i=n(24),r=n(21),o=n(25),s=n(26),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return r(e)&&o(e.prototype,a(t))}},function(t,e,n){"use strict";var i=n(4),r=n(21);t.exports=function(t,e){return arguments.length<2?(n=i[t],r(n)?n:void 0):i[t]&&i[t][e];var n}},function(t,e,n){"use strict";var i=n(14);t.exports=i({}.isPrototypeOf)},function(t,e,n){"use strict";var i=n(27);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){"use strict";var i=n(28),r=n(7),o=n(4).String;t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol("symbol detection");return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},function(t,e,n){"use strict";var i,r,o=n(4),s=n(29),a=o.process,c=o.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(r=(i=l.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&s&&(!(i=s.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=s.match(/Chrome\/(\d+)/))&&(r=+i[1]),t.exports=r},function(t){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},function(t,e,n){"use strict";var i=n(31),r=n(17);t.exports=function(t,e){var n=t[e];return r(n)?void 0:i(n)}},function(t,e,n){"use strict";var i=n(21),r=n(32),o=TypeError;t.exports=function(t){if(i(t))return t;throw o(r(t)+" is not a function")}},function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},function(t,e,n){"use strict";var i=n(8),r=n(21),o=n(20),s=TypeError;t.exports=function(t,e){var n,a;if("string"===e&&r(n=t.toString)&&!o(a=i(n,t)))return a;if(r(n=t.valueOf)&&!o(a=i(n,t)))return a;if("string"!==e&&r(n=t.toString)&&!o(a=i(n,t)))return a;throw s("Can't convert object to primitive value")}},function(t,e,n){"use strict";var i=n(4),r=n(35),o=n(39),s=n(41),a=n(27),c=n(26),u=i.Symbol,l=r("wks"),h=c?u.for||u:u&&u.withoutSetter||s;t.exports=function(t){return o(l,t)||(l[t]=a&&o(u,t)?u[t]:h("Symbol."+t)),l[t]}},function(t,e,n){"use strict";var i=n(36),r=n(37);(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.32.1",mode:i?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(t){"use strict";t.exports=!1},function(t,e,n){"use strict";var i=n(4),r=n(38),o="__core-js_shared__",s=i[o]||r(o,{});t.exports=s},function(t,e,n){"use strict";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){"use strict";var i=n(14),r=n(40),o=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(r(t),e)}},function(t,e,n){"use strict";var i=n(16),r=Object;t.exports=function(t){return r(i(t))}},function(t,e,n){"use strict";var i=n(14),r=0,o=Math.random(),s=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++r+o,36)}},function(t,e,n){"use strict";var i=n(6),r=n(7),o=n(43);t.exports=!i&&!r((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){"use strict";var i=n(4),r=n(20),o=i.document,s=r(o)&&r(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},function(t,e,n){"use strict";var i=n(6),r=n(45),o=n(11);t.exports=i?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){"use strict";var i=n(6),r=n(42),o=n(46),s=n(47),a=n(18),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,h="enumerable",f="configurable",d="writable";e.f=i?o?function(t,e,n){if(s(t),e=a(e),s(n),"function"==typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]){var i=l(t,e);i&&i[d]&&(t[e]=n.value,n={configurable:f in n?n[f]:i[f],enumerable:h in n?n[h]:i[h],writable:!1})}return u(t,e,n)}:u:function(t,e,n){if(s(t),e=a(e),s(n),r)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){"use strict";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){"use strict";var i=n(20),r=String,o=TypeError;t.exports=function(t){if(i(t))return t;throw o(r(t)+" is not an object")}},function(t,e,n){"use strict";var i=n(21),r=n(45),o=n(49),s=n(38);t.exports=function(t,e,n,a){a||(a={});var c=a.enumerable,u=void 0!==a.name?a.name:e;if(i(n)&&o(n,u,a),a.global)c?t[e]=n:s(e,n);else{try{a.unsafe?t[e]&&(c=!0):delete t[e]}catch(t){}c?t[e]=n:r.f(t,e,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},function(t,e,n){"use strict";var i=n(14),r=n(7),o=n(21),s=n(39),a=n(6),c=n(50).CONFIGURABLE,u=n(51),l=n(52),h=l.enforce,f=l.get,d=String,g=Object.defineProperty,p=i("".slice),v=i("".replace),y=i([].join),b=a&&!r((function(){return 8!==g((function(){}),"length",{value:8}).length})),x=String(String).split("String"),m=t.exports=function(t,e,n){"Symbol("===p(d(e),0,7)&&(e="["+v(d(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!s(t,"name")||c&&t.name!==e)&&(a?g(t,"name",{value:e,configurable:!0}):t.name=e),b&&n&&s(n,"arity")&&t.length!==n.arity&&g(t,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?a&&g(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var i=h(t);return s(i,"source")||(i.source=y(x,"string"==typeof e?e:"")),t};Function.prototype.toString=m((function(){return o(this)&&f(this).source||u(this)}),"toString")},function(t,e,n){"use strict";var i=n(6),r=n(39),o=Function.prototype,s=i&&Object.getOwnPropertyDescriptor,a=r(o,"name"),c=a&&"something"===function(){}.name,u=a&&(!i||i&&s(o,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},function(t,e,n){"use strict";var i=n(14),r=n(21),o=n(37),s=i(Function.toString);r(o.inspectSource)||(o.inspectSource=function(t){return s(t)}),t.exports=o.inspectSource},function(t,e,n){"use strict";var i,r,o,s=n(53),a=n(4),c=n(20),u=n(44),l=n(39),h=n(37),f=n(54),d=n(55),g="Object already initialized",p=a.TypeError,v=a.WeakMap;if(s||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)||{}},o=function(t){return y.has(t)}}else{var b=f("state");d[b]=!0,i=function(t,e){if(l(t,b))throw p(g);return e.facade=t,u(t,b,e),e},r=function(t){return l(t,b)?t[b]:{}},o=function(t){return l(t,b)}}t.exports={set:i,get:r,has:o,enforce:function(t){return o(t)?r(t):i(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=r(e)).type!==t)throw p("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){"use strict";var i=n(4),r=n(21),o=i.WeakMap;t.exports=r(o)&&/native code/.test(String(o))},function(t,e,n){"use strict";var i=n(35),r=n(41),o=i("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},function(t){"use strict";t.exports={}},function(t,e,n){"use strict";var i=n(39),r=n(57),o=n(5),s=n(45);t.exports=function(t,e,n){for(var a=r(e),c=s.f,u=o.f,l=0;l<a.length;l++){var h=a[l];i(t,h)||n&&i(n,h)||c(t,h,u(e,h))}}},function(t,e,n){"use strict";var i=n(24),r=n(14),o=n(58),s=n(67),a=n(47),c=r([].concat);t.exports=i("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=s.f;return n?c(e,n(t)):e}},function(t,e,n){"use strict";var i=n(59),r=n(66).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},function(t,e,n){"use strict";var i=n(14),r=n(39),o=n(12),s=n(60).indexOf,a=n(55),c=i([].push);t.exports=function(t,e){var n,i=o(t),u=0,l=[];for(n in i)!r(a,n)&&r(i,n)&&c(l,n);for(;e.length>u;)r(i,n=e[u++])&&(~s(l,n)||c(l,n));return l}},function(t,e,n){"use strict";var i=n(12),r=n(61),o=n(64),s=function(t){return function(e,n,s){var a,c=i(e),u=o(c),l=r(s,u);if(t&&n!=n){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},function(t,e,n){"use strict";var i=n(62),r=Math.max,o=Math.min;t.exports=function(t,e){var n=i(t);return n<0?r(n+e,0):o(n,e)}},function(t,e,n){"use strict";var i=n(63);t.exports=function(t){var e=+t;return e!=e||0===e?0:i(e)}},function(t){"use strict";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){"use strict";var i=n(65);t.exports=function(t){return i(t.length)}},function(t,e,n){"use strict";var i=n(62),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},function(t,e,n){"use strict";var i=n(7),r=n(21),o=/#|\.prototype\./,s=function(t,e){var n=c[a(t)];return n===l||n!==u&&(r(e)?i(e):!!e)},a=s.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=s.data={},u=s.NATIVE="N",l=s.POLYFILL="P";t.exports=s},function(t,e,n){"use strict";var i=n(70),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){"use strict";var i=n(71),r=n(21),o=n(15),s=n(34)("toStringTag"),a=Object,c="Arguments"===o(function(){return arguments}());t.exports=i?o: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=a(t),s))?n:c?o(e):"Object"===(i=o(e))&&r(e.callee)?"Arguments":i}},function(t,e,n){"use strict";var i={};i[n(34)("toStringTag")]="z",t.exports="[object z]"===String(i)},function(t,e,n){"use strict";var i,r=n(47),o=n(73),s=n(66),a=n(55),c=n(75),u=n(43),l=n(54),h="prototype",f="script",d=l("IE_PROTO"),g=function(){},p=function(t){return"<"+f+">"+t+"</"+f+">"},v=function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;y="undefined"!=typeof document?document.domain&&i?v(i):(e=u("iframe"),n="java"+f+":",e.style.display="none",c.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F):v(i);for(var r=s.length;r--;)delete y[h][s[r]];return y()};a[d]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(g[h]=r(t),n=new g,g[h]=null,n[d]=t):n=y(),void 0===e?n:o.f(n,e)}},function(t,e,n){"use strict";var i=n(6),r=n(46),o=n(45),s=n(47),a=n(12),c=n(74);e.f=i&&!r?Object.defineProperties:function(t,e){s(t);for(var n,i=a(e),r=c(e),u=r.length,l=0;u>l;)o.f(t,n=r[l++],i[n]);return t}},function(t,e,n){"use strict";var i=n(59),r=n(66);t.exports=Object.keys||function(t){return i(t,r)}},function(t,e,n){"use strict";var i=n(24);t.exports=i("document","documentElement")},function(t,e,n){"use strict";var i=n(15),r=n(12),o=n(58).f,s=n(77),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"Window"===i(t)?function(t){try{return o(t)}catch(t){return s(a)}}(t):o(r(t))}},function(t,e,n){"use strict";var i=n(61),r=n(64),o=n(78),s=Array,a=Math.max;t.exports=function(t,e,n){for(var c=r(t),u=i(e,c),l=i(void 0===n?c:n,c),h=s(a(l-u,0)),f=0;u<l;u++,f++)o(h,f,t[u]);return h.length=f,h}},function(t,e,n){"use strict";var i=n(18),r=n(45),o=n(11);t.exports=function(t,e,n){var s=i(e);s in t?r.f(t,s,o(0,n)):t[s]=n}},function(t,e,n){"use strict";var i=n(49),r=n(45);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){"use strict";var i=n(34);e.f=i},function(t,e,n){"use strict";var i=n(82),r=n(39),o=n(80),s=n(45).f;t.exports=function(t){var e=i.Symbol||(i.Symbol={});r(e,t)||s(e,t,{value:o.f(t)})}},function(t,e,n){"use strict";var i=n(4);t.exports=i},function(t,e,n){"use strict";var i=n(8),r=n(24),o=n(34),s=n(48);t.exports=function(){var t=r("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,a=o("toPrimitive");e&&!e[a]&&s(e,a,(function(t){return i(n,this)}),{arity:1})}},function(t,e,n){"use strict";var i=n(45).f,r=n(39),o=n(34)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!r(t,o)&&i(t,o,{configurable:!0,value:e})}},function(t,e,n){"use strict";var i=n(86),r=n(14),o=n(13),s=n(40),a=n(64),c=n(88),u=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 b,x,m=s(g),_=o(m),T=i(p,v),w=a(_),A=0,S=y||c,E=e?S(g,w):n||f?S(g,0):void 0;w>A;A++)if((d||A in _)&&(x=T(b=_[A],A,m),t))if(e)E[A]=x;else if(x)switch(t){case 3:return!0;case 5:return b;case 6:return A;case 2:u(E,b)}else switch(t){case 4:return!1;case 7:u(E,b)}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){"use strict";var i=n(87),r=n(31),o=n(9),s=i(i.bind);t.exports=function(t,e){return r(t),void 0===e?t:o?s(t,e):function(){return t.apply(e,arguments)}}},function(t,e,n){"use strict";var i=n(15),r=n(14);t.exports=function(t){if("Function"===i(t))return r(t)}},function(t,e,n){"use strict";var i=n(89);t.exports=function(t,e){return new(i(t))(0===e?0:e)}},function(t,e,n){"use strict";var i=n(90),r=n(91),o=n(20),s=n(34)("species"),a=Array;t.exports=function(t){var e;return i(t)&&(e=t.constructor,(r(e)&&(e===a||i(e.prototype))||o(e)&&null===(e=e[s]))&&(e=void 0)),void 0===e?a:e}},function(t,e,n){"use strict";var i=n(15);t.exports=Array.isArray||function(t){return"Array"===i(t)}},function(t,e,n){"use strict";var i=n(14),r=n(7),o=n(21),s=n(70),a=n(24),c=n(51),u=function(){},l=[],h=a("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=i(f.exec),g=!f.exec(u),p=function(t){if(!o(t))return!1;try{return h(u,l,t),!0}catch(t){return!1}},v=function(t){if(!o(t))return!1;switch(s(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return g||!!d(f,c(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){"use strict";var i=n(3),r=n(24),o=n(39),s=n(69),a=n(35),c=n(93),u=a("string-to-symbol-registry"),l=a("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!c},{for:function(t){var e=s(t);if(o(u,e))return u[e];var n=r("Symbol")(e);return u[e]=n,l[n]=e,n}})},function(t,e,n){"use strict";var i=n(27);t.exports=i&&!!Symbol.for&&!!Symbol.keyFor},function(t,e,n){"use strict";var i=n(3),r=n(39),o=n(23),s=n(32),a=n(35),c=n(93),u=a("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!c},{keyFor:function(t){if(!o(t))throw TypeError(s(t)+" is not a symbol");if(r(u,t))return u[t]}})},function(t,e,n){"use strict";var i=n(3),r=n(24),o=n(96),s=n(8),a=n(14),c=n(7),u=n(21),l=n(23),h=n(97),f=n(98),d=n(27),g=String,p=r("JSON","stringify"),v=a(/./.exec),y=a("".charAt),b=a("".charCodeAt),x=a("".replace),m=a(1..toString),_=/[\uD800-\uDFFF]/g,T=/^[\uD800-\uDBFF]$/,w=/^[\uDC00-\uDFFF]$/,A=!d||c((function(){var t=r("Symbol")("stringify detection");return"[null]"!==p([t])||"{}"!==p({a:t})||"{}"!==p(Object(t))})),S=c((function(){return'"\\udf06\\ud834"'!==p("\udf06\ud834")||'"\\udead"'!==p("\udead")})),E=function(t,e){var n=h(arguments),i=f(e);if(u(i)||void 0!==t&&!l(t))return n[1]=function(t,e){if(u(i)&&(e=s(i,this,g(t),e)),!l(e))return e},o(p,null,n)},k=function(t,e,n){var i=y(n,e-1),r=y(n,e+1);return v(T,t)&&!v(w,r)||v(w,t)&&!v(T,i)?"\\u"+m(b(t,0),16):t};p&&i({target:"JSON",stat:!0,arity:3,forced:A||S},{stringify:function(t,e,n){var i=h(arguments),r=o(A?E:p,null,i);return S&&"string"==typeof r?x(r,_,k):r}})},function(t,e,n){"use strict";var i=n(9),r=Function.prototype,o=r.apply,s=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(i?s.bind(o):function(){return s.apply(o,arguments)})},function(t,e,n){"use strict";var i=n(14);t.exports=i([].slice)},function(t,e,n){"use strict";var i=n(14),r=n(90),o=n(21),s=n(15),a=n(69),c=i([].push);t.exports=function(t){if(o(t))return t;if(r(t)){for(var e=t.length,n=[],i=0;i<e;i++){var u=t[i];"string"==typeof u?c(n,u):"number"!=typeof u&&"Number"!==s(u)&&"String"!==s(u)||c(n,a(u))}var l=n.length,h=!0;return function(t,e){if(h)return h=!1,e;if(r(this))return e;for(var i=0;i<l;i++)if(n[i]===t)return e}}}},function(t,e,n){"use strict";var i=n(3),r=n(27),o=n(7),s=n(67),a=n(40);i({target:"Object",stat:!0,forced:!r||o((function(){s.f(1)}))},{getOwnPropertySymbols:function(t){var e=s.f;return e?e(a(t)):[]}})},function(t,e,n){"use strict";var i=n(3),r=n(6),o=n(4),s=n(14),a=n(39),c=n(21),u=n(25),l=n(69),h=n(79),f=n(56),d=o.Symbol,g=d&&d.prototype;if(r&&c(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=u(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(description detection)"===String(d("description detection")),b=s(g.valueOf),x=s(g.toString),m=/^Symbol\((.*)\)[^)]+$/,_=s("".replace),T=s("".slice);h(g,"description",{configurable:!0,get:function(){var t=b(this);if(a(p,t))return"";var e=x(t),n=y?T(e,7,-1):_(e,m,"$1");return""===n?void 0:n}}),i({global:!0,constructor:!0,forced:!0},{Symbol:v})}},function(t,e,n){"use strict";n(81)("asyncIterator")},function(t,e,n){"use strict";n(81)("hasInstance")},function(t,e,n){"use strict";n(81)("isConcatSpreadable")},function(t,e,n){"use strict";n(81)("iterator")},function(t,e,n){"use strict";n(81)("match")},function(t,e,n){"use strict";n(81)("matchAll")},function(t,e,n){"use strict";n(81)("replace")},function(t,e,n){"use strict";n(81)("search")},function(t,e,n){"use strict";n(81)("species")},function(t,e,n){"use strict";n(81)("split")},function(t,e,n){"use strict";var i=n(81),r=n(83);i("toPrimitive"),r()},function(t,e,n){"use strict";var i=n(24),r=n(81),o=n(84);r("toStringTag"),o(i("Symbol"),"Symbol")},function(t,e,n){"use strict";n(81)("unscopables")},function(t,e,n){"use strict";var i=n(3),r=n(4),o=n(96),s=n(115),a="WebAssembly",c=r[a],u=7!==Error("e",{cause:7}).cause,l=function(t,e){var n={};n[t]=s(t,e,u),i({global:!0,constructor:!0,arity:1,forced:u},n)},h=function(t,e){if(c&&c[t]){var n={};n[t]=s(a+"."+t,e,u),i({target:a,stat:!0,constructor:!0,arity:1,forced:u},n)}};l("Error",(function(t){return function(e){return o(t,this,arguments)}})),l("EvalError",(function(t){return function(e){return o(t,this,arguments)}})),l("RangeError",(function(t){return function(e){return o(t,this,arguments)}})),l("ReferenceError",(function(t){return function(e){return o(t,this,arguments)}})),l("SyntaxError",(function(t){return function(e){return o(t,this,arguments)}})),l("TypeError",(function(t){return function(e){return o(t,this,arguments)}})),l("URIError",(function(t){return function(e){return o(t,this,arguments)}})),h("CompileError",(function(t){return function(e){return o(t,this,arguments)}})),h("LinkError",(function(t){return function(e){return o(t,this,arguments)}})),h("RuntimeError",(function(t){return function(e){return o(t,this,arguments)}}))},function(t,e,n){"use strict";var i=n(24),r=n(39),o=n(44),s=n(25),a=n(116),c=n(56),u=n(119),l=n(120),h=n(121),f=n(122),d=n(123),g=n(6),p=n(36);t.exports=function(t,e,n,v){var y="stackTraceLimit",b=v?2:1,x=t.split("."),m=x[x.length-1],_=i.apply(null,x);if(_){var T=_.prototype;if(!p&&r(T,"cause")&&delete T.cause,!n)return _;var w=i("Error"),A=e((function(t,e){var n=h(v?e:t,void 0),i=v?new _(t):new _;return void 0!==n&&o(i,"message",n),d(i,A,i.stack,2),this&&s(T,this)&&l(i,this,A),arguments.length>b&&f(i,arguments[b]),i}));if(A.prototype=T,"Error"!==m?a?a(A,w):c(A,w,{name:!0}):g&&y in _&&(u(A,_,y),u(A,_,"prepareStackTrace")),c(A,_),!p)try{T.name!==m&&o(T,"name",m),T.constructor=A}catch(t){}return A}}},function(t,e,n){"use strict";var i=n(117),r=n(47),o=n(118);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=i(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return r(n),o(i),e?t(n,i):n.__proto__=i,n}}():void 0)},function(t,e,n){"use strict";var i=n(14),r=n(31);t.exports=function(t,e,n){try{return i(r(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}},function(t,e,n){"use strict";var i=n(21),r=String,o=TypeError;t.exports=function(t){if("object"==typeof t||i(t))return t;throw o("Can't set "+r(t)+" as a prototype")}},function(t,e,n){"use strict";var i=n(45).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){"use strict";var i=n(21),r=n(20),o=n(116);t.exports=function(t,e,n){var s,a;return o&&i(s=e.constructor)&&s!==n&&r(a=s.prototype)&&a!==n.prototype&&o(t,a),t}},function(t,e,n){"use strict";var i=n(69);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:i(t)}},function(t,e,n){"use strict";var i=n(20),r=n(44);t.exports=function(t,e){i(e)&&"cause"in e&&r(t,"cause",e.cause)}},function(t,e,n){"use strict";var i=n(44),r=n(124),o=n(125),s=Error.captureStackTrace;t.exports=function(t,e,n,a){o&&(s?s(t,e):i(t,"stack",r(n,a)))}},function(t,e,n){"use strict";var i=n(14),r=Error,o=i("".replace),s=String(r("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(s);t.exports=function(t,e){if(c&&"string"==typeof t&&!r.prepareStackTrace)for(;e--;)t=o(t,a,"");return t}},function(t,e,n){"use strict";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){"use strict";var i=n(48),r=n(127),o=Error.prototype;o.toString!==r&&i(o,"toString",r)},function(t,e,n){"use strict";var i=n(6),r=n(7),o=n(47),s=n(72),a=n(121),c=Error.prototype.toString,u=r((function(){if(i){var t=s(Object.defineProperty({},"name",{get:function(){return this===t}}));if("true"!==c.call(t))return!0}return"2: 1"!==c.call({message:1,name:2})||"Error"!==c.call({})}));t.exports=u?function(){var t=o(this),e=a(t.name,"Error"),n=a(t.message);return e?n?e+": "+n:e:n}:c},function(t,e,n){"use strict";n(129)},function(t,e,n){"use strict";var i=n(3),r=n(25),o=n(130),s=n(116),a=n(56),c=n(72),u=n(44),l=n(11),h=n(122),f=n(123),d=n(132),g=n(121),p=n(34)("toStringTag"),v=Error,y=[].push,b=function(t,e){var n,i=r(x,this);s?n=s(v(),i?o(this):x):(n=i?this:c(x),u(n,p,"Error")),void 0!==e&&u(n,"message",g(e)),f(n,b,n.stack,1),arguments.length>2&&h(n,arguments[2]);var a=[];return d(t,y,{that:a}),u(n,"errors",a),n};s?s(b,v):a(b,v,{name:!0});var x=b.prototype=c(v.prototype,{constructor:l(1,b),message:l(1,""),name:l(1,"AggregateError")});i({global:!0,constructor:!0,arity:2},{AggregateError:b})},function(t,e,n){"use strict";var i=n(39),r=n(21),o=n(40),s=n(54),a=n(131),c=s("IE_PROTO"),u=Object,l=u.prototype;t.exports=a?u.getPrototypeOf:function(t){var e=o(t);if(i(e,c))return e[c];var n=e.constructor;return r(n)&&e instanceof n?n.prototype:e instanceof u?l:null}},function(t,e,n){"use strict";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){"use strict";var i=n(86),r=n(8),o=n(47),s=n(32),a=n(133),c=n(64),u=n(25),l=n(135),h=n(136),f=n(137),d=TypeError,g=function(t,e){this.stopped=t,this.result=e},p=g.prototype;t.exports=function(t,e,n){var v,y,b,x,m,_,T,w=n&&n.that,A=!(!n||!n.AS_ENTRIES),S=!(!n||!n.IS_RECORD),E=!(!n||!n.IS_ITERATOR),k=!(!n||!n.INTERRUPTED),O=i(e,w),M=function(t){return v&&f(v,"normal",t),new g(!0,t)},R=function(t){return A?(o(t),k?O(t[0],t[1],M):O(t[0],t[1])):k?O(t,M):O(t)};if(S)v=t.iterator;else if(E)v=t;else{if(!(y=h(t)))throw d(s(t)+" is not iterable");if(a(y)){for(b=0,x=c(t);x>b;b++)if((m=R(t[b]))&&u(p,m))return m;return new g(!1)}v=l(t,y)}for(_=S?t.next:v.next;!(T=r(_,v)).done;){try{m=R(T.value)}catch(t){f(v,"throw",t)}if("object"==typeof m&&m&&u(p,m))return m}return new g(!1)}},function(t,e,n){"use strict";var i=n(34),r=n(134),o=i("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||s[o]===t)}},function(t){"use strict";t.exports={}},function(t,e,n){"use strict";var i=n(8),r=n(31),o=n(47),s=n(32),a=n(136),c=TypeError;t.exports=function(t,e){var n=arguments.length<2?a(t):e;if(r(n))return o(i(n,t));throw c(s(t)+" is not iterable")}},function(t,e,n){"use strict";var i=n(70),r=n(30),o=n(17),s=n(134),a=n(34)("iterator");t.exports=function(t){if(!o(t))return r(t,a)||r(t,"@@iterator")||s[i(t)]}},function(t,e,n){"use strict";var i=n(8),r=n(47),o=n(30);t.exports=function(t,e,n){var s,a;r(t);try{if(!(s=o(t,"return"))){if("throw"===e)throw n;return n}s=i(s,t)}catch(t){a=!0,s=t}if("throw"===e)throw n;if(a)throw s;return r(s),n}},function(t,e,n){"use strict";var i=n(3),r=n(24),o=n(96),s=n(7),a=n(115),c="AggregateError",u=r(c),l=!s((function(){return 1!==u([1]).errors[0]}))&&s((function(){return 7!==u([1],c,{cause:7}).cause}));i({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:a(c,(function(t){return function(e,n){return o(t,this,arguments)}}),l,!0)})},function(t,e,n){"use strict";var i=n(3),r=n(40),o=n(64),s=n(62),a=n(140);i({target:"Array",proto:!0},{at:function(t){var e=r(this),n=o(e),i=s(t),a=i>=0?i:n+i;return a<0||a>=n?void 0:e[a]}}),a("at")},function(t,e,n){"use strict";var i=n(34),r=n(72),o=n(45).f,s=i("unscopables"),a=Array.prototype;void 0===a[s]&&o(a,s,{configurable:!0,value:r(null)}),t.exports=function(t){a[s][t]=!0}},function(t,e,n){"use strict";var i=n(3),r=n(7),o=n(90),s=n(20),a=n(40),c=n(64),u=n(142),l=n(78),h=n(88),f=n(143),d=n(34),g=n(28),p=d("isConcatSpreadable"),v=g>=51||!r((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),y=function(t){if(!s(t))return!1;var e=t[p];return void 0!==e?!!e:o(t)};i({target:"Array",proto:!0,arity:1,forced:!v||!f("concat")},{concat:function(t){var e,n,i,r,o,s=a(this),f=h(s,0),d=0;for(e=-1,i=arguments.length;e<i;e++)if(y(o=-1===e?s:arguments[e]))for(r=c(o),u(d+r),n=0;n<r;n++,d++)n in o&&l(f,d,o[n]);else u(d+1),l(f,d++,o);return f.length=d,f}})},function(t){"use strict";var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},function(t,e,n){"use strict";var i=n(7),r=n(34),o=n(28),s=r("species");t.exports=function(t){return o>=51||!i((function(){var e=[];return(e.constructor={})[s]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){"use strict";var i=n(3),r=n(145),o=n(140);i({target:"Array",proto:!0},{copyWithin:r}),o("copyWithin")},function(t,e,n){"use strict";var i=n(40),r=n(61),o=n(64),s=n(146),a=Math.min;t.exports=[].copyWithin||function(t,e){var n=i(this),c=o(n),u=r(t,c),l=r(e,c),h=arguments.length>2?arguments[2]:void 0,f=a((void 0===h?c:r(h,c))-l,c-u),d=1;for(l<u&&u<l+f&&(d=-1,l+=f-1,u+=f-1);f-- >0;)l in n?n[u]=n[l]:s(n,u),u+=d,l+=d;return n}},function(t,e,n){"use strict";var i=n(32),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(148)("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){"use strict";var i=n(3),r=n(150),o=n(140);i({target:"Array",proto:!0},{fill:r}),o("fill")},function(t,e,n){"use strict";var i=n(40),r=n(61),o=n(64);t.exports=function(t){for(var e=i(this),n=o(e),s=arguments.length,a=r(s>1?arguments[1]:void 0,n),c=s>2?arguments[2]:void 0,u=void 0===c?n:r(c,n);u>a;)e[a++]=t;return e}},function(t,e,n){"use strict";var i=n(3),r=n(85).filter;i({target:"Array",proto:!0,forced:!n(143)("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,o=n(140),s="find",a=!0;s in[]&&Array(1)[s]((function(){a=!1})),i({target:"Array",proto:!0,forced:a},{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),o(s)},function(t,e,n){"use strict";var i=n(3),r=n(85).findIndex,o=n(140),s="findIndex",a=!0;s in[]&&Array(1)[s]((function(){a=!1})),i({target:"Array",proto:!0,forced:a},{findIndex:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),o(s)},function(t,e,n){"use strict";var i=n(3),r=n(155).findLast,o=n(140);i({target:"Array",proto:!0},{findLast:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),o("findLast")},function(t,e,n){"use strict";var i=n(86),r=n(13),o=n(40),s=n(64),a=function(t){var e=1===t;return function(n,a,c){for(var u,l=o(n),h=r(l),f=i(a,c),d=s(h);d-- >0;)if(f(u=h[d],d,l))switch(t){case 0:return u;case 1:return d}return e?-1:void 0}};t.exports={findLast:a(0),findLastIndex:a(1)}},function(t,e,n){"use strict";var i=n(3),r=n(155).findLastIndex,o=n(140);i({target:"Array",proto:!0},{findLastIndex:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),o("findLastIndex")},function(t,e,n){"use strict";var i=n(3),r=n(158),o=n(40),s=n(64),a=n(62),c=n(88);i({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=o(this),n=s(e),i=c(e,0);return i.length=r(i,e,e,n,0,void 0===t?1:a(t)),i}})},function(t,e,n){"use strict";var i=n(90),r=n(64),o=n(142),s=n(86),a=function(t,e,n,c,u,l,h,f){for(var d,g,p=u,v=0,y=!!h&&s(h,f);v<c;)v in n&&(d=y?y(n[v],v,e):n[v],l>0&&i(d)?(g=r(d),p=a(t,e,d,g,p,l-1)-1):(o(p+1),t[p]=d),p++),v++;return p};t.exports=a},function(t,e,n){"use strict";var i=n(3),r=n(158),o=n(31),s=n(40),a=n(64),c=n(88);i({target:"Array",proto:!0},{flatMap:function(t){var e,n=s(this),i=a(n);return o(t),(e=c(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(161);i({target:"Array",proto:!0,forced:[].forEach!==r},{forEach:r})},function(t,e,n){"use strict";var i=n(85).forEach,r=n(148)("forEach");t.exports=r?[].forEach:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,n){"use strict";var i=n(3),r=n(163);i({target:"Array",stat:!0,forced:!n(165)((function(t){Array.from(t)}))},{from:r})},function(t,e,n){"use strict";var i=n(86),r=n(8),o=n(40),s=n(164),a=n(133),c=n(91),u=n(64),l=n(78),h=n(135),f=n(136),d=Array;t.exports=function(t){var e=o(t),n=c(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,b,x,m,_,T,w=f(e),A=0;if(!w||this===d&&a(w))for(y=u(e),b=n?new this(y):d(y);y>A;A++)T=v?p(e[A],A):e[A],l(b,A,T);else for(_=(m=h(e,w)).next,b=n?new this:[];!(x=r(_,m)).done;A++)T=v?s(m,p,[x.value,A],!0):x.value,l(b,A,T);return b.length=A,b}},function(t,e,n){"use strict";var i=n(47),r=n(137);t.exports=function(t,e,n,o){try{return o?e(i(n)[0],n[1]):e(n)}catch(e){r(t,"throw",e)}}},function(t,e,n){"use strict";var i=n(34)("iterator"),r=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){r=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var o={};o[i]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},function(t,e,n){"use strict";var i=n(3),r=n(60).includes,o=n(7),s=n(140);i({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),s("includes")},function(t,e,n){"use strict";var i=n(3),r=n(87),o=n(60).indexOf,s=n(148),a=r([].indexOf),c=!!a&&1/a([1],1,-0)<0;i({target:"Array",proto:!0,forced:c||!s("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return c?a(this,t,e)||0:o(this,t,e)}})},function(t,e,n){"use strict";n(3)({target:"Array",stat:!0},{isArray:n(90)})},function(t,e,n){"use strict";var i=n(12),r=n(140),o=n(134),s=n(52),a=n(45).f,c=n(170),u=n(173),l=n(36),h=n(6),f="Array Iterator",d=s.set,g=s.getterFor(f);t.exports=c(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++;if(!e||i>=e.length)return t.target=void 0,u(void 0,!0);switch(n){case"keys":return u(i,!1);case"values":return u(e[i],!1)}return u([i,e[i]],!1)}),"values");var p=o.Arguments=o.Array;if(r("keys"),r("values"),r("entries"),!l&&h&&"values"!==p.name)try{a(p,"name",{value:"values"})}catch(t){}},function(t,e,n){"use strict";var i=n(3),r=n(8),o=n(36),s=n(50),a=n(21),c=n(171),u=n(130),l=n(116),h=n(84),f=n(44),d=n(48),g=n(34),p=n(134),v=n(172),y=s.PROPER,b=s.CONFIGURABLE,x=v.IteratorPrototype,m=v.BUGGY_SAFARI_ITERATORS,_=g("iterator"),T="keys",w="values",A="entries",S=function(){return this};t.exports=function(t,e,n,s,g,v,E){c(n,e,s);var k,O,M,R=function(t){if(t===g&&D)return D;if(!m&&t in P)return P[t];switch(t){case T:case w:case A:return function(){return new n(this,t)}}return function(){return new n(this)}},C=e+" Iterator",I=!1,P=t.prototype,L=P[_]||P["@@iterator"]||g&&P[g],D=!m&&L||R(g),N="Array"===e&&P.entries||L;if(N&&(k=u(N.call(new t)))!==Object.prototype&&k.next&&(o||u(k)===x||(l?l(k,x):a(k[_])||d(k,_,S)),h(k,C,!0,!0),o&&(p[C]=S)),y&&g===w&&L&&L.name!==w&&(!o&&b?f(P,"name",w):(I=!0,D=function(){return r(L,this)})),g)if(O={values:R(w),keys:v?D:R(T),entries:R(A)},E)for(M in O)(m||I||!(M in P))&&d(P,M,O[M]);else i({target:e,proto:!0,forced:m||I},O);return o&&!E||P[_]===D||d(P,_,D,{name:g}),p[e]=D,O}},function(t,e,n){"use strict";var i=n(172).IteratorPrototype,r=n(72),o=n(11),s=n(84),a=n(134),c=function(){return this};t.exports=function(t,e,n,u){var l=e+" Iterator";return t.prototype=r(i,{next:o(+!u,n)}),s(t,l,!1,!0),a[l]=c,t}},function(t,e,n){"use strict";var i,r,o,s=n(7),a=n(21),c=n(20),u=n(72),l=n(130),h=n(48),f=n(34),d=n(36),g=f("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(r=l(l(o)))!==Object.prototype&&(i=r):p=!0),!c(i)||s((function(){var t={};return i[g].call(t)!==t}))?i={}:d&&(i=u(i)),a(i[g])||h(i,g,(function(){return this})),t.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:p}},function(t){"use strict";t.exports=function(t,e){return{value:t,done:e}}},function(t,e,n){"use strict";var i=n(3),r=n(14),o=n(13),s=n(12),a=n(148),c=r([].join);i({target:"Array",proto:!0,forced:o!==Object||!a("join",",")},{join:function(t){return c(s(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var i=n(3),r=n(176);i({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r})},function(t,e,n){"use strict";var i=n(96),r=n(12),o=n(62),s=n(64),a=n(148),c=Math.min,u=[].lastIndexOf,l=!!u&&1/[1].lastIndexOf(1,-0)<0,h=a("lastIndexOf"),f=l||!h;t.exports=f?function(t){if(l)return i(u,this,arguments)||0;var e=r(this),n=s(e),a=n-1;for(arguments.length>1&&(a=c(a,o(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in e&&e[a]===t)return a||0;return-1}:u},function(t,e,n){"use strict";var i=n(3),r=n(85).map;i({target:"Array",proto:!0,forced:!n(143)("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),o=n(91),s=n(78),a=Array;i({target:"Array",stat:!0,forced:r((function(){function t(){}return!(a.of.call(t)instanceof t)}))},{of:function(){for(var t=0,e=arguments.length,n=new(o(this)?this:a)(e);e>t;)s(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var i=n(3),r=n(40),o=n(64),s=n(180),a=n(142);i({target:"Array",proto:!0,arity:1,forced:n(7)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=r(this),n=o(e),i=arguments.length;a(n+i);for(var c=0;c<i;c++)e[n]=arguments[c],n++;return s(e,n),n}})},function(t,e,n){"use strict";var i=n(6),r=n(90),o=TypeError,s=Object.getOwnPropertyDescriptor,a=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(r(t)&&!s(t,"length").writable)throw o("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(182).left,o=n(148),s=n(28);i({target:"Array",proto:!0,forced:!n(183)&&s>79&&s<83||!o("reduce")},{reduce:function(t){var e=arguments.length;return r(this,t,e,e>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var i=n(31),r=n(40),o=n(13),s=n(64),a=TypeError,c=function(t){return function(e,n,c,u){i(n);var l=r(e),h=o(l),f=s(l),d=t?f-1:0,g=t?-1:1;if(c<2)for(;;){if(d in h){u=h[d],d+=g;break}if(d+=g,t?d<0:f<=d)throw a("Reduce of empty array with no initial value")}for(;t?d>=0:f>d;d+=g)d in h&&(u=n(u,h[d],d,l));return u}};t.exports={left:c(!1),right:c(!0)}},function(t,e,n){"use strict";var i=n(4),r=n(15);t.exports="process"===r(i.process)},function(t,e,n){"use strict";var i=n(3),r=n(182).right,o=n(148),s=n(28);i({target:"Array",proto:!0,forced:!n(183)&&s>79&&s<83||!o("reduceRight")},{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),o=n(90),s=r([].reverse),a=[1,2];i({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),s(this)}})},function(t,e,n){"use strict";var i=n(3),r=n(90),o=n(91),s=n(20),a=n(61),c=n(64),u=n(12),l=n(78),h=n(34),f=n(143),d=n(97),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=u(this),g=c(f),b=a(t,g),x=a(void 0===e?g:e,g);if(r(f)&&(n=f.constructor,(o(n)&&(n===v||r(n.prototype))||s(n)&&null===(n=n[p]))&&(n=void 0),n===v||void 0===n))return d(f,b,x);for(i=new(void 0===n?v:n)(y(x-b,0)),h=0;b<x;b++,h++)b in f&&l(i,h,f[b]);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(148)("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),o=n(31),s=n(40),a=n(64),c=n(146),u=n(69),l=n(7),h=n(189),f=n(148),d=n(190),g=n(191),p=n(28),v=n(192),y=[],b=r(y.sort),x=r(y.push),m=l((function(){y.sort(void 0)})),_=l((function(){y.sort(null)})),T=f("sort"),w=!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||!_||!T||!w},{sort:function(t){void 0!==t&&o(t);var e=s(this);if(w)return void 0===t?b(e):b(e,t);var n,i,r=[],l=a(e);for(i=0;i<l;i++)i in e&&x(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:u(e)>u(n)?1:-1}}(t)),n=a(r),i=0;i<n;)e[i]=r[i++];for(;i<l;)c(e,i++);return e}})},function(t,e,n){"use strict";var i=n(77),r=Math.floor,o=function(t,e){var n=t.length,c=r(n/2);return n<8?s(t,e):a(t,o(i(t,0,c),e),o(i(t,c),e),e)},s=function(t,e){for(var n,i,r=t.length,o=1;o<r;){for(i=o,n=t[o];i&&e(t[i-1],n)>0;)t[i]=t[--i];i!==o++&&(t[i]=n)}return t},a=function(t,e,n,i){for(var r=e.length,o=n.length,s=0,a=0;s<r||a<o;)t[s+a]=s<r&&a<o?i(e[s],n[a])<=0?e[s++]:n[a++]:s<r?e[s++]:n[a++];return t};t.exports=o},function(t,e,n){"use strict";var i=n(29).match(/firefox\/(\d+)/i);t.exports=!!i&&+i[1]},function(t,e,n){"use strict";var i=n(29);t.exports=/MSIE|Trident/.test(i)},function(t,e,n){"use strict";var i=n(29).match(/AppleWebKit\/(\d+)\./);t.exports=!!i&&+i[1]},function(t,e,n){"use strict";n(194)("Array")},function(t,e,n){"use strict";var i=n(24),r=n(79),o=n(34),s=n(6),a=o("species");t.exports=function(t){var e=i(t);s&&e&&!e[a]&&r(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,n){"use strict";var i=n(3),r=n(40),o=n(61),s=n(62),a=n(64),c=n(180),u=n(142),l=n(88),h=n(78),f=n(146),d=n(143)("splice"),g=Math.max,p=Math.min;i({target:"Array",proto:!0,forced:!d},{splice:function(t,e){var n,i,d,v,y,b,x=r(this),m=a(x),_=o(t,m),T=arguments.length;for(0===T?n=i=0:1===T?(n=0,i=m-_):(n=T-2,i=p(g(s(e),0),m-_)),u(m+n-i),d=l(x,i),v=0;v<i;v++)(y=_+v)in x&&h(d,v,x[y]);if(d.length=i,n<i){for(v=_;v<m-i;v++)b=v+n,(y=v+i)in x?x[b]=x[y]:f(x,b);for(v=m;v>m-i+n;v--)f(x,v-1)}else if(n>i)for(v=m-i;v>_;v--)b=v+n-1,(y=v+i-1)in x?x[b]=x[y]:f(x,b);for(v=0;v<n;v++)x[v+_]=arguments[v+2];return c(x,m-i+n),d}})},function(t,e,n){"use strict";var i=n(3),r=n(197),o=n(12),s=n(140),a=Array;i({target:"Array",proto:!0},{toReversed:function(){return r(o(this),a)}}),s("toReversed")},function(t,e,n){"use strict";var i=n(64);t.exports=function(t,e){for(var n=i(t),r=new e(n),o=0;o<n;o++)r[o]=t[n-o-1];return r}},function(t,e,n){"use strict";var i=n(3),r=n(14),o=n(31),s=n(12),a=n(199),c=n(200),u=n(140),l=Array,h=r(c("Array").sort);i({target:"Array",proto:!0},{toSorted:function(t){void 0!==t&&o(t);var e=s(this),n=a(l,e);return h(n,t)}}),u("toSorted")},function(t,e,n){"use strict";var i=n(64);t.exports=function(t,e){for(var n=0,r=i(e),o=new t(r);r>n;)o[n]=e[n++];return o}},function(t,e,n){"use strict";var i=n(4);t.exports=function(t){return i[t].prototype}},function(t,e,n){"use strict";var i=n(3),r=n(140),o=n(142),s=n(64),a=n(61),c=n(12),u=n(62),l=Array,h=Math.max,f=Math.min;i({target:"Array",proto:!0},{toSpliced:function(t,e){var n,i,r,d,g=c(this),p=s(g),v=a(t,p),y=arguments.length,b=0;for(0===y?n=i=0:1===y?(n=0,i=p-v):(n=y-2,i=f(h(u(e),0),p-v)),r=o(p+n-i),d=l(r);b<v;b++)d[b]=g[b];for(;b<v+n;b++)d[b]=arguments[b-v+2];for(;b<r;b++)d[b]=g[b+i-n];return d}}),r("toSpliced")},function(t,e,n){"use strict";n(140)("flat")},function(t,e,n){"use strict";n(140)("flatMap")},function(t,e,n){"use strict";var i=n(3),r=n(40),o=n(64),s=n(180),a=n(146),c=n(142);i({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}}()},{unshift:function(t){var e=r(this),n=o(e),i=arguments.length;if(i){c(n+i);for(var u=n;u--;){var l=u+i;u in e?e[l]=e[u]:a(e,l)}for(var h=0;h<i;h++)e[h]=arguments[h]}return s(e,n+i)}})},function(t,e,n){"use strict";var i=n(3),r=n(206),o=n(12),s=Array;i({target:"Array",proto:!0},{with:function(t,e){return r(o(this),s,t,e)}})},function(t,e,n){"use strict";var i=n(64),r=n(62),o=RangeError;t.exports=function(t,e,n,s){var a=i(t),c=r(n),u=c<0?a+c:c;if(u>=a||u<0)throw o("Incorrect index");for(var l=new e(a),h=0;h<a;h++)l[h]=h===u?s:t[h];return l}},function(t,e,n){"use strict";var i=n(3),r=n(4),o=n(208),s=n(194),a="ArrayBuffer",c=o[a];i({global:!0,constructor:!0,forced:r[a]!==c},{ArrayBuffer:c}),s(a)},function(t,e,n){"use strict";var i=n(4),r=n(14),o=n(6),s=n(209),a=n(50),c=n(44),u=n(79),l=n(210),h=n(7),f=n(211),d=n(62),g=n(65),p=n(212),v=n(213),y=n(130),b=n(116),x=n(58).f,m=n(150),_=n(77),T=n(84),w=n(52),A=a.PROPER,S=a.CONFIGURABLE,E="ArrayBuffer",k="DataView",O="prototype",M="Wrong index",R=w.getterFor(E),C=w.getterFor(k),I=w.set,P=i[E],L=P,D=L&&L[O],N=i[k],z=N&&N[O],F=Object.prototype,j=i.Array,B=i.RangeError,X=r(m),$=r([].reverse),U=v.pack,Y=v.unpack,V=function(t){return[255&t]},G=function(t){return[255&t,t>>8&255]},H=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},W=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},q=function(t){return U(t,23,4)},Z=function(t){return U(t,52,8)},K=function(t,e,n){u(t[O],e,{configurable:!0,get:function(){return n(this)[e]}})},J=function(t,e,n,i){var r=C(t),o=p(n),s=!!i;if(o+e>r.byteLength)throw B(M);var a=r.bytes,c=o+r.byteOffset,u=_(a,c,c+e);return s?u:$(u)},Q=function(t,e,n,i,r,o){var s=C(t),a=p(n),c=i(+r),u=!!o;if(a+e>s.byteLength)throw B(M);for(var l=s.bytes,h=a+s.byteOffset,f=0;f<e;f++)l[h+f]=c[u?f:e-f-1]};if(s){var tt=A&&P.name!==E;if(h((function(){P(1)}))&&h((function(){new P(-1)}))&&!h((function(){return new P,new P(1.5),new P(NaN),1!==P.length||tt&&!S})))tt&&S&&c(P,"name",E);else{(L=function(t){return f(this,D),new P(p(t))})[O]=D;for(var et,nt=x(P),it=0;nt.length>it;)(et=nt[it++])in L||c(L,et,P[et]);D.constructor=L}b&&y(z)!==F&&b(z,F);var rt=new N(new L(2)),ot=r(z.setInt8);rt.setInt8(0,2147483648),rt.setInt8(1,2147483649),!rt.getInt8(0)&&rt.getInt8(1)||l(z,{setInt8:function(t,e){ot(this,t,e<<24>>24)},setUint8:function(t,e){ot(this,t,e<<24>>24)}},{unsafe:!0})}else D=(L=function(t){f(this,D);var e=p(t);I(this,{type:E,bytes:X(j(e),0),byteLength:e}),o||(this.byteLength=e,this.detached=!1)})[O],z=(N=function(t,e,n){f(this,z),f(t,D);var i=R(t),r=i.byteLength,s=d(e);if(s<0||s>r)throw B("Wrong offset");if(s+(n=void 0===n?r-s:g(n))>r)throw B("Wrong length");I(this,{type:k,buffer:t,byteLength:n,byteOffset:s,bytes:i.bytes}),o||(this.buffer=t,this.byteLength=n,this.byteOffset=s)})[O],o&&(K(L,"byteLength",R),K(N,"buffer",C),K(N,"byteLength",C),K(N,"byteOffset",C)),l(z,{getInt8:function(t){return J(this,1,t)[0]<<24>>24},getUint8:function(t){return J(this,1,t)[0]},getInt16:function(t){var e=J(this,2,t,arguments.length>1&&arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=J(this,2,t,arguments.length>1&&arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return W(J(this,4,t,arguments.length>1&&arguments[1]))},getUint32:function(t){return W(J(this,4,t,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(t){return Y(J(this,4,t,arguments.length>1&&arguments[1]),23)},getFloat64:function(t){return Y(J(this,8,t,arguments.length>1&&arguments[1]),52)},setInt8:function(t,e){Q(this,1,t,V,e)},setUint8:function(t,e){Q(this,1,t,V,e)},setInt16:function(t,e){Q(this,2,t,G,e,arguments.length>2&&arguments[2])},setUint16:function(t,e){Q(this,2,t,G,e,arguments.length>2&&arguments[2])},setInt32:function(t,e){Q(this,4,t,H,e,arguments.length>2&&arguments[2])},setUint32:function(t,e){Q(this,4,t,H,e,arguments.length>2&&arguments[2])},setFloat32:function(t,e){Q(this,4,t,q,e,arguments.length>2&&arguments[2])},setFloat64:function(t,e){Q(this,8,t,Z,e,arguments.length>2&&arguments[2])}});T(L,E),T(N,k),t.exports={ArrayBuffer:L,DataView:N}},function(t){"use strict";t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(t,e,n){"use strict";var i=n(48);t.exports=function(t,e,n){for(var r in e)i(t,r,e[r],n);return t}},function(t,e,n){"use strict";var i=n(25),r=TypeError;t.exports=function(t,e){if(i(e,t))return t;throw r("Incorrect invocation")}},function(t,e,n){"use strict";var i=n(62),r=n(65),o=RangeError;t.exports=function(t){if(void 0===t)return 0;var e=i(t),n=r(e);if(e!==n)throw o("Wrong length or index");return n}},function(t,e,n){"use strict";var i=n(214),r=n(63),o=Array,s=Math.abs,a=Math.pow,c=Math.floor,u=Math.log,l=Math.LN2,h=function(t){var e=r(t),n=s(t-e);return n>.5||.5===n&&e%2!=0?e+i(t):e};t.exports={pack:function(t,e,n){var i,r,f,d=o(n),g=8*n-e-1,p=(1<<g)-1,v=p>>1,y=23===e?a(2,-24)-a(2,-77):0,b=t<0||0===t&&1/t<0?1:0,x=0;for((t=s(t))!=t||t===1/0?(r=t!=t?1:0,i=p):(i=c(u(t)/l),t*(f=a(2,-i))<1&&(i--,f*=2),(t+=i+v>=1?y/f:y*a(2,1-v))*f>=2&&(i++,f/=2),i+v>=p?(r=0,i=p):i+v>=1?(r=h((t*f-1)*a(2,e)),i+=v):(r=h(t*a(2,v-1)*a(2,e)),i=0));e>=8;)d[x++]=255&r,r/=256,e-=8;for(i=i<<e|r,g+=e;g>0;)d[x++]=255&i,i/=256,g-=8;return d[--x]|=128*b,d},unpack:function(t,e){var n,i=t.length,r=8*i-e-1,o=(1<<r)-1,s=o>>1,c=r-7,u=i-1,l=t[u--],h=127&l;for(l>>=7;c>0;)h=256*h+t[u--],c-=8;for(n=h&(1<<-c)-1,h>>=-c,c+=e;c>0;)n=256*n+t[u--],c-=8;if(0===h)h=1-s;else{if(h===o)return n?NaN:l?-1/0:1/0;n+=a(2,e),h-=s}return(l?-1:1)*n*a(2,h-e)}}},function(t){"use strict";t.exports=Math.sign||function(t){var e=+t;return 0===e||e!=e?e:e<0?-1:1}},function(t,e,n){"use strict";var i=n(3),r=n(216);i({target:"ArrayBuffer",stat:!0,forced:!r.NATIVE_ARRAY_BUFFER_VIEWS},{isView:r.isView})},function(t,e,n){"use strict";var i,r,o,s=n(209),a=n(6),c=n(4),u=n(21),l=n(20),h=n(39),f=n(70),d=n(32),g=n(44),p=n(48),v=n(79),y=n(25),b=n(130),x=n(116),m=n(34),_=n(41),T=n(52),w=T.enforce,A=T.get,S=c.Int8Array,E=S&&S.prototype,k=c.Uint8ClampedArray,O=k&&k.prototype,M=S&&b(S),R=E&&b(E),C=Object.prototype,I=c.TypeError,P=m("toStringTag"),L=_("TYPED_ARRAY_TAG"),D="TypedArrayConstructor",N=s&&!!x&&"Opera"!==f(c.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=b(t);if(l(e)){var n=A(e);return n&&h(n,D)?n[D]: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)(o=(r=c[i])&&r.prototype)?w(o)[D]=r:N=!1;for(i in j)(o=(r=c[i])&&r.prototype)&&(w(o)[D]=r);if((!N||!u(M)||M===Function.prototype)&&(M=function(){throw I("Incorrect invocation")},N))for(i in F)c[i]&&x(c[i],M);if((!N||!R||R===C)&&(R=M.prototype,N))for(i in F)c[i]&&x(c[i].prototype,R);if(N&&b(O)!==R&&x(O,R),a&&!h(R,P))for(i in z=!0,v(R,P,{configurable:!0,get:function(){return l(this)?this[L]:void 0}}),F)c[i]&&g(c[i],L,i);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:z&&L,aTypedArray:function(t){if(X(t))return t;throw I("Target is not a typed array")},aTypedArrayConstructor:function(t){if(u(t)&&(!x||y(M,t)))return t;throw I(d(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,n,i){if(a){if(n)for(var r in F){var o=c[r];if(o&&h(o.prototype,t))try{delete o.prototype[t]}catch(n){try{o.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(a){if(x){if(n)for(i in F)if((r=c[i])&&h(r,t))try{delete r[t]}catch(t){}if(M[t]&&!n)return;try{return p(M,t,n?e:N&&M[t]||e)}catch(t){}}for(i in F)!(r=c[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:M,TypedArrayPrototype:R}},function(t,e,n){"use strict";var i=n(3),r=n(87),o=n(7),s=n(208),a=n(47),c=n(61),u=n(65),l=n(218),h=s.ArrayBuffer,f=s.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:o((function(){return!new h(2).slice(1,void 0).byteLength}))},{slice:function(t,e){if(g&&void 0===e)return g(a(this),t);for(var n=a(this).byteLength,i=c(t,n),r=c(void 0===e?n:e,n),o=new(l(this,h))(u(r-i)),s=new f(this),d=new f(o),y=0;i<r;)v(d,y++,p(s,i++));return o}})},function(t,e,n){"use strict";var i=n(47),r=n(219),o=n(17),s=n(34)("species");t.exports=function(t,e){var n,a=i(t).constructor;return void 0===a||o(n=i(a)[s])?e:r(n)}},function(t,e,n){"use strict";var i=n(91),r=n(32),o=TypeError;t.exports=function(t){if(i(t))return t;throw o(r(t)+" is not a constructor")}},function(t,e,n){"use strict";n(221)},function(t,e,n){"use strict";var i=n(3),r=n(208);i({global:!0,constructor:!0,forced:!n(209)},{DataView:r.DataView})},function(t,e,n){"use strict";var i=n(3),r=n(14),o=n(7)((function(){return 120!==new Date(16e11).getYear()})),s=r(Date.prototype.getFullYear);i({target:"Date",proto:!0,forced:o},{getYear:function(){return s(this)-1900}})},function(t,e,n){"use strict";var i=n(3),r=n(14),o=Date,s=r(o.prototype.getTime);i({target:"Date",stat:!0},{now:function(){return s(new o)}})},function(t,e,n){"use strict";var i=n(3),r=n(14),o=n(62),s=Date.prototype,a=r(s.getTime),c=r(s.setFullYear);i({target:"Date",proto:!0},{setYear:function(t){a(this);var e=o(t);return c(this,e>=0&&e<=99?e+1900:e)}})},function(t,e,n){"use strict";n(3)({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})},function(t,e,n){"use strict";var i=n(3),r=n(227);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),o=n(228).start,s=RangeError,a=isFinite,c=Math.abs,u=Date.prototype,l=u.toISOString,h=i(u.getTime),f=i(u.getUTCDate),d=i(u.getUTCFullYear),g=i(u.getUTCHours),p=i(u.getUTCMilliseconds),v=i(u.getUTCMinutes),y=i(u.getUTCMonth),b=i(u.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(!a(h(this)))throw s("Invalid time value");var t=this,e=d(t),n=p(t),i=e<0?"-":e>9999?"+":"";return i+o(c(e),i?6:4,0)+"-"+o(y(t)+1,2,0)+"-"+o(f(t),2,0)+"T"+o(g(t),2,0)+":"+o(v(t),2,0)+":"+o(b(t),2,0)+"."+o(n,3,0)+"Z"}:l},function(t,e,n){"use strict";var i=n(14),r=n(65),o=n(69),s=n(229),a=n(16),c=i(s),u=i("".slice),l=Math.ceil,h=function(t){return function(e,n,i){var s,h,f=o(a(e)),d=r(n),g=f.length,p=void 0===i?" ":o(i);return d<=g||""===p?f:((h=c(p,l((s=d-g)/p.length))).length>s&&(h=u(h,0,s)),t?f+h:h+f)}};t.exports={start:h(!1),end:h(!0)}},function(t,e,n){"use strict";var i=n(62),r=n(69),o=n(16),s=RangeError;t.exports=function(t){var e=r(o(this)),n="",a=i(t);if(a<0||a===1/0)throw s("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(e+=e))1&a&&(n+=e);return n}},function(t,e,n){"use strict";var i=n(3),r=n(7),o=n(40),s=n(19);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=o(this),n=s(e,"number");return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){"use strict";var i=n(39),r=n(48),o=n(232),s=n(34)("toPrimitive"),a=Date.prototype;i(a,s)||r(a,s,o)},function(t,e,n){"use strict";var i=n(47),r=n(33),o=TypeError;t.exports=function(t){if(i(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw o("Incorrect hint");return r(this,t)}},function(t,e,n){"use strict";var i=n(14),r=n(48),o=Date.prototype,s="Invalid Date",a="toString",c=i(o[a]),u=i(o.getTime);String(new Date(NaN))!==s&&r(o,a,(function(){var t=u(this);return t==t?c(this):s}))},function(t,e,n){"use strict";var i=n(3),r=n(14),o=n(69),s=r("".charAt),a=r("".charCodeAt),c=r(/./.exec),u=r(1..toString),l=r("".toUpperCase),h=/[\w*+\-./@]/,f=function(t,e){for(var n=u(t,16);n.length<e;)n="0"+n;return n};i({global:!0},{escape:function(t){for(var e,n,i=o(t),r="",u=i.length,d=0;d<u;)e=s(i,d++),c(h,e)?r+=e:r+=(n=a(e,0))<256?"%"+f(n,2):"%u"+l(f(n,4));return r}})},function(t,e,n){"use strict";var i=n(3),r=n(236);i({target:"Function",proto:!0,forced:Function.bind!==r},{bind:r})},function(t,e,n){"use strict";var i=n(14),r=n(31),o=n(20),s=n(39),a=n(97),c=n(9),u=Function,l=i([].concat),h=i([].join),f={};t.exports=c?u.bind:function(t){var e=r(this),n=e.prototype,i=a(arguments,1),c=function(){var n=l(i,a(arguments));return this instanceof c?function(t,e,n){if(!s(f,e)){for(var i=[],r=0;r<e;r++)i[r]="a["+r+"]";f[e]=u("C,a","return new C("+h(i,",")+")")}return f[e](t,n)}(e,n.length,n):e.apply(t,n)};return o(n)&&(c.prototype=n),c}},function(t,e,n){"use strict";var i=n(21),r=n(20),o=n(45),s=n(130),a=n(34),c=n(49),u=a("hasInstance"),l=Function.prototype;u in l||o.f(l,u,{value:c((function(t){if(!i(this)||!r(t))return!1;var e=this.prototype;if(!r(e))return t instanceof this;for(;t=s(t);)if(e===t)return!0;return!1}),u)})},function(t,e,n){"use strict";var i=n(6),r=n(50).EXISTS,o=n(14),s=n(79),a=Function.prototype,c=o(a.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=o(u.exec);i&&!r&&s(a,"name",{configurable:!0,get:function(){try{return l(u,c(this))[1]}catch(t){return""}}})},function(t,e,n){"use strict";var i=n(3),r=n(4);i({global:!0,forced:r.globalThis!==r},{globalThis:r})},function(t,e,n){"use strict";var i=n(4);n(84)(i.JSON,"JSON",!0)},function(t,e,n){"use strict";n(242)},function(t,e,n){"use strict";n(243)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(248))},function(t,e,n){"use strict";var i=n(3),r=n(4),o=n(14),s=n(68),a=n(48),c=n(244),u=n(132),l=n(211),h=n(21),f=n(17),d=n(20),g=n(7),p=n(165),v=n(84),y=n(120);t.exports=function(t,e,n){var b=-1!==t.indexOf("Map"),x=-1!==t.indexOf("Weak"),m=b?"set":"add",_=r[t],T=_&&_.prototype,w=_,A={},S=function(t){var e=o(T[t]);a(T,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(x&&!d(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return x&&!d(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(x&&!d(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(s(t,!h(_)||!(x||T.forEach&&!g((function(){(new _).entries().next()})))))w=n.getConstructor(e,t,b,m),c.enable();else if(s(t,!0)){var E=new w,k=E[m](x?{}:-0,1)!==E,O=g((function(){E.has(1)})),M=p((function(t){new _(t)})),R=!x&&g((function(){for(var t=new _,e=5;e--;)t[m](e,e);return!t.has(-0)}));M||((w=e((function(t,e){l(t,T);var n=y(new _,t,w);return f(e)||u(e,n[m],{that:n,AS_ENTRIES:b}),n}))).prototype=T,T.constructor=w),(O||R)&&(S("delete"),S("has"),b&&S("get")),(R||k)&&S(m),x&&T.clear&&delete T.clear}return A[t]=w,i({global:!0,constructor:!0,forced:w!==_},A),v(w,t),x||n.setStrong(w,t,b),w}},function(t,e,n){"use strict";var i=n(3),r=n(14),o=n(55),s=n(20),a=n(39),c=n(45).f,u=n(58),l=n(76),h=n(245),f=n(41),d=n(247),g=!1,p=f("meta"),v=0,y=function(t){c(t,p,{value:{objectID:"O"+v++,weakData:{}}})},b=t.exports={enable:function(){b.enable=function(){},g=!0;var t=u.f,e=r([].splice),n={};n[p]=1,t(n).length&&(u.f=function(n){for(var i=t(n),r=0,o=i.length;r<o;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(!s(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,p)){if(!h(t))return"F";if(!e)return"E";y(t)}return t[p].objectID},getWeakData:function(t,e){if(!a(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)&&!a(t,p)&&y(t),t}};o[p]=!0},function(t,e,n){"use strict";var i=n(7),r=n(20),o=n(15),s=n(246),a=Object.isExtensible,c=i((function(){a(1)}));t.exports=c||s?function(t){return!!r(t)&&((!s||"ArrayBuffer"!==o(t))&&(!a||a(t)))}:a},function(t,e,n){"use strict";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){"use strict";var i=n(7);t.exports=!i((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(t,e,n){"use strict";var i=n(72),r=n(79),o=n(210),s=n(86),a=n(211),c=n(17),u=n(132),l=n(170),h=n(173),f=n(194),d=n(6),g=n(244).fastKey,p=n(52),v=p.set,y=p.getterFor;t.exports={getConstructor:function(t,e,n,l){var h=t((function(t,r){a(t,f),v(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),d||(t.size=0),c(r)||u(r,t[l],{that:t,AS_ENTRIES:n})})),f=h.prototype,p=y(e),b=function(t,e,n){var i,r,o=p(t),s=x(t,e);return s?s.value=n:(o.last=s={index:r=g(e,!0),key:e,value:n,previous:i=o.last,next:void 0,removed:!1},o.first||(o.first=s),i&&(i.next=s),d?o.size++:t.size++,"F"!==r&&(o.index[r]=s)),t},x=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 o(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=x(e,t);if(i){var r=i.next,o=i.previous;delete n.index[i.index],i.removed=!0,o&&(o.next=r),r&&(r.previous=o),n.first===i&&(n.first=r),n.last===i&&(n.last=o),d?n.size--:e.size--}return!!i},forEach:function(t){for(var e,n=p(this),i=s(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!!x(this,t)}}),o(f,n?{get:function(t){var e=x(this,t);return e&&e.value},set:function(t,e){return b(this,0===t?0:t,e)}}:{add:function(t){return b(this,t=0===t?0:t,t)}}),d&&r(f,"size",{configurable:!0,get:function(){return p(this).size}}),h},setStrong:function(t,e,n){var i=e+" Iterator",r=y(e),o=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=o(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){"use strict";var i=n(3),r=n(250),o=Math.acosh,s=Math.log,a=Math.sqrt,c=Math.LN2;i({target:"Math",stat:!0,forced:!o||710!==Math.floor(o(Number.MAX_VALUE))||o(1/0)!==1/0},{acosh:function(t){var e=+t;return e<1?NaN:e>94906265.62425156?s(e)+c:r(e-1+a(e-1)*a(e+1))}})},function(t){"use strict";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){"use strict";var i=n(3),r=Math.asinh,o=Math.log,s=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):o(n+s(n*n+1)):n}})},function(t,e,n){"use strict";var i=n(3),r=Math.atanh,o=Math.log;i({target:"Math",stat:!0,forced:!(r&&1/r(-0)<0)},{atanh:function(t){var e=+t;return 0===e?e:o((1+e)/(1-e))/2}})},function(t,e,n){"use strict";var i=n(3),r=n(214),o=Math.abs,s=Math.pow;i({target:"Math",stat:!0},{cbrt:function(t){var e=+t;return r(e)*s(o(e),1/3)}})},function(t,e,n){"use strict";var i=n(3),r=Math.floor,o=Math.log,s=Math.LOG2E;i({target:"Math",stat:!0},{clz32:function(t){var e=t>>>0;return e?31-r(o(e+.5)*s):32}})},function(t,e,n){"use strict";var i=n(3),r=n(256),o=Math.cosh,s=Math.abs,a=Math.E;i({target:"Math",stat:!0,forced:!o||o(710)===1/0},{cosh:function(t){var e=r(s(t)-1)+1;return(e+1/(e*a*a))*(a/2)}})},function(t){"use strict";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){"use strict";var i=n(3),r=n(256);i({target:"Math",stat:!0,forced:r!==Math.expm1},{expm1:r})},function(t,e,n){"use strict";n(3)({target:"Math",stat:!0},{fround:n(259)})},function(t,e,n){"use strict";var i=n(214),r=Math.abs,o=Math.pow,s=o(2,-52),a=o(2,-23),c=o(2,127)*(2-a),u=o(2,-126);t.exports=Math.fround||function(t){var e,n,o=+t,l=r(o),h=i(o);return l<u?h*function(t){return t+1/s-1/s}(l/u/a)*u*a:(n=(e=(1+a/s)*l)-(e-l))>c||n!=n?h*(1/0):h*n}},function(t,e,n){"use strict";var i=n(3),r=Math.hypot,o=Math.abs,s=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,a=0,c=arguments.length,u=0;a<c;)u<(n=o(arguments[a++]))?(r=r*(i=u/n)*i+1,u=n):r+=n>0?(i=n/u)*i:n;return u===1/0?1/0:u*s(r)}})},function(t,e,n){"use strict";var i=n(3),r=n(7),o=Math.imul;i({target:"Math",stat:!0,forced:r((function(){return-5!==o(4294967295,5)||2!==o.length}))},{imul:function(t,e){var n=65535,i=+t,r=+e,o=n&i,s=n&r;return 0|o*s+((n&i>>>16)*s+o*(n&r>>>16)<<16>>>0)}})},function(t,e,n){"use strict";n(3)({target:"Math",stat:!0},{log10:n(263)})},function(t){"use strict";var e=Math.log,n=Math.LOG10E;t.exports=Math.log10||function(t){return e(t)*n}},function(t,e,n){"use strict";n(3)({target:"Math",stat:!0},{log1p:n(250)})},function(t,e,n){"use strict";var i=n(3),r=Math.log,o=Math.LN2;i({target:"Math",stat:!0},{log2:function(t){return r(t)/o}})},function(t,e,n){"use strict";n(3)({target:"Math",stat:!0},{sign:n(214)})},function(t,e,n){"use strict";var i=n(3),r=n(7),o=n(256),s=Math.abs,a=Math.exp,c=Math.E;i({target:"Math",stat:!0,forced:r((function(){return-2e-17!==Math.sinh(-2e-17)}))},{sinh:function(t){var e=+t;return s(e)<1?(o(e)-o(-e))/2:(a(e-1)-a(-e-1))*(c/2)}})},function(t,e,n){"use strict";var i=n(3),r=n(256),o=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)/(o(e)+o(-e))}})},function(t,e,n){"use strict";n(84)(Math,"Math",!0)},function(t,e,n){"use strict";n(3)({target:"Math",stat:!0},{trunc:n(63)})},function(t,e,n){"use strict";var i=n(3),r=n(36),o=n(6),s=n(4),a=n(82),c=n(14),u=n(68),l=n(39),h=n(120),f=n(25),d=n(23),g=n(19),p=n(7),v=n(58).f,y=n(5).f,b=n(45).f,x=n(272),m=n(273).trim,_="Number",T=s[_],w=a[_],A=T.prototype,S=s.TypeError,E=c("".slice),k=c("".charCodeAt),O=function(t){var e,n,i,r,o,s,a,c,u=g(t,"number");if(d(u))throw S("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=m(u),43===(e=k(u,0))||45===e){if(88===(n=k(u,2))||120===n)return NaN}else if(48===e){switch(k(u,1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+u}for(s=(o=E(u,2)).length,a=0;a<s;a++)if((c=k(o,a))<48||c>r)return NaN;return parseInt(o,i)}return+u},M=u(_,!T(" 0o1")||!T("0b1")||T("+0x1")),R=function(t){var e,n=arguments.length<1?0:T(function(t){var e=g(t,"number");return"bigint"==typeof e?e:O(e)}(t));return f(A,e=this)&&p((function(){x(e)}))?h(Object(n),this,R):n};R.prototype=A,M&&!r&&(A.constructor=R),i({global:!0,constructor:!0,wrap:!0,forced:M},{Number:R});var C=function(t,e){for(var n,i=o?v(e):"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;i.length>r;r++)l(e,n=i[r])&&!l(t,n)&&b(t,n,y(e,n))};r&&w&&C(a[_],w),(M||r)&&C(a[_],T)},function(t,e,n){"use strict";var i=n(14);t.exports=i(1..valueOf)},function(t,e,n){"use strict";var i=n(14),r=n(16),o=n(69),s=n(274),a=i("".replace),c=RegExp("^["+s+"]+"),u=RegExp("(^|[^"+s+"])["+s+"]+$"),l=function(t){return function(e){var n=o(r(e));return 1&t&&(n=a(n,c,"")),2&t&&(n=a(n,u,"$1")),n}};t.exports={start:l(1),end:l(2),trim:l(3)}},function(t){"use strict";t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(t,e,n){"use strict";n(3)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},function(t,e,n){"use strict";n(3)({target:"Number",stat:!0},{isFinite:n(277)})},function(t,e,n){"use strict";var i=n(4).isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&i(t)}},function(t,e,n){"use strict";n(3)({target:"Number",stat:!0},{isInteger:n(279)})},function(t,e,n){"use strict";var i=n(20),r=Math.floor;t.exports=Number.isInteger||function(t){return!i(t)&&isFinite(t)&&r(t)===t}},function(t,e,n){"use strict";n(3)({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},function(t,e,n){"use strict";var i=n(3),r=n(279),o=Math.abs;i({target:"Number",stat:!0},{isSafeInteger:function(t){return r(t)&&o(t)<=9007199254740991}})},function(t,e,n){"use strict";n(3)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){"use strict";n(3)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){"use strict";var i=n(3),r=n(285);i({target:"Number",stat:!0,forced:Number.parseFloat!==r},{parseFloat:r})},function(t,e,n){"use strict";var i=n(4),r=n(7),o=n(14),s=n(69),a=n(273).trim,c=n(274),u=o("".charAt),l=i.parseFloat,h=i.Symbol,f=h&&h.iterator,d=1/l(c+"-0")!=-1/0||f&&!r((function(){l(Object(f))}));t.exports=d?function(t){var e=a(s(t)),n=l(e);return 0===n&&"-"===u(e,0)?-0:n}:l},function(t,e,n){"use strict";var i=n(3),r=n(287);i({target:"Number",stat:!0,forced:Number.parseInt!==r},{parseInt:r})},function(t,e,n){"use strict";var i=n(4),r=n(7),o=n(14),s=n(69),a=n(273).trim,c=n(274),u=i.parseInt,l=i.Symbol,h=l&&l.iterator,f=/^[+-]?0x/i,d=o(f.exec),g=8!==u(c+"08")||22!==u(c+"0x16")||h&&!r((function(){u(Object(h))}));t.exports=g?function(t,e){var n=a(s(t));return u(n,e>>>0||(d(f,n)?16:10))}:u},function(t,e,n){"use strict";var i=n(3),r=n(14),o=n(62),s=n(272),a=n(229),c=n(263),u=n(7),l=RangeError,h=String,f=isFinite,d=Math.abs,g=Math.floor,p=Math.pow,v=Math.round,y=r(1..toExponential),b=r(a),x=r("".slice),m="-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);i({target:"Number",proto:!0,forced:!m||!(u((function(){y(1,1/0)}))&&u((function(){y(1,-1/0)})))||!!u((function(){y(1/0,1/0),y(NaN,1/0)}))},{toExponential:function(t){var e=s(this);if(void 0===t)return y(e);var n=o(t);if(!f(e))return String(e);if(n<0||n>20)throw l("Incorrect fraction digits");if(m)return y(e,n);var i="",r="",a=0,u="",_="";if(e<0&&(i="-",e=-e),0===e)a=0,r=b("0",n+1);else{var T=c(e);a=g(T);var w=0,A=p(10,a-n);2*e>=(2*(w=v(e/A))+1)*A&&(w+=1),w>=p(10,n+1)&&(w/=10,a+=1),r=h(w)}return 0!==n&&(r=x(r,0,1)+"."+x(r,1)),0===a?(u="+",_="0"):(u=a>0?"+":"-",_=h(d(a))),i+(r+="e"+u+_)}})},function(t,e,n){"use strict";var i=n(3),r=n(14),o=n(62),s=n(272),a=n(229),c=n(7),u=RangeError,l=String,h=Math.floor,f=r(a),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},b=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:c((function(){return"0.000"!==g(8e-5,3)||"1"!==g(.9,0)||"1.25"!==g(1.255,2)||"1000000000000000128"!==g(0xde0b6b3a7640080,0)}))||!c((function(){g({})}))},{toFixed:function(t){var e,n,i,r,a=s(this),c=o(t),h=[0,0,0,0,0,0],g="",x="0";if(c<0||c>20)throw u("Incorrect fraction digits");if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return l(a);if(a<0&&(g="-",a=-a),a>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}(a*p(2,69,1))-69)<0?a*p(2,-e,1):a/p(2,e,1),n*=4503599627370496,(e=52-e)>0){for(v(h,0,n),i=c;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),x=b(h)}else v(h,0,n),v(h,1<<-e,0),x=b(h)+f("0",c);return x=c>0?g+((r=x.length)<=c?"0."+f("0",c-r)+x:d(x,0,r-c)+"."+d(x,r-c)):g+x}})},function(t,e,n){"use strict";var i=n(3),r=n(14),o=n(7),s=n(272),a=r(1..toPrecision);i({target:"Number",proto:!0,forced:o((function(){return"1"!==a(1,void 0)}))||!o((function(){a({})}))},{toPrecision:function(t){return void 0===t?a(s(this)):a(s(this),t)}})},function(t,e,n){"use strict";var i=n(3),r=n(292);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),o=n(8),s=n(7),a=n(74),c=n(67),u=n(10),l=n(40),h=n(13),f=Object.assign,d=Object.defineProperty,g=r([].concat);t.exports=!f||s((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("assign detection"),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!==f({},t)[n]||a(f({},e)).join("")!==r}))?function(t,e){for(var n=l(t),r=arguments.length,s=1,f=c.f,d=u.f;r>s;)for(var p,v=h(arguments[s++]),y=f?g(a(v),f(v)):a(v),b=y.length,x=0;b>x;)p=y[x++],i&&!o(d,v,p)||(n[p]=v[p]);return n}:f},function(t,e,n){"use strict";n(3)({target:"Object",stat:!0,sham:!n(6)},{create:n(72)})},function(t,e,n){"use strict";var i=n(3),r=n(6),o=n(295),s=n(31),a=n(40),c=n(45);r&&i({target:"Object",proto:!0,forced:o},{__defineGetter__:function(t,e){c.f(a(this),t,{get:s(e),enumerable:!0,configurable:!0})}})},function(t,e,n){"use strict";var i=n(36),r=n(4),o=n(7),s=n(192);t.exports=i||!o((function(){if(!(s&&s<535)){var t=Math.random();__defineSetter__.call(null,t,(function(){})),delete r[t]}}))},function(t,e,n){"use strict";var i=n(3),r=n(6),o=n(73).f;i({target:"Object",stat:!0,forced:Object.defineProperties!==o,sham:!r},{defineProperties:o})},function(t,e,n){"use strict";var i=n(3),r=n(6),o=n(45).f;i({target:"Object",stat:!0,forced:Object.defineProperty!==o,sham:!r},{defineProperty:o})},function(t,e,n){"use strict";var i=n(3),r=n(6),o=n(295),s=n(31),a=n(40),c=n(45);r&&i({target:"Object",proto:!0,forced:o},{__defineSetter__:function(t,e){c.f(a(this),t,{set:s(e),enumerable:!0,configurable:!0})}})},function(t,e,n){"use strict";var i=n(3),r=n(300).entries;i({target:"Object",stat:!0},{entries:function(t){return r(t)}})},function(t,e,n){"use strict";var i=n(6),r=n(7),o=n(14),s=n(130),a=n(74),c=n(12),u=o(n(10).f),l=o([].push),h=i&&r((function(){var t=Object.create(null);return t[2]=2,!u(t,2)})),f=function(t){return function(e){for(var n,r=c(e),o=a(r),f=h&&null===s(r),d=o.length,g=0,p=[];d>g;)n=o[g++],i&&!(f?n in r:u(r,n))||l(p,t?[n,r[n]]:r[n]);return p}};t.exports={entries:f(!0),values:f(!1)}},function(t,e,n){"use strict";var i=n(3),r=n(247),o=n(7),s=n(20),a=n(244).onFreeze,c=Object.freeze;i({target:"Object",stat:!0,forced:o((function(){c(1)})),sham:!r},{freeze:function(t){return c&&s(t)?c(a(t)):t}})},function(t,e,n){"use strict";var i=n(3),r=n(132),o=n(78);i({target:"Object",stat:!0},{fromEntries:function(t){var e={};return r(t,(function(t,n){o(e,t,n)}),{AS_ENTRIES:!0}),e}})},function(t,e,n){"use strict";var i=n(3),r=n(7),o=n(12),s=n(5).f,a=n(6);i({target:"Object",stat:!0,forced:!a||r((function(){s(1)})),sham:!a},{getOwnPropertyDescriptor:function(t,e){return s(o(t),e)}})},function(t,e,n){"use strict";var i=n(3),r=n(6),o=n(57),s=n(12),a=n(5),c=n(78);i({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(t){for(var e,n,i=s(t),r=a.f,u=o(i),l={},h=0;u.length>h;)void 0!==(n=r(i,e=u[h++]))&&c(l,e,n);return l}})},function(t,e,n){"use strict";var i=n(3),r=n(7),o=n(76).f;i({target:"Object",stat:!0,forced:r((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:o})},function(t,e,n){"use strict";var i=n(3),r=n(7),o=n(40),s=n(130),a=n(131);i({target:"Object",stat:!0,forced:r((function(){s(1)})),sham:!a},{getPrototypeOf:function(t){return s(o(t))}})},function(t,e,n){"use strict";n(3)({target:"Object",stat:!0},{hasOwn:n(39)})},function(t,e,n){"use strict";n(3)({target:"Object",stat:!0},{is:n(309)})},function(t){"use strict";t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){"use strict";var i=n(3),r=n(245);i({target:"Object",stat:!0,forced:Object.isExtensible!==r},{isExtensible:r})},function(t,e,n){"use strict";var i=n(3),r=n(7),o=n(20),s=n(15),a=n(246),c=Object.isFrozen;i({target:"Object",stat:!0,forced:a||r((function(){c(1)}))},{isFrozen:function(t){return!o(t)||(!(!a||"ArrayBuffer"!==s(t))||!!c&&c(t))}})},function(t,e,n){"use strict";var i=n(3),r=n(7),o=n(20),s=n(15),a=n(246),c=Object.isSealed;i({target:"Object",stat:!0,forced:a||r((function(){c(1)}))},{isSealed:function(t){return!o(t)||(!(!a||"ArrayBuffer"!==s(t))||!!c&&c(t))}})},function(t,e,n){"use strict";var i=n(3),r=n(40),o=n(74);i({target:"Object",stat:!0,forced:n(7)((function(){o(1)}))},{keys:function(t){return o(r(t))}})},function(t,e,n){"use strict";var i=n(3),r=n(6),o=n(295),s=n(40),a=n(18),c=n(130),u=n(5).f;r&&i({target:"Object",proto:!0,forced:o},{__lookupGetter__:function(t){var e,n=s(this),i=a(t);do{if(e=u(n,i))return e.get}while(n=c(n))}})},function(t,e,n){"use strict";var i=n(3),r=n(6),o=n(295),s=n(40),a=n(18),c=n(130),u=n(5).f;r&&i({target:"Object",proto:!0,forced:o},{__lookupSetter__:function(t){var e,n=s(this),i=a(t);do{if(e=u(n,i))return e.set}while(n=c(n))}})},function(t,e,n){"use strict";var i=n(3),r=n(20),o=n(244).onFreeze,s=n(247),a=n(7),c=Object.preventExtensions;i({target:"Object",stat:!0,forced:a((function(){c(1)})),sham:!s},{preventExtensions:function(t){return c&&r(t)?c(o(t)):t}})},function(t,e,n){"use strict";var i=n(6),r=n(79),o=n(20),s=n(40),a=n(16),c=Object.getPrototypeOf,u=Object.setPrototypeOf,l=Object.prototype,h="__proto__";if(i&&c&&u&&!(h in l))try{r(l,h,{configurable:!0,get:function(){return c(s(this))},set:function(t){var e=a(this);(o(t)||null===t)&&o(e)&&u(e,t)}})}catch(t){}},function(t,e,n){"use strict";var i=n(3),r=n(20),o=n(244).onFreeze,s=n(247),a=n(7),c=Object.seal;i({target:"Object",stat:!0,forced:a((function(){c(1)})),sham:!s},{seal:function(t){return c&&r(t)?c(o(t)):t}})},function(t,e,n){"use strict";n(3)({target:"Object",stat:!0},{setPrototypeOf:n(116)})},function(t,e,n){"use strict";var i=n(71),r=n(48),o=n(321);i||r(Object.prototype,"toString",o,{unsafe:!0})},function(t,e,n){"use strict";var i=n(71),r=n(70);t.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},function(t,e,n){"use strict";var i=n(3),r=n(300).values;i({target:"Object",stat:!0},{values:function(t){return r(t)}})},function(t,e,n){"use strict";var i=n(3),r=n(285);i({global:!0,forced:parseFloat!==r},{parseFloat:r})},function(t,e,n){"use strict";var i=n(3),r=n(287);i({global:!0,forced:parseInt!==r},{parseInt:r})},function(t,e,n){"use strict";n(326),n(341),n(343),n(344),n(345),n(346)},function(t,e,n){"use strict";var i,r,o,s=n(3),a=n(36),c=n(183),u=n(4),l=n(8),h=n(48),f=n(116),d=n(84),g=n(194),p=n(31),v=n(21),y=n(20),b=n(211),x=n(218),m=n(327).set,_=n(330),T=n(334),w=n(335),A=n(331),S=n(52),E=n(336),k=n(337),O=n(340),M="Promise",R=k.CONSTRUCTOR,C=k.REJECTION_EVENT,I=k.SUBCLASSING,P=S.getterFor(M),L=S.set,D=E&&E.prototype,N=E,z=D,F=u.TypeError,j=u.document,B=u.process,X=O.f,$=X,U=!!(j&&j.createEvent&&u.dispatchEvent),Y="unhandledrejection",V=function(t){var e;return!(!y(t)||!v(e=t.then))&&e},G=function(t,e){var n,i,r,o=e.value,s=1===e.state,a=s?t.ok:t.fail,c=t.resolve,u=t.reject,h=t.domain;try{a?(s||(2===e.rejection&&K(e),e.rejection=1),!0===a?n=o:(h&&h.enter(),n=a(o),h&&(h.exit(),r=!0)),n===t.promise?u(F("Promise-chain cycle")):(i=V(n))?l(i,n,c,u):c(n)):u(o)}catch(t){h&&!r&&h.exit(),u(t)}},H=function(t,e){t.notified||(t.notified=!0,_((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),u.dispatchEvent(i)):i={promise:e,reason:n},!C&&(r=u["on"+t])?r(i):t===Y&&T("Unhandled promise rejection",n)},q=function(t){l(m,u,(function(){var e,n=t.facade,i=t.value;if(Z(t)&&(e=w((function(){c?B.emit("unhandledRejection",i,n):W(Y,n,i)})),t.rejection=c||Z(t)?2:1,e.error))throw e.value}))},Z=function(t){return 1!==t.rejection&&!t.parent},K=function(t){l(m,u,(function(){var e=t.facade;c?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?_((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){b(this,z),p(t),l(i,this);var e=P(this);try{t(J(tt,e),J(Q,e))}catch(t){Q(e,t)}}).prototype,(i=function(t){L(this,{type:M,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=P(this),i=X(x(this,N));return n.parent=!0,i.ok=!v(t)||t,i.fail=v(e)&&e,i.domain=c?B.domain:void 0,0===n.state?n.reactions.add(i):_((function(){G(i,n)})),i.promise})),r=function(){var t=new i,e=P(t);this.promise=t,this.resolve=J(tt,e),this.reject=J(Q,e)},O.f=X=function(t){return t===N||undefined===t?new r(t):$(t)},!a&&v(E)&&D!==Object.prototype)){o=D.then,I||h(D,"then",(function(t,e){var n=this;return new N((function(t,e){l(o,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete D.constructor}catch(t){}f&&f(D,z)}s({global:!0,constructor:!0,wrap:!0,forced:R},{Promise:N}),d(N,M,!1,!0),g(M)},function(t,e,n){"use strict";var i,r,o,s,a=n(4),c=n(96),u=n(86),l=n(21),h=n(39),f=n(7),d=n(75),g=n(97),p=n(43),v=n(328),y=n(329),b=n(183),x=a.setImmediate,m=a.clearImmediate,_=a.process,T=a.Dispatch,w=a.Function,A=a.MessageChannel,S=a.String,E=0,k={},O="onreadystatechange";f((function(){i=a.location}));var M=function(t){if(h(k,t)){var e=k[t];delete k[t],e()}},R=function(t){return function(){M(t)}},C=function(t){M(t.data)},I=function(t){a.postMessage(S(t),i.protocol+"//"+i.host)};x&&m||(x=function(t){v(arguments.length,1);var e=l(t)?t:w(t),n=g(arguments,1);return k[++E]=function(){c(e,void 0,n)},r(E),E},m=function(t){delete k[t]},b?r=function(t){_.nextTick(R(t))}:T&&T.now?r=function(t){T.now(R(t))}:A&&!y?(s=(o=new A).port2,o.port1.onmessage=C,r=u(s.postMessage,s)):a.addEventListener&&l(a.postMessage)&&!a.importScripts&&i&&"file:"!==i.protocol&&!f(I)?(r=I,a.addEventListener("message",C,!1)):r=O in p("script")?function(t){d.appendChild(p("script"))[O]=function(){d.removeChild(this),M(t)}}:function(t){setTimeout(R(t),0)}),t.exports={set:x,clear:m}},function(t){"use strict";var e=TypeError;t.exports=function(t,n){if(t<n)throw e("Not enough arguments");return t}},function(t,e,n){"use strict";var i=n(29);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(i)},function(t,e,n){"use strict";var i,r,o,s,a,c=n(4),u=n(86),l=n(5).f,h=n(327).set,f=n(331),d=n(329),g=n(332),p=n(333),v=n(183),y=c.MutationObserver||c.WebKitMutationObserver,b=c.document,x=c.process,m=c.Promise,_=l(c,"queueMicrotask"),T=_&&_.value;if(!T){var w=new f,A=function(){var t,e;for(v&&(t=x.domain)&&t.exit();e=w.get();)try{e()}catch(t){throw w.head&&i(),t}t&&t.enter()};d||v||p||!y||!b?!g&&m&&m.resolve?((s=m.resolve(void 0)).constructor=m,a=u(s.then,s),i=function(){a(A)}):v?i=function(){x.nextTick(A)}:(h=u(h,c),i=function(){h(A)}):(r=!0,o=b.createTextNode(""),new y(A).observe(o,{characterData:!0}),i=function(){o.data=r=!r}),T=function(t){w.head||i(),w.add(t)}}t.exports=T},function(t){"use strict";var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=e},function(t,e,n){"use strict";var i=n(29);t.exports=/ipad|iphone|ipod/i.test(i)&&"undefined"!=typeof Pebble},function(t,e,n){"use strict";var i=n(29);t.exports=/web0s(?!.*chrome)/i.test(i)},function(t){"use strict";t.exports=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}},function(t){"use strict";t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,n){"use strict";var i=n(4);t.exports=i.Promise},function(t,e,n){"use strict";var i=n(4),r=n(336),o=n(21),s=n(68),a=n(51),c=n(34),u=n(338),l=n(339),h=n(36),f=n(28),d=r&&r.prototype,g=c("species"),p=!1,v=o(i.PromiseRejectionEvent),y=s("Promise",(function(){var t=a(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&&(u||l)&&!v}));t.exports={CONSTRUCTOR:y,REJECTION_EVENT:v,SUBCLASSING:p}},function(t,e,n){"use strict";var i=n(339),r=n(183);t.exports=!i&&!r&&"object"==typeof window&&"object"==typeof document},function(t){"use strict";t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},function(t,e,n){"use strict";var i=n(31),r=TypeError,o=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 o(t)}},function(t,e,n){"use strict";var i=n(3),r=n(8),o=n(31),s=n(340),a=n(335),c=n(132);i({target:"Promise",stat:!0,forced:n(342)},{all:function(t){var e=this,n=s.f(e),i=n.resolve,u=n.reject,l=a((function(){var n=o(e.resolve),s=[],a=0,l=1;c(t,(function(t){var o=a++,c=!1;l++,r(n,e,t).then((function(t){c||(c=!0,s[o]=t,--l||i(s))}),u)})),--l||i(s)}));return l.error&&u(l.value),n.promise}})},function(t,e,n){"use strict";var i=n(336),r=n(165),o=n(337).CONSTRUCTOR;t.exports=o||!r((function(t){i.all(t).then(void 0,(function(){}))}))},function(t,e,n){"use strict";var i=n(3),r=n(36),o=n(337).CONSTRUCTOR,s=n(336),a=n(24),c=n(21),u=n(48),l=s&&s.prototype;if(i({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(t){return this.then(void 0,t)}}),!r&&c(s)){var h=a("Promise").prototype.catch;l.catch!==h&&u(l,"catch",h,{unsafe:!0})}},function(t,e,n){"use strict";var i=n(3),r=n(8),o=n(31),s=n(340),a=n(335),c=n(132);i({target:"Promise",stat:!0,forced:n(342)},{race:function(t){var e=this,n=s.f(e),i=n.reject,u=a((function(){var s=o(e.resolve);c(t,(function(t){r(s,e,t).then(n.resolve,i)}))}));return u.error&&i(u.value),n.promise}})},function(t,e,n){"use strict";var i=n(3),r=n(8),o=n(340);i({target:"Promise",stat:!0,forced:n(337).CONSTRUCTOR},{reject:function(t){var e=o.f(this);return r(e.reject,void 0,t),e.promise}})},function(t,e,n){"use strict";var i=n(3),r=n(24),o=n(36),s=n(336),a=n(337).CONSTRUCTOR,c=n(347),u=r("Promise"),l=o&&!a;i({target:"Promise",stat:!0,forced:o||a},{resolve:function(t){return c(l&&this===u?s:this,t)}})},function(t,e,n){"use strict";var i=n(47),r=n(20),o=n(340);t.exports=function(t,e){if(i(t),r(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var i=n(3),r=n(8),o=n(31),s=n(340),a=n(335),c=n(132);i({target:"Promise",stat:!0,forced:n(342)},{allSettled:function(t){var e=this,n=s.f(e),i=n.resolve,u=n.reject,l=a((function(){var n=o(e.resolve),s=[],a=0,u=1;c(t,(function(t){var o=a++,c=!1;u++,r(n,e,t).then((function(t){c||(c=!0,s[o]={status:"fulfilled",value:t},--u||i(s))}),(function(t){c||(c=!0,s[o]={status:"rejected",reason:t},--u||i(s))}))})),--u||i(s)}));return l.error&&u(l.value),n.promise}})},function(t,e,n){"use strict";var i=n(3),r=n(8),o=n(31),s=n(24),a=n(340),c=n(335),u=n(132),l=n(342),h="No one promise resolved";i({target:"Promise",stat:!0,forced:l},{any:function(t){var e=this,n=s("AggregateError"),i=a.f(e),l=i.resolve,f=i.reject,d=c((function(){var i=o(e.resolve),s=[],a=0,c=1,d=!1;u(t,(function(t){var o=a++,u=!1;c++,r(i,e,t).then((function(t){u||d||(d=!0,l(t))}),(function(t){u||d||(u=!0,s[o]=t,--c||f(new n(s,h)))}))})),--c||f(new n(s,h))}));return d.error&&f(d.value),i.promise}})},function(t,e,n){"use strict";var i=n(3),r=n(36),o=n(336),s=n(7),a=n(24),c=n(21),u=n(218),l=n(347),h=n(48),f=o&&o.prototype;if(i({target:"Promise",proto:!0,real:!0,forced:!!o&&s((function(){f.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=u(this,a("Promise")),n=c(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&&c(o)){var d=a("Promise").prototype.finally;f.finally!==d&&h(f,"finally",d,{unsafe:!0})}},function(t,e,n){"use strict";var i=n(3),r=n(96),o=n(31),s=n(47);i({target:"Reflect",stat:!0,forced:!n(7)((function(){Reflect.apply((function(){}))}))},{apply:function(t,e,n){return r(o(t),e,s(n))}})},function(t,e,n){"use strict";var i=n(3),r=n(24),o=n(96),s=n(236),a=n(219),c=n(47),u=n(20),l=n(72),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){a(t),c(e);var n=arguments.length<3?t:a(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 o(g,i,e),new(o(s,t,i))}var r=n.prototype,h=l(u(r)?r:d),y=o(t,h,e);return u(y)?y:h}})},function(t,e,n){"use strict";var i=n(3),r=n(6),o=n(47),s=n(18),a=n(45);i({target:"Reflect",stat:!0,forced:n(7)((function(){Reflect.defineProperty(a.f({},1,{value:1}),1,{value:2})})),sham:!r},{defineProperty:function(t,e,n){o(t);var i=s(e);o(n);try{return a.f(t,i,n),!0}catch(t){return!1}}})},function(t,e,n){"use strict";var i=n(3),r=n(47),o=n(5).f;i({target:"Reflect",stat:!0},{deleteProperty:function(t,e){var n=o(r(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){"use strict";var i=n(3),r=n(8),o=n(20),s=n(47),a=n(356),c=n(5),u=n(130);i({target:"Reflect",stat:!0},{get:function t(e,n){var i,l,h=arguments.length<3?e:arguments[2];return s(e)===h?e[n]:(i=c.f(e,n))?a(i)?i.value:void 0===i.get?void 0:r(i.get,h):o(l=u(e))?t(l,n,h):void 0}})},function(t,e,n){"use strict";var i=n(39);t.exports=function(t){return void 0!==t&&(i(t,"value")||i(t,"writable"))}},function(t,e,n){"use strict";var i=n(3),r=n(6),o=n(47),s=n(5);i({target:"Reflect",stat:!0,sham:!r},{getOwnPropertyDescriptor:function(t,e){return s.f(o(t),e)}})},function(t,e,n){"use strict";var i=n(3),r=n(47),o=n(130);i({target:"Reflect",stat:!0,sham:!n(131)},{getPrototypeOf:function(t){return o(r(t))}})},function(t,e,n){"use strict";n(3)({target:"Reflect",stat:!0},{has:function(t,e){return e in t}})},function(t,e,n){"use strict";var i=n(3),r=n(47),o=n(245);i({target:"Reflect",stat:!0},{isExtensible:function(t){return r(t),o(t)}})},function(t,e,n){"use strict";n(3)({target:"Reflect",stat:!0},{ownKeys:n(57)})},function(t,e,n){"use strict";var i=n(3),r=n(24),o=n(47);i({target:"Reflect",stat:!0,sham:!n(247)},{preventExtensions:function(t){o(t);try{var e=r("Object","preventExtensions");return e&&e(t),!0}catch(t){return!1}}})},function(t,e,n){"use strict";var i=n(3),r=n(8),o=n(47),s=n(20),a=n(356),c=n(7),u=n(45),l=n(5),h=n(130),f=n(11);i({target:"Reflect",stat:!0,forced:c((function(){var t=function(){},e=u.f(new t,"a",{configurable:!0});return!1!==Reflect.set(t.prototype,"a",1,e)}))},{set:function t(e,n,i){var c,d,g,p=arguments.length<4?e:arguments[3],v=l.f(o(e),n);if(!v){if(s(d=h(e)))return t(d,n,i,p);v=f(0)}if(a(v)){if(!1===v.writable||!s(p))return!1;if(c=l.f(p,n)){if(c.get||c.set||!1===c.writable)return!1;c.value=i,u.f(p,n,c)}else u.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){"use strict";var i=n(3),r=n(47),o=n(118),s=n(116);s&&i({target:"Reflect",stat:!0},{setPrototypeOf:function(t,e){r(t),o(e);try{return s(t,e),!0}catch(t){return!1}}})},function(t,e,n){"use strict";var i=n(3),r=n(4),o=n(84);i({global:!0},{Reflect:{}}),o(r.Reflect,"Reflect",!0)},function(t,e,n){"use strict";var i=n(6),r=n(4),o=n(14),s=n(68),a=n(120),c=n(44),u=n(58).f,l=n(25),h=n(367),f=n(69),d=n(368),g=n(370),p=n(119),v=n(48),y=n(7),b=n(39),x=n(52).enforce,m=n(194),_=n(34),T=n(371),w=n(372),A=_("match"),S=r.RegExp,E=S.prototype,k=r.SyntaxError,O=o(E.exec),M=o("".charAt),R=o("".replace),C=o("".indexOf),I=o("".slice),P=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,L=/a/g,D=/a/g,N=new S(L)!==L,z=g.MISSED_STICKY,F=g.UNSUPPORTED_Y,j=i&&(!N||z||T||w||y((function(){return D[A]=!1,S(L)!==L||S(D)===D||"/a/i"!==String(S(L,"i"))})));if(s("RegExp",j)){for(var B=function(t,e){var n,i,r,o,s,u,g=l(E,this),p=h(t),v=void 0===e,y=[],m=t;if(!g&&p&&v&&t.constructor===B)return t;if((p||l(E,t))&&(t=t.source,v&&(e=d(m))),t=void 0===t?"":f(t),e=void 0===e?"":f(e),m=t,T&&"dotAll"in L&&(i=!!e&&C(e,"s")>-1)&&(e=R(e,/s/g,"")),n=e,z&&"sticky"in L&&(r=!!e&&C(e,"y")>-1)&&F&&(e=R(e,/y/g,"")),w&&(o=function(t){for(var e,n=t.length,i=0,r="",o=[],s={},a=!1,c=!1,u=0,l="";i<=n;i++){if("\\"===(e=M(t,i)))e+=M(t,++i);else if("]"===e)a=!1;else if(!a)switch(!0){case"["===e:a=!0;break;case"("===e:O(P,I(t,i+1))&&(i+=2,c=!0),r+=e,u++;continue;case">"===e&&c:if(""===l||b(s,l))throw new k("Invalid capture group name");s[l]=!0,o[o.length]=[l,u],c=!1,l="";continue}c?l+=e:r+=e}return[r,o]}(t),t=o[0],y=o[1]),s=a(S(t,e),g?this:E,B),(i||r||y.length)&&(u=x(s),i&&(u.dotAll=!0,u.raw=B(function(t){for(var e,n=t.length,i=0,r="",o=!1;i<=n;i++)"\\"!==(e=M(t,i))?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),r+=e):r+="[\\s\\S]":r+=e+M(t,++i);return r}(t),n)),r&&(u.sticky=!0),y.length&&(u.groups=y)),t!==m)try{c(s,"source",""===m?"(?:)":m)}catch(t){}return s},X=u(S),$=0;X.length>$;)p(B,S,X[$++]);E.constructor=B,B.prototype=E,v(r,"RegExp",B,{constructor:!0})}m("RegExp")},function(t,e,n){"use strict";var i=n(20),r=n(15),o=n(34)("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[o])?!!e:"RegExp"===r(t))}},function(t,e,n){"use strict";var i=n(8),r=n(39),o=n(25),s=n(369),a=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in a||r(t,"flags")||!o(a,t)?e:i(s,t)}},function(t,e,n){"use strict";var i=n(47);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){"use strict";var i=n(7),r=n(4).RegExp,o=i((function(){var t=r("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),s=o||i((function(){return!r("a","y").sticky})),a=o||i((function(){var t=r("^r","gy");return t.lastIndex=2,null!==t.exec("str")}));t.exports={BROKEN_CARET:a,MISSED_STICKY:s,UNSUPPORTED_Y:o}},function(t,e,n){"use strict";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){"use strict";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){"use strict";var i=n(6),r=n(371),o=n(15),s=n(79),a=n(52).get,c=RegExp.prototype,u=TypeError;i&&r&&s(c,"dotAll",{configurable:!0,get:function(){if(this!==c){if("RegExp"===o(this))return!!a(this).dotAll;throw u("Incompatible receiver, RegExp required")}}})},function(t,e,n){"use strict";var i=n(3),r=n(375);i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},function(t,e,n){"use strict";var i,r,o=n(8),s=n(14),a=n(69),c=n(369),u=n(370),l=n(35),h=n(72),f=n(52).get,d=n(371),g=n(372),p=l("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,y=v,b=s("".charAt),x=s("".indexOf),m=s("".replace),_=s("".slice),T=(r=/b*/g,o(v,i=/a/,"a"),o(v,r,"a"),0!==i.lastIndex||0!==r.lastIndex),w=u.BROKEN_CARET,A=void 0!==/()??/.exec("")[1];(T||A||w||d||g)&&(y=function(t){var e,n,i,r,s,u,l,d=this,g=f(d),S=a(t),E=g.raw;if(E)return E.lastIndex=d.lastIndex,e=o(y,E,S),d.lastIndex=E.lastIndex,e;var k=g.groups,O=w&&d.sticky,M=o(c,d),R=d.source,C=0,I=S;if(O&&(M=m(M,"y",""),-1===x(M,"g")&&(M+="g"),I=_(S,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==b(S,d.lastIndex-1))&&(R="(?: "+R+")",I=" "+I,C++),n=new RegExp("^(?:"+R+")",M)),A&&(n=new RegExp("^"+R+"$(?!\\s)",M)),T&&(i=d.lastIndex),r=o(v,O?n:d,I),O?r?(r.input=_(r.input,C),r[0]=_(r[0],C),r.index=d.lastIndex,d.lastIndex+=r[0].length):d.lastIndex=0:T&&r&&(d.lastIndex=d.global?r.index+r[0].length:i),A&&r&&r.length>1&&o(p,r[0],n,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(r[s]=void 0)})),r&&k)for(r.groups=u=h(null),s=0;s<k.length;s++)u[(l=k[s])[0]]=r[l[1]];return r}),t.exports=y},function(t,e,n){"use strict";var i=n(4),r=n(6),o=n(79),s=n(369),a=n(7),c=i.RegExp,u=c.prototype;r&&a((function(){var t=!0;try{c(".","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}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in t&&(o.hasIndices="d"),o)r(s,o[s]);return Object.getOwnPropertyDescriptor(u,"flags").get.call(e)!==i||n!==i}))&&o(u,"flags",{configurable:!0,get:s})},function(t,e,n){"use strict";var i=n(6),r=n(370).MISSED_STICKY,o=n(15),s=n(79),a=n(52).get,c=RegExp.prototype,u=TypeError;i&&r&&s(c,"sticky",{configurable:!0,get:function(){if(this!==c){if("RegExp"===o(this))return!!a(this).sticky;throw u("Incompatible receiver, RegExp required")}}})},function(t,e,n){"use strict";n(374);var i,r,o=n(3),s=n(8),a=n(21),c=n(47),u=n(69),l=(i=!1,(r=/[ac]/).exec=function(){return i=!0,/./.exec.apply(this,arguments)},!0===r.test("abc")&&i),h=/./.test;o({target:"RegExp",proto:!0,forced:!l},{test:function(t){var e=c(this),n=u(t),i=e.exec;if(!a(i))return s(h,e,n);var r=s(i,e,n);return null!==r&&(c(r),!0)}})},function(t,e,n){"use strict";var i=n(50).PROPER,r=n(48),o=n(47),s=n(69),a=n(7),c=n(368),u="toString",l=RegExp.prototype[u],h=a((function(){return"/a/b"!==l.call({source:"a",flags:"b"})})),f=i&&l.name!==u;(h||f)&&r(RegExp.prototype,u,(function(){var t=o(this);return"/"+s(t.source)+"/"+s(c(t))}),{unsafe:!0})},function(t,e,n){"use strict";n(381)},function(t,e,n){"use strict";n(243)("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(248))},function(t,e,n){"use strict";var i=n(3),r=n(14),o=n(16),s=n(62),a=n(69),c=n(7),u=r("".charAt);i({target:"String",proto:!0,forced:c((function(){return"\ud842"!=="𠮷".at(-2)}))},{at:function(t){var e=a(o(this)),n=e.length,i=s(t),r=i>=0?i:n+i;return r<0||r>=n?void 0:u(e,r)}})},function(t,e,n){"use strict";var i=n(3),r=n(384).codeAt;i({target:"String",proto:!0},{codePointAt:function(t){return r(this,t)}})},function(t,e,n){"use strict";var i=n(14),r=n(62),o=n(69),s=n(16),a=i("".charAt),c=i("".charCodeAt),u=i("".slice),l=function(t){return function(e,n){var i,l,h=o(s(e)),f=r(n),d=h.length;return f<0||f>=d?t?"":void 0:(i=c(h,f))<55296||i>56319||f+1===d||(l=c(h,f+1))<56320||l>57343?t?a(h,f):i:t?u(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),o=n(87),s=n(5).f,a=n(65),c=n(69),u=n(386),l=n(16),h=n(387),f=n(36),d=o("".endsWith),g=o("".slice),p=Math.min,v=h("endsWith");r({target:"String",proto:!0,forced:!!(f||v||(i=s(String.prototype,"endsWith"),!i||i.writable))&&!v},{endsWith:function(t){var e=c(l(this));u(t);var n=arguments.length>1?arguments[1]:void 0,i=e.length,r=void 0===n?i:p(a(n),i),o=c(t);return d?d(e,o,r):g(e,r-o.length,r)===o}})},function(t,e,n){"use strict";var i=n(367),r=TypeError;t.exports=function(t){if(i(t))throw r("The method doesn't accept regular expressions");return t}},function(t,e,n){"use strict";var i=n(34)("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){"use strict";var i=n(3),r=n(14),o=n(61),s=RangeError,a=String.fromCharCode,c=String.fromCodePoint,u=r([].join);i({target:"String",stat:!0,arity:1,forced:!!c&&1!==c.length},{fromCodePoint:function(t){for(var e,n=[],i=arguments.length,r=0;i>r;){if(e=+arguments[r++],o(e,1114111)!==e)throw s(e+" is not a valid code point");n[r]=e<65536?a(e):a(55296+((e-=65536)>>10),e%1024+56320)}return u(n,"")}})},function(t,e,n){"use strict";var i=n(3),r=n(14),o=n(386),s=n(16),a=n(69),c=n(387),u=r("".indexOf);i({target:"String",proto:!0,forced:!c("includes")},{includes:function(t){return!!~u(a(s(this)),a(o(t)),arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var i=n(3),r=n(14),o=n(16),s=n(69),a=r("".charCodeAt);i({target:"String",proto:!0},{isWellFormed:function(){for(var t=s(o(this)),e=t.length,n=0;n<e;n++){var i=a(t,n);if(55296==(63488&i)&&(i>=56320||++n>=e||56320!=(64512&a(t,n))))return!1}return!0}})},function(t,e,n){"use strict";var i=n(384).charAt,r=n(69),o=n(52),s=n(170),a=n(173),c="String Iterator",u=o.set,l=o.getterFor(c);s(String,"String",(function(t){u(this,{type:c,string:r(t),index:0})}),(function(){var t,e=l(this),n=e.string,r=e.index;return r>=n.length?a(void 0,!0):(t=i(n,r),e.index+=t.length,a(t,!1))}))},function(t,e,n){"use strict";var i=n(8),r=n(393),o=n(47),s=n(17),a=n(65),c=n(69),u=n(16),l=n(30),h=n(394),f=n(395);r("match",(function(t,e,n){return[function(e){var n=u(this),r=s(e)?void 0:l(e,t);return r?i(r,e,n):new RegExp(e)[t](c(n))},function(t){var i=o(this),r=c(t),s=n(e,i,r);if(s.done)return s.value;if(!i.global)return f(i,r);var u=i.unicode;i.lastIndex=0;for(var l,d=[],g=0;null!==(l=f(i,r));){var p=c(l[0]);d[g]=p,""===p&&(i.lastIndex=h(r,a(i.lastIndex),u)),g++}return 0===g?null:d}]}))},function(t,e,n){"use strict";n(374);var i=n(87),r=n(48),o=n(375),s=n(7),a=n(34),c=n(44),u=a("species"),l=RegExp.prototype;t.exports=function(t,e,n,h){var f=a(t),d=!s((function(){var e={};return e[f]=function(){return 7},7!==""[t](e)})),g=d&&!s((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[u]=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,s){var a=i(t),c=e.exec;return c===o||c===l.exec?d&&!s?{done:!0,value:p(e,n,r)}:{done:!0,value:a(n,e,r)}:{done:!1}}));r(String.prototype,t,v[0]),r(l,f,v[1])}h&&c(l[f],"sham",!0)}},function(t,e,n){"use strict";var i=n(384).charAt;t.exports=function(t,e,n){return e+(n?i(t,e).length:1)}},function(t,e,n){"use strict";var i=n(8),r=n(47),o=n(21),s=n(15),a=n(375),c=TypeError;t.exports=function(t,e){var n=t.exec;if(o(n)){var u=i(n,t,e);return null!==u&&r(u),u}if("RegExp"===s(t))return i(a,t,e);throw c("RegExp#exec called on incompatible receiver")}},function(t,e,n){"use strict";var i=n(3),r=n(8),o=n(87),s=n(171),a=n(173),c=n(16),u=n(65),l=n(69),h=n(47),f=n(17),d=n(15),g=n(367),p=n(368),v=n(30),y=n(48),b=n(7),x=n(34),m=n(218),_=n(394),T=n(395),w=n(52),A=n(36),S=x("matchAll"),E="RegExp String",k=E+" Iterator",O=w.set,M=w.getterFor(k),R=RegExp.prototype,C=TypeError,I=o("".indexOf),P=o("".matchAll),L=!!P&&!b((function(){P("a",/./)})),D=s((function(t,e,n,i){O(this,{type:k,regexp:t,string:e,global:n,unicode:i,done:!1})}),E,(function(){var t=M(this);if(t.done)return a(void 0,!0);var e=t.regexp,n=t.string,i=T(e,n);return null===i?(t.done=!0,a(void 0,!0)):t.global?(""===l(i[0])&&(e.lastIndex=_(n,u(e.lastIndex),t.unicode)),a(i,!1)):(t.done=!0,a(i,!1))})),N=function(t){var e,n,i,r=h(this),o=l(t),s=m(r,RegExp),a=l(p(r));return e=new s(s===RegExp?r.source:r,a),n=!!~I(a,"g"),i=!!~I(a,"u"),e.lastIndex=u(r.lastIndex),new D(e,o,n,i)};i({target:"String",proto:!0,forced:L},{matchAll:function(t){var e,n,i,o,s=c(this);if(f(t)){if(L)return P(s,t)}else{if(g(t)&&(e=l(c(p(t))),!~I(e,"g")))throw C("`.matchAll` does not allow non-global regexes");if(L)return P(s,t);if(void 0===(i=v(t,S))&&A&&"RegExp"===d(t)&&(i=N),i)return r(i,t,s)}return n=l(s),o=new RegExp(t,"g"),A?r(N,o,n):o[S](n)}}),A||S in R||y(R,S,N)},function(t,e,n){"use strict";var i=n(3),r=n(228).end;i({target:"String",proto:!0,forced:n(398)},{padEnd:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var i=n(29);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(228).start;i({target:"String",proto:!0,forced:n(398)},{padStart: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),o=n(12),s=n(40),a=n(69),c=n(64),u=r([].push),l=r([].join);i({target:"String",stat:!0},{raw:function(t){var e=o(s(t).raw),n=c(e);if(!n)return"";for(var i=arguments.length,r=[],h=0;;){if(u(r,a(e[h++])),h===n)return l(r,"");h<i&&u(r,a(arguments[h]))}}})},function(t,e,n){"use strict";n(3)({target:"String",proto:!0},{repeat:n(229)})},function(t,e,n){"use strict";var i=n(96),r=n(8),o=n(14),s=n(393),a=n(7),c=n(47),u=n(21),l=n(17),h=n(62),f=n(65),d=n(69),g=n(16),p=n(394),v=n(30),y=n(403),b=n(395),x=n(34)("replace"),m=Math.max,_=Math.min,T=o([].concat),w=o([].push),A=o("".indexOf),S=o("".slice),E="$0"==="a".replace(/./,"$0"),k=!!/./[x]&&""===/./[x]("a","$0");s("replace",(function(t,e,n){var o=k?"$":"$0";return[function(t,n){var i=g(this),o=l(t)?void 0:v(t,x);return o?r(o,t,i,n):r(e,d(i),t,n)},function(t,r){var s=c(this),a=d(t);if("string"==typeof r&&-1===A(r,o)&&-1===A(r,"$<")){var l=n(e,s,a,r);if(l.done)return l.value}var g=u(r);g||(r=d(r));var v,x=s.global;x&&(v=s.unicode,s.lastIndex=0);for(var E,k=[];null!==(E=b(s,a))&&(w(k,E),x);){""===d(E[0])&&(s.lastIndex=p(a,f(s.lastIndex),v))}for(var O,M="",R=0,C=0;C<k.length;C++){for(var I,P=d((E=k[C])[0]),L=m(_(h(E.index),a.length),0),D=[],N=1;N<E.length;N++)w(D,void 0===(O=E[N])?O:String(O));var z=E.groups;if(g){var F=T([P],D,L,a);void 0!==z&&w(F,z),I=d(i(r,void 0,F))}else I=y(P,a,L,D,z,r);L>=R&&(M+=S(a,R,L)+I,R=L+P.length)}return M+S(a,R)}]}),!!a((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){"use strict";var i=n(14),r=n(40),o=Math.floor,s=i("".charAt),a=i("".replace),c=i("".slice),u=/\$([$&'`]|\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=u),a(f,p,(function(r,a){var u;switch(s(a,0)){case"$":return"$";case"&":return t;case"`":return c(e,0,n);case"'":return c(e,d);case"<":u=h[c(a,1,-1)];break;default:var l=+a;if(0===l)return r;if(l>g){var f=o(l/10);return 0===f?r:f<=g?void 0===i[f-1]?s(a,1):i[f-1]+s(a,1):r}u=i[l-1]}return void 0===u?"":u}))}},function(t,e,n){"use strict";var i=n(3),r=n(8),o=n(14),s=n(16),a=n(21),c=n(17),u=n(367),l=n(69),h=n(30),f=n(368),d=n(403),g=n(34),p=n(36),v=g("replace"),y=TypeError,b=o("".indexOf),x=o("".replace),m=o("".slice),_=Math.max,T=function(t,e,n){return n>t.length?-1:""===e?n:b(t,e,n)};i({target:"String",proto:!0},{replaceAll:function(t,e){var n,i,o,g,w,A,S,E,k,O=s(this),M=0,R=0,C="";if(!c(t)){if((n=u(t))&&(i=l(s(f(t))),!~b(i,"g")))throw y("`.replaceAll` does not allow non-global regexes");if(o=h(t,v))return r(o,t,O,e);if(p&&n)return x(l(O),t,e)}for(g=l(O),w=l(t),(A=a(e))||(e=l(e)),S=w.length,E=_(1,S),M=T(g,w,0);-1!==M;)k=A?l(e(w,M,g)):d(w,g,M,[],void 0,e),C+=m(g,R,M)+k,R=M+S,M=T(g,w,M+E);return R<g.length&&(C+=m(g,R)),C}})},function(t,e,n){"use strict";var i=n(8),r=n(393),o=n(47),s=n(17),a=n(16),c=n(309),u=n(69),l=n(30),h=n(395);r("search",(function(t,e,n){return[function(e){var n=a(this),r=s(e)?void 0:l(e,t);return r?i(r,e,n):new RegExp(e)[t](u(n))},function(t){var i=o(this),r=u(t),s=n(e,i,r);if(s.done)return s.value;var a=i.lastIndex;c(a,0)||(i.lastIndex=0);var l=h(i,r);return c(i.lastIndex,a)||(i.lastIndex=a),null===l?-1:l.index}]}))},function(t,e,n){"use strict";var i=n(96),r=n(8),o=n(14),s=n(393),a=n(47),c=n(17),u=n(367),l=n(16),h=n(218),f=n(394),d=n(65),g=n(69),p=n(30),v=n(77),y=n(395),b=n(375),x=n(370),m=n(7),_=x.UNSUPPORTED_Y,T=4294967295,w=Math.min,A=[].push,S=o(/./.exec),E=o(A),k=o("".slice),O=!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]}));s("split",(function(t,e,n){var o;return o="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 o=g(l(this)),s=void 0===n?T:n>>>0;if(0===s)return[];if(void 0===t)return[o];if(!u(t))return r(e,o,t,s);for(var a,c,h,f=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,y=new RegExp(t.source,d+"g");(a=r(b,y,o))&&!((c=y.lastIndex)>p&&(E(f,k(o,p,a.index)),a.length>1&&a.index<o.length&&i(A,f,v(a,1)),h=a[0].length,p=c,f.length>=s));)y.lastIndex===a.index&&y.lastIndex++;return p===o.length?!h&&S(y,"")||E(f,""):E(f,k(o,p)),f.length>s?v(f,0,s):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),s=c(e)?void 0:p(e,t);return s?r(s,e,i,n):r(o,g(i),e,n)},function(t,i){var r=a(this),s=g(t),c=n(o,r,s,i,o!==e);if(c.done)return c.value;var u=h(r,RegExp),l=r.unicode,p=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(_?"g":"y"),v=new u(_?"^(?:"+r.source+")":r,p),b=void 0===i?T:i>>>0;if(0===b)return[];if(0===s.length)return null===y(v,s)?[s]:[];for(var x=0,m=0,A=[];m<s.length;){v.lastIndex=_?0:m;var S,O=y(v,_?k(s,m):s);if(null===O||(S=w(d(v.lastIndex+(_?m:0)),s.length))===x)m=f(s,m,l);else{if(E(A,k(s,x,m)),A.length===b)return A;for(var M=1;M<=O.length-1;M++)if(E(A,O[M]),A.length===b)return A;m=x=S}}return E(A,k(s,x)),A}]}),!O,_)},function(t,e,n){"use strict";var i,r=n(3),o=n(87),s=n(5).f,a=n(65),c=n(69),u=n(386),l=n(16),h=n(387),f=n(36),d=o("".startsWith),g=o("".slice),p=Math.min,v=h("startsWith");r({target:"String",proto:!0,forced:!!(f||v||(i=s(String.prototype,"startsWith"),!i||i.writable))&&!v},{startsWith:function(t){var e=c(l(this));u(t);var n=a(p(arguments.length>1?arguments[1]:void 0,e.length)),i=c(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),o=n(16),s=n(62),a=n(69),c=r("".slice),u=Math.max,l=Math.min;i({target:"String",proto:!0,forced:!"".substr||"b"!=="ab".substr(-1)},{substr:function(t,e){var n,i,r=a(o(this)),h=r.length,f=s(t);return f===1/0&&(f=0),f<0&&(f=u(h+f,0)),(n=void 0===e?h:s(e))<=0||n===1/0||f>=(i=l(f+n,h))?"":c(r,f,i)}})},function(t,e,n){"use strict";var i=n(3),r=n(8),o=n(14),s=n(16),a=n(69),c=n(7),u=Array,l=o("".charAt),h=o("".charCodeAt),f=o([].join),d="".toWellFormed,g=d&&c((function(){return"1"!==r(d,1)}));i({target:"String",proto:!0,forced:g},{toWellFormed:function(){var t=a(s(this));if(g)return r(d,t);for(var e=t.length,n=u(e),i=0;i<e;i++){var o=h(t,i);55296!=(63488&o)?n[i]=l(t,i):o>=56320||i+1>=e||56320!=(64512&h(t,i+1))?n[i]="�":(n[i]=l(t,i),n[++i]=l(t,i))}return f(n,"")}})},function(t,e,n){"use strict";var i=n(3),r=n(273).trim;i({target:"String",proto:!0,forced:n(411)("trim")},{trim:function(){return r(this)}})},function(t,e,n){"use strict";var i=n(50).PROPER,r=n(7),o=n(274);t.exports=function(t){return r((function(){return!!o[t]()||"
"!=="
"[t]()||i&&o[t].name!==t}))}},function(t,e,n){"use strict";n(413);var i=n(3),r=n(414);i({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==r},{trimEnd:r})},function(t,e,n){"use strict";var i=n(3),r=n(414);i({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==r},{trimRight:r})},function(t,e,n){"use strict";var i=n(273).end,r=n(411);t.exports=r("trimEnd")?function(){return i(this)}:"".trimEnd},function(t,e,n){"use strict";n(416);var i=n(3),r=n(417);i({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==r},{trimStart:r})},function(t,e,n){"use strict";var i=n(3),r=n(417);i({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==r},{trimLeft:r})},function(t,e,n){"use strict";var i=n(273).start,r=n(411);t.exports=r("trimStart")?function(){return i(this)}:"".trimStart},function(t,e,n){"use strict";var i=n(3),r=n(419);i({target:"String",proto:!0,forced:n(420)("anchor")},{anchor:function(t){return r(this,"a","name",t)}})},function(t,e,n){"use strict";var i=n(14),r=n(16),o=n(69),s=/"/g,a=i("".replace);t.exports=function(t,e,n,i){var c=o(r(t)),u="<"+e;return""!==n&&(u+=" "+n+'="'+a(o(i),s,""")+'"'),u+">"+c+"</"+e+">"}},function(t,e,n){"use strict";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(419);i({target:"String",proto:!0,forced:n(420)("big")},{big:function(){return r(this,"big","","")}})},function(t,e,n){"use strict";var i=n(3),r=n(419);i({target:"String",proto:!0,forced:n(420)("blink")},{blink:function(){return r(this,"blink","","")}})},function(t,e,n){"use strict";var i=n(3),r=n(419);i({target:"String",proto:!0,forced:n(420)("bold")},{bold:function(){return r(this,"b","","")}})},function(t,e,n){"use strict";var i=n(3),r=n(419);i({target:"String",proto:!0,forced:n(420)("fixed")},{fixed:function(){return r(this,"tt","","")}})},function(t,e,n){"use strict";var i=n(3),r=n(419);i({target:"String",proto:!0,forced:n(420)("fontcolor")},{fontcolor:function(t){return r(this,"font","color",t)}})},function(t,e,n){"use strict";var i=n(3),r=n(419);i({target:"String",proto:!0,forced:n(420)("fontsize")},{fontsize:function(t){return r(this,"font","size",t)}})},function(t,e,n){"use strict";var i=n(3),r=n(419);i({target:"String",proto:!0,forced:n(420)("italics")},{italics:function(){return r(this,"i","","")}})},function(t,e,n){"use strict";var i=n(3),r=n(419);i({target:"String",proto:!0,forced:n(420)("link")},{link:function(t){return r(this,"a","href",t)}})},function(t,e,n){"use strict";var i=n(3),r=n(419);i({target:"String",proto:!0,forced:n(420)("small")},{small:function(){return r(this,"small","","")}})},function(t,e,n){"use strict";var i=n(3),r=n(419);i({target:"String",proto:!0,forced:n(420)("strike")},{strike:function(){return r(this,"strike","","")}})},function(t,e,n){"use strict";var i=n(3),r=n(419);i({target:"String",proto:!0,forced:n(420)("sub")},{sub:function(){return r(this,"sub","","")}})},function(t,e,n){"use strict";var i=n(3),r=n(419);i({target:"String",proto:!0,forced:n(420)("sup")},{sup:function(){return r(this,"sup","","")}})},function(t,e,n){"use strict";n(434)("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),o=n(8),s=n(6),a=n(435),c=n(216),u=n(208),l=n(211),h=n(11),f=n(44),d=n(279),g=n(65),p=n(212),v=n(436),y=n(438),b=n(18),x=n(39),m=n(70),_=n(20),T=n(23),w=n(72),A=n(25),S=n(116),E=n(58).f,k=n(439),O=n(85).forEach,M=n(194),R=n(79),C=n(45),I=n(5),P=n(52),L=n(120),D=P.get,N=P.set,z=P.enforce,F=C.f,j=I.f,B=r.RangeError,X=u.ArrayBuffer,$=X.prototype,U=u.DataView,Y=c.NATIVE_ARRAY_BUFFER_VIEWS,V=c.TYPED_ARRAY_TAG,G=c.TypedArray,H=c.TypedArrayPrototype,W=c.aTypedArrayConstructor,q=c.isTypedArray,Z="BYTES_PER_ELEMENT",K="Wrong length",J=function(t,e){W(t);for(var n=0,i=e.length,r=new t(i);i>n;)r[n]=e[n++];return r},Q=function(t,e){R(t,e,{configurable:!0,get:function(){return D(this)[e]}})},tt=function(t){var e;return A($,t)||"ArrayBuffer"===(e=m(t))||"SharedArrayBuffer"===e},et=function(t,e){return q(t)&&!T(e)&&e in t&&d(+e)&&e>=0},nt=function(t,e){return e=b(e),et(t,e)?h(2,t[e]):j(t,e)},it=function(t,e,n){return e=b(e),!(et(t,e)&&_(n)&&x(n,"value"))||x(n,"get")||x(n,"set")||n.configurable||x(n,"writable")&&!n.writable||x(n,"enumerable")&&!n.enumerable?F(t,e,n):(t[e]=n.value,t)};s?(Y||(I.f=nt,C.f=it,Q(H,"buffer"),Q(H,"byteOffset"),Q(H,"byteLength"),Q(H,"length")),i({target:"Object",stat:!0,forced:!Y},{getOwnPropertyDescriptor:nt,defineProperty:it}),t.exports=function(t,e,n){var s=t.match(/\d+/)[0]/8,c=t+(n?"Clamped":"")+"Array",u="get"+t,h="set"+t,d=r[c],b=d,x=b&&b.prototype,m={},T=function(t,e){F(t,e,{get:function(){return function(t,e){var n=D(t);return n.view[u](e*s+n.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,i){var r=D(t);r.view[h](e*s+r.byteOffset,n?y(i):i,!0)}(this,e,t)},enumerable:!0})};Y?a&&(b=e((function(t,e,n,i){return l(t,x),L(_(e)?tt(e)?void 0!==i?new d(e,v(n,s),i):void 0!==n?new d(e,v(n,s)):new d(e):q(e)?J(b,e):o(k,b,e):new d(p(e)),t,b)})),S&&S(b,G),O(E(d),(function(t){t in b||f(b,t,d[t])})),b.prototype=x):(b=e((function(t,e,n,i){l(t,x);var r,a,c,u=0,h=0;if(_(e)){if(!tt(e))return q(e)?J(b,e):o(k,b,e);r=e,h=v(n,s);var f=e.byteLength;if(void 0===i){if(f%s)throw B(K);if((a=f-h)<0)throw B(K)}else if((a=g(i)*s)+h>f)throw B(K);c=a/s}else c=p(e),r=new X(a=c*s);for(N(t,{buffer:r,byteOffset:h,byteLength:a,length:c,view:new U(r)});u<c;)T(t,u++)})),S&&S(b,G),x=b.prototype=w(H)),x.constructor!==b&&f(x,"constructor",b),z(x).TypedArrayConstructor=b,V&&f(x,V,c);var A=b!==d;m[c]=b,i({global:!0,constructor:!0,forced:A,sham:!Y},m),Z in b||f(b,Z,s),Z in x||f(x,Z,s),M(c)}):t.exports=function(){}},function(t,e,n){"use strict";var i=n(4),r=n(7),o=n(165),s=n(216).NATIVE_ARRAY_BUFFER_VIEWS,a=i.ArrayBuffer,c=i.Int8Array;t.exports=!s||!r((function(){c(1)}))||!r((function(){new c(-1)}))||!o((function(t){new c,new c(null),new c(1.5),new c(t)}),!0)||r((function(){return 1!==new c(new a(2),1,void 0).length}))},function(t,e,n){"use strict";var i=n(437),r=RangeError;t.exports=function(t,e){var n=i(t);if(n%e)throw r("Wrong offset");return n}},function(t,e,n){"use strict";var i=n(62),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){"use strict";var e=Math.round;t.exports=function(t){var n=e(t);return n<0?0:n>255?255:255&n}},function(t,e,n){"use strict";var i=n(86),r=n(8),o=n(219),s=n(40),a=n(64),c=n(135),u=n(136),l=n(133),h=n(440),f=n(216).aTypedArrayConstructor,d=n(441);t.exports=function(t){var e,n,g,p,v,y,b,x,m=o(this),_=s(t),T=arguments.length,w=T>1?arguments[1]:void 0,A=void 0!==w,S=u(_);if(S&&!l(S))for(x=(b=c(_,S)).next,_=[];!(y=r(x,b)).done;)_.push(y.value);for(A&&T>2&&(w=i(w,arguments[2])),n=a(_),g=new(f(m))(n),p=h(g),e=0;n>e;e++)v=A?w(_[e],e):_[e],g[e]=p?d(v):+v;return g}},function(t,e,n){"use strict";var i=n(70);t.exports=function(t){var e=i(t);return"BigInt64Array"===e||"BigUint64Array"===e}},function(t,e,n){"use strict";var i=n(19),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){"use strict";n(434)("Float64",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){"use strict";n(434)("Int8",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){"use strict";n(434)("Int16",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){"use strict";n(434)("Int32",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){"use strict";n(434)("Uint8",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){"use strict";n(434)("Uint8",(function(t){return function(e,n,i){return t(this,e,n,i)}}),!0)},function(t,e,n){"use strict";n(434)("Uint16",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){"use strict";n(434)("Uint32",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){"use strict";var i=n(216),r=n(64),o=n(62),s=i.aTypedArray;(0,i.exportTypedArrayMethod)("at",(function(t){var e=s(this),n=r(e),i=o(t),a=i>=0?i:n+i;return a<0||a>=n?void 0:e[a]}))},function(t,e,n){"use strict";var i=n(14),r=n(216),o=i(n(145)),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("copyWithin",(function(t,e){return o(s(this),t,e,arguments.length>2?arguments[2]:void 0)}))},function(t,e,n){"use strict";var i=n(216),r=n(85).every,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("every",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var i=n(216),r=n(150),o=n(441),s=n(70),a=n(8),c=n(14),u=n(7),l=i.aTypedArray,h=i.exportTypedArrayMethod,f=c("".slice);h("fill",(function(t){var e=arguments.length;l(this);var n="Big"===f(s(this),0,3)?o(t):+t;return a(r,this,n,e>1?arguments[1]:void 0,e>2?arguments[2]:void 0)}),u((function(){var t=0;return new Int8Array(2).fill({valueOf:function(){return t++}}),1!==t})))},function(t,e,n){"use strict";var i=n(216),r=n(85).filter,o=n(455),s=i.aTypedArray;(0,i.exportTypedArrayMethod)("filter",(function(t){var e=r(s(this),t,arguments.length>1?arguments[1]:void 0);return o(this,e)}))},function(t,e,n){"use strict";var i=n(199),r=n(456);t.exports=function(t,e){return i(r(t),e)}},function(t,e,n){"use strict";var i=n(216),r=n(218),o=i.aTypedArrayConstructor,s=i.getTypedArrayConstructor;t.exports=function(t){return o(r(t,s(t)))}},function(t,e,n){"use strict";var i=n(216),r=n(85).find,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("find",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var i=n(216),r=n(85).findIndex,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("findIndex",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var i=n(216),r=n(155).findLast,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("findLast",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var i=n(216),r=n(155).findLastIndex,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("findLastIndex",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var i=n(216),r=n(85).forEach,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("forEach",(function(t){r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var i=n(435);(0,n(216).exportTypedArrayStaticMethod)("from",n(439),i)},function(t,e,n){"use strict";var i=n(216),r=n(60).includes,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("includes",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var i=n(216),r=n(60).indexOf,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("indexOf",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var i=n(4),r=n(7),o=n(14),s=n(216),a=n(169),c=n(34)("iterator"),u=i.Uint8Array,l=o(a.values),h=o(a.keys),f=o(a.entries),d=s.aTypedArray,g=s.exportTypedArrayMethod,p=u&&u.prototype,v=!r((function(){p[c].call([1])})),y=!!p&&p.values&&p[c]===p.values&&"values"===p.values.name,b=function(){return l(d(this))};g("entries",(function(){return f(d(this))}),v),g("keys",(function(){return h(d(this))}),v),g("values",b,v||!y,{name:"values"}),g(c,b,v||!y,{name:"values"})},function(t,e,n){"use strict";var i=n(216),r=n(14),o=i.aTypedArray,s=i.exportTypedArrayMethod,a=r([].join);s("join",(function(t){return a(o(this),t)}))},function(t,e,n){"use strict";var i=n(216),r=n(96),o=n(176),s=i.aTypedArray;(0,i.exportTypedArrayMethod)("lastIndexOf",(function(t){var e=arguments.length;return r(o,s(this),e>1?[t,arguments[1]]:[t])}))},function(t,e,n){"use strict";var i=n(216),r=n(85).map,o=n(456),s=i.aTypedArray;(0,i.exportTypedArrayMethod)("map",(function(t){return r(s(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(o(t))(e)}))}))},function(t,e,n){"use strict";var i=n(216),r=n(435),o=i.aTypedArrayConstructor;(0,i.exportTypedArrayStaticMethod)("of",(function(){for(var t=0,e=arguments.length,n=new(o(this))(e);e>t;)n[t]=arguments[t++];return n}),r)},function(t,e,n){"use strict";var i=n(216),r=n(182).left,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("reduce",(function(t){var e=arguments.length;return r(o(this),t,e,e>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var i=n(216),r=n(182).right,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("reduceRight",(function(t){var e=arguments.length;return r(o(this),t,e,e>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var i=n(216),r=i.aTypedArray,o=i.exportTypedArrayMethod,s=Math.floor;o("reverse",(function(){for(var t,e=this,n=r(e).length,i=s(n/2),o=0;o<i;)t=e[o],e[o++]=e[--n],e[n]=t;return e}))},function(t,e,n){"use strict";var i=n(4),r=n(8),o=n(216),s=n(64),a=n(436),c=n(40),u=n(7),l=i.RangeError,h=i.Int8Array,f=h&&h.prototype,d=f&&f.set,g=o.aTypedArray,p=o.exportTypedArrayMethod,v=!u((function(){var t=new Uint8ClampedArray(2);return r(d,t,{length:1,0:3},1),3!==t[1]})),y=v&&o.NATIVE_ARRAY_BUFFER_VIEWS&&u((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=a(arguments.length>1?arguments[1]:void 0,1),n=c(t);if(v)return r(d,this,n,e);var i=this.length,o=s(n),u=0;if(o+e>i)throw l("Wrong length");for(;u<o;)this[e+u]=n[u++]}),!v||y)},function(t,e,n){"use strict";var i=n(216),r=n(456),o=n(7),s=n(97),a=i.aTypedArray;(0,i.exportTypedArrayMethod)("slice",(function(t,e){for(var n=s(a(this),t,e),i=r(this),o=0,c=n.length,u=new i(c);c>o;)u[o]=n[o++];return u}),o((function(){new Int8Array(1).slice()})))},function(t,e,n){"use strict";var i=n(216),r=n(85).some,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("some",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var i=n(4),r=n(87),o=n(7),s=n(31),a=n(189),c=n(216),u=n(190),l=n(191),h=n(28),f=n(192),d=c.aTypedArray,g=c.exportTypedArrayMethod,p=i.Uint16Array,v=p&&r(p.prototype.sort),y=!(!v||o((function(){v(new p(2),null)}))&&o((function(){v(new p(2),{})}))),b=!!v&&!o((function(){if(h)return h<74;if(u)return u<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&&s(t),b?v(this,t):a(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))}),!b||y)},function(t,e,n){"use strict";var i=n(216),r=n(65),o=n(61),s=n(456),a=i.aTypedArray;(0,i.exportTypedArrayMethod)("subarray",(function(t,e){var n=a(this),i=n.length,c=o(t,i);return new(s(n))(n.buffer,n.byteOffset+c*n.BYTES_PER_ELEMENT,r((void 0===e?i:o(e,i))-c))}))},function(t,e,n){"use strict";var i=n(4),r=n(96),o=n(216),s=n(7),a=n(97),c=i.Int8Array,u=o.aTypedArray,l=o.exportTypedArrayMethod,h=[].toLocaleString,f=!!c&&s((function(){h.call(new c(1))}));l("toLocaleString",(function(){return r(h,f?a(u(this)):u(this),a(arguments))}),s((function(){return[1,2].toLocaleString()!==new c([1,2]).toLocaleString()}))||!s((function(){c.prototype.toLocaleString.call([1,2])})))},function(t,e,n){"use strict";var i=n(197),r=n(216),o=r.aTypedArray,s=r.exportTypedArrayMethod,a=r.getTypedArrayConstructor;s("toReversed",(function(){return i(o(this),a(this))}))},function(t,e,n){"use strict";var i=n(216),r=n(14),o=n(31),s=n(199),a=i.aTypedArray,c=i.getTypedArrayConstructor,u=i.exportTypedArrayMethod,l=r(i.TypedArrayPrototype.sort);u("toSorted",(function(t){void 0!==t&&o(t);var e=a(this),n=s(c(e),e);return l(n,t)}))},function(t,e,n){"use strict";var i=n(216).exportTypedArrayMethod,r=n(7),o=n(4),s=n(14),a=o.Uint8Array,c=a&&a.prototype||{},u=[].toString,l=s([].join);r((function(){u.call({})}))&&(u=function(){return l(this)});var h=c.toString!==u;i("toString",u,h)},function(t,e,n){"use strict";var i=n(206),r=n(216),o=n(440),s=n(62),a=n(441),c=r.aTypedArray,u=r.getTypedArrayConstructor,l=r.exportTypedArrayMethod,h=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}();l("with",{with:function(t,e){var n=c(this),r=s(t),l=o(n)?a(e):+e;return i(n,u(n),r,l)}}.with,!h)},function(t,e,n){"use strict";var i=n(3),r=n(14),o=n(69),s=String.fromCharCode,a=r("".charAt),c=r(/./.exec),u=r("".slice),l=/^[\da-f]{2}$/i,h=/^[\da-f]{4}$/i;i({global:!0},{unescape:function(t){for(var e,n,i=o(t),r="",f=i.length,d=0;d<f;){if("%"===(e=a(i,d++)))if("u"===a(i,d)){if(n=u(i,d+1,d+5),c(h,n)){r+=s(parseInt(n,16)),d+=5;continue}}else if(n=u(i,d,d+2),c(l,n)){r+=s(parseInt(n,16)),d+=2;continue}r+=e}return r}})},function(t,e,n){"use strict";n(485)},function(t,e,n){"use strict";var i,r=n(247),o=n(4),s=n(14),a=n(210),c=n(244),u=n(243),l=n(486),h=n(20),f=n(52).enforce,d=n(7),g=n(53),p=Object,v=Array.isArray,y=p.isExtensible,b=p.isFrozen,x=p.isSealed,m=p.freeze,_=p.seal,T={},w={},A=!o.ActiveXObject&&"ActiveXObject"in o,S=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},E=u("WeakMap",S,l),k=E.prototype,O=s(k.set);if(g)if(A){i=l.getConstructor(S,"WeakMap",!0),c.enable();var M=s(k.delete),R=s(k.has),C=s(k.get);a(k,{delete:function(t){if(h(t)&&!y(t)){var e=f(this);return e.frozen||(e.frozen=new i),M(this,t)||e.frozen.delete(t)}return M(this,t)},has:function(t){if(h(t)&&!y(t)){var e=f(this);return e.frozen||(e.frozen=new i),R(this,t)||e.frozen.has(t)}return R(this,t)},get:function(t){if(h(t)&&!y(t)){var e=f(this);return e.frozen||(e.frozen=new i),R(this,t)?C(this,t):e.frozen.get(t)}return C(this,t)},set:function(t,e){if(h(t)&&!y(t)){var n=f(this);n.frozen||(n.frozen=new i),R(this,t)?O(this,t,e):n.frozen.set(t,e)}else O(this,t,e);return this}})}else r&&d((function(){var t=m([]);return O(new E,t,1),!b(t)}))&&a(k,{set:function(t,e){var n;return v(t)&&(b(t)?n=T:x(t)&&(n=w)),O(this,t,e),n===T&&m(t),n===w&&_(t),this}})},function(t,e,n){"use strict";var i=n(14),r=n(210),o=n(244).getWeakData,s=n(211),a=n(47),c=n(17),u=n(20),l=n(132),h=n(85),f=n(39),d=n(52),g=d.set,p=d.getterFor,v=h.find,y=h.findIndex,b=i([].splice),x=0,m=function(t){return t.frozen||(t.frozen=new _)},_=function(){this.entries=[]},T=function(t,e){return v(t.entries,(function(t){return t[0]===e}))};_.prototype={get:function(t){var e=T(this,t);if(e)return e[1]},has:function(t){return!!T(this,t)},set:function(t,e){var n=T(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&&b(this.entries,e,1),!!~e}},t.exports={getConstructor:function(t,e,n,i){var h=t((function(t,r){s(t,d),g(t,{type:e,id:x++,frozen:void 0}),c(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=o(a(e),!0);return!0===r?m(i).set(e,n):r[i.id]=n,t};return r(d,{delete:function(t){var e=v(this);if(!u(t))return!1;var n=o(t);return!0===n?m(e).delete(t):n&&f(n,e.id)&&delete n[e.id]},has:function(t){var e=v(this);if(!u(t))return!1;var n=o(t);return!0===n?m(e).has(t):n&&f(n,e.id)}}),r(d,n?{get:function(t){var e=v(this);if(u(t)){var n=o(t);return!0===n?m(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){"use strict";n(488)},function(t,e,n){"use strict";n(243)("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(486))},function(t,e,n){"use strict";var i=n(3),r=n(4),o=n(24),s=n(14),a=n(8),c=n(7),u=n(69),l=n(39),h=n(328),f=n(490).ctoi,d=/[^\d+/a-z]/i,g=/[\t\n\f\r ]+/g,p=/[=]{1,2}$/,v=o("atob"),y=String.fromCharCode,b=s("".charAt),x=s("".replace),m=s(d.exec),_=c((function(){return""!==v(" ")})),T=!c((function(){v("a")})),w=!_&&!T&&!c((function(){v()})),A=!_&&!T&&1!==v.length;i({global:!0,bind:!0,enumerable:!0,forced:_||T||w||A},{atob:function(t){if(h(arguments.length,1),w||A)return a(v,r,t);var e,n,i=x(u(t),g,""),s="",c=0,_=0;if(i.length%4==0&&(i=x(i,p,"")),i.length%4==1||m(d,i))throw new(o("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;e=b(i,c++);)l(f,e)&&(n=_%4?64*n+f[e]:f[e],_++%4&&(s+=y(255&n>>(-2*_&6))));return s}})},function(t){"use strict";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){"use strict";var i=n(3),r=n(4),o=n(24),s=n(14),a=n(8),c=n(7),u=n(69),l=n(328),h=n(490).itoc,f=o("btoa"),d=s("".charAt),g=s("".charCodeAt),p=!!f&&!c((function(){f()})),v=!!f&&c((function(){return"bnVsbA=="!==f(null)})),y=!!f&&1!==f.length;i({global:!0,bind:!0,enumerable:!0,forced:p||v||y},{btoa:function(t){if(l(arguments.length,1),p||v||y)return a(f,r,u(t));for(var e,n,i=u(t),s="",c=0,b=h;d(i,c)||(b="=",c%1);){if((n=g(i,c+=3/4))>255)throw new(o("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");s+=d(b,63&(e=e<<8|n)>>8-c%1*8)}return s}})},function(t,e,n){"use strict";var i=n(4),r=n(493),o=n(494),s=n(161),a=n(44),c=function(t){if(t&&t.forEach!==s)try{a(t,"forEach",s)}catch(e){t.forEach=s}};for(var u in r)r[u]&&c(i[u]&&i[u].prototype);c(o)},function(t){"use strict";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){"use strict";var i=n(43)("span").classList,r=i&&i.constructor&&i.constructor.prototype;t.exports=r===Object.prototype?void 0:r},function(t,e,n){"use strict";var i=n(4),r=n(493),o=n(494),s=n(169),a=n(44),c=n(34),u=c("iterator"),l=c("toStringTag"),h=s.values,f=function(t,e){if(t){if(t[u]!==h)try{a(t,u,h)}catch(e){t[u]=h}if(t[l]||a(t,l,e),r[e])for(var n in s)if(t[n]!==s[n])try{a(t,n,s[n])}catch(e){t[n]=s[n]}}};for(var d in r)f(i[d]&&i[d].prototype,d);f(o,"DOMTokenList")},function(t,e,n){"use strict";var i=n(3),r=n(497),o=n(24),s=n(7),a=n(72),c=n(11),u=n(45).f,l=n(48),h=n(79),f=n(39),d=n(211),g=n(47),p=n(127),v=n(121),y=n(498),b=n(124),x=n(52),m=n(6),_=n(36),T="DOMException",w="DATA_CLONE_ERR",A=o("Error"),S=o(T)||function(){try{(new(o("MessageChannel")||r("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(t){if(t.name===w&&25===t.code)return t.constructor}}(),E=S&&S.prototype,k=A.prototype,O=x.set,M=x.getterFor(T),R="stack"in A(T),C=function(t){return f(y,t)&&y[t].m?y[t].c:0},I=function(){d(this,P);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(O(this,{type:T,name:n,message:e,code:i}),m||(this.name=n,this.message=e,this.code=i),R){var r=A(e);r.name=T,u(this,"stack",c(1,b(r.stack,1)))}},P=I.prototype=a(k),L=function(t){return{enumerable:!0,configurable:!0,get:t}},D=function(t){return L((function(){return M(this)[t]}))};m&&(h(P,"code",D("code")),h(P,"message",D("message")),h(P,"name",D("name"))),u(P,"constructor",c(1,I));var N=s((function(){return!(new S instanceof A)})),z=N||s((function(){return k.toString!==p||"2: 1"!==String(new S(1,2))})),F=N||s((function(){return 25!==new S(1,"DataCloneError").code})),j=N||25!==S[w]||25!==E[w],B=_?z||F||j:N;i({global:!0,constructor:!0,forced:B},{DOMException:B?I:S});var X=o(T),$=X.prototype;for(var U in z&&(_||S===X)&&l($,"toString",p),F&&m&&S===X&&h($,"code",L((function(){return C(g(this).name)}))),y)if(f(y,U)){var Y=y[U],V=Y.s,G=c(6,Y.c);f(X,V)||u(X,V,G),f($,V)||u($,V,G)}},function(t,e,n){"use strict";var i=n(183);t.exports=function(t){try{if(i)return Function('return require("'+t+'")')()}catch(t){}}},function(t){"use strict";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),o=n(24),s=n(11),a=n(45).f,c=n(39),u=n(211),l=n(120),h=n(121),f=n(498),d=n(124),g=n(6),p=n(36),v="DOMException",y=o("Error"),b=o(v),x=function(){u(this,m);var t=arguments.length,e=h(t<1?void 0:arguments[0]),n=h(t<2?void 0:arguments[1],"Error"),i=new b(e,n),r=y(e);return r.name=v,a(i,"stack",s(1,d(r.stack,1))),l(i,this,x),i},m=x.prototype=b.prototype,_="stack"in y(v),T="stack"in new b(1,2),w=b&&g&&Object.getOwnPropertyDescriptor(r,v),A=!(!w||w.writable&&w.configurable),S=_&&!A&&!T;i({global:!0,constructor:!0,forced:p||S},{DOMException:S?x:b});var E=o(v),k=E.prototype;if(k.constructor!==E)for(var O in p||a(k,"constructor",s(1,E)),f)if(c(f,O)){var M=f[O],R=M.s;c(E,R)||a(E,R,s(6,M.c))}},function(t,e,n){"use strict";var i=n(24),r="DOMException";n(84)(i(r),r)},function(t,e,n){"use strict";n(502),n(503)},function(t,e,n){"use strict";var i=n(3),r=n(4),o=n(327).clear;i({global:!0,bind:!0,enumerable:!0,forced:r.clearImmediate!==o},{clearImmediate:o})},function(t,e,n){"use strict";var i=n(3),r=n(4),o=n(327).set,s=n(504),a=r.setImmediate?s(o,!1):o;i({global:!0,bind:!0,enumerable:!0,forced:r.setImmediate!==a},{setImmediate:a})},function(t,e,n){"use strict";var i,r=n(4),o=n(96),s=n(21),a=n(505),c=n(29),u=n(97),l=n(328),h=r.Function,f=/MSIE .\./.test(c)||a&&((i=r.Bun.version.split(".")).length<3||"0"===i[0]&&(i[1]<3||"3"===i[1]&&"0"===i[2]));t.exports=function(t,e){var n=e?2:1;return f?function(i,r){var a=l(arguments.length,1)>n,c=s(i)?i:h(i),f=a?u(arguments,n):[],d=a?function(){o(c,this,f)}:c;return e?t(d,r):t(d)}:t}},function(t){"use strict";t.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},function(t,e,n){"use strict";var i=n(3),r=n(4),o=n(330),s=n(31),a=n(328),c=n(183),u=r.process;i({global:!0,enumerable:!0,dontCallGetSet:!0},{queueMicrotask:function(t){a(arguments.length,1),s(t);var e=c&&u.domain;o(e?e.bind(t):t)}})},function(t,e,n){"use strict";var i=n(3),r=n(4),o=n(79),s=n(6),a=TypeError,c=Object.defineProperty,u=r.self!==r;try{if(s){var l=Object.getOwnPropertyDescriptor(r,"self");!u&&l&&l.get&&l.enumerable||o(r,"self",{get:function(){return r},set:function(t){if(this!==r)throw a("Illegal invocation");c(r,"self",{value:t,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else i({global:!0,simple:!0,forced:u},{self:r})}catch(t){}},function(t,e,n){"use strict";var i,r=n(36),o=n(3),s=n(4),a=n(24),c=n(14),u=n(7),l=n(41),h=n(21),f=n(91),d=n(17),g=n(20),p=n(23),v=n(132),y=n(47),b=n(70),x=n(39),m=n(78),_=n(44),T=n(64),w=n(328),A=n(368),S=n(509),E=n(510),k=n(125),O=n(511),M=s.Object,R=s.Array,C=s.Date,I=s.Error,P=s.EvalError,L=s.RangeError,D=s.ReferenceError,N=s.SyntaxError,z=s.TypeError,F=s.URIError,j=s.PerformanceMark,B=s.WebAssembly,X=B&&B.CompileError||I,$=B&&B.LinkError||I,U=B&&B.RuntimeError||I,Y=a("DOMException"),V=S.Map,G=S.has,H=S.get,W=S.set,q=E.Set,Z=E.add,K=a("Object","keys"),J=c([].push),Q=c((!0).valueOf),tt=c(1..valueOf),et=c("".valueOf),nt=c(C.prototype.getTime),it=l("structuredClone"),rt="DataCloneError",ot="Transferring",st=function(t){return!u((function(){var e=new s.Set([7]),n=t(e),i=t(M(7));return n===e||!n.has(7)||"object"!=typeof i||7!==i}))&&t},at=function(t,e){return!u((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=s.structuredClone,ut=r||!at(ct,I)||!at(ct,Y)||(i=ct,!!u((function(){var t=i(new s.AggregateError([1],it,{cause:3}));return"AggregateError"!==t.name||1!==t.errors[0]||t.message!==it||3!==t.cause}))),lt=!ct&&st((function(t){return new j(it,{detail:t}).detail})),ht=st(ct)||lt,ft=function(t){throw new Y("Uncloneable type: "+t,rt)},dt=function(t,e){throw new Y((e||"Cloning")+" of "+t+" cannot be properly polyfilled in this engine",rt)},gt=function(t,e){return ht||dt(e),ht(t)},pt=function(t,e,n){if(G(e,t))return H(e,t);var i,r,o,a,c,u;if("SharedArrayBuffer"===(n||b(t)))i=ht?ht(t):t;else{var l=s.DataView;l||"function"==typeof t.slice||dt("ArrayBuffer");try{if("function"!=typeof t.slice||t.resizable){r=t.byteLength,o="maxByteLength"in t?{maxByteLength:t.maxByteLength}:void 0,i=new ArrayBuffer(r,o),a=new l(t),c=new l(i);for(u=0;u<r;u++)c.setUint8(u,a.getUint8(u))}else i=t.slice(0)}catch(t){throw new Y("ArrayBuffer is detached",rt)}}return W(e,t,i),i},vt=function(t,e,n,i,r){var o=s[e];return g(o)||dt(e),new o(pt(t.buffer,r),n,i)},yt=function(t,e,n){this.object=t,this.type=e,this.metadata=n},bt=function(t,e,n){if(p(t)&&ft("Symbol"),!g(t))return t;if(e){if(G(e,t))return H(e,t)}else e=new V;var i,r,o,c,u,l,f,d,v=b(t);switch(v){case"Array":o=R(T(t));break;case"Object":o={};break;case"Map":o=new V;break;case"Set":o=new q;break;case"RegExp":o=new RegExp(t.source,A(t));break;case"Error":switch(r=t.name){case"AggregateError":o=a("AggregateError")([]);break;case"EvalError":o=P();break;case"RangeError":o=L();break;case"ReferenceError":o=D();break;case"SyntaxError":o=N();break;case"TypeError":o=z();break;case"URIError":o=F();break;case"CompileError":o=X();break;case"LinkError":o=$();break;case"RuntimeError":o=U();break;default:o=I()}break;case"DOMException":o=new Y(t.message,t.name);break;case"ArrayBuffer":case"SharedArrayBuffer":o=n?new yt(t,v):pt(t,e,v);break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float16Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":l="DataView"===v?t.byteLength:t.length,o=n?new yt(t,v,{offset:t.byteOffset,length:l}):vt(t,v,t.byteOffset,l,e);break;case"DOMQuad":try{o=new DOMQuad(bt(t.p1,e,n),bt(t.p2,e,n),bt(t.p3,e,n),bt(t.p4,e,n))}catch(e){o=gt(t,v)}break;case"File":if(ht)try{o=ht(t),b(o)!==v&&(o=void 0)}catch(t){}if(!o)try{o=new File([t],t.name,t)}catch(t){}o||dt(v);break;case"FileList":if(c=function(){var t;try{t=new s.DataTransfer}catch(e){try{t=new s.ClipboardEvent("").clipboardData}catch(t){}}return t&&t.items&&t.files?t:null}()){for(u=0,l=T(t);u<l;u++)c.items.add(bt(t[u],e,n));o=c.files}else o=gt(t,v);break;case"ImageData":try{o=new ImageData(bt(t.data,e,n),t.width,t.height,{colorSpace:t.colorSpace})}catch(e){o=gt(t,v)}break;default:if(ht)o=ht(t);else switch(v){case"BigInt":o=M(t.valueOf());break;case"Boolean":o=M(Q(t));break;case"Number":o=M(tt(t));break;case"String":o=M(et(t));break;case"Date":o=new C(nt(t));break;case"Blob":try{o=t.slice(0,t.size,t.type)}catch(t){dt(v)}break;case"DOMPoint":case"DOMPointReadOnly":i=s[v];try{o=i.fromPoint?i.fromPoint(t):new i(t.x,t.y,t.z,t.w)}catch(t){dt(v)}break;case"DOMRect":case"DOMRectReadOnly":i=s[v];try{o=i.fromRect?i.fromRect(t):new i(t.x,t.y,t.width,t.height)}catch(t){dt(v)}break;case"DOMMatrix":case"DOMMatrixReadOnly":i=s[v];try{o=i.fromMatrix?i.fromMatrix(t):new i(t)}catch(t){dt(v)}break;case"AudioData":case"VideoFrame":h(t.clone)||dt(v);try{o=t.clone()}catch(t){ft(v)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":dt(v);default:ft(v)}}switch(W(e,t,o),v){case"Array":case"Object":for(f=K(t),u=0,l=T(f);u<l;u++)d=f[u],m(o,d,bt(t[d],e,n));break;case"Map":t.forEach((function(t,i){W(o,bt(i,e,n),bt(t,e,n))}));break;case"Set":t.forEach((function(t){Z(o,bt(t,e,n))}));break;case"Error":_(o,"message",bt(t.message,e,n)),x(t,"cause")&&_(o,"cause",bt(t.cause,e,n)),"AggregateError"===r&&(o.errors=bt(t.errors,e,n));case"DOMException":k&&_(o,"stack",bt(t.stack,e,n))}return o},xt=function(t,e){if(!g(t))return t;if(G(e,t))return H(e,t);var n,i,r,o,s,a,c,u;if(t instanceof yt)switch(n=t.type,i=t.object,n){case"ArrayBuffer":case"SharedArrayBuffer":u=pt(i,e,n);break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float16Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":r=t.metadata,u=vt(i,n,r.offset,r.length,e)}else switch(b(t)){case"Array":case"Object":for(a=K(t),o=0,s=T(a);o<s;o++)t[c=a[o]]=xt(t[c],e);break;case"Map":u=new V,t.forEach((function(t,n){W(u,xt(n,e),xt(t,e))}));break;case"Set":u=new q,t.forEach((function(t){Z(u,xt(t,e))}));break;case"Error":t.message=xt(t.message,e),x(t,"cause")&&(t.cause=xt(t.cause,e)),"AggregateError"===t.name&&(t.errors=xt(t.errors,e));case"DOMException":k&&(t.stack=xt(t.stack,e))}return W(e,t,u||t),u||t};o({global:!0,enumerable:!0,sham:!O,forced:ut},{structuredClone:function(t){var e,n,i=w(arguments.length,1)>1&&!d(arguments[1])?y(arguments[1]):void 0,r=i?i.transfer:void 0,o=!1;void 0!==r&&(n=function(t,e){if(!g(t))throw z("Transfer option cannot be converted to a sequence");var n=[];v(t,(function(t){J(n,y(t))}));for(var i,r,o,a,c,u=0,l=T(n),d=[];u<l;)if(i=n[u++],"ArrayBuffer"!==(r=b(i))){if(G(e,i))throw new Y("Duplicate transferable",rt);if(O)a=ct(i,{transfer:[i]});else switch(r){case"ImageBitmap":o=s.OffscreenCanvas,f(o)||dt(r,ot);try{(c=new o(i.width,i.height)).getContext("bitmaprenderer").transferFromImageBitmap(i),a=c.transferToImageBitmap()}catch(t){}break;case"AudioData":case"VideoFrame":h(i.clone)&&h(i.close)||dt(r,ot);try{a=i.clone(),i.close()}catch(t){}break;case"MediaSourceHandle":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":dt(r,ot)}if(void 0===a)throw new Y("This object cannot be transferred: "+r,rt);W(e,i,a)}else J(d,i);return d}(r,e=new V),o=!!T(n));var a=bt(t,e,o);return o&&(function(t,e){for(var n,i,r=0,o=T(t);r<o;){if(n=t[r++],G(e,n))throw new Y("Duplicate transferable",rt);O?i=ct(n,{transfer:[n]}):(h(n.transfer)||dt("ArrayBuffer",ot),i=n.transfer()),W(e,n,i)}}(r,e=new V),a=xt(a,e)),a}})},function(t,e,n){"use strict";var i=n(14),r=Map.prototype;t.exports={Map:Map,set:i(r.set),get:i(r.get),has:i(r.has),remove:i(r.delete),proto:r}},function(t,e,n){"use strict";var i=n(14),r=Set.prototype;t.exports={Set:Set,add:i(r.add),has:i(r.has),remove:i(r.delete),proto:r}},function(t,e,n){"use strict";var i=n(4),r=n(7),o=n(28),s=n(338),a=n(339),c=n(183),u=i.structuredClone;t.exports=!!u&&!r((function(){if(a&&o>92||c&&o>94||s&&o>97)return!1;var t=new ArrayBuffer(8),e=u(t,{transfer:[t]});return 0!==t.byteLength||8!==e.byteLength}))},function(t,e,n){"use strict";n(513),n(514)},function(t,e,n){"use strict";var i=n(3),r=n(4),o=n(504)(r.setInterval,!0);i({global:!0,bind:!0,forced:r.setInterval!==o},{setInterval:o})},function(t,e,n){"use strict";var i=n(3),r=n(4),o=n(504)(r.setTimeout,!0);i({global:!0,bind:!0,forced:r.setTimeout!==o},{setTimeout:o})},function(t,e,n){"use strict";n(516)},function(t,e,n){"use strict";n(391);var i,r=n(3),o=n(6),s=n(517),a=n(4),c=n(86),u=n(14),l=n(48),h=n(79),f=n(211),d=n(39),g=n(292),p=n(163),v=n(77),y=n(384).codeAt,b=n(518),x=n(69),m=n(84),_=n(328),T=n(519),w=n(52),A=w.set,S=w.getterFor("URL"),E=T.URLSearchParams,k=T.getState,O=a.URL,M=a.TypeError,R=a.parseInt,C=Math.floor,I=Math.pow,P=u("".charAt),L=u(/./.exec),D=u([].join),N=u(1..toString),z=u([].pop),F=u([].push),j=u("".replace),B=u([].shift),X=u("".split),$=u("".slice),U=u("".toLowerCase),Y=u([].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]+/,rt=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ot=/[\t\n\r]/g,st=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,o=0;o<8;o++)0!==t[o]?(r>n&&(e=i,n=r),i=null,r=0):(null===i&&(i=o),++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},at={},ct=g({},at,{" ":1,'"':1,"<":1,">":1,"`":1}),ut=g({},ct,{"#":1,"?":1,"{":1,"}":1}),lt=g({},ut,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ht=function(t,e){var n=y(t,0);return n>32&&n<127&&!d(e,t)?t:encodeURIComponent(t)},ft={ftp:21,file:null,http:80,https:443,ws:80,wss:443},dt=function(t,e){var n;return 2===t.length&&L(W,P(t,0))&&(":"===(n=P(t,1))||!e&&"|"===n)},gt=function(t){var e;return t.length>1&&dt($(t,0,2))&&(2===t.length||"/"===(e=P(t,2))||"\\"===e||"?"===e||"#"===e)},pt=function(t){return"."===t||"%2e"===U(t)},vt={},yt={},bt={},xt={},mt={},_t={},Tt={},wt={},At={},St={},Et={},kt={},Ot={},Mt={},Rt={},Ct={},It={},Pt={},Lt={},Dt={},Nt={},zt=function(t,e,n){var i,r,o,s=x(t);if(e){if(r=this.parse(s))throw M(r);this.searchParams=null}else{if(void 0!==n&&(i=new zt(n,!0)),r=this.parse(s,null,i))throw M(r);(o=k(new E)).bindURL(this),this.searchParams=o}};zt.prototype={type:"URL",parse:function(t,e,n){var r,o,s,a,c,u=this,l=e||vt,h=0,f="",g=!1,y=!1,b=!1;for(t=x(t),e||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,t=j(t,it,""),t=j(t,rt,"$1")),t=j(t,ot,""),r=p(t);h<=r.length;){switch(o=r[h],l){case vt:if(!o||!L(W,o)){if(e)return V;l=bt;continue}f+=U(o),l=yt;break;case yt:if(o&&(L(q,o)||"+"===o||"-"===o||"."===o))f+=U(o);else{if(":"!==o){if(e)return V;f="",l=bt,h=0;continue}if(e&&(u.isSpecial()!==d(ft,f)||"file"===f&&(u.includesCredentials()||null!==u.port)||"file"===u.scheme&&!u.host))return;if(u.scheme=f,e)return void(u.isSpecial()&&ft[u.scheme]===u.port&&(u.port=null));f="","file"===u.scheme?l=Mt:u.isSpecial()&&n&&n.scheme===u.scheme?l=xt:u.isSpecial()?l=wt:"/"===r[h+1]?(l=mt,h++):(u.cannotBeABaseURL=!0,F(u.path,""),l=Lt)}break;case bt:if(!n||n.cannotBeABaseURL&&"#"!==o)return V;if(n.cannotBeABaseURL&&"#"===o){u.scheme=n.scheme,u.path=v(n.path),u.query=n.query,u.fragment="",u.cannotBeABaseURL=!0,l=Nt;break}l="file"===n.scheme?Mt:_t;continue;case xt:if("/"!==o||"/"!==r[h+1]){l=_t;continue}l=At,h++;break;case mt:if("/"===o){l=St;break}l=Pt;continue;case _t:if(u.scheme=n.scheme,o===i)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=v(n.path),u.query=n.query;else if("/"===o||"\\"===o&&u.isSpecial())l=Tt;else if("?"===o)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=v(n.path),u.query="",l=Dt;else{if("#"!==o){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=v(n.path),u.path.length--,l=Pt;continue}u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=v(n.path),u.query=n.query,u.fragment="",l=Nt}break;case Tt:if(!u.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,l=Pt;continue}l=St}else l=At;break;case wt:if(l=At,"/"!==o||"/"!==P(f,h+1))continue;h++;break;case At:if("/"!==o&&"\\"!==o){l=St;continue}break;case St:if("@"===o){g&&(f="%40"+f),g=!0,s=p(f);for(var m=0;m<s.length;m++){var _=s[m];if(":"!==_||b){var T=ht(_,lt);b?u.password+=T:u.username+=T}else b=!0}f=""}else if(o===i||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()){if(g&&""===f)return"Invalid authority";h-=p(f).length+1,f="",l=Et}else f+=o;break;case Et:case kt:if(e&&"file"===u.scheme){l=Ct;continue}if(":"!==o||y){if(o===i||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()){if(u.isSpecial()&&""===f)return G;if(e&&""===f&&(u.includesCredentials()||null!==u.port))return;if(a=u.parseHost(f))return a;if(f="",l=It,e)return;continue}"["===o?y=!0:"]"===o&&(y=!1),f+=o}else{if(""===f)return G;if(a=u.parseHost(f))return a;if(f="",l=Ot,e===kt)return}break;case Ot:if(!L(Z,o)){if(o===i||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()||e){if(""!==f){var w=R(f,10);if(w>65535)return H;u.port=u.isSpecial()&&w===ft[u.scheme]?null:w,f=""}if(e)return;l=It;continue}return H}f+=o;break;case Mt:if(u.scheme="file","/"===o||"\\"===o)l=Rt;else{if(!n||"file"!==n.scheme){l=Pt;continue}switch(o){case i:u.host=n.host,u.path=v(n.path),u.query=n.query;break;case"?":u.host=n.host,u.path=v(n.path),u.query="",l=Dt;break;case"#":u.host=n.host,u.path=v(n.path),u.query=n.query,u.fragment="",l=Nt;break;default:gt(D(v(r,h),""))||(u.host=n.host,u.path=v(n.path),u.shortenPath()),l=Pt;continue}}break;case Rt:if("/"===o||"\\"===o){l=Ct;break}n&&"file"===n.scheme&&!gt(D(v(r,h),""))&&(dt(n.path[0],!0)?F(u.path,n.path[0]):u.host=n.host),l=Pt;continue;case Ct:if(o===i||"/"===o||"\\"===o||"?"===o||"#"===o){if(!e&&dt(f))l=Pt;else if(""===f){if(u.host="",e)return;l=It}else{if(a=u.parseHost(f))return a;if("localhost"===u.host&&(u.host=""),e)return;f="",l=It}continue}f+=o;break;case It:if(u.isSpecial()){if(l=Pt,"/"!==o&&"\\"!==o)continue}else if(e||"?"!==o)if(e||"#"!==o){if(o!==i&&(l=Pt,"/"!==o))continue}else u.fragment="",l=Nt;else u.query="",l=Dt;break;case Pt:if(o===i||"/"===o||"\\"===o&&u.isSpecial()||!e&&("?"===o||"#"===o)){if(".."===(c=U(c=f))||"%2e."===c||".%2e"===c||"%2e%2e"===c?(u.shortenPath(),"/"===o||"\\"===o&&u.isSpecial()||F(u.path,"")):pt(f)?"/"===o||"\\"===o&&u.isSpecial()||F(u.path,""):("file"===u.scheme&&!u.path.length&&dt(f)&&(u.host&&(u.host=""),f=P(f,0)+":"),F(u.path,f)),f="","file"===u.scheme&&(o===i||"?"===o||"#"===o))for(;u.path.length>1&&""===u.path[0];)B(u.path);"?"===o?(u.query="",l=Dt):"#"===o&&(u.fragment="",l=Nt)}else f+=ht(o,ut);break;case Lt:"?"===o?(u.query="",l=Dt):"#"===o?(u.fragment="",l=Nt):o!==i&&(u.path[0]+=ht(o,at));break;case Dt:e||"#"!==o?o!==i&&("'"===o&&u.isSpecial()?u.query+="%27":u.query+="#"===o?"%23":ht(o,at)):(u.fragment="",l=Nt);break;case Nt:o!==i&&(u.fragment+=ht(o,ct))}h++}},parseHost:function(t){var e,n,i;if("["===P(t,0)){if("]"!==P(t,t.length-1))return G;if(e=function(t){var e,n,i,r,o,s,a,c=[0,0,0,0,0,0,0,0],u=0,l=null,h=0,f=function(){return P(t,h)};if(":"===f()){if(":"!==P(t,1))return;h+=2,l=++u}for(;f();){if(8===u)return;if(":"!==f()){for(e=n=0;n<4&&L(tt,f());)e=16*e+R(f(),16),h++,n++;if("."===f()){if(0===n)return;if(h-=n,u>6)return;for(i=0;f();){if(r=null,i>0){if(!("."===f()&&i<4))return;h++}if(!L(Z,f()))return;for(;L(Z,f());){if(o=R(f(),10),null===r)r=o;else{if(0===r)return;r=10*r+o}if(r>255)return;h++}c[u]=256*c[u]+r,2!=++i&&4!==i||u++}if(4!==i)return;break}if(":"===f()){if(h++,!f())return}else if(f())return;c[u++]=e}else{if(null!==l)return;h++,l=++u}}if(null!==l)for(s=u-l,u=7;0!==u&&s>0;)a=c[u],c[u--]=c[l+s-1],c[l+--s]=a;else if(8!==u)return;return c}($(t,1,-1)),!e)return G;this.host=e}else if(this.isSpecial()){if(t=b(t),L(et,t))return G;if(e=function(t){var e,n,i,r,o,s,a,c=X(t,".");if(c.length&&""===c[c.length-1]&&c.length--,(e=c.length)>4)return t;for(n=[],i=0;i<e;i++){if(""===(r=c[i]))return t;if(o=10,r.length>1&&"0"===P(r,0)&&(o=L(K,r)?16:8,r=$(r,8===o?1:2)),""===r)s=0;else{if(!L(10===o?Q:8===o?J:tt,r))return t;s=R(r,o)}F(n,s)}for(i=0;i<e;i++)if(s=n[i],i===e-1){if(s>=I(256,5-e))return null}else if(s>255)return null;for(a=z(n),i=0;i<n.length;i++)a+=n[i]*I(256,3-i);return a}(t),null===e)return G;this.host=e}else{if(L(nt,t))return G;for(e="",n=p(t),i=0;i<n.length;i++)e+=ht(n[i],at);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return d(ft,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"===this.scheme&&1===e&&dt(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,n=t.username,i=t.password,r=t.host,o=t.port,s=t.path,a=t.query,c=t.fragment,u=e+":";return null!==r?(u+="//",t.includesCredentials()&&(u+=n+(i?":"+i:"")+"@"),u+=st(r),null!==o&&(u+=":"+o)):"file"===e&&(u+="//"),u+=t.cannotBeABaseURL?s[0]:s.length?"/"+D(s,"/"):"",null!==a&&(u+="?"+a),null!==c&&(u+="#"+c),u},setHref:function(t){var e=this.parse(t);if(e)throw M(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"===t)try{return new Ft(t.path[0]).origin}catch(t){return"null"}return"file"!==t&&this.isSpecial()?t+"://"+st(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(x(t)+":",vt)},getUsername:function(){return this.username},setUsername:function(t){var e=p(x(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<e.length;n++)this.username+=ht(e[n],lt)}},getPassword:function(){return this.password},setPassword:function(t){var e=p(x(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<e.length;n++)this.password+=ht(e[n],lt)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?st(t):st(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,Et)},getHostname:function(){var t=this.host;return null===t?"":st(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,kt)},getPort:function(){var t=this.port;return null===t?"":x(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""===(t=x(t))?this.port=null:this.parse(t,Ot))},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,It))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""===(t=x(t))?this.query=null:("?"===P(t,0)&&(t=$(t,1)),this.query="",this.parse(t,Dt)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!==(t=x(t))?("#"===P(t,0)&&(t=$(t,1)),this.fragment="",this.parse(t,Nt)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Ft=function(t){var e=f(this,jt),n=_(arguments.length,1)>1?arguments[1]:void 0,i=A(e,new zt(t,!1,n));o||(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())},jt=Ft.prototype,Bt=function(t,e){return{get:function(){return S(this)[t]()},set:e&&function(t){return S(this)[e](t)},configurable:!0,enumerable:!0}};if(o&&(h(jt,"href",Bt("serialize","setHref")),h(jt,"origin",Bt("getOrigin")),h(jt,"protocol",Bt("getProtocol","setProtocol")),h(jt,"username",Bt("getUsername","setUsername")),h(jt,"password",Bt("getPassword","setPassword")),h(jt,"host",Bt("getHost","setHost")),h(jt,"hostname",Bt("getHostname","setHostname")),h(jt,"port",Bt("getPort","setPort")),h(jt,"pathname",Bt("getPathname","setPathname")),h(jt,"search",Bt("getSearch","setSearch")),h(jt,"searchParams",Bt("getSearchParams")),h(jt,"hash",Bt("getHash","setHash"))),l(jt,"toJSON",(function(){return S(this).serialize()}),{enumerable:!0}),l(jt,"toString",(function(){return S(this).serialize()}),{enumerable:!0}),O){var Xt=O.createObjectURL,$t=O.revokeObjectURL;Xt&&l(Ft,"createObjectURL",c(Xt,O)),$t&&l(Ft,"revokeObjectURL",c($t,O))}m(Ft,"URL"),r({global:!0,constructor:!0,forced:!s,sham:!o},{URL:Ft})},function(t,e,n){"use strict";var i=n(7),r=n(34),o=n(6),s=n(36),a=r("iterator");t.exports=!i((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),i="";return t.pathname="c%20d",e.forEach((function(t,n){e.delete("b"),i+=n+t})),n.delete("a",2),n.delete("b",void 0),s&&(!t.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!e.size&&(s||!o)||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"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"!==i||"x"!==new URL("http://x",void 0).host}))},function(t,e,n){"use strict";var i=n(14),r=2147483647,o=/[^\0-\u007E]/,s=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",c=RangeError,u=i(s.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),b=function(t){return t+22+75*(t<26)},x=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))},m=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 o=f(t,n++);56320==(64512&o)?g(e,((1023&r)<<10)+(1023&o)+65536):(g(e,r),n--)}else g(e,r)}return e}(t);var n,i,o=t.length,s=128,u=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<o;){var m=r;for(n=0;n<t.length;n++)(i=t[n])>=s&&i<m&&(m=i);var _=y+1;if(m-s>l((r-u)/_))throw c(a);for(u+=(m-s)*_,s=m,n=0;n<t.length;n++){if((i=t[n])<s&&++u>r)throw c(a);if(i===s){for(var T=u,w=36;;){var A=w<=p?1:w>=p+26?26:w-p;if(T<A)break;var S=T-A,E=36-A;g(e,h(b(A+S%E))),T=l(S/E),w+=36}g(e,h(b(T))),p=x(u,_,y===v),u=0,y++}}u++,s++}return d(e,"")};t.exports=function(t){var e,n,i=[],r=v(p(y(t),s,"."),".");for(e=0;e<r.length;e++)n=r[e],g(i,u(o,n)?"xn--"+m(n):n);return d(i,".")}},function(t,e,n){"use strict";n(169);var i=n(3),r=n(4),o=n(8),s=n(14),a=n(6),c=n(517),u=n(48),l=n(79),h=n(210),f=n(84),d=n(171),g=n(52),p=n(211),v=n(21),y=n(39),b=n(86),x=n(70),m=n(47),_=n(20),T=n(69),w=n(72),A=n(11),S=n(135),E=n(136),k=n(328),O=n(34),M=n(189),R=O("iterator"),C="URLSearchParams",I=C+"Iterator",P=g.set,L=g.getterFor(C),D=g.getterFor(I),N=Object.getOwnPropertyDescriptor,z=function(t){if(!a)return r[t];var e=N(r,t);return e&&e.value},F=z("fetch"),j=z("Request"),B=z("Headers"),X=j&&j.prototype,$=B&&B.prototype,U=r.RegExp,Y=r.TypeError,V=r.decodeURIComponent,G=r.encodeURIComponent,H=s("".charAt),W=s([].join),q=s([].push),Z=s("".replace),K=s([].shift),J=s([].splice),Q=s("".split),tt=s("".slice),et=/\+/g,nt=Array(4),it=function(t){return nt[t-1]||(nt[t-1]=U("((?:%[\\da-f]{2}){"+t+"})","gi"))},rt=function(t){try{return V(t)}catch(e){return t}},ot=function(t){var e=Z(t,et," "),n=4;try{return V(e)}catch(t){for(;n;)e=Z(e,it(n--),rt);return e}},st=/[!'()~]|%20/g,at={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ct=function(t){return at[t]},ut=function(t){return Z(G(t),st,ct)},lt=d((function(t,e){P(this,{type:I,iterator:S(L(t).entries),kind:e})}),"Iterator",(function(){var t=D(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),ht=function(t){this.entries=[],this.url=null,void 0!==t&&(_(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===H(t,0)?tt(t,1):t:T(t)))};ht.prototype={type:C,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,n,i,r,s,a,c,u=E(t);if(u)for(n=(e=S(t,u)).next;!(i=o(n,e)).done;){if(s=(r=S(m(i.value))).next,(a=o(s,r)).done||(c=o(s,r)).done||!o(s,r).done)throw Y("Expected sequence with length 2");q(this.entries,{key:T(a.value),value:T(c.value)})}else for(var l in t)y(t,l)&&q(this.entries,{key:l,value:T(t[l])})},parseQuery:function(t){if(t)for(var e,n,i=Q(t,"&"),r=0;r<i.length;)(e=i[r++]).length&&(n=Q(e,"="),q(this.entries,{key:ot(K(n)),value:ot(W(n,"="))}))},serialize:function(){for(var t,e=this.entries,n=[],i=0;i<e.length;)t=e[i++],q(n,ut(t.key)+"="+ut(t.value));return W(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ft=function(){p(this,dt);var t=P(this,new ht(arguments.length>0?arguments[0]:void 0));a||(this.size=t.entries.length)},dt=ft.prototype;if(h(dt,{append:function(t,e){var n=L(this);k(arguments.length,2),q(n.entries,{key:T(t),value:T(e)}),a||this.length++,n.updateURL()},delete:function(t){for(var e=L(this),n=k(arguments.length,1),i=e.entries,r=T(t),o=n<2?void 0:arguments[1],s=void 0===o?o:T(o),c=0;c<i.length;){var u=i[c];if(u.key!==r||void 0!==s&&u.value!==s)c++;else if(J(i,c,1),void 0!==s)break}a||(this.size=i.length),e.updateURL()},get:function(t){var e=L(this).entries;k(arguments.length,1);for(var n=T(t),i=0;i<e.length;i++)if(e[i].key===n)return e[i].value;return null},getAll:function(t){var e=L(this).entries;k(arguments.length,1);for(var n=T(t),i=[],r=0;r<e.length;r++)e[r].key===n&&q(i,e[r].value);return i},has:function(t){for(var e=L(this).entries,n=k(arguments.length,1),i=T(t),r=n<2?void 0:arguments[1],o=void 0===r?r:T(r),s=0;s<e.length;){var a=e[s++];if(a.key===i&&(void 0===o||a.value===o))return!0}return!1},set:function(t,e){var n=L(this);k(arguments.length,1);for(var i,r=n.entries,o=!1,s=T(t),c=T(e),u=0;u<r.length;u++)(i=r[u]).key===s&&(o?J(r,u--,1):(o=!0,i.value=c));o||q(r,{key:s,value:c}),a||(this.size=r.length),n.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=b(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 lt(this,"keys")},values:function(){return new lt(this,"values")},entries:function(){return new lt(this,"entries")}},{enumerable:!0}),u(dt,R,dt.entries,{name:"entries"}),u(dt,"toString",(function(){return L(this).serialize()}),{enumerable:!0}),a&&l(dt,"size",{get:function(){return L(this).entries.length},configurable:!0,enumerable:!0}),f(ft,C),i({global:!0,constructor:!0,forced:!c},{URLSearchParams:ft}),!c&&v(B)){var gt=s($.has),pt=s($.set),vt=function(t){if(_(t)){var e,n=t.body;if(x(n)===C)return e=t.headers?new B(t.headers):new B,gt(e,"content-type")||pt(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),w(t,{body:A(0,T(n)),headers:A(0,e)})}return t};if(v(F)&&i({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return F(t,arguments.length>1?vt(arguments[1]):{})}}),v(j)){var yt=function(t){return p(this,X),new j(t,arguments.length>1?vt(arguments[1]):{})};X.constructor=yt,yt.prototype=X,i({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:yt})}}t.exports={URLSearchParams:ft,getState:L}},function(t,e,n){"use strict";var i=n(3),r=n(24),o=n(7),s=n(328),a=n(69),c=n(517),u=r("URL");i({target:"URL",stat:!0,forced:!(c&&o((function(){u.canParse()})))},{canParse:function(t){var e=s(arguments.length,1),n=a(t),i=e<2||void 0===arguments[1]?void 0:a(arguments[1]);try{return!!new u(n,i)}catch(t){return!1}}})},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){"use strict";n(519)},function(t,e,n){"use strict";var i=n(48),r=n(14),o=n(69),s=n(328),a=URLSearchParams,c=a.prototype,u=r(c.append),l=r(c.delete),h=r(c.forEach),f=r([].push),d=new a("a=1&a=2&b=3");d.delete("a",1),d.delete("b",void 0),d+""!="a=2"&&i(c,"delete",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return l(this,t);var i=[];h(this,(function(t,e){f(i,{key:e,value:t})})),s(e,1);for(var r,a=o(t),c=o(n),d=0,g=0,p=!1,v=i.length;d<v;)r=i[d++],p||r.key===a?(p=!0,l(this,r.key)):g++;for(;g<v;)(r=i[g++]).key===a&&r.value===c||u(this,r.key,r.value)}),{enumerable:!0,unsafe:!0})},function(t,e,n){"use strict";var i=n(48),r=n(14),o=n(69),s=n(328),a=URLSearchParams,c=a.prototype,u=r(c.getAll),l=r(c.has),h=new a("a=1");!h.has("a",2)&&h.has("a",void 0)||i(c,"has",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return l(this,t);var i=u(this,t);s(e,1);for(var r=o(n),a=0;a<i.length;)if(i[a++]===r)return!0;return!1}),{enumerable:!0,unsafe:!0})},function(t,e,n){"use strict";var i=n(6),r=n(14),o=n(79),s=URLSearchParams.prototype,a=r(s.forEach);i&&!("size"in s)&&o(s,"size",{get:function(){var t=0;return a(this,(function(){t++})),t},configurable:!0,enumerable:!0})},function(t,e,n){"use strict";n.r(e),n.d(e,{bb:function(){return Hp},default:function(){return Hp}});var i={};n.r(i),n.d(i,{area:function(){return Hg},areaLineRange:function(){return Wg},areaSpline:function(){return qg},areaSplineRange:function(){return Zg},areaStep:function(){return Kg},bar:function(){return sp},bubble:function(){return ap},candlestick:function(){return cp},donut:function(){return ep},gauge:function(){return np},line:function(){return Jg},pie:function(){return ip},polar:function(){return rp},radar:function(){return op},scatter:function(){return up},spline:function(){return Qg},step:function(){return tp},treemap:function(){return lp}});var r={};function o(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}n.r(r),n.d(r,{selection:function(){return Up},subchart:function(){return Yp},zoom:function(){return Vp}});const s=new Date,a=new Date;function c(t,e,n,i){var r=this;function u(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return u.floor=function(e){return o(this,r),t(e=new Date(+e)),e}.bind(this),u.ceil=function(n){return o(this,r),t(n=new Date(n-1)),e(n,1),t(n),n}.bind(this),u.round=function(t){o(this,r);const e=u(t),n=u.ceil(t);return t-e<n-t?e:n}.bind(this),u.offset=function(t,n){return o(this,r),e(t=new Date(+t),null==n?1:Math.floor(n)),t}.bind(this),u.range=function(n,i,s){o(this,r);const a=[];if(n=u.ceil(n),s=null==s?1:Math.floor(s),!(n<i&&s>0))return a;let c;do{a.push(c=new Date(+n)),e(n,s),t(n)}while(c<n&&n<i);return a}.bind(this),u.filter=function(n){var i=this;return o(this,r),c(function(e){if(o(this,i),e>=e)for(;t(e),!n(e);)e.setTime(e-1)}.bind(this),function(t,r){if(o(this,i),t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}.bind(this))}.bind(this),n&&(u.count=function(e,i){return o(this,r),s.setTime(+e),a.setTime(+i),t(s),t(a),Math.floor(n(s,a))}.bind(this),u.every=function(t){var e=this;return o(this,r),t=Math.floor(t),isFinite(t)&&t>0?t>1?u.filter(i?function(n){return o(this,e),i(n)%t==0}.bind(this):function(n){return o(this,e),u.count(0,n)%t==0}.bind(this)):u:null}.bind(this)),u}const u=1e3,l=6e4,h=36e5,f=864e5,d=6048e5,g=2592e6,p=31536e6;function v(t){var e=this;return c(function(n){o(this,e),n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}.bind(this),function(t,n){o(this,e),t.setDate(t.getDate()+7*n)}.bind(this),function(t,n){return o(this,e),(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*l)/d}.bind(this))}const y=v(0),b=v(1),x=v(2),m=v(3),_=v(4),T=v(5),w=v(6);y.range,b.range,x.range,m.range,_.range,T.range,w.range;function A(t){var e=this;return c(function(n){o(this,e),n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}.bind(this),function(t,n){o(this,e),t.setUTCDate(t.getUTCDate()+7*n)}.bind(this),function(t,n){return o(this,e),(n-t)/d}.bind(this))}const S=A(0),E=A(1),k=A(2),O=A(3),M=A(4),R=A(5),C=A(6);S.range,E.range,k.range,O.range,M.range,R.range,C.range;var I=void 0;const P=c(function(t){return o(this,I),t.setHours(0,0,0,0)}.bind(void 0),function(t,e){return o(this,I),t.setDate(t.getDate()+e)}.bind(void 0),function(t,e){return o(this,I),(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*l)/f}.bind(void 0),function(t){return o(this,I),t.getDate()-1}.bind(void 0)),L=(P.range,c(function(t){o(this,I),t.setUTCHours(0,0,0,0)}.bind(void 0),function(t,e){o(this,I),t.setUTCDate(t.getUTCDate()+e)}.bind(void 0),function(t,e){return o(this,I),(e-t)/f}.bind(void 0),function(t){return o(this,I),t.getUTCDate()-1}.bind(void 0))),D=(L.range,c(function(t){o(this,I),t.setUTCHours(0,0,0,0)}.bind(void 0),function(t,e){o(this,I),t.setUTCDate(t.getUTCDate()+e)}.bind(void 0),function(t,e){return o(this,I),(e-t)/f}.bind(void 0),function(t){return o(this,I),Math.floor(t/f)}.bind(void 0)));D.range;var N=void 0;const z=c(function(t){o(this,N),t.setMonth(0,1),t.setHours(0,0,0,0)}.bind(void 0),function(t,e){o(this,N),t.setFullYear(t.getFullYear()+e)}.bind(void 0),function(t,e){return o(this,N),e.getFullYear()-t.getFullYear()}.bind(void 0),function(t){return o(this,N),t.getFullYear()}.bind(void 0));z.every=function(t){var e=this;return o(this,N),isFinite(t=Math.floor(t))&&t>0?c(function(n){o(this,e),n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}.bind(this),function(n,i){o(this,e),n.setFullYear(n.getFullYear()+i*t)}.bind(this)):null}.bind(void 0);z.range;const F=c(function(t){o(this,N),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}.bind(void 0),function(t,e){o(this,N),t.setUTCFullYear(t.getUTCFullYear()+e)}.bind(void 0),function(t,e){return o(this,N),e.getUTCFullYear()-t.getUTCFullYear()}.bind(void 0),function(t){return o(this,N),t.getUTCFullYear()}.bind(void 0));F.every=function(t){var e=this;return o(this,N),isFinite(t=Math.floor(t))&&t>0?c(function(n){o(this,e),n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}.bind(this),function(n,i){o(this,e),n.setUTCFullYear(n.getUTCFullYear()+i*t)}.bind(this)):null}.bind(void 0);F.range;function j(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 B(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 X(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var $,U,Y,V,G,H={"-":"",_:" ",0:"0"},W=/^\s*\d+/,q=/^%/,Z=/[\\^$*+?|[\]().{}]/g;function K(t,e,n){var i=t<0?"-":"",r=(i?-t:t)+"",o=r.length;return i+(o<n?Array(n-o+1).join(e)+r:r)}function J(t){return t.replace(Z,"\\$&")}function Q(t){return new RegExp("^(?:"+t.map(J).join("|")+")","i")}function tt(t){var e=this;return new Map(t.map(function(t,n){return o(this,e),[t.toLowerCase(),n]}.bind(this)))}function et(t,e,n){var i=W.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function nt(t,e,n){var i=W.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function it(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function rt(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function ot(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function st(t,e,n){var i=W.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function at(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function ct(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 ut(t,e,n){var i=W.exec(e.slice(n,n+1));return i?(t.q=3*i[0]-3,n+i[0].length):-1}function lt(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function ht(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function ft(t,e,n){var i=W.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function dt(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function gt(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function pt(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function vt(t,e,n){var i=W.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function yt(t,e,n){var i=W.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function bt(t,e,n){var i=q.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function xt(t,e,n){var i=W.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function mt(t,e,n){var i=W.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function _t(t,e){return K(t.getDate(),e,2)}function Tt(t,e){return K(t.getHours(),e,2)}function wt(t,e){return K(t.getHours()%12||12,e,2)}function At(t,e){return K(1+P.count(z(t),t),e,3)}function St(t,e){return K(t.getMilliseconds(),e,3)}function Et(t,e){return St(t,e)+"000"}function kt(t,e){return K(t.getMonth()+1,e,2)}function Ot(t,e){return K(t.getMinutes(),e,2)}function Mt(t,e){return K(t.getSeconds(),e,2)}function Rt(t){var e=t.getDay();return 0===e?7:e}function Ct(t,e){return K(y.count(z(t)-1,t),e,2)}function It(t){var e=t.getDay();return e>=4||0===e?_(t):_.ceil(t)}function Pt(t,e){return t=It(t),K(_.count(z(t),t)+(4===z(t).getDay()),e,2)}function Lt(t){return t.getDay()}function Dt(t,e){return K(b.count(z(t)-1,t),e,2)}function Nt(t,e){return K(t.getFullYear()%100,e,2)}function zt(t,e){return K((t=It(t)).getFullYear()%100,e,2)}function Ft(t,e){return K(t.getFullYear()%1e4,e,4)}function jt(t,e){var n=t.getDay();return K((t=n>=4||0===n?_(t):_.ceil(t)).getFullYear()%1e4,e,4)}function Bt(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+K(e/60|0,"0",2)+K(e%60,"0",2)}function Xt(t,e){return K(t.getUTCDate(),e,2)}function $t(t,e){return K(t.getUTCHours(),e,2)}function Ut(t,e){return K(t.getUTCHours()%12||12,e,2)}function Yt(t,e){return K(1+L.count(F(t),t),e,3)}function Vt(t,e){return K(t.getUTCMilliseconds(),e,3)}function Gt(t,e){return Vt(t,e)+"000"}function Ht(t,e){return K(t.getUTCMonth()+1,e,2)}function Wt(t,e){return K(t.getUTCMinutes(),e,2)}function qt(t,e){return K(t.getUTCSeconds(),e,2)}function Zt(t){var e=t.getUTCDay();return 0===e?7:e}function Kt(t,e){return K(S.count(F(t)-1,t),e,2)}function Jt(t){var e=t.getUTCDay();return e>=4||0===e?M(t):M.ceil(t)}function Qt(t,e){return t=Jt(t),K(M.count(F(t),t)+(4===F(t).getUTCDay()),e,2)}function te(t){return t.getUTCDay()}function ee(t,e){return K(E.count(F(t)-1,t),e,2)}function ne(t,e){return K(t.getUTCFullYear()%100,e,2)}function ie(t,e){return K((t=Jt(t)).getUTCFullYear()%100,e,2)}function re(t,e){return K(t.getUTCFullYear()%1e4,e,4)}function oe(t,e){var n=t.getUTCDay();return K((t=n>=4||0===n?M(t):M.ceil(t)).getUTCFullYear()%1e4,e,4)}function se(){return"+0000"}function ae(){return"%"}function ce(t){return+t}function ue(t){return Math.floor(+t/1e3)}function le(){}function he(t){return null==t?le:function(){return this.querySelector(t)}}function fe(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function de(){return[]}function ge(t){return null==t?de:function(){return this.querySelectorAll(t)}}function pe(t){return function(){return this.matches(t)}}function ve(t){return function(e){return e.matches(t)}}$=function(t){var e=t.dateTime,n=t.date,i=t.time,r=t.periods,o=t.days,s=t.shortDays,a=t.months,c=t.shortMonths,u=Q(r),l=tt(r),h=Q(o),f=tt(o),d=Q(s),g=tt(s),p=Q(a),v=tt(a),y=Q(c),x=tt(c),m={a:function(t){return s[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:_t,e:_t,f:Et,g:zt,G:jt,H:Tt,I:wt,j:At,L:St,m:kt,M:Ot,p:function(t){return r[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:ce,s:ue,S:Mt,u:Rt,U:Ct,V:Pt,w:Lt,W:Dt,x:null,X:null,y:Nt,Y:Ft,Z:Bt,"%":ae},_={a:function(t){return s[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:Xt,e:Xt,f:Gt,g:ie,G:oe,H:$t,I:Ut,j:Yt,L:Vt,m:Ht,M:Wt,p:function(t){return r[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:ce,s:ue,S:qt,u:Zt,U:Kt,V:Qt,w:te,W:ee,x:null,X:null,y:ne,Y:re,Z:se,"%":ae},T={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=x.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 S(t,e,n,i)},d:ht,e:ht,f:yt,g:at,G:st,H:dt,I:dt,j:ft,L:vt,m:lt,M:gt,p:function(t,e,n){var i=u.exec(e.slice(n));return i?(t.p=l.get(i[0].toLowerCase()),n+i[0].length):-1},q:ut,Q:xt,s:mt,S:pt,u:nt,U:it,V:rt,w:et,W:ot,x:function(t,e,i){return S(t,n,e,i)},X:function(t,e,n){return S(t,i,e,n)},y:at,Y:st,Z:ct,"%":bt};function w(t,e){return function(n){var i,r,o,s=[],a=-1,c=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++a<u;)37===t.charCodeAt(a)&&(s.push(t.slice(c,a)),null!=(r=H[i=t.charAt(++a)])?i=t.charAt(++a):r="e"===i?" ":"0",(o=e[i])&&(i=o(n,r)),s.push(i),c=a+1);return s.push(t.slice(c,a)),s.join("")}}function A(t,e){return function(n){var i,r,o=X(1900,void 0,1);if(S(o,t,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(e&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=B(X(o.y,0,1))).getUTCDay(),i=r>4||0===r?E.ceil(i):E(i),i=L.offset(i,7*(o.V-1)),o.y=i.getUTCFullYear(),o.m=i.getUTCMonth(),o.d=i.getUTCDate()+(o.w+6)%7):(r=(i=j(X(o.y,0,1))).getDay(),i=r>4||0===r?b.ceil(i):b(i),i=P.offset(i,7*(o.V-1)),o.y=i.getFullYear(),o.m=i.getMonth(),o.d=i.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),r="Z"in o?B(X(o.y,0,1)).getUTCDay():j(X(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(r+5)%7:o.w+7*o.U-(r+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,B(o)):j(o)}}function S(t,e,n,i){for(var r,o,s=0,a=e.length,c=n.length;s<a;){if(i>=c)return-1;if(37===(r=e.charCodeAt(s++))){if(r=e.charAt(s++),!(o=T[r in H?e.charAt(s++):r])||(i=o(t,n,i))<0)return-1}else if(r!=n.charCodeAt(i++))return-1}return i}return m.x=w(n,m),m.X=w(i,m),m.c=w(e,m),_.x=w(n,_),_.X=w(i,_),_.c=w(e,_),{format:function(t){var e=w(t+="",m);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=w(t+="",_);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"]}),U=$.format,Y=$.parse,V=$.utcFormat,G=$.utcParse;var ye=Array.prototype.find;function be(){return this.firstElementChild}var xe=Array.prototype.filter;function me(){return Array.from(this.children)}function _e(t){return Array(t.length)}function Te(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function we(t,e,n,i,r,o){for(var s,a=0,c=e.length,u=o.length;a<u;++a)(s=e[a])?(s.__data__=o[a],i[a]=s):n[a]=new Te(t,o[a]);for(;a<c;++a)(s=e[a])&&(r[a]=s)}function Ae(t,e,n,i,r,o,s){var a,c,u,l=new Map,h=e.length,f=o.length,d=Array(h);for(a=0;a<h;++a)(c=e[a])&&(d[a]=u=s.call(c,c.__data__,a,e)+"",l.has(u)?r[a]=c:l.set(u,c));for(a=0;a<f;++a)u=s.call(t,o[a],a,o)+"",(c=l.get(u))?(i[a]=c,c.__data__=o[a],l.delete(u)):n[a]=new Te(t,o[a]);for(a=0;a<h;++a)(c=e[a])&&l.get(d[a])===c&&(r[a]=c)}function Se(t){return t.__data__}function Ee(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function ke(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Oe(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 Me(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 Me(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 Me(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}Te.prototype={constructor:Te,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 Re="http://www.w3.org/1999/xhtml",Ce={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 Ie(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Ce.hasOwnProperty(e)?{space:Ce[e],local:t}:t}function Pe(t){return function(){this.removeAttribute(t)}}function Le(t){return function(){this.removeAttributeNS(t.space,t.local)}}function De(t,e){return function(){this.setAttribute(t,e)}}function Ne(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function ze(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Fe(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 je(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Be(t){return function(){this.style.removeProperty(t)}}function Xe(t,e,n){return function(){this.style.setProperty(t,e,n)}}function $e(t,e,n){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function Ue(t,e){return t.style.getPropertyValue(e)||je(t).getComputedStyle(t,null).getPropertyValue(e)}function Ye(t){return function(){delete this[t]}}function Ve(t,e){return function(){this[t]=e}}function Ge(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function He(t){return t.trim().split(/^|\s+/)}function We(t){return t.classList||new qe(t)}function qe(t){this._node=t,this._names=He(t.getAttribute("class")||"")}function Ze(t,e){for(var n=We(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function Ke(t,e){for(var n=We(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function Je(t){return function(){Ze(this,t)}}function Qe(t){return function(){Ke(this,t)}}function tn(t,e){return function(){(e.apply(this,arguments)?Ze:Ke)(this,t)}}function en(){this.textContent=""}function nn(t){return function(){this.textContent=t}}function rn(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function on(){this.innerHTML=""}function sn(t){return function(){this.innerHTML=t}}function an(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function cn(){this.nextSibling&&this.parentNode.appendChild(this)}function un(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ln(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Re&&e.documentElement.namespaceURI===Re?e.createElement(t):e.createElementNS(n,t)}}function hn(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function fn(t){var e=Ie(t);return(e.local?hn:ln)(e)}function dn(){return null}function gn(){var t=this.parentNode;t&&t.removeChild(this)}function pn(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function vn(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function yn(t){return function(){var e=this.__on;if(e){for(var n,i=0,r=-1,o=e.length;i<o;++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 bn(t,e,n){return function(){var i,r=this.__on,o=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(r)for(var s=0,a=r.length;s<a;++s)if((i=r[s]).type===t.type&&i.name===t.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),void(i.value=e);this.addEventListener(t.type,o,n),i={type:t.type,name:t.name,value:e,listener:o,options:n},r?r.push(i):this.__on=[i]}}function xn(t,e,n){var i=je(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 mn(t,e){return function(){return xn(this,t,e)}}function _n(t,e){return function(){return xn(this,t,e.apply(this,arguments))}}qe.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 Tn,wn=n(527),An=wn.mark(Sn);function Sn(){var t,e,n,i,r,o,s;return wn.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:t=this._groups,e=0,n=t.length;case 1:if(!(e<n)){a.next=13;break}i=t[e],r=0,o=i.length;case 3:if(!(r<o)){a.next=10;break}if(!(s=i[r])){a.next=7;break}return a.next=7,s;case 7:++r,a.next=3;break;case 10:++e,a.next=1;break;case 13:case"end":return a.stop()}}),An,this)}var En=[null];function kn(t,e){this._groups=t,this._parents=e}function On(){return new kn([[document.documentElement]],En)}kn.prototype=On.prototype=(Tn={constructor:kn,select:function(t){"function"!=typeof t&&(t=he(t));for(var e=this._groups,n=e.length,i=Array(n),r=0;r<n;++r)for(var o,s,a=e[r],c=a.length,u=i[r]=Array(c),l=0;l<c;++l)(o=a[l])&&(s=t.call(o,o.__data__,l,a))&&("__data__"in o&&(s.__data__=o.__data__),u[l]=s);return new kn(i,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return fe(t.apply(this,arguments))}}(t):ge(t);for(var e=this._groups,n=e.length,i=[],r=[],o=0;o<n;++o)for(var s,a=e[o],c=a.length,u=0;u<c;++u)(s=a[u])&&(i.push(t.call(s,s.__data__,u,a)),r.push(s));return new kn(i,r)},selectChild:function(t){return this.select(null==t?be:function(t){return function(){return ye.call(this.children,t)}}("function"==typeof t?t:ve(t)))},selectChildren:function(t){return this.selectAll(null==t?me:function(t){return function(){return xe.call(this.children,t)}}("function"==typeof t?t:ve(t)))},filter:function(t){"function"!=typeof t&&(t=pe(t));for(var e=this._groups,n=e.length,i=Array(n),r=0;r<n;++r)for(var o,s=e[r],a=s.length,c=i[r]=[],u=0;u<a;++u)(o=s[u])&&t.call(o,o.__data__,u,s)&&c.push(o);return new kn(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,Se);var n=e?Ae:we,i=this._parents,r=this._groups;"function"!=typeof t&&(t=function(t){return function(){return t}}(t));for(var o=r.length,s=Array(o),a=Array(o),c=Array(o),u=0;u<o;++u){var l=i[u],h=r[u],f=h.length,d=Ee(t.call(l,l&&l.__data__,u,i)),g=d.length,p=a[u]=Array(g),v=s[u]=Array(g);n(l,h,p,v,c[u]=Array(f),d,e);for(var y,b,x=0,m=0;x<g;++x)if(y=p[x]){for(x>=m&&(m=x+1);!(b=v[m])&&++m<g;);y._next=b||null}}return(s=new kn(s,i))._enter=a,s._exit=c,s},enter:function(){return new kn(this._enter||this._groups.map(_e),this._parents)},exit:function(){return new kn(this._exit||this._groups.map(_e),this._parents)},join:function(t,e,n){var i=this.enter(),r=this,o=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?o.remove():n(o),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,o=i.length,s=Math.min(r,o),a=Array(r),c=0;c<s;++c)for(var u,l=n[c],h=i[c],f=l.length,d=a[c]=Array(f),g=0;g<f;++g)(u=l[g]||h[g])&&(d[g]=u);for(;c<r;++c)a[c]=n[c];return new kn(a,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],o=r.length-1,s=r[o];--o>=0;)(i=r[o])&&(s&&4^i.compareDocumentPosition(s)&&s.parentNode.insertBefore(i,s),s=i);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=ke);for(var n=this._groups,i=n.length,r=Array(i),o=0;o<i;++o){for(var s,a=n[o],c=a.length,u=r[o]=Array(c),l=0;l<c;++l)(s=a[l])&&(u[l]=s);u.sort(e)}return new kn(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],o=0,s=r.length;o<s;++o)if(i=r[o])return i;return null},size:function(){let t=0;for(var e,n=Oe(this);!(e=n()).done;)e.value,++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var r,o=e[n],s=0,a=o.length;s<a;++s)(r=o[s])&&t.call(r,r.__data__,s,o);return this},attr:function(t,e){var n=Ie(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?Le:Pe:"function"==typeof e?n.local?Fe:ze:n.local?Ne:De)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?Be:"function"==typeof e?$e:Xe)(t,e,null==n?"":n)):Ue(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Ye:"function"==typeof e?Ge:Ve)(t,e)):this.node()[t]},classed:function(t,e){var n=He(t+"");if(arguments.length<2){for(var i=We(this.node()),r=-1,o=n.length;++r<o;)if(!i.contains(n[r]))return!1;return!0}return this.each(("function"==typeof e?tn:e?Je:Qe)(n,e))},text:function(t){return arguments.length?this.each(null==t?en:("function"==typeof t?rn:nn)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?on:("function"==typeof t?an:sn)(t)):this.node().innerHTML},raise:function(){return this.each(cn)},lower:function(){return this.each(un)},append:function(t){var e="function"==typeof t?t:fn(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:fn(t),i=null==e?dn:"function"==typeof e?e:he(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(gn)},clone:function(t){return this.select(t?vn:pn)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,r,o=function(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}}))}(t+""),s=o.length;if(!(arguments.length<2)){for(a=e?bn:yn,i=0;i<s;++i)this.each(a(o[i],e,n));return this}var a=this.node().__on;if(a)for(var c,u=0,l=a.length;u<l;++u)for(i=0,c=a[u];i<s;++i)if((r=o[i]).type===c.type&&r.name===c.name)return c.value},dispatch:function(t,e){return this.each(("function"==typeof e?_n:mn)(t,e))}},Tn[Symbol.iterator]=Sn,Tn);var Mn=On;function Rn(t){return"string"==typeof t?new kn([[document.querySelector(t)]],[document.documentElement]):new kn([[t]],En)}const Cn="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")(),In=null==Cn?void 0:Cn.document,Pn=function(t){var e=this;const n="function"==typeof(null==t?void 0:t.requestAnimationFrame),i="function"==typeof(null==t?void 0:t.requestIdleCallback);return[n?t.requestAnimationFrame:function(t){return o(this,e),setTimeout(t,1)}.bind(this),n?t.cancelAnimationFrame:function(t){return o(this,e),clearTimeout(t)}.bind(this),i?t.requestIdleCallback:Ln,i?t.cancelIdleCallback:Dn]}(Cn),Ln=Pn[0],Dn=Pn[1],Nn=Pn[2],zn=(Pn[3],{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",TREEMAP:"treemap"}),Fn={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",TREEMAP:"initTreemap"},jn={Area:[zn.AREA,zn.AREA_SPLINE,zn.AREA_SPLINE_RANGE,zn.AREA_LINE_RANGE,zn.AREA_STEP],AreaRange:[zn.AREA_SPLINE_RANGE,zn.AREA_LINE_RANGE],Arc:[zn.PIE,zn.DONUT,zn.GAUGE,zn.POLAR,zn.RADAR],Line:[zn.LINE,zn.SPLINE,zn.AREA,zn.AREA_SPLINE,zn.AREA_SPLINE_RANGE,zn.AREA_LINE_RANGE,zn.STEP,zn.AREA_STEP],Step:[zn.STEP,zn.AREA_STEP],Spline:[zn.SPLINE,zn.AREA_SPLINE,zn.AREA_SPLINE_RANGE]};function Bn(t){return Bn="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},Bn(t)}function Xn(t){var e=function(t,e){if("object"!==Bn(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==Bn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Bn(e)?e:String(e)}function $n(t,e,n){return(e=Xn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Un(t,e){if(t=function(t){let e;for(;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 Yn={value:function(){o(this,undefined)}.bind(void 0)};function Vn(){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 Gn(i)}function Gn(t){this._=t}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]=Yn,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}Gn.prototype=Vn.prototype={constructor:Gn,on:function(t,e){var n,i,r=this._,o=(i=r,(t+"").trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!i.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),s=-1,a=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++s<a;)if(n=(t=o[s]).type)r[n]=Wn(r[n],t.name,e);else if(null==e)for(n in r)r[n]=Wn(r[n],t.name,null);return this}for(;++s<a;)if((n=(t=o[s]).type)&&(n=Hn(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Gn(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,r=Array(n),o=0;o<n;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(i=this._[t]).length;o<n;++o)i[o].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,o=i.length;r<o;++r)i[r].value.apply(e,n)}};var qn=Vn;const 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=Rn(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=Rn(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 oi=.7,si=1/oi,ai=/^#([0-9a-f]{3,8})$/,ci=new RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),ui=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=ai.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?bi(e):3===n?new _i(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?xi(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?xi(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=ci.exec(t))?new _i(e[1],e[2],e[3],1):(e=ui.exec(t))?new _i(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=li.exec(t))?xi(e[1],e[2],e[3],e[4]):(e=hi.exec(t))?xi(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=fi.exec(t))?ki(e[1],e[2]/100,e[3]/100,1):(e=di.exec(t))?ki(e[1],e[2]/100,e[3]/100,e[4]):gi.hasOwnProperty(t)?bi(gi[t]):"transparent"===t?new _i(NaN,NaN,NaN,0):null}function bi(t){return new _i(t>>16&255,t>>8&255,255&t,1)}function xi(t,e,n,i){return i<=0&&(t=e=n=NaN),new _i(t,e,n,i)}function mi(t,e,n,i){return 1===arguments.length?((r=t)instanceof ri||(r=yi(r)),r?new _i((r=r.rgb()).r,r.g,r.b,r.opacity):new _i):new _i(t,e,n,null==i?1:i);var r}function _i(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function Ti(){return"#"+Ei(this.r)+Ei(this.g)+Ei(this.b)}function wi(){const t=Ai(this.opacity);return(1===t?"rgb(":"rgba(")+Si(this.r)+", "+Si(this.g)+", "+Si(this.b)+(1===t?")":", "+t+")")}function Ai(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Si(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Ei(t){return((t=Si(t))<16?"0":"")+t.toString(16)}function ki(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Mi(t,e,n,i)}function Oi(t){if(t instanceof Mi)return new Mi(t.h,t.s,t.l,t.opacity);if(t instanceof ri||(t=yi(t)),!t)return new Mi;if(t instanceof Mi)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),o=Math.max(e,n,i),s=NaN,a=o-r,c=(o+r)/2;return a?(s=e===o?(n-i)/a+6*(n<i):n===o?(i-e)/a+2:(e-n)/a+4,a/=c<.5?o+r:2-o-r,s*=60):a=c>0&&c<1?0:s,new Mi(s,a,c,t.opacity)}function Mi(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function Ri(t){return(t=(t||0)%360)<0?t+360:t}function Ci(t){return Math.max(0,Math.min(1,t||0))}function Ii(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 o=t*t,s=o*t;return((1-3*t+3*o-s)*e+(4-6*o+3*s)*n+(1+3*t+3*o-3*s)*i+s*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(_i,mi,ii(ri,{brighter:function(t){return t=null==t?si:Math.pow(si,t),new _i(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?oi:Math.pow(oi,t),new _i(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},clamp:function(){return new _i(Si(this.r),Si(this.g),Si(this.b),Ai(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"#"+Ei(this.r)+Ei(this.g)+Ei(this.b)+Ei(255*(isNaN(this.opacity)?1:this.opacity))},formatRgb:wi,toString:wi})),ni(Mi,(function(t,e,n,i){return 1===arguments.length?Oi(t):new Mi(t,e,n,null==i?1:i)}),ii(ri,{brighter:function(t){return t=null==t?si:Math.pow(si,t),new Mi(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?oi:Math.pow(oi,t),new Mi(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 _i(Ii(t>=240?t-240:t+120,r,i),Ii(t,r,i),Ii(t<120?t+240:t-120,r,i),this.opacity)},clamp:function(){return new Mi(Ri(this.h),Ci(this.s),Ci(this.l),Ai(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(){const t=Ai(this.opacity);return(1===t?"hsl(":"hsla(")+Ri(this.h)+", "+100*Ci(this.s)+"%, "+100*Ci(this.l)+"%"+(1===t?")":", "+t+")")}}));var Li=function(t){var e=this;return o(this,undefined),function(){return o(this,e),t}.bind(this)}.bind(void 0);function Di(t,e){return function(n){return t+n*e}}function Ni(t){return 1==(t=+t)?zi: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):Li(isNaN(e)?n:e)}}function zi(t,e){var n=e-t;return n?Di(t,n):Li(isNaN(t)?e:t)}var Fi=function t(e){var n=Ni(e);function i(t,e){var i=n((t=mi(t)).r,(e=mi(e)).r),r=n(t.g,e.g),o=n(t.b,e.b),s=zi(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=o(e),t.opacity=s(e),t+""}}return i.gamma=t,i}(1);function ji(t){return function(e){var n,i,r=e.length,o=Array(r),s=Array(r),a=Array(r);for(n=0;n<r;++n)i=mi(e[n]),o[n]=i.r||0,s[n]=i.g||0,a[n]=i.b||0;return o=t(o),s=t(s),a=t(a),i.opacity=1,function(t){return i.r=o(t),i.g=s(t),i.b=a(t),i+""}}}ji((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],o=t[i+1],s=i>0?t[i-1]:2*r-o,a=i<e-1?t[i+2]:2*o-r;return Pi((n-i/e)*e,s,r,o,a)}})),ji((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],o=t[i%e],s=t[(i+1)%e],a=t[(i+2)%e];return Pi((n-i/e)*e,r,o,s,a)}}));function Bi(t,e){e||(e=[]);var n,i=t?Math.min(e.length,t.length):0,r=e.slice();return function(o){for(n=0;n<i;++n)r[n]=t[n]*(1-o)+e[n]*o;return r}}function Xi(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function $i(t,e){var n,i=e?e.length:0,r=t?Math.min(i,t.length):0,o=Array(r),s=Array(i);for(n=0;n<r;++n)o[n]=qi(t[n],e[n]);for(;n<i;++n)s[n]=e[n];return function(t){for(n=0;n<r;++n)s[n]=o[n](t);return s}}function Ui(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function Yi(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Vi(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]=qi(t[n],e[n]):r[n]=e[n];return function(t){for(n in i)r[n]=i[n](t);return r}}var Gi=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Hi=new RegExp(Gi.source,"g");function Wi(t,e){var n,i,r,o=Gi.lastIndex=Hi.lastIndex=0,s=-1,a=[],c=[];for(t+="",e+="";(n=Gi.exec(t))&&(i=Hi.exec(e));)(r=i.index)>o&&(r=e.slice(o,r),a[s]?a[s]+=r:a[++s]=r),(n=n[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,c.push({i:s,x:Yi(n,i)})),o=Hi.lastIndex;return o<e.length&&(r=e.slice(o),a[s]?a[s]+=r:a[++s]=r),a.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var n,i=0;i<e;++i)a[(n=c[i]).i]=n.x(t);return a.join("")})}function qi(t,e){var n,i=typeof e;return null==e||"boolean"===i?Li(e):("number"===i?Yi:"string"===i?(n=yi(e))?(e=n,Fi):Wi:e instanceof yi?Fi:e instanceof Date?Ui:Xi(e)?Bi:Array.isArray(e)?$i:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Vi:Yi)(t,e)}var Zi,Ki,Ji=0,Qi=0,tr=0,er=1e3,nr=0,ir=0,rr=0,or="object"==typeof performance&&performance.now?performance:Date,sr="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ar(){return ir||(sr(cr),ir=or.now()+rr)}function cr(){ir=0}function ur(){this._call=this._time=this._next=null}function lr(t,e,n){var i=new ur;return i.restart(t,e,n),i}function hr(){ir=(nr=or.now())+rr,Ji=Qi=0;try{!function(){ar(),++Ji;for(var t,e=Zi;e;)(t=ir-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ji}()}finally{Ji=0,function(){var t,e,n=Zi,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:Zi=e);Ki=t,dr(i)}(),ir=0}}function fr(){var t=or.now(),e=t-nr;e>er&&(rr-=e,nr=t)}function dr(t){Ji||(Qi&&(Qi=clearTimeout(Qi)),t-ir>24?(t<1/0&&(Qi=setTimeout(hr,t-or.now()-rr)),tr&&(tr=clearInterval(tr))):(tr||(nr=or.now(),tr=setInterval(fr,er)),Ji=1,sr(hr)))}function gr(t,e,n){var i=this,r=new ur;return e=null==e?0:+e,r.restart(function(n){o(this,i),r.stop(),t(n+e)}.bind(this),e,n),r}ur.prototype=lr.prototype={constructor:ur,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?ar():+n)+(null==e?0:+e),this._next||Ki===this||(Ki?Ki._next=this:Zi=this,Ki=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=[],yr=0,br=1,xr=2,mr=3,_r=4,Tr=5,wr=6;function Ar(t,e,n,i,r,o){var s=t.__transition;if(s){if(n in s)return}else t.__transition={};!function(t,e,n){var i,r=t.__transition;function o(c){var u,l,h,f;if(n.state!==br)return a();for(u in r)if((f=r[u]).name===n.name){if(f.state===mr)return gr(o);f.state===_r?(f.state=wr,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete r[u]):+u<e&&(f.state=wr,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete r[u])}if(gr((function(){n.state===mr&&(n.state=_r,n.timer.restart(s,n.delay,n.time),s(c))})),n.state=xr,n.on.call("start",t,t.__data__,n.index,n.group),n.state===xr){for(n.state=mr,i=Array(h=n.tween.length),u=0,l=-1;u<h;++u)(f=n.tween[u].value.call(t,t.__data__,n.index,n.group))&&(i[++l]=f);i.length=l+1}}function s(e){for(var r=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(a),n.state=Tr,1),o=-1,s=i.length;++o<s;)i[o].call(t,r);n.state===Tr&&(n.on.call("end",t,t.__data__,n.index,n.group),a())}function a(){for(var i in n.state=wr,n.timer.stop(),delete r[e],r)return;delete t.__transition}r[e]=n,n.timer=lr((function(t){n.state=br,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)}),0,n.time)}(t,n,{name:e,index:i,group:r,on:pr,tween:vr,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:yr})}function Sr(t,e){var n=kr(t,e);if(n.state>yr)throw new Error("too late; already scheduled");return n}function Er(t,e){var n=kr(t,e);if(n.state>mr)throw new Error("too late; already running");return n}function kr(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Or(t,e){var n,i,r,o=t.__transition,s=!0;if(o){for(r in e=null==e?null:e+"",o)(n=o[r]).name===e?(i=n.state>xr&&n.state<Tr,n.state=wr,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[r]):s=!1;s&&delete t.__transition}}var Mr,Rr=180/Math.PI,Cr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ir(t,e,n,i,r,o){var s,a,c;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(c=t*n+e*i)&&(n-=t*c,i-=e*c),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,c/=a),t*i<e*n&&(t=-t,e=-e,c=-c,s=-s),{translateX:r,translateY:o,rotate:Math.atan2(e,t)*Rr,skewX:Math.atan(c)*Rr,scaleX:s,scaleY:a}}function Pr(t,e,n,i){function r(t){return t.length?t.pop()+" ":""}return function(o,s){var a=[],c=[];return o=t(o),s=t(s),function(t,i,r,o,s,a){if(t!==r||i!==o){var c=s.push("translate(",null,e,null,n);a.push({i:c-4,x:Yi(t,r)},{i:c-2,x:Yi(i,o)})}else(r||o)&&s.push("translate("+r+e+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,a,c),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(r(n)+"rotate(",null,i)-2,x:Yi(t,e)})):e&&n.push(r(n)+"rotate("+e+i)}(o.rotate,s.rotate,a,c),function(t,e,n,o){t!==e?o.push({i:n.push(r(n)+"skewX(",null,i)-2,x:Yi(t,e)}):e&&n.push(r(n)+"skewX("+e+i)}(o.skewX,s.skewX,a,c),function(t,e,n,i,o,s){if(t!==n||e!==i){var a=o.push(r(o)+"scale(",null,",",null,")");s.push({i:a-4,x:Yi(t,n)},{i:a-2,x:Yi(e,i)})}else 1===n&&1===i||o.push(r(o)+"scale("+n+","+i+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,a,c),o=s=null,function(t){for(var e,n=-1,i=c.length;++n<i;)a[(e=c[n]).i]=e.x(t);return a.join("")}}}var Lr=Pr((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Cr:Ir(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),Dr=Pr((function(t){return null==t?Cr:(Mr||(Mr=document.createElementNS("http://www.w3.org/2000/svg","g")),Mr.setAttribute("transform",t),(t=Mr.transform.baseVal.consolidate())?Ir((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Cr)}),", ",")",")");function Nr(t,e){var n,i;return function(){var r=Er(this,t),o=r.tween;if(o!==n)for(var s=0,a=(i=n=o).length;s<a;++s)if(i[s].name===e){(i=i.slice()).splice(s,1);break}r.tween=i}}function zr(t,e,n){var i,r;if("function"!=typeof n)throw new Error;return function(){var o=Er(this,t),s=o.tween;if(s!==i){r=(i=s).slice();for(var a={name:e,value:n},c=0,u=r.length;c<u;++c)if(r[c].name===e){r[c]=a;break}c===u&&r.push(a)}o.tween=r}}function Fr(t,e,n){var i=t._id;return t.each((function(){var t=Er(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return kr(t,i).value[e]}}function jr(t,e){var n;return("number"==typeof e?Yi:e instanceof yi?Fi:(n=yi(e))?(e=n,Fi):Wi)(t,e)}function Br(t){return function(){this.removeAttribute(t)}}function Xr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function $r(t,e,n){var i,r;return function(){var o=this.getAttribute(t);return o===n+""?null:o===i?r:r=e(i=o,n)}}function Ur(t,e,n){var i,r;return function(){var o=this.getAttributeNS(t.space,t.local);return o===n+""?null:o===i?r:r=e(i=o,n)}}function Yr(t,e,n){var i,r,o;return function(){var s,a,c=n(this);if(null!=c)return(s=this.getAttribute(t))===(a=c+"")?null:s===i&&a===r?o:(r=a,o=e(i=s,c));this.removeAttribute(t)}}function Vr(t,e,n){var i,r,o;return function(){var s,a,c=n(this);if(null!=c)return(s=this.getAttributeNS(t.space,t.local))===(a=c+"")?null:s===i&&a===r?o:(r=a,o=e(i=s,c));this.removeAttributeNS(t.space,t.local)}}function Gr(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,r)),n}return r._value=e,r}function Hr(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,r)),n}return r._value=e,r}function Wr(t,e){return function(){Sr(this,t).delay=+e.apply(this,arguments)}}function qr(t,e){return e=+e,function(){Sr(this,t).delay=e}}function Zr(t,e){return function(){Er(this,t).duration=+e.apply(this,arguments)}}function Kr(t,e){return e=+e,function(){Er(this,t).duration=e}}var Jr,Qr=Mn.prototype.constructor;function to(t){return function(){this.style.removeProperty(t)}}var eo=0;function no(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function io(t){return Mn().transition(t)}function ro(){return++eo}var oo=Mn.prototype;no.prototype=io.prototype=(Jr={constructor:no,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=he(t));for(var i=this._groups,r=i.length,o=Array(r),s=0;s<r;++s)for(var a,c,u=i[s],l=u.length,h=o[s]=Array(l),f=0;f<l;++f)(a=u[f])&&(c=t.call(a,a.__data__,f,u))&&("__data__"in a&&(c.__data__=a.__data__),h[f]=c,Ar(h[f],e,n,f,h,kr(a,n)));return new no(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=ge(t));for(var i=this._groups,r=i.length,o=[],s=[],a=0;a<r;++a)for(var c,u=i[a],l=u.length,h=0;h<l;++h)if(c=u[h]){for(var f,d=t.call(c,c.__data__,h,u),g=kr(c,n),p=0,v=d.length;p<v;++p)(f=d[p])&&Ar(f,e,n,p,d,g);o.push(d),s.push(c)}return new no(o,s,e,n)},selectChild:oo.selectChild,selectChildren:oo.selectChildren,filter:function(t){"function"!=typeof t&&(t=pe(t));for(var e=this._groups,n=e.length,i=Array(n),r=0;r<n;++r)for(var o,s=e[r],a=s.length,c=i[r]=[],u=0;u<a;++u)(o=s[u])&&t.call(o,o.__data__,u,s)&&c.push(o);return new no(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,o=Math.min(i,r),s=Array(i),a=0;a<o;++a)for(var c,u=e[a],l=n[a],h=u.length,f=s[a]=Array(h),d=0;d<h;++d)(c=u[d]||l[d])&&(f[d]=c);for(;a<i;++a)s[a]=e[a];return new no(s,this._parents,this._name,this._id)},selection:function(){return new Qr(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=ro(),i=this._groups,r=i.length,o=0;o<r;++o)for(var s,a=i[o],c=a.length,u=0;u<c;++u)if(s=a[u]){var l=kr(s,e);Ar(s,t,n,u,a,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new no(i,this._parents,t,n)},call:oo.call,nodes:oo.nodes,node:oo.node,size:oo.size,empty:oo.empty,each:oo.each,on:function(t,e){var n=this._id;return arguments.length<2?kr(this.node(),n).on.on(t):this.each(function(t,e,n){var i,r,o=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)?Sr:Er;return function(){var s=o(this,t),a=s.on;a!==i&&(r=(i=a).copy()).on(e,n),s.on=r}}(n,t,e))},attr:function(t,e){var n=Ie(t),i="transform"===n?Dr:jr;return this.attrTween(t,"function"==typeof e?(n.local?Vr:Yr)(n,i,Fr(this,"attr."+t,e)):null==e?(n.local?Xr:Br)(n):(n.local?Ur:$r)(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=Ie(t);return this.tween(n,(i.local?Gr:Hr)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?Lr:jr;return null==e?this.styleTween(t,function(t,e){var n,i,r;return function(){var o=Ue(this,t),s=(this.style.removeProperty(t),Ue(this,t));return o===s?null:o===n&&s===i?r:r=e(n=o,i=s)}}(t,i)).on("end.style."+t,to(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,r,o;return function(){var s=Ue(this,t),a=n(this),c=a+"";return null==a&&(this.style.removeProperty(t),c=a=Ue(this,t)),s===c?null:s===i&&c===r?o:(r=c,o=e(i=s,a))}}(t,i,Fr(this,"style."+t,e))).each(function(t,e){var n,i,r,o,s="style."+e;return function(){var a=Er(this,t),c=a.on,u=null==a.value[s]?o||(o=to(e)):void 0;c===n&&r===u||(i=(n=c).copy()).on("end."+s,r=u),a.on=i}}(this._id,t)):this.styleTween(t,function(t,e,n){var i,r;return function(){var o=Ue(this,t);return o===n+""?null:o===i?r:r=e(i=o,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,function(t,e,n){var i,r;function o(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&function(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}(t,o,n)),i}return o._value=e,o}(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}}(Fr(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,function(t){var e,n;function i(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&function(t){return function(e){this.textContent=t.call(this,e)}}(i)),e}return i._value=t,i}(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=kr(this.node(),n).tween,o=0,s=r.length;o<s;++o)if((i=r[o]).name===t)return i.value;return null}return this.each((null==e?Nr:zr)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Wr:qr)(e,t)):kr(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Zr:Kr)(e,t)):kr(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){Er(this,t).ease=e}}(e,t)):kr(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;Er(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,i=n._id,r=n.size();return new Promise((function(o,s){var a={value:s},c={value:function(){0==--r&&o()}};n.each((function(){var n=Er(this,i),r=n.on;r!==t&&((e=(t=r).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(c)),n.on=e})),0===r&&o()}))}},Jr[Symbol.iterator]=oo[Symbol.iterator],Jr);var so={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function ao(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error("transition "+e+" not found");return n}Mn.prototype.interrupt=function(t){return this.each((function(){Or(this,t)}))},Mn.prototype.transition=function(t){var e,n;t instanceof no?(e=t._id,t=t._name):(e=ro(),(n=so).time=ar(),t=null==t?null:t+"");for(var i=this._groups,r=i.length,o=0;o<r;++o)for(var s,a=i[o],c=a.length,u=0;u<c;++u)(s=a[u])&&Ar(s,t,e,u,a,n||ao(s,e));return new no(i,this._parents,t,e)};var co=function(t){var e=this;return o(this,undefined),function(){return o(this,e),t}.bind(this)}.bind(void 0);function uo(t,e){let n=e.sourceEvent,i=e.target,r=e.selection,o=e.mode,s=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:o,enumerable:!0,configurable:!0},_:{value:s}})}function lo(t){t.preventDefault(),t.stopImmediatePropagation()}function ho(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 fo(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 fo(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 fo(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 go={name:"drag"},po={name:"space"},vo={name:"handle"},yo={name:"center"};const bo=Math.abs,xo=Math.max,mo=Math.min;function _o(t){return[+t[0],+t[1]]}function To(t){return[_o(t[0]),_o(t[1])]}var wo={name:"x",handles:["w","e"].map(Ro),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]]}},Ao={name:"y",handles:["n","s"].map(Ro),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]]}},So=(["n","w","e","s","nw","ne","sw","se"].map(Ro),{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"}),Eo={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},ko={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Oo={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Mo={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Ro(t){return{type:t}}function Co(t){return!t.ctrlKey&&!t.button}function Io(){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 Po(){return navigator.maxTouchPoints||"ontouchstart"in this}function Lo(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Do(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function No(t){var e,n=Io,i=Co,r=Po,s=!0,a=qn("start","brush","end"),c=6;function u(e){var n=e.property("__brush",v).selectAll(".overlay").data([Ro("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",So.overlay).merge(n).each((function(){var t=Lo(this).extent;Rn(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([Ro("selection")]).enter().append("rect").attr("class","selection").attr("cursor",So.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 So[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=Rn(this),e=Lo(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]-c/2:e[0][0]-c/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-c/2:e[0][1]-c/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+c:c})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+c:c}))):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 a,c,u,f,d,g,p,v,y,b,x,m=this,_=n.target.__data__.type,T="selection"===(s&&n.metaKey?_="overlay":_)?go:s&&n.altKey?yo:vo,w=t===Ao?null:Oo[_],A=t===wo?null:Mo[_],S=Lo(m),E=S.extent,k=S.selection,O=E[0][0],M=E[0][1],R=E[1][0],C=E[1][1],I=0,P=0,L=w&&A&&s&&n.shiftKey,D=Array.from(n.touches||[n],function(t){o(this,r);const e=t.identifier;return(t=Un(t,m)).point0=t.slice(),t.identifier=e,t}.bind(this));Or(m);var N=h(m,arguments,!0).beforestart();if("overlay"===_){k&&(y=!0);const e=[D[0],D[1]||D[0]];S.selection=k=[[a=t===Ao?O:mo(e[0][0],e[1][0]),u=t===wo?M:mo(e[0][1],e[1][1])],[d=t===Ao?R:xo(e[0][0],e[1][0]),p=t===wo?C:xo(e[0][1],e[1][1])]],D.length>1&&X(n)}else a=k[0][0],u=k[0][1],d=k[1][0],p=k[1][1];c=a,f=u,g=d,v=p;var z=Rn(m).attr("pointer-events","none"),F=z.selectAll(".overlay").attr("cursor",So[_]);if(n.touches)N.moved=B,N.ended=$;else{var j=Rn(n.view).on("mousemove.brush",B,!0).on("mouseup.brush",$,!0);s&&j.on("keydown.brush",(function(t){switch(t.keyCode){case 16:L=w&&A;break;case 18:T===vo&&(w&&(d=g-I*w,a=c+I*w),A&&(p=v-P*A,u=f+P*A),T=yo,X(t));break;case 32:T!==vo&&T!==yo||(w<0?d=g-I:w>0&&(a=c-I),A<0?p=v-P:A>0&&(u=f-P),T=po,F.attr("cursor",So.selection),X(t));break;default:return}lo(t)}),!0).on("keyup.brush",(function(t){switch(t.keyCode){case 16:L&&(b=x=L=!1,X(t));break;case 18:T===yo&&(w<0?d=g:w>0&&(a=c),A<0?p=v:A>0&&(u=f),T=vo,X(t));break;case 32:T===po&&(t.altKey?(w&&(d=g-I*w,a=c+I*w),A&&(p=v-P*A,u=f+P*A),T=yo):(w<0?d=g:w>0&&(a=c),A<0?p=v:A>0&&(u=f),T=vo),F.attr("cursor",So[_]),X(t));break;default:return}lo(t)}),!0),ti(n.view)}l.call(m),N.start(n,T.name)}function B(t){for(var e,n=ho(t.changedTouches||[t]);!(e=n()).done;){const t=e.value;for(var i,r=ho(D);!(i=r()).done;){const e=i.value;e.identifier===t.identifier&&(e.cur=Un(t,m))}}if(L&&!b&&!x&&1===D.length){const t=D[0];bo(t.cur[0]-t[0])>bo(t.cur[1]-t[1])?x=!0:b=!0}for(var o,s=ho(D);!(o=s()).done;){const t=o.value;t.cur&&(t[0]=t.cur[0],t[1]=t.cur[1])}y=!0,lo(t),X(t)}function X(t){const e=D[0],n=e.point0;var i;switch(I=e[0]-n[0],P=e[1]-n[1],T){case po:case go:w&&(I=xo(O-a,mo(R-d,I)),c=a+I,g=d+I),A&&(P=xo(M-u,mo(C-p,P)),f=u+P,v=p+P);break;case vo:D[1]?(w&&(c=xo(O,mo(R,D[0][0])),g=xo(O,mo(R,D[1][0])),w=1),A&&(f=xo(M,mo(C,D[0][1])),v=xo(M,mo(C,D[1][1])),A=1)):(w<0?(I=xo(O-a,mo(R-a,I)),c=a+I,g=d):w>0&&(I=xo(O-d,mo(R-d,I)),c=a,g=d+I),A<0?(P=xo(M-u,mo(C-u,P)),f=u+P,v=p):A>0&&(P=xo(M-p,mo(C-p,P)),f=u,v=p+P));break;case yo:w&&(c=xo(O,mo(R,a-I*w)),g=xo(O,mo(R,d+I*w))),A&&(f=xo(M,mo(C,u-P*A)),v=xo(M,mo(C,p+P*A)))}g<c&&(w*=-1,i=a,a=d,d=i,i=c,c=g,g=i,_ in Eo&&F.attr("cursor",So[_=Eo[_]])),v<f&&(A*=-1,i=u,u=p,p=i,i=f,f=v,v=i,_ in ko&&F.attr("cursor",So[_=ko[_]])),S.selection&&(k=S.selection),b&&(c=k[0][0],g=k[1][0]),x&&(f=k[0][1],v=k[1][1]),k[0][0]===c&&k[0][1]===f&&k[1][0]===g&&k[1][1]===v||(S.selection=[[c,f],[g,v]],l.call(m),N.brush(t,T.name))}function $(t){if(function(t){t.stopImmediatePropagation()}(t),t.touches){if(t.touches.length)return;e&&clearTimeout(e),e=setTimeout((function(){e=null}),500)}else ei(t.view,y),j.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);z.attr("pointer-events","all"),F.attr("cursor",So.overlay),S.selection&&(k=S.selection),function(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}(k)&&(S.selection=null,l.call(m)),N.end(t,T.name)}}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=To(n.apply(this,arguments)),e.dim=t,e}return u.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),o=i.selection,s=t.input("function"==typeof n?n.apply(this,arguments):n,i.extent),a=qi(o,s);function c(t){i.selection=1===t&&null===s?null:a(t),l.call(e),r.brush()}return null!==o&&null!==s?c:c(1)})):e.each((function(){var e=this,r=arguments,o=e.__brush,s=t.input("function"==typeof n?n.apply(e,r):n,o.extent),a=h(e,r).beforestart();Or(e),o.selection=null===s?null:s,l.call(e),a.start(i).brush(i).end(i)}))},u.clear=function(t,e){u.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=Rn(this.that).datum();a.call(e,this.that,new uo(e,{sourceEvent:n,target:u,selection:t.output(this.state.selection),mode:i,dispatch:a}),r)}},u.extent=function(t){return arguments.length?(n="function"==typeof t?t:co(To(t)),u):n},u.filter=function(t){return arguments.length?(i="function"==typeof t?t:co(!!t),u):i},u.touchable=function(t){return arguments.length?(r="function"==typeof t?t:co(!!t),u):r},u.handleSize=function(t){return arguments.length?(c=+t,u):c},u.keyModifiers=function(t){return arguments.length?(s=!!t,u):s},u.on=function(){var t=a.on.apply(a,arguments);return t===a?u:t},u}var zo=void 0;function Fo(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 jo(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?Fo(Object(e),!0).forEach((function(n){$n(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Fo(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}const Bo=function(t){return o(this,zo),t||0===t}.bind(void 0),Xo=function(t){return o(this,zo),"function"==typeof t}.bind(void 0),$o=function(t){return o(this,zo),"string"==typeof t}.bind(void 0),Uo=function(t){return o(this,zo),"number"==typeof t}.bind(void 0),Yo=function(t){return o(this,zo),void 0===t}.bind(void 0),Vo=function(t){return o(this,zo),void 0!==t}.bind(void 0),Go=function(t){return o(this,zo),"boolean"==typeof t}.bind(void 0),Ho=function(t){return o(this,zo),10*Math.ceil(t/10)}.bind(void 0),Wo=function(t){return o(this,zo),Math.ceil(t)+.5}.bind(void 0),qo=function(t){return o(this,zo),t[1]-t[0]}.bind(void 0),Zo=function(t){return o(this,zo),"object"==typeof t}.bind(void 0),Ko=function(t){return o(this,zo),Yo(t)||null===t||$o(t)&&0===t.length||Zo(t)&&!(t instanceof Date)&&0===Object.keys(t).length||Uo(t)&&isNaN(t)}.bind(void 0),Jo=function(t){return o(this,zo),!Ko(t)}.bind(void 0),Qo=function(t){return o(this,zo),Array.isArray(t)}.bind(void 0),ts=function(t){return o(this,zo),t&&!(null!=t&&t.nodeType)&&Zo(t)&&!Qo(t)}.bind(void 0);function es(t,e,n){return Vo(t[e])?t[e]:n}function ns(t,e){const n=Xo(t);for(var i=arguments.length,r=Array(i>2?i-2:0),o=2;o<i;o++)r[o-2]=arguments[o];return n&&t.call.apply(t,[e].concat(r)),n}function is(t,e){var n=this;let i=0;const 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 o(this,n),++i}.bind(this)).on("end",r):(++i,t.call(r))}function rs(t){return $o(t)?t.replace(/<(script|img)?/gi,"<").replace(/(script)?>/gi,">"):t}function os(t,e,n,i){var r=this;if(void 0===n&&(n=[-1,1]),void 0===i&&(i=!1),t&&$o(e))if(-1===e.indexOf("\n"))t.text(e);else{const s=[t.text(),e].map(function(t){return o(this,r),t.replace(/[\s\n]/g,"")}.bind(this));if(s[0]!==s[1]){const s=e.split("\n"),a=i?s.length-1:1;t.html(""),s.forEach(function(e,i){o(this,r),t.append("tspan").attr("x",0).attr("dy",(0===i?n[0]*a:n[1])+"em").text(e)}.bind(this))}}}function ss(t){const e=t.getBBox(),n=e.x,i=e.y,r=e.width,o=e.height;return[{x:n,y:i+o},{x:n,y:i},{x:n+r,y:i},{x:n+r,y:i+o}]}function as(t,e){var n,i=this;const r=t&&(null==(n=t.touches||t.sourceEvent&&t.sourceEvent.touches)?void 0:n[0]);let s=[0,0];try{s=Un(r||t,e)}catch(t){}return s.map(function(t){return o(this,i),isNaN(t)?0:t}.bind(this))}function cs(t){const e=t.event,n=t.$el,i=n.subchart.main||n.main;let r;return e&&"brush"===e.type?r=e.selection:i&&(r=i.select(".bb-brush").node())&&(r=Do(r)),r}function us(t){return!("rect"in t)||"rect"in t&&t.hasAttribute("width")&&t.rect.width!==+t.getAttribute("width")?t.rect=t.getBoundingClientRect():t.rect}function ls(t,e,n){void 0===t&&(t=!0),void 0===e&&(e=0),void 0===n&&(n=1e4);const i=Cn.crypto||Cn.msCrypto,r=i?e+i.getRandomValues(new Uint32Array(1))[0]%(n-e+1):Math.floor(Math.random()*(n-e)+e);return t?r+"":r}function hs(t,e,n,i,r){if(n>i)return-1;const o=Math.floor((n+i)/2);let s=t[o],a=s.x,c=s.w,u=void 0===c?0:c;return r&&(a=t[o].y,u=t[o].h),e>=a&&e<=a+u?o:e<a?hs(t,e,n,o-1,r):hs(t,e,o+1,i,r)}function fs(t){const e=cs(t);return!e||e[0]===e[1]}function ds(t,e){var n=this;void 0===t&&(t={}),Qo(e)&&e.forEach(function(e){return o(this,n),ds(t,e)}.bind(this));for(const n in e)/^\d+$/.test(n)||n in t||(t[n]=e[n]);return t}const gs=function(t){return o(this,zo),t.charAt(0).toUpperCase()+t.slice(1)}.bind(void 0);const ps=function(t){return o(this,zo),[].slice.call(t)}.bind(void 0);function vs(t){const 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 ys(t){var e=this;const n=t[0]instanceof Date,i=(n?t.map(Number):t).filter(function(t,n,i){return o(this,e),i.indexOf(t)===n}.bind(this));return n?i.map(function(t){return o(this,e),new Date(t)}.bind(this)):i}function bs(t){var e=this;return t&&t.length?t.reduce(function(t,n){return o(this,e),t.concat(n)}.bind(this)):[]}function xs(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;const s=i.shift();return ts(t)&&ts(s)&&Object.keys(s).forEach(function(n){o(this,e);const i=s[n];ts(i)?(t[n]||(t[n]={}),t[n]=xs(t[n],i)):t[n]=Qo(i)?i.concat():i}.bind(this)),xs.apply(void 0,[t].concat(i))}function ms(t,e){var n=this;let i;return void 0===e&&(e=!0),t[0]instanceof Date?i=e?function(t,e){return o(this,n),t-e}.bind(this):function(t,e){return o(this,n),e-t}.bind(this):e&&!t.every(isNaN)?i=function(t,e){return o(this,n),t-e}.bind(this):e||(i=function(t,e){return o(this,n),(t>e?-1:t<e&&1)||t===e&&0}.bind(this)),t.concat().sort(i)}function _s(t,e){var n=this;let i=e.filter(function(t){return o(this,n),Jo(t)}.bind(this));return i.length?Uo(i[0])?i=Math[t].apply(Math,i):i[0]instanceof Date&&(i=ms(i,"min"===t)[0]):i=void 0,i}const Ts=function(t,e,n){void 0===n&&(n=1),o(this,zo);const i=[],r=0|Math.max(0,Math.ceil((e-t)/n));for(let e=t;e<r;e++)i.push(t+e*n);return i}.bind(void 0),ws={mouse:function(){var t=this;o(this,zo);const e=function(){return o(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()),o(this,t),n.dispatchEvent(new MouseEvent(i,r))}.bind(this)}catch(n){return function(n,i,r){void 0===r&&(r=e()),o(this,t);const s=In.createEvent("MouseEvent");s.initMouseEvent(i,r.bubbles,r.cancelable,Cn,0,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),n.dispatchEvent(s)}.bind(this)}}.bind(void 0)(),touch:function(t,e,n){o(this,zo);const i=new Touch(xs({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 As(t,e){let n=t;for(const t in e)n=n.replace(new RegExp("{="+t+"}","g"),e[t]);return n}function Ss(t){let e;if(t instanceof Date)e=t;else if($o(t)){var n;const i=this.config;e=null!=(n=this.format.dataTime(i.data_xFormat)(t))?n:new Date(t)}else Uo(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 Es(){return!1===(null==In?void 0:In.hidden)||"visible"===(null==In?void 0:In.visibilityState)}function ks(t,e){var n=this;!1===e()?Ln(function(){return o(this,n),ks(t,e)}.bind(this)):t()}function Os(t){const e=t,n=e.config;let i="";if(Ko(n.data_type||n.data_types)&&!e[Fn.LINE])i="line";else for(const t in Fn){const n=zn[t];if(e.hasType(n)&&!e[Fn[t]]){i=n;break}}i&&function(t,e){var n;(null==(n=Cn.console)?void 0:n.error)&&(console.error("❌ [billboard.js] "+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("[billboard.js] "+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 o(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 Ms(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 Rs(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?Ms(Object(e),!0).forEach((function(n){$n(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Ms(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}const Cs={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_"},Is={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",needle:"bb-needle"},Ps={area:"bb-area",areas:"bb-areas"},Ls={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"},Ds={bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars"},Ns={candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"},zs={chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"},Fs={colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"},js={dragarea:"bb-dragarea",INCLUDED:"_included_"},Bs={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"},Xs={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"},$s={chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"},Us={eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"},Ys={focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"},Vs={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"},Gs="bb-level",Hs="bb-levels",Ws={chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"},qs={region:"bb-region",regions:"bb-regions"},Zs={selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"},Ks={shape:"bb-shape",shapes:"bb-shapes"},Js={brush:"bb-brush",subchart:"bb-subchart"},Qs={chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",TextOverlapping:"text-overlapping"},ta={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},ea={treemap:"bb-treemap",chartTreemap:"bb-chart-treemap",chartTreemaps:"bb-chart-treemaps"},na={buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"};var ia=Rs(Rs(Rs(Rs(Rs(Rs(Rs(Rs(Rs(Rs(Rs(Rs(Rs(Rs(Rs(Rs(Rs(Rs(Rs(Rs(Rs(Rs(Rs(Rs({},Cs),Is),Ps),Ls),Ds),Ns),zs),Fs),js),Bs),Xs),$s),Us),Ys),Vs),Ws),qs),Zs),Ks),Js),Qs),ta),ea),na);const ra={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,hasTreemap:!1,cssRule:{},current:{domain:void 0,width:0,height:0,dataMax:0,maxTickWidths:{x:{size:0,ticks:[],clipPath:0,domain:""},y:{size:0,domain:""},y2:{size:0,domain:""}},types:[],needle:void 0},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}}}};let oa=function(){function t(){var t=this;Object.keys(ra).forEach(function(e){o(this,t),this[e]=new ra[e]}.bind(this))}return t.prototype.getStore=function(t){return this[t]},t}();var sa={bindto:"#chart",background:{},clipPath:!0,svg_classname:void 0,size_width:void 0,size_height:void 0,padding:!0,padding_mode:void 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:[]},aa={boost_useCssRule:!1,boost_useWorker:!1},ca=void 0,ua={data_x:void 0,data_idConverter:function(t){return o(this,ca),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(){o(this,ca)}.bind(void 0),data_onover:function(){o(this,ca)}.bind(void 0),data_onout:function(){o(this,ca)}.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:""},la={color_pattern:[],color_tiles:void 0,color_threshold:{},color_onover:void 0},ha={interaction_enabled:!0,interaction_brighten:!0,interaction_inputType_mouse:!0,interaction_inputType_touch:{}},fa={legend_contents_bindto:void 0,legend_contents_template:"<span style='color:#fff;padding:5px;background-color:{=COLOR}'>{=TITLE}</span>",legend_equally:!1,legend_hide:!1,legend_inset_anchor:"top-left",legend_inset_x:10,legend_inset_y:0,legend_inset_step:void 0,legend_item_interaction:!0,legend_item_dblclick:!1,legend_item_onclick:void 0,legend_item_onover:void 0,legend_item_onout:void 0,legend_item_tile_width:10,legend_item_tile_height:10,legend_item_tile_r:5,legend_item_tile_type:"rectangle",legend_padding:0,legend_position:"bottom",legend_show:!0,legend_usePoint:!1},da={title_text:void 0,title_padding:{top:0,right:0,bottom:0,left:0},title_position:"center"},ga=void 0,pa={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:void 0,tooltip_linked:!1,tooltip_linked_name:"",tooltip_onshow:function(){o(this,ga)}.bind(void 0),tooltip_onhide:function(){o(this,ga)}.bind(void 0),tooltip_onshown:function(){o(this,ga)}.bind(void 0),tooltip_onhidden:function(){o(this,ga)}.bind(void 0),tooltip_order:null};function va(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 ya(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?va(Object(e),!0).forEach((function(n){$n(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):va(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}let ba=function(){function t(){return function(){var t=this;const e=function(n){if(o(this,t),ts(n)&&n.constructor){const t=new n.constructor;for(const i in n)t[i]=e(n[i]);return t}return n}.bind(this);for(var n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];return i.map(function(n){return o(this,t),e(n)}.bind(this)).reduce(function(e,n){return o(this,t),jo(jo({},e),n)}.bind(this))}(sa,aa,ua,la,ha,fa,da,pa,t.data)}return t.setOptions=function(t){var e=this;this.data=t.reduce(function(t,n){return o(this,e),ya(ya({},t),n)}.bind(this),this.data)},t}();ba.data={};const xa="$baseLength",ma="__colorPattern__",_a="$dataMinMax",Ta="$dataTotalSum",wa="$totalPerIndex",Aa="legendItemTextBox",Sa="$radarPoints",Ea="setOverOut",ka="callOverOutForTouch",Oa="textRect";let Ma=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;($o(t)?[t]:t).forEach(function(t){return o(this,e),delete this.cache[t]}.bind(this))},e.get=function(t,e){if(void 0===e&&(e=!1),e&&Array.isArray(t)){const e=[];for(let n,i=0;n=t[i];i++)n in this.cache&&e.push(this.cloneTarget(this.cache[n]));return e}{const e=this.cache[t];return Bo(e)?e:null}},e.reset=function(t){const e=this;for(const n in e.cache)(t||/^\$/.test(n))&&(e.cache[n]=null)},e.cloneTarget=function(t){var e=this;return{id:t.id,id_org:t.id_org,values:t.values.map(function(t){return o(this,e),{x:t.x,value:t.value,id:t.id}}.bind(this))}},t}();const Ra=Cn.setTimeout,Ca=Cn.clearTimeout;function Ia(){let t=[];const e=function(e,n){var i=this;ks(function(){o(this,i),null==n||n()}.bind(this),(function(){let e=0;for(let n,i=0;n=t[i];i++)if(!0===n||null!=n.empty&&n.empty())e++;else{if(!1===Es()){e=t.length;break}try{n.transition()}catch(t){e++}}return e===t.length}))};return e.add=function(e){Qo(e)?t=t.concat(e):t.push(e)},e}const Pa={};function La(t,e,n,i){void 0===t&&(t=!0);let r=function(){const t=e.apply(void 0,arguments);n(t)};if(Cn.Worker&&t){const t=function(t,e){const n=t.toString(),i=n.replace(/(function|[\s\W\n])/g,"").substring(0,15);var r;return i in Pa||(Pa[i]=new Cn.Blob([(null!=(r=null==e?void 0:e.map(String).join(";"))?r:"")+"\n\n\t\t\tself.onmessage=function({data}) {\n\t\t\t\tconst result = ("+n+").apply(null, data);\n\t\t\t\tself.postMessage(result);\n\t\t\t};"],{type:"text/javascript"})),Cn.URL.createObjectURL(Pa[i])}(e,i),o=function(t){const e=new Cn.Worker(t);return e.onerror=function(t){console.error?console.error(t):console.log(t)},e}(t);r=function(){for(var e=arguments.length,i=Array(e),r=0;r<e;r++)i[r]=arguments[r];o.postMessage(i),o.onmessage=function(e){return Cn.URL.revokeObjectURL(t),n(e.data)}}}return r}var Da={},Na={};function za(t){return new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'})).join(",")+"}")}function Fa(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 ja(t,e){var n=t+"",i=n.length;return i<e?Array(e-i+1).join(0)+n:n}function Ba(t){var e,n=t.getUTCHours(),i=t.getUTCMinutes(),r=t.getUTCSeconds(),o=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":((e=t.getUTCFullYear())<0?"-"+ja(-e,6):e>9999?"+"+ja(e,6):ja(e,4))+"-"+ja(t.getUTCMonth()+1,2)+"-"+ja(t.getUTCDate(),2)+(o?"T"+ja(n,2)+":"+ja(i,2)+":"+ja(r,2)+"."+ja(o,3)+"Z":r?"T"+ja(n,2)+":"+ja(i,2)+":"+ja(r,2)+"Z":i||n?"T"+ja(n,2)+":"+ja(i,2)+"Z":"")}function Xa(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function i(t,e){var i,r=[],o=t.length,s=0,a=0,c=o<=0,u=!1;function l(){if(c)return Na;if(u)return u=!1,Da;var e,i,r=s;if(34===t.charCodeAt(r)){for(;s++<o&&34!==t.charCodeAt(s)||34===t.charCodeAt(++s););return(e=s)>=o?c=!0:10===(i=t.charCodeAt(s++))?u=!0:13===i&&(u=!0,10===t.charCodeAt(s)&&++s),t.slice(r+1,e-1).replace(/""/g,'"')}for(;s<o;){if(10===(i=t.charCodeAt(e=s++)))u=!0;else if(13===i)u=!0,10===t.charCodeAt(s)&&++s;else if(i!==n)continue;return t.slice(r,e)}return c=!0,t.slice(r,o)}for(10===t.charCodeAt(o-1)&&--o,13===t.charCodeAt(o-1)&&--o;(i=l())!==Na;){for(var h=[];i!==Da&&i!==Na;)h.push(i),i=l();e&&null==(h=e(h,a++))||r.push(h)}return r}function r(e,n){return e.map((function(e){return n.map((function(t){return s(e[t])})).join(t)}))}function o(e){return e.map(s).join(t)}function s(t){return null==t?"":t instanceof Date?Ba(t):e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,e){var n,r,o=i(t,(function(t,i){if(n)return n(t,i-1);r=t,n=e?function(t,e){var n=za(t);return function(i,r){return e(n(i),r,t)}}(t,e):za(t)}));return o.columns=r||[],o},parseRows:i,format:function(e,n){return null==n&&(n=Fa(e)),[n.map(s).join(t)].concat(r(e,n)).join("\n")},formatBody:function(t,e){return null==e&&(e=Fa(t)),r(t,e).join("\n")},formatRows:function(t){return t.map(o).join("\n")},formatRow:o,formatValue:s}}var $a=Xa(","),Ua=$a.parse,Ya=$a.parseRows,Va=($a.format,$a.formatBody,$a.formatRows,$a.formatRow,$a.formatValue,Xa("\t")),Ga=Va.parse,Ha=Va.parseRows;Va.format,Va.formatBody,Va.formatRows,Va.formatRow,Va.formatValue;function Wa(t){const e=[];return t.forEach((function(t,n){const 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 qa(t){const e=t[0],n=[];return t.forEach((function(t,i){if(i>0){const 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 Za(t,e){const n=[];let i,r;if(Array.isArray(t)){const o=function(t,e){if(void 0!==t[e])return t[e];const n=e.replace(/\[(\w+)\]/g,".$1").replace(/^\./,"").split(".");let i=t;return n.some((function(t){return!(i=i&&t in i?i[t]:void 0)})),i};i=e.x?e.value.concat(e.x):e.value,n.push(i),t.forEach((function(t){const e=i.map((function(e){let n=o(t,e);return void 0===n&&(n=null),n}));n.push(e)})),r=qa(n)}else Object.keys(t).forEach((function(e){const i=t[e].concat();null==i.unshift||i.unshift(e),n.push(i)})),r=Wa(n);return r}function Ka(t,e){var n=this;const i=t.rows(e);let r;return 1===i.length?(r=[{}],i[0].forEach(function(t){o(this,n),r[0][t]=null}.bind(this))):r=t.parse(e),r}function Ja(t){return Ka({rows:Ya,parse:Ua},t)}function Qa(t){return Ka({rows:Ha,parse:Ga},t)}function tc(t,e){const n=t||(null==e?void 0:e.data_keys);return null!=n&&n.x&&(e.data_x=n.x),n}var ec={convertData:function(t,e){var n=this;const i=this.config,r=i.boost_useWorker;let s=t;if(t.bindto&&(s={},["url","mimeType","headers","keys","json","keys","rows","columns"].forEach(function(e){o(this,n);const i="data_"+e;i in t&&(s[e]=t[i])}.bind(this))),s.url&&e)!function(t,e,n,i,r){void 0===e&&(e="csv");const o=new XMLHttpRequest,s={csv:Ja,tsv:Qa,json:Za};o.open("GET",t),n&&Object.keys(n).forEach((function(t){o.setRequestHeader(t,n[t])})),o.onreadystatechange=function(){if(4===o.readyState){if(200!==o.status)throw new Error(t+": Something went wrong loading!");{const t=o.responseText;t&&r.call(this,s[e]("json"===e?JSON.parse(t):t,i))}}},o.send()}(s.url,s.mimeType,s.headers,tc(s.keys,i),e);else if(s.json)La(r,Za,e,[Wa,qa])(s.json,tc(s.keys,i));else if(s.rows)La(r,qa,e)(s.rows);else if(s.columns)La(r,Wa,e)(s.columns);else if(t.bindto)throw Error("url or json or rows or columns is required.")},convertDataToTargets:function(t,e){var n=this;const i=this,r=i.axis,s=i.config,a=i.state,c=s.data_type;let u=!1,l=!1,h=!1;r&&(u=r.isCategorized(),l=r.isTimeSeries(),h=r.isCustomX());const f=Object.keys(t[0]||{}),d=f.length?f.filter(i.isNotX,i):[],g=f.length?f.filter(i.isX,i):[];let p;d.forEach(function(r){var a=this;o(this,n);const c=this.getXKey(r);h||l?g.indexOf(c)>=0?p=(e&&i.data.xs[r]||[]).concat(t.map(function(t){return o(this,a),t[c]}.bind(this)).filter(Bo).map(function(t,e){return o(this,a),i.generateTargetX(t,r,e)}.bind(this))):s.data_x?p=this.getOtherTargetXs():Jo(s.data_xs)&&(p=i.getXValuesOfXKey(c,i.data.targets)):p=t.map(function(t,e){return o(this,a),e}.bind(this)),p&&(this.data.xs[r]=p)}.bind(this)),d.forEach(function(t){if(o(this,n),!this.data.xs[t])throw new Error('x is not defined for id = "'+t+'".')}.bind(this));const v=d.map(function(e,r){var c=this;o(this,n);const l=s.data_idConverter.bind(i.api)(e),f=i.getXKey(e),d=h&&u,g=d&&t.map(function(t){return o(this,c),t.x}.bind(this)).every(function(t){return o(this,c),s.axis_x_categories.indexOf(t)>-1}.bind(this)),p=t.__append__,v=null===f&&p?i.api.data.values(e).length:0;return{id:l,id_org:e,values:t.map(function(t,n){o(this,c);const u=t[f];let h,y=t[e];return y=null===y||isNaN(y)||ts(y)?Qo(y)||ts(y)?y:null:+y,!d&&!a.hasRadar||0!==r||Yo(u)?h=i.generateTargetX(u,e,v+n):(g||0!==r||0!==n||p||(s.axis_x_categories=[]),h=s.axis_x_categories.indexOf(u),-1===h&&(h=s.axis_x_categories.length,s.axis_x_categories.push(u))),(Yo(y)||i.data.xs[e].length<=n)&&(h=void 0),{x:h,value:y,id:l,index:-1}}.bind(this)).filter(function(t){return o(this,c),Vo(t.x)}.bind(this))}}.bind(this));if(v.forEach(function(t){var e,r=this;o(this,n),s.data_xSort&&(t.values=t.values.sort(function(t,e){o(this,r);return(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 o(this,r),t.index=e}.bind(this)),null==(e=i.data.xs[t.id])||e.sort(function(t,e){return o(this,r),t-e}.bind(this))}.bind(this)),a.hasNegativeValue=i.hasNegativeValueInTargets(v),a.hasPositiveValue=i.hasPositiveValueInTargets(v),c&&i.isValidChartType(c)){const t=i.mapToIds(v).filter(function(t){return o(this,n),!(t in s.data_types)||!i.isValidChartType(s.data_types[t])}.bind(this));i.setTargetType(t,c)}return v.forEach(function(t){return o(this,n),i.cache.add(t.id_org,t,!0)}.bind(this)),v}},nc={isX:function(t){const e=this.config,n=e.data_x&&t===e.data_x,i=Jo(e.data_xs)&&function(t,e){var n=this;let i=!1;return Object.keys(t).forEach(function(r){return o(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(){const t=this.config;return!(!t.data_stack_normalize||!t.data_groups.length)},isGrouped:function(t){var e=this;const n=this.config.data_groups;return t?n.some(function(n){return o(this,e),n.indexOf(t)>=0&&n.length>1}.bind(this)):n.length>0},getXKey:function(t){const e=this.config;return e.data_x?e.data_x:Jo(e.data_xs)?e.data_xs[t]:null},getXValuesOfXKey:function(t,e){var n=this;const i=this;let r;return(e&&Jo(e)?i.mapToIds(e):[]).forEach(function(e){o(this,n),i.getXKey(e)===t&&(r=i.data.xs[e])}.bind(this)),r},getIndexByX:function(t,e){return e?e.indexOf($o(t)?t:+t):(this.filterByX(this.data.targets,t)[0]||{index:null}).index},getXValue:function(t,e){const n=this;return t in n.data.xs&&n.data.xs[t]&&Bo(n.data.xs[t][e])?n.data.xs[t][e]:e},getOtherTargetXs:function(){const t=Object.keys(this.data.xs);return t.length?this.data.xs[t[0]]:null},getOtherTargetX:function(t){const e=this.getOtherTargetXs();return e&&t<e.length?e[t]:null},addXs:function(t){var e=this;const n=this.config;Object.keys(t).forEach(function(i){o(this,e),n.data_xs[i]=t[i]}.bind(this))},isMultipleX:function(){return Jo(this.config.data_xs)||this.hasType("bubble")||this.hasType("scatter")},addName:function(t){const e=this.config;let n;return t&&(n=e.data_names[t.id],t.name=void 0!==n?n:t.id),t},getAllValuesOnIndex:function(t,e){var n=this;void 0===e&&(e=!1);const i=this;let r=i.filterTargetsToShow(i.data.targets).map(function(e){return o(this,n),i.addName(i.getValueOnIndex(e.values,t))}.bind(this));return e&&(r=r.filter(function(t){return o(this,n),t&&"value"in t&&Bo(t.value)}.bind(this))),r},getValueOnIndex:function(t,e){var n=this;const i=t.filter(function(t){return o(this,n),t.index===e}.bind(this));return i.length?i[0]:null},updateTargetX:function(t,e){var n=this;const i=this;t.forEach(function(t){var r=this;o(this,n),t.values.forEach(function(n,s){o(this,r),n.x=i.generateTargetX(e[s],t.id,s)}.bind(this)),i.data.xs[t.id]=e}.bind(this))},updateTargetXs:function(t,e){var n=this;const i=this;t.forEach(function(t){o(this,n),e[t.id]&&i.updateTargetX([t],e[t.id])}.bind(this))},generateTargetX:function(t,e,n){const i=this,r=i.axis;let o=null!=r&&r.isCategorized()?n:t||n;if(null!=r&&r.isTimeSeries()){const r=Ss.bind(i);o=r(t||i.getXValue(e,n))}else null==r||!r.isCustomX()||null!=r&&r.isCategorized()||(o=Bo(t)?+t:i.getXValue(e,n));return o},updateXs:function(t){var e=this;t.length&&(this.axis.xs=t.map(function(t){return o(this,e),t.x}.bind(this)))},getPrevX:function(t){const e=this.axis.xs[t-1];return Vo(e)?e:null},getNextX:function(t){const e=this.axis.xs[t+1];return Vo(e)?e:null},getBaseValue:function(t){const e=this,n=e.state.hasAxis;let 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=this;const n=this.getBaseValue.bind(this);let i,r;return(t||this.data.targets.map(function(t){return o(this,e),t.values}.bind(this))).forEach(function(t,s){o(this,e);const a=t.map(n).filter(Uo);i=Math.min.apply(Math,[s?i:1/0].concat(a)),r=Math.max.apply(Math,[s?r:-1/0].concat(a))}.bind(this)),{min:i,max:r}},getMinMaxData:function(){var t=this;const e=this,n=_a;let i=e.cache.get(n);if(!i){const r=e.data.targets.map(function(e){return o(this,t),e.values}.bind(this)),s=e.getMinMaxValue(r);let a=[],c=[];r.forEach(function(n){o(this,t);const i=e.getFilteredDataByValue(n,s.min),r=e.getFilteredDataByValue(n,s.max);i.length&&(a=a.concat(i)),r.length&&(c=c.concat(r))}.bind(this)),e.cache.add(n,i={min:a,max:c})}return i},getTotalPerIndex:function(){var t=this;const e=this,n=wa;let i=e.cache.get(n);return!e.config.data_groups.length&&!e.isStackNormalized()||i||(i=[],e.data.targets.forEach(function(e){var n=this;o(this,t),e.values.forEach(function(t,e){o(this,n),i[e]||(i[e]=0),i[e]+=Uo(t.value)?t.value:0}.bind(this))}.bind(this))),i},getTotalDataSum:function(t){var e=this;const n=this,i=Ta;let r=n.cache.get(i);if(!Uo(r)){const t=bs(n.data.targets.map(function(t){return o(this,e),t.values}.bind(this))).map(function(t){return o(this,e),t.value}.bind(this));r=t.length?t.reduce(function(t,n){return o(this,e),t+n}.bind(this)):0,n.cache.add(i,r)}return t&&(r-=n.getHiddenTotalDataSum()),r},getHiddenTotalDataSum:function(){var t=this;const e=this.api,n=this.state.hiddenTargetIds;let i=0;return n.length&&(i=e.data.values.bind(e)(n).reduce(function(e,n){return o(this,t),e+n}.bind(this))),i},getFilteredDataByValue:function(t,e){var n=this;return t.filter(function(t){return o(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 o(this,t),e.values.length}.bind(this)).concat([0]))},getMaxDataCountTarget:function(){var t=this;let e=this.filterTargetsToShow()||[];const n=e.length,i=this.config.axis_x_inverted;return n>1?(e=e.map(function(e){return o(this,t),e.values}.bind(this)).reduce(function(e,n){return o(this,t),e.concat(n)}.bind(this)).map(function(e){return o(this,t),e.x}.bind(this)),e=ms(ys(e)).map(function(e,n,r){return o(this,t),{x:e,index:i?r.length-n-1:n}}.bind(this))):n&&(e=e[0].values.concat()),e},mapToIds:function(t){var e=this;return t.map(function(t){return o(this,e),t.id}.bind(this))},mapToTargetIds:function(t){return t?Qo(t)?t.concat():[t]:this.mapToIds(this.data.targets)},hasTarget:function(t,e){const n=this.mapToIds(t);for(let t,i=0;t=n[i];i++)if(t===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;const n=this;return(t||n.data.targets).filter(function(t){return o(this,e),n.isTargetToShow(t.id)}.bind(this))},mapTargetsToUniqueXs:function(t){var e=this;const n=this.axis;let i=[];return null!=t&&t.length&&(i=ys(bs(t.map(function(t){var n=this;return o(this,e),t.values.map(function(t){return o(this,n),+t.x}.bind(this))}.bind(this)))),i=null!=n&&n.isTimeSeries()?i.map(function(t){return o(this,e),new Date(+t)}.bind(this)):i.map(Number)),ms(i)},addTargetIds:function(t,e){var n=this;const i=this.state;(Qo(e)?e:[e]).forEach(function(e){o(this,n),i[t].indexOf(e)<0&&i[t].push(e)}.bind(this))},removeTargetIds:function(t,e){var n=this;const i=this.state;(Qo(e)?e:[e]).forEach(function(e){o(this,n);const 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;const n=this,i=n.state.hasAxis,r={},s=n.isMultipleX(),a=s?n.mapTargetsToUniqueXs(t).map(function(t){return o(this,e),$o(t)?t:+t}.bind(this)):null;return t.forEach(function(t){var c=this;o(this,e);const u=[];t.values.filter(function(t){let e=t.value;return o(this,c),Bo(e)||null===e}.bind(this)).forEach(function(t){o(this,c);let e=t.value;null!==e&&n.isCandlestickType(t)&&(e=Qo(e)?e.slice(0,4):[e.open,e.high,e.low,e.close]),Qo(e)?u.push.apply(u,e):ts(e)&&"high"in e?u.push.apply(u,Object.values(e)):n.isBubbleZType(t)?u.push(i&&n.getBubbleZData(e,"y")):s?u[n.getIndexByX(t.x,a)]=e:u.push(e)}.bind(this)),r[t.id]=u}.bind(this)),r},checkValueInTargets:function(t,e){const n=Object.keys(t);let i;for(let r=0;r<n.length;r++){i=t[n[r]].values;for(let t=0;t<i.length;t++)if(e(i[t].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 o(this,e),t<0}.bind(this))},hasPositiveValueInTargets:function(t){var e=this;return this.checkValueInTargets(t,function(t){return o(this,e),t>0}.bind(this))},orderTargets:function(t){const e=[].concat(t),n=this.getSortCompareFn();return n&&e.sort(n),e},getSortCompareFn:function(t){var e=this;void 0===t&&(t=!1);const n=this,i=n.config.data_order,r=/asc/i.test(i),s=/desc/i.test(i);let a;if(r||s){const n=function(t,n){return o(this,e),t+Math.abs(n.value)}.bind(this);a=function(i,s){o(this,e);const a="values"in i?i.values.reduce(n,0):i.value,c="values"in s?s.values.reduce(n,0):s.value;return t?r?a-c:c-a:r?c-a:a-c}.bind(this)}else Xo(i)&&(a=i.bind(n.api));return a||null},filterByX:function(t,e){var n=this;return bs(t.map(function(t){return o(this,n),t.values}.bind(this))).filter(function(t){return o(this,n),t.x-e==0}.bind(this))},filterRemoveNull:function(t){var e=this;return t.filter(function(t){return o(this,e),Bo(this.getBaseValue(t))}.bind(this))},filterByXDomain:function(t,e){var n=this;return t.map(function(t){var i=this;return o(this,n),{id:t.id,id_org:t.id_org,values:t.values.filter(function(t){return o(this,i),e[0]<=t.x&&t.x<=e[1]}.bind(this))}}.bind(this))},hasDataLabel:function(){const t=this.config.data_labels;return Go(t)&&t||Zo(t)&&Jo(t)},getDataIndexFromEvent:function(t){const e=this.config,n=this.state,i=n.hasRadar,r=n.inputType,o=n.eventReceiver,s=o.coords,a=o.rect;let c;if(i){let e=t.target;/tspan/i.test(e.tagName)&&(e=e.parentNode);const n=Rn(e).datum();c=n&&1===Object.keys(n).length?n.index:void 0}else{const n=e.axis_rotated,i="touch"===r&&t.changedTouches?t.changedTouches[0]:t;c=hs(s,n?i.clientY-a.top:i.clientX-a.left,0,s.length-1,n)}return c},getDataLabelLength:function(t,e,n){var i=this;const r=this,s=[0,0];return r.$el.chart.select("svg").selectAll(".dummy").data([t,e]).enter().append("text").text(function(t){return o(this,i),r.dataLabelFormat(t.id)(t)}.bind(this)).each((function(t,e){s[e]=1.3*this.getBoundingClientRect()[n]})).remove(),s},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){const n=t[e].x,i=[];let r;for(r=e-1;r>=0&&n===t[r].x;r--)i.push(t[r]);for(r=e;r<t.length&&n===t[r].x;r++)i.push(t[r]);return i},findClosestFromTargets:function(t,e){var n=this;const i=this,r=t.map(function(t){return o(this,n),i.findClosest(t.values,e)}.bind(this));return i.findClosest(r,e)},findClosest:function(t,e){var n=this;const i=this,r=i.$el.main,s=t.filter(function(t){return o(this,n),t&&Bo(t.value)}.bind(this));let a,c;return s.filter(function(t){return o(this,n),i.isBarType(t.id)||i.isCandlestickType(t.id)}.bind(this)).forEach(function(t){o(this,n);const e=i.isBarType(t.id)?"."+Ds.chartBar+"."+Cs.target+i.getTargetSelectorSuffix(t.id)+" ."+Ds.bar+"-"+t.index:"."+Ns.chartCandlestick+"."+Cs.target+i.getTargetSelectorSuffix(t.id)+" ."+Ns.candlestick+"-"+t.index+" path";!c&&i.isWithinBar(r.select(e).node())&&(c=t)}.bind(this)),s.filter(function(t){return o(this,n),!i.isBarType(t.id)&&!i.isCandlestickType(t.id)}.bind(this)).forEach(function(t){o(this,n);const r=i.dist(t,e);a=i.getPointSensitivity(t),r<a&&(a=r,c=t)}.bind(this)),c},dist:function(t,e){const n=this,i=n.config.axis_rotated,r=n.scale,o=n.circleY(t,t.index),s=(r.zoom||r.x)(t.x);return Math.sqrt(Math.pow(s-e[+i],2)+Math.pow(o-e[+!i],2))},convertValuesToStep:function(t){const e=this.axis,n=this.config.line_step_type,i=!!e&&e.isCategorized(),r=Qo(t)?t.concat():[t];if(!i&&!/step\-(after|before)/.test(n))return t;if(r.length){const t=r[0],e=r[r.length-1],o=t.id;let s=t.x;r.unshift({x:--s,value:t.value,id:o}),i&&"step-after"===n&&r.unshift({x:--s,value:t.value,id:o}),s=e.x,r.push({x:++s,value:e.value,id:o}),i&&"step-before"===n&&r.push({x:++s,value:e.value,id:o})}return r},convertValuesToRange:function(t){var e=this;const n=Qo(t)?t.concat():[t],i=[];return n.forEach(function(t){o(this,e);const 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;const i=this.config["data_"+t];return Yo(e)||(Object.keys(e).forEach(function(t){o(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");const i=null==t?void 0:t.value;if(Qo(i)){const t={areaRange:["high","mid","low"],candlestick:["open","high","low","close","volume"]}[n].indexOf(e);return t>=0&&i?i[t]:void 0}return i?i[e]:i},setRatioForGroupedData:function(t){var e=this;const n=this;if(n.config.data_groups.length&&t.some(function(t){return o(this,e),n.isGrouped(t.id)}.bind(this))){const i=function(t){return o(this,e),n.getRatio("index",t,!0)}.bind(this);t.forEach(function(t){o(this,e),"values"in t?t.values.forEach(i):i(t)}.bind(this))}},getRatio:function(t,e,n){var i=this;void 0===n&&(n=!1);const r=this,s=r.config,a=r.state,c=r.api;let u=0;if(e&&c.data.shown().length)if(u=e.ratio||e.value,"arc"===t)if(r.pie.padAngle()())u=e.value/r.getTotalDataSum(!0);else{const t=s.gauge_fullCircle?r.getArcLength():-2*r.getGaugeStartAngle(),n=r.hasType("gauge")?t:2*Math.PI;u=(e.endAngle-e.startAngle)/n}else if("index"===t){const t=c.data.values.bind(c);let n=this.getTotalPerIndex();if(a.hiddenTargetIds.length){let e=t(a.hiddenTargetIds,!1);e.length&&(e=e.reduce(function(t,e){var n=this;return o(this,i),t.map(function(t,i){return o(this,n),(Uo(t)?t:0)+e[i]}.bind(this))}.bind(this)),n=n.map(function(t,n){return o(this,i),t-e[n]}.bind(this)))}const r=n[e.index];e.ratio=Uo(e.value)&&n&&r?e.value/r:0,u=e.ratio}else if("radar"===t)u=parseFloat(Math.max(e.value,0)+"")/a.current.dataMax*s.radar_size_ratio;else if("bar"===t){const t=r.getYScaleById.bind(r)(e.id).domain().reduce(function(t,e){return o(this,i),e-t}.bind(this));u=0===t?0:Math.abs(e.value)/t}else"treemap"===t&&(u/=r.getTotalDataSum(!0));return n&&u?100*u:u},updateDataIndexByX:function(t){var e=this;const n=t.reduce(function(t,n,i){return o(this,e),t[+n.x]=i,t}.bind(this),{});this.data.targets.forEach(function(t){var i=this;o(this,e),t.values.forEach(function(t,e){o(this,i);let r=n[+t.x];void 0===r&&(r=e),t.index=r}.bind(this))}.bind(this))},isBubbleZType:function(t){return this.isBubbleType(t)&&(ts(t.value)&&("z"in t.value||"y"in t.value)||Qo(t.value)&&t.value.length>=2)},isBarRangeType:function(t){var e=this;const n=t.value;return this.isBarType(t)&&Qo(n)&&n.length>=2&&n.every(function(t){return o(this,e),Uo(t)}.bind(this))},getDataById:function(t){var e;const n=this.cache.get(t)||this.api.data(t);return null!=(e=null==n?void 0:n[0])?e:n}};function ic(t,e){void 0===e&&(e=!1);const n=this.api;e&&this.api.flush(!0),null==t||t.call(n)}var rc={load:function(t,e){var n=this;const i=this,r=i.data,s=e.append;let a=t;a&&(e.filter&&(a=a.filter(e.filter)),(e.type||e.types)&&a.forEach(function(t){var r;o(this,n);const s=(null==(r=e.types)?void 0:r[t.id])||e.type;i.setTargetType(t.id,s)}.bind(this)),r.targets.forEach(function(t){o(this,n);for(let e=0;e<a.length;e++)if(t.id===a[e].id){t.values=s?t.values.concat(a[e].values):a[e].values,a.splice(e,1);break}}.bind(this)),r.targets=r.targets.concat(a)),i.updateTargets(r.targets),i.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),i.updateTypesElements(),ic.call(i,e.done,e.resizeAfter)},loadFromArgs:function(t){var e=this;const n=this;n.config&&(n.cache.reset(),n.convertData(t,function(i){o(this,e);const 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;const i=this,r=i.state,s=i.$el,a=i.$T;let c=e,u=t;if(i.cache.reset(),c||(c=function(){o(this,n)}.bind(this)),u=u.filter(function(t){return o(this,n),i.hasTarget(i.data.targets,t)}.bind(this)),!u||0===u.length)return void c();const l=s.svg.selectAll(u.map(function(t){return o(this,n),i.selectorTarget(t)}.bind(this)));a(l).style("opacity","0").remove().call(is,c),u.forEach(function(t){var e=this;o(this,n),r.withoutFadeIn[t]=!1,s.legend&&s.legend.selectAll("."+Xs.legendItem+i.getTargetSelectorSuffix(t)).remove(),i.data.targets=i.data.targets.filter(function(n){return o(this,e),n.id!==t}.bind(this))}.bind(this)),r.hasTreemap&&i.updateTargetsForTreemap(i.data.targets),i.updateTypesElements()}},oc=function(t){var e=this;return o(this,undefined),function(){return o(this,e),t}.bind(this)}.bind(void 0);function sc(t,e){let n=e.sourceEvent,i=e.subject,r=e.target,o=e.identifier,s=e.active,a=e.x,c=e.y,u=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:o,enumerable:!0,configurable:!0},active:{value:s,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:c,enumerable:!0,configurable:!0},dx:{value:u,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:h}})}function ac(t){return!t.ctrlKey&&!t.button}function cc(){return this.parentNode}function uc(t,e){return null==e?{x:t.x,y:t.y}:e}function lc(){return navigator.maxTouchPoints||"ontouchstart"in this}function hc(){var t,e,n,i,r=ac,o=cc,s=uc,a=lc,c={},u=qn("start","drag","end"),l=0,h=0;function f(t){t.on("mousedown.drag",d).filter(a).on("touchstart.drag",v).on("touchmove.drag",y,Zn).on("touchend.drag touchcancel.drag",b).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(s,a){if(!i&&r.call(this,s,a)){var c=x(this,o.call(this,s,a),s,a,"mouse");c&&(Rn(s.view).on("mousemove.drag",g,Kn).on("mouseup.drag",p,Kn),ti(s.view),Jn(s),n=!1,t=s.clientX,e=s.clientY,c("start",s))}}function g(i){if(Qn(i),!n){var r=i.clientX-t,o=i.clientY-e;n=r*r+o*o>h}c.mouse("drag",i)}function p(t){Rn(t.view).on("mousemove.drag mouseup.drag",null),ei(t.view,n),Qn(t),c.mouse("end",t)}function v(t,e){if(r.call(this,t,e)){var n,i,s=t.changedTouches,a=o.call(this,t,e),c=s.length;for(n=0;n<c;++n)(i=x(this,a,t,e,s[n].identifier,s[n]))&&(Jn(t),i("start",t,s[n]))}}function y(t){var e,n,i=t.changedTouches,r=i.length;for(e=0;e<r;++e)(n=c[i[e].identifier])&&(Qn(t),n("drag",t,i[e]))}function b(t){var e,n,r=t.changedTouches,o=r.length;for(i&&clearTimeout(i),i=setTimeout((function(){i=null}),500),e=0;e<o;++e)(n=c[r[e].identifier])&&(Jn(t),n("end",t,r[e]))}function x(t,e,n,i,r,o){var a,h,d,g=u.copy(),p=Un(o||n,e);if(null!=(d=s.call(t,new sc("beforestart",{sourceEvent:n,target:f,identifier:r,active:l,x:p[0],y:p[1],dx:0,dy:0,dispatch:g}),i)))return a=d.x-p[0]||0,h=d.y-p[1]||0,function n(o,s,u){var v,y=p;switch(o){case"start":c[r]=n,v=l++;break;case"end":delete c[r],--l;case"drag":p=Un(u||s,e),v=l}g.call(o,t,new sc(o,{sourceEvent:s,subject:d,target:f,identifier:r,active:v,x:p[0]+a,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:oc(!!t),f):r},f.container=function(t){return arguments.length?(o="function"==typeof t?t:oc(t),f):o},f.subject=function(t){return arguments.length?(s="function"==typeof t?t:oc(t),f):s},f.touchable=function(t){return arguments.length?(a="function"==typeof t?t:oc(!!t),f):a},f.on=function(){var t=u.on.apply(u,arguments);return t===u?f:t},f.clickDistance=function(t){return arguments.length?(h=(t=+t)*t,f):Math.sqrt(h)},f}sc.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var fc={setExpand:function(t,e,n){const 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);const s=this;["bar","candlestick"].filter(function(t){return o(this,r),s.$el[t]}.bind(this)).forEach(function(a){o(this,r),i&&s.$el[a].classed(Cs.EXPANDED,!1),s.getShapeByIndex(a,e,n).classed(Cs.EXPANDED,t)}.bind(this))},setOverOut:function(t,e){var n=this;const i=this,r=i.config,s=i.state,a=s.hasRadar,c=s.hasTreemap,u=i.$el.main,l=ts(e);if(l||-1!==e){const s=r[t?"data_onover":"data_onout"].bind(i.api);if(r.color_onover&&i.setOverColor(t,e,l),l){const t=c?ea.treemap:Is.arc;s(e,u.select("."+t+i.getTargetSelectorSuffix(e.id)).node())}else if(r.tooltip_grouped)t&&(r.point_focus_only&&a?i.showCircleFocus(i.getAllValuesOnIndex(e,!0)):i.setExpand(e,null,!0)),i.isMultipleX()||u.selectAll("."+Ks.shape+"-"+e).each((function(t){s(t,this)}));else{const a=i.cache.get(Ea)||[],c=u.selectAll("."+Ks.shape+"-"+e).filter((function(t){return i.isWithinShape(this,t)})),l=c.filter((function(){var t=this;return a.every(function(e){return o(this,t),e!==this}.bind(this))}));if(!t||c.empty()||a.length===l.size()&&l.nodes().every(function(t,e){return o(this,n),t!==a[e]}.bind(this)))for(;a.length;){const t=a.pop();r.data_onout.bind(i.api)(Rn(t).datum(),t)}l.each((function(){t&&(s(Rn(this).datum(),this),a.push(this))})),i.cache.add(Ea,a)}}},callOverOutForTouch:function(t){const e=this,n=e.cache.get(ka);(ts(t)&&n?t.id!==n.id:t!==n)&&((n||Uo(n))&&e.setOverOut(!1,n),(t||Uo(t))&&e.setOverOut(!0,t),e.cache.add(ka,t))},getDraggableSelection:function(){var t=this;const e=this,n=e.config,i=e.state;return n.interaction_enabled&&n.data_selection_draggable&&e.drag?hc().on("drag",(function(t){i.event=t,e.drag(as(t,this))})).on("start",(function(t){i.event=t,e.dragstart(as(t,this))})).on("end",function(n){o(this,t),i.event=n,e.dragend()}.bind(this)):function(){o(this,t)}.bind(this)},dispatchEvent:function(t,e,n){var i;const r=this,o=r.config,s=r.state,a=s.eventReceiver,c=s.hasAxis,u=s.hasRadar,l=s.hasTreemap,h=r.$el,f=h.eventRect,d=h.radar,g=h.treemap,p=null==(i=l&&a.rect||u&&d.axes.select("."+Ls.axis+"-"+e+" text")||f||(null==r.getArcElementByIdOrIndex?void 0:r.getArcElementByIdOrIndex(e)))?void 0:i.node();if(p){const i=r.isMultipleX();let s=p.getBoundingClientRect(),h=s.width,f=s.left,d=s.top;if(c&&!u&&!i){const t=a.coords[e];t?(h=t.w,f+=t.x,d+=t.y):(h=0,f=0,d=0)}const v=f+(n?n[0]:0)+(i||o.axis_rotated?0:h/2),y=d+(n?n[1]:0);ws[/^(mouse|click)/.test(t)?"mouse":"touch"](l?g.node():p,t,{screenX:v,screenY:y,clientX:v,clientY:y})}},setDragStatus:function(t){this.state.dragging=t},unbindZoomEvent:function(){const 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;const e=this,n=e.$el,i=n.arcs,r=n.eventRect,s=n.legend,a=n.region,c=n.svg,u=n.treemap,l=e.brush;[c,r,null==a?void 0:a.list,null==l?void 0:l.getSelection(),null==i?void 0:i.selectAll("path"),null==s?void 0:s.selectAll("g"),u].forEach(function(e){return o(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()}},dc={generateClass:function(t,e){return" "+t+" "+(t+this.getTargetSelectorSuffix(e))},getClass:function(t,e){var n=this;const i=/s$/.test(t),r=/^(area|arc|line|treemap)s?$/.test(t),s=i?"id":"index";return function(a){o(this,n);const c=a.data||a;return((e?this.generateClass(ia[i?"shapes":"shape"],c[s]):"")+this.generateClass(ia[t],c[r?"id":s])).trim()}.bind(this)},getChartClass:function(t){var e=this;return function(n){return o(this,e),ia["chart"+t]+this.classTarget((n.data?n.data:n).id)}.bind(this)},generateExtraLineClass:function(){const t=this.config.line_classes||[],e=[];return function(n){var i;const 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(ia.region,e)+" "+("class"in t?t.class:"")},classTarget:function(t){const e=this.config.data_classes[t];let n="";return e&&(n=" "+ia.target+"-"+e),this.generateClass(ia.target,t)+n},classFocus:function(t){return this.classFocused(t)+this.classDefocused(t)},classFocused:function(t){return" "+(this.state.focusedTargetIds.indexOf(t.id)>=0?ia.focused:"")},classDefocused:function(t){return" "+(this.state.defocusedTargetIds.indexOf(t.id)>=0?ia.defocused:"")},getTargetSelectorSuffix:function(t){return(t||0===t?"-"+t:"").replace(/([\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\])/g,"-")},selectorTarget:function(t,e,n){void 0===e&&(e=""),void 0===n&&(n="");const i=this.getTargetSelectorSuffix(t);return e+"."+(ia.target+i)+" "+n+", "+e+"."+(ia.circles+i)+" "+n},selectorTargets:function(t,e){var n=this;const i=t||[];return i.length?i.map(function(t){return o(this,n),this.selectorTarget(t,e)}.bind(this)):null},selectorLegend:function(t){return"."+(ia.legendItem+this.getTargetSelectorSuffix(t))},selectorLegends:function(t){var e=this;return null!=t&&t.length?t.map(function(t){return o(this,e),this.selectorLegend(t)}.bind(this)):null}};function gc(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function pc(t,e){return pc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},pc(t,e)}function vc(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,pc(t,e)}function yc(t){return yc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},yc(t)}function bc(t,e,n){return bc=function(){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}}()?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&&pc(r,n.prototype),r},bc.apply(null,arguments)}function xc(t){var e="function"==typeof Map?new Map:void 0;return xc=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 bc(t,arguments,yc(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),pc(i,t)},xc(t)}function mc(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 _c(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 _c(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 _c(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}let Tc=function(t){function e(e,n){var i;if(void 0===n&&(n=Ec),i=t.call(this)||this,Object.defineProperties(gc(i),{_intern:{value:new Map},_key:{value:n}}),null!=e)for(var r,o=mc(e);!(r=o()).done;){const t=r.value,e=t[0],n=t[1];i.set(e,n)}return i}vc(e,t);var n=e.prototype;return n.get=function(e){return t.prototype.get.call(this,wc(this,e))},n.has=function(e){return t.prototype.has.call(this,wc(this,e))},n.set=function(e,n){return t.prototype.set.call(this,Ac(this,e),n)},n.delete=function(e){return t.prototype.delete.call(this,Sc(this,e))},e}(xc(Map));Set;function wc(t,e){let n=t._intern;const i=(0,t._key)(e);return n.has(i)?n.get(i):e}function Ac(t,e){let n=t._intern;const i=(0,t._key)(e);return n.has(i)?n.get(i):(n.set(i,e),e)}function Sc(t,e){let n=t._intern;const i=(0,t._key)(e);return n.has(i)&&(e=n.get(i),n.delete(i)),e}function Ec(t){return null!==t&&"object"==typeof t?t.valueOf():t}function kc(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Oc(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 Mc(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 Mc(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 Mc(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}const Rc=Symbol("implicit");function Cc(){var t=new Tc,e=[],n=[],i=Rc;function r(r){let o=t.get(r);if(void 0===o){if(i!==Rc)return i;t.set(r,o=e.push(r)-1)}return n[o%n.length]}return r.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new Tc;for(var i,o=Oc(n);!(i=o()).done;){const n=i.value;t.has(n)||t.set(n,e.push(n)-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 Cc(e,n).unknown(i)},kc.apply(r,arguments),r}const Ic=function(t,e,n){o(this,undefined);const i=Rn(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);const Pc=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];var Lc={generateColor:function(){var t=this;const e=this,n=e.$el,i=e.config,r=i.data_colors,s=i.data_color,a=[];let c=Jo(i.color_pattern)?i.color_pattern:Cc(function(t){var e=this;const n=ma,i=In.body;let r=i[n];if(!r){const s=t.classed(Fs.colorPattern,!0).style("background-image");t.classed(Fs.colorPattern,!1),s.indexOf(";")>-1&&(r=s.replace(/url[^#]*|["'()]|(\s|%20)/g,"").split(";").map(function(t){return o(this,e),t.trim().replace(/[\"'\s]/g,"")}.bind(this)).filter(Boolean),i[n]=r)}return r}(n.chart)||Pc).range();const u=c;if(Xo(i.color_tiles)){const n=i.color_tiles.bind(e.api)(),r=c.map(function(i,r){o(this,t);const s=i.replace(/[#\(\)\s,]/g,""),a=e.state.datetimeId+"-pattern-"+s+"-"+r;return Ic(n[r%n.length],i,a)}.bind(this));c=r.map(function(e){return o(this,t),"url(#"+e.id+")"}.bind(this)),e.patterns=r}return function(t){var n;const o=t.id||(null==(n=t.data)?void 0:n.id)||t,l=e.isTypeOf(o,["line","spline","step"])||!i.data_types[o];let h;return Xo(r[o])?h=r[o].bind(e.api)(t):r[o]?h=r[o]:(a.indexOf(o)<0&&a.push(o),h=l?u[a.indexOf(o)%u.length]:c[a.indexOf(o)%c.length],r[o]=h),Xo(s)?s.bind(e.api)(h,t):h}},generateLevelColor:function(){const t=this.config,e=t.color_pattern,n=t.color_threshold,i="value"===n.unit,r=n.max||100,o=n.values&&n.values.length?n.values:[];return Jo(n)?function(t){const n=i?t:100*t/r;let s=e[e.length-1];for(let t=0,i=o.length;t<i;t++)if(n<=o[t]){s=e[t];break}return s}:null},generateDataLabelBackgroundColorFilter:function(t){var e=this;const n=this,i=n.$el,r=n.config,s=n.state,a=t||r.data_labels_backgroundColors;if(a){let r=[];$o(a)?r.push(""):ts(a)&&(r=Object.keys(a)),r.forEach(function(r){o(this,e);const c=s.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",c).html('<feFlood flood-color="'+(""===r?a:a[r])+'" /><feComposite in="SourceGraphic"/>')}.bind(this))}},getGradienColortUrl:function(t){return"url(#"+this.state.datetimeId+"-gradient"+this.getTargetSelectorSuffix(t)+")"},updateLinearGradient:function(){var t=this;const e=this,n=e.config,i=e.data.targets,r=e.state.datetimeId,s=e.$el.defs;i.forEach(function(i){var a=this;o(this,t);const c=r+"-gradient"+e.getTargetSelectorSuffix(i.id),u=e.isAreaType(i)?"area":e.isBarType(i)&&"bar",l=n.axis_rotated;if(u&&s.select("#"+c).empty()){const t=e.color(i),r=n[u+"_linearGradient"],h=r.x,f=void 0===h?l?[1,0]:[0,0]:h,d=r.y,g=void 0===d?l?[0,0]:[0,1]:d,p=r.stops,v=void 0===p?[[0,t,1],[1,t,0]]:p,y=s.append("linearGradient").attr("id",""+c).attr("x1",f[0]).attr("x2",f[1]).attr("y1",g[0]).attr("y2",g[1]);v.forEach(function(n){o(this,a);const r=Xo(n[1])?n[1].bind(e.api)(i.id):n[1];y.append("stop").attr("offset",n[0]).attr("stop-color",r||t).attr("stop-opacity",n[2])}.bind(this))}}.bind(this))},setOverColor:function(t,e){var n=this;const i=this,r=i.config,s=i.$el.main,a=r.color_onover;let c=t?a:i.color;ts(c)?c=function(t){let e=t.id;return o(this,n),e in a?a[e]:i.color(e)}.bind(this):$o(c)?c=function(){return o(this,n),a}.bind(this):Xo(a)&&(c=c.bind(i.api)),s.selectAll(ts(e)?"."+Is.arc+i.getTargetSelectorSuffix(e.id):"."+Ks.shape+"-"+e).style("fill",c)}},Dc={getYDomainMinMax:function(t,e){var n=this;const i=this,r=i.axis,s=i.config,a="min"===e,c=s.data_groups,u=i.mapToIds(t),l=i.getValuesAsIdKeyed(t);if(c.length>0){const e=i["has"+(a?"Negative":"Positive")+"ValueInTargets"](t);c.forEach(function(t){var i=this;o(this,n);const s=t.filter(function(t){return o(this,i),u.indexOf(t)>=0}.bind(this));if(s.length){const t=s[0],n=r.getId(t);e&&l[t]&&(l[t]=l[t].map(function(t){return o(this,i),(a?t<0:t>0)?t:0}.bind(this))),s.filter(function(t,e){return o(this,i),e>0}.bind(this)).forEach(function(s){var c=this;if(o(this,i),l[s]){const i=r.getId(s);l[s].forEach(function(r,s){o(this,c);const u=+r;i!==n||e&&(a?u>0:u<0)||(l[t][s]+=u)}.bind(this))}}.bind(this))}}.bind(this))}return _s(e,Object.keys(l).map(function(t){return o(this,n),_s(e,l[t])}.bind(this)))},isHiddenTargetWithYDomain:function(t){var e=this;const n=this;return n.state.hiddenTargetIds.some(function(i){return o(this,e),n.axis.getId(i)===t}.bind(this))},getYDomain:function(t,e,n){var i=this;const r=this,s=r.axis,a=r.config,c=r.scale,u="axis_"+e;if(r.isStackNormalized())return[0,100];const l=(null==c?void 0:c[e])&&"log"===c[e].type,h=t.filter(function(t){return o(this,i),s.getId(t.id)===e}.bind(this)),f=n?r.filterByXDomain(h,n):h;if(0===f.length)return r.isHiddenTargetWithYDomain(e)?c[e].domain():"y2"===e?c.y.domain():r.getYDomain(t,"y2",n);const d=a[u+"_min"],g=a[u+"_max"],p=a[u+"_center"],v=a[u+"_inverted"],y=r.hasDataLabel()&&a.axis_rotated,b=r.hasDataLabel()&&!a.axis_rotated;let x=r.getYDomainMinMax(f,"min"),m=r.getYDomainMinMax(f,"max"),_=[zn.BAR,zn.BUBBLE,zn.SCATTER].concat(jn.Line).some(function(t){o(this,i);const e=t.indexOf("area")>-1?"area":t;return r.hasType(t,f,!0)&&a[e+"_zerobased"]}.bind(this));x=Bo(d)?d:Bo(g)?x<=g?x:g-10:x,m=Bo(g)?g:Bo(d)?d<=m?m:d+10:m,isNaN(x)&&(x=0),isNaN(m)&&(m=x),x===m&&(x<0?m=0:x=0);const T=x>=0&&m>=0,w=x<=0&&m<=0;(Bo(d)&&T||Bo(g)&&w)&&(_=!1),_&&(T&&(x=0),w&&(m=0));const A=Math.abs(m-x);let S={top:.1*A,bottom:.1*A};if(Vo(p)){const t=Math.max(Math.abs(x),Math.abs(m));m=p+t,x=p-t}if(y){const t=qo(c.y.range()),e=r.getDataLabelLength(x,m,"width").map(function(e){return o(this,i),e/t}.bind(this));["bottom","top"].forEach(function(t,n){o(this,i),S[t]+=A*(e[n]/(1-e[0]-e[1]))}.bind(this))}else if(b){const t=r.getDataLabelLength(x,m,"height");["bottom","top"].forEach(function(e,n){o(this,i),S[e]+=r.convertPixelToScale("y",t[n],A)}.bind(this))}S=r.getResettedPadding(S);const E=a[u+"_padding"];Jo(E)&&["bottom","top"].forEach(function(t){o(this,i),S[t]=s.getPadding(E,t,S[t],A)}.bind(this)),_&&(T&&(S.bottom=x),w&&(S.top=-m));const k=l?[x,m].map(function(t){return o(this,i),t<0?0:t}.bind(this)):[x-S.bottom,m+S.top];return v?k.reverse():k},getXDomainMinMax:function(t,e){var n,i=this;const r=this.config["axis_x_"+e],s=_s(e,t.map(function(t){var n=this;return o(this,i),_s(e,t.values.map(function(t){return o(this,n),t.x}.bind(this)))}.bind(this)));let a=ts(r)?r.value:r;return a=Vo(a)&&null!=(n=this.axis)&&n.isTimeSeries()?Ss.bind(this)(a):a,ts(r)&&r.fit&&("min"===e&&a<s||"max"===e&&a>s)&&(a=void 0),Vo(a)?a:s},getXDomainPadding:function(t,e){const n=this,i=n.axis,r=n.config.axis_x_padding,o=i.isTimeSeries()&&e,s=qo(t);let a;if(i.isCategorized()||o)a=0;else if(n.hasType("bar")){const t=n.getMaxDataCount();a=t>1?s/(t-1)/2:.5}else a=n.getResettedPadding(.01*s);let c=Uo(r)?{left:r,right:r}:r,u=c.left,l=void 0===u?a:u,h=c.right,f=void 0===h?a:h;if("px"===r.unit){const t=Math.abs(s+.2*s);l=i.getPadding(r,"left",a,t),f=i.getPadding(r,"right",a,t)}else{const t=s+l+f;if(o&&t){const n=s/e/t;l=l/t/n,f=f/t/n}}return{left:l,right:f}},getXDomain:function(t){const e=this,n=e.axis,i=e.config,r=e.scale.x,o=i.axis_x_inverted,s=[e.getXDomainMinMax(t,"min"),e.getXDomainMinMax(t,"max")];let a=s[0],c=void 0===a?0:a,u=s[1],l=void 0===u?0:u;if("log"!==r.type){const t=n.isCategorized(),i=n.isTimeSeries(),r=e.getXDomainPadding(s);let o=s[0],a=s[1];o-a!=0||t||(i?(o=new Date(.5*o.getTime()),a=new Date(1.5*a.getTime())):(o=0===o?1:.5*o,a=0===a?-1:1.5*a)),(o||0===o)&&(c=i?new Date(o.getTime()-r.left):o-r.left),(a||0===a)&&(l=i?new Date(a.getTime()+r.right):a+r.right)}return o?[l,c]:[c,l]},updateXDomain:function(t,e,n,i,r){const o=this,s=o.config,a=o.org,c=o.scale,u=c.x,l=c.subX,h=s.zoom_enabled;var f;n&&(u.domain(r||ms(o.getXDomain(t),!s.axis_x_inverted)),a.xDomain=u.domain(),h&&o.zoom.updateScaleExtent(),l.domain(u.domain()),null==(f=o.brush)||f.scale(l));if(e){const t=r||!o.brush||fs(o)?a.xDomain:cs(o).map(l.invert);u.domain(t),h&&o.zoom.updateScaleExtent()}return i&&u.domain(o.trimXDomain(u.orgDomain())),u.domain()},trimXDomain:function(t){const e=this.config.axis_x_inverted,n=this.getZoomDomain(),i=n[0],r=n[1];return(e?t[0]>=i:t[0]<=i)&&(t[0]=i,t[1]=+t[1]+(i-t[0])),(e?t[1]<=r:t[1]>=r)&&(t[0]=+t[0]-(t[1]-r),t[1]=r),t},getZoomDomain:function(t,e){void 0===t&&(t="zoom"),void 0===e&&(e=!1);const n=this,i=n.config,r=n.scale,o=n.org;let s=e&&r[t]?r[t].domain():o.xDomain,a=s[0],c=s[1];return"zoom"===t&&(Vo(i.zoom_x_min)&&(a=_s("min",[a,i.zoom_x_min])),Vo(i.zoom_x_max)&&(c=_s("max",[c,i.zoom_x_max]))),[a,c]},convertPixelToScale:function(t,e,n){const i=this.config,r=this.state,o=i.axis_rotated;let s;return s="x"===t?o?"height":"width":o?"width":"height",n*(e/r[s])},withinRange:function(t,e,n){var i=this;const r=this.config.axis_x_inverted,s=n,a=s[0],c=s[1];if(Array.isArray(t)){const n=[].concat(t);if(r&&n.reverse(),n[0]<n[1])return t.every(function(n,s){var u=this;return o(this,i),(0===s?r?+n<=a:+n>=a:r?+n>=c:+n<=c)&&!t.every(function(t,n){return o(this,u),t===e[n]}.bind(this))}.bind(this))}return!1}};function Nc(t,e,n){const i=t.config,r="axis_"+e+"_tick_format";return(i[r]?i[r]:t.defaultValueFormat).call(t.api,n)}var zc={yFormat:function(t){return Nc(this,"y",t)},y2Format:function(t){return Nc(this,"y2",t)},getDefaultValueFormat:function(){const t=this,e=t.defaultArcValueFormat,n=t.yFormat,i=t.y2Format,r=t.hasArcType(null,["gauge","polar","radar"]);return function(o,s,a){return(r?e:t.axis&&"y2"===t.axis.getId(a)?i:n).call(t,o,s)}},defaultValueFormat:function(t){return Bo(t)?+t:""},defaultArcValueFormat:function(t,e){return(100*e).toFixed(1)+"%"},defaultPolarValueFormat:function(t){return""+t},dataLabelFormat:function(t){var e=this;const n=this.config.data_labels,i=function(t){return o(this,e),Bo(t)?+t:""}.bind(this);let r=i;return Xo(n.format)?r=n.format:Zo(n.format)&&(r=n.format[t]?!0===n.format[t]?i:n.format[t]:function(){return o(this,e),""}.bind(this)),r.bind(this.api)}};function Fc(t){const e=this,n=e.getDataById(t);return e.levelColor?e.levelColor(n.values[0].value):e.color(n)}var jc={initLegend:function(){const 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(Xs.legend,!0).attr("transform",t.getTranslate("legend"))),t.updateLegend()):t.state.hiddenLegendIds=t.mapToIds(t.data.targets)},updateLegend:function(t,e,n){var i;const r=this,o=r.config,s=r.state,a=r.scale,c=r.$el,u=e||{withTransform:!1,withTransitionForTransform:!1,withTransition:!1};u.withTransition=es(u,"withTransition",!0),u.withTransitionForTransform=es(u,"withTransitionForTransform",!0),o.legend_contents_bindto&&o.legend_contents_template?r.updateLegendTemplate():s.hasTreemap||r.updateLegendElement(t||r.mapToIds(r.data.targets),u,n),null==(i=c.legend)||i.selectAll("."+Xs.legendItem).classed(Xs.legendItemHidden,(function(t){const e=!r.isTargetToShow(t);return e&&(this.style.opacity=null),e})),r.updateScales(!1,!a.zoom),r.updateSvgSize(),r.transformAll(u.withTransitionForTransform,n),s.legendHasRendered=!0},updateLegendTemplate:function(){var t=this;const e=this,n=e.config,i=e.$el,r=Rn(n.legend_contents_bindto),s=n.legend_contents_template;if(!r.empty()){const n=e.mapToIds(e.data.targets),a=[];let c="";n.forEach(function(n){o(this,t);const i=Xo(s)?s.bind(e.api)(n,e.color(n),e.api.data(n)[0].values):As(s,{COLOR:e.color(n),TITLE:n});i&&(a.push(n),c+=i)}.bind(this));const u=r.html(c).selectAll((function(){return this.childNodes})).data(a);e.setLegendItem(u),i.legend=r}},updateSizeForLegend:function(t){const e=this,n=e.config,i=e.state,r=i.isLegendTop,o=i.isLegendLeft,s=i.isLegendRight,a=i.isLegendInset,c=i.current,u=t.width,l=t.height,h={top:r?e.getCurrentPaddingTop()+n.legend_inset_y+5.5:c.height-l-e.getCurrentPaddingBottom()-n.legend_inset_y,left:o?e.getCurrentPaddingLeft()+n.legend_inset_x+.5:c.width-u-e.getCurrentPaddingRight()-n.legend_inset_x+.5};e.state.margin3={top:s?0:a?h.top:c.height-l,right:NaN,bottom:0,left:s?c.width-u:a?h.left:0}},transformLegend:function(t){const 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){const n=this.$el.legend;n&&n.select("."+Xs.legendItem+"-"+t+" line").style("stroke",e)},getLegendWidth:function(){const t=this.state,e=t.current.width,n=t.isLegendRight,i=t.isLegendInset,r=t.legendItemWidth,o=t.legendStep;return this.config.legend_show?n||i?r*(o+1):e:0},getLegendHeight:function(){var t;const e=this,n=e.state,i=n.current,r=n.isLegendRight,o=n.legendItemHeight,s=n.legendStep,a="fit"===(null==(t=e.config.padding)?void 0:t.mode);return e.config.legend_show?r?i.height:(a?10:Math.max(20,o))*(s+1):0},opacityForUnfocusedLegend:function(t){return t.classed(Xs.legendItemHidden)?null:"0.3"},toggleFocusLegend:function(t,e){var n=this;const i=this,r=i.$el.legend,s=i.$T,a=i.mapToTargetIds(t);r&&s(r.selectAll("."+Xs.legendItem).filter(function(t){return o(this,n),a.indexOf(t)>=0}.bind(this)).classed(Ys.legendItemFocused,e)).style("opacity",(function(){return e?null:i.opacityForUnfocusedLegend.call(i,Rn(this))}))},revertLegend:function(){const t=this.$el.legend,e=this.$T;t&&e(t.selectAll("."+Xs.legendItem).classed(Ys.legendItemFocused,!1)).style("opacity",null)},showLegend:function(t){const 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){const e=this,n=e.config,i=e.$el.legend;n.legend_show&&Ko(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){const n=this,i=n.cache,r=n.state;let o;const s=Aa;return t&&(o=!r.redrawing&&i.get(s)||{},o[t]||(o[t]=n.getTextRect(e,Xs.legendItem),i.add(s,o)),o=o[t]),o},setLegendItem:function(t){var e=this;const n=this,i=n.$el,r=n.api,s=n.config,a=n.state,c="touch"===a.inputType,u=n.hasType("gauge"),l=s.boost_useCssRule,h=s.legend_item_interaction;t.attr("class",(function(t){const e=Rn(this);return(!e.empty()&&e.attr("class")||"")+n.generateClass(Xs.legendItem,t)})).style("visibility",function(t){return o(this,e),n.isLegendToShow(t)?null:"hidden"}.bind(this)),s.interaction_enabled&&(l&&[["."+Xs.legendItem,"cursor:pointer"],["."+Xs.legendItem+" text","pointer-events:none"],["."+Xs.legendItemPoint+" text","pointer-events:none"],["."+Xs.legendItemTile,"pointer-events:none"],["."+Xs.legendItemEvent,"fill-opacity:0"]].forEach(function(t){o(this,e);const r=t[0],s=t[1];n.setCssRule(!1,r,[s])(i.legend)}.bind(this)),t.on(h.dblclick?"dblclick":"click",h||Xo(s.legend_item_onclick)?function(t,e){if(!ns(s.legend_item_onclick,r,e)){const n=t.altKey,i=t.target;"dblclick"===t.type||n?a.hiddenTargetIds.length&&-1===i.parentNode.getAttribute("class").indexOf(Xs.legendItemHidden)?r.show():(r.hide(),r.show(e)):(r.toggle(e),Rn(this).classed(Ys.legendItemFocused,!1))}c&&n.hideTooltip()}:null),c||t.on("mouseout",h||Xo(s.legend_item_onout)?function(t,e){ns(s.legend_item_onout,r,e)||(Rn(this).classed(Ys.legendItemFocused,!1),u&&n.undoMarkOverlapped(n,"."+Bs.gaugeValue),n.api.revert())}:null).on("mouseover",h||Xo(s.legend_item_onover)?function(t,e){ns(s.legend_item_onover,r,e)||(Rn(this).classed(Ys.legendItemFocused,!0),u&&n.markOverlapped(e,n,"."+Bs.gaugeValue),!a.transiting&&n.isTargetToShow(e)&&r.focus(e))}:null),!t.empty()&&t.on("click mouseout mouseover")&&t.style("cursor",n.getStylePropValue("pointer")))},updateLegendElement:function(t,e){var n=this;const i=this,r=i.config,s=i.state,a=i.$el.legend,c=i.$T,u="circle"!==r.legend_item_tile_type,l=r.legend_item_tile_r,h={width:u?r.legend_item_tile_width:2*l,height:u?r.legend_item_tile_height:2*l},f={padding:{top:4,right:10},max:{width:0,height:0},posMin:10,step:0,tileWidth:h.width+5,totalLength:0},d={offsets:{},widths:{},heights:{},margins:[0],steps:{}};let g,p,v;const y=t.filter(function(t){return o(this,n),!Vo(r.data_names[t])||null!==r.data_names[t]}.bind(this)),b=e.withTransition,x=i.getUpdateLegendPositions(y,f,d);s.isLegendInset&&(f.step=r.legend_inset_step?r.legend_inset_step:y.length,i.updateLegendStep(f.step)),s.isLegendRight?(g=function(t){return o(this,n),f.max.width*d.steps[t]}.bind(this),p=function(t){return o(this,n),d.margins[d.steps[t]]+d.offsets[t]}.bind(this)):s.isLegendInset?(g=function(t){return o(this,n),f.max.width*d.steps[t]+10}.bind(this),p=function(t){return o(this,n),d.margins[d.steps[t]]+d.offsets[t]}.bind(this)):(g=function(t){return o(this,n),d.margins[d.steps[t]]+d.offsets[t]}.bind(this),p=function(t){return o(this,n),f.max.height*d.steps[t]}.bind(this));const m={xText:function(t,e){return o(this,n),g(t,e)+4+h.width}.bind(this),xRect:function(t,e){return o(this,n),g(t,e)}.bind(this),x1Tile:function(t,e){return o(this,n),g(t,e)-2}.bind(this),x2Tile:function(t,e){return o(this,n),g(t,e)-2+h.width}.bind(this),yText:function(t,e){return o(this,n),p(t,e)+9}.bind(this),yRect:function(t,e){return o(this,n),p(t,e)-5}.bind(this),yTile:function(t,e){return o(this,n),p(t,e)+4}.bind(this)};i.generateLegendItem(y,h,x,m),v=a.select("."+Xs.legendBackground+" rect"),s.isLegendInset&&f.max.width>0&&0===v.size()&&(v=a.insert("g","."+Xs.legendItem).attr("class",Xs.legendBackground).append("rect"));const _=a.selectAll("text").data(y).text(function(t){return o(this,n),Vo(r.data_names[t])?r.data_names[t]:t}.bind(this)).each((function(t,e){x(this,t,e)}));c(_,b).attr("x",m.xText).attr("y",m.yText);c(a.selectAll("rect."+Xs.legendItemEvent).data(y),b).attr("width",function(t){return o(this,n),d.widths[t]}.bind(this)).attr("height",function(t){return o(this,n),d.heights[t]}.bind(this)).attr("x",m.xRect).attr("y",m.yRect),i.updateLegendItemPos(y,b,m),v&&c(v,b).attr("height",i.getLegendHeight()-12).attr("width",f.max.width*(f.step+1)+10),i.updateLegendItemWidth(f.max.width),i.updateLegendItemHeight(f.max.height),i.updateLegendStep(f.step)},getUpdateLegendPositions:function(t,e,n){const i=this,r=i.config,s=i.state,a=s.isLegendRight||s.isLegendInset;return function(c,u,l){var h=this;const f=l===t.length-1,d=i.getLegendItemTextBox(u,c),g=d.width+e.tileWidth+(f&&!a?0:e.padding.right)+r.legend_padding,p=d.height+e.padding.top,v=a?p:g,y=a?i.getLegendHeight():i.getLegendWidth();let b;const x=function(t,i){i||(b=(y-e.totalLength-v)/2,b<e.posMin&&(b=(y-v)/2,e.totalLength=0,e.step++)),n.steps[t]=e.step,n.margins[e.step]=s.isLegendInset?10:b,n.offsets[t]=e.totalLength,e.totalLength+=v};if(0===l&&(e.totalLength=0,e.step=0,e.max.width=0,e.max.height=0),r.legend_show&&!i.isLegendToShow(u))return n.widths[u]=0,n.heights[u]=0,n.steps[u]=0,void(n.offsets[u]=0);n.widths[u]=g,n.heights[u]=p,(!e.max.width||g>=e.max.width)&&(e.max.width=g),(!e.max.height||p>=e.max.height)&&(e.max.height=p);const m=a?e.max.height:e.max.width;r.legend_equally?(Object.keys(n.widths).forEach(function(t){return o(this,h),n.widths[t]=e.max.width}.bind(this)),Object.keys(n.heights).forEach(function(t){return o(this,h),n.heights[t]=e.max.height}.bind(this)),b=(y-m*t.length)/2,b<e.posMin?(e.totalLength=0,e.step=0,t.forEach(function(t){return o(this,h),x(t)}.bind(this))):x(u,!0)):x(u)}},generateLegendItem:function(t,e,n,i){var r=this;const s=this,a=s.config,c=s.state,u=s.$el.legend,l=a.legend_usePoint,h=a.legend_item_tile_r,f=a.legend_item_tile_type,d="circle"!==f,g=c.isLegendRight||c.isLegendInset,p=-200,v=u.selectAll("."+Xs.legendItem).data(t).enter().append("g");if(s.setLegendItem(v),v.append("text").text(function(t){return o(this,r),Vo(a.data_names[t])?a.data_names[t]:t}.bind(this)).each((function(t,e){n(this,t,e)})).style("pointer-events",s.getStylePropValue("none")).attr("x",g?i.xText:-200).attr("y",g?-200:i.yText),v.append("rect").attr("class",Xs.legendItemEvent).style("fill-opacity",s.getStylePropValue("0")).attr("x",g?i.xRect:-200).attr("y",g?-200:i.yRect),l){const t=[];v.append(function(e){o(this,r);const n=Jo(a.point_pattern)?a.point_pattern:[a.point_type];-1===t.indexOf(e)&&t.push(e);let i=n[t.indexOf(e)%n.length];return"rectangle"===i&&(i="rect"),In.createElementNS(Ce.svg,"hasValidPointType"in s&&s.hasValidPointType(i)?i:"use")}.bind(this)).attr("class",Xs.legendItemPoint).style("fill",Fc.bind(s)).style("pointer-events",s.getStylePropValue("none")).attr("href",function(t,e,n){o(this,r);const i=n[e].nodeName.toLowerCase(),a=s.getTargetSelectorSuffix(t);return"use"===i?"#"+c.datetimeId+"-point"+a:void 0}.bind(this))}else v.append(d?"line":f).attr("class",Xs.legendItemTile).style("stroke",Fc.bind(s)).style("pointer-events",s.getStylePropValue("none")).call(function(t){o(this,r),"circle"===f?t.attr("r",h).style("fill",Fc.bind(s)).attr("cx",g?i.x2Tile:p).attr("cy",g?p:i.yTile):d&&t.attr("stroke-width",e.height).attr("x1",g?i.x1Tile:p).attr("y1",g?p:i.yTile).attr("x2",g?i.x2Tile:p).attr("y2",g?p:i.yTile)}.bind(this))},updateLegendItemPos:function(t,e,n){var i=this;const r=this,s=r.config,a=r.$el.legend,c=r.$T,u=s.legend_usePoint,l=s.legend_item_tile_type;if(u){c(a.selectAll("."+Xs.legendItemPoint).data(t),e).each((function(){var t=this;const e=this.nodeName.toLowerCase(),i=s.point_r;let r="x",a="y",c=2,u=2.5,l=null,h=null,f=null;if("circle"===e){const t=.2*i;r="cx",a="cy",l=i+t,c=2*i,u=-t}else if("rect"===e){const t=2.5*i;h=t,f=t,u=3}Rn(this).attr(r,function(e){return o(this,t),n.x1Tile(e)+c}.bind(this)).attr(a,function(e){return o(this,t),n.yTile(e)-u}.bind(this)).attr("r",l).attr("width",h).attr("height",f)}))}else{c(a.selectAll("."+Xs.legendItemTile).data(t),e).style("stroke",Fc.bind(r)).call(function(t){var e=this;o(this,i),"circle"===l?t.attr("cx",function(t){o(this,e);const 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))}}},Bc={redraw:function(t){var e,n=this;void 0===t&&(t={});const i=this,r=i.config,s=i.state,a=i.$el,c=a,u=c.main,l=c.treemap;s.redrawing=!0;const h=i.filterTargetsToShow(i.data.targets),f=t,d=f.flow,g=f.initializing,p=i.getWithOption(t),v=p.Transition?r.transition_duration:0,y=p.TransitionForExit?v:0,b=p.TransitionForAxis?v:0,x=null==(e=i.axis)?void 0:e.generateTransitions(b);i.updateSizes(g),p.Legend&&r.legend_show?(t.withTransition=!!v,l||i.updateLegend(i.mapToIds(i.data.targets),t,x)):p.Dimension&&i.updateDimension(!0),r.data_empty_label_text&&u.select("text."+Qs.text+"."+Cs.empty).attr("x",s.width/2).attr("y",s.height/2).text(r.data_empty_label_text).style("display",h.length?"none":null),s.hasAxis?(i.axis.redrawAxis(h,p,x,d,g),i.hasGrid()&&i.updateGrid(),r.regions.length&&i.updateRegion(),["bar","candlestick","line","area"].forEach(function(t){o(this,n);const e=gs(t);(/^(line|area)$/.test(t)&&i.hasTypeOf(e)||i.hasType(t))&&i["update"+e](p.TransitionForExit)}.bind(this)),a.text&&u.selectAll("."+Zs.selectedCircles).filter(i.isBarType.bind(i)).selectAll("circle").remove(),r.interaction_enabled&&!d&&p.EventRect&&(i.redrawEventRect(),null==i.bindZoomEvent||i.bindZoomEvent())):(a.arcs&&i.redrawArc(v,y,p.Transform),a.radar&&i.redrawRadar(),a.polar&&i.redrawPolar(),l&&i.updateTreemap(y)),s.resizing||l||!i.hasPointType()&&!s.hasRadar||i.updateCircle(),i.hasDataLabel()&&!i.hasArcType(null,["radar"])&&i.updateText(),null==i.redrawTitle||i.redrawTitle(),g&&i.updateTypesElements(),i.generateRedrawList(h,d,v,p.Subchart),i.updateTooltipOnRedraw(),i.callPluginHook("$redraw",t,v)},generateRedrawList:function(t,e,n,i){var r=this;const s=this,a=s.config,c=s.state,u=s.getDrawShape();c.hasAxis&&a.subchart_show&&s.redrawSubchart(i,n,u);const l=e&&s.generateFlow({targets:t,flow:e,duration:e.duration,shape:u,xv:s.xv.bind(s)}),h=(n||l)&&Es(),f=s.getRedrawList(u,e,l,h),d=function(){o(this,r),l&&l(),c.redrawing=!1,ns(a.onrendered,s.api)}.bind(this);if(d)if(h&&f.length){const t=Ia();io().duration(n).each(function(){var e=this;o(this,r),f.reduce(function(t,n){return o(this,e),t.concat(n)}.bind(this),[]).forEach(function(n){return o(this,e),t.add(n)}.bind(this))}.bind(this)).call(t,d)}else c.transiting||d();s.mapToIds(s.data.targets).forEach(function(t){o(this,r),c.withoutFadeIn[t]=!0}.bind(this))},getRedrawList:function(t,e,n,i){var r=this;const s=this,a=s.config,c=s.state,u=c.hasAxis,l=c.hasRadar,h=c.hasTreemap,f=s.$el.grid,d=t.pos,g=d.cx,p=d.cy,v=d.xForText,y=d.yForText,b=[];return u&&((a.grid_x_lines.length||a.grid_y_lines.length)&&b.push(s.redrawGrid(i)),a.regions.length&&b.push(s.redrawRegion(i)),Object.keys(t.type).forEach(function(e){o(this,r);const n=gs(e),a=t.type[e];(/^(area|line)$/.test(e)&&s.hasTypeOf(n)||s.hasType(e))&&b.push(s["redraw"+n](a,i))}.bind(this)),!e&&f.main&&b.push(s.updateGridFocus())),s.hasArcType()&&!l||Jo(a.data_labels)&&!1!==a.data_labels&&b.push(s.redrawText(v,y,e,i)),!s.hasPointType()&&!l||a.point_focus_only||s.redrawCircle&&b.push(s.redrawCircle(g,p,i,n)),h&&b.push(s.redrawTreemap(i)),b},updateAndRedraw:function(t){void 0===t&&(t={});const e=this,n=e.config,i=e.state;let r;t.withTransition=es(t,"withTransition",!0),t.withTransform=es(t,"withTransform",!1),t.withLegend=es(t,"withLegend",!1),t.withUpdateXDomain=!0,t.withUpdateOrgXDomain=!0,t.withTransitionForExit=!1,t.withTransitionForTransform=es(t,"withTransitionForTransform",t.withTransition),t.withLegend&&n.legend_show||(i.hasAxis&&(r=e.axis.generateTransitions(t.withTransitionForAxis?n.transition_duration:0)),e.updateScales(),e.updateSvgSize(),e.transformAll(t.withTransitionForTransform,r)),e.redraw(t,r)}};const Xc=Math.sqrt(50),$c=Math.sqrt(10),Uc=Math.sqrt(2);function Yc(t,e,n){const i=(e-t)/Math.max(0,n),r=Math.floor(Math.log10(i)),o=i/Math.pow(10,r),s=o>=Xc?10:o>=$c?5:o>=Uc?2:1;let a,c,u;return r<0?(u=Math.pow(10,-r)/s,a=Math.round(t*u),c=Math.round(e*u),a/u<t&&++a,c/u>e&&--c,u=-u):(u=Math.pow(10,r)*s,a=Math.round(t/u),c=Math.round(e/u),a*u<t&&++a,c*u>e&&--c),c<a&&.5<=n&&n<2?Yc(t,e,2*n):[a,c,u]}function Vc(t,e,n){if(!((n=+n)>0))return[];if((t=+t)===(e=+e))return[t];const i=e<t,r=i?Yc(e,t,n):Yc(t,e,n),o=r[0],s=r[1],a=r[2];if(!(s>=o))return[];const c=s-o+1,u=Array(c);if(i)if(a<0)for(let t=0;t<c;++t)u[t]=(s-t)/-a;else for(let t=0;t<c;++t)u[t]=(s-t)*a;else if(a<0)for(let t=0;t<c;++t)u[t]=(o+t)/-a;else for(let t=0;t<c;++t)u[t]=(o+t)*a;return u}function Gc(t,e,n){return Yc(t=+t,e=+e,n=+n)[2]}function Hc(t,e,n){n=+n;const i=(e=+e)<(t=+t),r=i?Gc(e,t,n):Gc(t,e,n);return(i?-1:1)*(r<0?1/-r:r)}function Wc(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function qc(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Zc(t){var e=this;let n,i,r;function s(t,e,r,o){if(void 0===r&&(r=0),void 0===o&&(o=t.length),r<o){if(0!==n(e,e))return o;do{const n=r+o>>>1;i(t[n],e)<0?r=n+1:o=n}while(r<o)}return r}return 2!==t.length?(n=Wc,i=function(n,i){return o(this,e),Wc(t(n),i)}.bind(this),r=function(n,i){return o(this,e),t(n)-i}.bind(this)):(n=t===Wc||t===qc?t:Kc,i=t,r=t),{left:s,center:function(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=t.length);const o=s(t,e,n,i-1);return o>n&&r(t[o-1],e)>-r(t[o],e)?o-1:o},right:function(t,e,r,o){if(void 0===r&&(r=0),void 0===o&&(o=t.length),r<o){if(0!==n(e,e))return o;do{const n=r+o>>>1;i(t[n],e)<=0?r=n+1:o=n}while(r<o)}return r}}}function Kc(){return 0}const Jc=Zc(Wc),Qc=Jc.right;Jc.left,Zc((function(t){return null===t?NaN:+t})).center;var tu=Qc;function eu(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function nu(t){return+t}var iu=[0,1];function ru(t){return t}function ou(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function su(t,e,n){var i=t[0],r=t[1],o=e[0],s=e[1];return r<i?(i=ou(r,i),o=n(s,o)):(i=ou(i,r),o=n(o,s)),function(t){return o(i(t))}}function au(t,e,n){var i=Math.min(t.length,e.length)-1,r=Array(i),o=Array(i),s=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<i;)r[s]=ou(t[s],t[s+1]),o[s]=n(e[s],e[s+1]);return function(e){var n=tu(t,e,1,i)-1;return o[n](r[n](e))}}function cu(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function uu(){var t,e,n,i,r,o,s=iu,a=iu,c=qi,u=ru;function l(){var t,e,n,c=Math.min(s.length,a.length);return u!==ru&&(t=s[0],e=s[c-1],t>e&&(n=t,t=e,e=n),u=function(n){return Math.max(t,Math.min(e,n))}),i=c>2?au:su,r=o=null,h}function h(e){return null==e||isNaN(e=+e)?n:(r||(r=i(s.map(t),a,c)))(t(u(e)))}return h.invert=function(n){return u(e((o||(o=i(a,s.map(t),Yi)))(n)))},h.domain=function(t){return arguments.length?(s=Array.from(t,nu),l()):s.slice()},h.range=function(t){return arguments.length?(a=Array.from(t),l()):a.slice()},h.rangeRound=function(t){return a=Array.from(t),c=eu,l()},h.clamp=function(t){return arguments.length?(u=!!t||ru,l()):u!==ru},h.interpolate=function(t){return arguments.length?(c=t,l()):c},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,i){return t=n,e=i,l()}}function lu(){return uu()(ru,ru)}var hu,fu=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function du(t){if(!(e=fu.exec(t)))throw new Error("invalid format: "+t);var e;return new gu({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 gu(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 pu(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 vu(t){return(t=pu(Math.abs(t)))?t[1]:NaN}function yu(t,e){var n=pu(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")}du.prototype=gu.prototype,gu.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 bu=void 0,xu={"%":function(t,e){return o(this,bu),(100*t).toFixed(e)}.bind(void 0),b:function(t){return o(this,bu),Math.round(t).toString(2)}.bind(void 0),c:function(t){return o(this,bu),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 o(this,bu),t.toExponential(e)}.bind(void 0),f:function(t,e){return o(this,bu),t.toFixed(e)}.bind(void 0),g:function(t,e){return o(this,bu),t.toPrecision(e)}.bind(void 0),o:function(t){return o(this,bu),Math.round(t).toString(8)}.bind(void 0),p:function(t,e){return o(this,bu),yu(100*t,e)}.bind(void 0),r:yu,s:function(t,e){var n=pu(t,e);if(!n)return t+"";var i=n[0],r=n[1],o=r-(hu=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,s=i.length;return o===s?i:o>s?i+Array(o-s+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+Array(1-o).join("0")+pu(t,Math.max(0,e+o-1))[0]},X:function(t){return o(this,bu),Math.round(t).toString(16).toUpperCase()}.bind(void 0),x:function(t){return o(this,bu),Math.round(t).toString(16)}.bind(void 0)};function mu(t){return t}var _u,Tu,wu,Au=Array.prototype.map,Su=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Eu(t){var e,n,i=void 0===t.grouping||void 0===t.thousands?mu:(e=Au.call(t.grouping,Number),n=t.thousands+"",function(t,i){for(var r=t.length,o=[],s=0,a=e[0],c=0;r>0&&a>0&&(c+a+1>i&&(a=Math.max(1,i-c)),o.push(t.substring(r-=a,r+a)),!((c+=a+1)>i));)a=e[s=(s+1)%e.length];return o.reverse().join(n)}),r=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?mu:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Au.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",u=void 0===t.minus?"−":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function h(t){var e=(t=du(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,b=t.type;"n"===b?(p=!0,b="g"):xu[b]||(void 0===v&&(v=12),y=!0,b="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var x="$"===f?r:"#"===f&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",m="$"===f?o:/[%p]/.test(b)?c:"",_=xu[b],T=/[defgprs%]/.test(b);function w(t){var r,o,c,f=x,w=m;if("c"===b)w=_(t)+w,t="";else{var A=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:_(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:u:"-"===h||"("===h?"":h)+f,w=("s"===b?Su[8+hu/3]:"")+w+(A&&"("===h?")":""),T)for(r=-1,o=t.length;++r<o;)if(48>(c=t.charCodeAt(r))||c>57){w=(46===c?s+t.slice(r+1):t.slice(r))+w,t=t.slice(0,r);break}}p&&!d&&(t=i(t,1/0));var S=f.length+t.length+w.length,E=S<g?Array(g-S+1).join(e):"";switch(p&&d&&(t=i(E+t,E.length?g-w.length:1/0),E=""),n){case"<":t=f+t+w+E;break;case"=":t=f+E+t+w;break;case"^":t=E.slice(0,S=E.length>>1)+f+t+w+E.slice(S);break;default:t=E+f+t+w}return a(t)}return v=void 0===v?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),w.toString=function(){return t+""},w}return{format:h,formatPrefix:function(t,e){var n=h(((t=du(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(vu(e)/3))),r=Math.pow(10,-i),o=Su[8+i/3];return function(t){return n(r*t)+o}}}}function ku(t,e,n,i){var r,o=Hc(t,e,n);switch((i=du(null==i?",f":i)).type){case"s":var s=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(vu(e)/3)))-vu(Math.abs(t)))}(o,s))||(i.precision=r),wu(i,s);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,vu(e)-vu(t))+1}(o,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,-vu(Math.abs(t)))}(o))||(i.precision=r-2*("%"===i.type))}return Tu(i)}function Ou(t){var e=t.domain;return t.ticks=function(t){var n=e();return Vc(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var i=e();return ku(i[0],i[i.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var i,r,o=e(),s=0,a=o.length-1,c=o[s],u=o[a],l=10;for(u<c&&(r=c,c=u,u=r,r=s,s=a,a=r);l-- >0;){if((r=Gc(c,u,n))===i)return o[s]=c,o[a]=u,e(o);if(r>0)c=Math.floor(c/r)*r,u=Math.ceil(u/r)*r;else{if(!(r<0))break;c=Math.ceil(c*r)/r,u=Math.floor(u*r)/r}i=r}return t},t}function Mu(){var t=lu();return t.copy=function(){return cu(t,Mu())},kc.apply(t,arguments),Ou(t)}function Ru(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Cu(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Iu(){var t=function(t){var e=1,n=t(Ru(e),Cu(e));return n.constant=function(n){return arguments.length?t(Ru(e=+n),Cu(e)):e},Ou(n)}(uu());return t.copy=function(){return cu(t,Iu()).constant(t.constant())},kc.apply(t,arguments)}function Pu(t,e){var n,i=0,r=(t=t.slice()).length-1,o=t[i],s=t[r];return s<o&&(n=i,i=r,r=n,n=o,o=s,s=n),t[i]=e.floor(o),t[r]=e.ceil(s),t}function Lu(t){return Math.log(t)}function Du(t){return Math.exp(t)}function Nu(t){return-Math.log(-t)}function zu(t){return-Math.exp(-t)}function Fu(t){return isFinite(t)?+("1e"+t):t<0?0:t}function ju(t){var e=this;return function(n,i){return o(this,e),-t(-n,i)}.bind(this)}function Bu(t){var e=this;const n=t(Lu,Du),i=n.domain;let r,s,a=10;function c(){return r=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 o(this,e),Math.log(n)/t}.bind(this))}(a),s=function(t){var e=this;return 10===t?Fu:t===Math.E?Math.exp:function(n){return o(this,e),Math.pow(t,n)}.bind(this)}(a),i()[0]<0?(r=ju(r),s=ju(s),t(Nu,zu)):t(Lu,Du),n}return n.base=function(t){return arguments.length?(a=+t,c()):a},n.domain=function(t){return arguments.length?(i(t),c()):i()},n.ticks=function(t){o(this,e);const n=i();let c=n[0],u=n[n.length-1];const l=u<c;if(l){var h=[u,c];c=h[0],u=h[1]}let f,d,g=r(c),p=r(u);const v=null==t?10:+t;let y=[];if(!(a%1)&&p-g<v){if(g=Math.floor(g),p=Math.ceil(p),c>0){for(;g<=p;++g)for(f=1;f<a;++f)if(d=g<0?f/s(-g):f*s(g),!(d<c)){if(d>u)break;y.push(d)}}else for(;g<=p;++g)for(f=a-1;f>=1;--f)if(d=g>0?f/s(-g):f*s(g),!(d<c)){if(d>u)break;y.push(d)}2*y.length<v&&(y=Vc(c,u,v))}else y=Vc(g,p,Math.min(p-g,v)).map(s);return l?y.reverse():y}.bind(this),n.tickFormat=function(t,i){var c=this;if(o(this,e),null==t&&(t=10),null==i&&(i=10===a?"s":","),"function"!=typeof i&&(a%1||null!=(i=du(i)).precision||(i.trim=!0),i=Tu(i)),t===1/0)return i;const u=Math.max(1,a*t/n.ticks().length);return function(t){o(this,c);let e=t/s(Math.round(r(t)));return e*a<a-.5&&(e*=a),e<=u?i(t):""}.bind(this)}.bind(this),n.nice=function(){var t=this;return o(this,e),i(Pu(i(),{floor:function(e){return o(this,t),s(Math.floor(r(e)))}.bind(this),ceil:function(e){return o(this,t),s(Math.ceil(r(e)))}.bind(this)}))}.bind(this),n}function Xu(){var t=this;const e=Bu(uu()).domain([1,10]);return e.copy=function(){return o(this,t),cu(e,Xu()).base(e.base())}.bind(this),kc.apply(e,arguments),e}!function(t){_u=Eu(t),Tu=_u.format,wu=_u.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});var $u=void 0;const Uu=c(function(){o(this,$u)}.bind(void 0),function(t,e){o(this,$u),t.setTime(+t+e)}.bind(void 0),function(t,e){return o(this,$u),e-t}.bind(void 0));Uu.every=function(t){var e=this;return o(this,$u),t=Math.floor(t),isFinite(t)&&t>0?t>1?c(function(n){o(this,e),n.setTime(Math.floor(n/t)*t)}.bind(this),function(n,i){o(this,e),n.setTime(+n+i*t)}.bind(this),function(n,i){return o(this,e),(i-n)/t}.bind(this)):Uu:null}.bind(void 0);Uu.range;var Yu=void 0;const Vu=c(function(t){o(this,Yu),t.setTime(t-t.getMilliseconds())}.bind(void 0),function(t,e){o(this,Yu),t.setTime(+t+e*u)}.bind(void 0),function(t,e){return o(this,Yu),(e-t)/u}.bind(void 0),function(t){return o(this,Yu),t.getUTCSeconds()}.bind(void 0));Vu.range;var Gu=void 0;const Hu=c(function(t){o(this,Gu),t.setTime(t-t.getMilliseconds()-t.getSeconds()*u)}.bind(void 0),function(t,e){o(this,Gu),t.setTime(+t+e*l)}.bind(void 0),function(t,e){return o(this,Gu),(e-t)/l}.bind(void 0),function(t){return o(this,Gu),t.getMinutes()}.bind(void 0)),Wu=(Hu.range,c(function(t){o(this,Gu),t.setUTCSeconds(0,0)}.bind(void 0),function(t,e){o(this,Gu),t.setTime(+t+e*l)}.bind(void 0),function(t,e){return o(this,Gu),(e-t)/l}.bind(void 0),function(t){return o(this,Gu),t.getUTCMinutes()}.bind(void 0)));Wu.range;var qu=void 0;const Zu=c(function(t){o(this,qu),t.setTime(t-t.getMilliseconds()-t.getSeconds()*u-t.getMinutes()*l)}.bind(void 0),function(t,e){o(this,qu),t.setTime(+t+e*h)}.bind(void 0),function(t,e){return o(this,qu),(e-t)/h}.bind(void 0),function(t){return o(this,qu),t.getHours()}.bind(void 0)),Ku=(Zu.range,c(function(t){o(this,qu),t.setUTCMinutes(0,0,0)}.bind(void 0),function(t,e){o(this,qu),t.setTime(+t+e*h)}.bind(void 0),function(t,e){return o(this,qu),(e-t)/h}.bind(void 0),function(t){return o(this,qu),t.getUTCHours()}.bind(void 0)));Ku.range;var Ju=void 0;const Qu=c(function(t){o(this,Ju),t.setDate(1),t.setHours(0,0,0,0)}.bind(void 0),function(t,e){o(this,Ju),t.setMonth(t.getMonth()+e)}.bind(void 0),function(t,e){return o(this,Ju),e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}.bind(void 0),function(t){return o(this,Ju),t.getMonth()}.bind(void 0)),tl=(Qu.range,c(function(t){o(this,Ju),t.setUTCDate(1),t.setUTCHours(0,0,0,0)}.bind(void 0),function(t,e){o(this,Ju),t.setUTCMonth(t.getUTCMonth()+e)}.bind(void 0),function(t,e){return o(this,Ju),e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}.bind(void 0),function(t){return o(this,Ju),t.getUTCMonth()}.bind(void 0)));tl.range;function el(t,e,n,i,r,s){const a=[[Vu,1,u],[Vu,5,5e3],[Vu,15,15e3],[Vu,30,3e4],[s,1,l],[s,5,3e5],[s,15,9e5],[s,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 c(e,n,i){var r=this;const s=Math.abs(n-e)/i,c=Zc(function(t){let e=t[2];return o(this,r),e}.bind(this)).right(a,s);if(c===a.length)return t.every(Hc(e/p,n/p,i));if(0===c)return Uu.every(Math.max(Hc(e,n,i),1));const u=a[s/a[c-1][2]<a[c][2]/s?c-1:c],l=u[0],h=u[1];return l.every(h)}return[function(t,e,n){const i=e<t;if(i){var r=[e,t];t=r[0],e=r[1]}const o=n&&"function"==typeof n.range?n:c(t,e,n),s=o?o.range(t,+e+1):[];return i?s.reverse():s},c]}const nl=el(F,tl,S,D,Ku,Wu),il=nl[0],rl=nl[1],ol=el(z,Qu,y,P,Zu,Hu),sl=ol[0],al=ol[1];function cl(t){return new Date(t)}function ul(t){return t instanceof Date?+t:+new Date(+t)}function ll(t,e,n,i,r,o,s,a,c,u){var l=lu(),h=l.invert,f=l.domain,d=u(".%L"),g=u(":%S"),p=u("%I:%M"),v=u("%I %p"),y=u("%a %d"),b=u("%b %d"),x=u("%B"),m=u("%Y");function _(t){return(c(t)<t?d:a(t)<t?g:s(t)<t?p:o(t)<t?v:i(t)<t?r(t)<t?y:b:n(t)<t?x:m)(t)}return l.invert=function(t){return new Date(h(t))},l.domain=function(t){return arguments.length?f(Array.from(t,ul)):f().map(cl)},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?_:u(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(Pu(n,t)):l},l.copy=function(){return cu(l,ll(t,e,n,i,r,o,s,a,c,u))},l}function hl(){return kc.apply(ll(sl,al,z,Qu,y,P,Zu,Hu,Vu,U).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function fl(){return kc.apply(ll(il,rl,F,tl,S,L,Ku,Wu,Vu,V).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function dl(t,e,n){void 0===t&&(t="linear"),void 0===e&&(e=0),void 0===n&&(n=1);const i={linear:Mu,log:Iu,_log:Xu,time:hl,utc:fl}[t]();return i.type=t,/_?log/.test(t)&&i.clamp(!0),i.range([e,n])}var gl={getXScale:function(t,e,n,i){const r=this,o=r.scale.zoom||dl(r.axis.getAxisType("x"),t,e);return r.getCustomizedXScale(n?o.domain(n):o,i)},getYScale:function(t,e,n,i){const r=dl(this.axis.getAxisType(t),e,n);return i&&r.domain(i),r},getYScaleById:function(t,e){var n;void 0===e&&(e=!1);const i="y2"===(null==(n=this.axis)?void 0:n.getId(t)),r=e?i?"subY2":"subY":i?"y2":"y";return this.scale[r]},getCustomizedXScale:function(t,e){var n=this;const i=this,r=e||function(){return o(this,n),i.axis.x.tickOffset()}.bind(this),s=i.config.axis_x_inverted,a=function(e,n){const i=t(e)+r();return n?i:Math.ceil(i)};for(const e in t)a[e]=t[e];return a.orgDomain=function(){return o(this,n),t.domain()}.bind(this),a.orgScale=function(){return o(this,n),t}.bind(this),i.axis.isCategorized()&&(a.domain=function(e){let n=e;return arguments.length?(t.domain(n),a):(n=this.orgDomain(),s?[n[0]+1,n[1]]:[n[0],n[1]+1])}),a},updateScales:function(t,e){var n=this;void 0===e&&(e=!0);const i=this,r=i.axis,s=i.config,a=i.format,c=i.org,u=i.scale,l=i.state,h=l.current,f=l.width,d=l.height,g=l.width2,p=l.height2,v=l.hasAxis,y=l.hasTreemap;if(v){var b;const l=s.axis_rotated,h=i.getResettedPadding(1),v={x:l?h:0,y:l?0:d,subX:l?1:0,subY:l?0:p},y={x:l?d:f,y:l?f:h,subX:l?d:f,subY:l?g:1},x=e&&(null==(b=u.x)?void 0:b.orgDomain()),m=e&&c.xDomain;u.x=i.getXScale(v.x,y.x,x,function(){return o(this,n),r.x.tickOffset()}.bind(this)),u.subX=i.getXScale(v.x,y.x,m,function(t){var e;return o(this,n),t%1?0:(null!=(e=r.subX)?e:r.x).tickOffset()}.bind(this)),a.xAxisTick=r.getXAxisTickFormat(),a.subXAxisTick=r.getXAxisTickFormat(!0),r.setAxis("x",u.x,s.axis_x_tick_outer,t),s.subchart_show&&r.setAxis("subX",u.subX,s.axis_x_tick_outer,t),u.y=i.getYScale("y",v.y,y.y,u.y?u.y.domain():s.axis_y_default),u.subY=i.getYScale("y",v.subY,y.subY,u.subY?u.subY.domain():s.axis_y_default),r.setAxis("y",u.y,s.axis_y_tick_outer,t),s.axis_y2_show&&(u.y2=i.getYScale("y2",v.y,y.y,u.y2?u.y2.domain():s.axis_y2_default),u.subY2=i.getYScale("y2",v.subY,y.subY,u.subY2?u.subY2.domain():s.axis_y2_default),r.setAxis("y2",u.y2,s.axis_y2_tick_outer,t))}else if(y){const t=i.getCurrentPadding();u.x=Mu().rangeRound([t.left,h.width-t.right]),u.y=Mu().rangeRound([t.top,h.height-t.bottom])}else null==i.updateArc||i.updateArc()},xx:function(t){const e=this.config,n=this.scale,i=n.x,r=n.zoom,o=e.zoom_enabled&&r?r:i;return t?o(Bo(t.x)?t.x:t):null},xv:function(t){const e=this,n=e.axis,i=e.config,r=e.scale,o=r.x,s=r.zoom,a=i.zoom_enabled&&s?s:o;let c=e.getBaseValue(t);return n.isTimeSeries()?c=Ss.call(e,c):n.isCategorized()&&$o(c)&&(c=i.axis_x_categories.indexOf(c)),Math.ceil(a(c))},yv:function(t){const 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 pl(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 vl(t){this._context=t}function yl(t){return new vl(t)}function bl(){}function xl(t){this._context=t}function ml(t){return new xl(t)}function _l(t){this._context=t}function Tl(t){return new _l(t)}function wl(t,e){this._basis=new vl(t),this._beta=e}vl.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:pl(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:pl(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},xl.prototype={areaStart:bl,areaEnd:bl,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:pl(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},_l.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:pl(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},wl.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],o=e[0],s=t[n]-r,a=e[n]-o,c=-1;++c<=n;)i=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(r+i*s),this._beta*e[c]+(1-this._beta)*(o+i*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Al=function t(e){function n(t){return 1===e?new vl(t):new wl(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function Sl(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 El(t,e){this._context=t,this._k=(1-e)/6}El.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:Sl(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:Sl(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 kl=function t(e){function n(t){return new El(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Ol(t,e){this._context=t,this._k=(1-e)/6}Ol.prototype={areaStart:bl,areaEnd:bl,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:Sl(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 Ml=function t(e){function n(t){return new Ol(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Rl(t,e){this._context=t,this._k=(1-e)/6}Rl.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:Sl(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 Cl=function t(e){function n(t){return new Rl(t,e)}return n.tension=function(e){return t(+e)},n}(0);const Il=Math.abs,Pl=Math.atan2,Ll=Math.cos,Dl=Math.max,Nl=Math.min,zl=Math.sin,Fl=Math.sqrt,jl=1e-12,Bl=Math.PI,Xl=Bl/2,$l=2*Bl;function Ul(t){return t>=1?Xl:t<=-1?-Xl:Math.asin(t)}function Yl(t,e,n){var i=t._x1,r=t._y1,o=t._x2,s=t._y2;if(t._l01_a>jl){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,r=(r*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>jl){var u=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);o=(o*u+t._x1*t._l23_2a-e*t._l12_2a)/l,s=(s*u+t._y1*t._l23_2a-n*t._l12_2a)/l}t._context.bezierCurveTo(i,r,o,s,t._x2,t._y2)}function Vl(t,e){this._context=t,this._alpha=e}Vl.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:Yl(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 Gl=function t(e){function n(t){return e?new Vl(t,e):new El(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Hl(t,e){this._context=t,this._alpha=e}Hl.prototype={areaStart:bl,areaEnd:bl,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:Yl(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 Wl=function t(e){function n(t){return e?new Hl(t,e):new Ol(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: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:Yl(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 Zl=function t(e){function n(t){return e?new ql(t,e):new Rl(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Kl(t){return t<0?-1:1}function Jl(t,e,n){var i=t._x1-t._x0,r=e-t._x1,o=(t._y1-t._y0)/(i||r<0&&-0),s=(n-t._y1)/(r||i<0&&-0);return(Kl(o)+Kl(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs((o*r+s*i)/(i+r)))||0}function Ql(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function th(t,e,n){var i=t._x0,r=t._y0,o=t._x1,s=t._y1,a=(o-i)/3;t._context.bezierCurveTo(i+a,r+a*e,o-a,s-a*n,o,s)}function eh(t){this._context=t}function nh(t){this._context=new ih(t)}function ih(t){this._context=t}function rh(t){return new eh(t)}function oh(t){return new nh(t)}function sh(t){this._context=t}function ah(t){var e,n,i=t.length-1,r=Array(i),o=Array(i),s=Array(i);for(r[0]=0,o[0]=2,s[0]=t[0]+2*t[1],e=1;e<i-1;++e)r[e]=1,o[e]=4,s[e]=4*t[e]+2*t[e+1];for(r[i-1]=2,o[i-1]=7,s[i-1]=8*t[i-1]+t[i],e=1;e<i;++e)n=r[e]/o[e-1],o[e]-=n,s[e]-=n*s[e-1];for(r[i-1]=s[i-1]/o[i-1],e=i-2;e>=0;--e)r[e]=(s[e]-r[e+1])/o[e];for(o[i-1]=(t[i]+r[i-1])/2,e=0;e<i-1;++e)o[e]=2*t[e+1]-r[e+1];return[r,o]}function ch(t){return new sh(t)}function uh(t){this._context=t}function lh(t){return new uh(t)}function hh(t){this._context=t}function fh(t){return new hh(t)}function dh(t,e){this._context=t,this._t=e}function gh(t){return new dh(t,.5)}function ph(t){return new dh(t,0)}function vh(t){return new dh(t,1)}function yh(t){const e=this;let n;return e.isLineType(t)?n=e.generateGetLinePoints(e.getShapeIndices(e.isLineType)):e.isBarType(t)&&(n=e.generateGetBarPoints(e.getShapeIndices(e.isBarType))),n}eh.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:th(this,this._t0,Ql(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,th(this,Ql(this,n=Jl(this,t,e)),n);break;default:th(this,this._t0,n=Jl(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(nh.prototype=Object.create(eh.prototype)).point=function(t,e){eh.prototype.point.call(this,e,t)},ih.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,o){this._context.bezierCurveTo(e,t,i,n,o,r)}},sh.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=ah(t),r=ah(e),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(i[0][o],r[0][o],i[1][o],r[1][o],t[s],e[s]);(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)}},uh.prototype={areaStart:bl,areaEnd:bl,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))}},hh.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)}}},dh.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 bh={getDrawShape:function(){var t=this;const e=this,n=e.config.axis_rotated,i=e.state,r=i.hasRadar,s=i.hasTreemap,a={type:{},indices:{},pos:{}};if(s||["bar","candlestick","line","area"].forEach(function(n){o(this,t);const i=gs(/^(bubble|scatter)$/.test(n)?"line":n);if(e.hasType(n)||e.hasTypeOf(i)||"line"===n&&(e.hasType("bubble")||e.hasType("scatter"))){const t=e.getShapeIndices(e["is"+i+"Type"]),r=e["generateDraw"+i];a.indices[n]=t,a.type[n]=r?r.bind(e)(t,!1):void 0}}.bind(this)),!e.hasArcType()||r||s){let t,i;s||(t=r?e.radarCircleX:n?e.circleY:e.circleX,i=r?e.radarCircleY:n?e.circleX:e.circleY),a.pos={xForText:e.generateXYForText(a.indices,!0),yForText:e.generateXYForText(a.indices,!1),cx:(t||function(){}).bind(e),cy:(i||function(){}).bind(e)}}return a},getShapeIndices:function(t){var e=this;const n=this,i=n.config,r=i.data_xs,s=Jo(r),a={};let c=s?{}:0;return s&&ys(Object.keys(r).map(function(t){return o(this,e),r[t]}.bind(this))).forEach(function(t){o(this,e),c[t]=0,a[t]={}}.bind(this)),n.filterTargetsToShow(n.data.targets.filter(t,n)).forEach(function(t){o(this,e);const n=t.id in r?r[t.id]:"",s=n?a[n]:a;for(let e,r=0;e=i.data_groups[r];r++)if(!(e.indexOf(t.id)<0))for(let i,r=0;i=e[r];r++){if(i in s){s[t.id]=s[i];break}var u;if(t.id!==i&&n)s[i]=null!=(u=s[t.id])?u:c[n]}Yo(s[t.id])&&(s[t.id]=n?c[n]++:c++,s.__max__=(n?c[n]:c)-1)}.bind(this)),a},getIndices:function(t,e){var n=this;const i=this,r=i.config,s=r.data_xs,a=r.bar_indices_removeNull,c=e.id,u=e.index;if(i.isBarType(c)&&a){const t={};return i.getAllValuesOnIndex(u,!0).forEach(function(e,i){o(this,n),t[e.id]=i,t.__max__=i}.bind(this)),t}return Jo(s)?t[s[c]]:t},getIndicesMax:function(t){var e=this;return Jo(this.config.data_xs)?Object.keys(t).map(function(n){return o(this,e),t[n].__max__||0}.bind(this)).reduce(function(t,n){return o(this,e),t+n}.bind(this)):t.__max__},getShapeX:function(t,e,n){var i=this;const r=this,s=r.config,a=r.scale,c=n?a.subX:a.zoom||a.x,u=s.bar_overlap,l=s.bar_padding,h=function(t,e){return o(this,i),t+e}.bind(this),f=Zo(t)&&(t._$total.length?t._$total.reduce(h)/2:0);return function(n){o(this,i);const s=r.getIndices(e,n,"getShapeX"),a=n.id in s?s[n.id]:0,d=(s.__max__||0)+1;let g=0;if(Jo(n.x)){const e=c(n.x,!0);if(f){const i=t[n.id]||t._$width;g=u?e-i/2:e-i+t._$total.slice(0,a+1).reduce(h)-f}else g=e-(Uo(t)?t:t._$width)*(d/2-(u?1:a))}return t&&g&&d>1&&l&&(a&&(g+=l*a),d>2?g-=(d-1)*l/2:2===d&&(g-=l/2)),g}.bind(this)},getShapeY:function(t){var e=this;const n=this,i=n.isStackNormalized();return function(r){o(this,e);let s=r.value;return Uo(r)?s=r:i?s=n.getRatio("index",r,!0):n.isBubbleZType(r)?s=n.getBubbleZData(r.value,"y"):n.isBarRangeType(r)&&(s=s[1]),n.getYScaleById(r.id,t)(s)}.bind(this)},getShapeYMin:function(t){const 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;const n=this,i=n.orderTargets(n.filterTargetsToShow(n.data.targets.filter(t,n))),r=n.isStackNormalized(),s=i.map(function(t){var i=this;o(this,e);let s=t.values;const a={};n.isStepType(t)&&(s=n.convertValuesToStep(s));const c=s.reduce(function(t,e){o(this,i);const s=+e.x;return t[s]=e,a[s]=r?n.getRatio("index",e,!0):e.value,t}.bind(this),{});return{id:t.id,rowValues:s,rowValueMapByXValue:c,values:a}}.bind(this)),a=i.reduce(function(t,n,i){let r=n.id;return o(this,e),t[r]=i,t}.bind(this),{});return{indexMapByTargetId:a,shapeOffsetTargets:s}},getShapeOffset:function(t,e,n){var i=this;const r=this,s=r.getShapeOffsetData(t),a=s.shapeOffsetTargets,c=s.indexMapByTargetId,u=r.config.data_groupsZeroAs;return function(t,s){var l=this;o(this,i);const 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]);const v=+d,y=p("zero"===u?0:r.getShapeYMin(h));let b=y;return a.filter(function(t){return o(this,l),t.id!==h&&g[t.id]===g[h]}.bind(this)).forEach(function(t){o(this,l);const e=t.id,n=t.rowValueMapByXValue,i=t.rowValues,r=t.values;if(c[e]<c[h]){var a;const t=r[v];let e=i[s];if(e&&+e.x===v||(e=n[v]),(null==(a=e)?void 0:a.value)*f>=0&&Uo(t)){(0!==f||("positive"===u&&t>0||"negative"===u&&t<0))&&(b+=p(t)-y)}}}.bind(this)),b}.bind(this)},circleY:function(t,e){const n=this,i=t.id;let r;return n.isGrouped(i)&&(r=yh.bind(n)(t)),r?r(t,e)[0][1]:n.getYScaleById(i)(n.getBaseValue(t))},getBarW:function(t,e,n){var i=this;const r=this,s=r.config,a=r.org,c=r.scale,u=r.getMaxDataCount(),l="bar"===t&&s.data_groups.length,h=t+"_width",f=c.zoom&&!r.axis.isCategorized()?a.xDomain.map(function(t){return o(this,i),c.zoom(t)}.bind(this)).reduce(function(t,e){return o(this,i),Math.abs(t)+e}.bind(this))/u:e.tickInterval(u),d=function(t){o(this,i);const e=t?s[h][t]:s[h],r=t?e.ratio:s[h+"_ratio"],a=t?e.max:s[h+"_max"],c=Uo(e)?e:n?f*r/n:0;return a&&c>a?a:c}.bind(this);let g=d();return!l&&Zo(s[h])&&(g={_$width:g,_$total:[]},r.filterTargetsToShow(r.data.targets).forEach(function(t){o(this,i),s[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;const r=this,s=r.$el,a=Bo(e)?"-"+e:"";let c=s[t];return c=c&&!c.empty()?c.filter(function(t){return o(this,i),!n||t.id===n}.bind(this)).filter(function(t){return o(this,i),!Bo(e)||t.index===e}.bind(this)):(n?s.main.selectAll("."+ia[t+"s"]+r.getTargetSelectorSuffix(n)):s.main).selectAll("."+ia[t]+a),c},isWithinShape:function(t,e){const n=this,i=Rn(t);let r;return n.isTargetToShow(e.id)?null!=n.hasValidPointType&&n.hasValidPointType(t.nodeName)?r=n.isStepType(e)?n.isWithinStep(t,n.getYScaleById(e.id)(e.value)):n.isWithinCircle(t,n.isBubbleType(e)?1.5*n.pointSelectR(e):0):"path"===t.nodeName&&(r=!i.classed(ia.bar)||n.isWithinBar(t)):r=!1,r},getInterpolate:function(t){const e=this.getInterpolateType(t);return{basis:yl,"basis-closed":ml,"basis-open":Tl,bundle:Al,cardinal:kl,"cardinal-closed":Ml,"cardinal-open":Cl,"catmull-rom":Gl,"catmull-rom-closed":Wl,"catmull-rom-open":Zl,"monotone-x":rh,"monotone-y":oh,natural:ch,"linear-closed":lh,linear:fh,step:gh,"step-after":vh,"step-before":ph}[e]},getInterpolateType:function(t){const 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){const e=as(this.state.event,t),n=ss(t),i=n[0],r=n[1],o=Math.min(i.x,r.x),s=Math.min(i.y,r.y),a=this.config.bar_sensitivity,c=t.getBBox(),u=c.width,l=c.height;return o-a<e[0]&&e[0]<o+u+a&&s-a<e[1]&&e[1]<s+l+a}},xh={setContainerSize:function(){const 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(){const 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(){const t=this,e=t.config,n=t.state.hasAxis,i=t.$el,r=n?e.axis_y2_axes.length:0;let o=Bo(e.padding_top)?e.padding_top:0;return i.title&&i.title.node()&&(o+=t.getTitlePadding()),r&&e.axis_rotated&&(o+=t.getHorizontalAxisHeight("y2")*r),o},getCurrentPaddingBottom:function(){const t=this,e=t.config,n=t.state.hasAxis,i=e.axis_rotated?"y":"x",r=n?e["axis_"+i+"_axes"].length:0;return(Bo(e.padding_bottom)?e.padding_bottom:0)+(r?t.getHorizontalAxisHeight(i)*r:0)},getCurrentPaddingLeft:function(t){var e;const n=this,i=n.config,r=n.state.hasAxis,o=i.axis_rotated,s="fit"===(null==(e=i.padding)?void 0:e.mode),a=o?"x":"y",c=r?i["axis_"+a+"_axes"].length:0;let u=r?n.getAxisWidthByAxisId(a,t):0;s||(u=Ho(u));let l=i["axis_"+a+"_inner"]||!i["axis_"+a+"_show"]?0:u;return Bo(i.padding_left)?l=i.padding_left+(s&&o?u:0):r&&o&&(l=i.axis_x_show?s?u:Math.max(u,40):1),r&&(s||i["axis_"+a+"_inner"])&&i["axis_"+a+"_label"].text&&(l+=n.axis.getAxisLabelPosition("y").isOuter?20:0),l+u*c},getCurrentPaddingRight:function(t){var e,n;void 0===t&&(t=!1);const i=this,r=i.config,o=i.state.hasAxis,s=r.axis_rotated,a="fit"===(null==(e=r.padding)?void 0:e.mode),c=a?2:10,u=i.state.isLegendRight?i.getLegendWidth()+20:0,l=o?r.axis_y2_axes.length:0,h=null!=(n=i.axis)&&n.getAxisLabelPosition("y2").isOuter?20:0,f=t?i.axis.getXAxisTickTextY2Overflow(c):0;let d=o&&!r.axis_y2_inner?i.getAxisWidthByAxisId("y2"):1;a||(d=Ho(d));let g=s?0:Math.max(d+u,f);return Bo(r.padding_right)?g=r.padding_right+(a&&(s||!r.axis_y2_show?c:g))+(o&&!a?1:0):i.axis&&s?g=c+u:!i.axis||r.axis_y2_show&&!r.axis_y2_inner||(g=Math.max((a&&!r.axis_y2_show?2:1)+u+h,f)),o&&!s&&a&&r.axis_y2_show&&!r.axis_y2_inner&&r.axis_y2_label.text&&(g+=h),g+d*l},getParentRectValue:function(t){const e="offset"+gs(t);let n=this.$el.chart.node(),i=0;for(;i<30&&n&&"BODY"!==n.tagName;){try{i=n.getBoundingClientRect()[t]}catch(t){e in n&&(i=n[e])}n=n.parentNode}const r=In.body[e];return i>r&&(i=r),i},getParentWidth:function(){return this.getParentRectValue("width")},getParentHeight:function(){const t=this.$el.chart.style("height");let e=0;return t&&(e=/px$/.test(t)?parseInt(t,10):this.getParentRectValue("height")),e},getSvgLeft:function(t){const e=this,n=e.config,i=e.$el,r=n.axis_rotated||!n.axis_rotated&&!n.axis_y_inner,o=n.axis_rotated?Ls.axisX:Ls.axisY,s=i.main.select("."+o).node(),a=s&&r?s.getBoundingClientRect():{right:0},c=i.chart.node().getBoundingClientRect(),u=e.hasArcType(),l=a.right-c.left-(u?0:e.getCurrentPaddingLeft(t));return l>0?l:0},updateDimension:function(t){const e=this,n=e.config,i=e.state.hasAxis,r=e.$el;var o;i&&!t&&e.axis.x&&n.axis_rotated&&(null==(o=e.axis.subX)||o.create(r.axis.subX));e.updateScales(t),e.updateSvgSize(),e.transformAll(!1)},updateSvgSize:function(){const t=this,e=t.state,n=e.clip,i=e.current,r=e.hasAxis,o=e.width,s=e.height,a=t.$el.svg;if(a.attr("width",i.width).attr("height",i.height),r){const e=a.select("."+Js.brush+" .overlay"),i={width:0,height:0};e.size()&&(i.width=+e.attr("width"),i.height=+e.attr("height")),a.selectAll(["#"+n.id,"#"+n.idGrid]).select("rect").attr("width",o).attr("height",s),a.select("#"+n.idXAxis).select("rect").call(t.setXAxisClipPath.bind(t)),a.select("#"+n.idYAxis).select("rect").call(t.setYAxisClipPath.bind(t)),n.idSubchart&&a.select("#"+n.idSubchart).select("rect").attr("width",o).attr("height",i.height)}},getCurrentPadding:function(){const t=this;return{top:t.getCurrentPaddingTop(),bottom:t.getCurrentPaddingBottom(),left:t.getCurrentPaddingLeft(),right:t.getCurrentPaddingRight()}},getResettedPadding:function(t){var e=this;const n=this.config,i=Uo(t);let r=i?0:{};return!1===n.padding?i||Object.keys(t).forEach(function(i){o(this,e),r[i]=Ko(n.data_labels)||!1===n.data_labels||"top"!==i?0:t[i]}.bind(this)):r=t,r},updateSizes:function(t){var e;const n=this,i=n.config,r=n.state,o=n.$el.legend,s=i.axis_rotated,a=n.hasArcType()||r.hasTreemap,c="fit"===(null==(e=i.padding)?void 0:e.mode);t||n.setContainerSize();const u={width:o?n.getLegendWidth():0,height:o?n.getLegendHeight():0};!a&&i.axis_x_show&&i.axis_x_tick_autorotate&&n.updateXAxisTickClip();const l=r.isLegendRight||r.isLegendInset?0:u.height,h=s||a?0:n.getHorizontalAxisHeight("x"),f=i.subchart_axis_x_show&&i.subchart_axis_x_tick_text_show?h:30,d=i.subchart_show&&!a?i.subchart_size_height+f:0,g=n.hasType("gauge")&&i.arc_needle_show&&!i.gauge_fullCircle&&!i.gauge_label_show?10:0,p=n.getCurrentPadding();if(r.margin=!a&&s?{top:n.getHorizontalAxisHeight("y2")+p.top,right:a?0:n.getCurrentPaddingRight(!0),bottom:n.getHorizontalAxisHeight("y")+l+p.bottom,left:d+(a?0:p.left)}:{top:(c?0:4)+p.top,right:a?0:n.getCurrentPaddingRight(!0),bottom:g+h+d+l+p.bottom,left:a?0:p.left},r.margin=n.getResettedPadding(r.margin),r.margin2=s?{top:r.margin.top,right:NaN,bottom:20+l,left:n.state.rotatedPadding.left}:{top:r.current.height-d-l,right:NaN,bottom:f+l,left:r.margin.left},r.margin3={top:0,right:NaN,bottom:0,left:0},null==n.updateSizeForLegend||n.updateSizeForLegend(u),r.width=r.current.width-r.margin.left-r.margin.right,r.height=r.current.height-r.margin.top-r.margin.bottom,r.width<0&&(r.width=0),r.height<0&&(r.height=0),r.width2=s?r.margin.left-r.rotatedPadding.left-r.rotatedPadding.right:r.width,r.height2=s?r.height:r.current.height-r.margin2.top-r.margin2.bottom,r.width2<0&&(r.width2=0),r.height2<0&&(r.height2=0),n.hasArcType()){const t=n.hasType("gauge"),e=i.legend_show&&r.isLegendRight;r.arcWidth=r.width-(e?u.width+10:0),r.arcHeight=r.height-(e&&!t?0:10),t&&!i.gauge_fullCircle&&(r.arcHeight+=r.height-n.getPaddingBottomForGauge()),null==n.updateRadius||n.updateRadius()}r.isLegendRight&&a&&(r.margin3.left=r.arcWidth/2+1.1*r.radiusExpanded)}},mh={setCssRule:function(t,e,n,i){var r=this;const s=this,a=s.config,c=s.state,u=c.cssRule,l=c.style;return a.boost_useCssRule?function(a){var c=this;o(this,r),a.each(function(r){var a=this;o(this,c);const h=i&&(null==i?void 0:i.call(s,r)),f=(t?"."+(Ks.shapes+s.getTargetSelectorSuffix(r.id)):"")+e;e in u&&l.sheet.deleteRule(u[f]),s.state.cssRule[f]=function(t,e,n){var i=this;const r=t.rootSelctor,s=t.sheet,a=r+" "+function(t){return o(this,i),t.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,".")}.bind(this)(e)+" {"+n.join(";")+"}";return s[s.insertRule?"insertRule":"addRule"](a,s.cssRules.length)}(l,f,n.filter(Boolean).map(function(t){return o(this,a),$o(h)&&-1===t.indexOf(":")?t+": "+h:t||""}.bind(this)))}.bind(this))}.bind(this):function(){o(this,r)}.bind(this)},getStylePropValue:function(t){return this.config.boost_useCssRule?null:Xo(t)?t.bind(this):t}};function _h(t){return"string"==typeof t?new kn([document.querySelectorAll(t)],[document.documentElement]):new kn([fe(t)],En)}function Th(t,e,n,i,r){var o;const s=t.value,a=this.isCandlestickType(t),c=Uo(s)&&s<0||a&&!(null!=(o=this.getCandlestickData(t))&&o._isUp);let u=e.x,l=e.y;return i?"start"===n?(u+=c?0:8,l+=4):"middle"===n?(u+=8,l-=8):"end"===n&&(c&&(u-=8),l+=4):("start"===n?(u+=4,c&&(l+=16)):"middle"===n?l-=8:"end"===n&&(u-=4,c&&(l+=16)),r&&(l+=c?-17:a?13:7)),{x:u,y:l}}function wh(t,e){var n;const i=this.config.data_labels_position,r=t.id,o=t.index,s=t.value;return null!=(n=Xo(i)?i.bind(this.api)(e,s,r,o,this.$el.text):(r in i?i[r]:i)[e])?n:0}var Ah={opacityForText:function(t){const e=this;return e.isBarType(t)&&!e.meetsLabelThreshold(Math.abs(e.getRatio("bar",t)),"bar")?"0":e.hasDataLabel?null:"0"},initText:function(){const t=this.$el;t.main.select("."+Cs.chart).append("g").attr("class",Qs.chartTexts).style("pointer-events",t.treemap?"none":null)},updateTargetsForText:function(t){var e=this;const n=this,i=n.getChartClass("Text"),r=n.getClass("texts","id"),s=n.classFocus.bind(n);n.$el.main.select("."+Qs.chartTexts).selectAll("."+Qs.chartText).data(t).attr("class",function(t){return o(this,e),(""+i(t)+s(t)).trim()}.bind(this)).enter().append("g").style("opacity","0").attr("class",i).call(n.setCssRule(!0," ."+Qs.text,["fill","pointer-events:none"],n.updateTextColor)).append("g").attr("class",r)},updateText:function(){var t=this;const e=this,n=e.$el,i=e.$T,r=e.config,s=e.axis,a=e.getClass("text","index"),c=r.data_labels.centered,u=n.main.selectAll("."+Qs.texts).selectAll("."+Qs.text).data(e.labelishData.bind(e));i(u.exit()).style("fill-opacity","0").remove(),n.text=u.enter().append("text").merge(u).attr("class",a).attr("text-anchor",function(n){o(this,t);let i=r["axis_"+(null==s?void 0:s.getId(n.id))+"_inverted"]?n.value>0:n.value<0;if(e.isCandlestickType(n)){const t=e.getCandlestickData(n);i=!(null!=t&&t._isUp)}else if(e.isTreemapType(n))return c?"middle":"start";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){const r=Rn(this);let o=t.value;if(e.isBubbleZType(t))o=e.getBubbleZData(o,"z");else if(e.isCandlestickType(t)){const n=e.getCandlestickData(t);n&&(o=n.close)}o=e.isTreemapType(t)?e.treemapDataLabelFormat(t)(r):e.dataLabelFormat(t.id)(o,t.id,n,i),Uo(o)?this.textContent=o:os(r,o)}))},updateTextColor:function(t){const e=this,n=e.config,i=n.data_labels_colors,r=e.isArcType(t)&&!e.isRadarType(t)||e.isTreemapType(t)?null:e.color(t);let o;if($o(i))o=i;else if(ts(i)){o=i[(t.data||t).id]}else Xo(i)&&(o=i.bind(e.api)(r,t));if(e.isCandlestickType(t)&&!Xo(i)){const i=e.getCandlestickData(t);if(null==i||!i._isUp){const e=n.candlestick_color_down;o=ts(e)?e[t.id]:e}}return o||r},updateTextBacgroundColor:function(t){const e=this,n=e.$el,i=e.config.data_labels_backgroundColors;let r="";if($o(i)||ts(i)){const o=$o(i)?"":e.getTargetSelectorSuffix("id"in t?t.id:t.data.id),s=n.defs.select(["filter[id*='labels-bg","']"].join(o));s.size()&&(r="url(#"+s.attr("id")+")")}return r||null},redrawText:function(t,e,n,i){const r=this,o=r.$T,s=r.axis,a=r.config,c=r.state.hasTreemap,u=ls(!0),l=a.axis_rotated,h=a.data_labels.rotate,f=function(t){let e="middle";return t>0&&t<=170?e="end":t>190&&t<=360&&(e="start"),e}(h),d=h?"rotate("+h+")":"";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,g){const p=o(c&&this.childElementCount?this.parentNode:this,!(!i||!this.getAttribute("x")),u),v=a["axis_"+(null==s?void 0:s.getId(n.id))+"_inverted"];let y={x:t.bind(this)(n,g),y:e.bind(this)(n,g)};h&&(y=Th.bind(r)(n,y,f,l,v),p.attr("text-anchor",f)),this.childElementCount||h?p.attr("transform","translate("+y.x+" "+y.y+") "+d):p.attr("x",y.x).attr("y",y.y)})),!0},getTextRect:function(t,e){var n=this;const i=this;let r=t.node?t.node():t;/text/i.test(r.tagName)||(r=r.querySelector("text"));const s=r.textContent,a=Oa+"-"+s.replace(/\W/g,"_");let c=i.cache.get(a);return c||(i.$el.svg.append("text").style("visibility","hidden").style("font",Rn(r).style("font")).classed(e,!0).text(s).call(function(t){o(this,n),c=us(t.node())}.bind(this)).remove(),i.cache.add(a,c)),c},generateXYForText:function(t,e){var n=this;const i=this,r=i.state,s=r.hasRadar,a=r.hasTreemap,c=Object.keys(t),u={},l=e?i.getXForText:i.getYForText;return s&&c.push("radar"),a&&c.push("treemap"),c.forEach(function(e){o(this,n),u[e]=i["generateGet"+gs(e)+"Points"](t[e],!1)}.bind(this)),function(t,e){const n=(i.isAreaType(t)?"area":i.isBarType(t)&&"bar")||i.isCandlestickType(t)&&"candlestick"||i.isRadarType(t)&&"radar"||i.isTreemapType(t)&&"treemap"||"line";return l.call(i,u[n](t,e),t,this)}},getCenteredTextPos:function(t,e,n,i){const r=this,o=r.config,s=o.axis_rotated,a=r.isBarType(t),c=r.isTreemapType(t);if(o.data_labels.centered&&(a||c)){const r=us(n);if(a){const n=t.value>=0;if(s){const t=(n?e[1][1]-e[0][1]:e[0][1]-e[1][1])/2+r.width/2;return n?-t-3:t+2}{const t=(n?e[0][1]-e[1][1]:e[1][1]-e[0][1])/2+r.height/2;return n?t:-t-2}}if(c)return"x"===i?(e[1][0]-e[0][0])/2:(e[1][1]-e[0][1])/2+r.height/2}return 0},getXForText:function(t,e,n){const i=this,r=i.config,o=r.axis_rotated,s=i.isTreemapType(e);let a=t[0][0];var c;if(i.isCandlestickType(e))o?a=null!=(c=i.getCandlestickData(e))&&c._isUp?t[2][2]+4:t[2][1]-4:a+=(t[1][0]-a)/2;else if(s)a+=r.data_labels.centered?0:5;else if(o){const n=r["axis_"+i.axis.getId(e.id)+"_inverted"],o=i.isBarType(e)?4:6,s=e.value;a=t[2][1],n?a-=o*(s>0?1:-1):a+=o*(s<0?-1:1)}else a=i.hasType("bar")?(t[2][0]+t[0][0])/2:a;return(o||s)&&(a+=i.getCenteredTextPos(e,t,n,"x")),a+wh.call(this,e,"x")},getYForText:function(t,e,n){const i=this,r=i.axis,o=i.config,s=i.state,a=o.axis_rotated,c=o["axis_"+(null==r?void 0:r.getId(e.id))+"_inverted"],u=i.isBarType(e),l=i.isTreemapType(e),h=o.point_r,f=us(n);let d,g=e.value,p=3;if(i.isCandlestickType(e))g=i.getCandlestickData(e),a?(d=t[0][0],d+=(t[1][0]-d)/2+p):(d=g&&g._isUp?t[2][2]-p:t[2][1]+4*p,c&&(d+=15*(g._isUp?1:-1)));else if(l)d=t[0][1]+(o.data_labels.centered?0:f.height+5);else if(a)d=(t[0][0]+t[2][0]+.6*f.height)/2;else if(d=t[2][1],Uo(h)&&h>5&&(i.isLineType(e)||i.isScatterType(e))&&(p+=o.point_r/2.3),g<0||0===g&&!s.hasPositiveValue&&s.hasNegativeValue)d+=c?u?-3:-5:f.height+(u?-p:p);else{let t=2*-p;u?t=-p:i.isBubbleType(e)&&(t=p),c&&(t=u?10:15),d+=t}return a&&!l||(d+=i.getCenteredTextPos(e,t,n,"y")),d+wh.call(this,e,"y")},markOverlapped:function(t,e,n){var i=this;const r=e.$el.arcs.selectAll(n),s=r.filter(function(e){return o(this,i),e.data.id!==t}.bind(this)),a=r.filter(function(e){return o(this,i),e.data.id===t}.bind(this)),c=vs(a.node()),u=function(t,e){return o(this,i),Math.sqrt(Math.pow(t,2)+Math.pow(e,2))}.bind(this);a.node()&&s.each((function(){const t=vs(this),e=Rn(this),n=u(c.e,c.f)>u(t.e,t.f)?a:e,i=Math.ceil(Math.abs(c.e-t.e))<Math.ceil(n.node().getComputedTextLength()),r=Math.ceil(Math.abs(c.f-t.f))<parseInt(a.style("font-size"),10);e.classed(Qs.TextOverlapping,i&&r)}))},undoMarkOverlapped:function(t,e){t.$el.arcs.selectAll(e).each((function(){_h([this,this.previousSibling]).classed(Qs.TextOverlapping,!1)}))},meetsLabelThreshold:function(t,e){void 0===t&&(t=0);return t>=(this.config[e+"_label_threshold"]||0)}};function Sh(t,e){void 0===t&&(t="left");const n=Uo(e);let i;return i=t.indexOf("center")>-1?n?e/2:"middle":t.indexOf("right")>-1?n?e:"end":n?0:"start",i}var Eh={initTitle:function(){const t=this.config,e=this.$el;if(t.title_text){e.title=e.svg.append("g");os(e.title.append("text").style("text-anchor",Sh(t.title_position)).attr("class",Qs.title),t.title_text,[.3,1.5])}},redrawTitle:function(){const t=this,e=t.config,n=t.state.current,i=t.$el.title;if(i){const r=Sh(e.title_position,n.width),o=(e.title_padding.top||0)+t.getTextRect(t.$el.title,Qs.title).height;i.attr("transform","translate("+r+", "+o+")")}},getTitlePadding:function(){const t=this,e=t.$el,n=t.config;return(n.title_padding.top||0)+t.getTextRect(e.title,Qs.title).height+(n.title_padding.bottom||0)}},kh={initTooltip:function(){const t=this,e=t.config,n=t.$el;n.tooltip=Rn(e.tooltip_contents.bindto),n.tooltip.empty()&&(n.tooltip=n.chart.append("div").attr("class",ta.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none")),t.bindTooltipResizePos()},initShowTooltip:function(){const t=this,e=t.config,n=t.$el,i=t.state,r=i.hasAxis,o=i.hasRadar;if(e.tooltip_init_show){var s,a;null!=(s=t.axis)&&s.isTimeSeries()&&$o(e.tooltip_init_x)&&(e.tooltip_init_x=Ss.call(t,e.tooltip_init_x)),t.api.tooltip.show({data:(a={},a[r||o?"x":"index"]=e.tooltip_init_x,a)});const i=e.tooltip_init_position;if(!e.tooltip_contents.bindto&&!Ko(i)){const t=i.top,e=void 0===t?0:t,r=i.left,o=void 0===r?50:r;n.tooltip.style("top",$o(e)?e:e+"px").style("left",$o(o)?o:o+"px").style("display",null)}}},getTooltipHTML:function(){const t=this,e=t.api,n=t.config;return Xo(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;const s=this,a=s.api,c=s.config,u=s.state,l=s.$el,h=["title","name","value"].map(function(t){o(this,r);const e=c["tooltip_format_"+t];return Xo(e)?e.bind(a):e}.bind(this)),f=h[0],d=h[1],g=h[2],p=function(){return o(this,r),rs((f||e).apply(void 0,arguments))}.bind(this),v=function(){var t=this;return o(this,r),rs((d||function(e){return o(this,t),e}.bind(this)).apply(void 0,arguments))}.bind(this),y=function(){var t=this;o(this,r);return rs((g||(u.hasTreemap||s.isStackNormalized()?function(e,n){return o(this,t),(100*n).toFixed(2)+"%"}.bind(this):n)).apply(void 0,arguments))}.bind(this),b=c.tooltip_order,x=function(t){return o(this,r),s.axis&&s.isBubbleZType(t)?s.getBubbleZData(t.value,"z"):s.getBaseValue(t)}.bind(this),m=s.levelColor?function(t){return o(this,r),s.levelColor(t.value)}.bind(this):function(t){return o(this,r),i(t)}.bind(this),_=c.tooltip_contents,T=_.template,w=s.mapToTargetIds();if(null===b&&c.data_groups.length){const e=s.orderTargets(s.data.targets).map(function(t){return o(this,r),t.id}.bind(this)).reverse();t.sort(function(t,n){o(this,r);let i=t?t.value:null,s=n?n.value:null;return i>0&&s>0&&(i=t.id?e.indexOf(t.id):null,s=n.id?e.indexOf(n.id):null),i-s}.bind(this))}else/^(asc|desc)$/.test(b)?t.sort(function(t,e){o(this,r);const n=t?x(t):null,i=e?x(e):null;return"asc"===b?n-i:i-n}.bind(this)):Xo(b)&&t.sort(b.bind(a));const A=s.getTooltipContentTemplate(T),S=t.length;let E,k,O,M,R;for(R=0;R<S;R++)if(k=t[R],k&&(x(k)||0===x(k))){if(Yo(E)){const t=(u.hasAxis||u.hasRadar)&&p(k.x);E=As(A[0],{CLASS_TOOLTIP:ta.tooltip,TITLE:Bo(t)?T?t:'<tr><th colspan="2">'+t+"</th></tr>":""})}if(!k.ratio&&l.arcs&&(O=["arc",s.$el.arcs.select("path."+Is.arc+"-"+k.id).data()[0]],k.ratio=s.getRatio.apply(s,O)),O=[k.ratio,k.id,k.index],s.isAreaRangeType(k)){const t=["high","low"].map(function(t){return o(this,r),y.apply(void 0,[s.getRangedData(k,t)].concat(O))}.bind(this)),e=t[0],n=t[1];M="<b>Mid:</b> "+y.apply(void 0,[x(k)].concat(O))+" <b>High:</b> "+e+" <b>Low:</b> "+n}else if(s.isCandlestickType(k)){const t=["open","high","low","close","volume"].map(function(t){o(this,r);return s.getRangedData(k,t,"candlestick")?y.apply(void 0,[s.getRangedData(k,t,"candlestick")].concat(O)):void 0}.bind(this)),e=t[0],n=t[1],i=t[2],a=t[3],c=t[4];M="<b>Open:</b> "+e+" <b>High:</b> "+n+" <b>Low:</b> "+i+" <b>Close:</b> "+a+(c?" <b>Volume:</b> "+c:"")}else if(s.isBarRangeType(k)){const t=k,e=t.value,n=e[0],i=e[1],r=t.id,o=t.index;M=y(n,void 0,r,o)+" ~ "+y(i,void 0,r,o)}else M=y.apply(void 0,[x(k)].concat(O));if(void 0!==M){if(null===k.name)continue;const t=v.apply(void 0,[k.name].concat(O)),e=m(k),n={CLASS_TOOLTIP_NAME:ta.tooltipName+s.getTargetSelectorSuffix(k.id),COLOR:T||!s.patterns?e:'<svg><rect style="fill:'+e+'" width="10" height="10"></rect></svg>',NAME:t,VALUE:M};if(T&&ts(_.text)){const t=w.indexOf(k.id);Object.keys(_.text).forEach(function(e){o(this,r),n[e]=_.text[e][t]}.bind(this))}E+=As(A[1],n)}}return E+"</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(/{{(.*)}}/)},setTooltipPosition:function(t,e){var n=this;const i=this,r=i.config,s=i.scale,a=i.state,c=i.$el,u=c.eventRect,l=c.tooltip,h=r.tooltip_contents.bindto,f=l.datum();if(!h&&f){var d,g;const c=as(a.event,null!=e?e:null==u?void 0:u.node()),h={x:c[0],y:c[1]};s.x&&f&&"x"in f&&(h.xAxis=s.x(f.x));const p=f.width,v=void 0===p?0:p,y=f.height,b=void 0===y?0:y,x=null!=(d=null==(g=r.tooltip_position)?void 0:g.bind(i.api)(null!=t?t:JSON.parse(f.current),v,b,null==u?void 0:u.node(),h))?d:i.getTooltipPosition.bind(i)(v,b,h);["top","left"].forEach(function(t){o(this,n);const e=x[t];l.style(t,e+"px"),"left"!==t||f.xPosInPercent||(f.xPosInPercent=e/a.current.width*100)}.bind(this))}},getTooltipPosition:function(t,e,n){var i=this;const r=this,s=r.config,a=r.scale,c=r.state,u=c,l=u.width,h=u.height,f=u.current,d=u.isLegendRight,g=u.inputType,p=r.hasType("gauge")&&!s.gauge_fullCircle,v=c.hasTreemap,y=s.axis_rotated,b=r.getSvgLeft(!0);let x=b+f.width-r.getCurrentPaddingRight();const m=r.getCurrentPaddingLeft(!0);let _=n.x,T=n.y;if(r.hasArcType()){"touch"===g||r.hasType("radar")||(T+=p?h:h/2,_+=(l-(d?r.getLegendWidth():0))/2)}else v||(y?(T=n.xAxis+20,_+=b,x-=b):(T-=5,_=b+m+20+(a.zoom?_:n.xAxis)));if(_+t+15>x&&(_-=y?t-m:t+(v?0:m)),T+e>f.height){T-=p?3*e:e+(v?0:30)}const w={top:T,left:_};return Object.keys(w).forEach(function(t){o(this,i),w[t]<0&&(w[t]=0)}.bind(this)),w},showTooltip:function(t,e){var n=this;const i=this,r=i.config,s=i.$el.tooltip,a=t.filter(function(t){return o(this,n),t&&Bo(i.getBaseValue(t))}.bind(this));if(!s||0===a.length||!r.tooltip_show)return;let c=s.datum();const u=JSON.stringify(t);if(!c||c.current!==u){const e=t.concat().sort()[0],n=e.index,o=e.x;ns(r.tooltip_onshow,i.api,t),s.html(i.getTooltipHTML(t,i.axis?i.axis.getXAxisTickFormat():i.categoryName.bind(i),i.getDefaultValueFormat(),i.color)).style("display",null).style("visibility",null).datum(c={index:n,x:o,current:u,width:s.property("offsetWidth"),height:s.property("offsetHeight")}),ns(r.tooltip_onshown,i.api,t),i._handleLinkedCharts(!0,n)}i.setTooltipPosition(a,e)},bindTooltipResizePos:function(){var t=this;const e=this,n=e.resizeFunction,i=e.state,r=e.$el.tooltip;n.add(function(){if(o(this,t),"block"===r.style("display")){const t=i.current,e=r.datum(),n=e.width,o=e.xPosInPercent;let s=t.width/100*o;const a=t.width-(s+n);a<0&&(s+=a),r.style("left",s+"px")}}.bind(this))},hideTooltip:function(t){const e=this,n=e.api,i=e.config,r=e.$el.tooltip;if(r&&"none"!==r.style("display")&&(!i.tooltip_doNotHide||t)){const t=JSON.parse(r.datum().current);ns(i.tooltip_onhide,n,t),r.style("display","none").style("visibility","hidden").datum(null),ns(i.tooltip_onhidden,n,t)}},_handleLinkedCharts:function(t,e){var n=this;const i=this,r=i.charts,s=i.config,a=i.state.event;if(null!=a&&a.isTrusted&&s.tooltip_linked&&r.length>1){const a=s.tooltip_linked_name;r.filter(function(t){return o(this,n),t!==i.api}.bind(this)).forEach(function(i){o(this,n);const r=i.internal,s=r.config,c=r.$el,u=s.tooltip_linked,l=s.tooltip_linked_name,h=In.body.contains(c.chart.node());if(u&&a===l&&h){const n=c.tooltip.data()[0],r=e!==(null==n?void 0:n.index);try{i.tooltip[t&&r?"show":"hide"]({index:e})}catch(t){}}}.bind(this))}},updateTooltipOnRedraw:function(t,e){var n=this;const i=this,r=i.config,s=i.$el,a=s.eventRect,c=s.svg,u=s.tooltip,l=i.state,h=l.event,f=l.hasAxis,d=l.hasRadar,g=l.hasTreemap;if("block"===(null==u?void 0:u.style("display"))&&h){var p;const s=null!=t?t:null==(p=d?c:a)?void 0:p.node();if(f||d)if(i.isMultipleX())i.selectRectForMultipleXs(s,!1);else{const t=null!=e?e:i.getDataIndexFromEvent(h);-1===e?i.api.tooltip.hide():(i.selectRectForSingle(s,t),i.setExpand(t,null,!0))}else{const t=h.clientX,e=h.clientY;setTimeout(function(){o(this,n);let r=In.elementFromPoint(t,e);const s=Rn(r).datum();if(s){const t=i.hasArcType()?i.convertToArcData(i.updateAngle(s)):null==s?void 0:s.data;g&&(r=c.node()),t&&i.showTooltip([t],r)}else i.api.tooltip.hide()}.bind(this),r.transition_duration)}}}},Oh={getTranslate:function(t,e){void 0===e&&(e=0);const n=this,i=n.config,r=n.state,o=i.axis_rotated;let s,a,c=0;if(e&&/^(x|y2?)$/.test(t)&&(c=n.getAxisSize(t)*e),"main"===t)s=Wo(r.margin.left),a=Wo(r.margin.top);else if("context"===t)s=Wo(r.margin2.left),a=Wo(r.margin2.top);else if("legend"===t)s=r.margin3.left,a=r.margin3.top;else if("x"===t)s=o?-c:0,a=o?0:r.height+c;else if("y"===t)s=o?0:-c,a=o?r.height+c:0;else if("y2"===t)s=o?0:r.width+c,a=o&&c?1-c:0;else if("subX"===t)s=0,a=o?0:r.height2;else if("arc"===t)s=r.arcWidth/2,a=r.arcHeight/2;else if("polar"===t)s=r.arcWidth/2,a=r.arcHeight/2;else if("radar"===t){const t=n.getRadarSize()[0];s=r.width/2-t,a=Wo(r.margin.top)}return"translate("+s+", "+a+")"},transformMain:function(t,e){const n=this,i=n.$el.main,r=n.$T,o=null!=e&&e.axisX?e.axisX:r(i.select("."+Ls.axisX),t),s=null!=e&&e.axisY?e.axisY:r(i.select("."+Ls.axisY),t),a=null!=e&&e.axisY2?e.axisY2:r(i.select("."+Ls.axisY2),t);r(i,t).attr("transform",n.getTranslate("main")),o.attr("transform",n.getTranslate("x")),s.attr("transform",n.getTranslate("y")),a.attr("transform",n.getTranslate("y2")),i.select("."+Is.chartArcs).attr("transform",n.getTranslate("arc"))},transformAll:function(t,e){const n=this,i=n.config,r=n.state,o=r.hasAxis,s=r.hasTreemap,a=n.$el;s||n.transformMain(t,e),o&&i.subchart_show&&n.transformContext(t,e),a.legend&&n.transformLegend(t)}},Mh={isValidChartType:function(t){return!!(t&&Object.values(zn).indexOf(t)>-1)},setTargetType:function(t,e){var n=this;const i=this,r=i.config,s=i.state.withoutFadeIn;i.mapToTargetIds(t).forEach(function(t){o(this,n),s[t]=e===r.data_types[t],r.data_types[t]=e}.bind(this)),t||(r.data_type=e)},updateTypesElements:function(){var t=this;const e=this,n=e.state.current;Object.keys(zn).forEach(function(i){o(this,t);const r=zn[i],s=e.hasType(r,null,!0),a=n.types.indexOf(r);-1===a&&s?n.types.push(r):a>-1&&!s&&n.types.splice(a,1)}.bind(this)),e.setChartElements()},hasType:function(t,e,n){var i,r=this;void 0===n&&(n=!1);const s=this,a=s.config,c=s.state.current,u=a.data_types,l=e||s.data.targets;let h=!1;return!n&&(null==(i=c.types)?void 0:i.indexOf(t))>-1?h=!0:null!=l&&l.length?l.forEach(function(e){o(this,r);const n=u[e.id];(n===t||!n&&"line"===t)&&(h=!0)}.bind(this)):Object.keys(u).length?Object.keys(u).forEach(function(e){o(this,r),u[e]===t&&(h=!0)}.bind(this)):h=a.data_type===t,h},hasTypeOf:function(t,e,n){var i=this;return void 0===n&&(n=[]),t in jn&&!jn[t].filter(function(t){return o(this,i),-1===n.indexOf(t)}.bind(this)).every(function(t){return o(this,i),!this.hasType(t,e)}.bind(this))},isTypeOf:function(t,e){const n=$o(t)?t:t.id,i=this.config.data_types[n]||this.config.data_type;return Qo(e)?e.indexOf(i)>=0:i===e},hasPointType:function(){const 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){const e=$o(t)?t:t.id;return!this.config.data_types[e]||this.isTypeOf(e,jn.Line)},isStepType:function(t){return this.isTypeOf(t,jn.Step)},isSplineType:function(t){return this.isTypeOf(t,jn.Spline)},isAreaType:function(t){return this.isTypeOf(t,jn.Area)},isAreaRangeType:function(t){return this.isTypeOf(t,jn.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")},isTreemapType:function(t){return this.isTypeOf(t,"treemap")},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){const e=this.config,n=e.point_pattern;let i=!1;return i="circle"===(null==t?void 0:t.tagName)||"circle"===e.point_type&&(!n||Qo(n)&&0===n.length),i},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)||this.isTreemapType(t)?t.values.filter(function(t){return o(this,e),Uo(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}};let Rh=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};const e=this;e.api=t,e.config=new ba,e.cache=new Ma;const n=new oa;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){const i=this.config,r=this.state,o=i.transition_duration,s=i.subchart_show;let a=t;if(a){"tagName"in a&&(a=Rn(a));a=(!1!==e&&o||e)&&(!r.zooming||r.dragging)&&!r.resizing&&r.rendered&&!s?a.transition(n).duration(o):a}return a},e.beforeInit=function(){const t=this;t.callPluginHook("$beforeInit"),ns(t.config.onbeforeinit,t.api)},e.afterInit=function(){const t=this;t.callPluginHook("$afterInit"),ns(t.config.onafterinit,t.api)},e.init=function(){const t=this,e=t.config,n=t.state,i=t.$el,r=e.boost_useCssRule;if(Os(t),n.hasRadar=!n.hasAxis&&t.hasType("radar"),n.hasTreemap=!n.hasAxis&&t.hasType("treemap"),n.hasAxis=!t.hasArcType()&&!n.hasTreemap,n.datetimeId="bb-"+ +new Date*ls(),r){const t=In.createElement("style");t.type="text/css",In.head.appendChild(t),n.style={rootSelctor:"."+n.datetimeId,sheet:t.sheet},i.style=t}const o={element:e.bindto,classname:"bb"};ts(e.bindto)&&(o.element=e.bindto.element||"#chart",o.classname=e.bindto.classname||o.classname),i.chart=Xo(o.element.node)?e.bindto.element:Rn(o.element||[]),i.chart.empty()&&(i.chart=Rn(In.body.appendChild(In.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;const n=this,i=n.config,r=n.state,s=n.$el.chart,a=function(){return o(this,e),"none"===s.style("display")||"hidden"===s.style("visibility")}.bind(this),c=i.render.lazy||a(),u=Cn.MutationObserver;c&&u&&!1!==i.render.observe&&!t&&new u(function(t,i){o(this,e),a()||(i.disconnect(),r.rendered||n.initToRender(!0))}.bind(this)).observe(s.node(),{attributes:!0,attributeFilter:["class","style"]}),c&&!t||n.convertData(i,function(t){o(this,e),n.initWithData(t),n.afterInit()}.bind(this))},e.initParams=function(){var t=this;const e=this,n=e.config,i=e.format,r=e.state,s=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?Y:G,i.axisTime=n.axis_x_localtime?U:V;const r=e.config.zoom_enabled&&"drag"===e.config.zoom_type;i.defaultAxisTime=function(n){o(this,t);const s=e.scale,a=s.x,c=s.zoom,u=r?c:c&&a.orgDomain().toString()!==c.domain().toString(),l=(n.getMilliseconds()?".%L":n.getSeconds()&&".:%S")||n.getMinutes()&&"%I:%M"||n.getHours()&&"%I %p"||1!==n.getDate()&&"%b %d"||u&&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=s&&!n.axis_x_show?0:30,r.inputType=function(t,e){var n=this;const i=Cn.DocumentTouch,r=Cn.matchMedia,s=Cn.navigator;let a=!1;if(e)if(s&&"maxTouchPoints"in s)a=s.maxTouchPoints>0;else if("ontouchmove"in Cn||i&&In instanceof i)a=!0;else if(null!=r&&r("(pointer:coarse)").matches)a=!0;else{const t=s.userAgent;a=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(t)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(t)}return(t&&["any-hover:hover","any-pointer:fine"].some(function(t){return o(this,n),null==r?void 0:r("("+t+")").matches}.bind(this))?"mouse":a&&"touch")||"mouse"}(n.interaction_inputType_mouse,n.interaction_inputType_touch)},e.initWithData=function(t){var e=this;const n=this,i=n.config,r=n.scale,s=n.state,a=n.$el,c=n.org,u=s,l=u.hasAxis,h=u.hasTreemap,f=i.interaction_enabled,d=n.hasType("polar");if(l&&(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),l){const t=r.x,e=r.y,o=r.y2,s=r.subX,a=r.subY,u=r.subY2;t&&(t.domain(ms(n.getXDomain(n.data.targets),!i.axis_x_inverted)),s.domain(t.domain()),c.xDomain=t.domain()),e&&(e.domain(n.getYDomain(n.data.targets,"y")),a.domain(e.domain())),o&&(o.domain(n.getYDomain(n.data.targets,"y2")),u&&u.domain(o.domain()))}if(a.svg=a.chart.append("svg").style("overflow","hidden").style("display","block"),f&&s.inputType){const t="touch"===s.inputType,e=i.onclick,r=i.onover,o=i.onout;a.svg.on("click",(null==e?void 0:e.bind(n.api))||null).on(t?"touchstart":"mouseenter",(null==r?void 0:r.bind(n.api))||null).on(t?"touchend":"mouseleave",(null==o?void 0:o.bind(n.api))||null)}i.svg_classname&&a.svg.attr("class",i.svg_classname);const g=Xo(i.color_tiles)&&n.patterns;(l||g||d||h||i.data_labels_backgroundColors)&&(a.defs=a.svg.append("defs"),l&&["id","idXAxis","idYAxis","idGrid"].forEach(function(t){o(this,e),n.appendClip(a.defs,s.clip[t])}.bind(this)),n.generateDataLabelBackgroundColorFilter(),g&&n.patterns.forEach(function(t){var n=this;return o(this,e),a.defs.append(function(){return o(this,n),t.node}.bind(this))}.bind(this))),n.updateSvgSize(),n.bindResize();const p=a.svg.append("g").classed(Cs.main,!0).attr("transform",h?null:n.getTranslate("main"));var v;(a.main=p,i.subchart_show&&n.initSubchart(),i.tooltip_show&&n.initTooltip(),i.title_text&&n.initTitle(),!h&&i.legend_show&&n.initLegend(),i.data_empty_label_text&&p.append("text").attr("class",Qs.text+" "+Cs.empty).attr("text-anchor","middle").attr("dominant-baseline","middle"),l&&(i.regions.length&&n.initRegion(),i.clipPath||n.axis.init()),p.append("g").classed(Cs.chart,!0).attr("clip-path",l?s.clip.path:null),n.callPluginHook("$init"),n.initChartElements(),l)&&(f&&(null==n.initEventRect||n.initEventRect()),n.initGrid(),i.clipPath&&(null==(v=n.axis)||v.init()));if(n.updateTargets(n.data.targets),n.updateDimension(),ns(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){const t=n.getMinMaxData();ns(i.data_onmin,n.api,t.min),ns(i.data_onmax,n.api,t.max)}i.tooltip_show&&n.initShowTooltip(),s.rendered=!0},e.initChartElements=function(){var t=this;const e=this,n=e.state,i=n.hasAxis,r=n.hasRadar,s=n.hasTreemap,a=[];if(i){const n=["bar","bubble","candlestick","line"];e.config.bar_front&&n.push(n.shift()),n.forEach(function(n){o(this,t);const i=gs(n);("line"===n&&e.hasTypeOf(i)||e.hasType(n))&&a.push(i)}.bind(this))}else if(s)a.push("Treemap");else{const t=e.hasType("polar");r||a.push("Arc","Pie"),e.hasType("gauge")?a.push("Gauge"):r?a.push("Radar"):t&&a.push("Polar")}a.forEach(function(n){o(this,t),e["init"+n]()}.bind(this)),Jo(e.config.data_labels)&&!e.hasArcType(null,["radar"])&&e.initText()},e.setChartElements=function(){const t=this.$el,e=t.chart,n=t.svg,i=t.defs,r=t.main,o=t.tooltip,s=t.legend,a=t.title,c=t.grid,u=t.needle,l=t.arcs,h=t.circle,f=t.bar,d=t.candlestick,g=t.line,p=t.area,v=t.text;this.api.$={chart:e,svg:n,defs:i,main:r,tooltip:o,legend:s,title:a,grid:c,arc:l,circles:h,bar:{bars:f},candlestick:d,line:{lines:g,areas:p},needle:u,text:{texts:v}}},e.setBackground=function(){const t=this,e=t.config.background,n=t.state,i=t.$el.svg;if(Jo(e)){const t=i.select("g").insert(e.imgUrl?"image":"rect",":first-child");e.imgUrl?t.attr("href",e.imgUrl):e.color&&t.style("fill",e.color).attr("clip-path",n.clip.path),t.attr("class",e.class||null).attr("width","100%").attr("height","100%")}},e.updateTargets=function(t){var e=this;const n=this,i=n.state,r=i.hasAxis,s=i.hasRadar,a=i.hasTreemap,c=function(i){return o(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){o(this,e);const i=gs(t);("line"===t&&n.hasTypeOf(i)||n.hasType(t))&&c(i)}.bind(this)),n.updateTargetsForSubchart&&n.updateTargetsForSubchart(t);else if(n.hasArcType(t)){let t="Arc";s?t="Radar":n.hasType("polar")&&(t="Polar"),c(t)}else a&&c("Treemap");const u=n.hasType("bubble")||n.hasType("scatter");u&&(null==n.updateTargetForCircle||n.updateTargetForCircle()),n.filterTargetsToShowAtInit(u)},e.filterTargetsToShowAtInit=function(t){var e=this;void 0===t&&(t=!1);const n=this,i=n.$el.svg,r=n.$T;let s="."+Cs.target;t&&(s+=", ."+zs.chartCircles+" > ."+zs.circles),r(i.selectAll(s).filter(function(t){return o(this,e),n.isTargetToShow(t.id)}.bind(this))).style("opacity",null)},e.getWithOption=function(t){var e=this;const 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){o(this,e);let r=n[i];$o(r)&&(r=n[r]),n[i]=es(t,"with"+i,r)}.bind(this)),n},e.initialOpacity=function(t){const e=this.state.withoutFadeIn;return null!==this.getBaseValue(t)&&e[t.id]?null:"0"},e.bindResize=function(){var t=this;const e=this,n=e.config,i=e.state,r=function(t){var e=this;const n=[];let i;const r=function(){var e=this;r.clear(),!1===t?Nn(function(){var t=this;o(this,e),n.forEach(function(e){return o(this,t),e()}.bind(this))}.bind(this),{timeout:200}):i=Ra(function(){var t=this;o(this,e),n.forEach(function(e){return o(this,t),e()}.bind(this))}.bind(this),Uo(t)?t:200)};return r.clear=function(){o(this,e),i&&(Ca(i),i=null)}.bind(this),r.add=function(t){return o(this,e),n.push(t)}.bind(this),r.remove=function(t){return o(this,e),n.splice(n.indexOf(t),1)}.bind(this),r}(n.resize_timer),s=[];s.push(function(){return o(this,t),ns(n.onresize,e.api)}.bind(this)),n.resize_auto&&s.push(function(){o(this,t),i.resizing=!0,n.legend_show&&(e.updateSizes(),e.updateLegend()),e.api.flush(!1)}.bind(this)),s.push(function(){o(this,t),ns(n.onresized,e.api),i.resizing=!1}.bind(this)),s.forEach(function(e){return o(this,t),r.add(e)}.bind(this)),e.resizeFunction=r,Cn.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){o(this,e),"$beforeInit"===t&&(n.$$=this,this.api.plugins.push(n)),n[t].apply(n,i)}.bind(this))},t}();function Ch(t){var e=this;const n=this.config;let i,r,s;const a=function(){o(this,e);const t=r.shift();return t&&i&&Zo(i)&&t in i?(i=i[t],a()):t?void 0:i}.bind(this);Object.keys(n).forEach(function(c){o(this,e),i=t,r=c.split("_"),s=a(),Vo(s)&&(n[c]=s)}.bind(this)),this.api&&(this.state.orgConfig=t)}ds(Rh.prototype,[ec,nc,rc,{categoryName:function(t){var e;const n=this.config.axis_x_categories;return null!=(e=null==n?void 0:n[t])?e:t}},dc,Lc,Dc,fc,zc,jc,Bc,gl,bh,xh,mh,Ah,Eh,kh,Oh,Mh]);var Ih={resize:function(t){const 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){const e=this.internal,n=e.state,i=e.$el.zoomResetBtn;if(n.rendered){var r,o;if(n.resizing)null==(r=e.brush)||r.updateResize();else null==(o=e.axis)||o.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;const e=this.internal,n=e.$el,i=n.chart,r=n.style,s=n.svg;if(Jo(e)){e.callPluginHook("$willDestroy"),e.charts.splice(e.charts.indexOf(this),1),e.unbindAllEvents(),s.select("*").interrupt(),e.resizeFunction.clear(),Cn.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;o(this,t),"internal"===n&&Object.keys(e).forEach(function(t){o(this,i),e[t]=null}.bind(this)),this[n]=null,delete this[n]}.bind(this));for(const e in this)this[e]=function(){o(this,t)}.bind(this)}return null},config:function(t,e,n){const i=this.internal,r=i.config,o=i.state,s=null==t?void 0:t.replace(/\./g,"_");let a;return t&&s in r?Vo(e)?(r[s]=e,a=e,n&&this.flush()):a=r[s]:(0===arguments.length||Ko(t))&&(a=o.orgConfig),a}};const Ph=function(t){var e=this;const n=this.internal.data.targets;if(!Yo(t)){const i=Qo(t)?t:[t];return n.filter(function(t){var n=this;return o(this,e),i.some(function(e){return o(this,n),e===t.id}.bind(this))}.bind(this))}return n};ds(Ph,{shown:function(t){return this.internal.filterTargetsToShow(this.data(t))},values:function(t,e){var n=this;void 0===e&&(e=!0);let i=null;if(t){const r=this.data(t);Qo(r)&&(i=[],r.forEach(function(t){var r=this;o(this,n);const s=t.values.map(function(t){return o(this,r),t.value}.bind(this));e?i=i.concat(s):i.push(s)}.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 Lh={data:Ph};const Dh=function(t){var e=this;return o(this,undefined),null==Cn.btoa?void 0:Cn.btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,function(t,n){return o(this,e),String.fromCharCode(+("0x"+n))}.bind(this)))}.bind(void 0);function Nh(t,e,n){var i=this;const r=e||n,s=r.width,a=r.height,c=new XMLSerializer,u=t.cloneNode(!0),l=function(t){var e=this;let n=[];return t.forEach(function(t){o(this,e);try{t.cssRules&&t.cssRules.length&&(n=n.concat(ps(t.cssRules)))}catch(e){var i;null==(i=Cn.console)||i.warn("Error while reading rules from "+t.href+": "+e.toString())}}.bind(this)),n}(ps(In.styleSheets)).filter(function(t){return o(this,i),t.cssText}.bind(this)).map(function(t){return o(this,i),t.cssText}.bind(this));u.setAttribute("xmlns",Ce.xhtml),u.style.margin="0",u.style.padding="0",e.preserveFontStyle&&u.querySelectorAll("text").forEach(function(t){o(this,i),t.innerHTML=""}.bind(this));const h=c.serializeToString(u),f=In.createElement("style");f.appendChild(In.createTextNode(l.join("\n")));const d=c.serializeToString(f),g='<svg xmlns="'+Ce.svg+'" width="'+s+'" height="'+a+'" \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>";return"data:image/svg+xml;base64,"+Dh(g)}function zh(t){var e=this;const n=t.getBoundingClientRect(),i=n.left,r=n.top,s=function(t){return o(this,e),t.textContent||t.childElementCount}.bind(this),a=[];return ps(t.querySelectorAll("text")).filter(s).forEach(function(t){var n=this;o(this,e);const c=function(t){var e;o(this,n);const s=Cn.getComputedStyle(t),a=s.fill,c=s.fontFamily,u=s.fontSize,l=s.textAnchor,h=s.transform,f=function(t,e){const n=e.top,i=e.left,r=t.getBBox(),o=r.x,s=r.y,a=t.getScreenCTM(),c=a.a,u=a.b,l=a.c,h=a.d,f=a.e,d=a.f,g=t.getBoundingClientRect(),p=g.width,v=g.height;return{x:c*o+l*s+f-i,y:u*o+h*s+d-n+(v-Math.round(v/4)),width:p,height:v}}(t,{left:i,top:r}),d=f.x,g=f.y,p=f.width,v=f.height;return(e={})[t.textContent]={x:d,y:g,width:p,height:v,fill:a,fontFamily:c,fontSize:u,textAnchor:l,transform:h},e}.bind(this);if(t.childElementCount>1)return ps(t.querySelectorAll("tspan")).filter(s).forEach(function(t){o(this,n),a.push(c(t))}.bind(this)),[];a.push(c(t))}.bind(this)),a}var Fh={export:function(t,e){var n=this;const i=this.internal,r=i.state,s=i.$el,a=s.chart,c=s.svg,u=r.current,l=u.width,h=u.height,f=xs({width:l,height:h,preserveAspectRatio:!0,preserveFontStyle:!1,mimeType:"image/png"},t),d=Nh(a.node(),f,{width:l,height:h}),g=f.preserveFontStyle?zh(c.node()):[];if(e&&Xo(e)){const t=new Image;t.crossOrigin="Anonymous",t.onload=function(){o(this,n);const i=In.createElement("canvas"),r=i.getContext("2d");i.width=f.width||l,i.height=f.height||h,r.drawImage(t,0,0),g.length&&(!function(t,e){var n=this;e.forEach(function(e){var i=this;o(this,n),Object.keys(e).forEach(function(n){var r=this;o(this,i);const s=e[n],a=s.x,c=s.y,u=s.width,l=s.height,h=s.fill,f=s.fontFamily,d=s.fontSize,g=s.transform;if(t.save(),t.font=d+" "+f,t.fillStyle=h,"none"===g)t.fillText(n,a,c);else{const e=g.replace(/(matrix|\(|\))/g,"").split(",");e.splice(4).every(function(t){return o(this,r),0==+t}.bind(this))?(e.push(a+u-u/4),e.push(c-l+l/3)):(e.push(a),e.push(c)),t.transform.apply(t,e),t.fillText(n,0,0)}t.restore()}.bind(this))}.bind(this))}(r,g),g.length=0),e.bind(this)(i.toDataURL(f.mimeType))}.bind(this),t.src=d}return d}},jh={focus:function(t){var e=this;const n=this.internal,i=n.state,r=n.mapToTargetIds(t),s=n.$el.svg.selectAll(n.selectorTargets(r.filter(n.isTargetToShow,n)));this.revert(),this.defocus(),s.classed(Ys.focused,!0).classed(Ys.defocused,!1),n.hasArcType()&&!i.hasRadar&&(n.expandArc(r),n.hasType("gauge")&&n.markOverlapped(t,n,"."+Bs.gaugeValue)),n.toggleFocusLegend(r,!0),i.focusedTargetIds=r,i.defocusedTargetIds=i.defocusedTargetIds.filter(function(t){return o(this,e),r.indexOf(t)<0}.bind(this))},defocus:function(t){var e=this;const n=this.internal,i=n.state,r=n.mapToTargetIds(t);n.$el.svg.selectAll(n.selectorTargets(r.filter(n.isTargetToShow,n))).classed(Ys.focused,!1).classed(Ys.defocused,!0),n.hasArcType(null,["polar"])&&(n.unexpandArc(r),n.hasType("gauge")&&n.undoMarkOverlapped(n,"."+Bs.gaugeValue)),n.toggleFocusLegend(r,!1),i.focusedTargetIds=i.focusedTargetIds.filter(function(t){return o(this,e),r.indexOf(t)<0}.bind(this)),i.defocusedTargetIds=r},revert:function(t){const e=this.internal,n=e.config,i=e.state,r=e.$el,o=e.mapToTargetIds(t);r.svg.selectAll(e.selectorTargets(o)).classed(Ys.focused,!1).classed(Ys.defocused,!1),e.hasArcType(null,["polar"])&&e.unexpandArc(o),n.legend_show&&(e.showLegend(o.filter(e.isLegendToShow.bind(e))),r.legend.selectAll(e.selectorLegends(o)).filter((function(){return Rn(this).classed(Ys.legendItemFocused)})).classed(Ys.legendItemFocused,!1)),i.focusedTargetIds=[],i.defocusedTargetIds=[]}};var Bh={legend:{show:function(t){const e=this.internal;e.showLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})},hide:function(t){const e=this.internal;e.hideLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})}}},Xh={load:function(t){var e=this;const 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){o(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){o(this,e),i.data_axes[n]=t.axes[n]}.bind(this)),"colors"in t&&Object.keys(t.colors).forEach(function(n){o(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;o(this,e),Nn(function(){return o(this,i),n.loadFromArgs(t)}.bind(this))}.bind(this)):n.loadFromArgs(t)},unload:function(t){var e=this;const n=this.internal;let i=t||{};Ko(i)&&this.tooltip.hide(),Qo(i)?i={ids:i}:$o(i)&&(i={ids:[i]});const r=n.mapToTargetIds(i.ids);n.unload(r,function(){o(this,e),n.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),n.cache.remove(r),ic.call(n,i.done,i.resizeAfter)}.bind(this))}};function $h(t,e,n){var i=this;const r=this.internal,s=r.mapToTargetIds(e),a=r.state.hiddenTargetIds.map(function(t){return o(this,i),s.indexOf(t)>-1&&t}.bind(this)).filter(Boolean);r.state.toggling=!0,r[(t?"remove":"add")+"HiddenTargetIds"](s);const c=r.$el.svg.selectAll(r.selectorTargets(s)),u=t?null:"0";t&&a.length&&(c.style("display",null),ns(r.config.data_onshown,this,a)),r.$T(c).style("opacity",u,"important").call(is,function(){o(this,i),t||0!==a.length||(c.style("display","none"),ns(r.config.data_onhidden,this,s)),c.style("opacity",u)}.bind(this)),n.withLegend&&r[(t?"show":"hide")+"Legend"](s),r.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),r.state.toggling=!1}var Uh={show:function(t,e){void 0===e&&(e={}),$h.call(this,!0,t,e)},hide:function(t,e){void 0===e&&(e={}),$h.call(this,!1,t,e)},toggle:function(t,e){var n=this;void 0===e&&(e={});const i=this.internal,r={show:[],hide:[]};i.mapToTargetIds(t).forEach(function(t){return o(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 o(this,n),this.hide(r.hide,e)}.bind(this),0)}};const Yh={show:function(t){var e=this;const n=this.internal,i=n.$el,r=n.config,s=n.state,a=s.eventReceiver,c=s.hasTreemap,u=s.inputType;let l,h;if(t.mouse&&(h=t.mouse),t.data){var f;const e=t.data,o=null==(f=n.getYScaleById(e.id))?void 0:f(e.value);if(c&&e.id)a.rect=i.main.select(""+n.selectorTarget(e.id,void 0,"rect"));else if(n.isMultipleX())h=[n.xx(e),o];else{var d,g;r.tooltip_grouped||(h=[0,o]),l=null!=(d=e.index)?d:n.hasArcType()&&e.id?null==(g=n.getArcElementByIdOrIndex(e.id))?void 0:g.datum().index:n.getIndexByX(e.x)}}else Vo(t.x)?l=n.getIndexByX(t.x):Vo(t.index)&&(l=t.index);("mouse"===u?["mouseover","mousemove"]:["touchstart"]).forEach(function(t){o(this,e),n.dispatchEvent(t,l,h)}.bind(this))},hide:function(){var t=this;const e=this.internal,n=e.state.inputType,i=e.$el.tooltip,r=null==i?void 0:i.datum();if(r){const i=JSON.parse(r.current)[0].index;("mouse"===n?["mouseout"]:["touchend"]).forEach(function(n){o(this,t),e.dispatchEvent(n,i)}.bind(this))}"touch"===n&&e.callOverOutForTouch(),e.hideTooltip(!0),null==e.hideGridFocus||e.hideGridFocus(),null==e.unexpandCircles||e.unexpandCircles(),null==e.expandBarTypeShapes||e.expandBarTypeShapes(!1)}};var Vh={tooltip:Yh};let Gh=function t(e){this.plugins=[],this.internal=void 0;const n=new Rh(this);this.internal=n,function t(e,n,i){var r=this;Object.keys(e).forEach(function(s){o(this,r);const a=Xo(e[s]),c=n!==i,u=Jo(e[s]),l=u&&Object.keys(e[s]).length>0;n[s]=a&&(!c&&l||c)?e[s].bind(i):u&&!a?{}:e[s],l&&t(e[s],n[s],i)}.bind(this))}(t.prototype,this,this),Ch.call(n,e),n.beforeInit(),n.init()};function Hh(t,e,n){var i=this;const r=t.config,s=function(t,n){o(this,i);const s=Uo(n)?n:!1===n?void 0:null;null!==s&&(r["axis_"+t+"_"+e]=s)}.bind(this);Vo(n)&&(Zo(n)?Object.keys(n).forEach(function(t){o(this,i),s(t,n[t])}.bind(this)):(Uo(n)||!1===n)&&["y","y2"].forEach(function(t){o(this,i),s(t,n)}.bind(this)),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))}function Wh(t,e){const n=t.config;return{x:n["axis_x_"+e],y:n["axis_y_"+e],y2:n["axis_y2_"+e]}}ds(Gh.prototype,[Ih,{color:function(t){return this.internal.color(t)}},Lh,Fh,jh,Bh,Xh,Uh,Vh]);const qh={labels:function(t){var e=this;const n=this.internal;let i;return t&&(Object.keys(t).forEach(function(i){o(this,e),n.axis.setLabelText(i,t[i])}.bind(this)),n.axis.updateLabels()),["x","y","y2"].forEach(function(t){o(this,e);const r=n.axis.getLabelText(t);r&&(i||(i={}),i[t]=r)}.bind(this)),i},min:function(t){const e=this.internal;return Bo(t)||!1===t?Hh(e,"min",t):Wh(e,"min")},max:function(t){const e=this.internal;return Bo(t)||!1===t?Hh(e,"max",t):Wh(e,"max")},range:function(t){const e=this.axis;if(!arguments.length)return{max:e.max(),min:e.min()};{const n=t.min,i=t.max;Vo(i)&&e.max(i),Vo(n)&&e.min(n)}}};var Zh={axis:qh},Kh={category:function(t,e){const 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){const e=this.internal,n=e.config;if(!t||!Array.isArray(t)){const t=n.axis_x_categories;return Ko(t)?Object.values(e.data.xs)[0]:t}return n.axis_x_categories=t,e.redraw(),n.axis_x_categories}};function Jh(t,e){const n=this.internal,i=n.config,r=i.transition_duration&&Es(),o="grid_"+e+"_lines";return t?(i[o]=t,n.updateGrid(),n.redrawGrid(r),i[o]):i[o]}function Qh(t,e){return Jh.bind(this)(this.internal.config["grid_"+e+"_lines"].concat(t||[]),e)}function tf(t,e){this.internal.removeGridLines(t,e)}const ef=function(t){return Jh.bind(this)(t,"x")};ds(ef,{add:function(t){return Qh.bind(this)(t,"x")},remove:function(t){return tf.bind(this)(t,!0)}});const nf=function(t){return Jh.bind(this)(t,"y")};ds(nf,{add:function(t){return Qh.bind(this)(t,"y")},remove:function(t){return tf.bind(this)(t,!1)}});var rf={xgrids:ef,ygrids:nf},of={groups:function(t){const e=this.internal,n=e.config;return Yo(t)||(n.data_groups=t,e.redraw()),n.data_groups}};function sf(t,e){void 0===e&&(e=!1);const n=this.internal,i=n.config,r=i.transition_duration&&Es();return t?(i.regions=e?i.regions.concat(t):t,n.updateRegion(),n.redrawRegion(r),e?i.regions:t):i.regions}const af=function(t){return sf.bind(this)(t)};ds(af,{add:function(t){return sf.bind(this)(t,!0)},remove:function(t){var e=this;const n=this.internal,i=n.config,r=n.$T,s=t||{},a=es(s,"classes",[qs.region]);let c=n.$el.main.select("."+qs.regions).selectAll(a.map(function(t){return o(this,e),"."+t}.bind(this)));return r(c).style("opacity","0").remove(),c=i.regions,Object.keys(s).length?(c=c.filter(function(t){var n=this;o(this,e);let i=!1;return!t.class||(t.class.split(" ").forEach(function(t){o(this,n),a.indexOf(t)>=0&&(i=!0)}.bind(this)),!i)}.bind(this)),i.regions=c):i.regions=[],c}});var cf={regions:af},uf={x:function(t){const e=this.internal,n=e.axis,i=e.data,r=n.isCustomX()&&n.isCategorized();return Qo(t)&&(r?this.categories(t):(e.updateTargetX(i.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))),r?this.categories():i.xs},xs:function(t){const e=this.internal;return ts(t)&&(e.updateTargetXs(e.data.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),e.data.xs}},lf={flow:function(t){var e=this;const n=this.internal;let i;(t.json||t.rows||t.columns)&&n.convertData(t,function(r){o(this,e),i=r,function(){var e=this;let r,s,a,c=0,u=0;if(n.state.redrawing||!i||!Es())return;const l=[],h=n.getMaxDataCount(),f=n.convertDataToTargets(i,!0),d=n.axis.isTimeSeries();n.data.targets.forEach(function(t){o(this,e);let n=!1;for(let e=0;e<f.length;e++)if(t.id===f[e].id){n=!0,t.values[t.values.length-1]&&(u=t.values[t.values.length-1].index+1),c=f[e].values.length;for(let t=0;t<c;t++)f[e].values[t].index=u+t,d||(f[e].values[t].x=u+t);t.values=t.values.concat(f[e].values),f.splice(e,1);break}n||l.push(t.id)}.bind(this)),n.data.targets.forEach(function(t){o(this,e);for(let e=0;e<l.length;e++)if(t.id===l[e]){u=t.values[t.values.length-1].index+1;for(let e=0;e<c;e++)t.values.push({id:t.id,index:u+e,x:d?n.getOtherTargetX(u+e):u+e,value:null})}}.bind(this)),n.data.targets.length&&f.forEach(function(t){var i=this;o(this,e);const r=[];for(let e=n.data.targets[0].values[0].index;e<u;e++)r.push({id:t.id,index:e,x:d?n.getOtherTargetX(e):e,value:null});t.values.forEach(function(t){o(this,i),t.index+=u,d||(t.x+=u)}.bind(this)),t.values=r.concat(t.values)}.bind(this));n.data.targets=n.data.targets.concat(f);const g=n.data.targets[0],p=g.values[0];Vo(t.to)?(c=0,a=d?Ss.call(n,t.to):t.to,g.values.forEach(function(t){o(this,e),t.x<a&&c++}.bind(this))):Vo(t.length)&&(c=t.length);h?1===h&&d&&(s=(g.values[g.values.length-1].x-p.x)/2,r=[new Date(+p.x-s),new Date(+p.x+s)]):(s=d?g.values.length>1?g.values[g.values.length-1].x-p.x:p.x-n.getXDomain(n.data.targets)[0]:1,r=[p.x-s,p.x]);r&&n.updateXDomain(null,!0,!0,!1,r),n.updateTargets(n.data.targets),n.redraw({flow:{index:p.index,length:c,duration:Bo(t.duration)?t.duration:n.config.transition_duration,done:t.done,orgDataCount:h},withLegend:!0,withTransition:h>1,withTrimXDomain:!1,withUpdateXAxis:!0})}()}.bind(this))}};function hf(t){return t}var ff=1,df=2,gf=3,pf=4,vf=1e-6;function yf(t){return"translate("+t+",0)"}function bf(t){return"translate(0,"+t+")"}function xf(t){var e=this;return function(n){return o(this,e),+t(n)}.bind(this)}function mf(t,e){var n=this;return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),function(i){return o(this,n),+t(i)+e}.bind(this)}function _f(){return!this.__axis}function Tf(t,e){var n=[],i=null,r=null,o=6,s=6,a=3,c="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,u=t===ff||t===pf?-1:1,l=t===pf||t===df?"x":"y",h=t===ff||t===gf?yf:bf;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):hf:r,p=Math.max(o,0)+a,v=e.range(),y=+v[0]+c,b=+v[v.length-1]+c,x=(e.bandwidth?mf:xf)(e.copy(),c),m=f.selection?f.selection():f,_=m.selectAll(".domain").data([null]),T=m.selectAll(".tick").data(d,e).order(),w=T.exit(),A=T.enter().append("g").attr("class","tick"),S=T.select("line"),E=T.select("text");_=_.merge(_.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),T=T.merge(A),S=S.merge(A.append("line").attr("stroke","currentColor").attr(l+"2",u*o)),E=E.merge(A.append("text").attr("fill","currentColor").attr(l,u*p).attr("dy",t===ff?"0em":t===gf?"0.71em":"0.32em")),f!==m&&(_=_.transition(f),T=T.transition(f),S=S.transition(f),E=E.transition(f),w=w.transition(f).attr("opacity",vf).attr("transform",(function(t){return isFinite(t=x(t))?h(t+c):this.getAttribute("transform")})),A.attr("opacity",vf).attr("transform",(function(t){var e=this.parentNode.__axis;return h((e&&isFinite(e=e(t))?e:x(t))+c)}))),w.remove(),_.attr("d",t===pf||t===df?s?"M"+u*s+","+y+"H"+c+"V"+b+"H"+u*s:"M"+c+","+y+"V"+b:s?"M"+y+","+u*s+"V"+c+"H"+b+"V"+u*s:"M"+y+","+c+"H"+b),T.attr("opacity",1).attr("transform",(function(t){return h(x(t)+c)})),S.attr(l+"2",u*o),E.attr(l,u*p).text(g),m.filter(_f).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===df?"start":t===pf?"end":"middle"),m.each((function(){this.__axis=x}))}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?(o=s=+t,f):o},f.tickSizeInner=function(t){return arguments.length?(o=+t,f):o},f.tickSizeOuter=function(t){return arguments.length?(s=+t,f):s},f.tickPadding=function(t){return arguments.length?(a=+t,f):a},f.offset=function(t){return arguments.length?(c=+t,f):c},f}function wf(t){return Tf(ff,t)}function Af(t){return Tf(df,t)}function Sf(t){return Tf(gf,t)}function Ef(t){return Tf(pf,t)}let kf=function(){function t(t){this.owner=void 0,this.config=void 0,this.scale=void 0;const e=dl(),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;const n={w:5.5,h:11.5};return t.empty()||t.select("text").text("0").call(function(t){o(this,e);try{const e=t.node().getBBox(),i=e.width,r=e.height;i&&r&&(n.w=i,n.h=r)}catch(t){}finally{t.text("")}}.bind(this)),this.getSizeFor1Char=function(){return o(this,e),n}.bind(this),n};var e=t.prototype;return e.getTickTransformSetter=function(t){var e=this;const n=this.config,i="x"===t?function(t){return o(this,e),"translate("+(t+n.tickOffset)+",0)"}.bind(this):function(t){return o(this,e),"translate(0,"+t+")"}.bind(this);return function(t,n){var r=this;o(this,e),t.attr("transform",function(t){return o(this,r),Bo(t)?i(Math.ceil(n(t))):null}.bind(this))}.bind(this)},e.scaleExtent=function(t){const e=t[0],n=t[t.length-1];return e<n?[e,n]:[n,e]},e.generateTicks=function(t,e){var n=this;const i=this.owner.params.tickStepSize,r=t.domain(),s=r[0],a=r[1];let c=[];if(e&&i){let t=Math.round(s);for(;t<=a;)c.push(t),t+=i}else if(t.ticks){const e=this.config.tickArguments;if("log"!==t.type||e)c=t.ticks.apply(t,this.config.tickArguments||[]);else{const e=dl("_log").domain([s>0?s:1,a]).range(t.range());c=e.ticks();for(let t=a.toFixed().length;c.length>15;t--)c=e.ticks(t);c.splice(0,1,s),c.splice(c.length-1,1,a)}c=c.map(function(t){o(this,n);return $o(t)&&Uo(t)&&!isNaN(t)&&Math.round(10*t)/10||t}.bind(this))}return c},e.copyScale=function(){const t=this.scale.copy();return t.domain().length||t.domain(this.scale.domain()),t.type=this.scale.type,t},e.textFormatted=function(t){const e=this.config.tickFormat,n=/\d+\.\d+0{5,}\d$/.test(t)?+(t+"").replace(/0+\d$/,""):t,i=e?e(n):n;return Vo(i)?i:""},e.transitionise=function(t){const e=this.config;let 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}(),Of=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;const 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 kf(this)}var e=t.prototype;return e.create=function(t){const e=this,n=e.config,i=e.helper,r=e.params,s=i.scale,a=n.orient,c=this.splitTickText.bind(e),u=/^(left|right)$/.test(a),l=/^(top|bottom)$/.test(a),h=i.getTickTransformSetter(l?"x":"y"),f=h===i.axisX?"y":"x",d=/^(top|left)$/.test(a)?-1:1,g=r.tickTextRotate;this.config.range=s.rangeExtent?s.rangeExtent():i.scaleExtent((r.orgXScale||s).range());const p=n.innerTickSize,v=n.tickLength,y=n.range,b=r.id,x=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,_=r.config[m+"_show"],T=!!_&&r.config[m+"_tick_show"],w=!!_&&r.config[m+"_tick_text_show"];let A;t.each((function(){var t=this;const b=Rn(this);let m=this.__chart__||s,_=i.copyScale();A=b,this.__chart__=_,n.tickOffset=r.isCategory?Math.ceil((_(1)-_(0))/2):0;const S=b.selectAll(".domain").data([0]);if(S.enter().append("path").attr("class","domain").merge(S).attr("d",function(){o(this,t);const e=n.outerTickSize*d;return l?"M"+y[0]+","+e+"V0H"+y[1]+"V"+e:"M"+e+","+y[0]+"H0V"+y[1]+"H"+e}.bind(this)),T||w){const s=n.tickValues||i.generateTicks(_,u);e.generatedTicks=s;let y=b.selectAll(".tick").data(s,_);const A=y.enter().insert("g",".domain").attr("class","tick"),S=y.exit().remove();y=A.merge(y),T&&A.append("line"),w&&A.append("text");const E=kf.getSizeFor1Char(y),k=[];let O=y.select("text").selectAll("tspan").data(function(e,n){var a=this;o(this,t);const l=r.tickMultiline?c(e,_,s,u,E.w):Qo(i.textFormatted(e))?i.textFormatted(e).concat():[i.textFormatted(e)];return k[n]=l.length,l.map(function(t){return o(this,a),{index:n,splitted:t}}.bind(this))}.bind(this));O.exit().remove(),O=O.enter().append("tspan").merge(O).text(function(e){return o(this,t),e.splitted}.bind(this)),O.attr("x",l?0:v*d).attr("dx",function(){o(this,t);let e=0;return/(top|bottom)/.test(a)&&g&&(e=8*Math.sin(Math.PI*(g/180))*("top"===a?-1:1)),e+(x.x||0)}.bind(this)()).attr("dy",function(e,n){o(this,t);let i=0;return"top"!==a&&(i=E.h,0===n&&(i=u?-((k[e.index]-1)*(E.h/2)-3):0===x.y?".71em":0)),Uo(i)&&x.y?i+x.y:i||".71em"}.bind(this));const M=y.select("line"),R=y.select("text");if(A.select("line").attr(f+"2",p*d),A.select("text").attr(f,v*d),e.setTickLineTextPosition(M,R),r.tickTitle){const e=R.select("title");(e.empty()?R.append("title"):e).text(function(e){return o(this,t),r.tickTitle[e]}.bind(this))}if(_.bandwidth){const e=_,n=e.bandwidth()/2;m=function(i){return o(this,t),e(i)+n}.bind(this),_=m}else m.bandwidth?m=_:h(S,_);y=r.owner.state.flowing?i.transitionise(y):r.owner.$T(y),h(A,m),h(y.style("opacity",null),_)}})),this.g=A},e.getGeneratedTicks=function(t){var e,n=this;const i=(null==(e=this.generatedTicks)?void 0:e.length)-1;let r=this.generatedTicks;if(i>t){const e=Math.round(i/t+.1);r=this.generatedTicks.map(function(t,i){return o(this,n),i%e==0?t:null}.bind(this)).filter(function(t){return o(this,n),null!==t}.bind(this)).splice(0,t)}return r},e.getTickXY=function(){const 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){const e=this.helper.scale,n=this.config,i=n,r=i.innerTickSize,o=i.range,s=e(t)+(n.tickCentered?0:n.tickOffset);return o[0]<s&&s<o[1]?r:0},e.setTickLineTextPosition=function(t,e){var n=this;const i=this.getTickXY(),r=this.config,s=r.innerTickSize,a=r.orient,c=r.tickLength,u=r.tickOffset,l=this.params.tickTextRotate,h=function(t){o(this,n);const e=["start","end"];return"top"===a&&e.reverse(),t?e[t>0?0:1]:"middle"}.bind(this),f=function(t){return o(this,n),t?"rotate("+t+")":null}.bind(this),d=function(t){o(this,n);return t?11.5-2.5*(t/("bottom"===a?15:23))*(t>0?1:-1):c}.bind(this);switch(a){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",-s),e.attr("x",0).attr("y",2*-d(l)).style("text-anchor",h(l)).attr("transform",f(l));break;case"left":t.attr("x2",-s).attr("y1",i.y).attr("y2",i.y),e.attr("x",-c).attr("y",u).style("text-anchor","end");break;case"right":t.attr("x2",s).attr("y2",0),e.attr("x",c).attr("y",0).style("text-anchor","start")}},e.splitTickText=function(t,e,n,i,r){const o=this.params,s=this.helper.textFormatted(t),a=$o(s)&&s.indexOf("\n")>-1?s.split("\n"):[];if(a.length)return a;if(Qo(s))return s;let c=o.tickWidth;return(!c||c<=0)&&(c=i?95:o.isCategory?Math.ceil(o.isInverted?e(n[0])-e(n[1]):e(n[1])-e(n[0]))-12:110),function t(e,n){let i,o,s;for(let a=1;a<n.length;a++)if(" "===n.charAt(a)&&(o=a),i=n.substr(0,a+1),s=r*i.length,c<s)return t(e.concat(n.substr(0,o||a)),n.slice(o?o+1:a));return e.concat(n)}(a,s+"")},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){const e=this.config;return arguments.length?(e.tickFormat=t,this):e.tickFormat},e.tickCentered=function(t){const 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=this;const n=this.config,i=n.outerTickSize,r=n.tickOffset,s=n.tickValues;let a;if(this.params.isCategory)a=2*r;else{a=(this.g.select("path.domain").node().getTotalLength()-2*i)/(t||this.g.selectAll("line").size());const n=s?s.map(function(t,n,i){o(this,e);const r=n+1;return r<i.length?this.helper.scale(i[r])-this.helper.scale(t):null}.bind(this)).filter(Boolean):[];a=Math.min.apply(Math,n.concat([a]))}return a===1/0?0:a},e.ticks=function(){const t=this.config;for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];return n.length?(t.tickArguments=ps(n),this):t.tickArguments},e.tickCulling=function(t){const e=this.config;return arguments.length?(e.tickCulling=t,this):e.tickCulling},e.tickValues=function(t){var e=this;const n=this.config;if(Xo(t))n.tickValues=function(){return o(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}();var Mf={getAxisInstance:function(){return this.axis||new Rf(this)}};let Rf=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 Ls.axis+" "+Ls["axis"+gs(t)]},e.isHorizontal=function(t,e){const n=t.config.axis_rotated;return e?n:!n},e.isCategorized=function(){const t=this.owner,e=t.config,n=t.state;return e.axis_x_type.indexOf("category")>=0||n.hasRadar},e.isCustomX=function(){const t=this.owner.config;return!this.isTimeSeries()&&(t.data_x||Jo(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");let 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;const e=this.owner,n=e.config,i=e.$el,r=i.main,s=i.axis,a=e.state.clip,c=n.axis_rotated,u=["x","y"];n.axis_y2_show&&u.push("y2"),u.forEach(function(i){var u=this;o(this,t);const l=this.getAxisClassName(i),h=Ls["axis"+i.toUpperCase()+"Label"];s[i]=r.append("g").attr("class",l).attr("clip-path",function(){o(this,u);let t=null;return"x"===i?t=a.pathXAxis:"y"===i&&(t=a.pathYAxis),t}.bind(this)).attr("transform",e.getTranslate(i)).style("visibility",n["axis_"+i+"_show"]?null:"hidden"),s[i].append("text").attr("class",h).attr("transform",["rotate(-90)",null]["x"===i?+!c:+c]).style("text-anchor",function(){return o(this,u),this.textAnchorForAxisLabel(i)}.bind(this)),this.generateAxes(i)}.bind(this))},e.setOrient=function(){const 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=this;const n=this.owner,i=n.config,r=[],s=i["axis_"+t+"_axes"],a=i.axis_rotated;let c;"x"===t?c=a?Ef:Sf:"y"===t?c=a?Sf:Ef:"y2"===t&&(c=a?wf:Af),s.length&&s.forEach(function(i){var s=this;o(this,e);const a=i.tick||{},u=n.scale[t].copy();i.domain&&u.domain(i.domain),r.push(c(u).ticks(a.count).tickFormat(Xo(a.format)?a.format.bind(n.api):function(t){return o(this,s),t}.bind(this)).tickValues(a.values).tickSizeOuter(!1===a.outer?0:6))}.bind(this)),this.axesList[t]=r},e.updateAxes=function(){var t=this;const e=this.owner,n=e.config,i=e.$el.main,r=e.$T;Object.keys(this.axesList).forEach(function(s){var a=this;o(this,t);const c=n["axis_"+s+"_axes"],u=e.scale[s].copy(),l=u.range();this.axesList[s].forEach(function(t,h){var f=this;o(this,a);const d=t.scale().range();l.every(function(t,e){return o(this,f),t===d[e]}.bind(this))||t.scale().range(l);const g=this.getAxisClassName(s)+"-"+(h+1);let p=i.select("."+g.replace(/\s/,"."));p.empty()?p=i.append("g").attr("class",g).style("visibility",n["axis_"+s+"_show"]?null:"hidden").call(t):(c[h].domain&&u.domain(c[h].domain),r(p).call(t.scale(u))),p.attr("transform",e.getTranslate(s,h+1))}.bind(this))}.bind(this))},e.setAxis=function(t,e,n,i){const 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 s=this;const a=this.owner,c=a.config,u=/^(x|subX)$/.test(t),l=u?"x":t,h=u&&this.isCategorized(),f=this.orient[t],d=r?0:a.getAxisTickRotate(l);let g;if(u)g="subX"===t?a.format.subXAxisTick:a.format.xAxisTick;else{const e=c["axis_"+t+"_tick_format"];Xo(e)&&(g=e.bind(a.api))}let p=this.tick[l];const v=xs({outerTick:n,noTransition:i,config:c,id:t,tickTextRotate:d,owner:a},u&&{isCategory:h,isInverted:c.axis_x_inverted,tickMultiline:c.axis_x_tick_multiline,tickWidth:c.axis_x_tick_width,tickTitle:h&&c.axis_x_tick_tooltip&&a.api.categories(),orgXScale:a.scale.x});u||(v.tickStepSize=c["axis_"+l+"_tick_stepSize"]);const y=new Of(v).scale(u&&a.scale.zoom||e).orient(f);if(u&&this.isTimeSeries()&&p&&!Xo(p)){const t=Ss.bind(a);p=p.map(function(e){return o(this,s),t(e)}.bind(this))}else!u&&this.isTimeSeriesY()&&(y.ticks(c.axis_y_tick_time_value),p=null);p&&y.tickValues(p),y.tickFormat(g||!u&&a.isStackNormalized()&&function(t){return o(this,s),t+"%"}.bind(this)),h&&(y.tickCentered(c.axis_x_tick_centered),Ko(c.axis_x_tick_culling)&&(c.axis_x_tick_culling=!1));const b=c["axis_"+l+"_tick_count"];return b&&y.ticks(b),y},e.updateXAxisTickValues=function(t,e){const n=this.owner,i=n.config,r=i.axis_x_tick_fit;let o,s=i.axis_x_tick_count;if((r||s&&r)&&(o=n.mapTargetsToUniqueXs(t),this.isCategorized()&&s>o.length&&(s=o.length),o=this.generateTickValues(o,s,this.isTimeSeries())),e)e.tickValues(o);else if(this.x){var a;this.x.tickValues(o),null==(a=this.subX)||a.tickValues(o)}return o},e.getId=function(t){const e=this.owner,n=e.config,i=e.scale;let r=n.data_axes[t];return r&&i[r]||(r="y"),r},e.getXAxisTickFormat=function(t){var e=this;const n=this.owner,i=n.config,r=n.format,s=t&&i.subchart_axis_x_tick_format||i.axis_x_tick_format,a=this.isTimeSeries(),c=this.isCategorized();let u;return s?Xo(s)?u=s.bind(n.api):a&&(u=function(t){return o(this,e),t?r.axisTime(s)(t):""}.bind(this)):u=a?r.defaultAxisTime:c?n.categoryName:function(t){return o(this,e),t<0?t.toFixed(0):t}.bind(this),Xo(u)?function(t){return o(this,e),u.apply(n,c?[t,n.categoryName(t)]:[t])}.bind(this):u},e.getTickValues=function(t){const e=this.owner,n=e.config["axis_"+t+"_tick_values"],i=e[t+"Axis"];return(Xo(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){const e=this.getLabelOptionByAxisId(t);return $o(e)?e:e?e.text:null},e.setLabelText=function(t,e){const n=this.owner.config,i=this.getLabelOptionByAxisId(t);$o(i)?n["axis_"+t+"_label"]=e:i&&(i.text=e)},e.getLabelPosition=function(t,e){var n=this;const i=this.owner.config.axis_rotated,r=this.getLabelOptionByAxisId(t),s=Zo(r)&&r.position?r.position:e[+!i],a=function(t){return o(this,n),!!~s.indexOf(t)}.bind(this);return{isInner:a("inner"),isOuter:a("outer"),isLeft:a("left"),isCenter:a("center"),isRight:a("right"),isTop:a("top"),isMiddle:a("middle"),isBottom:a("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){const e=this.owner,n=e.state,i=n.width,r=n.height,o=this.getAxisLabelPosition(t);let s=o.isMiddle?-r/2:0;return this.isHorizontal(e,"x"!==t)?s=o.isLeft?0:o.isCenter?i/2:i:o.isBottom&&(s=-r),s},e.dxForAxisLabel=function(t){const e=this.owner,n=this.getAxisLabelPosition(t);let 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){const e=this.owner,n=this.getAxisLabelPosition(t);let 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){const e=this.owner,n=e.config,i=n.axis_rotated,r=this.getAxisLabelPosition(t).isInner,o=n["axis_"+t+"_tick_rotate"]?e.getHorizontalAxisHeight(t):0,s=this.getMaxTickWidth(t);let a;if("x"===t){const t=n.axis_x_height;a=i?r?"1.2em":-25-s:r?"-0.5em":t?t-10:o?o-10:"3em"}else a={y:["-0.5em",10,"3em","1.2em",10],y2:["1.2em",-20,"-2.2em","-0.5em",15]}[t],a=i?r?a[0]:o?o*("y2"===t?-1:1)-a[1]:a[2]:r?a[3]:(a[4]+(n["axis_"+t+"_inner"]?0:s+a[4]))*("y"===t?-1:1);return a},e.getMaxTickWidth=function(t,e){var n=this;const i=this.owner,r=i.config,s=i.state.current,a=i.$el,c=a.svg,u=a.chart,l=s.maxTickWidths[t];let h=0;if(e||!r["axis_"+t+"_show"]||l.size>0&&0===i.filterTargetsToShow().length)return l.size;if(c){const e=/^y2?$/.test(t),s=i.filterTargetsToShow(i.data.targets),a=i.scale[t].copy().domain(i["get"+(e?"Y":"X")+"Domain"](s,t)),c=a.domain(),f=c[0]===c[1]&&c.every(function(t){return o(this,n),t>0}.bind(this)),d=Qo(l.domain)&&l.domain[0]===l.domain[1]&&l.domain.every(function(t){return o(this,n),t>0}.bind(this));if(f||d)return l.size;l.domain=c,e||l.ticks.splice(0);const g=this.getAxis(t,a,!1,!1,!0),p=r["axis_"+t+"_tick_count"];!r["axis_"+t+"_tick_values"]&&p&&g.tickValues(this.generateTickValues(c,p,e?this.isTimeSeriesY():this.isTimeSeries())),e||this.updateXAxisTickValues(s,g);const v=u.append("svg").style("visibility","hidden").style("position","fixed").style("top","0").style("left","0");g.create(v),v.selectAll("text").each((function(t,n){const i=this.getBoundingClientRect().width;h=Math.max(h,i),e||(l.ticks[n]=i)})),v.remove()}return h>0&&(l.size=h),l.size},e.getXAxisTickTextY2Overflow=function(t){const e=this.owner,n=e.axis,i=e.config,r=e.state,o=e.getAxisTickRotate("x");if((n.isCategorized()||n.isTimeSeries())&&i.axis_x_tick_fit&&!i.axis_x_tick_culling&&!i.axis_x_tick_multiline&&o>0&&o<90){const n=r.current.width-e.getCurrentPaddingLeft(),i=this.getXAxisTickMaxOverflow(o,n-t),s=Math.max(0,i)+t;return Math.min(s,n/2)}return 0},e.getXAxisTickMaxOverflow=function(t,e){const n=this.owner,i=n.axis,r=n.config,o=n.state,s=i.isTimeSeries(),a=o.current.maxTickWidths.x.ticks,c=a.length,u=o.axis.x.padding,l=u.left,h=u.right;let f=0;const d=c-(s&&r.axis_x_tick_fit?.5:0);for(let n=0;n<c;n++){const i=n+1,r=Math.cos(Math.PI*t/180)*a[n],o=i-(s?1:.5)+l;if(o<=0)continue;const c=(e-r)/o;f=Math.max(f,r-c/2-((d-i)*c+h*c))}const g=n.filterTargetsToShow(n.data.targets);let p=0;if(!s&&r.axis_x_tick_count<=g.length&&g[0].values.length){const t=dl(n.axis.getAxisType("x"),0,e-f).domain([-1*l,n.getXDomainMax(n.data.targets)+1+h]);p=Math.ceil((t(1)-t(0))/2)}return f+p},e.updateLabels=function(t){var e=this;const n=this.owner,i=n.$el.main,r=n.$T,s={x:i.select("."+Ls.axisX+" ."+Ls.axisXLabel),y:i.select("."+Ls.axisY+" ."+Ls.axisYLabel),y2:i.select("."+Ls.axisY2+" ."+Ls.axisY2Label)};Object.keys(s).filter(function(t){return o(this,e),!s[t].empty()}.bind(this)).forEach(function(n){var i=this;o(this,e);const a=s[n];r(a,t).attr("x",function(){return o(this,i),this.xForAxisLabel(n)}.bind(this)).attr("dx",function(){return o(this,i),this.dxForAxisLabel(n)}.bind(this)).attr("dy",function(){return o(this,i),this.dyForAxisLabel(n)}.bind(this)).text(function(){return o(this,i),this.getLabelText(n)}.bind(this))}.bind(this))},e.getPadding=function(t,e,n,i){const r=Uo(t)?t:t[e];return Bo(r)?this.owner.convertPixelToScale(/(bottom|top)/.test(e)?"y":"x",r,i):n},e.generateTickValues=function(t,e,n){var i=this;let r=t;if(e){const i=Xo(e)?e():e;if(1===i)r=[t[0]];else if(2===i)r=[t[0],t[t.length-1]];else if(i>2){const e=this.isCategorized(),o=i-2,s=t[0],a=t[t.length-1];let c;r=[s];for(let t=0;t<o;t++)c=+s+(a-s)/(o+1)*(t+1),r.push(n?new Date(c):e?Math.round(c):c);r.push(a)}}return n||(r=r.sort(function(t,e){return o(this,i),t-e}.bind(this))),r},e.generateTransitions=function(t){var e=this;const n=this.owner,i=n.$el.axis,r=n.$T,s=["x","y","y2","subX"].map(function(n){return o(this,e),r(i[n],t)}.bind(this));return{axisX:s[0],axisY:s[1],axisY2:s[2],axisSubX:s[3]}},e.redraw=function(t,e,n){var i=this;const r=this.owner,s=r.config,a=r.$el,c=e?"0":null;["x","y","y2","subX"].forEach(function(e){o(this,i);const r=this[e],u=a.axis[e];r&&u&&(n||s.transition_duration||(r.config.withoutTransition=!0),u.style("opacity",c),r.create(t["axis"+gs(e)]))}.bind(this)),this.updateAxes()},e.redrawAxis=function(t,e,n,i,r){var s=this;const a=this.owner,c=a.config,u=a.scale,l=a.$el,h=!!u.zoom;let f;if(!h&&this.isCategorized()&&0===t.length&&u.x.domain([0,l.axis.x.selectAll(".tick").size()]),u.x&&t.length)h||a.updateXDomain(t,e.UpdateXDomain,e.UpdateOrgXDomain,e.TrimXDomain),c.axis_x_tick_values||this.updateXAxisTickValues(t);else if(this.x){var d;this.x.tickValues([]),null==(d=this.subX)||d.tickValues([])}var g,p;(c.zoom_rescale&&!i&&(f=u.x.orgDomain()),["y","y2"].forEach(function(e){var n=this;o(this,s);const i="axis_"+e+"_",r=u[e];if(r){const s=c[i+"tick_values"],u=c[i+"tick_count"];if(r.domain(a.getYDomain(t,e,f)),!s&&u){const t=a.axis[e],i=r.domain();t.tickValues(this.generateTickValues(i,i.every(function(t){return o(this,n),0===t}.bind(this))?1:u,this.isTimeSeriesY()))}}}.bind(this)),this.redraw(n,a.hasArcType(),r),this.updateLabels(e.Transition),(e.UpdateXDomain||e.UpdateXAxis||e.Y)&&t.length&&this.setCulling(),e.Y)&&(null==(g=u.subY)||g.domain(a.getYDomain(t,"y")),null==(p=u.subY2)||p.domain(a.getYDomain(t,"y2")))},e.setCulling=function(){var t=this;const e=this.owner,n=e.config,i=e.state,r=i.clip,s=i.current,a=e.$el;["subX","x","y","y2"].forEach(function(e){o(this,t);const i=a.axis[e],c="axis_"+("subX"===e?"x":e)+"_tick_culling",u=n[c];if(i&&u){const t=i.selectAll(".tick"),o=ms(t.data()),u=o.length,l=n[c+"_max"],h=n[c+"_lines"];let f;if(u){for(let t=1;t<u;t++)if(u/t<l){f=t;break}t.each((function(t){const e=h?this.querySelector("text"):this;e&&(e.style.display=o.indexOf(t)%f?"none":null)}))}else t.style("display",null);if("x"===e){const t=s.maxTickWidths.x.clipPath?r.pathXAxisTickTexts:null;a.svg.selectAll("."+Ls.axisX+" .tick text").attr("clip-path",t)}}}.bind(this))},t}();var Cf={initEventRect:function(){this.$el.main.select("."+Cs.chart).append("g").attr("class",Us.eventRects).style("fill-opacity","0")},redrawEventRect:function(){var t=this;const e=this,n=e.config,i=e.state,r=e.$el,s=e.isMultipleX(),a=n.axis_x_inverted;if(r.eventRect)e.updateEventRect(r.eventRect,!0);else if(e.data.targets.length){const t=e.$el.main.select("."+Us.eventRects).style("cursor",n.zoom_enabled&&"drag"!==n.zoom_type?n.axis_rotated?"ns-resize":"ew-resize":null).classed(Us.eventRectsMultiple,s).classed(Us.eventRectsSingle,!s).selectAll("."+Us.eventRect).data([0]).enter().append("rect");e.updateEventRect(t),s?e.generateEventRectsForMultipleXs(t):e.generateEventRectsForSingleX(t),t.call(e.getDraggableSelection()),r.eventRect=t,"touch"!==e.state.inputType||r.svg.on("touchstart.eventRect")||e.hasArcType()||e.bindTouchOnEventRect(),i.rendered&&e.updateEventRect(r.eventRect,!0)}if(!s){const r=e.getMaxDataCountTarget();n.data_xSort&&!a||r.sort(function(e,n){return o(this,t),a?n.x-e.x:e.x-n.x}.bind(this)),e.updateDataIndexByX(r),e.updateXs(r),null==e.updatePointClass||e.updatePointClass(!0),i.eventReceiver.data=r}e.updateEventRectData()},bindTouchOnEventRect:function(){var t=this;const e=this,n=e.config,i=e.state,r=e.$el,s=r.eventRect,a=r.svg,c=function(n){if(o(this,t),e.isMultipleX())e.selectRectForMultipleXs(n);else{const t=e.getDataIndexFromEvent(i.event);e.callOverOutForTouch(t),-1===t?e.unselectRect():e.selectRectForSingle(n,t)}}.bind(this),u=function(){o(this,t),e.unselectRect(),e.callOverOutForTouch()}.bind(this),l=n.interaction_inputType_touch.preventDefault,h=Go(l)&&l||!1,f=!isNaN(l)&&l||null;let d;const g=function(e){o(this,t);const i=e.type,r=e.changedTouches[0]["client"+(n.axis_rotated?"Y":"X")];"touchstart"===i?h?e.preventDefault():null!==f&&(d=r):"touchmove"===i&&(h||!0===d||null!==f&&Math.abs(d-r)>=f)&&(d=!0,e.preventDefault())}.bind(this);s.on("touchstart",function(n){o(this,t),i.event=n,e.updateEventRect()}.bind(this)).on("touchstart.eventRect touchmove.eventRect",function(n){if(o(this,t),i.event=n,!s.empty()&&s.classed(Us.eventRect)){if(i.dragging||i.flowing||e.hasArcType()||n.touches.length>1)return;g(n),c(s.node())}else u()}.bind(this),!0).on("touchend.eventRect",function(n){o(this,t),i.event=n,!s.empty()&&s.classed(Us.eventRect)&&(e.hasArcType()||!e.toggleShape||i.cancelClick)&&i.cancelClick&&(i.cancelClick=!1)}.bind(this),!0),a.on("touchstart",function(e){o(this,t),i.event=e;const n=e.target;n&&n!==s.node()&&u()}.bind(this))},updateEventRect:function(t,e){var n=this;void 0===e&&(e=!1);const i=this.state,r=this.$el,s=i,a=s.eventReceiver,c=s.width,u=s.height,l=s.rendered,h=s.resizing,f=t||r.eventRect,d=function(){o(this,n),a&&(a.rect=f.node().getBoundingClientRect())}.bind(this);(!l||h||e)&&(f.attr("x",0).attr("y",0).attr("width",c).attr("height",u),l&&!e||f.classed(Us.eventRect,!0)),d()},updateEventRectData:function(){var t=this;const e=this,n=e.config,i=e.scale,r=e.state,s=i.zoom||i.x,a=n.axis_rotated;let c,u,l,h;if(e.isMultipleX())c=0,u=0,l=r.width,h=r.height;else{let n,i;if(e.axis.isCategorized())n=e.getEventRectWidth(),i=function(e){return o(this,t),s(e.x)-n/2}.bind(this);else{const c=function(n){let i=n.index;return o(this,t),{prev:e.getPrevX(i),next:e.getNextX(i)}}.bind(this);n=function(e){var n=this;o(this,t);const i=c(e),u=s.domain();let l;return null===i.prev&&null===i.next?l=a?r.height:r.width:null===i.prev?l=(s(i.next)+s(e.x))/2:null===i.next?l=s(u[1])-(s(i.prev)+s(e.x))/2:(Object.keys(i).forEach(function(t,e){var r;o(this,n),i[t]=null!=(r=i[t])?r:u[e]}.bind(this)),l=Math.max(0,(s(i.next)-s(i.prev))/2)),l}.bind(this),i=function(e){o(this,t);const n=c(e);let i;return i=null===n.prev&&null===n.next?0:null===n.prev?s(s.domain()[0]):(s(e.x)+s(n.prev))/2,i}.bind(this)}c=a?0:i,u=a?i:0,l=a?r.width:n,h=a?n:r.height}const f=r.eventReceiver,d=function(e,n){return o(this,t),Xo(e)?e(n):e}.bind(this);f.coords.splice(f.data.length),f.data.forEach(function(e,n){o(this,t),f.coords[n]={x:d(c,e),y:d(u,e),w:d(l,e),h:d(h,e)}}.bind(this))},selectRectForSingle:function(t,e){var n=this;const i=this,r=i.config,s=i.$el,a=s.main,c=s.circle,u=r.data_selection_enabled,l=r.data_selection_grouped,h=r.data_selection_isselectable,f=r.tooltip_grouped,d=i.getAllValuesOnIndex(e);if(f&&(i.showTooltip(d,t),null==i.showGridFocus||i.showGridFocus(d),!u||l))return;c||a.selectAll("."+Cs.EXPANDED+":not(."+Ks.shape+"-"+e+")").classed(Cs.EXPANDED,!1);const g=a.selectAll("."+Ks.shape+"-"+e).classed(Cs.EXPANDED,!0).style("cursor",h?"pointer":null).filter((function(t){return i.isWithinShape(this,t)}));g.empty()&&!f&&(null==i.hideGridFocus||i.hideGridFocus(),i.hideTooltip(),l||i.setExpand(e)),g.call(function(r){var s=this;o(this,n);const a=r.data();u&&(l||null!=h&&h.bind(i.api)(a))&&(t.style.cursor="pointer"),f||(i.showTooltip(a,t),null==i.showGridFocus||i.showGridFocus(a),null==i.unexpandCircles||i.unexpandCircles(),r.each(function(t){return o(this,s),i.setExpand(e,t.id)}.bind(this)))}.bind(this))},selectRectForMultipleXs:function(t,e){var n=this;void 0===e&&(e=!0);const i=this,r=i.config,s=i.state,a=i.filterTargetsToShow(i.data.targets);if(s.dragging||i.hasArcType(a))return;const c=as(s.event,t),u=i.findClosestFromTargets(a,c);if(!e||!s.mouseover||u&&u.id===s.mouseover.id||(r.data_onout.call(i.api,s.mouseover),s.mouseover=void 0),!u)return void i.unselectRect();const l=(i.isBubbleType(u)||i.isScatterType(u)||!r.tooltip_grouped?[u]:i.filterByX(a,u.x)).map(function(t){return o(this,n),i.addName(t)}.bind(this));i.showTooltip(l,t),i.setExpand(u.index,u.id,!0),i.showGridFocus(l);const h=i.dist(u,c);(i.isBarType(u.id)||h<i.getPointSensitivity(u))&&(i.$el.svg.select("."+Us.eventRect).style("cursor","pointer"),e&&!s.mouseover&&(r.data_onover.call(i.api,u),s.mouseover=u))},unselectRect:function(){const t=this,e=t.config,n=t.$el,i=n.circle,r=n.tooltip;t.$el.svg.select("."+Us.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;const n=this,i=n.config,r=n.state,s=r.eventReceiver,a=t.style("cursor",i.data_selection_enabled&&i.data_selection_grouped?"pointer":null).on("click",(function(t){r.event=t;const e=s.currentIdx,i=s.data[-1===e?n.getDataIndexFromEvent(t):e];n.clickHandlerForSingleX.bind(this)(i,n)}));if("mouse"===r.inputType){const t=function(t){o(this,e);const i=t?n.getDataIndexFromEvent(t):s.currentIdx;return i>-1?s.data[i]:null}.bind(this);a.on("mouseover",function(t){o(this,e),r.event=t,n.updateEventRect()}.bind(this)).on("mousemove",(function(e){const o=t(e);if(r.event=e,!o)return;let a=o.index;const c=i.line_step_type;if(i.line_step_tooltipMatch&&n.hasType("step")&&/^step\-(before|after)$/.test(c)){const t=n.scale.zoom||n.scale.x,i=n.axis.xs[a],r=t.invert(as(e,this)[0]);"step-after"===c&&r<i?a-=1:"step-before"===c&&r>i&&(a+=1)}const u=i.tooltip_grouped&&a===s.currentIdx;r.dragging||r.flowing||n.hasArcType()||u?u&&n.setTooltipPosition():(a!==s.currentIdx&&(n.setOverOut(!1,s.currentIdx),s.currentIdx=a),-1===a?n.unselectRect():n.selectRectForSingle(this,a),n.setOverOut(-1!==a,a))})).on("mouseout",function(t){o(this,e),r.event=t,i&&!n.hasArcType()&&-1!==s.currentIdx&&(n.unselectRect(),n.setOverOut(!1,s.currentIdx),s.currentIdx=-1)}.bind(this))}return a},clickHandlerForSingleX:function(t,e){const n=e,i=n.config,r=n.state,o=n.$el.main;if(!t||n.hasArcType()||r.cancelClick)return void(r.cancelClick&&(r.cancelClick=!1));const s=t.index;o.selectAll("."+Ks.shape+"-"+s).each((function(t){(i.data_selection_grouped||n.isWithinShape(this,t))&&(null==n.toggleShape||n.toggleShape(this,t,s),i.data_onclick.bind(n.api)(t,this))}))},generateEventRectsForMultipleXs:function(t){var e=this;const 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){o(this,e),i.event=t,n.config&&!n.hasArcType()&&n.unselectRect()}.bind(this))},clickHandlerForMultipleXS:function(t){const e=t,n=e.config,i=e.state,r=e.filterTargetsToShow(e.data.targets);if(e.hasArcType(r))return;const o=as(i.event,this),s=e.findClosestFromTargets(r,o);s&&(e.isBarType(s.id)||e.dist(s,o)<n.point_sensitivity)&&e.$el.main.selectAll("."+Ks.shapes+e.getTargetSelectorSuffix(s.id)).selectAll("."+Ks.shape+"-"+s.index).each((function(){(n.data_selection_grouped||e.isWithinShape(this,s))&&(null==e.toggleShape||e.toggleShape(this,s,s.index),n.data_onclick.bind(e.api)(s,this))}))}};const If=function(t){return o(this,undefined),+t}.bind(void 0);var Pf={generateFlow:function(t){const e=this,n=e.data,i=e.state,r=e.$el;return function(){var s=this;const a=t.flow.length;i.flowing=!0,n.targets.forEach(function(t){o(this,s),t.values.splice(0,a)}.bind(this)),e.updateXGrid&&e.updateXGrid(!0);const c={};["axis.x","grid.x","gridLines.x","region.list","text","bar","line","area","circle"].forEach(function(t){var e;o(this,s);const n=t.split(".");let i=r[n[0]];i&&n.length>1&&(i=i[n[1]]),null!=(e=i)&&e.size()&&(c[t]=i)}.bind(this)),e.hideGridFocus(),e.setFlowList(c,t)}},setFlowList:function(t,e){var n=this;const i=this,r=e.flow,s=e.targets,a=r,c=a.duration,u=void 0===c?e.duration:c,l=a.index,h=a.length,f=a.orgDataCount,d=i.getFlowTransform(s,f,l,h),g=Ia();let p;g.add(Object.keys(t).map(function(e){var r=this;return o(this,n),p=t[e].transition().ease(If).duration(u),p="axis.x"===e?p.call(function(t){o(this,r),i.axis.x.setTransition(t).create(t)}.bind(this)):"region.list"===e?p.filter(i.isRegionOnX).attr("transform",d):p.attr("transform",d),p}.bind(this))),p.call(g,function(){o(this,n),i.cleanUpFlow(t,e)}.bind(this))},cleanUpFlow:function(t,e){var n=this;const i=this,r=i.config,s=i.state,a=i.$el.svg,c=r.axis_rotated,u=e.flow,l=e.shape,h=e.xv,f=l.pos,d=f.cx,g=f.cy,p=f.xForText,v=f.yForText,y=u,b=y.done,x=void 0===b?function(){o(this,n)}.bind(this):b,m=y.length;m&&(["circle","text","shape","eventRect"].forEach(function(t){o(this,n);const e=[];for(let n=0;n<m;n++)e.push("."+ia[t]+"-"+n);a.selectAll("."+ia[t+"s"]).selectAll(e).remove()}.bind(this)),a.select("."+ia.xgrid).remove()),Object.keys(t).forEach(function(e){var a=this;o(this,n);const u=t[e];if("axis.x"!==e&&u.attr("transform",null),"grid.x"===e)u.attr(s.xgridAttr);else if("gridLines.x"===e)u.attr("x1",c?0:h).attr("x2",c?s.width:h),u.select("text").attr("x",c?s.width:0).attr("y",h);else if(/^(area|bar|line)$/.test(e))u.attr("d",l.type[e]);else if("text"===e)u.attr("x",p).attr("y",v).style("fill-opacity",i.opacityForText.bind(i));else if("circle"===e)if(i.isCirclePoint())u.attr("cx",d).attr("cy",g);else{const t=function(t){return o(this,a),d(t)-r.point_r}.bind(this),e=function(t){return o(this,a),g(t)-r.point_r}.bind(this);u.attr("x",t).attr("y",e)}else"region.list"===e&&u.select("rect").filter(i.isRegionOnX).attr("x",i.regionX.bind(i)).attr("width",i.regionWidth.bind(i))}.bind(this)),r.interaction_enabled&&i.redrawEventRect(),x.call(i.api),s.flowing=!1},getFlowTransform:function(t,e,n,i){var r,o;const s=this,a=s.data,c=s.scale.x,u=a.targets[0].values;let l,h=s.getValueOnIndex(u,n),f=s.getValueOnIndex(u,n+i);const d=c.domain(),g=s.updateXDomain(t,!0,!0);if(e)if(1===e||(null==(r=h)?void 0:r.x)===(null==(o=f)?void 0:o.x))l=c(d[0])-c(g[0]);else{var p;l=s.axis.isTimeSeries()?c(d[0])-c(g[0]):c((null==(p=h)?void 0:p.x)||0)-c(f.x)}else 1!==u.length?l=c(d[0])-c(g[0]):s.axis.isTimeSeries()?(h=s.getValueOnIndex(u,0),f=s.getValueOnIndex(u,u.length-1),l=c(h.x)-c(f.x)):l=qo(g)/2;return"translate("+l+",0) scale("+qo(d)/qo(g)+",1)"}},Lf={initClip:function(){const t=this,e=t.state,n=e.clip,i=e.datetimeId;n.id=i+"-clip",n.idXAxis=n.id+"-xaxis",n.idYAxis=n.id+"-yaxis",n.idGrid=n.id+"-grid",n.path=t.getClipPath(n.id),n.pathXAxis=t.getClipPath(n.idXAxis),n.pathYAxis=t.getClipPath(n.idYAxis),n.pathGrid=t.getClipPath(n.idGrid)},getClipPath:function(t){const e=this.config;if(!e.clipPath&&/-clip$/.test(t)||!e.axis_x_clipPath&&/-clip-xaxis$/.test(t)||!e.axis_y_clipPath&&/-clip-yaxis$/.test(t))return null;return"url("+(!!Cn.navigator&&Cn.navigator.appVersion.toLowerCase().indexOf("msie 9.")>=0?"":In.URL.split("#")[0])+"#"+t+")"},appendClip:function(t,e){e&&t.append("clipPath").attr("id",e).append("rect")},setXAxisClipPath:function(t){const e=this.config,n=this.state,i=n.margin,r=n.width,o=n.height,s=e.axis_rotated,a=Math.max(30,i.left)-(s?0:20),c=(s?i.top+o+10:i.bottom)+20,u=s?-(1+a):-(a-1),l=-Math.max(15,i.bottom),h=s?i.left+20:r+10+a;t.attr("x",u).attr("y",l).attr("width",h).attr("height",c)},setYAxisClipPath:function(t){var e;const n=this.config,i=this.state,r=i.margin,o=i.width,s=i.height,a=n.axis_rotated,c=Math.max(30,r.left)-(a?20:0),u=n.axis_y_inner,l=u&&!a?n.axis_y_label.text?-20:-1:a?-(1+c):-(c-1),h=-(a?20:r.top),f=(a?o+15+c:r.left+20)+(u?20:0),d=(a?r.bottom+("fit"===(null==(e=n.padding)?void 0:e.mode)?10:0):r.top+s)+10;t.attr("x",l).attr("y",h).attr("width",f).attr("height",d)},updateXAxisTickClip:function(){const t=this,e=t.config,n=t.state,i=n.clip,r=n.xAxisHeight,o=t.$el.defs,s=t.getHorizontalAxisHeight("x");if(o&&!i.idXAxisTickTexts){const e=i.id+"-xaxisticktexts";t.appendClip(o,e),i.pathXAxisTickTexts=t.getClipPath(i.idXAxisTickTexts),i.idXAxisTickTexts=e}!e.axis_x_tick_multiline&&t.getAxisTickRotate("x")&&s!==r&&(t.setXAxisTickClipWidth(),t.setXAxisTickTextClipPathWidth()),t.state.xAxisHeight=s},setXAxisTickClipWidth:function(){const t=this,e=t.config,n=t.state.current.maxTickWidths,i=t.getAxisTickRotate("x");if(!e.axis_x_tick_multiline&&i){const e=Math.sin(Math.PI/180*Math.abs(i));n.x.clipPath=(t.getHorizontalAxisHeight("x")-20)/e}else n.x.clipPath=null},setXAxisTickTextClipPathWidth:function(){const 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)}},Df=void 0;const Nf=function(t){return o(this,Df),Bo(t.position)||"end"}.bind(void 0),zf=function(t){return o(this,Df),"start"===t.position?4:"middle"===t.position?0:-4}.bind(void 0);function Ff(t,e,n){var i=this;return function(r){o(this,i);let s=t?0:e;return"start"===r.position?s=t?-n:0:"middle"===r.position&&(s=(t?-n:e)/2),s}.bind(this)}function jf(t,e){"grid"===e&&t.each((function(){var t=this;const e=Rn(this);["x1","x2","y1","y2"].forEach(function(n){return o(this,t),e.attr(n,Math.ceil(+e.attr(n)))}.bind(this))}))}var Bf={hasGrid:function(){var t=this;const e=this.config;return["x","y"].some(function(n){return o(this,t),e["grid_"+n+"_show"]||e["grid_"+n+"_lines"].length}.bind(this))},initGrid:function(){const t=this;t.hasGrid()&&t.initGridLines(),t.initFocusGrid()},initGridLines:function(){const 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","."+Cs.chart+(e.grid_lines_front?" + *":"")).attr("clip-path",n.pathGrid).attr("class",Vs.grid+" "+Vs.gridLines),i.gridLines.main.append("g").attr("class",Vs.xgridLines),i.gridLines.main.append("g").attr("class",Vs.ygridLines),i.gridLines.x=_h([]))},updateXGrid:function(t){var e=this;const n=this,i=n.config,r=n.scale,s=n.state,a=n.$el,c=a.main,u=a.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 o(this,e),(r.zoom||r.x)(t)+f*(l?-1:1)}.bind(this);s.xgridAttr=l?{x1:0,x2:s.width,y1:d,y2:d}:{x1:d,x2:d,y1:0,y2:s.height},u.x=c.select("."+Vs.xgrids).selectAll("."+Vs.xgrid).data(h),u.x.exit().remove(),u.x=u.x.enter().append("line").attr("class",Vs.xgrid).merge(u.x),t||u.x.each((function(){var t=this;const e=Rn(this);Object.keys(s.xgridAttr).forEach(function(n){var i=this;o(this,t),e.attr(n,s.xgridAttr[n]).style("opacity",function(){return o(this,i),e.attr(l?"y1":"x1")===(l?s.height:0)?"0":null}.bind(this))}.bind(this))}))},updateYGrid:function(){var t=this;const e=this,n=e.axis,i=e.config,r=e.scale,s=e.state,a=e.$el,c=a.grid,u=a.main,l=i.axis_rotated,h=function(e){return o(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);c.y=u.select("."+Vs.ygrids).selectAll("."+Vs.ygrid).data(f),c.y.exit().remove(),c.y=c.y.enter().append("line").attr("class",Vs.ygrid).merge(c.y),c.y.attr("x1",l?h:0).attr("x2",l?h:s.width).attr("y1",l?0:h).attr("y2",l?s.height:h),jf(c.y,"grid")},updateGrid:function(){const t=this,e=t.$el,n=e.grid;e.gridLines.main||t.initGridLines(),n.main.style("visibility",t.hasArcType()?"hidden":null),t.hideGridFocus(),t.updateGridLines("x"),t.updateGridLines("y")},updateGridLines:function(t){var e=this;const n=this,i=n.config,r=n.$el,s=r.gridLines,a=r.main,c=n.$T,u=i.axis_rotated;i["grid_"+t+"_show"]&&n["update"+t.toUpperCase()+"Grid"]();let l=a.select("."+Vs[t+"gridLines"]).selectAll("."+Vs[t+"gridLine"]).data(i["grid_"+t+"_lines"]);c(l.exit()).style("opacity","0").remove();const h=l.enter().append("g");h.append("line").style("opacity","0"),l=h.merge(l),l.each((function(t){const e=Rn(this);e.select("text").empty()&&t.text&&e.append("text").style("opacity","0")})),c(l.attr("class",function(n){return o(this,e),(Vs[t+"gridLine"]+" "+(n.class||"")).trim()}.bind(this)).select("text").attr("text-anchor",Nf).attr("transform",function(){return o(this,e),"x"===t?u?null:"rotate(-90)":u?"rotate(-90)":null}.bind(this)).attr("dx",zf).attr("dy",-5)).text((function(t){var e;return null!=(e=t.text)?e:this.remove()})),s[t]=l},redrawGrid:function(t){const e=this,n=e.config.axis_rotated,i=e.state,r=i.width,o=i.height,s=e.$el.gridLines,a=e.$T,c=e.xv.bind(e),u=e.yv.bind(e);let l=s.x.select("line"),h=s.x.select("text"),f=s.y.select("line"),d=s.y.select("text");return l=a(l,t).attr("x1",n?0:c).attr("x2",n?r:c).attr("y1",n?c:0).attr("y2",n?c:o),h=a(h,t).attr("x",Ff(!n,r,o)).attr("y",c),f=a(f,t).attr("x1",n?u:0).attr("x2",n?u:r).attr("y1",n?0:u).attr("y2",n?o:u),d=a(d,t).attr("x",Ff(n,r,o)).attr("y",u),[l.style("opacity",null),h.style("opacity",null),f.style("opacity",null),d.style("opacity",null)]},initFocusGrid:function(){const t=this,e=t.config,n=t.state.clip,i=t.$el,r=e.grid_front,o="."+(r&&i.gridLines.main?Vs.gridLines:Cs.chart)+(r?" + *":""),s=i.main.insert("g",o).attr("clip-path",n.pathGrid).attr("class",Vs.grid);i.grid.main=s,e.grid_x_show&&s.append("g").attr("class",Vs.xgrids),e.grid_y_show&&s.append("g").attr("class",Vs.ygrids),e.interaction_enabled&&e.grid_focus_show&&(s.append("g").attr("class",Ys.xgridFocus).append("line").attr("class",Ys.xgridFocus),e.grid_focus_y&&!e.tooltip_grouped&&s.append("g").attr("class",Ys.ygridFocus).append("line").attr("class",Ys.ygridFocus))},showGridFocus:function(t){var e=this;const n=this,i=n.config,r=n.state,s=r.width,a=r.height,c=i.axis_rotated,u=n.$el.main.selectAll("line."+Ys.xgridFocus+", line."+Ys.ygridFocus),l=(t||[u.datum()]).filter(function(t){return o(this,e),t&&Bo(n.getBaseValue(t))}.bind(this));if(!i.tooltip_show||0===l.length||n.hasType("bubble")||n.hasArcType())return;const h=i.grid_focus_edge&&!i.tooltip_grouped,f=n.xx.bind(n);u.style("visibility",null).data(l.concat(l)).each((function(t){var e=this;const i=Rn(this),r={x:f(t),y:n.getYScaleById(t.id)(t.value)};let u;if(i.classed(Ys.xgridFocus))u=c?[null,r.x,h?r.y:s,r.x]:[r.x,h?r.y:null,r.x,a];else{const e="y2"===n.axis.getId(t.id);u=c?[r.y,h&&!e?r.x:null,r.y,h&&e?r.x:a]:[h&&e?r.x:null,r.y,h&&!e?r.x:s,r.y]}["x1","y1","x2","y2"].forEach(function(t,n){return o(this,e),i.attr(t,u[n])}.bind(this))})),jf(u,"grid"),null==n.showCircleFocus||n.showCircleFocus(t)},hideGridFocus:function(){const t=this,e=t.state,n=e.inputType,i=e.resizing,r=t.$el.main;"mouse"!==n&&i||(r.selectAll("line."+Ys.xgridFocus+", line."+Ys.ygridFocus).style("visibility","hidden"),null==t.hideCircleFocus||t.hideCircleFocus())},updateGridFocus:function(){const t=this,e=t.state,n=e.inputType,i=e.width,r=e.height,o=e.resizing,s=t.$el.grid.main.select("line."+Ys.xgridFocus);if("touch"===n)s.empty()?o&&(null==t.showCircleFocus||t.showCircleFocus()):t.showGridFocus();else{const e=t.config.axis_rotated;s.attr("x1",e?0:-10).attr("x2",e?i:-10).attr("y1",e?-10:0).attr("y2",e?-10:r)}return!0},generateGridData:function(t,e){var n=this;const i=this,r=i.$el.main.select("."+Ls.axisX).selectAll(".tick").size();let s=[];if("year"===t){const t=i.getXDomain().map(function(t){return o(this,n),t.getFullYear()}.bind(this)),e=t[0],r=t[1];for(let t=e;t<=r;t++)s.push(new Date(t+"-01-01 00:00:00"))}else s=e.ticks(10),s.length>r&&(s=s.filter(function(t){return o(this,n),(t+"").indexOf(".")<0}.bind(this)));return s},getGridFilterToRemove:function(t){var e=this;return t?function(n){var i=this;o(this,e);let r=!1;return(Qo(t)?t.concat():[t]).forEach(function(t){o(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 o(this,e),!0}.bind(this)},removeGridLines:function(t,e){var n=this;const i=this,r=i.config,s=i.$T,a=i.getGridFilterToRemove(t),c=function(t){return o(this,n),!a(t)}.bind(this),u=e?Vs.xgridLines:Vs.ygridLines,l=e?Vs.xgridLine:Vs.ygridLine;s(i.$el.main.select("."+u).selectAll("."+l).filter(a)).style("opacity","0").remove();const h="grid_"+(e?"x":"y")+"_lines";r[h]=r[h].filter(c)}},Xf={initRegion:function(){const t=this.$el;t.region.main=t.main.insert("g",":first-child").attr("clip-path",this.state.clip.path).attr("class",qs.regions)},updateRegion:function(){const t=this,e=t.config,n=t.$el.region,i=t.$T;n.main||t.initRegion(),n.main.style("visibility",t.hasArcType()?"hidden":null);const r=n.main.selectAll("."+qs.region).data(e.regions);i(r.exit()).style("opacity","0").remove();const o=r.enter().append("g");o.append("rect").style("fill-opacity","0"),n.list=o.merge(r).attr("class",t.classRegion.bind(t)),n.list.each((function(t){var e;Rn(this).select("text").empty()&&null!=(e=t.label)&&e.text&&Rn(this).append("text").style("opacity","0")}))},redrawRegion:function(t){var e=this;const n=this,i=n.$el.region,r=n.$T;let s=i.list.select("rect"),a=i.list.selectAll("text");return s=r(s,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)),a=r(a,t).attr("transform",function(t){var i;o(this,e);const r=null!=(i=t.label)?i:{},s=r.x,a=void 0===s?0:s,c=r.y,u=void 0===c?0:c,l=r.rotated,h=void 0!==l&&l;return"translate("+(n.regionX.bind(n)(t)+a)+", "+(n.regionY.bind(n)(t)+u)+")"+(h?" rotate(-90)":"")}.bind(this)).attr("text-anchor",function(t){var n;return o(this,e),null!=(n=t.label)&&n.rotated?"end":null}.bind(this)).attr("dy","1em").style("fill",function(t){var n,i;return o(this,e),null!=(n=null==(i=t.label)?void 0:i.color)?n:null}.bind(this)).text(function(t){var n;return o(this,e),null==(n=t.label)?void 0:n.text}.bind(this)),[s.style("fill-opacity",function(t){return o(this,e),Bo(t.opacity)?t.opacity:null}.bind(this)).on("end",(function(){Rn(this.parentNode).selectAll("rect:not([x])").remove()})),a.style("opacity",null)]},getRegionXY:function(t,e){const n=this,i=n.config,r=n.scale,o=i.axis_rotated,s="x"===t;let a,c="start",u=0;return"y"===e.axis||"y2"===e.axis?(s||(c="end"),(s?o:!o)&&c in e&&(a=r[e.axis],u=a(e[c]))):(s?!o:o)&&c in e&&(a=r.zoom||r.x,u=a(n.axis.isTimeSeries()?Ss.call(n,e[c]):e[c])),u},regionX:function(t){return this.getRegionXY("x",t)},regionY:function(t){return this.getRegionXY("y",t)},getRegionSize:function(t,e){const n=this,i=n.config,r=n.scale,o=n.state,s=i.axis_rotated,a="width"===t,c=n[a?"regionX":"regionY"](e);let u,l="end",h=o[t];return"y"===e.axis||"y2"===e.axis?(a||(l="start"),(a?s:!s)&&l in e&&(u=r[e.axis],h=u(e[l]))):(a?!s:s)&&l in e&&(u=r.zoom||r.x,h=u(n.axis.isTimeSeries()?Ss.call(n,e[l]):e[l])),h<c?0:h-c},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}},$f={getAxisSize:function(t){const 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){const n=this;if(n.axis){var i,r;const o=null==(i=n.axis)?void 0:i.getLabelPositionById(t),s=n.axis.getMaxTickWidth(t,e),a=0===s?.5:0;return s+("fit"===(null==(r=n.config.padding)?void 0:r.mode)?o.isInner?10+a:10:o.isInner?20+a:40)}return 40},getHorizontalAxisHeight:function(t){var e,n;const i=this,r=i.config,o=i.state,s=o.current,a=o.rotatedPadding,c=o.isLegendRight,u=o.isLegendInset,l=r.axis_rotated,h="fit"===(null==(e=r.padding)?void 0:e.mode),f=r["axis_"+t+"_inner"],d=r["axis_"+t+"_label"].text;let g="fit"===(null==(n=r.padding)?void 0:n.mode)?f&&!d?"y"===t?1:0:20:30;if("x"===t&&!r.axis_x_show)return 8;if("x"===t&&r.axis_x_height)return r.axis_x_height;if("y"===t&&!r.axis_y_show)return!r.legend_show||c||u?1:10;if("y2"===t&&!r.axis_y2_show)return h?0:a.top;const p=i.getAxisTickRotate(t);return("x"===t&&!l||/y2?/.test(t)&&l)&&p&&(g=30+i.axis.getMaxTickWidth(t)*Math.cos(Math.PI*(90-Math.abs(p))/180),!r.axis_x_tick_multiline&&s.height&&g>s.height/2&&(g=s.height/2)),g+(i.axis.getLabelPositionById(t).isInner?0:10)+("y2"!==t||l?0:-10)},getEventRectWidth:function(){const t=this.config,e=this.axis,n=t.axis_x_inverted,i=e.x.tickInterval();return Math.max(0,n?Math.abs(i):i)},getAxisTickRotate:function(t){const e=this,n=e.axis,i=e.config,r=e.state,o=e.$el;let s=i["axis_"+t+"_tick_rotate"];if("x"===t){const t=n.isCategorized()||n.isTimeSeries();if(i.axis_x_tick_fit&&t){const t=i.axis_x_tick_count,n=r.current.maxTickWidths.x.ticks.length;let o=0;if(t?o=t>n?n:t:n&&(o=n),o!==r.axis.x.tickCount){const t=e.data.targets;r.axis.x.padding=e.getXDomainPadding([e.getXDomainMinMax(t,"min"),e.getXDomainMinMax(t,"max")],o)}r.axis.x.tickCount=o}o.svg&&i.axis_x_tick_fit&&!i.axis_x_tick_multiline&&!i.axis_x_tick_culling&&i.axis_x_tick_autorotate&&t&&(s=e.needToRotateXAxisTickTexts()?i.axis_x_tick_rotate:0)}return s},needToRotateXAxisTickTexts:function(){const 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)}},Uf={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:[]},Yf={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 Vf(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 Gf(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?Vf(Object(e),!0).forEach((function(n){$n(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Vf(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var Hf=Gf(Gf(Gf({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_inverted:!1,axis_x_padding:{},axis_x_height:void 0,axis_x_extent:void 0,axis_x_label:{},axis_x_axes:[]}),Uf),Yf);const Wf=[Zh,Kh,lf,rf,of,cf,uf],qf=[Mf,Lf,Cf,Pf,Bf,Xf,$f],Zf=[{data_xs:{},data_xFormat:"%Y-%m-%d",data_xLocaltime:!0,data_xSort:!0,data_axes:{},data_regions:{},data_stack_normalize:!1},Hf,{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}];var Kf,Jf,Qf,td,ed,nd,id,rd,od,sd,ad,cd,ud,ld;Array.prototype.slice;function hd(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function fd(t){return function(){return t}}function dd(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function gd(t){return t}function pd(t,e){return e||(e=t.slice(0)),t.raw=e,t}const vd=Math.PI,yd=2*vd,bd=1e-6,xd=yd-bd;function md(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}let _d=function(){function t(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?md:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error("invalid digits: "+t);if(e>15)return md;const n=Math.pow(10,e);return function(t){this._+=t[0];for(let e=1,i=t.length;e<i;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}(t)}var e=t.prototype;return e.moveTo=function(t,e){this._append(Kf||(Kf=pd(["M",",",""])),this._x0=this._x1=+t,this._y0=this._y1=+e)},e.closePath=function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append(Jf||(Jf=pd(["Z"]))))},e.lineTo=function(t,e){this._append(Qf||(Qf=pd(["L",",",""])),this._x1=+t,this._y1=+e)},e.quadraticCurveTo=function(t,e,n,i){this._append(td||(td=pd(["Q",",",",",",",""])),+t,+e,this._x1=+n,this._y1=+i)},e.bezierCurveTo=function(t,e,n,i,r,o){this._append(ed||(ed=pd(["C",",",",",",",",",",",""])),+t,+e,+n,+i,this._x1=+r,this._y1=+o)},e.arcTo=function(t,e,n,i,r){if(t=+t,e=+e,n=+n,i=+i,(r=+r)<0)throw new Error("negative radius: "+r);let o=this._x1,s=this._y1,a=n-t,c=i-e,u=o-t,l=s-e,h=u*u+l*l;if(null===this._x1)this._append(nd||(nd=pd(["M",",",""])),this._x1=t,this._y1=e);else if(h>bd)if(Math.abs(l*a-c*u)>bd&&r){let f=n-o,d=i-s,g=a*a+c*c,p=Math.sqrt(g),v=Math.sqrt(h),y=r*Math.tan((vd-Math.acos((g+h-(f*f+d*d))/(2*p*v)))/2),b=y/v,x=y/p;Math.abs(b-1)>bd&&this._append(rd||(rd=pd(["L",",",""])),t+b*u,e+b*l),this._append(od||(od=pd(["A",",",",0,0,",",",",",""])),r,r,+(l*f>u*d),this._x1=t+x*a,this._y1=e+x*c)}else this._append(id||(id=pd(["L",",",""])),this._x1=t,this._y1=e);else;},e.arc=function(t,e,n,i,r,o){if(t=+t,e=+e,o=!!o,(n=+n)<0)throw new Error("negative radius: "+n);let s=n*Math.cos(i),a=n*Math.sin(i),c=t+s,u=e+a,l=1^o,h=o?i-r:r-i;null===this._x1?this._append(sd||(sd=pd(["M",",",""])),c,u):(Math.abs(this._x1-c)>bd||Math.abs(this._y1-u)>bd)&&this._append(ad||(ad=pd(["L",",",""])),c,u),n&&(h<0&&(h=h%yd+yd),h>xd?this._append(cd||(cd=pd(["A",",",",0,1,",",",",","A",",",",0,1,",",",",",""])),n,n,l,t-s,e-a,n,n,l,this._x1=c,this._y1=u):h>bd&&this._append(ud||(ud=pd(["A",",",",0,",",",",",",",""])),n,n,+(h>=vd),l,this._x1=t+n*Math.cos(r),this._y1=e+n*Math.sin(r)))},e.rect=function(t,e,n,i){this._append(ld||(ld=pd(["M",",","h","v","h","Z"])),this._x0=this._x1=+t,this._y0=this._y1=+e,n=+n,+i,-n)},e.toString=function(){return this._},t}();function Td(t){var e=this;let n=3;return t.digits=function(e){if(!arguments.length)return n;if(null==e)n=null;else{const t=Math.floor(e);if(!(t>=0))throw new RangeError("invalid digits: "+e);n=t}return t},function(){return o(this,e),new _d(n)}.bind(this)}function wd(t){return t.innerRadius}function Ad(t){return t.outerRadius}function Sd(t){return t.startAngle}function Ed(t){return t.endAngle}function kd(t){return t&&t.padAngle}function Od(t,e,n,i,r,o,s){var a=t-n,c=e-i,u=(s?o:-o)/Fl(a*a+c*c),l=u*c,h=-u*a,f=t+l,d=e+h,g=n+l,p=i+h,v=(f+g)/2,y=(d+p)/2,b=g-f,x=p-d,m=b*b+x*x,_=r-o,T=f*p-g*d,w=(x<0?-1:1)*Fl(Dl(0,_*_*m-T*T)),A=(T*x-b*w)/m,S=(-T*b-x*w)/m,E=(T*x+b*w)/m,k=(-T*b+x*w)/m,O=A-v,M=S-y,R=E-v,C=k-y;return O*O+M*M>R*R+C*C&&(A=E,S=k),{cx:A,cy:S,x01:-l,y01:-h,x11:A*(r/_-1),y11:S*(r/_-1)}}function Md(){var t=wd,e=Ad,n=fd(0),i=null,r=Sd,o=Ed,s=kd,a=null,c=Td(u);function u(){var u,l,h=+t.apply(this,arguments),f=+e.apply(this,arguments),d=r.apply(this,arguments)-Xl,g=o.apply(this,arguments)-Xl,p=Il(g-d),v=g>d;if(a||(a=u=c()),f<h&&(l=f,f=h,h=l),f>jl)if(p>$l-jl)a.moveTo(f*Ll(d),f*zl(d)),a.arc(0,0,f,d,g,!v),h>jl&&(a.moveTo(h*Ll(g),h*zl(g)),a.arc(0,0,h,g,d,v));else{var y,b,x=d,m=g,_=d,T=g,w=p,A=p,S=s.apply(this,arguments)/2,E=S>jl&&(i?+i.apply(this,arguments):Fl(h*h+f*f)),k=Nl(Il(f-h)/2,+n.apply(this,arguments)),O=k,M=k;if(E>jl){var R=Ul(E/h*zl(S)),C=Ul(E/f*zl(S));(w-=2*R)>jl?(_+=R*=v?1:-1,T-=R):(w=0,_=T=(d+g)/2),(A-=2*C)>jl?(x+=C*=v?1:-1,m-=C):(A=0,x=m=(d+g)/2)}var I=f*Ll(x),P=f*zl(x),L=h*Ll(T),D=h*zl(T);if(k>jl){var N,z=f*Ll(m),F=f*zl(m),j=h*Ll(_),B=h*zl(_);if(p<Bl)if(N=function(t,e,n,i,r,o,s,a){var c=n-t,u=i-e,l=s-r,h=a-o,f=h*c-l*u;if(!(f*f<jl))return[t+(f=(l*(e-o)-h*(t-r))/f)*c,e+f*u]}(I,P,j,B,z,F,L,D)){var X=I-N[0],$=P-N[1],U=z-N[0],Y=F-N[1],V=1/zl(function(t){return t>1?0:t<-1?Bl:Math.acos(t)}((X*U+$*Y)/(Fl(X*X+$*$)*Fl(U*U+Y*Y)))/2),G=Fl(N[0]*N[0]+N[1]*N[1]);O=Nl(k,(h-G)/(V-1)),M=Nl(k,(f-G)/(V+1))}else O=M=0}A>jl?M>jl?(y=Od(j,B,I,P,f,M,v),b=Od(z,F,L,D,f,M,v),a.moveTo(y.cx+y.x01,y.cy+y.y01),M<k?a.arc(y.cx,y.cy,M,Pl(y.y01,y.x01),Pl(b.y01,b.x01),!v):(a.arc(y.cx,y.cy,M,Pl(y.y01,y.x01),Pl(y.y11,y.x11),!v),a.arc(0,0,f,Pl(y.cy+y.y11,y.cx+y.x11),Pl(b.cy+b.y11,b.cx+b.x11),!v),a.arc(b.cx,b.cy,M,Pl(b.y11,b.x11),Pl(b.y01,b.x01),!v))):(a.moveTo(I,P),a.arc(0,0,f,x,m,!v)):a.moveTo(I,P),h>jl&&w>jl?O>jl?(y=Od(L,D,z,F,h,-O,v),b=Od(I,P,j,B,h,-O,v),a.lineTo(y.cx+y.x01,y.cy+y.y01),O<k?a.arc(y.cx,y.cy,O,Pl(y.y01,y.x01),Pl(b.y01,b.x01),!v):(a.arc(y.cx,y.cy,O,Pl(y.y01,y.x01),Pl(y.y11,y.x11),!v),a.arc(0,0,h,Pl(y.cy+y.y11,y.cx+y.x11),Pl(b.cy+b.y11,b.cx+b.x11),v),a.arc(b.cx,b.cy,O,Pl(b.y11,b.x11),Pl(b.y01,b.x01),!v))):a.arc(0,0,h,T,_,v):a.lineTo(L,D)}else a.moveTo(0,0);if(a.closePath(),u)return a=null,u+""||null}return u.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,i=(+r.apply(this,arguments)+ +o.apply(this,arguments))/2-Bl/2;return[Ll(i)*n,zl(i)*n]},u.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:fd(+e),u):t},u.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:fd(+t),u):e},u.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:fd(+t),u):n},u.padRadius=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:fd(+t),u):i},u.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:fd(+t),u):r},u.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:fd(+t),u):o},u.padAngle=function(t){return arguments.length?(s="function"==typeof t?t:fd(+t),u):s},u.context=function(t){return arguments.length?(a=null==t?null:t,u):a},u}function Rd(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 Cd(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?Rd(Object(e),!0).forEach((function(n){$n(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Rd(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}function Id(t){void 0===t&&(t=0);const e=this,n=e.config,i=e.state,r=e.hasMultiArcGauge(),o=i.gaugeArcWidth/e.filterTargetsToShow(e.data.targets).length,s=t?Math.min(i.radiusExpanded*t-i.radius,.8*o-100*(1-t)):0;return{inner:function(t){const n=e.getRadius(t).innerRadius;return r?i.radius-o*(t.index+1):Uo(n)?n:0},outer:function(n){const a=e.getRadius(n).outerRadius;let c;if(r)c=i.radius-o*n.index+s;else if(e.hasType("polar")&&!t)c=e.getPolarOuterRadius(n,a);else if(c=a,t){let e=i.radiusExpanded;i.radius!==a&&(e-=Math.abs(i.radius-a)),c=e*t}return c},corner:function(t,i){const r=n.arc_cornerRadius_ratio,o=void 0===r?0:r,s=n.arc_cornerRadius,a=void 0===s?0:s,c=t.data.id,u=t.value;let l=0;return l=o?o*i:Uo(a)?a:a.call(e.api,c,u,i),l}}}function Pd(t){return function(e){var n=this;const i=function(t){let e=t.startAngle,i=void 0===e?0:e,r=t.endAngle,s=void 0===r?0:r,a=t.padAngle,c=void 0===a?0:a;return o(this,n),{startAngle:i,endAngle:s,padAngle:c}}.bind(this),r=qi(i(this._current),i(e));return this._current=e,function(n){const i=r(n),o=e.data,s=e.index,a=e.value;return t(Cd(Cd({},i),{},{data:o,index:s,value:a}))}}}_d.prototype;var Ld={initPie:function(){var t=this;const e=this,n=e.config,i=n.data_type,r=n[i+"_padding"],s=n[i+"_startingAngle"]||0,a=(r?.01*r:n[i+"_padAngle"])||0;e.pie=function(){var t=gd,e=dd,n=null,i=fd(0),r=fd($l),o=fd(0);function s(s){var a,c,u,l,h,f=(s=hd(s)).length,d=0,g=Array(f),p=Array(f),v=+i.apply(this,arguments),y=Math.min($l,Math.max(-$l,r.apply(this,arguments)-v)),b=Math.min(Math.abs(y)/f,o.apply(this,arguments)),x=b*(y<0?-1:1);for(a=0;a<f;++a)(h=p[g[a]=a]=+t(s[a],a,s))>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(s[t],s[e])})),a=0,u=d?(y-f*x)/d:0;a<f;++a,v=l)c=g[a],l=v+((h=p[c])>0?h*u:0)+x,p[c]={data:s[c],index:a,value:h,startAngle:v,endAngle:l,padAngle:b};return p}return s.value=function(e){return arguments.length?(t="function"==typeof e?e:fd(+e),s):t},s.sortValues=function(t){return arguments.length?(e=t,n=null,s):e},s.sort=function(t){return arguments.length?(n=t,e=null,s):n},s.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:fd(+t),s):i},s.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:fd(+t),s):r},s.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:fd(+t),s):o},s}().startAngle(s).endAngle(s+2*Math.PI).padAngle(a).value(function(e){var n=this;return o(this,t),e.values.reduce(function(t,e){return o(this,n),t+e.value}.bind(this),0)}.bind(this)).sort(e.getSortCompareFn.bind(e)(!0))},updateRadius:function(){const t=this,e=t.config,n=t.state,i=e[e.data_type+"_padding"],r=e.gauge_width||e.donut_width,o=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||(o<=n.radius-n.innerRadius?n.radius-n.innerRadius:o<=n.radius?o:n.radius);const s=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:s},getRadius:function(t){const e=this,n=null==t?void 0:t.data;let i=e.state,r=i.innerRadius,o=i.outerRadius;return!Uo(r)&&n&&(r=r[n.id]||0),ts(o)&&n&&n.id in o?o=o[n.id]:Uo(o)||(o=e.state.radius),{innerRadius:r,outerRadius:o}},updateArc:function(){const t=this;t.updateRadius(),t.svgArc=t.getSvgArc(),t.svgArcExpanded=t.getSvgArcExpanded()},getArcLength:function(){const t=3.6*this.config.gauge_arcLength;let e=t/360*2;return t<-360?e=-2:t>360&&(e=2),e*Math.PI},getGaugeStartAngle:function(){const t=this.config,e=t.gauge_fullCircle,n=-1*Math.PI/2,i=Math.PI/2;let 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;const n=this,i=n.config,r=n.state;let s=n.pie,a=t,c=!1;if(!i)return null;const u=n.getGaugeStartAngle(),l=i.gauge_fullCircle?n.getArcLength():-2*u;if(a.data&&n.isGaugeType(a.data)&&!n.hasMultiArcGauge()){const t=i.gauge_min,e=i.gauge_max,o=n.getTotalDataSum(r.rendered);s=s.startAngle(u).endAngle(l*((o-t)/(e-t))+u)}if(s(n.filterTargetsToShow()).forEach(function(t,n){var i;o(this,e),c||t.data.id!==(null==(i=a.data)?void 0:i.id)||(c=!0,a=t,a.index=n)}.bind(this)),isNaN(a.startAngle)&&(a.startAngle=0),isNaN(a.endAngle)&&(a.endAngle=a.startAngle),a.data&&n.hasMultiArcGauge()){const t=i.gauge_min,e=i.gauge_max,n=a.value<t?0:a.value<e?a.value-t:e-t;a.startAngle=u,a.endAngle=u+l/(e-t)*n}return c?a:null},getSvgArc:function(){const t=this,e=Id.call(t),n=e.inner,i=e.outer,r=e.corner,o=Md().innerRadius(n).outerRadius(i),s=function(e,n){let s="M 0 0";if(e.value||e.data){var a;const c=n?e:null!=(a=t.updateAngle(e))?a:null;c&&(s=o.cornerRadius(r(c,i(c)))(c))}return s};return s.centroid=o.centroid,s},getSvgArcExpanded:function(t){var e=this;void 0===t&&(t=1);const n=this,i=Id.call(n,t),r=i.inner,s=i.outer,a=i.corner,c=Md().innerRadius(r).outerRadius(s);return function(t){o(this,e);const i=n.updateAngle(t),r=s(i);let u=0;return i&&(u=a(i,r)),i?c.cornerRadius(u)(i):"M 0 0"}.bind(this)},getArc:function(t,e,n){return n||this.isArcType(t.data)?this.svgArc(t,e):"M 0 0"},transformForArcLabel:function(t){var e=this;const n=this,i=n.config,r=n.state.radiusExpanded,s=n.updateAngle(t);let a="";if(s)if(n.hasMultiArcGauge()){const t=Math.sin(s.endAngle-Math.PI/2);a="translate("+Math.cos(s.endAngle-Math.PI/2)*(r+25)+","+(t*(r+15-Math.abs(10*t))+3)+")"}else if(!n.hasType("gauge")||n.data.targets.length>1){var c;let r=n.getRadius(t).outerRadius;n.hasType("polar")&&(r=n.getPolarOuterRadius(t,r));const u=this.svgArc.centroid(s).map(function(t){return o(this,e),isNaN(t)?0:t}.bind(this)),l=u[0],h=u[1],f=Math.sqrt(l*l+h*h);let d=null==(c=["donut","pie","polar"].filter(n.hasType.bind(n)).map(function(t){return o(this,e),i[t+"_label_ratio"]}.bind(this)))?void 0:c[0];d=d?Xo(d)?d.bind(n.api)(t,r,f):d:r&&(f?(36/r>.375?1.175-36/r:.8)*r/f:0),a="translate("+l*d+","+h*d+")"}return a},convertToArcData:function(t){return this.addName({id:"data"in t?t.data.id:t.id,value:t.value,ratio:this.getRatio("arc",t),index:t.index})},textForArcLabel:function(t){const 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;const r=Rn(this),o=e.updateAngle(t),s=e.getRatio("arc",o);if(e.meetsLabelThreshold(s,null==(i=["donut","gauge","pie","polar"].filter(e.hasType.bind(e)))?void 0:i[0])){const i=(o||t).value;os(r,(e.getArcLabelFormat()||e.defaultArcValueFormat)(i,s,t.data.id).toString(),[-1,1],n)}else r.text("")}))},expandArc:function(t){var e=this;const n=this,i=n.state.transiting,r=n.$el;if(i){const s=setInterval(function(){o(this,e),i||(clearInterval(s),r.legend.selectAll("."+Ys.legendItemFocused).size()>0&&n.expandArc(t))}.bind(this),10);return}const s=n.mapToTargetIds(t);r.svg.selectAll(n.selectorTargets(s,"."+Is.chartArc)).each((function(t){if(!n.shouldExpand(t.data.id))return;const e=n.getExpandConfig(t.data.id,"duration"),i=n.getSvgArcExpanded(n.getExpandConfig(t.data.id,"rate"));Rn(this).selectAll("path").transition().duration(e).attrTween("d",Pd(n.svgArcExpanded.bind(n))).transition().duration(2*e).attrTween("d",Pd(i.bind(n)))}))},unexpandArc:function(t){var e=this;const n=this,i=n.state.transiting,r=n.$el.svg;if(i)return;const s=n.mapToTargetIds(t);r.selectAll(n.selectorTargets(s,"."+Is.chartArc)).selectAll("path").transition().duration(function(t){return o(this,e),n.getExpandConfig(t.data.id,"duration")}.bind(this)).attrTween("d",Pd(n.svgArc.bind(n))),r.selectAll(""+Is.arc).style("opacity",null)},getExpandConfig:function(t,e){const n=this,i=n.config;let r;return n.isDonutType(t)?r="donut":n.isGaugeType(t)?r="gauge":n.isPieType(t)&&(r="pie"),r?i[r+"_expand_"+e]:{duration:50,rate:.98}[e]},shouldExpand:function(t){const 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;const e=this,n=e.config;return["donut","gauge","pie","polar"].some(function(i){return o(this,t),e.hasType(i)&&n[i+"_label_show"]}.bind(this))},getArcLabelFormat:function(){var t=this;const e=this,n=e.config;let i=function(e){return o(this,t),e}.bind(this);return["donut","gauge","pie","polar"].filter(e.hasType.bind(e)).forEach(function(e){o(this,t),i=n[e+"_label_format"]}.bind(this)),Xo(i)?i.bind(e.api):i},updateTargetsForArc:function(t){var e=this;const n=this,i=n.$el,r=n.hasType("gauge"),s=n.getChartClass("Arc"),a=n.getClass("arcs",!0),c=n.classFocus.bind(n),u=i.main.select("."+Is.chartArcs),l=u.selectAll("."+Is.chartArc).data(n.pie(t)).attr("class",function(t){return o(this,e),s(t)+c(t.data)}.bind(this)),h=l.enter().append("g").attr("class",s).call(this.setCssRule(!1,"."+Is.chartArcs+" text",["pointer-events:none","text-anchor:middle"]));h.append("g").attr("class",a).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=u.selectAll("."+Cs.target+" text")},initArc:function(){const t=this,e=t.$el;e.arcs=e.main.select("."+Cs.chart).append("g").attr("class",Is.chartArcs).attr("transform",t.getTranslate("arc")),t.setArcTitle()},setArcTitle:function(t){const e=this,n=t||e.getArcTitle(),i=e.hasType("gauge");if(n){const t=i?Bs.chartArcsGaugeTitle:Is.chartArcsTitle;let r=e.$el.arcs.select("."+t);r.empty()&&(r=e.$el.arcs.append("text").attr("class",t).style("text-anchor","middle")),i&&r.attr("dy","-0.3em"),os(r,n,i?void 0:[-.6,1.35],!0)}},getArcTitle:function(){const t=this,e=t.hasType("donut")?"donut":t.hasType("gauge")&&"gauge";return e?t.config[e+"_title"]:""},getArcTitleWithNeedleValue:function(){const t=this,e=t.config,n=t.state,i=t.getArcTitle();if(i&&t.config.arc_needle_show&&/{=[A-Z_]+}/.test(i)){let t=n.current.needle;return Uo(t)||(t=e.arc_needle_value),As(i,{NEEDLE_VALUE:Uo(t)?t:0})}return!1},redrawArc:function(t,e,n){var i=this;const r=this,s=r.config,a=r.state,c=r.$el.main,u=s.interaction_enabled,l=u&&s.data_selection_isselectable;let h=c.selectAll("."+Is.arcs).selectAll("."+Is.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 o(this,i),r.color(t.data)}.bind(this)).style("cursor",function(t){return o(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=s.gauge_startingAngle,t.endAngle=s.gauge_startingAngle),this._current=t})).merge(h),r.hasType("gauge")&&(r.updateGaugeMax(),r.hasMultiArcGauge()&&r.redrawMultiArcGauge()),h.attr("transform",function(t){return o(this,i),!r.isGaugeType(t.data)&&n?"scale(0)":""}.bind(this)).style("opacity",(function(t){return t===this._current?"0":null})).each(function(){o(this,i),a.transiting=!0}.bind(this)).transition().duration(t).attrTween("d",(function(t){var e=this;const n=r.updateAngle(t);if(!n)return function(){return o(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);const i=qi(this._current,n);return this._current=i(0),function(e){const n=i(e);return n.data=t.data,r.getArc(n,!0)}})).attr("transform",n?"scale(1)":"").style("fill",function(t){let e;return o(this,i),r.levelColor?(e=r.levelColor(t.data.values[0].value),s.data_colors[t.data.id]=e):e=r.color(t.data),e}.bind(this)).style("opacity",null).call(is,(function(){if(r.levelColor){const t=Rn(this),e=t.datum(this._current);r.updateLegendItemColor(e.data.id,t.style("fill"))}a.transiting=!1,ns(s.onrendered,r.api)})),u&&r.bindArcEvent(h),r.hasType("polar")&&r.redrawPolar(),r.hasType("gauge")&&r.redrawBackgroundArcs(),s.arc_needle_show&&r.redrawNeedle(),r.redrawArcText(t)},redrawNeedle:function(){var t=this;const e=this,n=e.$el,i=e.config,r=e.state,s=r.hiddenTargetIds,a=(r.radius-1)/100*i.arc_needle_length,c=s.length!==e.data.targets.length;let u=e.$el.arcs.select("."+Is.needle);const l=i.arc_needle_path,h=i.arc_needle_bottom_width/2,f=i.arc_needle_top_width/2,d=i.arc_needle_top_rx,g=i.arc_needle_top_ry,p=i.arc_needle_bottom_len,v=i.arc_needle_bottom_rx,y=i.arc_needle_bottom_ry,b=e.getNeedleAngle(),x=function(){o(this,t);const n=e.getArcTitleWithNeedleValue();n&&e.setArcTitle(n)}.bind(this);if(x(),u.empty()&&(u=n.arcs.append("path").classed(Is.needle,!0),n.needle=u,n.needle.updateHelper=function(r,s){var a=this;void 0===s&&(s=!1),o(this,t),"none"!==n.needle.style("display")&&e.$T(n.needle).style("transform","rotate("+e.getNeedleAngle(r)+"deg)").call(is,function(){o(this,a),s&&(i.arc_needle_value=r),x()}.bind(this))}.bind(this)),c){const t=Xo(l)?l.call(e,a):"M-"+h+" "+p+" A"+v+" "+y+" 0 0 0 "+h+" "+p+" L"+f+" -"+a+" A"+d+" "+g+" 0 0 0 -"+f+" -"+a+" L-"+h+" "+p+" Z";e.$T(u).attr("d",t).style("fill",i.arc_needle_color).style("display",null).style("transform","rotate("+b+"deg)")}else u.style("display","none")},getNeedleAngle:function(t){const e=this,n=e.config,i=e.state,r=e.getArcLength(),o=e.hasType("gauge"),s=e.getTotalDataSum(!0);let a=Vo(t)?t:n.arc_needle_value,c=n[n.data_type+"_startingAngle"]||0,u=0;if(Uo(a)||(a=o&&1===e.data.targets.length?s:0),i.current.needle=a,o){c=e.getGaugeStartAngle();const t=n.gauge_fullCircle?r:-2*c,i=n.gauge_min;u=t*((a-i)/(n.gauge_max-i))}else u=r*(a/s);return(c+u)*(180/Math.PI)},redrawBackgroundArcs:function(){var t=this;const e=this,n=e.config,i=e.state,r=e.hasMultiArcGauge(),s=n.gauge_fullCircle,a=0===e.filterTargetsToShow(e.data.targets).length&&!!n.data_empty_label_text,c=e.getGaugeStartAngle(),u=s?c+e.getArcLength():-1*c;let l=e.$el.arcs.select((r?"g":"")+"."+Is.chartArcsBackground);if(r){let r=0;l=l.selectAll("path."+Is.chartArcsBackground).data(e.data.targets),l.enter().append("path").attr("class",function(e,n){return o(this,t),Is.chartArcsBackground+" "+Is.chartArcsBackground+"-"+n}.bind(this)).merge(l).style("fill",n.gauge_background||null).attr("d",function(s){let l=s.id;if(o(this,t),a||i.hiddenTargetIds.indexOf(l)>=0)return"M 0 0";const h={data:[{value:n.gauge_max}],startAngle:c,endAngle:u,index:r++};return e.getArc(h,!0,!0)}.bind(this)),l.exit().remove()}else l.attr("d",a?"M 0 0":function(){o(this,t);const i={data:[{value:n.gauge_max}],startAngle:c,endAngle:u};return e.getArc(i,!0,!0)}.bind(this))},bindArcEvent:function(t){var e=this;const n=this,i=n.config,r=n.state,s="touch"===r.inputType,a="mouse"===r.inputType;function c(t,e,i){n.expandArc(i),n.api.focus(i),n.toggleFocusLegend(i,!0),n.showTooltip([e],t)}function u(t){const 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){const o=n.updateAngle(e);let s;o&&(s=n.convertToArcData(o),null==n.toggleShape||n.toggleShape(this,s,r),i.data_onclick.bind(n.api)(s,this))})),a&&t.on("mouseover",(function(t,e){var i;if(r.transiting)return;r.event=t;const o=n.updateAngle(e),s=o?n.convertToArcData(o):null;c(this,s,(null==(i=s)?void 0:i.id)||void 0),n.setOverOut(!0,s)})).on("mouseout",function(t,i){if(o(this,e),r.transiting)return;r.event=t;const s=n.updateAngle(i),a=s?n.convertToArcData(s):null;u(),n.setOverOut(!1,a)}.bind(this)).on("mousemove",(function(t,e){const i=n.updateAngle(e),o=i?n.convertToArcData(i):null;r.event=t,n.showTooltip([o],this)})),s&&n.hasArcType()&&!n.radars){const t=function(t){var n,i;o(this,e);const r=null!=(n=null==(i=t.changedTouches)?void 0:i[0])?n:{clientX:0,clientY:0},s=r.clientX,a=r.clientY;return Rn(In.elementFromPoint(s,a))}.bind(this);n.$el.svg.on("touchstart touchmove",(function(e){var i,o;if(r.transiting)return;r.event=e;const s=t(e).datum(),a=null!=(i=s)&&i.data&&s.data.id?n.updateAngle(s):null,l=a?n.convertToArcData(a):null,h=(null==(o=l)?void 0:o.id)||void 0;n.callOverOutForTouch(l),Yo(h)?u():c(this,l,h)}))}},redrawArcText:function(t){var e=this;const n=this,i=n.config,r=n.state,s=n.$el,a=s.main,c=s.arcs,u=n.hasType("gauge"),l=n.hasMultiArcGauge();let h;if(u&&1===n.data.targets.length&&i.gauge_title||(h=a.selectAll("."+Is.chartArc).select("text").style("opacity","0").attr("class",function(t){return o(this,e),n.isGaugeType(t.data)?Bs.gaugeValue:null}.bind(this)).call(n.textForArcLabel.bind(n)).attr("transform",n.transformForArcLabel.bind(n)).style("font-size",function(t){return o(this,e),n.isGaugeType(t.data)&&1===n.data.targets.length&&!l?Math.round(r.radius/5)+"px":null}.bind(this)).transition().duration(t).style("opacity",function(t){return o(this,e),n.isTargetToShow(t.data.id)&&n.isArcType(t.data)?null:"0"}.bind(this)),l&&h.attr("dy","-.1em")),a.select("."+Is.chartArcsTitle).style("opacity",n.hasType("donut")||u?null:"0"),u){var f;const t=i.gauge_fullCircle;t&&(null==(f=h)||f.attr("dy",""+(l?0:Math.round(r.radius/14)))),i.gauge_label_show&&(c.select("."+Bs.chartArcsGaugeUnit).attr("dy",(t?1.5:.75)+"em").text(i.gauge_units),c.select("."+Bs.chartArcsGaugeMin).attr("dx",-1*(r.innerRadius+(r.radius-r.innerRadius)/(t?1:2))+"px").attr("dy","1.2em").text(n.textForGaugeMinMax(i.gauge_min,!1)),t||c.select("."+Bs.chartArcsGaugeMax).attr("dx",r.innerRadius+(r.radius-r.innerRadius)/2+"px").attr("dy","1.2em").text(n.textForGaugeMinMax(i.gauge_max,!0)))}},getArcElementByIdOrIndex:function(t){var e=this;const n=this.$el.arcs,i=Uo(t)?function(n){return o(this,e),n.index===t}.bind(this):function(n){return o(this,e),n.data.id===t}.bind(this);return null==n?void 0:n.selectAll("."+Cs.target+" path").filter(i)}};function Dd(t){return t[0]}function Nd(t){return t[1]}function zd(t,e){var n=fd(!0),i=null,r=fh,o=null,s=Td(a);function a(a){var c,u,l,h=(a=hd(a)).length,f=!1;for(null==i&&(o=r(l=s())),c=0;c<=h;++c)!(c<h&&n(u=a[c],c,a))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+t(u,c,a),+e(u,c,a));if(l)return o=null,l+""||null}return t="function"==typeof t?t:void 0===t?Dd:fd(t),e="function"==typeof e?e:void 0===e?Nd:fd(e),a.x=function(e){return arguments.length?(t="function"==typeof e?e:fd(+e),a):t},a.y=function(t){return arguments.length?(e="function"==typeof t?t:fd(+t),a):e},a.defined=function(t){return arguments.length?(n="function"==typeof t?t:fd(!!t),a):n},a.curve=function(t){return arguments.length?(r=t,null!=i&&(o=r(i)),a):r},a.context=function(t){return arguments.length?(null==t?i=o=null:o=r(i=t),a):i},a}var Fd={initArea:function(t){const e=this.config;t.insert("g","."+(e.area_front?zs.circles:$s.lines)).attr("class",this.getClass("areas",!0))},updateAreaColor:function(t){const e=this;return e.config.area_linearGradient?e.getGradienColortUrl(t.id):e.color(t)},updateArea:function(t,e){void 0===e&&(e=!1);const n=this,i=n.config,r=n.state,o=n.$el,s=n.$T,a=e?o.subchart:o;i.area_linearGradient&&n.updateLinearGradient();const c=a.main.selectAll("."+Ps.areas).selectAll("."+Ps.area).data(n.lineData.bind(n));s(c.exit(),t).style("opacity","0").remove(),a.area=c.enter().append("path").attr("class",n.getClass("area",!0)).style("fill",n.updateAreaColor.bind(n)).style("opacity",(function(){return r.orgAreaOpacity=Rn(this).style("opacity"),"0"})).merge(c),c.style("opacity",r.orgAreaOpacity),n.setRatioForGroupedData(a.area.data())},redrawArea:function(t,e,n){var i=this;void 0===n&&(n=!1);const r=this,s=(n?this.$el.subchart:this.$el).area,a=r.state.orgAreaOpacity;return[r.$T(s,e,ls()).attr("d",t).style("fill",r.updateAreaColor.bind(r)).style("opacity",function(t){return o(this,i),(r.isAreaRangeType(t)?a/1.75:a)+""}.bind(this))]},generateDrawArea:function(t,e){var n=this;const i=this,r=i.config,s=r.line_connectNull,a=r.axis_rotated,c=i.generateGetAreaPoints(t,e),u=i.getYScaleById.bind(i),l=function(t){return o(this,n),(e?i.subxx:i.xx).call(i,t)}.bind(this),h=function(t,r){return o(this,n),i.isGrouped(t.id)?c(t,r)[0][1]:u(t.id,e)(i.isAreaRangeType(t)?i.getRangedData(t,"high"):i.getShapeYMin(t.id))}.bind(this),f=function(t,r){return o(this,n),i.isGrouped(t.id)?c(t,r)[1][1]:u(t.id,e)(i.isAreaRangeType(t)?i.getRangedData(t,"low"):t.value)}.bind(this);return function(t){var e=this;o(this,n);let c,u=s?i.filterRemoveNull(t.values):t.values,d=0,g=0;if(i.isAreaType(t)){let n=function(t,e,n){var i=null,r=fd(!0),o=null,s=fh,a=null,c=Td(u);function u(u){var l,h,f,d,g,p=(u=hd(u)).length,v=!1,y=Array(p),b=Array(p);for(null==o&&(a=s(g=c())),l=0;l<=p;++l){if(!(l<p&&r(d=u[l],l,u))===v)if(v=!v)h=l,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),f=l-1;f>=h;--f)a.point(y[f],b[f]);a.lineEnd(),a.areaEnd()}v&&(y[l]=+t(d,l,u),b[l]=+e(d,l,u),a.point(i?+i(d,l,u):y[l],n?+n(d,l,u):b[l]))}if(g)return a=null,g+""||null}function l(){return zd().defined(r).curve(s).context(o)}return t="function"==typeof t?t:void 0===t?Dd:fd(+t),e="function"==typeof e?e:fd(void 0===e?0:+e),n="function"==typeof n?n:void 0===n?Nd:fd(+n),u.x=function(e){return arguments.length?(t="function"==typeof e?e:fd(+e),i=null,u):t},u.x0=function(e){return arguments.length?(t="function"==typeof e?e:fd(+e),u):t},u.x1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:fd(+t),u):i},u.y=function(t){return arguments.length?(e="function"==typeof t?t:fd(+t),n=null,u):e},u.y0=function(t){return arguments.length?(e="function"==typeof t?t:fd(+t),u):e},u.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:fd(+t),u):n},u.lineX0=u.lineY0=function(){return l().x(t).y(e)},u.lineY1=function(){return l().x(t).y(n)},u.lineX1=function(){return l().x(i).y(e)},u.defined=function(t){return arguments.length?(r="function"==typeof t?t:fd(!!t),u):r},u.curve=function(t){return arguments.length?(s=t,null!=o&&(a=s(o)),u):s},u.context=function(t){return arguments.length?(null==t?o=a=null:a=s(o=t),u):o},u}();n=a?n.y(l).x0(h).x1(f):n.x(l).y0(r.area_above?0:r.area_below?i.state.height:h).y1(f),s||(n=n.defined(function(t){return o(this,e),null!==i.getBaseValue(t)}.bind(this))),i.isStepType(t)&&(u=i.convertValuesToStep(u)),c=n.curve(i.getCurve(t))(u)}else u[0]&&(d=i.scale.x(u[0].x),g=i.getYScaleById(t.id)(u[0].value)),c=a?"M "+g+" "+d:"M "+d+" "+g;return c||"M 0 0"}.bind(this)},generateGetAreaPoints:function(t,e){const n=this,i=n.config,r=n.getShapeX(0,t,e),o=n.getShapeY(!!e),s=n.getShapeOffset(n.isAreaType,t,e),a=n.getYScaleById.bind(n);return function(t,c){const u=a.call(n,t.id,e)(n.getShapeYMin(t.id)),l=s(t,c)||u,h=r(t),f=t.value;let d=o(t);return i.axis_rotated&&(f>0&&d<u||f<0&&u<d)&&(d=u),[[h,l],[h,d-(u-l)],[h,d-(u-l)],[h,l]]}}},jd={initBar:function(){const t=this.$el,e=this.config,n=this.state.clip;t.bar=t.main.select("."+Cs.chart),t.bar=e.bar_front?t.bar.append("g"):t.bar.insert("g",":first-child"),t.bar.attr("class",Ds.chartBars).call(this.setCssRule(!1,"."+Ds.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;const n=this,i=n.config,r=n.$el,s=n.getChartClass("Bar"),a=n.getClass("bars",!0),c=n.classFocus.bind(n),u=i.interaction_enabled&&i.data_selection_isselectable;r.bar||n.initBar();r.main.select("."+Ds.chartBars).selectAll("."+Ds.chartBar).data(t.filter(function(t){var i=this;return o(this,e),t.values.some(function(t){return o(this,i),Uo(t.value)||n.isBarRangeType(t)}.bind(this))}.bind(this))).attr("class",function(t){return o(this,e),s(t)+c(t)}.bind(this)).enter().append("g").attr("class",s).style("opacity","0").style("pointer-events",n.getStylePropValue("none")).append("g").attr("class",a).style("cursor",function(t){return o(this,e),null!=u&&null!=u.bind&&u.bind(n.api)(t)?"pointer":null}.bind(this)).call(n.setCssRule(!0," ."+Ds.bar,["fill"],n.color))},updateBar:function(t,e){void 0===e&&(e=!1);const n=this,i=n.config,r=n.$el,o=n.$T,s=e?r.subchart:r,a=n.getClass("bar",!0),c=n.initialOpacity.bind(n);i.bar_linearGradient&&n.updateLinearGradient();const u=s.main.selectAll("."+Ds.bars).selectAll("."+Ds.bar).data(n.labelishData.bind(n));o(u.exit(),t).style("opacity","0").remove(),s.bar=u.enter().append("path").attr("class",a).style("fill",n.updateBarColor.bind(n)).merge(u).style("opacity",c),n.setRatioForGroupedData(s.bar.data())},updateBarColor:function(t){const 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);const r=this,s=(n?r.$el.subchart:r.$el).bar;return[r.$T(s,e,ls()).attr("d",function(e){return o(this,i),(Uo(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;const i=this,r=i.config,s=i.generateGetBarPoints(t,e),a=r.axis_rotated,c=r.bar_radius,u=r.bar_radius_ratio,l=Uo(c)&&c>0?function(){return o(this,n),c}.bind(this):Uo(u)?function(t){return o(this,n),t*u}.bind(this):null;return function(t,e){o(this,n);const c=s(t,e),u=+a,h=+!u,f=t.value<0,d=r["axis_"+i.axis.getId(t.id)+"_inverted"],g=!d&&f||d&&!f,p=["",""];let v=0;const y=i.isGrouped(t.id),b=!(!l||!y)&&i.isStackingRadiusData(t);if(l){const t=a?h:u,e=c[2][t]-c[0][t];v=!y||b?l(e):0;const n="a"+v+","+v+" "+(g?"1 0 0":"0 0 1")+" ";p[+!a]=""+n+v+","+v,p[+a]=""+n+[-v,v][a?"sort":"reverse"](),g&&p.reverse()}const x=a?"H"+(c[1][u]+(g?v:-v))+" "+p[0]+"V"+(c[2][h]-v)+" "+p[1]+"H"+c[3][u]:"V"+(c[1][h]+(g?-v:v))+" "+p[0]+"H"+(c[2][u]-v)+" "+p[1]+"V"+c[3][h];return"M"+c[0][u]+","+c[0][h]+x+"z"}.bind(this)},isStackingRadiusData:function(t){var e=this;const n=this,i=n.$el,r=n.config,s=n.data,a=n.state,c=t.id,u=t.index,l=t.value;if(a.hiddenTargetIds.indexOf(c)>-1){const t=i.bar.filter(function(t){return o(this,e),t.id===c&&t.value===l}.bind(this));return!t.empty()&&/a\d+/i.test(t.attr("d"))}const h=r.data_groups.find(function(t){return o(this,e),t.indexOf(c)>-1}.bind(this)),f=n.orderTargets(n.filterTargetsToShow(s.targets.filter(n.isBarType,n))).filter(function(t){return o(this,e),h.indexOf(t.id)>-1}.bind(this)).map(function(t){var n=this;return o(this,e),t.values.filter(function(t){return o(this,n),t.index===u&&(Uo(l)&&l>0?t.value>0:t.value<0)}.bind(this))[0]}.bind(this)).filter(Boolean).map(function(t){return o(this,e),t.id}.bind(this));return 0!==l&&f.indexOf(c)===f.length-1},generateGetBarPoints:function(t,e){var n=this;const i=this,r=i.config,s=e?i.axis.subX:i.axis.x,a=i.getIndicesMax(t)+1,c=i.getBarW("bar",s,a),u=i.getShapeX(c,t,!!e),l=i.getShapeY(!!e),h=i.getShapeOffset(i.isBarType,t,!!e),f=i.getYScaleById.bind(i);return function(t,s){o(this,n);const a=t.id,d=f.call(i,a,e)(i.getShapeYMin(a)),g=h(t,s)||d,p=Uo(c)?c:c[t.id]||c._$width,v=r["axis_"+i.axis.getId(a)+"_inverted"],y=t.value,b=u(t);let x=l(t);r.axis_rotated&&!v&&(y>0&&x<d||y<0&&d<x)&&(x=d),i.isBarRangeType(t)||(x-=d-g);const m=b+p;return[[b,g],[b,x],[m,x],[m,g]]}.bind(this)}};function Bd(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 Xd={initCandlestick:function(){const t=this.$el;t.candlestick=t.main.select("."+Cs.chart).append("g").attr("class",Ns.chartCandlesticks)},updateTargetsForCandlestick:function(t){const e=this,n=e.$el,i=e.getChartClass("Candlestick");n.candlestick||e.initCandlestick();e.$el.main.select("."+Ns.chartCandlesticks).selectAll("."+Ns.chartCandlestick).data(t).enter().append("g").attr("class",i).style("pointer-events","none")},updateCandlestick:function(t,e){var n=this;void 0===e&&(e=!1);const i=this,r=i.$el,s=i.$T,a=e?r.subchart:r,c=i.getClass("candlestick",!0),u=i.initialOpacity.bind(i),l=a.main.selectAll("."+Ns.chartCandlestick).selectAll("."+Ns.candlestick).data(i.labelishData.bind(i));s(l.exit(),t).style("opacity","0").remove();const h=l.enter().filter(function(t){return o(this,n),t.value}.bind(this)).append("g").attr("class",c);h.append("line"),h.append("path"),a.candlestick=l.merge(h).style("opacity",u)},generateDrawCandlestick:function(t,e){var n=this;const i=this,r=i.config,s=i.generateGetCandlestickPoints(t,e),a=r.axis_rotated,c=r.candlestick_color_down;return function(t,e,r){var u,l=this;o(this,n);const h=s(t,e),f=null==(u=i.getCandlestickData(t))?void 0:u._isUp,d=+a;r.classed&&r.classed(Ns[f?"valueUp":"valueDown"],!0);const g=a?"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){o(this,l);return(f?i.color(t):ts(c)?c[t.id]:c)||i.color(t)}.bind(this));const p=r.select("line"),v=a?{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(const t in v)p.attr(t,v[t])}.bind(this)},generateGetCandlestickPoints:function(t,e){var n=this;void 0===e&&(e=!1);const i=this,r=e?i.axis.subX:i.axis.x,s=i.getIndicesMax(t)+1,a=i.getBarW("candlestick",r,s),c=i.getShapeX(a,t,!!e),u=i.getShapeY(!!e),l=i.getShapeOffset(i.isBarType,t,!!e),h=i.getYScaleById.bind(i);return function(t,r){o(this,n);const s=h.call(i,t.id,e)(i.getShapeYMin(t.id)),f=l(t,r)||s,d=Uo(a)?a:a[t.id]||a._$width,g=i.getCandlestickData(t);let p;if(g&&Uo(g.open)&&Uo(g.close)){const e={start:c(t),end:0};e.end=e.start+d;const n={start:u(g.open),end:u(g.close)},i={x:e.start+d/2,high:u(g.high),low:u(g.low)};n.start-=s-f,p=[[e.start,n.start],[e.end,n.end],[i.x,i.low,i.high]]}else p=[[0,0],[0,0],[0,0,0]];return p}.bind(this)},redrawCandlestick:function(t,e,n){void 0===n&&(n=!1);const i=this.$el,r=this.$T,o=(n?i.subchart:i).candlestick,s=ls(!0);return[o.each((function(n,i){const o=r(Rn(this),e,s);t(n,i,o)})).style("opacity",null)]},getCandlestickData:function(t){let e,n=t.value;if(Qo(n)){const t=n[0],i=n[1],r=n[2],o=n[3],s=n[4],a=void 0!==s&&s;e={open:t,high:i,low:r,close:o},!1!==a&&(e.volume=a)}else ts(n)&&(e=function(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?Bd(Object(e),!0).forEach((function(n){$n(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Bd(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}},$d={initGauge:function(){var t=this;const e=this,n=e.config,i=e.$el.arcs,r=function(e){o(this,t),i.append("text").attr("class",e).style("text-anchor","middle").style("pointer-events","none")}.bind(this);if(e.hasType("gauge")){const t=e.hasMultiArcGauge();i.append(t?"g":"path").attr("class",Is.chartArcsBackground).style("fill",!t&&n.gauge_background||null),n.gauge_units&&r(Bs.chartArcsGaugeUnit),n.gauge_label_show&&(r(Bs.chartArcsGaugeMin),n.gauge_fullCircle||r(Bs.chartArcsGaugeMax))}},updateGaugeMax:function(){const 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;const e=this,n=e.config,i=e.state,r=e.$el,s=e.state.hiddenTargetIds,a=r.main.selectAll("."+Is.arcs).selectAll("."+Is.arcLabelLine).data(e.arcData.bind(e));a.enter().append("rect").attr("class",function(e){return o(this,t),Is.arcLabelLine+" "+Cs.target+" "+Cs.target+"-"+e.data.id}.bind(this)).merge(a).style("fill",function(n){return o(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){let n=0,r=0,o=0,a="";if(s.indexOf(t.data.id)<0){const s=e.updateAngle(t),c=i.gaugeArcWidth/e.filterTargetsToShow(e.data.targets).length*(s.index+1),u=s.endAngle-Math.PI/2,l=i.radius-c,h=u-(0===l?0:1/l);n=i.radiusExpanded-i.radius+c,r=Math.cos(h)*l,o=Math.sin(h)*l,a="rotate("+180*u/Math.PI+", "+r+", "+o+")"}Rn(this).attr("x",r).attr("y",o).attr("width",n).attr("height",2).attr("transform",a).style("stroke-dasharray","0, "+(n+2)+", 0")}))},textForGaugeMinMax:function(t,e){const n=this.config.gauge_label_extents;return Xo(n)?n.bind(this.api)(t,e):t},getGaugeLabelHeight:function(){const 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)}},Ud={initBubble:function(){const t=this.config;this.hasType("bubble")&&(t.point_show=!0,t.point_type="circle")},getBaseLength:function(){const t=this,e=t.state,n=e.width,i=e.height,r=xa;let o=t.cache.get(r);return o||t.cache.add(r,o=_s("min",[n,i])),o},getBubbleR:function(t){var e=this;const n=this;let i=n.config.bubble_maxR;Xo(i)?i=i.bind(n.api)(t):Uo(i)||(i=n.getBaseLength()/(2*n.getMaxDataCount())+12);const r=_s("max",n.getMinMaxData().max.map(function(t){return o(this,e),n.isBubbleZType(t)?n.getBubbleZData(t.value,"y"):ts(t.value)?t.value.mid:t.value}.bind(this))),s=i*i*Math.PI,a=(n.isBubbleZType(t)?n.getBubbleZData(t.value,"z"):t.value)*(s/r);return Math.sqrt(a/Math.PI)},getBubbleZData:function(t,e){return ts(t)?t[e]:t["y"===e?0:1]}},Yd={initLine:function(){const t=this.$el;t.line=t.main.select("."+Cs.chart).append("g").attr("class",$s.chartLines).call(this.setCssRule(!1,"."+$s.chartLines,["pointer-events:none"]))},updateTargetsForLine:function(t){var e=this;const n=this,i=n.$el,r=i.area,s=i.line,a=i.main,c=n.getChartClass("Line"),u=n.getClass("lines",!0),l=n.classFocus.bind(n);s||n.initLine();const h=t.filter(function(t){return o(this,e),!(n.isScatterType(t)||n.isBubbleType(t))}.bind(this)),f=a.select("."+$s.chartLines).selectAll("."+$s.chartLine).data(h).attr("class",function(t){return o(this,e),c(t)+l(t)}.bind(this)),d=f.enter().append("g").attr("class",c).style("opacity","0").style("pointer-events",n.getStylePropValue("none"));if(d.append("g").attr("class",u),n.hasTypeOf("Area")){const t=(!r&&d.empty()?f:d).filter(n.isAreaType.bind(n));n.initArea(t)}n.updateTargetForCircle(h,d)},updateLine:function(t,e){var n=this;void 0===e&&(e=!1);const i=this,r=i.format.extraLineClasses,s=i.$el,a=i.$T,c=e?s.subchart:s,u=c.main.selectAll("."+$s.lines).selectAll("."+$s.line).data(i.lineData.bind(i));a(u.exit(),t).style("opacity","0").remove(),c.line=u.enter().append("path").attr("class",function(t){return o(this,n),i.getClass("line",!0)(t)+" "+(r(t)||"")}.bind(this)).style("stroke",i.color).merge(u).style("opacity",i.initialOpacity.bind(i)).attr("transform",null)},redrawLine:function(t,e,n){void 0===n&&(n=!1);const i=this.$el;return[(0,this.$T)((n?i.subchart:i).line,e,ls()).attr("d",t).style("stroke",this.color).style("opacity",null)]},getCurve:function(t){var e=this;const n=this;return n.config.axis_rotated&&n.isStepType(t)?function(i){o(this,e);const r=n.getInterpolate(t)(i);return r.orgPoint=r.point,r.pointRotated=function(t,e){1===this._point&&(this._point=2);const 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;const i=this,r=i.config,s=i.scale,a=r.line_connectNull,c=r.axis_rotated,u=i.generateGetLinePoints(t,e),l=i.getYScaleById.bind(i),h=function(t){return o(this,n),(e?i.subxx:i.xx).call(i,t)}.bind(this),f=function(t,r){return o(this,n),i.isGrouped(t.id)?u(t,r)[0][1]:l(t.id,e)(i.getBaseValue(t))}.bind(this);let d=zd();d=c?d.x(f).y(h):d.x(h).y(f),a||(d=d.defined(function(t){return o(this,n),null!==i.getBaseValue(t)}.bind(this)));const g=e?s.subX:s.x;return function(t){o(this,n);const u=l(t.id,e);let h,f=a?i.filterRemoveNull(t.values):t.values,p=0,v=0;if(i.isLineType(t)){const e=r.data_regions[t.id];e?h=i.lineWithRegions(f,s.zoom||g,u,e):(i.isStepType(t)&&(f=i.convertValuesToStep(f)),h=d.curve(i.getCurve(t))(f))}else f[0]&&(p=g(f[0].x),v=u(f[0].value)),h=c?"M "+v+" "+p:"M "+p+" "+v;return h||"M 0 0"}.bind(this)},lineWithRegions:function(t,e,n,i){var r=this;const s=this,a=s.config.axis_rotated,c=s.axis.isTimeSeries(),u=[];let l,h,f,d;if(Vo(i)){const e=function(t,e){return o(this,r),Yo(t)?e:c?Ss.call(s,t):t}.bind(this);for(let n,r=0;n=i[r];r++){const i=e(n.start,t[0].x),o=e(n.end,t[t.length-1].x),s=n.style||{dasharray:"2 2"};u[r]={start:i,end:o,style:s}}}const g=a?function(t){return o(this,r),n(t.value)}.bind(this):function(t){return o(this,r),e(t.x)}.bind(this),p=a?function(t){return o(this,r),e(t.x)}.bind(this):function(t){return o(this,r),n(t.value)}.bind(this),v=function(t){return o(this,r),"M"+t[0][0]+","+t[0][1]+"L"+t[1][0]+","+t[1][1]}.bind(this),y=c?function(t,i,s,c){o(this,r);const u=t.x.getTime(),l=i.x-t.x,d=new Date(u+l*s),g=new Date(u+l*(s+c)),p=a?[[n(h(s)),e(d)],[n(h(s+f)),e(g)]]:[[e(d),n(h(s))],[e(g),n(h(s+f))]];return v(p)}.bind(this):function(t,i,s,c){o(this,r);const u=a?[[n(h(s),!0),e(l(s))],[n(h(s+c),!0),e(l(s+c))]]:[[e(l(s),!0),n(h(s))],[e(l(s+c),!0),n(h(s+c))]];return v(u)}.bind(this),b={x:s.axis.getAxisType("x"),y:s.axis.getAxisType("y")};let x="";for(let i,r=0;i=t[r];r++){const o=t[r-1],a=o&&Bo(o.value);let c=s.isWithinRegions(i.x,u);if(Bo(i.value))if(!Yo(u)&&c&&a){if(a){try{c=c.dasharray.split(" ")}catch(t){c="2 2".split(" ")}l=dl(b.x,o.x,i.x),h=dl(b.y,o.value,i.value);const t=e(i.x)-e(o.x),r=n(i.value)-n(o.value),s=Math.sqrt(Math.pow(t,2)+Math.pow(r,2));f=c[0]/s,d=f*c[1];for(let t=f;t<=1;t+=d)x+=y(o,i,t,f),t+d>=1&&(x+=y(o,i,1,0))}}else x+=(r&&a?"L":"M")+g(i)+","+p(i)}return x},isWithinRegions:function(t,e){for(let n,i=0;n=e[i];i++)if(n.start<t&&t<=n.end)return n.style;return!1},isWithinStep:function(t,e){return Math.abs(e-as(this.state.event,t)[1])<30},shouldDrawPointsForLine:function(t){const e=this.config.line_point;return!0===e||Qo(e)&&-1!==e.indexOf(t.id)}};const Vd=function(){return o(this,undefined),ls()}.bind(void 0);var Gd={hasValidPointType:function(t){return/^(circle|rect(angle)?|polygon|ellipse|use)$/i.test(t||this.config.point_type)},hasValidPointDrawMethods:function(t){const e=t||this.config.point_type;return Zo(e)&&Xo(e.create)&&Xo(e.update)},initialOpacityForCircle:function(t){const e=this.config,n=this.state.withoutFadeIn;let i=e.point_opacity;return Yo(i)&&(i=null!==this.getBaseValue(t)&&n[t.id]?this.opacityForCircle(t):"0"),i},opacityForCircle:function(t){const e=this.config;let n=e.point_opacity;return Yo(n)&&(n=e.point_show&&!e.point_focus_only?null:"0",n=Bo(this.getBaseValue(t))?this.isBubbleType(t)||this.isScatterType(t)?"0.5":n:"0"),n},initCircle:function(){const t=this,e=t.$el.main;t.point=t.generatePoint(),(t.hasType("bubble")||t.hasType("scatter"))&&e.select("."+zs.chartCircles).empty()&&e.select("."+Cs.chart).append("g").attr("class",zs.chartCircles)},updateTargetForCircle:function(t,e){var n=this;const i=this,r=i.config,s=i.data,a=i.$el,c=r.interaction_enabled&&r.data_selection_enabled,u=c&&r.data_selection_isselectable,l=i.getClass("circles",!0);if(!r.point_show)return;a.circle||i.initCircle();let h=t,f=e;if(!h){h=s.targets.filter(function(t){return o(this,n),this.isScatterType(t)||this.isBubbleType(t)}.bind(this));const t=a.main.select("."+zs.chartCircles).style("pointer-events","none").selectAll("."+zs.circles).data(h);t.exit().remove(),f=t.enter()}c&&f.append("g").attr("class",function(t){return o(this,n),i.generateClass(Zs.selectedCircles,t.id)}.bind(this)),f.append("g").attr("class",l).call(function(t){o(this,n),i.setCssRule(!0,"."+zs.circles,["cursor:pointer"],u)(t),i.setCssRule(!0," ."+zs.circle,["fill","stroke"],i.color)(t)}.bind(this)).style("opacity",(function(){return Rn(this.parentNode).attr("class").indexOf(zs.chartCircles)>-1?"0":null})),c&&h.forEach(function(t){var e=this;o(this,n),a.main.selectAll("."+Zs.selectedCircles+i.getTargetSelectorSuffix(t.id)).selectAll(""+Zs.selectedCircle).each(function(n){o(this,e),n.value=t.values[n.index].value}.bind(this))}.bind(this))},updateCircle:function(t){var e=this;void 0===t&&(t=!1);const n=this,i=n.config,r=n.state,s=n.$el,a=i.point_focus_only,c=t?s.subchart:s;if(i.point_show&&!r.toggling){const t=c.main.selectAll("."+zs.circles).selectAll("."+zs.circle).data(function(t){return o(this,e),n.isLineType(t)&&n.shouldDrawPointsForLine(t)||n.isBubbleType(t)||n.isRadarType(t)||n.isScatterType(t)?a?[t.values[0]]:t.values:[]}.bind(this));t.exit().remove(),t.enter().filter(Boolean).append(n.point("create",this,n.pointR.bind(n),n.getStylePropValue(n.color))),c.circle=c.main.selectAll("."+zs.circles+" ."+zs.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);const o=this,s=o.state.rendered,a=o.$el,c=o.$T,u=r?a.subchart:a,l=u.main.selectAll("."+Zs.selectedCircle);if(!o.config.point_show)return[];const h=o.point("update",o,t,e,o.getStylePropValue(o.color),n,i,l),f=o.isCirclePoint()?"c":"",d=ls(),g=o.opacityForCircle.bind(o),p=[];return u.circle.each((function(t){let e=h.bind(this)(t);e=c(e,n||!s,d).style("opacity",g),p.push(e)})),[p,c(l,n).attr(f+"x",t).attr(f+"y",e)]},showCircleFocus:function(t){const e=this,n=e.config,i=e.state,r=i.hasRadar,s=i.resizing,a=i.toggling,c=i.transiting;let u=e.$el.circle;if(!1===c&&n.point_focus_only&&u){const n=(r?e.radarCircleX:e.circleX).bind(e),i=(r?e.radarCircleY:e.circleY).bind(e),c=a||Yo(t),l=e.point("update",e,n,i,e.getStylePropValue(e.color),!s&&c);t&&(u=u.filter((function(e){var n=this;const i=null==t.filter?void 0:t.filter(function(t){return o(this,n),t.id===e.id}.bind(this));return!!i.length&&Rn(this).datum(i[0])}))),u.attr("class",this.updatePointClass.bind(this)).style("opacity",null).each((function(t){const n=t.id,i=t.index,r=t.value;let o="hidden";Bo(r)&&(l.bind(this)(t),e.expandCircles(i,n),o=""),this.style.visibility=o}))}},hideCircleFocus:function(){const 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);const n=this,i=n.generateGetLinePoints(n.getShapeIndices(n.isLineType),t);return function(r,s){o(this,e);const a=r.id;return n.isGrouped(a)?i(r,s)[0][1]:n.getYScaleById(a,t)(n.getBaseValue(r))}.bind(this)},expandCircles:function(t,e,n){const i=this,r=i.pointExpandedR.bind(i);n&&i.unexpandCircles();const o=i.getShapeByIndex("circle",t,e).classed(Cs.EXPANDED,!0),s=r(o)/i.config.point_r,a=1-s;i.isCirclePoint()?o.attr("r",r):o.each((function(){const t=Rn(this);if("circle"===this.tagName)t.attr("r",r);else{const e=this.getBBox(),n=e.width,i=e.height,r=a*(+t.attr("x")+n/2),o=a*(+t.attr("y")+i/2);t.attr("transform","translate("+r+" "+o+") scale("+s+")")}}))},unexpandCircles:function(t){const e=this,n=e.pointR.bind(e),i=e.getShapeByIndex("circle",t).filter((function(){return Rn(this).classed(Cs.EXPANDED)})).classed(Cs.EXPANDED,!1);if(i.attr("r",n),!e.isCirclePoint()){const t=n(i)/e.config.point_r;i.attr("transform",1!==t?"scale("+t+")":null)}},pointR:function(t){const e=this,n=e.config.point_r;let i=n;return e.isBubbleType(t)?i=e.getBubbleR(t):Xo(n)&&(i=n.bind(e.api)(t)),t.r=i,i},pointExpandedR:function(t){const 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){const e=this.config.point_select_r;return Xo(e)?e(t):e||4*this.pointR(t)},isWithinCircle:function(t,e){const n=as(this.state.event,t),i=Rn(t),r=this.isCirclePoint(t)?"c":"";let o=+i.attr(r+"x"),s=+i.attr(r+"y");if(!o&&!s&&1===t.nodeType){const e=us(t);o=e.x,s=e.y}return Math.sqrt(Math.pow(o-n[0],2)+Math.pow(s-n[1],2))<(e||this.config.point_sensitivity)},getPointSensitivity:function(t){const e=this;let n=e.config.point_sensitivity;return Xo(n)?n=n.call(e.api,t):"radius"===n&&(n=t.r),n},insertPointInfoDefs:function(t,e){var n,i=this;const r=function(t,e){o(this,i);const n=t.attributes;for(let i,r=0;i=n[r];r++)i=i.name,e.setAttribute(i,t.getAttribute(i))}.bind(this),s=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement,a=In.createElementNS(Ce.svg,s.nodeName.toLowerCase());if(a.id=e,a.style.fill="inherit",a.style.stroke="inherit",r(s,a),null!=(n=s.childNodes)&&n.length){const t=Rn(a);"innerHTML"in a?t.html(s.innerHTML):ps(s.childNodes).forEach(function(e){o(this,i),r(e,t.append(e.tagName).node())}.bind(this))}this.$el.defs.node().appendChild(a)},pointFromDefs:function(t){return this.$el.defs.select("#"+t)},updatePointClass:function(t){const e=this,n=e.$el.circle;let i=!1;return(ts(t)||n)&&(i=!0===t?n.each((function(t){let n=e.getClass("circle",!0)(t);this.getAttribute("class").indexOf(Cs.EXPANDED)>-1&&(n+=" "+Cs.EXPANDED),this.setAttribute("class",n)})):e.getClass("circle",!0)(t)),i},generateGetLinePoints:function(t,e){var n=this;const i=this,r=i.config,s=i.getShapeX(0,t,e),a=i.getShapeY(e),c=i.getShapeOffset(i.isLineType,t,e),u=i.getYScaleById.bind(i);return function(t,l){o(this,n);const h=u.call(i,t.id,e)(i.getShapeYMin(t.id)),f=c(t,l)||h,d=s(t);let g=a(t);r.axis_rotated&&(t.value>0&&g<h||t.value<0&&h<g)&&(g=h);const p=[d,g-(h-f)];return[p,p,p,p]}.bind(this)},generatePoint:function(){const t=this,e=t.config,n=t.state.datetimeId,i=[],r=Jo(e.point_pattern)?e.point_pattern:[e.point_type];return function(e,o){for(var s=arguments.length,a=Array(s>2?s-2:0),c=2;c<s;c++)a[c-2]=arguments[c];return function(s){var c;const u=t.getTargetSelectorSuffix(s.id||(null==(c=s.data)?void 0:c.id)||s),l=Rn(this);i.indexOf(u)<0&&i.push(u);let h=r[i.indexOf(u)%r.length];if(t.hasValidPointType(h))h=t[h];else if(!t.hasValidPointDrawMethods(h)){const i=n+"-point"+u;if(t.pointFromDefs(i).size()<1&&t.insertPointInfoDefs(h,i),"create"===e)return t.custom.create.bind(o).apply(void 0,[l,i].concat(a));if("update"===e)return t.custom.update.bind(o).apply(void 0,[l].concat(a))}return h[e].bind(o).apply(void 0,[l].concat(a))}}},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,s,a){var c=this;const u=this,l=t.node().getBBox(),h=l.width,f=l.height,d=function(t){return o(this,c),Bo(t.value)?e(t)-h/2:0}.bind(this),g=function(t){return o(this,c),Bo(t.value)?n(t)-f/2:0}.bind(this);let p=t;return r&&(s&&p.attr("x",d),p=u.$T(p,r,Vd()),a&&u.$T(a,r,Vd())),p.attr("x",d).attr("y",g).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,o,s){const a=this;let c=t;return a.hasType("bubble")&&c.attr("r",a.pointR.bind(a)),r&&(o&&c.attr("cx",e),c.attr("cx")&&(c=a.$T(c,r,Vd())),s&&a.$T(c,r,Vd())),c.attr("cx",e).attr("cy",n).style("fill",i)}},rectangle:{create:function(t,e,n){var i=this;const r=function(t){return o(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,s,a){var c=this;const u=this,l=u.config.point_r,h=function(t){return o(this,c),e(t)-l}.bind(this),f=function(t){return o(this,c),n(t)-l}.bind(this);let d=t;return r&&(s&&d.attr("x",h),d=u.$T(d,r,Vd()),a&&u.$T(a,r,Vd())),d.attr("x",h).attr("y",f).style("fill",i)}}};function Hd(t){const e=t.config.polar_level_max;let n=t.getMinMaxData().max[0].value;return e&&e>n&&(n=e),n}var Wd={initPolar:function(){const 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",Hs),i&&r&&t.generateDataLabelBackgroundColorFilter(r)},getPolarOuterRadius:function(t,e){var n;const i=Hd(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;const e=this,n=e.config,i=e.state,r=e.$el.arcs.levels,s=n.polar_level_depth,a=Hd(e),c=Ts(0,s),u=i.radius,l=c.map(function(e){return o(this,t),u*((e+1)/s)}.bind(this)),h=(n.polar_level_text_format||function(){}).bind(e.api),f=r.selectAll("."+Gs).data(c);f.exit().remove();const d=f.enter().append("g").attr("class",function(e,n){return o(this,t),Gs+" "+Gs+"-"+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 o(this,t),l[e]}.bind(this)),n.polar_level_text_show){const r=n.polar_level_text_backgroundColor,s="#"+i.datetimeId+"-labels-bg"+e.getTargetSelectorSuffix(r);d.append("text").style("text-anchor","middle"),d.merge(f).selectAll("text").attr("dy",function(e){return o(this,t),5-l[e]}.bind(this)).attr("filter",r?"url("+s+")":null).text(function(e){return o(this,t),h(a/c.length*(e+1))}.bind(this))}}};const qd=Sa;var Zd={initRadar:function(){const t=this,e=t.config,n=t.state.current,i=t.$el;t.hasType("radar")&&(i.radar=i.main.select("."+Cs.chart).append("g").attr("class",Ws.chartRadars),i.radar.levels=i.radar.append("g").attr("class",Hs),i.radar.axes=i.radar.append("g").attr("class",Ls.axis),i.radar.shapes=i.radar.append("g").attr("class",Ks.shapes),n.dataMax=e.radar_axis_max||t.getMinMaxData().max[0].value)},getRadarSize:function(){const t=this.config,e=this.state,n=e.arcWidth,i=e.arcHeight,r=t.axis_x_categories.length<4?-20:10,o=(Math.min(n,i)-r)/2;return[o,o]},updateTargetsForRadar:function(t){var e=this;const n=this.config;Ko(n.axis_x_categories)&&(n.axis_x_categories=Ts(0,_s("max",t.map(function(t){return o(this,e),t.values.length}.bind(this))))),this.generateRadarPoints()},getRadarPosition:function(t,e,n,i){var r=this;const s=this.config,a=this.getRadarSize(),c=a[0],u=a[1],l=s.axis_x_categories.length,h=s.radar_direction_clockwise,f=ps(t).map(function(a){return o(this,r),function(t,e,n,i,r,o){const s=t&&i>0?n-i:i,a=2*Math.PI;return r*(1-o*("x"===e?Math.sin:Math.cos)(s*a/n))}(h,a,l,e,Vo(n)?n:"x"===t?c:u,Uo(i)?i:s.radar_size_ratio)}.bind(this));return 1===f.length?f[0]:f},generateRadarPoints:function(){var t=this;const e=this,n=e.data.targets,i=e.getRadarSize(),r=i[0],s=i[1],a=e.cache.get(qd)||{},c=a._size;(!c||c.width!==r&&c.height!==s)&&(n.forEach(function(n){var i=this;o(this,t),a[n.id]=n.values.map(function(t,n){return o(this,i),e.getRadarPosition(["x","y"],n,void 0,e.getRatio("radar",t))}.bind(this))}.bind(this)),a._size={width:r,height:s},e.cache.add(qd,a))},redrawRadar:function(){const t=this,e=t.$el,n=e.radar,i=e.main,r=t.getTranslate("radar");r&&(n.attr("transform",r),i.select("."+Qs.chartTexts).attr("transform",r),t.generateRadarPoints(),t.updateRadarLevel(),t.updateRadarAxes(),t.updateRadarShape())},generateGetRadarPoints:function(){var t=this;const e=this.cache.get(qd);return function(n,i){o(this,t);const r=e[n.id][i];return[r,r,r,r]}.bind(this)},updateRadarLevel:function(){var t=this;const e=this,n=e.config,i=e.state,r=e.$el.radar,s=e.getRadarSize(),a=s[0],c=s[1],u=n.radar_level_depth,l=n.axis_x_categories.length,h=n.radar_level_text_show,f=r.levels,d=Ts(0,u),g=n.radar_size_ratio*Math.min(a,c),p=d.map(function(e){return o(this,t),g*((e+1)/u)}.bind(this)),v=(n.radar_level_text_format||function(){}).bind(e.api),y=d.map(function(n){var i=this;o(this,t);const r=p[n];return Ts(0,l).map(function(t){return o(this,i),e.getRadarPosition(["x","y"],t,r,1).join(",")}.bind(this)).join(" ")}.bind(this)),b=f.selectAll("."+Gs).data(d);b.exit().remove();const x=b.enter().append("g").attr("class",function(e,n){return o(this,t),Gs+" "+Gs+"-"+n}.bind(this));x.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 o(this,t),v(0)}.bind(this)),x.append("text").attr("dx","-.5em").style("text-anchor","end").text(function(e){return o(this,t),v(i.current.dataMax/d.length*(e+1))}.bind(this))),x.merge(b).attr("transform",function(e){return o(this,t),"translate("+(a-p[e])+", "+(c-p[e])+")"}.bind(this)).selectAll("polygon").attr("points",function(e){return o(this,t),y[e]}.bind(this)),h&&f.selectAll("text").attr("x",function(e){return o(this,t),Yo(e)?a:y[e].split(",")[0]}.bind(this)).attr("y",function(e){return o(this,t),Yo(e)?c:0}.bind(this))},updateRadarAxes:function(){var t=this;const e=this,n=e.config,i=e.$el.radar,r=e.getRadarSize(),s=r[0],a=r[1],c=n.axis_x_categories;let u=i.axes.selectAll("g").data(c);u.exit().remove();const l=u.enter().append("g").attr("class",function(e,n){return o(this,t),Ls.axis+"-"+n}.bind(this));if(n.radar_axis_line_show&&l.append("line"),n.radar_axis_text_show&&l.append("text"),u=l.merge(u),n.radar_axis_line_show&&u.select("line").attr("x1",s).attr("y1",a).attr("x2",function(n,i){return o(this,t),e.getRadarPosition("x",i)}.bind(this)).attr("y2",function(n,i){return o(this,t),e.getRadarPosition("y",i)}.bind(this)),n.radar_axis_text_show){const i=n.radar_axis_text_position,r=i.x,c=void 0===r?0:r,l=i.y,h=void 0===l?0:l;u.select("text").style("text-anchor","middle").attr("dy",".5em").call(function(e){o(this,t),e.each((function(t){os(Rn(this),t+"",[-.6,1.2])}))}.bind(this)).datum(function(e,n){return o(this,t),{index:n}}.bind(this)).attr("transform",(function(t){Yo(this.width)&&(this.width=this.getBoundingClientRect().width/2);let n=e.getRadarPosition("x",t.index,void 0,1),i=Math.round(e.getRadarPosition("y",t.index,void 0,1));return n>s?n+=this.width+c:Math.round(n)<s&&(n-=this.width+c),i>a?(i/2===a&&"tspan"===this.firstChild.tagName&&this.firstChild.setAttribute("dy","0em"),i+=h):i<a&&(i-=h),"translate("+n+" "+i+")"}))}e.bindRadarEvent()},bindRadarEvent:function(){var t=this;const e=this,n=e.config,i=e.state,r=e.$el,s=r.radar,a=r.svg,c=n.point_focus_only,u=i,l=u.inputType,h=u.transiting;if(n.interaction_enabled){const n="mouse"===l,r=function(r){o(this,t),i.event=r;const s=e.getDataIndexFromEvent(r),a=Yo(s);(n||a)&&(e.hideTooltip(),c?e.hideCircleFocus():e.unexpandCircles(),n?e.setOverOut(!1,s):a&&e.callOverOutForTouch())}.bind(this);s.axes.selectAll("text").on(n?"mouseover ":"touchstart",function(r){if(o(this,t),h)return;i.event=r;const s=e.getDataIndexFromEvent(r);e.selectRectForSingle(a.node(),s),n?e.setOverOut(!0,s):e.callOverOutForTouch(s)}.bind(this)).on("mouseout",n?r:null),n||a.on("touchstart",r)}},updateRadarShape:function(){var t=this;const e=this,n=e.data.targets.filter(function(n){return o(this,t),e.isRadarType(n)}.bind(this)),i=e.cache.get(qd),r=e.$el.radar.shapes.selectAll("polygon").data(n),s=r.enter().append("g").attr("class",e.getChartClass("Radar"));e.$T(r.exit()).remove(),s.append("polygon").merge(r).style("fill",e.color).style("stroke",e.color).attr("points",function(e){return o(this,t),i[e.id].join(" ")}.bind(this)),e.updateTargetForCircle(n,s)},radarCircleX:function(t){return this.cache.get(qd)[t.id][t.index][0]},radarCircleY:function(t){return this.cache.get(qd)[t.id][t.index][1]}};function Kd(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Jd(t,e,n,i,r){for(var o,s=t.children,a=-1,c=s.length,u=t.value&&(i-e)/t.value;++a<c;)(o=s[a]).y0=n,o.y1=r,o.x0=e,o.x1=e+=o.value*u}function Qd(t,e,n,i,r){for(var o,s=t.children,a=-1,c=s.length,u=t.value&&(r-n)/t.value;++a<c;)(o=s[a]).x0=e,o.x1=i,o.y0=n,o.y1=n+=o.value*u}var tg=(1+Math.sqrt(5))/2;function eg(t,e,n,i,r,o){for(var s,a,c,u,l,h,f,d,g,p,v,y=[],b=e.children,x=0,m=0,_=b.length,T=e.value;x<_;){c=r-n,u=o-i;do{l=b[m++].value}while(!l&&m<_);for(h=f=l,v=l*l*(p=Math.max(u/c,c/u)/(T*t)),g=Math.max(f/v,v/h);m<_;++m){if(l+=a=b[m].value,a<h&&(h=a),a>f&&(f=a),v=l*l*p,(d=Math.max(f/v,v/h))>g){l-=a;break}g=d}y.push(s={value:l,dice:c<u,children:b.slice(x,m)}),s.dice?Jd(s,n,i,r,T?i+=u*l/T:o):Qd(s,n,i,T?n+=c*l/T:r,o),T-=l,x=m}return y}var ng=function t(e){function n(t,n,i,r,o){eg(e,t,n,i,r,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(tg);function ig(t){if("function"!=typeof t)throw new Error;return t}function rg(){return 0}function og(t){return function(){return t}}function sg(t){var e=0,n=t.children,i=n&&n.length;if(i)for(;--i>=0;)e+=n[i].value;else e=1;t.value=e}function ag(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 cg(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 cg(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 cg(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}function ug(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 lg(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 lg(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 lg(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 hg,fg=wn.mark(dg);function dg(){var t,e,n,i,r,o;return wn.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:n=[t=this];case 1:e=n.reverse(),n=[];case 2:if(!(t=e.pop())){s.next=8;break}return s.next=5,t;case 5:if(i=t.children)for(r=0,o=i.length;r<o;++r)n.push(i[r]);s.next=2;break;case 8:if(n.length){s.next=1;break}case 9:case"end":return s.stop()}}),fg,this)}function gg(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=vg)):void 0===e&&(e=pg);for(var n,i,r,o,s,a=new xg(t),c=[a];n=c.pop();)if((r=e(n.data))&&(s=(r=Array.from(r)).length))for(n.children=r,o=s-1;o>=0;--o)c.push(i=r[o]=new xg(r[o])),i.parent=n,i.depth=n.depth+1;return a.eachBefore(bg)}function pg(t){return t.children}function vg(t){return Array.isArray(t)?t[1]:null}function yg(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function bg(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function xg(t){this.data=t,this.depth=this.height=0,this.parent=null}function mg(t,e,n,i,r){var o,s,a=t.children,c=a.length,u=Array(c+1);for(u[0]=s=o=0;o<c;++o)u[o+1]=s+=a[o].value;!function t(e,n,i,r,o,s,c){if(e>=n-1){var l=a[e];return l.x0=r,l.y0=o,l.x1=s,void(l.y1=c)}var h=u[e],f=i/2+h,d=e+1,g=n-1;for(;d<g;){var p=d+g>>>1;u[p]<f?d=p+1:g=p}f-u[d-1]<u[d]-f&&e+1<d&&--d;var v=u[d]-h,y=i-v;if(s-r>c-o){var b=i?(r*y+s*v)/i:s;t(e,d,v,r,o,b,c),t(d,n,y,b,o,s,c)}else{var x=i?(o*y+c*v)/i:c;t(e,d,v,r,o,s,x),t(d,n,y,r,x,s,c)}}(0,c,t.value,e,n,i,r)}function _g(t,e,n,i,r){(1&t.depth?Qd:Jd)(t,e,n,i,r)}xg.prototype=gg.prototype=(hg={constructor:xg,count:function(){return this.eachAfter(sg)},each:function(t,e){let n=-1;for(var i,r=ag(this);!(i=r()).done;){const r=i.value;t.call(e,r,++n,this)}return this},eachAfter:function(t,e){for(var n,i,r,o=this,s=[o],a=[],c=-1;o=s.pop();)if(a.push(o),n=o.children)for(i=0,r=n.length;i<r;++i)s.push(n[i]);for(;o=a.pop();)t.call(e,o,++c,this);return this},eachBefore:function(t,e){for(var n,i,r=this,o=[r],s=-1;r=o.pop();)if(t.call(e,r,++s,this),n=r.children)for(i=n.length-1;i>=0;--i)o.push(n[i]);return this},find:function(t,e){let n=-1;for(var i,r=ug(this);!(i=r()).done;){const r=i.value;if(t.call(e,r,++n,this))return r}},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,i=e.children,r=i&&i.length;--r>=0;)n+=i[r].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),i=e.ancestors(),r=null;t=n.pop(),e=i.pop();for(;t===e;)r=t,t=n.pop(),e=i.pop();return r}(e,t),i=[e];e!==n;)e=e.parent,i.push(e);for(var r=i.length;t!==n;)i.splice(r,0,t),t=t.parent;return i},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return gg(this).eachBefore(yg)}},hg[Symbol.iterator]=dg,hg);var Tg=function t(e){function n(t,n,i,r,o){if((s=t._squarify)&&s.ratio===e)for(var s,a,c,u,l,h=-1,f=s.length,d=t.value;++h<f;){for(c=(a=s[h]).children,u=a.value=0,l=c.length;u<l;++u)a.value+=c[u].value;a.dice?Jd(a,n,i,r,d?i+=(o-i)*a.value/d:o):Qd(a,n,i,d?n+=(r-n)*a.value/d:r,o),d-=a.value}else t._squarify=s=eg(e,t,n,i,r,o),s.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(tg);function wg(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 Ag(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 Ag(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 Ag(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}function Sg(t,e){var n=this;const i=this.scale,r=i.x,s=i.y,a=this.state.width;t.selectAll("g").attr("transform",function(t){return o(this,n),"translate("+(t===e?"0,0":r(t.x0)+","+s(t.y0))+")"}.bind(this)).select("rect").attr("width",function(t){return o(this,n),t===e?a:r(t.x1)-r(t.x0)}.bind(this)).attr("height",function(t){return o(this,n),t===e?0:s(t.y1)-s(t.y0)}.bind(this))}function Eg(t){var e=this;const n=this;return t.map(function(t){o(this,e);const i=t.id,r=t.values;return{name:i,id:i,value:r[0].value,ratio:n.getRatio("treemap",r[0])}}.bind(this))}var kg={initTreemap:function(){var t=this;const e=this,n=e.$el,i=e.state,r=i.current,s=r.width,a=r.height,c=i.clip,u=i.datetimeId;c.id=u+"-clip",e.treemap=function(){var t=ng,e=!1,n=1,i=1,r=[0],o=rg,s=rg,a=rg,c=rg,u=rg;function l(t){return t.x0=t.y0=0,t.x1=n,t.y1=i,t.eachBefore(h),r=[0],e&&t.eachBefore(Kd),t}function h(e){var n=r[e.depth],i=e.x0+n,l=e.y0+n,h=e.x1-n,f=e.y1-n;h<i&&(i=h=(i+h)/2),f<l&&(l=f=(l+f)/2),e.x0=i,e.y0=l,e.x1=h,e.y1=f,e.children&&(n=r[e.depth+1]=o(e)/2,i+=u(e)-n,l+=s(e)-n,(h-=a(e)-n)<i&&(i=h=(i+h)/2),(f-=c(e)-n)<l&&(l=f=(l+f)/2),t(e,i,l,h,f))}return l.round=function(t){return arguments.length?(e=!!t,l):e},l.size=function(t){return arguments.length?(n=+t[0],i=+t[1],l):[n,i]},l.tile=function(e){return arguments.length?(t=ig(e),l):t},l.padding=function(t){return arguments.length?l.paddingInner(t).paddingOuter(t):l.paddingInner()},l.paddingInner=function(t){return arguments.length?(o="function"==typeof t?t:og(+t),l):o},l.paddingOuter=function(t){return arguments.length?l.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):l.paddingTop()},l.paddingTop=function(t){return arguments.length?(s="function"==typeof t?t:og(+t),l):s},l.paddingRight=function(t){return arguments.length?(a="function"==typeof t?t:og(+t),l):a},l.paddingBottom=function(t){return arguments.length?(c="function"==typeof t?t:og(+t),l):c},l.paddingLeft=function(t){return arguments.length?(u="function"==typeof t?t:og(+t),l):u},l}().tile(e.getTreemapTile()),e.treemapFn=function(n){var i=this;o(this,t);const r=gg(n).sum(function(t){return o(this,i),t.value}.bind(this)),s=e.getSortCompareFn(!0);return e.treemap(s?r.sort(s):r)}.bind(this),n.defs.append("clipPath").attr("id",c.id).append("rect").attr("width",s).attr("height",a),n.treemap=n.main.select("."+Cs.chart).attr("clip-path","url(#"+c.id+")").append("g").classed(ea.chartTreemaps,!0),e.bindTreemapEvent()},bindTreemapEvent:function(){var t=this;const e=this,n=e.$el,i=e.config,r=e.state,s=function(e){var n,i;o(this,t);const s=e.isTrusted?e.target:null==(n=r.eventReceiver.rect)?void 0:n.node();let a;return/^rect$/i.test(s.tagName)&&(r.event=e,a=Rn(s).datum()),null==(i=a)?void 0:i.data}.bind(this);if(i.interaction_enabled){const i="touch"===r.inputType;n.treemap.on(i?"touchstart":"mouseover mousemove",function(n){o(this,t);const i=s(n);i&&(e.showTooltip([i],n.currentTarget),/^(touchstart|mouseover)$/.test(n.type)&&e.setOverOut(!0,i))}.bind(this)).on(i?"touchend":"mouseout",function(n){o(this,t);const i=s(n);e.hideTooltip(),e.setOverOut(!1,i)}.bind(this))}},getTreemapTile:function(){var t,e,n=this;const i=this.config,r=this.state.current,s=r.width,a=r.height,c=null!=(t={binary:mg,dice:Jd,slice:Qd,sliceDice:_g,squarify:ng,resquarify:Tg}[null!=(e=i.treemap_tile)?e:"binary"])?t:mg;return function(t,e,i,r,u){o(this,n),c(t,0,0,s,a);for(var l,h=wg(t.children);!(l=h()).done;){const t=l.value;t.x0=e+t.x0/s*(r-e),t.x1=e+t.x1/s*(r-e),t.y0=i+t.y0/a*(u-i),t.y1=i+t.y1/a*(u-i)}}.bind(this)},getTreemapData:function(t){const e=this;return{name:"root",children:Eg.bind(e)(e.filterTargetsToShow(t.filter(e.isTreemapType,e)))}},updateTargetsForTreemap:function(t){const e=this,n=e.$el.treemap,i=e.treemapFn(e.getTreemapData(null!=t?t:e.data.targets));n.data(i)},updateTreemap:function(t){var e=this;const n=this,i=n.$el,r=n.$T,s=i.treemap.datum(),a=n.getChartClass("Treemap"),c=i.treemap.selectAll("g").data(s.children);r(c.exit(),t).style("opacity","0").remove(),c.enter().append("g").append("rect"),i.treemap.selectAll("g").attr("class",a).select("rect").attr("fill",function(t){return o(this,e),n.color(t.data.name)}.bind(this))},generateGetTreemapPoints:function(){var t=this;const e=this.$el,n=this.scale,i=n.x,r=n.y,s={};return e.treemap.selectAll("g").each(function(e){o(this,t),s[e.data.name]=[[i(e.x0),r(e.y0)],[i(e.x1),r(e.y1)]]}.bind(this)),function(e){return o(this,t),s[e.id]}.bind(this)},redrawTreemap:function(t){const e=this,n=e.$el,i=e.state.current,r=i.width,o=i.height;return n.defs.select("rect").attr("width",r).attr("height",o),[e.$T(n.treemap,t,ls()).call(Sg.bind(e),n.treemap.datum())]},treemapDataLabelFormat:function(t){const e=this,n=e.config,i=t.id,r=t.value,o=n.treemap_label_format,s=e.getRatio("treemap",t),a=(100*s).toFixed(2),c=n.treemap_label_show&&e.meetsLabelThreshold(s,"treemap")?null:"0";return function(t){return t.style("opacity",c),Xo(o)?o.bind(e.api)(r,s,i):i+"\n"+a+"%"}}},Og={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"},Mg={area_above:!1,area_below:!1,area_front:!0,area_linearGradient:!1,area_zerobased:!0},Rg={bar_front:!1,bar_indices_removeNull:!1,bar_label_threshold:0,bar_linearGradient:!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},Cg={bubble_maxR:35,bubble_zerobased:!1},Ig={candlestick_width:void 0,candlestick_width_ratio:.6,candlestick_width_max:void 0,candlestick_color_down:"red"},Pg={line_connectNull:!1,line_step_type:"step",line_step_tooltipMatch:!1,line_zerobased:!1,line_classes:void 0,line_point:!0},Lg={scatter_zerobased:!1},Dg={spline_interpolation_type:"cardinal"},Ng={arc_cornerRadius:0,arc_cornerRadius_ratio:0,arc_needle_show:!1,arc_needle_color:void 0,arc_needle_value:void 0,arc_needle_path:void 0,arc_needle_length:100,arc_needle_top_rx:0,arc_needle_top_ry:0,arc_needle_top_width:0,arc_needle_bottom_rx:1,arc_needle_bottom_ry:1,arc_needle_bottom_width:15,arc_needle_bottom_len:0},zg={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},Fg={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},jg={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},Bg={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 o(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},Xg={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 o(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},$g={treemap_tile:"binary",treemap_label_format:void 0,treemap_label_threshold:.05,treemap_label_show:!0},Ug=void 0;function Yg(t,e){ds(Rh.prototype,qf.concat(t)),ds(Gh.prototype,Wf),ba.setOptions(Zf.concat(e||[]))}function Vg(t,e){Yg([Gd,Yd].concat(t||[])),ba.setOptions([Og,Pg].concat(e||[]))}function Gg(t,e){ds(Rh.prototype,[Ld].concat(t||[])),ba.setOptions(e)}let Hg=function(){var t=this;return o(this,Ug),Vg(Fd,[Mg]),(Hg=function(){return o(this,t),zn.AREA}.bind(this))()}.bind(void 0),Wg=function(){var t=this;return o(this,Ug),Vg(Fd,[Mg]),(Wg=function(){return o(this,t),zn.AREA_LINE_RANGE}.bind(this))()}.bind(void 0),qg=function(){var t=this;return o(this,Ug),Vg(Fd,[Mg,Dg]),(qg=function(){return o(this,t),zn.AREA_SPLINE}.bind(this))()}.bind(void 0),Zg=function(){var t=this;return o(this,Ug),Vg(Fd,[Mg,Dg]),(Zg=function(){return o(this,t),zn.AREA_SPLINE_RANGE}.bind(this))()}.bind(void 0),Kg=function(){var t=this;return o(this,Ug),Vg(Fd,[Mg]),(Kg=function(){return o(this,t),zn.AREA_STEP}.bind(this))()}.bind(void 0),Jg=function(){var t=this;return o(this,Ug),Vg(),(Jg=function(){return o(this,t),zn.LINE}.bind(this))()}.bind(void 0),Qg=function(){var t=this;return o(this,Ug),Vg(void 0,[Dg]),(Qg=function(){return o(this,t),zn.SPLINE}.bind(this))()}.bind(void 0),tp=function(){var t=this;return o(this,Ug),Vg(),(tp=function(){return o(this,t),zn.STEP}.bind(this))()}.bind(void 0),ep=function(){var t=this;return o(this,Ug),Gg(void 0,[Ng,zg]),(ep=function(){return o(this,t),zn.DONUT}.bind(this))()}.bind(void 0),np=function(){var t=this;return o(this,Ug),Gg([$d],[Ng,Fg]),(np=function(){return o(this,t),zn.GAUGE}.bind(this))()}.bind(void 0),ip=function(){var t=this;return o(this,Ug),Gg(void 0,[Ng,jg]),(ip=function(){return o(this,t),zn.PIE}.bind(this))()}.bind(void 0),rp=function(){var t=this;return o(this,Ug),Gg([Wd],[Ng,Bg]),(rp=function(){return o(this,t),zn.POLAR}.bind(this))()}.bind(void 0),op=function(){var t=this;return o(this,Ug),Gg([Gd,Zd],[Og,Xg]),(op=function(){return o(this,t),zn.RADAR}.bind(this))()}.bind(void 0),sp=function(){var t=this;return o(this,Ug),Yg([jd],Rg),(sp=function(){return o(this,t),zn.BAR}.bind(this))()}.bind(void 0),ap=function(){var t=this;return o(this,Ug),Yg([Gd,Ud],[Cg,Og]),(ap=function(){return o(this,t),zn.BUBBLE}.bind(this))()}.bind(void 0),cp=function(){var t=this;return o(this,Ug),Yg([Xd],[Ig]),(cp=function(){return o(this,t),zn.CANDLESTICK}.bind(this))()}.bind(void 0),up=function(){var t=this;return o(this,Ug),Yg([Gd],[Og,Lg]),(up=function(){return o(this,t),zn.SCATTER}.bind(this))()}.bind(void 0),lp=function(){var t=this;return o(this,Ug),Yg([kg],[$g]),(lp=function(){return o(this,t),zn.TREEMAP}.bind(this))()}.bind(void 0);function hp(t,e,n,i){void 0===t&&(t=!1);const r=this,o=r.config,s=r.$el.main,a=o.data_selection_grouped,c=o.data_selection_isselectable.bind(r.api);o.data_selection_enabled&&s.selectAll("."+Ks.shapes).selectAll("."+Ks.shape).each((function(o){const s=Rn(this),u=o.data?o.data:o,l=u.id,h=u.index,f=r.getToggle(this,o).bind(r),d=a||!e||e.indexOf(l)>=0,g=!n||n.indexOf(h)>=0,p=s.classed(Zs.SELECTED);s.classed($s.line)||s.classed(Ps.area)||(t?d&&g&&c(o)&&!p?f(!0,s.classed(Zs.SELECTED,!0),o,h):Vo(i)&&i&&p&&f(!1,s.classed(Zs.SELECTED,!1),o,h):d&&g&&c(o)&&p&&f(!1,s.classed(Zs.SELECTED,!1),o,h))}))}var fp={selected:function(t){var e=this;const n=this.internal,i=[];return n.$el.main.selectAll("."+(Ks.shapes+n.getTargetSelectorSuffix(t))).selectAll("."+Ks.shape).filter((function(){return Rn(this).classed(Zs.SELECTED)})).each(function(t){return o(this,e),i.push(t)}.bind(this)),i},select:function(t,e,n){const i=this.internal;hp.bind(i)(!0,t,e,n)},unselect:function(t,e){const n=this.internal;hp.bind(n)(!1,t,e)}};const dp=function(t){var e=this;const n=this.internal,i=n.axis,r=n.brush,s=n.config,a=n.scale,c=a.x,u=a.subX,l=n.state;let h;if(s.subchart_show)if(h=t,Array.isArray(h)){i.isTimeSeries()&&(h=h.map(function(t){return o(this,e),Ss.bind(n)(t)}.bind(this)));n.withinRange(h,n.getZoomDomain("subX",!0),n.getZoomDomain("subX"))&&(l.domain=h,r.move(r.getSelection(),h.map(u)))}else{var f;h=null!=(f=l.domain)?f:c.orgDomain()}return h};ds(dp,{show:function(){const t=this.internal,e=t.$el.subchart,n=t.config,i=n.subchart_show;if(!i){var r,o;t.unbindZoomEvent(),n.subchart_show=!i,e.main||t.initSubchart();let a=e.main.selectAll("."+Cs.target);var s;if(t.data.targets.length!==a.size())t.updateSizes(),t.updateTargetsForSubchart(t.data.targets),a=null==(s=e.main)?void 0:s.selectAll("."+Cs.target);null==(r=a)||r.style("opacity",null),null==(o=e.main)||o.style("display",null),this.resize()}},hide:function(){const 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(){const t=this.internal.config;this.subchart[t.subchart_show?"hide":"show"]()},reset:function(){const t=this.internal.brush;t.clear(t.getSelection())}});var gp={subchart:dp};function pp(t){return((t=Math.exp(t))+1/t)/2}var vp=function t(e,n,i){function r(t,r){var o,s,a=t[0],c=t[1],u=t[2],l=r[0],h=r[1],f=r[2],d=l-a,g=h-c,p=d*d+g*g;if(p<1e-12)s=Math.log(f/u)/e,o=function(t){return[a+t*d,c+t*g,u*Math.exp(e*t*s)]};else{var v=Math.sqrt(p),y=(f*f-u*u+i*p)/(2*u*n*v),b=(f*f-u*u-i*p)/(2*f*n*v),x=Math.log(Math.sqrt(y*y+1)-y),m=Math.log(Math.sqrt(b*b+1)-b);s=(m-x)/e,o=function(t){var i=t*s,r=pp(x),o=u/(n*v)*(r*function(t){return((t=Math.exp(2*t))-1)/(t+1)}(e*i+x)-function(t){return((t=Math.exp(t))-1/t)/2}(x));return[a+o*d,c+o*g,u*r/pp(e*i+x)]}}return o.duration=1e3*s*e/Math.SQRT2,o}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),yp=function(t){var e=this;return o(this,undefined),function(){return o(this,e),t}.bind(this)}.bind(void 0);function bp(t,e){let n=e.sourceEvent,i=e.target,r=e.transform,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},transform:{value:r,enumerable:!0,configurable:!0},_:{value:o}})}function xp(t,e,n){this.k=t,this.x=e,this.y=n}xp.prototype={constructor:xp,scale:function(t){return 1===t?this:new xp(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new xp(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 mp=new xp(1,0,0);function _p(t){for(;!t.__zoom;)if(!(t=t.parentNode))return mp;return t.__zoom}function Tp(t){t.stopImmediatePropagation()}function wp(t){t.preventDefault(),t.stopImmediatePropagation()}function Ap(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function Sp(){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 Ep(){return this.__zoom||mp}function kp(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Op(){return navigator.maxTouchPoints||"ontouchstart"in this}function Mp(t,e,n){var i=t.invertX(e[0][0])-n[0][0],r=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],s=t.invertY(e[1][1])-n[1][1];return t.translate(r>i?(i+r)/2:Math.min(0,i)||Math.max(0,r),s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s))}_p.prototype=xp.prototype;const Rp=function(t){var e,n=this;const i=this.internal,r=i.$el,s=i.axis,a=i.config,c=i.org,u=i.scale,l=i.state,h=a.axis_rotated,f=s.isCategorized();let d;if(a.zoom_enabled)if(d=t,Array.isArray(d)){s.isTimeSeries()&&(d=d.map(function(t){return o(this,n),Ss.bind(i)(t)}.bind(this)));if(i.withinRange(d,i.getZoomDomain("zoom",!0),i.getZoomDomain("zoom"))){if(l.domain=d,f&&(d=d.map(function(t,e){return o(this,n),+t+(0===e?0:1)}.bind(this))),i.api.tooltip.hide(),a.subchart_show){const t=u.zoom||u.x;i.brush.getSelection().call(i.brush.move,d.map(t))}else{var g;const t=f?u.x.orgScale():c.xScale||u.x,e=[-t(d[0]),0],n=(g=mp.scale(t.range()[1]/(t(d[1])-t(d[0])))).translate.apply(g,h?e.reverse():e);r.eventRect.call(i.zoom.transform,n)}i.setZoomResetButton()}}else d=i.zoom.getDomain();return null!=(e=l.domain)?e:d};ds(Rp,{enable:function(t){const 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){const e=this.internal,n=e.config,i=e.org.xDomain;return(0===t||t)&&(n.zoom_x_max=_s("max",[i[1],t])),n.zoom_x_max},min:function(t){const e=this.internal,n=e.config,i=e.org.xDomain;return(0===t||t)&&(n.zoom_x_min=_s("min",[i[0],t])),n.zoom_x_min},range:function(t){const e=this.zoom;if(ts(t)){const n=t.min,i=t.max;Vo(n)&&e.min(n),Vo(i)&&e.max(i)}return{min:e.min(),max:e.max()}}});var Cp={zoom:Rp,unzoom:function(){const t=this.internal,e=t.config,n=t.$el,i=n.eventRect,r=n.zoomResetBtn,o=t.state;t.scale.zoom&&(e.subchart_show?t.brush.getSelection().call(t.brush.move,null):t.zoom.updateTransformScale(mp),t.updateZoom(!0),null==r||r.style("display","none"),_p(i.node())!==mp&&t.zoom.transform(i,mp),o.domain=void 0)}},Ip={drag:function(t){var e=this;const n=this,i=n.config,r=n.state,s=n.$el.main,a=i.data_selection_grouped,c=i.interaction_enabled&&i.data_selection_isselectable;if(n.hasArcType()||!i.data_selection_enabled||i.zoom_enabled&&!n.zoom.altDomain||!i.data_selection_multiple)return;const u=r.dragStart||[0,0],l=u[0],h=u[1],f=t[0],d=t[1],g=Math.min(l,f),p=Math.max(l,f),v=a?r.margin.top:Math.min(h,d),y=a?r.height:Math.max(h,d);s.select("."+js.dragarea).attr("x",g).attr("y",v).attr("width",p-g).attr("height",y-v),s.selectAll("."+Ks.shapes).selectAll("."+Ks.shape).filter(function(t){return o(this,e),null==c?void 0:c.bind(n.api)(t)}.bind(this)).each((function(t,e){const i=Rn(this),r=i.classed(Zs.SELECTED),o=i.classed(js.INCLUDED);let s,a=!1;if(i.classed(zs.circle)){const t=1*+i.attr("cx"),e=1*+i.attr("cy");s=n.togglePoint,a=g<t&&t<p&&v<e&&e<y}else{if(!i.classed(Ds.bar))return;{const t=function(t){const e=t.getBoundingClientRect(),n=e.width,i=e.height,r=ss(t);return{x:r[0].x,y:Math.min(r[0].y,r[1].y),width:n,height:i}}(this),e=t.x,i=t.y,r=t.width,o=t.height;s=n.togglePath,a=!(p<e||e+r<g||y<i||i+o<v)}}a^o&&(i.classed(js.INCLUDED,!o),i.classed(Zs.SELECTED,!r),s.call(n,!r,i,t,e))}))},dragstart:function(t){const e=this,n=e.config,i=e.state,r=e.$el.main;!e.hasArcType()&&n.data_selection_enabled&&(i.dragStart=t,r.select("."+Cs.chart).append("rect").attr("class",js.dragarea).style("opacity","0.1"),e.setDragStatus(!0))},dragend:function(){const t=this,e=t.config,n=t.$el.main,i=t.$T;!t.hasArcType()&&e.data_selection_enabled&&(i(n.select("."+js.dragarea)).style("opacity","0").remove(),n.selectAll("."+Ks.shape).classed(js.INCLUDED,!1),t.setDragStatus(!1))}};function Pp(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 Lp(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?Pp(Object(e),!0).forEach((function(n){$n(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Pp(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var Dp=Lp(Lp({},Ip),{},{selectPoint:function(t,e,n){var i=this;const r=this,s=r.config,a=r.$el.main,c=r.$T,u=s.axis_rotated,l=(u?r.circleY:r.circleX).bind(r),h=(u?r.circleX:r.circleY).bind(r),f=r.pointSelectR.bind(r);ns(s.data_onselected,r.api,e,t.node()),c(a.select("."+Zs.selectedCircles+r.getTargetSelectorSuffix(e.id)).selectAll("."+Zs.selectedCircle+"-"+n).data([e]).enter().append("circle").attr("class",function(){return o(this,i),r.generateClass(Zs.selectedCircle,n)}.bind(this)).attr("cx",l).attr("cy",h).attr("stroke",r.color).attr("r",function(t){return o(this,i),1.4*r.pointSelectR(t)}.bind(this))).attr("r",f)},unselectPoint:function(t,e,n){const i=this,r=i.config,o=i.$el.main,s=i.$T;ns(r.data_onunselected,i.api,e,null==t?void 0:t.node()),s(o.select("."+Zs.selectedCircles+i.getTargetSelectorSuffix(e.id)).selectAll("."+Zs.selectedCircle+"-"+n)).attr("r",0).remove()},togglePoint:function(t,e,n,i){this[(t?"":"un")+"selectPoint"](e,n,i)},selectPath:function(t,e){const n=this.config;ns(n.data_onselected,this.api,e,t.node()),n.interaction_brighten&&t.style("filter","brightness(1.25)")},unselectPath:function(t,e){const n=this.config;ns(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;const i=this;return"path"===t.nodeName?i.togglePath:i.isStepType(e)?function(){o(this,n)}.bind(this):i.togglePoint},toggleShape:function(t,e,n){const i=this,r=i.config,o=i.$el.main;if(r.data_selection_enabled&&r.data_selection_isselectable.bind(i.api)(e)){const s=Rn(t),a=s.classed(Zs.SELECTED),c=i.getToggle(t,e).bind(i);let u;if(!r.data_selection_multiple){const t=r.point_focus_only;let n="."+(t?Zs.selectedCircles:Ks.shapes);r.data_selection_grouped&&(n+=i.getTargetSelectorSuffix(e.id)),o.selectAll(n).selectAll(t?"."+Zs.selectedCircle:"."+Ks.shape+"."+Zs.SELECTED).classed(Zs.SELECTED,!1).each((function(t){const e=Rn(this);u=e,c(!1,e,t,t.index)}))}u&&u.node()===s.node()||(s.classed(Zs.SELECTED,!a),c(!a,s,e,n))}}}),Np={initBrush:function(){var t=this;const e=this,n=e.config,i=e.scale,r=e.$el.subchart,s=e.state,a=n.axis_rotated,c=n.subchart_size_height;let u,l,h;e.brush=No(a?Ao:wo).handleSize(5),e.brush.on("start brush end",function(n){var r=this;o(this,t);const h=n.selection,f=n.sourceEvent,d=n.target,g=n.type;var p;("start"===g&&("touch"===e.state.inputType&&e.hideTooltip(),l=f?h:null),/(start|brush)/.test(g))&&("brush"===g&&f&&s.domain&&(null==(p=l)||p.forEach(function(t,e){o(this,r),t!==h[e]&&(s.domain[e]=i.x.orgDomain()[e])}.bind(this))),e.redrawForBrush("start"!==g));"end"===g&&(u=i.x.orgDomain()),null!=d&&d.handle&&(null===h?e.brush.handle.attr("display","none"):e.brush.handle.attr("display",null).attr("transform",function(t,e){o(this,r);const n=[h[e],c/2];return"translate("+(a?n.reverse():n)+")"}.bind(this)))}.bind(this)),e.brush.updateResize=function(){var t=this;h&&clearTimeout(h),h=setTimeout(function(){o(this,t);const e=this.getSelection();u&&Do(e.node())&&this.move(e,u.map(i.subX.orgScale()))}.bind(this),0)},e.brush.update=function(){var t=this;var e;0===this.extent()()[1].filter(function(e){return o(this,t),isNaN(e)}.bind(this)).length&&(null==(e=r.main)||e.select("."+ia.brush).call(this));return this},e.brush.scale=function(t){var i=this;const r=n.subchart_size_height;let s=e.getExtent();!s&&t.range?s=[[0,0],[t.range()[1],r]]:Qo(s)&&(s=s.map(function(t,e){return o(this,i),[t,e>0?r:e]}.bind(this))),a&&s[1].reverse(),this.extent(s),this.update()},e.brush.getSelection=function(){return o(this,t),r.main?r.main.select("."+ia.brush):Rn([])}.bind(this)},initSubchart:function(){var t=this;const e=this,n=e.config,i=e.state,r=i.clip,s=i.hasAxis,a=e.$el,c=a.defs,u=a.svg,l=a.subchart,h=a.axis;if(!s)return;const f=n.subchart_show?null:"hidden",d=r.id+"-subchart",g=e.getClipPath(d);r.idSubchart=d,e.appendClip(c,d),e.initBrush(),l.main=u.append("g").classed(ia.subchart,!0).attr("transform",e.getTranslate("context"));const p=l.main;p.style("visibility",f),p.append("g").attr("clip-path",g).attr("class",ia.chart),["bar","line","bubble","candlestick","scatter"].forEach(function(n){o(this,t);const i=gs(/^(bubble|scatter)$/.test(n)?"circle":n);if(e.hasType(n)||e.hasTypeOf(i)){const t=p.select("."+ia.chart),e=ia["chart"+i+"s"];t.select("."+e).empty()&&t.append("g").attr("class",e)}}.bind(this));const v=p.append("g").attr("clip-path",g).attr("class",ia.brush).call(e.brush);n.subchart_showHandle&&e.addBrushHandle(v),h.subX=p.append("g").attr("class",ia.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;const n=this.config,i=n.axis_rotated,r=n.subchart_init_range,s=i?["M8.5 0 a6 6 0 0 0 -6 -6.5 H-2.5 a 6 6 0 0 0 -6 6.5 z m-5 -2 H-3.5 m7 -2 H-3.5z","M8.5 0 a6 -6 0 0 1 -6 6.5 H-2.5 a 6 -6 0 0 1 -6 -6.5z m-5 2 H-3.5 m7 2 H-3.5z"]:["M0 -8.5 A6 6 0 0 0 -6.5 -3.5 V2.5 A6 6 0 0 0 0 8.5 Z M-2 -3.5 V3.5 M-4 -3.5 V3.5z","M0 -8.5 A6 6 0 0 1 6.5 -3.5 V2.5 A6 6 0 0 1 0 8.5 Z M2 -3.5 V3.5 M4 -3.5 V3.5z"];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 o(this,e),s[+/[se]/.test(t.type)]}.bind(this)).attr("display",r?null:"none")},updateTargetsForSubchart:function(t){var e=this;const n=this,i=n.config,r=n.state,s=n.$el.subchart.main;i.subchart_show&&(["bar","line","bubble","candlestick","scatter"].filter(function(t){return o(this,e),n.hasType(t)||n.hasTypeOf(gs(t))}.bind(this)).forEach(function(i){o(this,e);const r=/^(bubble|scatter)$/.test(i),a=gs(r?"circle":i),c=n.getChartClass(a,!0),u=n.getClass(r?"circles":i+"s",!0),l=s.select("."+ia["chart"+a+"s"]);if(r){const e=l.selectAll("."+ia.circles).data(t.filter(n["is"+gs(i)+"Type"].bind(n))).attr("class",u);e.exit().remove(),e.enter().append("g").attr("class",u)}else{const e=l.selectAll("."+ia["chart"+a]).attr("class",c).data(t.filter(n["is"+a+"Type"].bind(n))),r=e.enter().append("g").style("opacity","0").attr("class",c).append("g").attr("class",u);e.exit().remove(),"line"===i&&n.hasTypeOf("Area")&&r.append("g").attr("class",n.getClass("areas",!0))}}.bind(this)),s.selectAll("."+ia.brush+" rect").attr(i.axis_rotated?"width":"height",i.axis_rotated?r.width2:r.height2))},redrawSubchart:function(t,e,n){var i=this;const r=this,s=r.config,a=r.$el.subchart.main,c=r.state,u=!!e;var l;if((a.style("visibility",s.subchart_show?null:"hidden"),s.subchart_show)&&("zoom"===(null==(l=c.event)?void 0:l.type)&&r.brush.update(),t)){const t=s.subchart_init_range;if(fs(r)||r.brush.update(),Object.keys(n.type).forEach(function(t){o(this,i);const e=gs(t),s=r["generateDraw"+e](n.indices[t],!0);r["update"+e](u,!0),r["redraw"+e](s,u,!0)}.bind(this)),r.hasType("bubble")||r.hasType("scatter")){const t=n.pos.cx,e=r.updateCircleY(!0);r.updateCircle(!0),r.redrawCircle(t,e,u,void 0,!0)}!c.rendered&&t&&(c.domain=t,r.brush.move(r.brush.getSelection(),t.map(r.scale.x)))}},redrawForBrush:function(t){var e;void 0===t&&(t=!0);const n=this,i=n.config,r=i.subchart_onbrush,o=i.zoom_rescale,s=n.scale,a=n.state;n.redraw({withTransition:!1,withY:o,withSubchart:!1,withUpdateXDomain:!0,withDimension:!1}),t&&a.rendered&&r.bind(n.api)(null!=(e=a.domain)?e:s.x.orgDomain())},transformContext:function(t,e){const n=this,i=n.$el.subchart,r=n.$T,o=null!=e&&e.axisSubX?e.axisSubX:r(i.main.select("."+ia.axisX),t);i.main.attr("transform",n.getTranslate("context")),o.attr("transform",n.getTranslate("subX"))},getExtent:function(){var t=this;const e=this,n=e.config,i=e.scale;let r=n.axis_x_extent;if(r)if(Xo(r))r=r.bind(e.api)(e.getXDomain(e.data.targets),i.subX);else if(e.axis.isTimeSeries()&&r.every(isNaN)){const n=Ss.bind(e);r=r.map(function(e){return o(this,t),i.subX(n(e))}.bind(this))}return r}},zp={initZoom:function(){const t=this;t.scale.zoom=null,t.generateZoom(),t.initZoomBehaviour()},bindZoomEvent:function(t){void 0===t&&(t=!0);const 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;const e=this,n=e.config,i=e.org,r=e.scale,s=function(){var t,e,n,i=Ap,r=Sp,o=Mp,s=kp,a=Op,c=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],l=250,h=vp,f=qn("start","zoom","end"),d=0,g=10;function p(t){t.property("__zoom",Ep).on("wheel.zoom",T,{passive:!1}).on("mousedown.zoom",w).on("dblclick.zoom",A).filter(a).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(c[0],Math.min(c[1],e)))===t.k?t:new xp(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 xp(t.k,i,r)}function b(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function x(t,e,n,i){t.on("start.zoom",(function(){m(this,arguments).event(i).start()})).on("interrupt.zoom end.zoom",(function(){m(this,arguments).event(i).end()})).tween("zoom",(function(){var t=this,o=arguments,s=m(t,o).event(i),a=r.apply(t,o),c=null==n?b(a):"function"==typeof n?n.apply(t,o):n,u=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),l=t.__zoom,f="function"==typeof e?e.apply(t,o):e,d=h(l.invert(c).concat(u/l.k),f.invert(c).concat(u/f.k));return function(t){if(1===t)t=f;else{var e=d(t),n=u/e[2];t=new xp(n,c[0]-e[0]*n,c[1]-e[1]*n)}s.zoom(null,t)}}))}function m(t,e,n){return!n&&t.__zooming||new _(t,e)}function _(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=r.apply(t,e),this.taps=0}function T(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 a=m(this,n).event(t),l=this.__zoom,h=Math.max(c[0],Math.min(c[1],l.k*Math.pow(2,s.apply(this,arguments)))),f=Un(t);if(a.wheel)a.mouse[0][0]===f[0]&&a.mouse[0][1]===f[1]||(a.mouse[1]=l.invert(a.mouse[0]=f)),clearTimeout(a.wheel);else{if(l.k===h)return;a.mouse=[f,l.invert(f)],Or(this),a.start()}wp(t),a.wheel=setTimeout((function(){a.wheel=null,a.end()}),150),a.zoom("mouse",o(y(v(l,h),a.mouse[0],a.mouse[1]),a.extent,u))}}function w(t){for(var e=arguments.length,r=Array(e>1?e-1:0),s=1;s<e;s++)r[s-1]=arguments[s];if(!n&&i.apply(this,arguments)){var a=t.currentTarget,c=m(this,r,!0).event(t),l=Rn(t.view).on("mousemove.zoom",(function(t){if(wp(t),!c.moved){var e=t.clientX-f,n=t.clientY-g;c.moved=e*e+n*n>d}c.event(t).zoom("mouse",o(y(c.that.__zoom,c.mouse[0]=Un(t,a),c.mouse[1]),c.extent,u))}),!0).on("mouseup.zoom",(function(t){l.on("mousemove.zoom mouseup.zoom",null),ei(t.view,c.moved),wp(t),c.event(t).end()}),!0),h=Un(t,a),f=t.clientX,g=t.clientY;ti(t.view),Tp(t),c.mouse=[h,this.__zoom.invert(h)],Or(this),c.start()}}function A(t){for(var e=arguments.length,n=Array(e>1?e-1:0),s=1;s<e;s++)n[s-1]=arguments[s];if(i.apply(this,arguments)){var a=this.__zoom,c=Un(t.changedTouches?t.changedTouches[0]:t,this),h=a.invert(c),f=a.k*(t.shiftKey?.5:2),d=o(y(v(a,f),c,h),r.apply(this,n),u);wp(t),l>0?Rn(this).transition().duration(l).call(x,d,c,t):Rn(this).call(p.transform,d,c,t)}}function S(n){for(var r=arguments.length,o=Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];if(i.apply(this,arguments)){var a,c,u,l,h=n.touches,f=h.length,d=m(this,o,n.changedTouches.length===f).event(n);for(Tp(n),c=0;c<f;++c)l=[l=Un(u=h[c],this),this.__zoom.invert(l),u.identifier],d.touch0?d.touch1||d.touch0[2]===l[2]||(d.touch1=l,d.taps=0):(d.touch0=l,a=!0,d.taps=1+!!t);t&&(t=clearTimeout(t)),a&&(d.taps<2&&(e=l[0],t=setTimeout((function(){t=null}),500)),Or(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,s,a,c,l=m(this,n).event(t),h=t.changedTouches,f=h.length;for(wp(t),r=0;r<f;++r)a=Un(s=h[r],this),l.touch0&&l.touch0[2]===s.identifier?l.touch0[0]=a:l.touch1&&l.touch1[2]===s.identifier&&(l.touch1[0]=a);if(s=l.that.__zoom,l.touch1){var d=l.touch0[0],g=l.touch0[1],p=l.touch1[0],b=l.touch1[1],x=(x=p[0]-d[0])*x+(x=p[1]-d[1])*x,_=(_=b[0]-g[0])*_+(_=b[1]-g[1])*_;s=v(s,Math.sqrt(x/_)),a=[(d[0]+p[0])/2,(d[1]+p[1])/2],c=[(g[0]+b[0])/2,(g[1]+b[1])/2]}else{if(!l.touch0)return;a=l.touch0[0],c=l.touch0[1]}l.zoom("touch",o(y(s,a,c),l.extent,u))}}function k(t){for(var i=arguments.length,r=Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];if(this.__zooming){var s,a,c=m(this,r).event(t),u=t.changedTouches,l=u.length;for(Tp(t),n&&clearTimeout(n),n=setTimeout((function(){n=null}),500),s=0;s<l;++s)a=u[s],c.touch0&&c.touch0[2]===a.identifier?delete c.touch0:c.touch1&&c.touch1[2]===a.identifier&&delete c.touch1;if(c.touch1&&!c.touch0&&(c.touch0=c.touch1,delete c.touch1),c.touch0)c.touch0[1]=this.__zoom.invert(c.touch0[0]);else if(c.end(),2===c.taps&&(a=Un(a,this),Math.hypot(e[0]-a[0],e[1]-a[1])<g)){var h=Rn(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",Ep),t!==r?x(t,e,n,i):r.interrupt().each((function(){m(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,s=null==n?b(t):"function"==typeof n?n.apply(this,arguments):n,a=i.invert(s),c="function"==typeof e?e.apply(this,arguments):e;return o(y(v(i,c),s,a),t,u)}),n,i)},p.translateBy=function(t,e,n,i){p.transform(t,(function(){return o(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),r.apply(this,arguments),u)}),null,i)},p.translateTo=function(t,e,n,i,s){p.transform(t,(function(){var t=r.apply(this,arguments),s=this.__zoom,a=null==i?b(t):"function"==typeof i?i.apply(this,arguments):i;return o(mp.translate(a[0],a[1]).scale(s.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,u)}),i,s)},_.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=Rn(this.that).datum();f.call(t,this.that,new bp(t,{sourceEvent:this.sourceEvent,target:p,type:t,transform:this.that.__zoom,dispatch:f}),e)}},p.wheelDelta=function(t){return arguments.length?(s="function"==typeof t?t:yp(+t),p):s},p.filter=function(t){return arguments.length?(i="function"==typeof t?t:yp(!!t),p):i},p.touchable=function(t){return arguments.length?(a="function"==typeof t?t:yp(!!t),p):a},p.extent=function(t){return arguments.length?(r="function"==typeof t?t:yp([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),p):r},p.scaleExtent=function(t){return arguments.length?(c[0]=+t[0],c[1]=+t[1],p):[c[0],c[1]]},p.translateExtent=function(t){return arguments.length?(u[0][0]=+t[0][0],u[1][0]=+t[1][0],u[0][1]=+t[0][1],u[1][1]=+t[1][1],p):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},p.constrain=function(t){return arguments.length?(o=t,p):o},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));s.orgScaleExtent=function(){o(this,t);const i=n.zoom_extent||[1,10];return[i[0],Math.max(e.getMaxDataCount()/i[1],i[1])]}.bind(this),s.updateScaleExtent=function(){const t=qo(e.scale.x.orgDomain())/qo(e.getZoomDomain()),n=this.orgScaleExtent();return this.scaleExtent([n[0]*t,n[1]*t]),this},s.updateTransformScale=function(s,a){var c;o(this,t);const u=n.axis_rotated;null==(c=i.xScale)||c.range(r.x.range());const l=s[u?"rescaleY":"rescaleX"](i.xScale||r.x),h=e.trimXDomain(l.domain()),f=n.zoom_rescale;if(l.domain(h,i.xDomain),a){const t=l(r.x.domain()[0]),n=u?s.x:t,i=u?t:s.y;e.$el.eventRect.property("__zoom",mp.translate(n,i).scale(s.k))}e.state.xTickOffset||(e.state.xTickOffset=e.axis.x.tickOffset()),r.zoom=e.getCustomizedXScale(l),e.axis.x.scale(r.zoom),f&&(i.xScale||(i.xScale=r.x.copy()),r.x.domain(h))}.bind(this),s.getDomain=function(){o(this,t);const n=r[r.zoom?"zoom":"subX"].domain();return e.axis.isCategorized()&&(n[1]-=2),n}.bind(this),e.zoom=s},onZoomStart:function(t){const e=this,n=t.sourceEvent;n&&(e.zoom.startEvent=n,e.state.zooming=!0,ns(e.config.zoom_onzoomstart,e.api,t))},onZoom:function(t){var e,n=this;const i=this,r=i.config,s=i.scale,a=i.state,c=i.org,u=t.sourceEvent,l=(null==t?void 0:t.transform)===mp;if(!r.zoom_enabled||0===i.filterTargetsToShow(i.data.targets).length||!s.zoom&&(null==u?void 0:u.type.indexOf("touch"))>-1&&1===(null==u?void 0:u.touches.length))return;t.sourceEvent&&(a.zooming=!0,a.domain=void 0);const h="mousemove"===(null==u?void 0:u.type),f=(null==u?void 0:u.wheelDelta)<0,d=t.transform;!h&&f&&s.x.domain().every(function(t,e){return o(this,n),t!==c.xDomain[e]}.bind(this))&&s.x.domain(c.xDomain),i.zoom.updateTransformScale(d,"wheel"===r.zoom_type&&u);const g=r.transition_duration>0&&!r.subchart_show&&(a.dragging||l||!t.sourceEvent);i.redraw({withTransition:g,withY:r.zoom_rescale,withSubchart:!1,withEventRect:!1,withDimension:!1}),i.state.cancelClick=h,l||ns(r.zoom_onzoom,i.api,null!=(e=i.state.domain)?e:i.zoom.getDomain())},onZoomEnd:function(t){var e,n;const i=this,r=i.config,o=i.state;let s=i.zoom.startEvent,a=null==t?void 0:t.sourceEvent;const c=(null==t?void 0:t.transform)===mp;var u;(null==(e=s)?void 0:e.type.indexOf("touch"))>-1&&(s=s.changedTouches[0],a=null==(u=a)||null==(u=u.changedTouches)?void 0:u[0]);"drag"===r.zoom_type&&a&&s.clientX===a.clientX&&s.clientY===a.clientY||(i.redrawEventRect(),i.updateZoom(),o.zooming=!1,!c&&(a||o.dragging)&&ns(r.zoom_onzoomend,i.api,null!=(n=i.state.domain)?n:i.zoom.getDomain()))},updateZoom:function(t){const e=this,n=e.scale,i=n.subX,r=n.x,o=n.zoom;if(o){const n=o.domain(),s=i.domain(),a=.015,c=e.config.axis_x_inverted?(n[0]>=s[0]||n[0]+a>=s[0])&&(s[1]>=n[1]||s[1]>=n[1]+a):(n[0]<=s[0]||n[0]-a<=s[0])&&(s[1]<=n[1]||s[1]<=n[1]-a);(t||c)&&(e.axis.x.scale(i),r.domain(i.orgDomain()),e.scale.zoom=null)}},bindZoomOnEventRect:function(){var t=this;const e=this,n=e.config,i=e.$el.eventRect,r="drag"===n.zoom_type?e.zoomBehaviour:e.zoom;e.$el.svg.on("wheel",function(){o(this,t)}.bind(this)),i.call(r).on("dblclick.zoom",null)},initZoomBehaviour:function(){var t=this;const e=this,n=e.config,i=e.state,r=n.axis_rotated;let s,a=0,c=0;const u={axis:r?"y":"x",attr:r?"height":"width",index:r?1:0};e.zoomBehaviour=hc().clickDistance(4).on("start",(function(t){i.event=t,e.setDragStatus(!0),e.unselectRect(),s||(s=e.$el.main.append("rect").attr("clip-path",i.clip.path).attr("class",na.zoomBrush).attr("width",r?i.width:0).attr("height",r?0:i.height)),a=as(t,this)[u.index],c=a,s.attr(u.axis,a).attr(u.attr,0),e.onZoomStart(t)})).on("drag",(function(t){c=as(t,this)[u.index],s.attr(u.axis,Math.min(a,c)).attr(u.attr,Math.abs(c-a))})).on("end",function(n){var r=this;o(this,t);const l=e.scale.zoom||e.scale.x;if(i.event=n,s.attr(u.axis,0).attr(u.attr,0),a>c){var h=[c,a];a=h[0],c=h[1]}a<0&&(c+=Math.abs(a),a=0),a!==c&&e.api.zoom([a,c].map(function(t){return o(this,r),l.invert(t)}.bind(this))),e.setDragStatus(!1)}.bind(this))},setZoomResetButton:function(){const 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(Cs.button,!0).append("span").on("click",(function(){Xo(i.onclick)&&i.onclick.bind(t.api)(this),t.api.unzoom()})).classed(na.buttonZoomReset,!0).text(i.text||"Reset Zoom"))}},Fp=void 0,jp={data_selection_enabled:!1,data_selection_grouped:!1,data_selection_isselectable:function(){return o(this,Fp),!0}.bind(void 0),data_selection_multiple:!0,data_selection_draggable:!1,data_onselected:function(){o(this,Fp)}.bind(void 0),data_onunselected:function(){o(this,Fp)}.bind(void 0)},Bp={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(){o(this,undefined)}.bind(void 0)},Xp={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},$p=void 0;let Up=function(){var t=this;return o(this,$p),ds(Rh.prototype,Dp),ds(Gh.prototype,fp),ba.setOptions([jp]),(Up=function(){return o(this,t),!0}.bind(this))()}.bind(void 0),Yp=function(){var t=this;return o(this,$p),ds(Rh.prototype,Np),ds(Gh.prototype,gp),ba.setOptions([Bp]),(Yp=function(){return o(this,t),!0}.bind(this))()}.bind(void 0),Vp=function(){var t=this;return o(this,$p),ds(Rh.prototype,zp),ds(Gh.prototype,Cp),ba.setOptions([Xp]),(Vp=function(){return o(this,t),!0}.bind(this))()}.bind(void 0),Gp={};const Hp={version:"3.10.0-next.1",generate:function(t){const e=xs({},Gp,t),n=new Gh(e);return n.internal.charts=this.instance,this.instance.push(n),n},defaults:function(t){return ts(t)&&(Gp=t),Gp},instance:[],plugin:{}};var Wp=void 0;Object.keys(i).forEach(function(t){return o(this,Wp),i[t]()}.bind(void 0)),Object.keys(r).forEach(function(t){return o(this,Wp),r[t]()}.bind(void 0))},function(t,e,n){var i=n(528)();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(529).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 n},t.exports.__esModule=!0,t.exports.default=t.exports;var e,n={},o=Object.prototype,s=o.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",h=c.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(e){f=function(t,e,n){return t[e]=n}}function d(t,e,n,i){var r=e&&e.prototype instanceof m?e:m,o=Object.create(r.prototype),s=new P(i||[]);return a(o,"_invoke",{value:M(t,n,s)}),o}function g(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=d;var p="suspendedStart",v="suspendedYield",y="executing",b="completed",x={};function m(){}function _(){}function T(){}var w={};f(w,u,(function(){return this}));var A=Object.getPrototypeOf,S=A&&A(A(L([])));S&&S!==o&&s.call(S,u)&&(w=S);var E=T.prototype=m.prototype=Object.create(w);function k(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function n(r,o,a,c){var u=g(t[r],t,o);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"==i(h)&&s.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}var r;a(this,"_invoke",{value:function(t,i){function o(){return new e((function(e,r){n(t,i,e,r)}))}return r=r?r.then(o,o):o()}})}function M(t,n,i){var r=p;return function(o,s){if(r===y)throw new Error("Generator is already running");if(r===b){if("throw"===o)throw s;return{value:e,done:!0}}for(i.method=o,i.arg=s;;){var a=i.delegate;if(a){var c=R(a,i);if(c){if(c===x)continue;return c}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===p)throw r=b,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=y;var u=g(t,n,i);if("normal"===u.type){if(r=i.done?b:v,u.arg===x)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(r=b,i.method="throw",i.arg=u.arg)}}}function R(t,n){var i=n.method,r=t.iterator[i];if(r===e)return n.delegate=null,"throw"===i&&t.iterator.return&&(n.method="return",n.arg=e,R(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),x;var o=g(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,x;var s=o.arg;return s?s.done?(n[t.resultName]=s.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,x):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,x)}function C(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 I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function L(t){if(t||""===t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){for(;++r<t.length;)if(s.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(i(t)+" is not iterable")}return _.prototype=T,a(E,"constructor",{value:T,configurable:!0}),a(T,"constructor",{value:_,configurable:!0}),_.displayName=f(T,h,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,T):(t.__proto__=T,f(t,h,"GeneratorFunction")),t.prototype=Object.create(E),t},n.awrap=function(t){return{__await:t}},k(O.prototype),f(O.prototype,l,(function(){return this})),n.AsyncIterator=O,n.async=function(t,e,i,r,o){void 0===o&&(o=Promise);var s=new O(d(t,e,i,r),o);return n.isGeneratorFunction(e)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},k(E),f(E,h,"Generator"),f(E,u,(function(){return this})),f(E,"toString",(function(){return"[object Generator]"})),n.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}},n.values=L,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&s.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},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 n=this;function i(i,r){return a.type="throw",a.arg=t,n.next=i,r&&(n.method="next",n.arg=e),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=s.call(o,"catchLoc"),u=s.call(o,"finallyLoc");if(c&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.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&&s.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,x):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),x},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),I(n),x}},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;I(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:L(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),x}},n}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 o=e[i]={exports:{}};return t[i].call(o.exports,o,o.exports,n),o.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(526)}()}));
|