billboard.js 3.11.3 → 3.12.0-next.2
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 +1 -5
- package/dist/billboard.css +13 -1
- package/dist/billboard.js +19672 -24210
- package/dist/billboard.min.css +2 -2
- package/dist/billboard.min.js +26 -3
- package/dist/billboard.pkgd.js +24515 -30430
- package/dist/billboard.pkgd.min.js +33 -3
- package/dist/plugin/billboardjs-plugin-bubblecompare.js +77 -175
- package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -3
- package/dist/plugin/billboardjs-plugin-sparkline.js +429 -1134
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +4 -3
- package/dist/plugin/billboardjs-plugin-stanford.js +666 -1524
- package/dist/plugin/billboardjs-plugin-stanford.min.js +15 -3
- package/dist/plugin/billboardjs-plugin-tableview.js +503 -1175
- package/dist/plugin/billboardjs-plugin-tableview.min.js +30 -3
- package/dist/plugin/billboardjs-plugin-textoverlap.js +351 -1055
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +4 -3
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.js +1387 -1854
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +5 -3
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +2760 -3959
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +7 -3
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +3504 -5057
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +18 -3
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +2906 -4072
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +33 -3
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +3076 -4506
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +7 -3
- package/dist/theme/dark.css +12 -1
- package/dist/theme/dark.min.css +2 -2
- package/dist/theme/datalab.css +12 -1
- package/dist/theme/datalab.min.css +2 -2
- package/dist/theme/graph.css +12 -1
- package/dist/theme/graph.min.css +2 -2
- package/dist/theme/insight.css +12 -1
- package/dist/theme/insight.min.css +2 -2
- package/dist/theme/modern.css +12 -1
- package/dist/theme/modern.min.css +3 -4
- package/dist-esm/billboard.js +9297 -8527
- package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +20 -27
- package/dist-esm/plugin/billboardjs-plugin-sparkline.js +155 -149
- package/dist-esm/plugin/billboardjs-plugin-stanford.js +302 -289
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +236 -236
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +41 -43
- package/package.json +29 -49
- package/src/Chart/api/axis.ts +6 -13
- package/src/Chart/api/chart.ts +12 -11
- package/src/Chart/api/data.ts +8 -7
- package/src/Chart/api/export.ts +28 -21
- package/src/Chart/api/flow.ts +4 -2
- package/src/Chart/api/grid.ts +1 -5
- package/src/Chart/api/load.ts +2 -2
- package/src/Chart/api/regions.ts +29 -5
- package/src/Chart/api/selection.ts +2 -2
- package/src/Chart/api/show.ts +2 -3
- package/src/Chart/api/subchart.ts +2 -2
- package/src/Chart/api/tooltip.ts +8 -9
- package/src/Chart/api/x.ts +2 -2
- package/src/Chart/api/zoom.ts +2 -2
- package/src/ChartInternal/Axis/Axis.ts +119 -44
- package/src/ChartInternal/Axis/AxisRenderer.ts +53 -38
- package/src/ChartInternal/Axis/AxisRendererHelper.ts +2 -2
- package/src/ChartInternal/ChartInternal.ts +87 -55
- package/src/ChartInternal/data/IData.ts +31 -31
- package/src/ChartInternal/data/convert.helper.ts +66 -68
- package/src/ChartInternal/data/convert.ts +11 -11
- package/src/ChartInternal/data/data.ts +51 -27
- package/src/ChartInternal/data/load.ts +7 -6
- package/src/ChartInternal/interactions/drag.ts +2 -1
- package/src/ChartInternal/interactions/eventrect.ts +84 -32
- package/src/ChartInternal/interactions/flow.ts +14 -4
- package/src/ChartInternal/interactions/interaction.ts +51 -22
- package/src/ChartInternal/interactions/subchart.ts +27 -25
- package/src/ChartInternal/interactions/zoom.ts +29 -18
- package/src/ChartInternal/internals/category.ts +1 -1
- package/src/ChartInternal/internals/class.ts +6 -6
- package/src/ChartInternal/internals/clip.ts +8 -4
- package/src/ChartInternal/internals/color.ts +70 -42
- package/src/ChartInternal/internals/domain.ts +59 -28
- package/src/ChartInternal/internals/format.ts +5 -5
- package/src/ChartInternal/internals/grid.ts +131 -47
- package/src/ChartInternal/internals/legend.ts +93 -61
- package/src/ChartInternal/internals/redraw.ts +6 -2
- package/src/ChartInternal/internals/region.ts +5 -3
- package/src/ChartInternal/internals/scale.ts +28 -15
- package/src/ChartInternal/internals/selection.ts +14 -13
- package/src/ChartInternal/internals/size.axis.ts +18 -10
- package/src/ChartInternal/internals/size.ts +98 -67
- package/src/ChartInternal/internals/style.ts +21 -19
- package/src/ChartInternal/internals/text.ts +79 -43
- package/src/ChartInternal/internals/title.ts +2 -2
- package/src/ChartInternal/internals/tooltip.ts +78 -32
- package/src/ChartInternal/internals/transform.ts +4 -4
- package/src/ChartInternal/internals/type.ts +17 -12
- package/src/ChartInternal/shape/arc.ts +78 -44
- package/src/ChartInternal/shape/area.ts +19 -22
- package/src/ChartInternal/shape/bar.ts +41 -31
- package/src/ChartInternal/shape/bubble.ts +5 -5
- package/src/ChartInternal/shape/candlestick.ts +15 -13
- package/src/ChartInternal/shape/funnel.ts +317 -0
- package/src/ChartInternal/shape/gauge.ts +16 -9
- package/src/ChartInternal/shape/line.ts +62 -46
- package/src/ChartInternal/shape/point.common.ts +1 -4
- package/src/ChartInternal/shape/point.ts +54 -34
- package/src/ChartInternal/shape/polar.ts +4 -2
- package/src/ChartInternal/shape/radar.ts +40 -22
- package/src/ChartInternal/shape/shape.ts +84 -58
- package/src/ChartInternal/shape/treemap.ts +31 -20
- package/src/Plugin/bubblecompare/index.ts +1 -3
- package/src/Plugin/sparkline/index.ts +3 -4
- package/src/Plugin/stanford/ColorScale.ts +3 -2
- package/src/Plugin/stanford/Elements.ts +15 -6
- package/src/Plugin/stanford/Options.ts +5 -5
- package/src/Plugin/stanford/index.ts +13 -9
- package/src/Plugin/tableview/Options.ts +1 -1
- package/src/Plugin/tableview/const.ts +1 -4
- package/src/Plugin/tableview/index.ts +11 -9
- package/src/Plugin/textoverlap/index.ts +4 -6
- package/src/config/Options/Options.ts +3 -3
- package/src/config/Options/axis/axis.ts +36 -0
- package/src/config/Options/axis/x.ts +34 -14
- package/src/config/Options/axis/y.ts +13 -13
- package/src/config/Options/axis/y2.ts +23 -10
- package/src/config/Options/common/color.ts +4 -4
- package/src/config/Options/common/grid.ts +4 -4
- package/src/config/Options/common/legend.ts +12 -13
- package/src/config/Options/common/main.ts +23 -23
- package/src/config/Options/common/point.ts +17 -18
- package/src/config/Options/common/title.ts +2 -2
- package/src/config/Options/common/tooltip.ts +13 -11
- package/src/config/Options/data/axis.ts +2 -2
- package/src/config/Options/data/data.ts +48 -45
- package/src/config/Options/interaction/interaction.ts +1 -1
- package/src/config/Options/interaction/subchart.ts +2 -2
- package/src/config/Options/interaction/zoom.ts +9 -9
- package/src/config/Options/shape/arc.ts +10 -13
- package/src/config/Options/shape/area.ts +5 -7
- package/src/config/Options/shape/bar.ts +8 -10
- package/src/config/Options/shape/bubble.ts +1 -1
- package/src/config/Options/shape/candlestick.ts +2 -2
- package/src/config/Options/shape/donut.ts +4 -4
- package/src/config/Options/shape/funnel.ts +38 -0
- package/src/config/Options/shape/gauge.ts +6 -6
- package/src/config/Options/shape/line.ts +3 -3
- package/src/config/Options/shape/pie.ts +5 -5
- package/src/config/Options/shape/polar.ts +3 -3
- package/src/config/Options/shape/radar.ts +2 -2
- package/src/config/Options/shape/scatter.ts +1 -1
- package/src/config/Options/shape/treemap.ts +1 -1
- package/src/config/Store/Element.ts +8 -5
- package/src/config/Store/State.ts +20 -13
- package/src/config/classes.ts +14 -4
- package/src/config/config.ts +1 -1
- package/src/config/const.ts +2 -0
- package/src/config/resolver/axis.ts +4 -4
- package/src/config/resolver/interaction.ts +3 -7
- package/src/config/resolver/shape.ts +17 -12
- package/src/core.ts +2 -3
- package/src/index.esm.ts +3 -6
- package/src/index.ts +2 -2
- package/src/module/Cache.ts +2 -3
- package/src/module/browser.ts +15 -10
- package/src/module/error.ts +9 -8
- package/src/module/generator.ts +3 -5
- package/src/module/util.ts +62 -39
- package/src/module/worker.ts +14 -11
- package/src/scss/billboard.scss +18 -0
- package/src/scss/theme/dark.scss +17 -0
- package/src/scss/theme/datalab.scss +17 -0
- package/src/scss/theme/graph.scss +17 -0
- package/src/scss/theme/insight.scss +17 -0
- package/src/scss/theme/modern.scss +17 -0
- package/types/axis.d.ts +17 -0
- package/types/bb.d.ts +1 -0
- package/types/index.d.ts +1 -0
- package/types/options.d.ts +9 -0
- package/types/options.shape.d.ts +26 -1
- package/types/types.d.ts +1 -0
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.
|
|
8
|
+
* @version 3.12.0-next.2
|
|
9
9
|
*
|
|
10
10
|
* All-in-one packaged file for ease use of 'billboard.js' with dependant d3.js modules & polyfills.
|
|
11
11
|
* - @types/d3-selection ^3.0.0
|
|
@@ -23,5 +23,35 @@
|
|
|
23
23
|
* - d3-time-format ^4.1.0
|
|
24
24
|
* - d3-transition ^3.0.1
|
|
25
25
|
* - d3-zoom ^3.0.0
|
|
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(97),n(98),n(99),n(100),n(101),n(102),n(103),n(104),n(105),n(106),n(107),n(108),n(109),n(110),n(111),n(124),n(126),n(136),n(137),n(139),n(143),n(146),n(148),n(150),n(151),n(152),n(153),n(155),n(156),n(158),n(159),n(161),n(165),n(166),n(167),n(168),n(173),n(174),n(176),n(177),n(178),n(180),n(183),n(184),n(185),n(186),n(187),n(192),n(194),n(195),n(197),n(200),n(201),n(202),n(203),n(204),n(206),n(216),n(218),n(221),n(223),n(226),n(233),n(234),n(235),n(236),n(237),n(238),n(242),n(243),n(245),n(246),n(247),n(249),n(250),n(251),n(93),n(252),n(253),n(261),n(263),n(265),n(266),n(267),n(268),n(269),n(271),n(272),n(273),n(274),n(275),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(288),n(289),n(291),n(293),n(294),n(295),n(296),n(297),n(299),n(301),n(302),n(303),n(304),n(306),n(307),n(309),n(310),n(311),n(312),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(321),n(322),n(324),n(325),n(326),n(327),n(328),n(329),n(330),n(331),n(332),n(333),n(334),n(336),n(337),n(338),n(339),n(361),n(362),n(363),n(364),n(365),n(366),n(367),n(368),n(369),n(371),n(372),n(373),n(374),n(375),n(376),n(377),n(378),n(379),n(380),n(387),n(388),n(390),n(391),n(392),n(393),n(394),n(396),n(397),n(399),n(402),n(403),n(404),n(405),n(406),n(410),n(411),n(413),n(414),n(415),n(416),n(418),n(419),n(420),n(421),n(422),n(423),n(424),n(426),n(429),n(432),n(435),n(436),n(437),n(438),n(439),n(440),n(441),n(442),n(443),n(444),n(445),n(446),n(447),n(456),n(457),n(458),n(459),n(460),n(461),n(462),n(463),n(464),n(465),n(466),n(467),n(468),n(471),n(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(485),n(486),n(487),n(488),n(489),n(490),n(491),n(492),n(493),n(494),n(495),n(496),n(497),n(498),n(501),n(503),n(505),n(506),n(509),n(510),n(512),n(513),n(514),n(519),n(520),n(521),n(525),n(528),n(533),n(534),n(535),n(536),n(537),n(538),n(80)},function(t,e,n){"use strict";n(2),n(90),n(92),n(93),n(96)},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(26),l=n(7),h=n(38),f=n(24),d=n(46),g=n(12),p=n(18),v=n(68),y=n(11),x=n(71),b=n(73),m=n(57),_=n(75),w=n(66),T=n(5),A=n(44),S=n(72),E=n(10),k=n(47),O=n(77),M=n(34),R=n(53),C=n(54),I=n(40),P=n(33),L=n(78),D=n(79),z=n(81),N=n(82),F=n(51),j=n(83).forEach,B=R("hidden"),$="Symbol",X="prototype",U=F.set,Y=F.getterFor($),V=Object[X],G=r.Symbol,H=G&&G[X],W=r.RangeError,q=r.TypeError,Z=r.QObject,K=T.f,J=A.f,Q=_.f,tt=E.f,et=s([].push),nt=M("symbols"),it=M("op-symbols"),rt=M("wks"),ot=!Z||!Z[X]||!Z[X].findChild,st=function(t,e,n){var i=K(V,e);i&&delete V[e],J(t,e,n),i&&t!==V&&J(V,e,i)},at=c&&l((function(){return 7!==x(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a}))?st:J,ct=function(t,e){var n=nt[t]=x(H);return U(n,{type:$,tag:t,description:e}),c||(n.description=e),n},ut=function(t,e,n){t===V&&ut(it,e,n),d(t);var i=p(e);return d(n),h(nt,i)?(n.enumerable?(h(t,B)&&t[B][i]&&(t[B][i]=!1),n=x(n,{enumerable:y(0,!1)})):(h(t,B)||J(t,B,y(1,x(null))),t[B][i]=!0),at(t,i,n)):J(t,i,n)},lt=function(t,e){d(t);var n=g(e),i=b(n).concat(gt(n));return j(i,(function(e){c&&!o(ht,n,e)||ut(t,e,n[e])})),t},ht=function(t){var e=p(t),n=o(tt,this,e);return!(this===V&&h(nt,e)&&!h(it,e))&&(!(n||!h(this,e)||!h(nt,e)||h(this,B)&&this[B][e])||n)},ft=function(t,e){var n=g(t),i=p(e);if(n!==V||!h(nt,i)||h(it,i)){var r=K(n,i);return!r||!h(nt,i)||h(n,B)&&n[B][i]||(r.enumerable=!0),r}},dt=function(t){var e=Q(g(t)),n=[];return j(e,(function(t){h(nt,t)||h(C,t)||et(n,t)})),n},gt=function(t){var e=t===V,n=Q(e?it:g(t)),i=[];return j(n,(function(t){!h(nt,t)||e&&!h(V,t)||et(i,nt[t])})),i};u||(G=function(){if(f(H,this))throw new q("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,e=I(t),n=function(t){var i=void 0===this?r:this;i===V&&o(n,it,t),h(i,B)&&h(i[B],e)&&(i[B][e]=!1);var s=y(1,t);try{at(i,e,s)}catch(t){if(!(t instanceof W))throw t;st(i,e,s)}};return c&&ot&&at(V,e,{configurable:!0,set:n}),ct(e,t)},k(H=G[X],"toString",(function(){return Y(this).tag})),k(G,"withoutSetter",(function(t){return ct(I(t),t)})),E.f=ht,A.f=ut,S.f=lt,T.f=ft,m.f=_.f=dt,w.f=gt,L.f=function(t){return ct(P(t),t)},c&&(O(H,"description",{configurable:!0,get:function(){return Y(this).description}}),a||k(V,"propertyIsEnumerable",ht,{unsafe:!0}))),i({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:G}),j(b(rt),(function(t){D(t)})),i({target:$,stat:!0,forced:!u},{useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),i({target:"Object",stat:!0,forced:!u,sham:!c},{create:function(t,e){return void 0===e?x(t):lt(x(t),e)},defineProperty:ut,defineProperties:lt,getOwnPropertyDescriptor:ft}),i({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:dt}),z(),N(G,$),C[B]=!0},function(t,e,n){"use strict";var i=n(4),r=n(5).f,o=n(43),s=n(47),a=n(37),c=n(55),u=n(67);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]&&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)||e("object"==typeof this&&this)||function(){return 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(38),l=n(41),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 new 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(22);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(22),s=n(29),a=n(32),c=n(33),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 new 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);t.exports=function(t){return"object"==typeof t?null!==t:i(t)}},function(t){"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},function(t,e,n){"use strict";var i=n(23),r=n(21),o=n(24),s=n(25),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(26);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){"use strict";var i=n(27),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(28),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(30),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(31),o=TypeError;t.exports=function(t){if(i(t))return t;throw new 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 new s("Can't convert object to primitive value")}},function(t,e,n){"use strict";var i=n(4),r=n(34),o=n(38),s=n(40),a=n(26),c=n(25),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(35);t.exports=function(t,e){return i[t]||(i[t]=e||{})}},function(t,e,n){"use strict";var i=n(36),r=n(4),o=n(37),s="__core-js_shared__",a=t.exports=r[s]||o(s,{});(a.versions||(a.versions=[])).push({version:"3.36.0",mode:i?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.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=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(39),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(42);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(44),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(41),o=n(45),s=n(46),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 new 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 new o(r(t)+" is not an object")}},function(t,e,n){"use strict";var i=n(21),r=n(44),o=n(48),s=n(37);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(38),a=n(6),c=n(49).CONFIGURABLE,u=n(50),l=n(51),h=l.enforce,f=l.get,d=String,g=Object.defineProperty,p=i("".slice),v=i("".replace),y=i([].join),x=a&&!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),(!s(t,"name")||c&&t.name!==e)&&(a?g(t,"name",{value:e,configurable:!0}):t.name=e),x&&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(b,"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(38),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(35),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(52),a=n(4),c=n(20),u=n(43),l=n(38),h=n(35),f=n(53),d=n(54),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 new 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 x=f("state");d[x]=!0,i=function(t,e){if(l(t,x))throw new p(g);return e.facade=t,u(t,x,e),e},r=function(t){return l(t,x)?t[x]:{}},o=function(t){return l(t,x)}}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 new 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(34),r=n(40),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(38),r=n(56),o=n(5),s=n(44);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(23),r=n(14),o=n(57),s=n(66),a=n(46),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(58),r=n(65).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(38),o=n(12),s=n(59).indexOf,a=n(54),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(60),o=n(63),s=function(t){return function(e,n,s){var a=i(e),c=o(a);if(0===c)return!t&&-1;var u,l=r(s,c);if(t&&n!=n){for(;c>l;)if((u=a[l++])!=u)return!0}else for(;c>l;l++)if((t||l in a)&&a[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(61),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(62);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(64);t.exports=function(t){return i(t.length)}},function(t,e,n){"use strict";var i=n(61),r=Math.min;t.exports=function(t){var e=i(t);return e>0?r(e,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(69),r=String;t.exports=function(t){if("Symbol"===i(t))throw new TypeError("Cannot convert a Symbol value to a string");return r(t)}},function(t,e,n){"use strict";var i=n(70),r=n(21),o=n(15),s=n(33)("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(33)("toStringTag")]="z",t.exports="[object z]"===String(i)},function(t,e,n){"use strict";var i,r=n(46),o=n(72),s=n(65),a=n(54),c=n(74),u=n(42),l=n(53),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(45),o=n(44),s=n(46),a=n(12),c=n(73);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(58),r=n(65);t.exports=Object.keys||function(t){return i(t,r)}},function(t,e,n){"use strict";var i=n(23);t.exports=i("document","documentElement")},function(t,e,n){"use strict";var i=n(15),r=n(12),o=n(57).f,s=n(76),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(14);t.exports=i([].slice)},function(t,e,n){"use strict";var i=n(48),r=n(44);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(33);e.f=i},function(t,e,n){"use strict";var i=n(80),r=n(38),o=n(78),s=n(44).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(23),o=n(33),s=n(47);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(44).f,r=n(38),o=n(33)("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(84),r=n(14),o=n(13),s=n(39),a=n(63),c=n(86),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 x,b,m=s(g),_=o(m),w=a(_),T=i(p,v),A=0,S=y||c,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:u(E,x)}else switch(t){case 4:return!1;case 7:u(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(85),r=n(30),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(87);t.exports=function(t,e){return new(i(t))(0===e?0:e)}},function(t,e,n){"use strict";var i=n(88),r=n(89),o=n(20),s=n(33)("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(69),a=n(23),c=n(50),u=function(){},l=a("Reflect","construct"),h=/^\s*(?:class|function)\b/,f=i(h.exec),d=!h.test(u),g=function(t){if(!o(t))return!1;try{return l(u,[],t),!0}catch(t){return!1}},p=function(t){if(!o(t))return!1;switch(s(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!f(h,c(t))}catch(t){return!0}};p.sham=!0,t.exports=!l||r((function(){var t;return g(g.call)||!g(Object)||!g((function(){t=!0}))||t}))?p:g},function(t,e,n){"use strict";var i=n(3),r=n(23),o=n(38),s=n(68),a=n(34),c=n(91),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(26);t.exports=i&&!!Symbol.for&&!!Symbol.keyFor},function(t,e,n){"use strict";var i=n(3),r=n(38),o=n(22),s=n(31),a=n(34),c=n(91),u=a("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!c},{keyFor:function(t){if(!o(t))throw new 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(23),o=n(94),s=n(8),a=n(14),c=n(7),u=n(21),l=n(22),h=n(76),f=n(95),d=n(26),g=String,p=r("JSON","stringify"),v=a(/./.exec),y=a("".charAt),x=a("".charCodeAt),b=a("".replace),m=a(1..toString),_=/[\uD800-\uDFFF]/g,w=/^[\uD800-\uDBFF]$/,T=/^[\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(w,t)&&!v(T,r)||v(T,t)&&!v(w,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=o(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,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),r=n(88),o=n(21),s=n(15),a=n(68),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(26),o=n(7),s=n(66),a=n(39);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(38),c=n(21),u=n(24),l=n(68),h=n(77),f=n(55),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")),x=s(g.valueOf),b=s(g.toString),m=/^Symbol\((.*)\)[^)]+$/,_=s("".replace),w=s("".slice);h(g,"description",{configurable:!0,get:function(){var t=x(this);if(a(p,t))return"";var e=b(t),n=y?w(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(79)("asyncIterator")},function(t,e,n){"use strict";n(79)("hasInstance")},function(t,e,n){"use strict";n(79)("isConcatSpreadable")},function(t,e,n){"use strict";n(79)("iterator")},function(t,e,n){"use strict";n(79)("match")},function(t,e,n){"use strict";n(79)("matchAll")},function(t,e,n){"use strict";n(79)("replace")},function(t,e,n){"use strict";n(79)("search")},function(t,e,n){"use strict";n(79)("species")},function(t,e,n){"use strict";n(79)("split")},function(t,e,n){"use strict";var i=n(79),r=n(81);i("toPrimitive"),r()},function(t,e,n){"use strict";var i=n(23),r=n(79),o=n(82);r("toStringTag"),o(i("Symbol"),"Symbol")},function(t,e,n){"use strict";n(79)("unscopables")},function(t,e,n){"use strict";var i=n(3),r=n(4),o=n(94),s=n(112),a="WebAssembly",c=r[a],u=7!==new 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(23),r=n(38),o=n(43),s=n(24),a=n(113),c=n(55),u=n(117),l=n(118),h=n(119),f=n(120),d=n(121),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 w=_.prototype;if(!p&&r(w,"cause")&&delete w.cause,!n)return _;var T=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(w,this)&&l(i,this,A),arguments.length>x&&f(i,arguments[x]),i}));if(A.prototype=w,"Error"!==m?a?a(A,T):c(A,T,{name:!0}):g&&y in _&&(u(A,_,y),u(A,_,"prepareStackTrace")),c(A,_),!p)try{w.name!==m&&o(w,"name",m),w.constructor=A}catch(t){}return A}}},function(t,e,n){"use strict";var i=n(114),r=n(46),o=n(115);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(30);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(116),r=String,o=TypeError;t.exports=function(t){if(i(t))return t;throw new o("Can't set "+r(t)+" as a prototype")}},function(t,e,n){"use strict";var i=n(20);t.exports=function(t){return i(t)||null===t}},function(t,e,n){"use strict";var i=n(44).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(113);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(68);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(43);t.exports=function(t,e){i(e)&&"cause"in e&&r(t,"cause",e.cause)}},function(t,e,n){"use strict";var i=n(43),r=n(122),o=n(123),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(new 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=new 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(47),r=n(125),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(46),s=n(119),a=Error.prototype.toString,c=r((function(){if(i){var t=Object.create(Object.defineProperty({},"name",{get:function(){return this===t}}));if("true"!==a.call(t))return!0}return"2: 1"!==a.call({message:1,name:2})||"Error"!==a.call({})}));t.exports=c?function(){var t=o(this),e=s(t.name,"Error"),n=s(t.message);return e?n?e+": "+n:e:n}:a},function(t,e,n){"use strict";n(127)},function(t,e,n){"use strict";var i=n(3),r=n(24),o=n(128),s=n(113),a=n(55),c=n(71),u=n(43),l=n(11),h=n(120),f=n(121),d=n(130),g=n(119),p=n(33)("toStringTag"),v=Error,y=[].push,x=function(t,e){var n,i=r(b,this);s?n=s(new v,i?o(this):b):(n=i?this:c(b),u(n,p,"Error")),void 0!==e&&u(n,"message",g(e)),f(n,x,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(x,v):a(x,v,{name:!0});var b=x.prototype=c(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(38),r=n(21),o=n(39),s=n(53),a=n(129),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(84),r=n(8),o=n(46),s=n(31),a=n(131),c=n(63),u=n(24),l=n(133),h=n(134),f=n(135),d=TypeError,g=function(t,e){this.stopped=t,this.result=e},p=g.prototype;t.exports=function(t,e,n){var v,y,x,b,m,_,w,T=n&&n.that,A=!(!n||!n.AS_ENTRIES),S=!(!n||!n.IS_RECORD),E=!(!n||!n.IS_ITERATOR),k=!(!n||!n.INTERRUPTED),O=i(e,T),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 new d(s(t)+" is not iterable");if(a(y)){for(x=0,b=c(t);b>x;x++)if((m=R(t[x]))&&u(p,m))return m;return new g(!1)}v=l(t,y)}for(_=S?t.next:v.next;!(w=r(_,v)).done;){try{m=R(w.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(33),r=n(132),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(30),o=n(46),s=n(31),a=n(134),c=TypeError;t.exports=function(t,e){var n=arguments.length<2?a(t):e;if(r(n))return o(i(n,t));throw new c(s(t)+" is not iterable")}},function(t,e,n){"use strict";var i=n(69),r=n(29),o=n(17),s=n(132),a=n(33)("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(46),o=n(29);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(23),o=n(94),s=n(7),a=n(112),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(39),o=n(63),s=n(61),a=n(138);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(33),r=n(71),o=n(44).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(88),s=n(20),a=n(39),c=n(63),u=n(140),l=n(141),h=n(86),f=n(142),d=n(33),g=n(27),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(6),r=n(44),o=n(11);t.exports=function(t,e,n){i?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){"use strict";var i=n(7),r=n(33),o=n(27),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(144),o=n(138);i({target:"Array",proto:!0},{copyWithin:r}),o("copyWithin")},function(t,e,n){"use strict";var i=n(39),r=n(60),o=n(63),s=n(145),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(31),r=TypeError;t.exports=function(t,e){if(!delete t[e])throw new r("Cannot delete property "+i(e)+" of "+i(t))}},function(t,e,n){"use strict";var i=n(3),r=n(83).every;i({target:"Array",proto:!0,forced:!n(147)("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(149),o=n(138);i({target:"Array",proto:!0},{fill:r}),o("fill")},function(t,e,n){"use strict";var i=n(39),r=n(60),o=n(63);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(83).filter;i({target:"Array",proto:!0,forced:!n(142)("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(83).find,o=n(138),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(83).findIndex,o=n(138),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(154).findLast,o=n(138);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(84),r=n(13),o=n(39),s=n(63),a=function(t){var e=1===t;return function(n,a,c){for(var u,l=o(n),h=r(l),f=s(h),d=i(a,c);f-- >0;)if(d(u=h[f],f,l))switch(t){case 0:return u;case 1:return f}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(154).findLastIndex,o=n(138);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(157),o=n(39),s=n(63),a=n(61),c=n(86);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(88),r=n(63),o=n(140),s=n(84),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(157),o=n(30),s=n(39),a=n(63),c=n(86);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(160);i({target:"Array",proto:!0,forced:[].forEach!==r},{forEach:r})},function(t,e,n){"use strict";var i=n(83).forEach,r=n(147)("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(162);i({target:"Array",stat:!0,forced:!n(164)((function(t){Array.from(t)}))},{from:r})},function(t,e,n){"use strict";var i=n(84),r=n(8),o=n(39),s=n(163),a=n(131),c=n(89),u=n(63),l=n(141),h=n(133),f=n(134),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,x,b,m,_,w,T=f(e),A=0;if(!T||this===d&&a(T))for(y=u(e),x=n?new this(y):d(y);y>A;A++)w=v?p(e[A],A):e[A],l(x,A,w);else for(_=(m=h(e,T)).next,x=n?new this:[];!(b=r(_,m)).done;A++)w=v?s(m,p,[b.value,A],!0):b.value,l(x,A,w);return x.length=A,x}},function(t,e,n){"use strict";var i=n(46),r=n(135);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(33)("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){try{if(!e&&!r)return!1}catch(t){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(59).includes,o=n(7),s=n(138);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(85),o=n(59).indexOf,s=n(147),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(88)})},function(t,e,n){"use strict";var i=n(12),r=n(138),o=n(132),s=n(51),a=n(44).f,c=n(169),u=n(172),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.index++;if(!e||n>=e.length)return t.target=void 0,u(void 0,!0);switch(t.kind){case"keys":return u(n,!1);case"values":return u(e[n],!1)}return u([n,e[n]],!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(49),a=n(21),c=n(170),u=n(128),l=n(113),h=n(82),f=n(43),d=n(47),g=n(33),p=n(132),v=n(171),y=s.PROPER,x=s.CONFIGURABLE,b=v.IteratorPrototype,m=v.BUGGY_SAFARI_ITERATORS,_=g("iterator"),w="keys",T="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&&t in P)return P[t];switch(t){case w:case T:case A:return function(){return new n(this,t)}}return function(){return new n(this)}},C=e+" Iterator",I=!1,P=t.prototype,L=P[_]||P["@@iterator"]||g&&P[g],D=!m&&L||R(g),z="Array"===e&&P.entries||L;if(z&&(k=u(z.call(new t)))!==Object.prototype&&k.next&&(o||u(k)===b||(l?l(k,b):a(k[_])||d(k,_,S)),h(k,C,!0,!0),o&&(p[C]=S)),y&&g===T&&L&&L.name!==T&&(!o&&x?f(P,"name",T):(I=!0,D=function(){return r(L,this)})),g)if(O={values:R(T),keys:v?D:R(w),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(171).IteratorPrototype,r=n(71),o=n(11),s=n(82),a=n(132),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(71),l=n(128),h=n(47),f=n(33),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(147),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(175);i({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r})},function(t,e,n){"use strict";var i=n(94),r=n(12),o=n(61),s=n(63),a=n(147),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);if(0===n)return-1;var 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(83).map;i({target:"Array",proto:!0,forced:!n(142)("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(89),s=n(141),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(39),o=n(63),s=n(179),a=n(140);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(88),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 new 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(181).left,o=n(147),s=n(27);i({target:"Array",proto:!0,forced:!n(182)&&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(30),r=n(39),o=n(13),s=n(63),a=TypeError,c="Reduce of empty array with no initial value",u=function(t){return function(e,n,u,l){var h=r(e),f=o(h),d=s(h);if(i(n),0===d&&u<2)throw new a(c);var g=t?d-1:0,p=t?-1:1;if(u<2)for(;;){if(g in f){l=f[g],g+=p;break}if(g+=p,t?g<0:d<=g)throw new a(c)}for(;t?g>=0:d>g;g+=p)g in f&&(l=n(l,f[g],g,h));return l}};t.exports={left:u(!1),right:u(!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(181).right,o=n(147),s=n(27);i({target:"Array",proto:!0,forced:!n(182)&&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(88),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(88),o=n(89),s=n(20),a=n(60),c=n(63),u=n(12),l=n(141),h=n(33),f=n(142),d=n(76),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),x=a(t,g),b=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,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(83).some;i({target:"Array",proto:!0,forced:!n(147)("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(30),s=n(39),a=n(63),c=n(145),u=n(68),l=n(7),h=n(188),f=n(147),d=n(189),g=n(190),p=n(27),v=n(191),y=[],x=r(y.sort),b=r(y.push),m=l((function(){y.sort(void 0)})),_=l((function(){y.sort(null)})),w=f("sort"),T=!l((function(){if(p)return p<70;if(!(d&&d>3)){if(g)return!0;if(v)return v<603;var t,e,n,i,r="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)y.push({k:e+i,v:n})}for(y.sort((function(t,e){return e.v-t.v})),i=0;i<y.length;i++)e=y[i].k.charAt(0),r.charAt(r.length-1)!==e&&(r+=e);return"DGBEFHACIJK"!==r}}));i({target:"Array",proto:!0,forced:m||!_||!w||!T},{sort:function(t){void 0!==t&&o(t);var e=s(this);if(T)return void 0===t?x(e):x(e,t);var n,i,r=[],l=a(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: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(76),r=Math.floor,o=function(t,e){var n=t.length;if(n<8)for(var s,a,c=1;c<n;){for(a=c,s=t[c];a&&e(t[a-1],s)>0;)t[a]=t[--a];a!==c++&&(t[a]=s)}else for(var u=r(n/2),l=o(i(t,0,u),e),h=o(i(t,u),e),f=l.length,d=h.length,g=0,p=0;g<f||p<d;)t[g+p]=g<f&&p<d?e(l[g],h[p])<=0?l[g++]:h[p++]:g<f?l[g++]:h[p++];return t};t.exports=o},function(t,e,n){"use strict";var i=n(28).match(/firefox\/(\d+)/i);t.exports=!!i&&+i[1]},function(t,e,n){"use strict";var i=n(28);t.exports=/MSIE|Trident/.test(i)},function(t,e,n){"use strict";var i=n(28).match(/AppleWebKit\/(\d+)\./);t.exports=!!i&&+i[1]},function(t,e,n){"use strict";n(193)("Array")},function(t,e,n){"use strict";var i=n(23),r=n(77),o=n(33),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(39),o=n(60),s=n(61),a=n(63),c=n(179),u=n(140),l=n(86),h=n(141),f=n(145),d=n(142)("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=a(b),_=o(t,m),w=arguments.length;for(0===w?n=i=0:1===w?(n=0,i=m-_):(n=w-2,i=p(g(s(e),0),m-_)),u(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 c(b,m-i+n),d}})},function(t,e,n){"use strict";var i=n(3),r=n(196),o=n(12),s=n(138),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(63);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(30),s=n(12),a=n(198),c=n(199),u=n(138),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(63);t.exports=function(t,e,n){for(var r=0,o=arguments.length>2?n:i(e),s=new t(o);o>r;)s[r]=e[r++];return s}},function(t,e,n){"use strict";var i=n(4);t.exports=function(t,e){var n=i[t],r=n&&n.prototype;return r&&r[e]}},function(t,e,n){"use strict";var i=n(3),r=n(138),o=n(140),s=n(63),a=n(60),c=n(12),u=n(61),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,x=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);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(138)("flat")},function(t,e,n){"use strict";n(138)("flatMap")},function(t,e,n){"use strict";var i=n(3),r=n(39),o=n(63),s=n(179),a=n(145),c=n(140);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(205),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(63),r=n(61),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 new 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(207),s=n(193),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(208),a=n(49),c=n(43),u=n(77),l=n(209),h=n(7),f=n(210),d=n(61),g=n(64),p=n(211),v=n(212),y=n(215),x=n(128),b=n(113),m=n(149),_=n(76),w=n(118),T=n(55),A=n(82),S=n(51),E=a.PROPER,k=a.CONFIGURABLE,O="ArrayBuffer",M="DataView",R="prototype",C="Wrong index",I=S.getterFor(O),P=S.getterFor(M),L=S.set,D=i[O],z=D,N=z&&z[R],F=i[M],j=F&&F[R],B=Object.prototype,$=i.Array,X=i.RangeError,U=r(m),Y=r([].reverse),V=y.pack,G=y.unpack,H=function(t){return[255&t]},W=function(t){return[255&t,t>>8&255]},q=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},Z=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},K=function(t){return V(v(t),23,4)},J=function(t){return V(t,52,8)},Q=function(t,e,n){u(t[R],e,{configurable:!0,get:function(){return n(this)[e]}})},tt=function(t,e,n,i){var r=P(t),o=p(n),s=!!i;if(o+e>r.byteLength)throw new X(C);var a=r.bytes,c=o+r.byteOffset,u=_(a,c,c+e);return s?u:Y(u)},et=function(t,e,n,i,r,o){var s=P(t),a=p(n),c=i(+r),u=!!o;if(a+e>s.byteLength)throw new X(C);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 nt=E&&D.name!==O;h((function(){D(1)}))&&h((function(){new D(-1)}))&&!h((function(){return new D,new D(1.5),new D(NaN),1!==D.length||nt&&!k}))?nt&&k&&c(D,"name",O):((z=function(t){return f(this,N),w(new D(p(t)),this,z)})[R]=N,N.constructor=z,T(z,D)),b&&x(j)!==B&&b(j,B);var it=new F(new z(2)),rt=r(j.setInt8);it.setInt8(0,2147483648),it.setInt8(1,2147483649),!it.getInt8(0)&&it.getInt8(1)||l(j,{setInt8:function(t,e){rt(this,t,e<<24>>24)},setUint8:function(t,e){rt(this,t,e<<24>>24)}},{unsafe:!0})}else N=(z=function(t){f(this,N);var e=p(t);L(this,{type:O,bytes:U($(e),0),byteLength:e}),o||(this.byteLength=e,this.detached=!1)})[R],j=(F=function(t,e,n){f(this,j),f(t,N);var i=I(t),r=i.byteLength,s=d(e);if(s<0||s>r)throw new X("Wrong offset");if(s+(n=void 0===n?r-s:g(n))>r)throw new X("Wrong length");L(this,{type:M,buffer:t,byteLength:n,byteOffset:s,bytes:i.bytes}),o||(this.buffer=t,this.byteLength=n,this.byteOffset=s)})[R],o&&(Q(z,"byteLength",I),Q(F,"buffer",P),Q(F,"byteLength",P),Q(F,"byteOffset",P)),l(j,{getInt8:function(t){return tt(this,1,t)[0]<<24>>24},getUint8:function(t){return tt(this,1,t)[0]},getInt16:function(t){var e=tt(this,2,t,arguments.length>1&&arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=tt(this,2,t,arguments.length>1&&arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return Z(tt(this,4,t,arguments.length>1&&arguments[1]))},getUint32:function(t){return Z(tt(this,4,t,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(t){return G(tt(this,4,t,arguments.length>1&&arguments[1]),23)},getFloat64:function(t){return G(tt(this,8,t,arguments.length>1&&arguments[1]),52)},setInt8:function(t,e){et(this,1,t,H,e)},setUint8:function(t,e){et(this,1,t,H,e)},setInt16:function(t,e){et(this,2,t,W,e,arguments.length>2&&arguments[2])},setUint16:function(t,e){et(this,2,t,W,e,arguments.length>2&&arguments[2])},setInt32:function(t,e){et(this,4,t,q,e,arguments.length>2&&arguments[2])},setUint32:function(t,e){et(this,4,t,q,e,arguments.length>2&&arguments[2])},setFloat32:function(t,e){et(this,4,t,K,e,arguments.length>2&&arguments[2])},setFloat64:function(t,e){et(this,8,t,J,e,arguments.length>2&&arguments[2])}});A(z,O),A(F,M),t.exports={ArrayBuffer:z,DataView:F}},function(t){"use strict";t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(t,e,n){"use strict";var i=n(47);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(24),r=TypeError;t.exports=function(t,e){if(i(e,t))return t;throw new r("Incorrect invocation")}},function(t,e,n){"use strict";var i=n(61),r=n(64),o=RangeError;t.exports=function(t){if(void 0===t)return 0;var e=i(t),n=r(e);if(e!==n)throw new o("Wrong length or index");return n}},function(t,e,n){"use strict";var i=n(213);t.exports=Math.fround||function(t){return i(t,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},function(t,e,n){"use strict";var i=n(214),r=Math.abs,o=2220446049250313e-31,s=1/o;t.exports=function(t,e,n,a){var c=+t,u=r(c),l=i(c);if(u<a)return l*function(t){return t+s-s}(u/a/e)*a*e;var h=(1+e/o)*u,f=h-(h-u);return f>n||f!=f?l*(1/0):l*f}},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){"use strict";var e=Array,n=Math.abs,i=Math.pow,r=Math.floor,o=Math.log,s=Math.LN2;t.exports={pack:function(t,a,c){var u,l,h,f=e(c),d=8*c-a-1,g=(1<<d)-1,p=g>>1,v=23===a?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,u=g):(u=r(o(t)/s),t*(h=i(2,-u))<1&&(u--,h*=2),(t+=u+p>=1?v/h:v*i(2,1-p))*h>=2&&(u++,h/=2),u+p>=g?(l=0,u=g):u+p>=1?(l=(t*h-1)*i(2,a),u+=p):(l=t*i(2,p-1)*i(2,a),u=0));a>=8;)f[x++]=255&l,l/=256,a-=8;for(u=u<<a|l,d+=a;d>0;)f[x++]=255&u,u/=256,d-=8;return f[--x]|=128*y,f},unpack:function(t,e){var n,r=t.length,o=8*r-e-1,s=(1<<o)-1,a=s>>1,c=o-7,u=r-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-a;else{if(h===s)return n?NaN:l?-1/0:1/0;n+=i(2,e),h-=a}return(l?-1:1)*n*i(2,h-e)}}},function(t,e,n){"use strict";var i=n(3),r=n(217);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(208),a=n(6),c=n(4),u=n(21),l=n(20),h=n(38),f=n(69),d=n(31),g=n(43),p=n(47),v=n(77),y=n(24),x=n(128),b=n(113),m=n(33),_=n(40),w=n(51),T=w.enforce,A=w.get,S=c.Int8Array,E=S&&S.prototype,k=c.Uint8ClampedArray,O=k&&k.prototype,M=S&&x(S),R=E&&x(E),C=Object.prototype,I=c.TypeError,P=m("toStringTag"),L=_("TYPED_ARRAY_TAG"),D="TypedArrayConstructor",z=s&&!!b&&"Opera"!==f(c.opera),N=!1,F={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},j={BigInt64Array:8,BigUint64Array:8},B=function(t){var e=x(t);if(l(e)){var n=A(e);return n&&h(n,D)?n[D]:B(e)}},$=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)?T(o)[D]=r:z=!1;for(i in j)(o=(r=c[i])&&r.prototype)&&(T(o)[D]=r);if((!z||!u(M)||M===Function.prototype)&&(M=function(){throw new I("Incorrect invocation")},z))for(i in F)c[i]&&b(c[i],M);if((!z||!R||R===C)&&(R=M.prototype,z))for(i in F)c[i]&&b(c[i].prototype,R);if(z&&x(O)!==R&&b(O,R),a&&!h(R,P))for(i in N=!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:z,TYPED_ARRAY_TAG:N&&L,aTypedArray:function(t){if($(t))return t;throw new I("Target is not a typed array")},aTypedArrayConstructor:function(t){if(u(t)&&(!b||y(M,t)))return t;throw new 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:z&&E[t]||e,i)}},exportTypedArrayStaticMethod:function(t,e,n){var i,r;if(a){if(b){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:z&&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:$,TypedArray:M,TypedArrayPrototype:R}},function(t,e,n){"use strict";var i=n(3),r=n(85),o=n(7),s=n(207),a=n(46),c=n(60),u=n(64),l=n(219),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(46),r=n(220),o=n(17),s=n(33)("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(89),r=n(31),o=TypeError;t.exports=function(t){if(i(t))return t;throw new o(r(t)+" is not a constructor")}},function(t,e,n){"use strict";n(222)},function(t,e,n){"use strict";var i=n(3),r=n(207);i({global:!0,constructor:!0,forced:!n(208)},{DataView:r.DataView})},function(t,e,n){"use strict";var i=n(6),r=n(77),o=n(224),s=ArrayBuffer.prototype;i&&!("detached"in s)&&r(s,"detached",{configurable:!0,get:function(){return o(this)}})},function(t,e,n){"use strict";var i=n(14),r=n(225),o=i(ArrayBuffer.prototype.slice);t.exports=function(t){if(0!==r(t))return!1;try{return o(t,0,0),!1}catch(t){return!0}}},function(t,e,n){"use strict";var i=n(114),r=n(15),o=TypeError;t.exports=i(ArrayBuffer.prototype,"byteLength","get")||function(t){if("ArrayBuffer"!==r(t))throw new o("ArrayBuffer expected");return t.byteLength}},function(t,e,n){"use strict";var i=n(3),r=n(227);r&&i({target:"ArrayBuffer",proto:!0},{transfer:function(){return r(this,arguments.length?arguments[0]:void 0,!0)}})},function(t,e,n){"use strict";var i=n(4),r=n(14),o=n(114),s=n(211),a=n(224),c=n(225),u=n(228),l=n(230),h=i.structuredClone,f=i.ArrayBuffer,d=i.DataView,g=i.TypeError,p=Math.min,v=f.prototype,y=d.prototype,x=r(v.slice),b=o(v,"resizable","get"),m=o(v,"maxByteLength","get"),_=r(y.getInt8),w=r(y.setInt8);t.exports=(l||u)&&function(t,e,n){var i,r=c(t),o=void 0===e?r:s(e),v=!b||!b(t);if(a(t))throw new g("ArrayBuffer is detached");if(l&&(t=h(t,{transfer:[t]}),r===o&&(n||v)))return t;if(r>=o&&(!n||v))i=x(t,0,o);else{var y=n&&!v&&m?{maxByteLength:m(t)}:void 0;i=new f(o,y);for(var T=new d(t),A=new d(i),S=p(o,r),E=0;E<S;E++)w(A,E,_(T,E))}return l||u(t),i}},function(t,e,n){"use strict";var i,r,o,s,a=n(4),c=n(229),u=n(230),l=a.structuredClone,h=a.ArrayBuffer,f=a.MessageChannel,d=!1;if(u)d=function(t){l(t,{transfer:[t]})};else if(h)try{f||(i=c("worker_threads"))&&(f=i.MessageChannel),f&&(r=new f,o=new h(2),s=function(t){r.port1.postMessage(null,[t])},2===o.byteLength&&(s(o),0===o.byteLength&&(d=s)))}catch(t){}t.exports=d},function(t,e,n){"use strict";var i=n(182);t.exports=function(t){try{if(i)return Function('return require("'+t+'")')()}catch(t){}}},function(t,e,n){"use strict";var i=n(4),r=n(7),o=n(27),s=n(231),a=n(232),c=n(182),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";var i=n(232),r=n(182);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(3),r=n(227);r&&i({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return r(this,arguments.length?arguments[0]:void 0,!1)}})},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(61),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(239);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(240).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),x=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 new 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(x(t),2,0)+"."+o(n,3,0)+"Z"}:l},function(t,e,n){"use strict";var i=n(14),r=n(64),o=n(68),s=n(241),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(61),r=n(68),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 new 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(39),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(38),r=n(47),o=n(244),s=n(33)("toPrimitive"),a=Date.prototype;i(a,s)||r(a,s,o)},function(t,e,n){"use strict";var i=n(46),r=n(32),o=TypeError;t.exports=function(t){if(i(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new o("Incorrect hint");return r(this,t)}},function(t,e,n){"use strict";var i=n(14),r=n(47),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(68),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(248);i({target:"Function",proto:!0,forced:Function.bind!==r},{bind:r})},function(t,e,n){"use strict";var i=n(14),r=n(30),o=n(20),s=n(38),a=n(76),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(44),s=n(24),a=n(33),c=n(48),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;return r(e)?s(e,t):t instanceof this}),u)})},function(t,e,n){"use strict";var i=n(6),r=n(49).EXISTS,o=n(14),s=n(77),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(82)(i.JSON,"JSON",!0)},function(t,e,n){"use strict";n(254)},function(t,e,n){"use strict";n(255)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(260))},function(t,e,n){"use strict";var i=n(3),r=n(4),o=n(14),s=n(67),a=n(47),c=n(256),u=n(130),l=n(210),h=n(21),f=n(17),d=n(20),g=n(7),p=n(164),v=n(82),y=n(118);t.exports=function(t,e,n){var x=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),m=x?"set":"add",_=r[t],w=_&&_.prototype,T=_,A={},S=function(t){var e=o(w[t]);a(w,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(b&&!d(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return b&&!d(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(b&&!d(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(s(t,!h(_)||!(b||w.forEach&&!g((function(){(new _).entries().next()})))))T=n.getConstructor(e,t,x,m),c.enable();else if(s(t,!0)){var E=new T,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||((T=e((function(t,e){l(t,w);var n=y(new _,t,T);return f(e)||u(e,n[m],{that:n,AS_ENTRIES:x}),n}))).prototype=w,w.constructor=T),(O||R)&&(S("delete"),S("has"),x&&S("get")),(R||k)&&S(m),b&&w.clear&&delete w.clear}return A[t]=T,i({global:!0,constructor:!0,forced:T!==_},A),v(T,t),b||n.setStrong(T,t,x),T}},function(t,e,n){"use strict";var i=n(3),r=n(14),o=n(54),s=n(20),a=n(38),c=n(44).f,u=n(57),l=n(75),h=n(257),f=n(40),d=n(259),g=!1,p=f("meta"),v=0,y=function(t){c(t,p,{value:{objectID:"O"+v++,weakData:{}}})},x=t.exports={enable:function(){x.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(258),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(71),r=n(77),o=n(209),s=n(84),a=n(210),c=n(17),u=n(130),l=n(169),h=n(172),f=n(193),d=n(6),g=n(256).fastKey,p=n(51),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),x=function(t,e,n){var i,r,o=p(t),s=b(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},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 o(f,{clear:function(){for(var t=p(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=void 0),e=e.next;t.first=t.last=void 0,t.index=i(null),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,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!!b(this,t)}}),o(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),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(14),o=n(30),s=n(16),a=n(130),c=n(262),u=n(36),l=c.Map,h=c.has,f=c.get,d=c.set,g=r([].push);i({target:"Map",stat:!0,forced:u},{groupBy:function(t,e){s(t),o(e);var n=new l,i=0;return a(t,(function(t){var r=e(t,i++);h(n,r)?g(f(n,r),t):d(n,r,[t])})),n}})},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(3),r=n(264),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(270),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(270);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(212)})},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(276)})},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(264)})},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(270),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(270),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(82)(Math,"Math",!0)},function(t,e,n){"use strict";n(3)({target:"Math",stat:!0},{trunc:n(62)})},function(t,e,n){"use strict";var i=n(3),r=n(36),o=n(6),s=n(4),a=n(80),c=n(14),u=n(67),l=n(38),h=n(118),f=n(24),d=n(22),g=n(19),p=n(7),v=n(57).f,y=n(5).f,x=n(44).f,b=n(285),m=n(286).trim,_="Number",w=s[_],T=a[_],A=w.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 new 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(_,!w(" 0o1")||!w("0b1")||w("+0x1")),R=function(t){var e,n=arguments.length<1?0:w(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=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)&&x(t,n,y(e,n))};r&&T&&C(a[_],T),(M||r)&&C(a[_],w)},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(68),s=n(287),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(290)})},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(292)})},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(292),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(298);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(68),a=n(286).trim,c=n(287),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(300);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(68),a=n(286).trim,c=n(287),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(61),s=n(285),a=n(241),c=n(276),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),x=r(a),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||!(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 new 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=x("0",n+1);else{var w=c(e);a=g(w);var T=0,A=p(10,a-n);2*e>=(2*(T=v(e/A))+1)*A&&(T+=1),T>=p(10,n+1)&&(T/=10,a+=1),r=h(T)}return 0!==n&&(r=b(r,0,1)+"."+b(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(61),s=n(285),a=n(241),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},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: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="",b="0";if(c<0||c>20)throw new 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),b=x(h)}else v(h,0,n),v(h,1<<-e,0),b=x(h)+f("0",c);return b=c>0?g+((r=b.length)<=c?"0."+f("0",c-r)+b:d(b,0,r-c)+"."+d(b,r-c)):g+b}})},function(t,e,n){"use strict";var i=n(3),r=n(14),o=n(7),s=n(285),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(305);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(73),c=n(66),u=n(10),l=n(39),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),x=y.length,b=0;x>b;)p=y[b++],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(71)})},function(t,e,n){"use strict";var i=n(3),r=n(6),o=n(308),s=n(30),a=n(39),c=n(44);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(191);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(72).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(44).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(308),s=n(30),a=n(39),c=n(44);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(313).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(128),a=n(73),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(259),o=n(7),s=n(20),a=n(256).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(130),o=n(141);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(56),s=n(12),a=n(5),c=n(141);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(75).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(39),s=n(128),a=n(129);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";var i=n(3),r=n(23),o=n(14),s=n(30),a=n(16),c=n(18),u=n(130),l=r("Object","create"),h=o([].push);i({target:"Object",stat:!0},{groupBy:function(t,e){a(t),s(e);var n=l(null),i=0;return u(t,(function(t){var r=c(e(t,i++));r in n?h(n[r],t):n[r]=[t]})),n}})},function(t,e,n){"use strict";n(3)({target:"Object",stat:!0},{hasOwn:n(38)})},function(t,e,n){"use strict";n(3)({target:"Object",stat:!0},{is:n(323)})},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(257);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(258),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(258),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(39),o=n(73);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(308),s=n(39),a=n(18),c=n(128),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(308),s=n(39),a=n(18),c=n(128),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(256).onFreeze,s=n(259),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(77),o=n(20),s=n(116),a=n(39),c=n(16),u=Object.getPrototypeOf,l=Object.setPrototypeOf,h=Object.prototype,f="__proto__";if(i&&u&&l&&!(f in h))try{r(h,f,{configurable:!0,get:function(){return u(a(this))},set:function(t){var e=c(this);s(t)&&o(e)&&l(e,t)}})}catch(t){}},function(t,e,n){"use strict";var i=n(3),r=n(20),o=n(256).onFreeze,s=n(259),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(113)})},function(t,e,n){"use strict";var i=n(70),r=n(47),o=n(335);i||r(Object.prototype,"toString",o,{unsafe:!0})},function(t,e,n){"use strict";var i=n(70),r=n(69);t.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},function(t,e,n){"use strict";var i=n(3),r=n(313).values;i({target:"Object",stat:!0},{values:function(t){return r(t)}})},function(t,e,n){"use strict";var i=n(3),r=n(298);i({global:!0,forced:parseFloat!==r},{parseFloat:r})},function(t,e,n){"use strict";var i=n(3),r=n(300);i({global:!0,forced:parseInt!==r},{parseInt:r})},function(t,e,n){"use strict";n(340),n(354),n(356),n(357),n(358),n(359)},function(t,e,n){"use strict";var i,r,o,s=n(3),a=n(36),c=n(182),u=n(4),l=n(8),h=n(47),f=n(113),d=n(82),g=n(193),p=n(30),v=n(21),y=n(20),x=n(210),b=n(219),m=n(341).set,_=n(344),w=n(349),T=n(350),A=n(346),S=n(51),E=n(351),k=n(352),O=n(353),M="Promise",R=k.CONSTRUCTOR,C=k.REJECTION_EVENT,I=k.SUBCLASSING,P=S.getterFor(M),L=S.set,D=E&&E.prototype,z=E,N=D,F=u.TypeError,j=u.document,B=u.process,$=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(new 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&&w("Unhandled promise rejection",n)},q=function(t){l(m,u,(function(){var e,n=t.facade,i=t.value;if(Z(t)&&(e=T((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 new 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&&(N=(z=function(t){x(this,N),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(N,"then",(function(t,e){var n=P(this),i=$(b(this,z));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=$=function(t){return t===z||undefined===t?new r(t):X(t)},!a&&v(E)&&D!==Object.prototype)){o=D.then,I||h(D,"then",(function(t,e){var n=this;return new z((function(t,e){l(o,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete D.constructor}catch(t){}f&&f(D,N)}s({global:!0,constructor:!0,wrap:!0,forced:R},{Promise:z}),d(z,M,!1,!0),g(M)},function(t,e,n){"use strict";var i,r,o,s,a=n(4),c=n(94),u=n(84),l=n(21),h=n(38),f=n(7),d=n(74),g=n(76),p=n(42),v=n(342),y=n(343),x=n(182),b=a.setImmediate,m=a.clearImmediate,_=a.process,w=a.Dispatch,T=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)};b&&m||(b=function(t){v(arguments.length,1);var e=l(t)?t:T(t),n=g(arguments,1);return k[++E]=function(){c(e,void 0,n)},r(E),E},m=function(t){delete k[t]},x?r=function(t){_.nextTick(R(t))}:w&&w.now?r=function(t){w.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:b,clear:m}},function(t){"use strict";var e=TypeError;t.exports=function(t,n){if(t<n)throw new e("Not enough arguments");return t}},function(t,e,n){"use strict";var i=n(28);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(345),l=n(84),h=n(341).set,f=n(346),d=n(343),g=n(347),p=n(348),v=n(182),y=c.MutationObserver||c.WebKitMutationObserver,x=c.document,b=c.process,m=c.Promise,_=u("queueMicrotask");if(!_){var w=new f,T=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?((s=m.resolve(void 0)).constructor=m,a=l(s.then,s),i=function(){a(T)}):v?i=function(){b.nextTick(T)}:(h=l(h,c),i=function(){h(T)}):(r=!0,o=x.createTextNode(""),new y(T).observe(o,{characterData:!0}),i=function(){o.data=r=!r}),_=function(t){w.head||i(),w.add(t)}}t.exports=_},function(t,e,n){"use strict";var i=n(4),r=n(6),o=Object.getOwnPropertyDescriptor;t.exports=function(t){if(!r)return i[t];var e=o(i,t);return e&&e.value}},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(28);t.exports=/ipad|iphone|ipod/i.test(i)&&"undefined"!=typeof Pebble},function(t,e,n){"use strict";var i=n(28);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(351),o=n(21),s=n(67),a=n(50),c=n(33),u=n(231),l=n(232),h=n(36),f=n(27),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(30),r=TypeError,o=function(t){var e,n;this.promise=new t((function(t,i){if(void 0!==e||void 0!==n)throw new 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(30),s=n(353),a=n(350),c=n(130);i({target:"Promise",stat:!0,forced:n(355)},{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(351),r=n(164),o=n(352).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(352).CONSTRUCTOR,s=n(351),a=n(23),c=n(21),u=n(47),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(30),s=n(353),a=n(350),c=n(130);i({target:"Promise",stat:!0,forced:n(355)},{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(353);i({target:"Promise",stat:!0,forced:n(352).CONSTRUCTOR},{reject:function(t){var e=r.f(this);return(0,e.reject)(t),e.promise}})},function(t,e,n){"use strict";var i=n(3),r=n(23),o=n(36),s=n(351),a=n(352).CONSTRUCTOR,c=n(360),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(46),r=n(20),o=n(353);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(30),s=n(353),a=n(350),c=n(130);i({target:"Promise",stat:!0,forced:n(355)},{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(30),s=n(23),a=n(353),c=n(350),u=n(130),l=n(355),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(351),s=n(7),a=n(23),c=n(21),u=n(219),l=n(360),h=n(47),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(353);i({target:"Promise",stat:!0},{withResolvers:function(){var t=r.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}})},function(t,e,n){"use strict";var i=n(3),r=n(94),o=n(30),s=n(46);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(23),o=n(94),s=n(248),a=n(220),c=n(46),u=n(20),l=n(71),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(46),s=n(18),a=n(44);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(46),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(46),a=n(370),c=n(5),u=n(128);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(38);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(46),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(46),o=n(128);i({target:"Reflect",stat:!0,sham:!n(129)},{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(46),o=n(257);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(56)})},function(t,e,n){"use strict";var i=n(3),r=n(23),o=n(46);i({target:"Reflect",stat:!0,sham:!n(259)},{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(46),s=n(20),a=n(370),c=n(7),u=n(44),l=n(5),h=n(128),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(46),o=n(115),s=n(113);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(82);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(67),a=n(118),c=n(43),u=n(71),l=n(57).f,h=n(24),f=n(381),d=n(68),g=n(382),p=n(384),v=n(117),y=n(47),x=n(7),b=n(38),m=n(51).enforce,_=n(193),w=n(33),T=n(385),A=n(386),S=w("match"),E=r.RegExp,k=E.prototype,O=r.SyntaxError,M=o(k.exec),R=o("".charAt),C=o("".replace),I=o("".indexOf),P=o("".slice),L=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,D=/a/g,z=/a/g,N=new E(D)!==D,F=p.MISSED_STICKY,j=p.UNSUPPORTED_Y,B=i&&(!N||F||T||A||x((function(){return z[S]=!1,E(D)!==D||E(z)===z||"/a/i"!==String(E(D,"i"))})));if(s("RegExp",B)){for(var $=function(t,e){var n,i,r,o,s,l,p=h(k,this),v=f(t),y=void 0===e,x=[],_=t;if(!p&&v&&y&&t.constructor===$)return t;if((v||h(k,t))&&(t=t.source,y&&(e=g(_))),t=void 0===t?"":d(t),e=void 0===e?"":d(e),_=t,T&&"dotAll"in D&&(i=!!e&&I(e,"s")>-1)&&(e=C(e,/s/g,"")),n=e,F&&"sticky"in D&&(r=!!e&&I(e,"y")>-1)&&j&&(e=C(e,/y/g,"")),A&&(o=function(t){for(var e,n=t.length,i=0,r="",o=[],s=u(null),a=!1,c=!1,l=0,h="";i<=n;i++){if("\\"===(e=R(t,i)))e+=R(t,++i);else if("]"===e)a=!1;else if(!a)switch(!0){case"["===e:a=!0;break;case"("===e:M(L,P(t,i+1))&&(i+=2,c=!0),r+=e,l++;continue;case">"===e&&c:if(""===h||b(s,h))throw new O("Invalid capture group name");s[h]=!0,o[o.length]=[h,l],c=!1,h="";continue}c?h+=e:r+=e}return[r,o]}(t),t=o[0],x=o[1]),s=a(E(t,e),p?this:k,$),(i||r||x.length)&&(l=m(s),i&&(l.dotAll=!0,l.raw=$(function(t){for(var e,n=t.length,i=0,r="",o=!1;i<=n;i++)"\\"!==(e=R(t,i))?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),r+=e):r+="[\\s\\S]":r+=e+R(t,++i);return r}(t),n)),r&&(l.sticky=!0),x.length&&(l.groups=x)),t!==_)try{c(s,"source",""===_?"(?:)":_)}catch(t){}return s},X=l(E),U=0;X.length>U;)v($,E,X[U++]);k.constructor=$,$.prototype=k,y(r,"RegExp",$,{constructor:!0})}_("RegExp")},function(t,e,n){"use strict";var i=n(20),r=n(15),o=n(33)("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(38),o=n(24),s=n(383),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(46);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.test("\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(385),o=n(15),s=n(77),a=n(51).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 new u("Incompatible receiver, RegExp required")}}})},function(t,e,n){"use strict";var i=n(3),r=n(389);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(68),c=n(383),u=n(384),l=n(34),h=n(71),f=n(51).get,d=n(385),g=n(386),p=l("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,y=v,x=s("".charAt),b=s("".indexOf),m=s("".replace),_=s("".slice),w=(r=/b*/g,o(v,i=/a/,"a"),o(v,r,"a"),0!==i.lastIndex||0!==r.lastIndex),T=u.BROKEN_CARET,A=void 0!==/()??/.exec("")[1];(w||A||T||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=T&&d.sticky,M=o(c,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)),w&&(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:w&&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(77),s=n(383),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(384).MISSED_STICKY,o=n(15),s=n(77),a=n(51).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 new u("Incompatible receiver, RegExp required")}}})},function(t,e,n){"use strict";n(388);var i,r,o=n(3),s=n(8),a=n(21),c=n(46),u=n(68),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(49).PROPER,r=n(47),o=n(46),s=n(68),a=n(7),c=n(382),u="toString",l=RegExp.prototype,h=l[u],f=a((function(){return"/a/b"!==h.call({source:"a",flags:"b"})})),d=i&&h.name!==u;(f||d)&&r(l,u,(function(){var t=o(this);return"/"+s(t.source)+"/"+s(c(t))}),{unsafe:!0})},function(t,e,n){"use strict";n(395)},function(t,e,n){"use strict";n(255)("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(260))},function(t,e,n){"use strict";var i=n(3),r=n(14),o=n(16),s=n(61),a=n(68),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(398).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(61),o=n(68),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(85),s=n(5).f,a=n(64),c=n(68),u=n(400),l=n(16),h=n(401),f=n(36),d=o("".slice),g=Math.min,p=h("endsWith");r({target:"String",proto:!0,forced:!!(f||p||(i=s(String.prototype,"endsWith"),!i||i.writable))&&!p},{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:g(a(n),i),o=c(t);return d(e,r-o.length,r)===o}})},function(t,e,n){"use strict";var i=n(381),r=TypeError;t.exports=function(t){if(i(t))throw new r("The method doesn't accept regular expressions");return t}},function(t,e,n){"use strict";var i=n(33)("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(60),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 new 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(400),s=n(16),a=n(68),c=n(401),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(68),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(398).charAt,r=n(68),o=n(51),s=n(169),a=n(172),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(407),o=n(46),s=n(17),a=n(64),c=n(68),u=n(16),l=n(29),h=n(408),f=n(409);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(388);var i=n(8),r=n(47),o=n(389),s=n(7),a=n(33),c=n(43),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=/./[f],v=e(f,""[t],(function(t,e,n,r,s){var a=e.exec;return a===o||a===l.exec?d&&!s?{done:!0,value:i(p,e,n,r)}:{done:!0,value:i(t,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(398).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(46),o=n(21),s=n(15),a=n(389),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 new c("RegExp#exec called on incompatible receiver")}},function(t,e,n){"use strict";var i=n(3),r=n(8),o=n(85),s=n(170),a=n(172),c=n(16),u=n(64),l=n(68),h=n(46),f=n(17),d=n(15),g=n(381),p=n(382),v=n(29),y=n(47),x=n(7),b=n(33),m=n(219),_=n(408),w=n(409),T=n(51),A=n(36),S=b("matchAll"),E="RegExp String",k=E+" Iterator",O=T.set,M=T.getterFor(k),R=RegExp.prototype,C=TypeError,I=o("".indexOf),P=o("".matchAll),L=!!P&&!x((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=w(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))})),z=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 new 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=z),i)return r(i,t,s)}return n=l(s),o=new RegExp(t,"g"),A?r(z,o,n):o[S](n)}}),A||S in R||y(R,S,z)},function(t,e,n){"use strict";var i=n(3),r=n(240).end;i({target:"String",proto:!0,forced:n(412)},{padEnd:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var i=n(28);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(240).start;i({target:"String",proto:!0,forced:n(412)},{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(39),a=n(68),c=n(63),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(241)})},function(t,e,n){"use strict";var i=n(94),r=n(8),o=n(14),s=n(407),a=n(7),c=n(46),u=n(21),l=n(17),h=n(61),f=n(64),d=n(68),g=n(16),p=n(408),v=n(29),y=n(417),x=n(409),b=n(33)("replace"),m=Math.max,_=Math.min,w=o([].concat),T=o([].push),A=o("".indexOf),S=o("".slice),E="$0"==="a".replace(/./,"$0"),k=!!/./[b]&&""===/./[b]("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,b);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,b=s.global;b&&(v=s.unicode,s.lastIndex=0);for(var E,k=[];null!==(E=x(s,a))&&(T(k,E),b);){""===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=[],z=1;z<E.length;z++)T(D,void 0===(O=E[z])?O:String(O));var N=E.groups;if(g){var F=w([P],D,L,a);void 0!==N&&T(F,N),I=d(i(r,void 0,F))}else I=y(P,a,L,D,N,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(39),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(381),l=n(68),h=n(29),f=n(382),d=n(417),g=n(33),p=n(36),v=g("replace"),y=TypeError,x=o("".indexOf),b=o("".replace),m=o("".slice),_=Math.max;i({target:"String",proto:!0},{replaceAll:function(t,e){var n,i,o,g,w,T,A,S,E,k=s(this),O=0,M=0,R="";if(!c(t)){if((n=u(t))&&(i=l(s(f(t))),!~x(i,"g")))throw new y("`.replaceAll` does not allow non-global regexes");if(o=h(t,v))return r(o,t,k,e);if(p&&n)return b(l(k),t,e)}for(g=l(k),w=l(t),(T=a(e))||(e=l(e)),A=w.length,S=_(1,A),O=x(g,w);-1!==O;)E=T?l(e(w,O,g)):d(w,g,O,[],void 0,e),R+=m(g,M,O)+E,M=O+A,O=O+S>g.length?-1:x(g,w,O+S);return M<g.length&&(R+=m(g,M)),R}})},function(t,e,n){"use strict";var i=n(8),r=n(407),o=n(46),s=n(17),a=n(16),c=n(323),u=n(68),l=n(29),h=n(409);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(8),r=n(14),o=n(407),s=n(46),a=n(17),c=n(16),u=n(219),l=n(408),h=n(64),f=n(68),d=n(29),g=n(409),p=n(384),v=n(7),y=p.UNSUPPORTED_Y,x=Math.min,b=r([].push),m=r("".slice),_=!v((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]})),w="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;o("split",(function(t,e,n){var r="0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:i(e,this,t,n)}:e;return[function(e,n){var o=c(this),s=a(e)?void 0:d(e,t);return s?i(s,e,o,n):i(r,f(o),e,n)},function(t,i){var o=s(this),a=f(t);if(!w){var c=n(r,o,a,i,r!==e);if(c.done)return c.value}var d=u(o,RegExp),p=o.unicode,v=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(y?"g":"y"),_=new d(y?"^(?:"+o.source+")":o,v),T=void 0===i?4294967295:i>>>0;if(0===T)return[];if(0===a.length)return null===g(_,a)?[a]:[];for(var A=0,S=0,E=[];S<a.length;){_.lastIndex=y?0:S;var k,O=g(_,y?m(a,S):a);if(null===O||(k=x(h(_.lastIndex+(y?S:0)),a.length))===A)S=l(a,S,p);else{if(b(E,m(a,A,S)),E.length===T)return E;for(var M=1;M<=O.length-1;M++)if(b(E,O[M]),E.length===T)return E;S=A=k}}return b(E,m(a,A)),E}]}),w||!_,y)},function(t,e,n){"use strict";var i,r=n(3),o=n(85),s=n(5).f,a=n(64),c=n(68),u=n(400),l=n(16),h=n(401),f=n(36),d=o("".slice),g=Math.min,p=h("startsWith");r({target:"String",proto:!0,forced:!!(f||p||(i=s(String.prototype,"startsWith"),!i||i.writable))&&!p},{startsWith:function(t){var e=c(l(this));u(t);var n=a(g(arguments.length>1?arguments[1]:void 0,e.length)),i=c(t);return d(e,n,n+i.length)===i}})},function(t,e,n){"use strict";var i=n(3),r=n(14),o=n(16),s=n(61),a=n(68),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(68),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(286).trim;i({target:"String",proto:!0,forced:n(425)("trim")},{trim:function(){return r(this)}})},function(t,e,n){"use strict";var i=n(49).PROPER,r=n(7),o=n(287);t.exports=function(t){return r((function(){return!!o[t]()||"
"!=="
"[t]()||i&&o[t].name!==t}))}},function(t,e,n){"use strict";n(427);var i=n(3),r=n(428);i({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==r},{trimEnd:r})},function(t,e,n){"use strict";var i=n(3),r=n(428);i({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==r},{trimRight:r})},function(t,e,n){"use strict";var i=n(286).end,r=n(425);t.exports=r("trimEnd")?function(){return i(this)}:"".trimEnd},function(t,e,n){"use strict";n(430);var i=n(3),r=n(431);i({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==r},{trimStart:r})},function(t,e,n){"use strict";var i=n(3),r=n(431);i({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==r},{trimLeft:r})},function(t,e,n){"use strict";var i=n(286).start,r=n(425);t.exports=r("trimStart")?function(){return i(this)}:"".trimStart},function(t,e,n){"use strict";var i=n(3),r=n(433);i({target:"String",proto:!0,forced:n(434)("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(68),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(433);i({target:"String",proto:!0,forced:n(434)("big")},{big:function(){return r(this,"big","","")}})},function(t,e,n){"use strict";var i=n(3),r=n(433);i({target:"String",proto:!0,forced:n(434)("blink")},{blink:function(){return r(this,"blink","","")}})},function(t,e,n){"use strict";var i=n(3),r=n(433);i({target:"String",proto:!0,forced:n(434)("bold")},{bold:function(){return r(this,"b","","")}})},function(t,e,n){"use strict";var i=n(3),r=n(433);i({target:"String",proto:!0,forced:n(434)("fixed")},{fixed:function(){return r(this,"tt","","")}})},function(t,e,n){"use strict";var i=n(3),r=n(433);i({target:"String",proto:!0,forced:n(434)("fontcolor")},{fontcolor:function(t){return r(this,"font","color",t)}})},function(t,e,n){"use strict";var i=n(3),r=n(433);i({target:"String",proto:!0,forced:n(434)("fontsize")},{fontsize:function(t){return r(this,"font","size",t)}})},function(t,e,n){"use strict";var i=n(3),r=n(433);i({target:"String",proto:!0,forced:n(434)("italics")},{italics:function(){return r(this,"i","","")}})},function(t,e,n){"use strict";var i=n(3),r=n(433);i({target:"String",proto:!0,forced:n(434)("link")},{link:function(t){return r(this,"a","href",t)}})},function(t,e,n){"use strict";var i=n(3),r=n(433);i({target:"String",proto:!0,forced:n(434)("small")},{small:function(){return r(this,"small","","")}})},function(t,e,n){"use strict";var i=n(3),r=n(433);i({target:"String",proto:!0,forced:n(434)("strike")},{strike:function(){return r(this,"strike","","")}})},function(t,e,n){"use strict";var i=n(3),r=n(433);i({target:"String",proto:!0,forced:n(434)("sub")},{sub:function(){return r(this,"sub","","")}})},function(t,e,n){"use strict";var i=n(3),r=n(433);i({target:"String",proto:!0,forced:n(434)("sup")},{sup:function(){return r(this,"sup","","")}})},function(t,e,n){"use strict";n(448)("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(449),c=n(217),u=n(207),l=n(210),h=n(11),f=n(43),d=n(292),g=n(64),p=n(211),v=n(450),y=n(452),x=n(18),b=n(38),m=n(69),_=n(20),w=n(22),T=n(71),A=n(24),S=n(113),E=n(57).f,k=n(453),O=n(83).forEach,M=n(193),R=n(77),C=n(44),I=n(5),P=n(198),L=n(51),D=n(118),z=L.get,N=L.set,F=L.enforce,j=C.f,B=I.f,$=r.RangeError,X=u.ArrayBuffer,U=X.prototype,Y=u.DataView,V=c.NATIVE_ARRAY_BUFFER_VIEWS,G=c.TYPED_ARRAY_TAG,H=c.TypedArray,W=c.TypedArrayPrototype,q=c.isTypedArray,Z="BYTES_PER_ELEMENT",K="Wrong length",J=function(t,e){R(t,e,{configurable:!0,get:function(){return z(this)[e]}})},Q=function(t){var e;return A(U,t)||"ArrayBuffer"===(e=m(t))||"SharedArrayBuffer"===e},tt=function(t,e){return q(t)&&!w(e)&&e in t&&d(+e)&&e>=0},et=function(t,e){return e=x(e),tt(t,e)?h(2,t[e]):B(t,e)},nt=function(t,e,n){return e=x(e),!(tt(t,e)&&_(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?j(t,e,n):(t[e]=n.value,t)};s?(V||(I.f=et,C.f=nt,J(W,"buffer"),J(W,"byteOffset"),J(W,"byteLength"),J(W,"length")),i({target:"Object",stat:!0,forced:!V},{getOwnPropertyDescriptor:et,defineProperty:nt}),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],x=d,b=x&&x.prototype,m={},w=function(t,e){j(t,e,{get:function(){return function(t,e){var n=z(t);return n.view[u](e*s+n.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,i){var r=z(t);r.view[h](e*s+r.byteOffset,n?y(i):i,!0)}(this,e,t)},enumerable:!0})};V?a&&(x=e((function(t,e,n,i){return l(t,b),D(_(e)?Q(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)?P(x,e):o(k,x,e):new d(p(e)),t,x)})),S&&S(x,H),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,a,c,u=0,h=0;if(_(e)){if(!Q(e))return q(e)?P(x,e):o(k,x,e);r=e,h=v(n,s);var f=e.byteLength;if(void 0===i){if(f%s)throw new $(K);if((a=f-h)<0)throw new $(K)}else if((a=g(i)*s)+h>f)throw new $(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 Y(r)});u<c;)w(t,u++)})),S&&S(x,H),b=x.prototype=T(W)),b.constructor!==x&&f(b,"constructor",x),F(b).TypedArrayConstructor=x,G&&f(b,G,c);var A=x!==d;m[c]=x,i({global:!0,constructor:!0,forced:A,sham:!V},m),Z in x||f(x,Z,s),Z in b||f(b,Z,s),M(c)}):t.exports=function(){}},function(t,e,n){"use strict";var i=n(4),r=n(7),o=n(164),s=n(217).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(451),r=RangeError;t.exports=function(t,e){var n=i(t);if(n%e)throw new r("Wrong offset");return n}},function(t,e,n){"use strict";var i=n(61),r=RangeError;t.exports=function(t){var e=i(t);if(e<0)throw new 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(84),r=n(8),o=n(220),s=n(39),a=n(63),c=n(133),u=n(134),l=n(131),h=n(454),f=n(217).aTypedArrayConstructor,d=n(455);t.exports=function(t){var e,n,g,p,v,y,x,b,m=o(this),_=s(t),w=arguments.length,T=w>1?arguments[1]:void 0,A=void 0!==T,S=u(_);if(S&&!l(S))for(b=(x=c(_,S)).next,_=[];!(y=r(b,x)).done;)_.push(y.value);for(A&&w>2&&(T=i(T,arguments[2])),n=a(_),g=new(f(m))(n),p=h(g),e=0;n>e;e++)v=A?T(_[e],e):_[e],g[e]=p?d(v):+v;return g}},function(t,e,n){"use strict";var i=n(69);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 new r("Can't convert number to bigint");return BigInt(e)}},function(t,e,n){"use strict";n(448)("Float64",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){"use strict";n(448)("Int8",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){"use strict";n(448)("Int16",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){"use strict";n(448)("Int32",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){"use strict";n(448)("Uint8",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){"use strict";n(448)("Uint8",(function(t){return function(e,n,i){return t(this,e,n,i)}}),!0)},function(t,e,n){"use strict";n(448)("Uint16",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){"use strict";n(448)("Uint32",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){"use strict";var i=n(217),r=n(63),o=n(61),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(217),o=i(n(144)),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(217),r=n(83).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(217),r=n(149),o=n(455),s=n(69),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(217),r=n(83).filter,o=n(469),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(198),r=n(470);t.exports=function(t,e){return i(r(t),e)}},function(t,e,n){"use strict";var i=n(217),r=n(219),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(217),r=n(83).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(217),r=n(83).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(217),r=n(154).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(217),r=n(154).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(217),r=n(83).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(449);(0,n(217).exportTypedArrayStaticMethod)("from",n(453),i)},function(t,e,n){"use strict";var i=n(217),r=n(59).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(217),r=n(59).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(217),a=n(168),c=n(33)("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,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(c,x,v||!y,{name:"values"})},function(t,e,n){"use strict";var i=n(217),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(217),r=n(94),o=n(175),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(217),r=n(83).map,o=n(470),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(217),r=n(449),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(217),r=n(181).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(217),r=n(181).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(217),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(217),s=n(63),a=n(450),c=n(39),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 new l("Wrong length");for(;u<o;)this[e+u]=n[u++]}),!v||y)},function(t,e,n){"use strict";var i=n(217),r=n(470),o=n(7),s=n(76),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(217),r=n(83).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(85),o=n(7),s=n(30),a=n(188),c=n(217),u=n(189),l=n(190),h=n(27),f=n(191),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),{})}))),x=!!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),x?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))}),!x||y)},function(t,e,n){"use strict";var i=n(217),r=n(64),o=n(60),s=n(470),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(94),o=n(217),s=n(7),a=n(76),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(196),r=n(217),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(217),r=n(14),o=n(30),s=n(198),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(217).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(205),r=n(217),o=n(454),s=n(61),a=n(455),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(68),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(499)},function(t,e,n){"use strict";var i,r=n(259),o=n(4),s=n(14),a=n(209),c=n(256),u=n(255),l=n(500),h=n(20),f=n(51).enforce,d=n(7),g=n(52),p=Object,v=Array.isArray,y=p.isExtensible,x=p.isFrozen,b=p.isSealed,m=p.freeze,_=p.seal,w=!o.ActiveXObject&&"ActiveXObject"in o,T=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},A=u("WeakMap",T,l),S=A.prototype,E=s(S.set);if(g)if(w){i=l.getConstructor(T,"WeakMap",!0),c.enable();var k=s(S.delete),O=s(S.has),M=s(S.get);a(S,{delete:function(t){if(h(t)&&!y(t)){var e=f(this);return e.frozen||(e.frozen=new i),k(this,t)||e.frozen.delete(t)}return k(this,t)},has:function(t){if(h(t)&&!y(t)){var e=f(this);return e.frozen||(e.frozen=new i),O(this,t)||e.frozen.has(t)}return O(this,t)},get:function(t){if(h(t)&&!y(t)){var e=f(this);return e.frozen||(e.frozen=new i),O(this,t)?M(this,t):e.frozen.get(t)}return M(this,t)},set:function(t,e){if(h(t)&&!y(t)){var n=f(this);n.frozen||(n.frozen=new i),O(this,t)?E(this,t,e):n.frozen.set(t,e)}else E(this,t,e);return this}})}else r&&d((function(){var t=m([]);return E(new A,t,1),!x(t)}))&&a(S,{set:function(t,e){var n;return v(t)&&(x(t)?n=m:b(t)&&(n=_)),E(this,t,e),n&&n(t),this}})},function(t,e,n){"use strict";var i=n(14),r=n(209),o=n(256).getWeakData,s=n(210),a=n(46),c=n(17),u=n(20),l=n(130),h=n(83),f=n(38),d=n(51),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=[]},w=function(t,e){return v(t.entries,(function(t){return t[0]===e}))};_.prototype={get:function(t){var e=w(this,t);if(e)return e[1]},has:function(t){return!!w(this,t)},set:function(t,e){var n=w(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=y(this.entries,(function(e){return e[0]===t}));return~e&&x(this.entries,e,1),!!~e}},t.exports={getConstructor:function(t,e,n,i){var h=t((function(t,r){s(t,d),g(t,{type:e,id:b++,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(502)},function(t,e,n){"use strict";n(255)("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(500))},function(t,e,n){"use strict";var i=n(3),r=n(4),o=n(23),s=n(14),a=n(8),c=n(7),u=n(68),l=n(342),h=n(504).c2i,f=/[^\d+/a-z]/i,d=/[\t\n\f\r ]+/g,g=/[=]{1,2}$/,p=o("atob"),v=String.fromCharCode,y=s("".charAt),x=s("".replace),b=s(f.exec),m=!!p&&!c((function(){return"hi"!==p("aGk=")})),_=m&&c((function(){return""!==p(" ")})),w=m&&!c((function(){p("a")})),T=m&&!c((function(){p()})),A=m&&1!==p.length;i({global:!0,bind:!0,enumerable:!0,forced:!m||_||w||T||A},{atob:function(t){if(l(arguments.length,1),m&&!_&&!w)return a(p,r,t);var e,n,i,s=x(u(t),d,""),c="",T=0,A=0;if(s.length%4==0&&(s=x(s,g,"")),(e=s.length)%4==1||b(f,s))throw new(o("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;T<e;)n=y(s,T++),i=A%4?64*i+h[n]:h[n],A++%4&&(c+=v(255&i>>(-2*A&6)));return c}})},function(t){"use strict";var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=e+"+/",i=e+"-_",r=function(t){for(var e={},n=0;n<64;n++)e[t.charAt(n)]=n;return e};t.exports={i2c:n,c2i:r(n),i2cUrl:i,c2iUrl:r(i)}},function(t,e,n){"use strict";var i=n(3),r=n(4),o=n(23),s=n(14),a=n(8),c=n(7),u=n(68),l=n(342),h=n(504).i2c,f=o("btoa"),d=s("".charAt),g=s("".charCodeAt),p=!!f&&!c((function(){return"aGk="!==f("hi")})),v=p&&!c((function(){f()})),y=p&&c((function(){return"bnVsbA=="!==f(null)})),x=p&&1!==f.length;i({global:!0,bind:!0,enumerable:!0,forced:!p||v||y||x},{btoa:function(t){if(l(arguments.length,1),p)return a(f,r,u(t));for(var e,n,i=u(t),s="",c=0,v=h;d(i,c)||(v="=",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(v,63&(e=e<<8|n)>>8-c%1*8)}return s}})},function(t,e,n){"use strict";var i=n(4),r=n(507),o=n(508),s=n(160),a=n(43),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(42)("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(507),o=n(508),s=n(168),a=n(43),c=n(82),u=n(33)("iterator"),l=s.values,h=function(t,e){if(t){if(t[u]!==l)try{a(t,u,l)}catch(e){t[u]=l}if(c(t,e,!0),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 f in r)h(i[f]&&i[f].prototype,f);h(o,"DOMTokenList")},function(t,e,n){"use strict";var i=n(3),r=n(229),o=n(23),s=n(7),a=n(71),c=n(11),u=n(44).f,l=n(47),h=n(77),f=n(38),d=n(210),g=n(46),p=n(125),v=n(119),y=n(511),x=n(122),b=n(51),m=n(6),_=n(36),w="DOMException",T="DATA_CLONE_ERR",A=o("Error"),S=o(w)||function(){try{(new(o("MessageChannel")||r("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(t){if(t.name===T&&25===t.code)return t.constructor}}(),E=S&&S.prototype,k=A.prototype,O=b.set,M=b.getterFor(w),R="stack"in new A(w),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:w,name:n,message:e,code:i}),m||(this.name=n,this.message=e,this.code=i),R){var r=new A(e);r.name=w,u(this,"stack",c(1,x(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 z=s((function(){return!(new S instanceof A)})),N=z||s((function(){return k.toString!==p||"2: 1"!==String(new S(1,2))})),F=z||s((function(){return 25!==new S(1,"DataCloneError").code})),j=z||25!==S[T]||25!==E[T],B=_?N||F||j:z;i({global:!0,constructor:!0,forced:B},{DOMException:B?I:S});var $=o(w),X=$.prototype;for(var U in N&&(_||S===$)&&l(X,"toString",p),F&&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=c(6,Y.c);f($,V)||u($,V,G),f(X,V)||u(X,V,G)}},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(23),s=n(11),a=n(44).f,c=n(38),u=n(210),l=n(118),h=n(119),f=n(511),d=n(122),g=n(6),p=n(36),v="DOMException",y=o("Error"),x=o(v),b=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 x(e,n),r=new y(e);return r.name=v,a(i,"stack",s(1,d(r.stack,1))),l(i,this,b),i},m=b.prototype=x.prototype,_="stack"in new y(v),w="stack"in new x(1,2),T=x&&g&&Object.getOwnPropertyDescriptor(r,v),A=!(!T||T.writable&&T.configurable),S=_&&!A&&!w;i({global:!0,constructor:!0,forced:p||S},{DOMException:S?b:x});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(23),r="DOMException";n(82)(i(r),r)},function(t,e,n){"use strict";n(515),n(516)},function(t,e,n){"use strict";var i=n(3),r=n(4),o=n(341).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(341).set,s=n(517),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(94),s=n(21),a=n(518),c=n(28),u=n(76),l=n(342),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(344),o=n(30),s=n(342);i({global:!0,enumerable:!0,dontCallGetSet:!0},{queueMicrotask:function(t){s(arguments.length,1),r(o(t))}})},function(t,e,n){"use strict";var i=n(3),r=n(4),o=n(77),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 new 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(23),c=n(14),u=n(7),l=n(40),h=n(21),f=n(89),d=n(17),g=n(20),p=n(22),v=n(130),y=n(46),x=n(69),b=n(38),m=n(141),_=n(43),w=n(63),T=n(342),A=n(382),S=n(262),E=n(522),k=n(523),O=n(228),M=n(123),R=n(230),C=s.Object,I=s.Array,P=s.Date,L=s.Error,D=s.TypeError,z=s.PerformanceMark,N=a("DOMException"),F=S.Map,j=S.has,B=S.get,$=S.set,X=E.Set,U=E.add,Y=E.has,V=a("Object","keys"),G=c([].push),H=c((!0).valueOf),W=c(1..valueOf),q=c("".valueOf),Z=c(P.prototype.getTime),K=l("structuredClone"),J="DataCloneError",Q="Transferring",tt=function(t){return!u((function(){var e=new s.Set([7]),n=t(e),i=t(C(7));return n===e||!n.has(7)||!g(i)||7!=+i}))&&t},et=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)}))},nt=s.structuredClone,it=r||!et(nt,L)||!et(nt,N)||(i=nt,!!u((function(){var t=i(new s.AggregateError([1],K,{cause:3}));return"AggregateError"!==t.name||1!==t.errors[0]||t.message!==K||3!==t.cause}))),rt=!nt&&tt((function(t){return new z(K,{detail:t}).detail})),ot=tt(nt)||rt,st=function(t){throw new N("Uncloneable type: "+t,J)},at=function(t,e){throw new N((e||"Cloning")+" of "+t+" cannot be properly polyfilled in this engine",J)},ct=function(t,e){return ot||at(e),ot(t)},ut=function(t,e,n){if(j(e,t))return B(e,t);var i,r,o,a,c,u;if("SharedArrayBuffer"===(n||x(t)))i=ot?ot(t):t;else{var l=s.DataView;l||h(t.slice)||at("ArrayBuffer");try{if(h(t.slice)&&!t.resizable)i=t.slice(0);else{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))}}catch(t){throw new N("ArrayBuffer is detached",J)}}return $(e,t,i),i},lt=function(t,e){if(p(t)&&st("Symbol"),!g(t))return t;if(e){if(j(e,t))return B(e,t)}else e=new F;var n,i,r,o,c,u,l,f,d=x(t);switch(d){case"Array":r=I(w(t));break;case"Object":r={};break;case"Map":r=new F;break;case"Set":r=new X;break;case"RegExp":r=new RegExp(t.source,A(t));break;case"Error":switch(i=t.name){case"AggregateError":r=new(a(i))([]);break;case"EvalError":case"RangeError":case"ReferenceError":case"SuppressedError":case"SyntaxError":case"TypeError":case"URIError":r=new(a(i));break;case"CompileError":case"LinkError":case"RuntimeError":r=new(a("WebAssembly",i));break;default:r=new L}break;case"DOMException":r=new N(t.message,t.name);break;case"ArrayBuffer":case"SharedArrayBuffer":r=ut(t,e,d);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":u="DataView"===d?t.byteLength:t.length,r=function(t,e,n,i,r){var o=s[e];return g(o)||at(e),new o(ut(t.buffer,r),n,i)}(t,d,t.byteOffset,u,e);break;case"DOMQuad":try{r=new DOMQuad(lt(t.p1,e),lt(t.p2,e),lt(t.p3,e),lt(t.p4,e))}catch(e){r=ct(t,d)}break;case"File":if(ot)try{r=ot(t),x(r)!==d&&(r=void 0)}catch(t){}if(!r)try{r=new File([t],t.name,t)}catch(t){}r||at(d);break;case"FileList":if(o=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(c=0,u=w(t);c<u;c++)o.items.add(lt(t[c],e));r=o.files}else r=ct(t,d);break;case"ImageData":try{r=new ImageData(lt(t.data,e),t.width,t.height,{colorSpace:t.colorSpace})}catch(e){r=ct(t,d)}break;default:if(ot)r=ot(t);else switch(d){case"BigInt":r=C(t.valueOf());break;case"Boolean":r=C(H(t));break;case"Number":r=C(W(t));break;case"String":r=C(q(t));break;case"Date":r=new P(Z(t));break;case"Blob":try{r=t.slice(0,t.size,t.type)}catch(t){at(d)}break;case"DOMPoint":case"DOMPointReadOnly":n=s[d];try{r=n.fromPoint?n.fromPoint(t):new n(t.x,t.y,t.z,t.w)}catch(t){at(d)}break;case"DOMRect":case"DOMRectReadOnly":n=s[d];try{r=n.fromRect?n.fromRect(t):new n(t.x,t.y,t.width,t.height)}catch(t){at(d)}break;case"DOMMatrix":case"DOMMatrixReadOnly":n=s[d];try{r=n.fromMatrix?n.fromMatrix(t):new n(t)}catch(t){at(d)}break;case"AudioData":case"VideoFrame":h(t.clone)||at(d);try{r=t.clone()}catch(t){st(d)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":at(d);default:st(d)}}switch($(e,t,r),d){case"Array":case"Object":for(l=V(t),c=0,u=w(l);c<u;c++)f=l[c],m(r,f,lt(t[f],e));break;case"Map":t.forEach((function(t,n){$(r,lt(n,e),lt(t,e))}));break;case"Set":t.forEach((function(t){U(r,lt(t,e))}));break;case"Error":_(r,"message",lt(t.message,e)),b(t,"cause")&&_(r,"cause",lt(t.cause,e)),"AggregateError"===i?r.errors=lt(t.errors,e):"SuppressedError"===i&&(r.error=lt(t.error,e),r.suppressed=lt(t.suppressed,e));case"DOMException":M&&_(r,"stack",lt(t.stack,e))}return r};o({global:!0,enumerable:!0,sham:!R,forced:it},{structuredClone:function(t){var e,n,i=T(arguments.length,1)>1&&!d(arguments[1])?y(arguments[1]):void 0,r=i?i.transfer:void 0;void 0!==r&&(n=function(t,e){if(!g(t))throw new D("Transfer option cannot be converted to a sequence");var n=[];v(t,(function(t){G(n,y(t))}));for(var i,r,o,a,c,u=0,l=w(n),d=new X;u<l;){if(i=n[u++],"ArrayBuffer"===(r=x(i))?Y(d,i):j(e,i))throw new N("Duplicate transferable",J);if("ArrayBuffer"!==r){if(R)a=nt(i,{transfer:[i]});else switch(r){case"ImageBitmap":o=s.OffscreenCanvas,f(o)||at(r,Q);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)||at(r,Q);try{a=i.clone(),i.close()}catch(t){}break;case"MediaSourceHandle":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":at(r,Q)}if(void 0===a)throw new N("This object cannot be transferred: "+r,J);$(e,i,a)}else U(d,i)}return d}(r,e=new F));var o=lt(t,e);return n&&function(t){k(t,(function(t){R?ot(t,{transfer:[t]}):h(t.transfer)?t.transfer():O?O(t):at("ArrayBuffer",Q)}))}(n),o}})},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(14),r=n(524),o=n(522),s=o.Set,a=o.proto,c=i(a.forEach),u=i(a.keys),l=u(new s).next;t.exports=function(t,e,n){return n?r({iterator:u(t),next:l},e):c(t,e)}},function(t,e,n){"use strict";var i=n(8);t.exports=function(t,e,n){for(var r,o,s=n?t:t.iterator,a=t.next;!(r=i(a,s)).done;)if(void 0!==(o=e(r.value)))return o}},function(t,e,n){"use strict";n(526),n(527)},function(t,e,n){"use strict";var i=n(3),r=n(4),o=n(517)(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(517)(r.setTimeout,!0);i({global:!0,bind:!0,forced:r.setTimeout!==o},{setTimeout:o})},function(t,e,n){"use strict";n(529)},function(t,e,n){"use strict";n(405);var i,r=n(3),o=n(6),s=n(530),a=n(4),c=n(84),u=n(14),l=n(47),h=n(77),f=n(210),d=n(38),g=n(305),p=n(162),v=n(76),y=n(398).codeAt,x=n(531),b=n(68),m=n(82),_=n(342),w=n(532),T=n(51),A=T.set,S=T.getterFor("URL"),E=w.URLSearchParams,k=w.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),z=u(1..toString),N=u([].pop),F=u([].push),j=u("".replace),B=u([].shift),$=u("".split),X=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+=z(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(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={},wt={},Tt={},At={},St={},Et={},kt={},Ot={},Mt={},Rt={},Ct={},It={},Pt={},Lt={},Dt={},zt={},Nt=function(t,e,n){var i,r,o,s=b(t);if(e){if(r=this.parse(s))throw new M(r);this.searchParams=null}else{if(void 0!==n&&(i=new Nt(n,!0)),r=this.parse(s,null,i))throw new M(r);(o=k(new E)).bindURL(this),this.searchParams=o}};Nt.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,x=!1;for(t=b(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=xt;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=xt,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=bt:u.isSpecial()?l=Tt:"/"===r[h+1]?(l=mt,h++):(u.cannotBeABaseURL=!0,F(u.path,""),l=Lt)}break;case xt: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=zt;break}l="file"===n.scheme?Mt:_t;continue;case bt: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=wt;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=zt}break;case wt: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 Tt: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(":"!==_||x){var w=ht(_,lt);x?u.password+=w:u.username+=w}else x=!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 T=R(f,10);if(T>65535)return H;u.port=u.isSpecial()&&T===ft[u.scheme]?null:T,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=zt;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=zt;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=zt)}else f+=ht(o,ut);break;case Lt:"?"===o?(u.query="",l=Dt):"#"===o?(u.fragment="",l=zt):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=zt);break;case zt: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}(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,o,s,a,c=$(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=X(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=N(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 new 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(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?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?"":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,zt)):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 Nt(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 $t=O.createObjectURL,Xt=O.revokeObjectURL;$t&&l(Ft,"createObjectURL",c($t,O)),Xt&&l(Ft,"revokeObjectURL",c(Xt,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(33),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),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 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 new c(a);for(u+=(m-s)*_,s=m,n=0;n<t.length;n++){if((i=t[n])<s&&++u>r)throw new c(a);if(i===s){for(var w=u,T=36;;){var A=T<=p?1:T>=p+26?26:T-p;if(w<A)break;var S=w-A,E=36-A;g(e,h(x(A+S%E))),w=l(S/E),T+=36}g(e,h(x(w))),p=b(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(168);var i=n(3),r=n(4),o=n(345),s=n(8),a=n(14),c=n(6),u=n(530),l=n(47),h=n(77),f=n(209),d=n(82),g=n(170),p=n(51),v=n(210),y=n(21),x=n(38),b=n(84),m=n(69),_=n(46),w=n(20),T=n(68),A=n(71),S=n(11),E=n(133),k=n(134),O=n(172),M=n(342),R=n(33),C=n(188),I=R("iterator"),P="URLSearchParams",L=P+"Iterator",D=p.set,z=p.getterFor(P),N=p.getterFor(L),F=o("fetch"),j=o("Request"),B=o("Headers"),$=j&&j.prototype,X=B&&B.prototype,U=r.RegExp,Y=r.TypeError,V=r.decodeURIComponent,G=r.encodeURIComponent,H=a("".charAt),W=a([].join),q=a([].push),Z=a("".replace),K=a([].shift),J=a([].splice),Q=a("".split),tt=a("".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=g((function(t,e){D(this,{type:L,target:z(t).entries,index:0,kind:e})}),P,(function(){var t=N(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=void 0,O(void 0,!0);var i=e[n];switch(t.kind){case"keys":return O(i.key,!1);case"values":return O(i.value,!1)}return O([i.key,i.value],!1)}),!0),ht=function(t){this.entries=[],this.url=null,void 0!==t&&(w(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===H(t,0)?tt(t,1):t:T(t)))};ht.prototype={type:P,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,n,i,r,o,a,c,u=this.entries,l=k(t);if(l)for(n=(e=E(t,l)).next;!(i=s(n,e)).done;){if(o=(r=E(_(i.value))).next,(a=s(o,r)).done||(c=s(o,r)).done||!s(o,r).done)throw new Y("Expected sequence with length 2");q(u,{key:T(a.value),value:T(c.value)})}else for(var h in t)x(t,h)&&q(u,{key:h,value:T(t[h])})},parseQuery:function(t){if(t)for(var e,n,i=this.entries,r=Q(t,"&"),o=0;o<r.length;)(e=r[o++]).length&&(n=Q(e,"="),q(i,{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(){v(this,dt);var t=D(this,new ht(arguments.length>0?arguments[0]:void 0));c||(this.size=t.entries.length)},dt=ft.prototype;if(f(dt,{append:function(t,e){var n=z(this);M(arguments.length,2),q(n.entries,{key:T(t),value:T(e)}),c||this.length++,n.updateURL()},delete:function(t){for(var e=z(this),n=M(arguments.length,1),i=e.entries,r=T(t),o=n<2?void 0:arguments[1],s=void 0===o?o:T(o),a=0;a<i.length;){var u=i[a];if(u.key!==r||void 0!==s&&u.value!==s)a++;else if(J(i,a,1),void 0!==s)break}c||(this.size=i.length),e.updateURL()},get:function(t){var e=z(this).entries;M(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=z(this).entries;M(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=z(this).entries,n=M(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=z(this);M(arguments.length,1);for(var i,r=n.entries,o=!1,s=T(t),a=T(e),u=0;u<r.length;u++)(i=r[u]).key===s&&(o?J(r,u--,1):(o=!0,i.value=a));o||q(r,{key:s,value:a}),c||(this.size=r.length),n.updateURL()},sort:function(){var t=z(this);C(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,n=z(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}),l(dt,I,dt.entries,{name:"entries"}),l(dt,"toString",(function(){return z(this).serialize()}),{enumerable:!0}),c&&h(dt,"size",{get:function(){return z(this).entries.length},configurable:!0,enumerable:!0}),d(ft,P),i({global:!0,constructor:!0,forced:!u},{URLSearchParams:ft}),!u&&y(B)){var gt=a(X.has),pt=a(X.set),vt=function(t){if(w(t)){var e,n=t.body;if(m(n)===P)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"),A(t,{body:S(0,T(n)),headers:S(0,e)})}return t};if(y(F)&&i({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return F(t,arguments.length>1?vt(arguments[1]):{})}}),y(j)){var yt=function(t){return v(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:z}},function(t,e,n){"use strict";var i=n(3),r=n(23),o=n(7),s=n(342),a=n(68),c=n(530),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(532)},function(t,e,n){"use strict";var i=n(47),r=n(14),o=n(68),s=n(342),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(47),r=n(14),o=n(68),s=n(342),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(77),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 Qp},default:function(){return Qp}});var i={};n.r(i),n.d(i,{area:function(){return Qg},areaLineRange:function(){return tp},areaSpline:function(){return ep},areaSplineRange:function(){return np},areaStep:function(){return ip},bar:function(){return fp},bubble:function(){return dp},candlestick:function(){return gp},donut:function(){return ap},gauge:function(){return cp},line:function(){return rp},pie:function(){return up},polar:function(){return lp},radar:function(){return hp},scatter:function(){return pp},spline:function(){return op},step:function(){return sp},treemap:function(){return vp}});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 qp},subchart:function(){return Zp},zoom:function(){return Kp}});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),x=v(1),b=v(2),m=v(3),_=v(4),w=v(5),T=v(6);y.range,x.range,b.range,m.range,_.range,w.range,T.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 z=void 0;const N=c(function(t){o(this,z),t.setMonth(0,1),t.setHours(0,0,0,0)}.bind(void 0),function(t,e){o(this,z),t.setFullYear(t.getFullYear()+e)}.bind(void 0),function(t,e){return o(this,z),e.getFullYear()-t.getFullYear()}.bind(void 0),function(t){return o(this,z),t.getFullYear()}.bind(void 0));N.every=function(t){var e=this;return o(this,z),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);N.range;const F=c(function(t){o(this,z),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}.bind(void 0),function(t,e){o(this,z),t.setUTCFullYear(t.getUTCFullYear()+e)}.bind(void 0),function(t,e){return o(this,z),e.getUTCFullYear()-t.getUTCFullYear()}.bind(void 0),function(t){return o(this,z),t.getUTCFullYear()}.bind(void 0));F.every=function(t){var e=this;return o(this,z),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 $(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)+"",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 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 wt(t,e){return K(t.getHours(),e,2)}function Tt(t,e){return K(t.getHours()%12||12,e,2)}function At(t,e){return K(1+P.count(N(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(N(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(N(t),t)+(4===N(t).getDay()),e,2)}function Lt(t){return t.getDay()}function Dt(t,e){return K(x.count(N(t)-1,t),e,2)}function zt(t,e){return K(t.getFullYear()%100,e,2)}function Nt(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 $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(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)}}X=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),b=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:Nt,G:jt,H:wt,I:Tt,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:zt,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:$t,e:$t,f:Gt,g:ie,G:oe,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: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},w={a:function(t,e,n){var i=d.exec(e.slice(n));return i?(t.w=g.get(i[0].toLowerCase()),n+i[0].length):-1},A:function(t,e,n){var i=h.exec(e.slice(n));return i?(t.w=f.get(i[0].toLowerCase()),n+i[0].length):-1},b:function(t,e,n){var i=y.exec(e.slice(n));return i?(t.m=b.get(i[0].toLowerCase()),n+i[0].length):-1},B:function(t,e,n){var i=p.exec(e.slice(n));return i?(t.m=v.get(i[0].toLowerCase()),n+i[0].length):-1},c:function(t,n,i){return 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:bt,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,"%":xt};function T(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=$(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($(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($(o.y,0,1))).getDay(),i=r>4||0===r?x.ceil(i):x(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($(o.y,0,1)).getUTCDay():j($(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=w[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=T(n,m),m.X=T(i,m),m.c=T(e,m),_.x=T(n,_),_.X=T(i,_),_.c=T(e,_),{format:function(t){var e=T(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=T(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 we(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Te(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 we(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 we(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}we.prototype={constructor:we,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 ze(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Ne(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 $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 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 xn(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 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 wn,Tn=n(540),An=Tn.mark(Sn);function Sn(){var t,e,n,i,r,o,s;return Tn.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=(wn={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?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 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:Te,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,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(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:Ne:n.local?ze: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,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?xn: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))}},wn[Symbol.iterator]=Sn,wn);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)&&"function"==typeof(null==t?void 0:t.cancelAnimationFrame),i="function"==typeof(null==t?void 0:t.requestIdleCallback)&&"function"==typeof(null==t?void 0:t.cancelIdleCallback),r=function(t){return o(this,e),setTimeout(t,1)}.bind(this),s=function(t){return o(this,e),clearTimeout(t)}.bind(this);return[n?t.requestAnimationFrame:r,n?t.cancelAnimationFrame:s,i?t.requestIdleCallback:r,i?t.cancelIdleCallback:s]}(Cn),Ln=Pn[0],Dn=(Pn[1],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"}),Nn={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"},Fn={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 jn(t){return jn="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},jn(t)}function Bn(t){var e=function(t,e){if("object"!=jn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=jn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==jn(e)?e:String(e)}function $n(t,e,n){return(e=Bn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Xn(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 Un={value:function(){o(this,undefined)}.bind(void 0)};function Yn(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t);i[t]=[]}return new Vn(i)}function Vn(t){this._=t}function Gn(t,e){for(var n,i=0,r=t.length;i<r;++i)if((n=t[i]).name===e)return n.value}function Hn(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=Un,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}Vn.prototype=Yn.prototype={constructor:Vn,on:function(t,e){var n,i,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]=Hn(r[n],t.name,e);else if(null==e)for(n in r)r[n]=Hn(r[n],t.name,null);return this}for(;++s<a;)if((n=(t=o[s]).type)&&(n=Gn(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Vn(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,r=Array(n),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 Wn=Yn;const qn={passive:!1},Zn={capture:!0,passive:!1};function Kn(t){t.stopImmediatePropagation()}function Jn(t){t.preventDefault(),t.stopImmediatePropagation()}function Qn(t){var e=t.document.documentElement,n=Rn(t).on("dragstart.drag",Jn,Zn);"onselectstart"in e?n.on("selectstart.drag",Jn,Zn):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function ti(t,e){var n=t.document.documentElement,i=Rn(t).on("dragstart.drag",null);e&&(i.on("click.drag",Jn,Zn),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 ei(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function ni(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function ii(){}var ri=.7,oi=1/ri,si=/^#([0-9a-f]{3,8})$/,ai=new RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),ci=new RegExp("^rgb\\(\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),ui=new RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),li=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*\\)$"),hi=new RegExp("^hsl\\(\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),fi=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*\\)$"),di={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 gi(){return this.rgb().formatHex()}function pi(){return this.rgb().formatRgb()}function vi(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=si.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?yi(e):3===n?new mi(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=ai.exec(t))?new mi(e[1],e[2],e[3],1):(e=ci.exec(t))?new mi(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ui.exec(t))?xi(e[1],e[2],e[3],e[4]):(e=li.exec(t))?xi(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=hi.exec(t))?Ei(e[1],e[2]/100,e[3]/100,1):(e=fi.exec(t))?Ei(e[1],e[2]/100,e[3]/100,e[4]):di.hasOwnProperty(t)?yi(di[t]):"transparent"===t?new mi(NaN,NaN,NaN,0):null}function yi(t){return new mi(t>>16&255,t>>8&255,255&t,1)}function xi(t,e,n,i){return i<=0&&(t=e=n=NaN),new mi(t,e,n,i)}function bi(t,e,n,i){return 1===arguments.length?((r=t)instanceof ii||(r=vi(r)),r?new mi((r=r.rgb()).r,r.g,r.b,r.opacity):new mi):new mi(t,e,n,null==i?1:i);var r}function mi(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function _i(){return"#"+Si(this.r)+Si(this.g)+Si(this.b)}function wi(){const t=Ti(this.opacity);return(1===t?"rgb(":"rgba(")+Ai(this.r)+", "+Ai(this.g)+", "+Ai(this.b)+(1===t?")":", "+t+")")}function Ti(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ai(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Si(t){return((t=Ai(t))<16?"0":"")+t.toString(16)}function Ei(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Oi(t,e,n,i)}function ki(t){if(t instanceof Oi)return new Oi(t.h,t.s,t.l,t.opacity);if(t instanceof ii||(t=vi(t)),!t)return new Oi;if(t instanceof Oi)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 Oi(s,a,c,t.opacity)}function Oi(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function Mi(t){return(t=(t||0)%360)<0?t+360:t}function Ri(t){return Math.max(0,Math.min(1,t||0))}function Ci(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 Ii(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}ei(ii,vi,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:gi,formatHex:gi,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ki(this).formatHsl()},formatRgb:pi,toString:pi}),ei(mi,bi,ni(ii,{brighter:function(t){return t=null==t?oi:Math.pow(oi,t),new mi(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?ri:Math.pow(ri,t),new mi(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},clamp:function(){return new mi(Ai(this.r),Ai(this.g),Ai(this.b),Ti(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:_i,formatHex:_i,formatHex8:function(){return"#"+Si(this.r)+Si(this.g)+Si(this.b)+Si(255*(isNaN(this.opacity)?1:this.opacity))},formatRgb:wi,toString:wi})),ei(Oi,(function(t,e,n,i){return 1===arguments.length?ki(t):new Oi(t,e,n,null==i?1:i)}),ni(ii,{brighter:function(t){return t=null==t?oi:Math.pow(oi,t),new Oi(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?ri:Math.pow(ri,t),new Oi(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 mi(Ci(t>=240?t-240:t+120,r,i),Ci(t,r,i),Ci(t<120?t+240:t-120,r,i),this.opacity)},clamp:function(){return new Oi(Mi(this.h),Ri(this.s),Ri(this.l),Ti(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=Ti(this.opacity);return(1===t?"hsl(":"hsla(")+Mi(this.h)+", "+100*Ri(this.s)+"%, "+100*Ri(this.l)+"%"+(1===t?")":", "+t+")")}}));var Pi=function(t){var e=this;return o(this,undefined),function(){return o(this,e),t}.bind(this)}.bind(void 0);function Li(t,e){return function(n){return t+n*e}}function Di(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):Pi(isNaN(e)?n:e)}}function zi(t,e){var n=e-t;return n?Li(t,n):Pi(isNaN(t)?e:t)}var Ni=function t(e){var n=Di(e);function i(t,e){var i=n((t=bi(t)).r,(e=bi(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 Fi(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=bi(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+""}}}Fi((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 Ii((n-i/e)*e,s,r,o,a)}})),Fi((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 Ii((n-i/e)*e,r,o,s,a)}}));function ji(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 Bi(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]=Wi(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 Xi(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function Ui(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Yi(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]=Wi(t[n],e[n]):r[n]=e[n];return function(t){for(n in i)r[n]=i[n](t);return r}}var Vi=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Gi=new RegExp(Vi.source,"g");function Hi(t,e){var n,i,r,o=Vi.lastIndex=Gi.lastIndex=0,s=-1,a=[],c=[];for(t+="",e+="";(n=Vi.exec(t))&&(i=Gi.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:Ui(n,i)})),o=Gi.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 Wi(t,e){var n,i=typeof e;return null==e||"boolean"===i?Pi(e):("number"===i?Ui:"string"===i?(n=vi(e))?(e=n,Ni):Hi:e instanceof vi?Ni:e instanceof Date?Xi:Bi(e)?ji:Array.isArray(e)?$i:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Yi:Ui)(t,e)}var qi,Zi,Ki=0,Ji=0,Qi=0,tr=1e3,er=0,nr=0,ir=0,rr="object"==typeof performance&&performance.now?performance:Date,or="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function sr(){return nr||(or(ar),nr=rr.now()+ir)}function ar(){nr=0}function cr(){this._call=this._time=this._next=null}function ur(t,e,n){var i=new cr;return i.restart(t,e,n),i}function lr(){nr=(er=rr.now())+ir,Ki=Ji=0;try{!function(){sr(),++Ki;for(var t,e=qi;e;)(t=nr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ki}()}finally{Ki=0,function(){var t,e,n=qi,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:qi=e);Zi=t,fr(i)}(),nr=0}}function hr(){var t=rr.now(),e=t-er;e>tr&&(ir-=e,er=t)}function fr(t){Ki||(Ji&&(Ji=clearTimeout(Ji)),t-nr>24?(t<1/0&&(Ji=setTimeout(lr,t-rr.now()-ir)),Qi&&(Qi=clearInterval(Qi))):(Qi||(er=rr.now(),Qi=setInterval(hr,tr)),Ki=1,or(lr)))}function dr(t,e,n){var i=this,r=new cr;return e=null==e?0:+e,r.restart(function(n){o(this,i),r.stop(),t(n+e)}.bind(this),e,n),r}cr.prototype=ur.prototype={constructor:cr,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?sr():+n)+(null==e?0:+e),this._next||Zi===this||(Zi?Zi._next=this:qi=this,Zi=this),this._call=t,this._time=n,fr()},stop:function(){this._call&&(this._call=null,this._time=1/0,fr())}};var gr=Wn("start","end","cancel","interrupt"),pr=[],vr=0,yr=1,xr=2,br=3,mr=4,_r=5,wr=6;function Tr(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!==yr)return a();for(u in r)if((f=r[u]).name===n.name){if(f.state===br)return dr(o);f.state===mr?(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(dr((function(){n.state===br&&(n.state=mr,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=br,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=_r,1),o=-1,s=i.length;++o<s;)i[o].call(t,r);n.state===_r&&(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=ur((function(t){n.state=yr,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:gr,tween:pr,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:vr})}function Ar(t,e){var n=Er(t,e);if(n.state>vr)throw new Error("too late; already scheduled");return n}function Sr(t,e){var n=Er(t,e);if(n.state>br)throw new Error("too late; already running");return n}function Er(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function kr(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<_r,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 Or,Mr=180/Math.PI,Rr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Cr(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)*Mr,skewX:Math.atan(c)*Mr,scaleX:s,scaleY:a}}function Ir(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:Ui(t,r)},{i:c-2,x:Ui(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:Ui(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:Ui(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:Ui(t,n)},{i:a-2,x:Ui(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 Pr=Ir((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Rr:Cr(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),Lr=Ir((function(t){return null==t?Rr:(Or||(Or=document.createElementNS("http://www.w3.org/2000/svg","g")),Or.setAttribute("transform",t),(t=Or.transform.baseVal.consolidate())?Cr((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Rr)}),", ",")",")");function Dr(t,e){var n,i;return function(){var r=Sr(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=Sr(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 Nr(t,e,n){var i=t._id;return t.each((function(){var t=Sr(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return Er(t,i).value[e]}}function Fr(t,e){var n;return("number"==typeof e?Ui:e instanceof vi?Ni:(n=vi(e))?(e=n,Ni):Hi)(t,e)}function jr(t){return function(){this.removeAttribute(t)}}function Br(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 Xr(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 Ur(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 Yr(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 Vr(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 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.setAttribute(t,e.call(this,n))}}(t,r)),n}return r._value=e,r}function Hr(t,e){return function(){Ar(this,t).delay=+e.apply(this,arguments)}}function Wr(t,e){return e=+e,function(){Ar(this,t).delay=e}}function qr(t,e){return function(){Sr(this,t).duration=+e.apply(this,arguments)}}function Zr(t,e){return e=+e,function(){Sr(this,t).duration=e}}var Kr,Jr=Mn.prototype.constructor;function Qr(t){return function(){this.style.removeProperty(t)}}var to=0;function eo(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function no(t){return Mn().transition(t)}function io(){return++to}var ro=Mn.prototype;eo.prototype=no.prototype=(Kr={constructor:eo,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,Tr(h[f],e,n,f,h,Er(a,n)));return new eo(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=Er(c,n),p=0,v=d.length;p<v;++p)(f=d[p])&&Tr(f,e,n,p,d,g);o.push(d),s.push(c)}return new eo(o,s,e,n)},selectChild:ro.selectChild,selectChildren:ro.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 eo(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 eo(s,this._parents,this._name,this._id)},selection:function(){return new Jr(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=io(),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=Er(s,e);Tr(s,t,n,u,a,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new eo(i,this._parents,t,n)},call:ro.call,nodes:ro.nodes,node:ro.node,size:ro.size,empty:ro.empty,each:ro.each,on:function(t,e){var n=this._id;return arguments.length<2?Er(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)?Ar:Sr;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?Lr:Fr;return this.attrTween(t,"function"==typeof e?(n.local?Yr:Ur)(n,i,Nr(this,"attr."+t,e)):null==e?(n.local?Br:jr)(n):(n.local?Xr:$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?Vr:Gr)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?Pr:Fr;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,Qr(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,Nr(this,"style."+t,e))).each(function(t,e){var n,i,r,o,s="style."+e;return function(){var a=Sr(this,t),c=a.on,u=null==a.value[s]?o||(o=Qr(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}}(Nr(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=Er(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?Dr:zr)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Hr:Wr)(e,t)):Er(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?qr:Zr)(e,t)):Er(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(){Sr(this,t).ease=e}}(e,t)):Er(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;Sr(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=Sr(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()}))}},Kr[Symbol.iterator]=ro[Symbol.iterator],Kr);var oo={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function so(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(){kr(this,t)}))},Mn.prototype.transition=function(t){var e,n;t instanceof eo?(e=t._id,t=t._name):(e=io(),(n=oo).time=sr(),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])&&Tr(s,t,e,u,a,n||so(s,e));return new eo(i,this._parents,t,e)};var ao=function(t){var e=this;return o(this,undefined),function(){return o(this,e),t}.bind(this)}.bind(void 0);function co(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 uo(t){t.preventDefault(),t.stopImmediatePropagation()}function lo(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 ho(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 ho(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 ho(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 fo={name:"drag"},go={name:"space"},po={name:"handle"},vo={name:"center"};const yo=Math.abs,xo=Math.max,bo=Math.min;function mo(t){return[+t[0],+t[1]]}function _o(t){return[mo(t[0]),mo(t[1])]}var wo={name:"x",handles:["w","e"].map(Mo),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]]}},To={name:"y",handles:["n","s"].map(Mo),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]]}},Ao=(["n","w","e","s","nw","ne","sw","se"].map(Mo),{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"}),So={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Eo={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},ko={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Oo={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Mo(t){return{type:t}}function Ro(t){return!t.ctrlKey&&!t.button}function Co(){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 Io(){return navigator.maxTouchPoints||"ontouchstart"in this}function Po(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Lo(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function Do(t){var e,n=Co,i=Ro,r=Io,s=!0,a=Wn("start","brush","end"),c=6;function u(e){var n=e.property("__brush",v).selectAll(".overlay").data([Mo("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Ao.overlay).merge(n).each((function(){var t=Po(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([Mo("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Ao.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 Ao[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=Po(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,x,b,m=this,_=n.target.__data__.type,w="selection"===(s&&n.metaKey?_="overlay":_)?fo:s&&n.altKey?vo:po,T=t===To?null:ko[_],A=t===wo?null:Oo[_],S=Po(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=T&&A&&s&&n.shiftKey,D=Array.from(n.touches||[n],function(t){o(this,r);const e=t.identifier;return(t=Xn(t,m)).point0=t.slice(),t.identifier=e,t}.bind(this));kr(m);var z=h(m,arguments,!0).beforestart();if("overlay"===_){k&&(y=!0);const e=[D[0],D[1]||D[0]];S.selection=k=[[a=t===To?O:bo(e[0][0],e[1][0]),u=t===wo?M:bo(e[0][1],e[1][1])],[d=t===To?R:xo(e[0][0],e[1][0]),p=t===wo?C:xo(e[0][1],e[1][1])]],D.length>1&&$(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 N=Rn(m).attr("pointer-events","none"),F=N.selectAll(".overlay").attr("cursor",Ao[_]);if(n.touches)z.moved=B,z.ended=X;else{var j=Rn(n.view).on("mousemove.brush",B,!0).on("mouseup.brush",X,!0);s&&j.on("keydown.brush",(function(t){switch(t.keyCode){case 16:L=T&&A;break;case 18:w===po&&(T&&(d=g-I*T,a=c+I*T),A&&(p=v-P*A,u=f+P*A),w=vo,$(t));break;case 32:w!==po&&w!==vo||(T<0?d=g-I:T>0&&(a=c-I),A<0?p=v-P:A>0&&(u=f-P),w=go,F.attr("cursor",Ao.selection),$(t));break;default:return}uo(t)}),!0).on("keyup.brush",(function(t){switch(t.keyCode){case 16:L&&(x=b=L=!1,$(t));break;case 18:w===vo&&(T<0?d=g:T>0&&(a=c),A<0?p=v:A>0&&(u=f),w=po,$(t));break;case 32:w===go&&(t.altKey?(T&&(d=g-I*T,a=c+I*T),A&&(p=v-P*A,u=f+P*A),w=vo):(T<0?d=g:T>0&&(a=c),A<0?p=v:A>0&&(u=f),w=po),F.attr("cursor",Ao[_]),$(t));break;default:return}uo(t)}),!0),Qn(n.view)}l.call(m),z.start(n,w.name)}function B(t){for(var e,n=lo(t.changedTouches||[t]);!(e=n()).done;){const t=e.value;for(var i,r=lo(D);!(i=r()).done;){const e=i.value;e.identifier===t.identifier&&(e.cur=Xn(t,m))}}if(L&&!x&&!b&&1===D.length){const t=D[0];yo(t.cur[0]-t[0])>yo(t.cur[1]-t[1])?b=!0:x=!0}for(var o,s=lo(D);!(o=s()).done;){const t=o.value;t.cur&&(t[0]=t.cur[0],t[1]=t.cur[1])}y=!0,uo(t),$(t)}function $(t){const e=D[0],n=e.point0;var i;switch(I=e[0]-n[0],P=e[1]-n[1],w){case go:case fo:T&&(I=xo(O-a,bo(R-d,I)),c=a+I,g=d+I),A&&(P=xo(M-u,bo(C-p,P)),f=u+P,v=p+P);break;case po:D[1]?(T&&(c=xo(O,bo(R,D[0][0])),g=xo(O,bo(R,D[1][0])),T=1),A&&(f=xo(M,bo(C,D[0][1])),v=xo(M,bo(C,D[1][1])),A=1)):(T<0?(I=xo(O-a,bo(R-a,I)),c=a+I,g=d):T>0&&(I=xo(O-d,bo(R-d,I)),c=a,g=d+I),A<0?(P=xo(M-u,bo(C-u,P)),f=u+P,v=p):A>0&&(P=xo(M-p,bo(C-p,P)),f=u,v=p+P));break;case vo:T&&(c=xo(O,bo(R,a-I*T)),g=xo(O,bo(R,d+I*T))),A&&(f=xo(M,bo(C,u-P*A)),v=xo(M,bo(C,p+P*A)))}g<c&&(T*=-1,i=a,a=d,d=i,i=c,c=g,g=i,_ in So&&F.attr("cursor",Ao[_=So[_]])),v<f&&(A*=-1,i=u,u=p,p=i,i=f,f=v,v=i,_ in Eo&&F.attr("cursor",Ao[_=Eo[_]])),S.selection&&(k=S.selection),x&&(c=k[0][0],g=k[1][0]),b&&(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),z.brush(t,w.name))}function X(t){if(function(t){t.stopImmediatePropagation()}(t),t.touches){if(t.touches.length)return;e&&clearTimeout(e),e=setTimeout((function(){e=null}),500)}else ti(t.view,y),j.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);N.attr("pointer-events","all"),F.attr("cursor",Ao.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)),z.end(t,w.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=_o(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=Wi(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();kr(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 co(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:ao(_o(t)),u):n},u.filter=function(t){return arguments.length?(i="function"==typeof t?t:ao(!!t),u):i},u.touchable=function(t){return arguments.length?(r="function"==typeof t?t:ao(!!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 No(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 Fo(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?No(Object(e),!0).forEach((function(n){$n(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):No(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}const jo=function(t){return o(this,zo),t||0===t}.bind(void 0),Bo=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),Xo=function(t){return o(this,zo),"number"==typeof t}.bind(void 0),Uo=function(t){return o(this,zo),void 0===t}.bind(void 0),Yo=function(t){return o(this,zo),void 0!==t}.bind(void 0),Vo=function(t){return o(this,zo),"boolean"==typeof t}.bind(void 0),Go=function(t){return o(this,zo),10*Math.ceil(t/10)}.bind(void 0),Ho=function(t){return o(this,zo),Math.ceil(t)+.5}.bind(void 0),Wo=function(t){return o(this,zo),t[1]-t[0]}.bind(void 0),qo=function(t){return o(this,zo),"object"==typeof t}.bind(void 0),Zo=function(t){return o(this,zo),Uo(t)||null===t||$o(t)&&0===t.length||qo(t)&&!(t instanceof Date)&&0===Object.keys(t).length||Xo(t)&&isNaN(t)}.bind(void 0),Ko=function(t){return o(this,zo),!Zo(t)}.bind(void 0),Jo=function(t){return o(this,zo),Array.isArray(t)}.bind(void 0),Qo=function(t){return o(this,zo),t&&!(null!=t&&t.nodeType)&&qo(t)&&!Jo(t)}.bind(void 0);function ts(t,e,n){return Yo(t[e])?t[e]:n}function es(t,e){const n=Bo(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 ns(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 is(t){return $o(t)?t.replace(/<(script|img)?/gi,"<").replace(/(script)?>/gi,">"):t}function rs(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 os(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 ss(t){const e=t.getBoundingClientRect(),n=e.width,i=e.height,r=os(t);return{x:r[0].x,y:Math.min(r[0].y,r[1].y),width:n,height:i}}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=Xn(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=Lo(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={}),Jo(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){var e,n,i,r,o,s;return{x:null!=(e=(null!=(n=null!=(i=Cn.pageXOffset)?i:Cn.scrollX)?n:0)+t.scrollLeft)?e:0,y:null!=(r=(null!=(o=null!=(s=Cn.pageYOffset)?s:Cn.scrollY)?o:0)+t.scrollTop)?r:0}}function ys(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 xs(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 ms(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 Qo(t)&&Qo(s)&&Object.keys(s).forEach(function(n){o(this,e);const i=s[n];Qo(i)?(t[n]||(t[n]={}),t[n]=ms(t[n],i)):t[n]=Jo(i)?i.concat():i}.bind(this)),ms.apply(void 0,[t].concat(i))}function _s(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 ws(t,e){var n=this;let i=e.filter(function(t){return o(this,n),Ko(t)}.bind(this));return i.length?Xo(i[0])?i=Math[t].apply(Math,i):i[0]instanceof Date&&(i=_s(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),As={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(ms({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 Ss(t,e){let n=t;for(const t in e)n=n.replace(new RegExp("{="+t+"}","g"),e[t]);return n}function Es(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 Xo(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 ks(){return!1===(null==In?void 0:In.hidden)||"visible"===(null==In?void 0:In.visibilityState)}function Os(t,e){var n=this;!1===e()?Ln(function(){return o(this,n),Os(t,e)}.bind(this)):t()}function Ms(t){const e=t,n=e.config;let i="";if(Zo(n.data_type||n.data_types)&&!e[Nn.LINE])i="line";else for(const t in Nn){const n=zn[t];if(e.hasType(n)&&!e[Nn[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 Rs(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 Cs(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?Rs(Object(e),!0).forEach((function(n){$n(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Rs(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}const Is={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_"},Ps={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcRange:"bb-arc-range",arcs:"bb-arcs",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsTitle:"bb-chart-arcs-title",needle:"bb-needle"},Ls={area:"bb-area",areas:"bb-areas"},Ds={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"},zs={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"},Fs={chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"},js={colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"},Bs={dragarea:"bb-dragarea",INCLUDED:"_included_"},$s={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"},Us={chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"},Ys={eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"},Vs={focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"},Gs={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"},Hs="bb-level",Ws="bb-levels",qs={chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"},Zs={region:"bb-region",regions:"bb-regions"},Ks={selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"},Js={shape:"bb-shape",shapes:"bb-shapes"},Qs={brush:"bb-brush",subchart:"bb-subchart"},ta={chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",TextOverlapping:"text-overlapping"},ea={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},na={treemap:"bb-treemap",chartTreemap:"bb-chart-treemap",chartTreemaps:"bb-chart-treemaps"},ia={buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"};var ra=Cs(Cs(Cs(Cs(Cs(Cs(Cs(Cs(Cs(Cs(Cs(Cs(Cs(Cs(Cs(Cs(Cs(Cs(Cs(Cs(Cs(Cs(Cs(Cs({},Is),Ps),Ls),Ds),zs),Ns),Fs),js),Bs),$s),Xs),Us),Ys),Vs),Gs),qs),Zs),Ks),Js),Qs),ta),ea),na),ia);const oa={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,maxTickSize:{x:{width:0,height:0,ticks:[],clipPath:0,domain:""},y:{width:0,height:0,domain:""},y2:{width:0,height: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 sa=function(){function t(){var t=this;Object.keys(oa).forEach(function(e){o(this,t),this[e]=new oa[e]}.bind(this))}return t.prototype.getStore=function(t){return this[t]},t}();var aa={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:[]},ca={boost_useCssRule:!1,boost_useWorker:!1},ua=void 0,la={data_x:void 0,data_idConverter:function(t){return o(this,ua),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,ua)}.bind(void 0),data_onover:function(){o(this,ua)}.bind(void 0),data_onout:function(){o(this,ua)}.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:""},ha={color_pattern:[],color_tiles:void 0,color_threshold:{},color_onover:void 0},fa={interaction_enabled:!0,interaction_brighten:!0,interaction_inputType_mouse:!0,interaction_inputType_touch:{}},da={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_format:void 0,legend_padding:0,legend_position:"bottom",legend_show:!0,legend_tooltip:!1,legend_usePoint:!1},ga={title_text:void 0,title_padding:{top:0,right:0,bottom:0,left:0},title_position:"center"},pa=void 0,va={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,pa)}.bind(void 0),tooltip_onhide:function(){o(this,pa)}.bind(void 0),tooltip_onshown:function(){o(this,pa)}.bind(void 0),tooltip_onhidden:function(){o(this,pa)}.bind(void 0),tooltip_order:null};function ya(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function xa(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?ya(Object(e),!0).forEach((function(n){$n(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):ya(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),Qo(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),Fo(Fo({},e),n)}.bind(this))}(aa,ca,la,ha,fa,da,ga,va,t.data)}return t.setOptions=function(t){var e=this;this.data=t.reduce(function(t,n){return o(this,e),xa(xa({},t),n)}.bind(this),this.data)},t}();ba.data={};const ma="$baseLength",_a="__colorPattern__",wa="$dataMinMax",Ta="$dataTotalSum",Aa="$totalPerIndex",Sa="legendItemTextBox",Ea="$radarPoints",ka="$radarTextWidth",Oa="setOverOut",Ma="callOverOutForTouch",Ra="textRect";let Ca=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 jo(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 Ia=Cn.setTimeout,Pa=Cn.clearTimeout;function La(){let t=[];const e=function(e,n){var i=this;Os(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===ks()){e=t.length;break}try{n.transition()}catch(t){e++}}return e===t.length}))};return e.add=function(e){Jo(e)?t=t.concat(e):t.push(e)},e}const Da={};function za(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 Da||(Da[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(Da[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 Na={},Fa={};function ja(t){return new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'})).join(",")+"}")}function Ba(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 $a(t,e){var n=t+"",i=n.length;return i<e?Array(e-i+1).join(0)+n:n}function Xa(t){var e,n=t.getUTCHours(),i=t.getUTCMinutes(),r=t.getUTCSeconds(),o=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":((e=t.getUTCFullYear())<0?"-"+$a(-e,6):e>9999?"+"+$a(e,6):$a(e,4))+"-"+$a(t.getUTCMonth()+1,2)+"-"+$a(t.getUTCDate(),2)+(o?"T"+$a(n,2)+":"+$a(i,2)+":"+$a(r,2)+"."+$a(o,3)+"Z":r?"T"+$a(n,2)+":"+$a(i,2)+":"+$a(r,2)+"Z":i||n?"T"+$a(n,2)+":"+$a(i,2)+"Z":"")}function Ua(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 Fa;if(u)return u=!1,Na;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())!==Fa;){for(var h=[];i!==Na&&i!==Fa;)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?Xa(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=ja(t);return function(i,r){return e(n(i),r,t)}}(t,e):ja(t)}));return o.columns=r||[],o},parseRows:i,format:function(e,n){return null==n&&(n=Ba(e)),[n.map(s).join(t)].concat(r(e,n)).join("\n")},formatBody:function(t,e){return null==e&&(e=Ba(t)),r(t,e).join("\n")},formatRows:function(t){return t.map(o).join("\n")},formatRow:o,formatValue:s}}var Ya=Ua(","),Va=Ya.parse,Ga=Ya.parseRows,Ha=(Ya.format,Ya.formatBody,Ya.formatRows,Ya.formatRow,Ya.formatValue,Ua("\t")),Wa=Ha.parse,qa=Ha.parseRows;Ha.format,Ha.formatBody,Ha.formatRows,Ha.formatRow,Ha.formatValue;function Za(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 Ka(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 Ja(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=Ka(n)}else Object.keys(t).forEach((function(e){const i=t[e].concat();null==i.unshift||i.unshift(e),n.push(i)})),r=Za(n);return r}function Qa(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 tc(t){return Qa({rows:Ga,parse:Va},t)}function ec(t){return Qa({rows:qa,parse:Wa},t)}function nc(t,e){const n=t||(null==e?void 0:e.data_keys);return null!=n&&n.x&&(e.data_x=n.x),n}var ic={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:tc,tsv:ec,json:Ja};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,nc(s.keys,i),e);else if(s.json)za(r,Ja,e,[Za,Ka])(s.json,nc(s.keys,i));else if(s.rows)za(r,Ka,e)(s.rows);else if(s.columns)za(r,Za,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(jo).map(function(t,e){return o(this,a),i.generateTargetX(t,r,e)}.bind(this))):s.data_x?p=this.getOtherTargetXs():Ko(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)||Qo(y)?Jo(y)||Qo(y)?y:null:+y,!d&&!a.hasRadar||0!==r||Uo(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))),(Uo(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),Yo(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}},rc={isX:function(t){const e=this.config,n=e.data_x&&t===e.data_x,i=Ko(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:Ko(e.data_xs)?e.data_xs[t]:null},getXValuesOfXKey:function(t,e){var n=this;const i=this;let r;return(e&&Ko(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]&&jo(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 Ko(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&&jo(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=Es.bind(i);o=r(t||i.getXValue(e,n))}else null==r||!r.isCustomX()||null!=r&&r.isCategorized()||(o=jo(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 Yo(e)?e:null},getNextX:function(t){const e=this.axis.xs[t+1];return Yo(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(Xo);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=wa;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=Aa;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]+=Xo(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(!Xo(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=_s(xs(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?Jo(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=xs(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)),_s(i)},addTargetIds:function(t,e){var n=this;const i=this.state;(Jo(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;(Jo(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),jo(e)||null===e}.bind(this)).forEach(function(t){o(this,c);let e=t.value;null!==e&&n.isCandlestickType(t)&&(e=Jo(e)?e.slice(0,4):[e.open,e.high,e.low,e.close]),Jo(e)?u.push.apply(u,e):Qo(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),i=function(t){return o(this,e),Xo(t)?t:"values"in t?t.values.reduce(n,0):t.value}.bind(this);a=function(n,s){o(this,e);const a=i(n),c=i(s);return t?r?a-c:c-a:r?c-a:a-c}.bind(this)}else Bo(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),jo(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 Vo(t)&&t||qo(t)&&Ko(t)},getDataIndexFromEvent:function(t){const e=this,n=e.$el,i=e.config,r=e.state,o=r.hasRadar,s=r.inputType,a=r.eventReceiver,c=a.coords,u=a.rect;let l;if(o){let e=t.target;/tspan/i.test(e.tagName)&&(e=e.parentNode);const n=Rn(e).datum();l=n&&1===Object.keys(n).length?n.index:void 0}else{const e=i.axis_rotated,r=vs(n.chart.node()),o="touch"===s&&t.changedTouches?t.changedTouches[0]:t;l=hs(c,e?o.clientY+r.y-u.top:o.clientX+r.x-u.left,0,c.length-1,e)}return l},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&&jo(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)?"."+zs.chartBar+"."+Is.target+i.getTargetSelectorSuffix(t.id)+" ."+zs.bar+"-"+t.index:"."+Ns.chartCandlestick+"."+Is.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=Jo(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=Jo(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 Uo(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){var i=this;void 0===e&&(e=""),void 0===n&&(n="areaRange");const r=null==t?void 0:t.value;if(Jo(r)){if("bar"===n)return r.reduce(function(t,e){return o(this,i),e-t}.bind(this));{const t={areaRange:["high","mid","low"],candlestick:["open","high","low","close","volume"]}[n].indexOf(e);return t>=0&&r?r[t]:void 0}}return r&&e?r[e]:r},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.getStartingAngle(),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),(Xo(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=Xo(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 n=r.getYScaleById.bind(r)(e.id).domain().reduce(function(t,e){return o(this,i),e-t}.bind(this));u=0===n?0:Math.abs(r.getRangedData(e,null,t)/n)}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)&&(Qo(t.value)&&("z"in t.value||"y"in t.value)||Jo(t.value)&&t.value.length>=2)},isBarRangeType:function(t){var e=this;const n=t.value;return this.isBarType(t)&&Jo(n)&&n.length>=2&&n.every(function(t){return o(this,e),Xo(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 oc(t,e){void 0===e&&(e=!1);const n=this.api;e&&this.api.flush(!0),null==t||t.call(n)}var sc={load:function(t,e){var n=this;const i=this,r=i.axis,s=i.data,a=i.org,c=i.scale,u=e.append,l={domain:null,currentDomain:null,x:null};let h=t;h&&(e.filter&&(h=h.filter(e.filter)),(e.type||e.types)&&h.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)),s.targets.forEach(function(t){o(this,n);for(let e=0;e<h.length;e++)if(t.id===h[e].id){t.values=u?t.values.concat(h[e].values):h[e].values,h.splice(e,1);break}}.bind(this)),s.targets=s.targets.concat(h)),i.updateTargets(s.targets),c.zoom&&(l.x=r.isCategorized()?c.x.orgScale():(a.xScale||c.x).copy(),l.domain=i.getXDomain(s.targets),l.x.domain(l.domain),l.currentDomain=i.zoom.getDomain(),i.withinRange(l.currentDomain,void 0,l.domain)||(c.x.domain(l.domain),c.zoom=null,i.$el.eventRect.property("__zoom",null))),i.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),c.zoom&&(a.xDomain=l.domain,a.xScale=l.x,r.isCategorized()&&(l.currentDomain=i.getZoomDomainValue(l.currentDomain),a.xDomain=i.getZoomDomainValue(a.xDomain),a.xScale=l.x.domain(a.xDomain)),i.updateCurrentZoomTransform(l.x,l.currentDomain)),i.updateTypesElements(),oc.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,c=!(null==i.hasLegendDefsPoint||!i.hasLegendDefsPoint());let u=e,l=t;if(i.cache.reset(),u||(u=function(){o(this,n)}.bind(this)),l=l.filter(function(t){return o(this,n),i.hasTarget(i.data.targets,t)}.bind(this)),!l||0===l.length)return void u();const h=s.svg.selectAll(l.map(function(t){return o(this,n),i.selectorTarget(t)}.bind(this)));a(h).style("opacity","0").remove().call(ns,u),l.forEach(function(t){var e,a=this;o(this,n);const u=i.getTargetSelectorSuffix(t);r.withoutFadeIn[t]=!1,s.legend&&s.legend.selectAll("."+Xs.legendItem+u).remove(),i.data.targets=i.data.targets.filter(function(e){return o(this,a),e.id!==t}.bind(this)),c&&(null==(e=s.defs)||e.select("#"+i.getDefsPointId(u)).remove())}.bind(this)),r.hasTreemap&&i.updateTargetsForTreemap(i.data.targets),i.updateTypesElements()}},ac=function(t){var e=this;return o(this,undefined),function(){return o(this,e),t}.bind(this)}.bind(void 0);function cc(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 uc(t){return!t.ctrlKey&&!t.button}function lc(){return this.parentNode}function hc(t,e){return null==e?{x:t.x,y:t.y}:e}function fc(){return navigator.maxTouchPoints||"ontouchstart"in this}function dc(){var t,e,n,i,r=uc,o=lc,s=hc,a=fc,c={},u=Wn("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,qn).on("touchend.drag touchcancel.drag",x).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=b(this,o.call(this,s,a),s,a,"mouse");c&&(Rn(s.view).on("mousemove.drag",g,Zn).on("mouseup.drag",p,Zn),Qn(s.view),Kn(s),n=!1,t=s.clientX,e=s.clientY,c("start",s))}}function g(i){if(Jn(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),ti(t.view,n),Jn(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=b(this,a,t,e,s[n].identifier,s[n]))&&(Kn(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])&&(Jn(t),n("drag",t,i[e]))}function x(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])&&(Kn(t),n("end",t,r[e]))}function b(t,e,n,i,r,o){var a,h,d,g=u.copy(),p=Xn(o||n,e);if(null!=(d=s.call(t,new cc("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=Xn(u||s,e),v=l}g.call(o,t,new cc(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:ac(!!t),f):r},f.container=function(t){return arguments.length?(o="function"==typeof t?t:ac(t),f):o},f.subject=function(t){return arguments.length?(s="function"==typeof t?t:ac(t),f):s},f.touchable=function(t){return arguments.length?(a="function"==typeof t?t:ac(!!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}cc.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var gc={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(Is.EXPANDED,!1),s.getShapeByIndex(a,e,n).classed(Is.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=Qo(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?na.treemap:Ps.arc;s(e,u.select("."+t+i.getTargetSelectorSuffix(e.id)).node())}else if(r.tooltip_grouped)t&&(a&&i.isPointFocusOnly()?i.showCircleFocus(i.getAllValuesOnIndex(e,!0)):i.setExpand(e,null,!0)),i.isMultipleX()||u.selectAll("."+Js.shape+"-"+e).each((function(t){s(t,this)}));else{const a=i.cache.get(Oa)||[],c=u.selectAll("."+Js.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(Oa,a)}}},callOverOutForTouch:function(t){const e=this,n=e.cache.get(Ma);(Qo(t)&&n?t.id!==n.id:t!==n)&&((n||Xo(n))&&e.setOverOut(!1,n),(t||Xo(t))&&e.setOverOut(!0,t),e.cache.add(Ma,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?dc().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("."+Ds.axis+"-"+e+" text")||f||(null==r.getArcElementByIdOrIndex?void 0:r.getArcElementByIdOrIndex(e)))?void 0:i.node();if(p){const i=r.isMultipleX(),s=o.axis_rotated;let h=p.getBoundingClientRect(),f=h.width,d=h.left,v=h.top;if(c&&!u&&!i){const t=a.coords[e];t?(f=t.w,d+=t.x,v+=t.y):(f=0,d=0,v=0)}const y=d+(n?n[0]:0)+(i||s?0:f/2),x=v+(n?n[1]:0)+(s?4:0);As[/^(mouse|click)/.test(t)?"mouse":"touch"](l?g.node():p,t,{screenX:y,screenY:x,clientX:y,clientY:x,bubbles:u})}},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()}},pc={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(ra[i?"shapes":"shape"],c[s]):"")+this.generateClass(ra[t],c[r?"id":s])).trim()}.bind(this)},getChartClass:function(t){var e=this;return function(n){return o(this,e),ra["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(ra.region,e)+" "+("class"in t?t.class:"")},classTarget:function(t){const e=this.config.data_classes[t];let n="";return e&&(n=" "+ra.target+"-"+e),this.generateClass(ra.target,t)+n},classFocus:function(t){return this.classFocused(t)+this.classDefocused(t)},classFocused:function(t){return" "+(this.state.focusedTargetIds.indexOf(t.id)>=0?ra.focused:"")},classDefocused:function(t){return" "+(this.state.defocusedTargetIds.indexOf(t.id)>=0?ra.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+"."+(ra.target+i)+" "+n+", "+e+"."+(ra.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"."+(ra.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 vc(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function yc(t,e){return yc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},yc(t,e)}function xc(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,yc(t,e)}function bc(t){return bc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},bc(t)}function mc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(mc=function(){return!!t})()}function _c(t){var e="function"==typeof Map?new Map:void 0;return _c=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;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,n)}function n(){return function(t,e,n){if(mc())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,e);var r=new(t.bind.apply(t,i));return n&&yc(r,n.prototype),r}(t,arguments,bc(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),yc(n,t)},_c(t)}function wc(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 Tc(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 Tc(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 Tc(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 Ac=function(t){function e(e,n){var i;if(void 0===n&&(n=Oc),i=t.call(this)||this,Object.defineProperties(vc(i),{_intern:{value:new Map},_key:{value:n}}),null!=e)for(var r,o=wc(e);!(r=o()).done;){const t=r.value,e=t[0],n=t[1];i.set(e,n)}return i}xc(e,t);var n=e.prototype;return n.get=function(e){return t.prototype.get.call(this,Sc(this,e))},n.has=function(e){return t.prototype.has.call(this,Sc(this,e))},n.set=function(e,n){return t.prototype.set.call(this,Ec(this,e),n)},n.delete=function(e){return t.prototype.delete.call(this,kc(this,e))},e}(_c(Map));Set;function Sc(t,e){let n=t._intern;const i=(0,t._key)(e);return n.has(i)?n.get(i):e}function Ec(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 kc(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 Oc(t){return null!==t&&"object"==typeof t?t.valueOf():t}function Mc(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Rc(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 Cc(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 Cc(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 Cc(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 Ic=Symbol("implicit");function Pc(){var t=new Ac,e=[],n=[],i=Ic;function r(r){let o=t.get(r);if(void 0===o){if(i!==Ic)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 Ac;for(var i,o=Rc(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 Pc(e,n).unknown(i)},Mc.apply(r,arguments),r}const Lc=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 Dc=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];var zc={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=Ko(i.color_pattern)?i.color_pattern:Pc(function(t){var e=this;const n=_a,i=In.body;let r=i[n];if(!r){const s=t.classed(js.colorPattern,!0).style("background-image");t.classed(js.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)||Dc).range();const u=c;if(Bo(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 Lc(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 Bo(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),Bo(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 Ko(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(""):Qo(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.hasPointType()&&n.point_radialGradient,l=e.isAreaType(i)?"area":e.isBarType(i)&&"bar";if((u||l)&&s.select("#"+c).empty()){const t=e.color(i),r={defs:null,stops:[]};if(u){const e=u,n=e.cx,i=void 0===n?.3:n,o=e.cy,a=void 0===o?.3:o,l=e.r,h=void 0===l?.7:l,f=e.stops,d=void 0===f?[[.1,t,0],[.9,t,1]]:f;r.stops=d,r.defs=s.append("radialGradient").attr("id",""+c).attr("cx",i).attr("cy",a).attr("r",h)}else{const e=n.axis_rotated,i=n[l+"_linearGradient"],o=i.x,a=void 0===o?e?[1,0]:[0,0]:o,u=i.y,h=void 0===u?e?[0,0]:[0,1]:u,f=i.stops,d=void 0===f?[[0,t,1],[1,t,0]]:f;r.stops=d,r.defs=s.append("linearGradient").attr("id",""+c).attr("x1",a[0]).attr("x2",a[1]).attr("y1",h[0]).attr("y2",h[1])}r.stops.forEach(function(n){o(this,a);const s=n[0],c=n[1],u=n[2],l=Bo(c)?c.bind(e.api)(i.id):c;r.defs&&r.defs.append("stop").attr("offset",s).attr("stop-color",l||t).attr("stop-opacity",u)}.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;Qo(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):Bo(a)&&(c=c.bind(i.api)),s.selectAll(Qo(e)?"."+Ps.arc+i.getTargetSelectorSuffix(e.id):"."+Js.shape+"-"+e).style("fill",c)}},Nc={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 ws(e,Object.keys(l).map(function(t){return o(this,n),ws(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,x=r.hasDataLabel()&&!a.axis_rotated;let b=r.getYDomainMinMax(f,"min"),m=r.getYDomainMinMax(f,"max"),_=[zn.BAR,zn.BUBBLE,zn.SCATTER].concat(Fn.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));b=jo(d)?d:jo(g)?b<=g?b:g-10:b,m=jo(g)?g:jo(d)?d<=m?m:d+10:m,isNaN(b)&&(b=0),isNaN(m)&&(m=b),b===m&&(b<0?m=0:b=0);const w=b>=0&&m>=0,T=b<=0&&m<=0;(jo(d)&&w||jo(g)&&T)&&(_=!1),_&&(w&&(b=0),T&&(m=0));const A=Math.abs(m-b);let S={top:.1*A,bottom:.1*A};if(Yo(p)){const t=Math.max(Math.abs(b),Math.abs(m));m=p+t,b=p-t}if(y){const t=Wo(c.y.range()),e=r.getDataLabelLength(b,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(x){const t=r.getDataLabelLength(b,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"];Ko(E)&&["bottom","top"].forEach(function(t){o(this,i),S[t]=s.getPadding(E,t,S[t],A)}.bind(this)),_&&(w&&(S.bottom=b),T&&(S.top=-m));const k=l?[b,m].map(function(t){return o(this,i),t<0?0:t}.bind(this)):[b-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=ws(e,t.map(function(t){var n=this;return o(this,i),ws(e,t.values.map(function(t){return o(this,n),t.x}.bind(this)))}.bind(this)));let a=Qo(r)?r.value:r;return a=Yo(a)&&null!=(n=this.axis)&&n.isTimeSeries()?Es.bind(this)(a):a,Qo(r)&&r.fit&&("min"===e&&a<s||"max"===e&&a>s)&&(a=void 0),Yo(a)?a:s},getXDomainPadding:function(t,e){const n=this,i=n.axis,r=n.config.axis_x_padding,o=i.isTimeSeries()&&e,s=Wo(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=Xo(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||_s(o.getXDomain(t),!s.axis_x_inverted)),a.xDomain=u.domain(),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)}return(n||e)&&h&&o.zoom.updateScaleExtent(),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[1]=+t[1]+(i-t[0]),t[0]=i),(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&&(Yo(i.zoom_x_min)&&(a=ws("min",[a,i.zoom_x_min])),Yo(i.zoom_x_max)&&(c=ws("max",[c,i.zoom_x_max]))),[a,c]},getZoomDomainValue:function(t){var e=this;const n=this.config;if(this.axis.isCategorized()&&Array.isArray(t)){const i=n.axis_x_inverted;return t.map(function(t,n){return o(this,e),+t+(0===n?+i:+!i)}.bind(this))}return t},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;void 0===e&&(e=[0,0]);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 Fc(t,e,n){const i=t.config,r="axis_"+e+"_tick_format";return(i[r]?i[r]:t.defaultValueFormat).call(t.api,n)}var jc={yFormat:function(t){return Fc(this,"y",t)},y2Format:function(t){return Fc(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 Jo(t)?t.join("~"):jo(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){o(this,e);let n=t;return Jo(t)?n=t.join("~"):Qo(t)&&(n=Object.values(t).join("~")),n}.bind(this);let r=i;return Bo(n.format)?r=n.format:qo(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 Bc(t){const e=this,n=e.getDataById(t);return e.levelColor?e.levelColor(n.values[0].value):e.color(n)}function $c(t,e){var n;void 0===e&&(e=!0);const i=this.config;let r=null!=(n=i.data_names[t])?n:t;return e&&Bo(i.legend_format)&&(r=i.legend_format(r)),r}var Xc={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=ts(u,"withTransition",!0),u.withTransitionForTransform=ts(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=Bo(s)?s.bind(e.api)(n,e.color(n),e.api.data(n)[0].values):Ss(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.getCurrentPaddingByDirection("top")+n.legend_inset_y+5.5:c.height-l-e.getCurrentPaddingByDirection("bottom")-n.legend_inset_y,left:o?e.getCurrentPaddingByDirection("left")+n.legend_inset_x+.5:c.width-u-e.getCurrentPaddingByDirection("right")-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(Vs.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(Vs.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&&Zo(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=Sa;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||Bo(s.legend_item_onclick)?function(t,e){if(!es(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(Vs.legendItemFocused,!1))}c&&n.hideTooltip()}:null),c||t.on("mouseout",h||Bo(s.legend_item_onout)?function(t,e){es(s.legend_item_onout,r,e)||(Rn(this).classed(Vs.legendItemFocused,!1),u&&n.undoMarkOverlapped(n,"."+$s.gaugeValue),n.api.revert())}:null).on("mouseover",h||Bo(s.legend_item_onover)?function(t,e){es(s.legend_item_onover,r,e)||(Rn(this).classed(Vs.legendItemFocused,!0),u&&n.markOverlapped(e,n,"."+$s.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),!Yo(r.data_names[t])||null!==r.data_names[t]}.bind(this)),x=e.withTransition,b=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,b,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")),r.legend_tooltip&&a.selectAll("title").data(y).text(function(t){return o(this,n),$c.bind(i)(t,!1)}.bind(this));const _=a.selectAll("text").data(y).text(function(t){return o(this,n),$c.bind(i)(t)}.bind(this)).each((function(t,e){b(this,t,e)}));c(_,x).attr("x",m.xText).attr("y",m.yText);c(a.selectAll("rect."+Xs.legendItemEvent).data(y),x).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,x,m),v&&c(v,x).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 x;const b=function(t,i){i||(x=(y-e.totalLength-v)/2,x<e.posMin&&(x=(y-v)/2,e.totalLength=0,e.step++)),n.steps[t]=e.step,n.margins[e.step]=s.isLegendInset?10:x,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)),x=(y-m*t.length)/2,x<e.posMin?(e.totalLength=0,e.step=0,t.forEach(function(t){return o(this,h),b(t)}.bind(this))):b(u,!0)):b(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),a.legend_tooltip&&v.append("title").text(function(t){return o(this,r),t}.bind(this)),v.append("text").text(function(t){return o(this,r),$c.bind(s)(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=Ko(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",Bc.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",Bc.bind(s)).style("pointer-events",s.getStylePropValue("none")).call(function(t){o(this,r),"circle"===f?t.attr("r",h).style("fill",Bc.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",Bc.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))}}},Uc={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,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),r.data_empty_label_text&&u.select("text."+ta.text+"."+Is.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,b,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("."+Ks.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?null!=i.hasLegendDefsPoint&&i.hasLegendDefsPoint()&&i.data.targets.forEach(i.point("create",this)):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)&&ks(),f=s.getRedrawList(u,e,l,h),d=function(){o(this,r),l&&l(),c.redrawing=!1,es(a.onrendered,s.api)}.bind(this);if(d)if(h&&f.length){const t=La();no().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,x=[];return u&&((a.grid_x_lines.length||a.grid_y_lines.length)&&x.push(s.redrawGrid(i)),a.regions.length&&x.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))&&x.push(s["redraw"+n](a,i))}.bind(this)),!e&&f.main&&x.push(s.updateGridFocus())),s.hasArcType()&&!l||Ko(a.data_labels)&&!1!==a.data_labels&&x.push(s.redrawText(v,y,e,i)),!s.hasPointType()&&!l||s.isPointFocusOnly()||s.redrawCircle&&x.push(s.redrawCircle(g,p,i,n)),h&&x.push(s.redrawTreemap(i)),x},updateAndRedraw:function(t){void 0===t&&(t={});const e=this,n=e.config,i=e.state;let r;t.withTransition=ts(t,"withTransition",!0),t.withTransform=ts(t,"withTransform",!1),t.withLegend=ts(t,"withLegend",!1),t.withUpdateXDomain=!0,t.withUpdateOrgXDomain=!0,t.withTransitionForExit=!1,t.withTransitionForTransform=ts(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 Yc=Math.sqrt(50),Vc=Math.sqrt(10),Gc=Math.sqrt(2);function Hc(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>=Yc?10:o>=Vc?5:o>=Gc?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?Hc(t,e,2*n):[a,c,u]}function Wc(t,e,n){if(!((n=+n)>0))return[];if((t=+t)===(e=+e))return[t];const i=e<t,r=i?Hc(e,t,n):Hc(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 qc(t,e,n){return Hc(t=+t,e=+e,n=+n)[2]}function Zc(t,e,n){n=+n;const i=(e=+e)<(t=+t),r=i?qc(e,t,n):qc(t,e,n);return(i?-1:1)*(r<0?1/-r:r)}function Kc(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Jc(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Qc(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=Kc,i=function(n,i){return o(this,e),Kc(t(n),i)}.bind(this),r=function(n,i){return o(this,e),t(n)-i}.bind(this)):(n=t===Kc||t===Jc?t:tu,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 tu(){return 0}const eu=Qc(Kc),nu=eu.right;eu.left,Qc((function(t){return null===t?NaN:+t})).center;var iu=nu;function ru(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function ou(t){return+t}var su=[0,1];function au(t){return t}function cu(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function uu(t,e,n){var i=t[0],r=t[1],o=e[0],s=e[1];return r<i?(i=cu(r,i),o=n(s,o)):(i=cu(i,r),o=n(o,s)),function(t){return o(i(t))}}function lu(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]=cu(t[s],t[s+1]),o[s]=n(e[s],e[s+1]);return function(e){var n=iu(t,e,1,i)-1;return o[n](r[n](e))}}function hu(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function fu(){var t,e,n,i,r,o,s=su,a=su,c=Wi,u=au;function l(){var t,e,n,c=Math.min(s.length,a.length);return u!==au&&(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?lu:uu,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),Ui)))(n)))},h.domain=function(t){return arguments.length?(s=Array.from(t,ou),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=ru,l()},h.clamp=function(t){return arguments.length?(u=!!t||au,l()):u!==au},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 du(){return fu()(au,au)}var gu,pu=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function vu(t){if(!(e=pu.exec(t)))throw new Error("invalid format: "+t);var e;return new yu({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 yu(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 xu(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 bu(t){return(t=xu(Math.abs(t)))?t[1]:NaN}function mu(t,e){var n=xu(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")}vu.prototype=yu.prototype,yu.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 _u=void 0,wu={"%":function(t,e){return o(this,_u),(100*t).toFixed(e)}.bind(void 0),b:function(t){return o(this,_u),Math.round(t).toString(2)}.bind(void 0),c:function(t){return o(this,_u),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,_u),t.toExponential(e)}.bind(void 0),f:function(t,e){return o(this,_u),t.toFixed(e)}.bind(void 0),g:function(t,e){return o(this,_u),t.toPrecision(e)}.bind(void 0),o:function(t){return o(this,_u),Math.round(t).toString(8)}.bind(void 0),p:function(t,e){return o(this,_u),mu(100*t,e)}.bind(void 0),r:mu,s:function(t,e){var n=xu(t,e);if(!n)return t+"";var i=n[0],r=n[1],o=r-(gu=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")+xu(t,Math.max(0,e+o-1))[0]},X:function(t){return o(this,_u),Math.round(t).toString(16).toUpperCase()}.bind(void 0),x:function(t){return o(this,_u),Math.round(t).toString(16)}.bind(void 0)};function Tu(t){return t}var Au,Su,Eu,ku=Array.prototype.map,Ou=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Mu(t){var e,n,i=void 0===t.grouping||void 0===t.thousands?Tu:(e=ku.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?Tu:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(ku.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=vu(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"):wu[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?o:/[%p]/.test(x)?c:"",_=wu[x],w=/[defgprs%]/.test(x);function T(t){var r,o,c,f=b,T=m;if("c"===x)T=_(t)+T,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,T=("s"===x?Ou[8+gu/3]:"")+T+(A&&"("===h?")":""),w)for(r=-1,o=t.length;++r<o;)if(48>(c=t.charCodeAt(r))||c>57){T=(46===c?s+t.slice(r+1):t.slice(r))+T,t=t.slice(0,r);break}}p&&!d&&(t=i(t,1/0));var S=f.length+t.length+T.length,E=S<g?Array(g-S+1).join(e):"";switch(p&&d&&(t=i(E+t,E.length?g-T.length:1/0),E=""),n){case"<":t=f+t+T+E;break;case"=":t=f+E+t+T;break;case"^":t=E.slice(0,S=E.length>>1)+f+t+T+E.slice(S);break;default:t=E+f+t+T}return a(t)}return v=void 0===v?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),T.toString=function(){return t+""},T}return{format:h,formatPrefix:function(t,e){var n=h(((t=vu(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(bu(e)/3))),r=Math.pow(10,-i),o=Ou[8+i/3];return function(t){return n(r*t)+o}}}}function Ru(t,e,n,i){var r,o=Zc(t,e,n);switch((i=vu(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(bu(e)/3)))-bu(Math.abs(t)))}(o,s))||(i.precision=r),Eu(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,bu(e)-bu(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,-bu(Math.abs(t)))}(o))||(i.precision=r-2*("%"===i.type))}return Su(i)}function Cu(t){var e=t.domain;return t.ticks=function(t){var n=e();return Wc(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var i=e();return Ru(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=qc(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 Iu(){var t=du();return t.copy=function(){return hu(t,Iu())},Mc.apply(t,arguments),Cu(t)}function Pu(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Lu(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Du(){var t=function(t){var e=1,n=t(Pu(e),Lu(e));return n.constant=function(n){return arguments.length?t(Pu(e=+n),Lu(e)):e},Cu(n)}(fu());return t.copy=function(){return hu(t,Du()).constant(t.constant())},Mc.apply(t,arguments)}function zu(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 Nu(t){return Math.log(t)}function Fu(t){return Math.exp(t)}function ju(t){return-Math.log(-t)}function Bu(t){return-Math.exp(-t)}function $u(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Xu(t){var e=this;return function(n,i){return o(this,e),-t(-n,i)}.bind(this)}function Uu(t){var e=this;const n=t(Nu,Fu),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?$u:t===Math.E?Math.exp:function(n){return o(this,e),Math.pow(t,n)}.bind(this)}(a),i()[0]<0?(r=Xu(r),s=Xu(s),t(ju,Bu)):t(Nu,Fu),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=Wc(c,u,v))}else y=Wc(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=vu(i)).precision||(i.trim=!0),i=Su(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(zu(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 Yu(){var t=this;const e=Uu(fu()).domain([1,10]);return e.copy=function(){return o(this,t),hu(e,Yu()).base(e.base())}.bind(this),Mc.apply(e,arguments),e}!function(t){Au=Mu(t),Su=Au.format,Eu=Au.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});var Vu=void 0;const Gu=c(function(){o(this,Vu)}.bind(void 0),function(t,e){o(this,Vu),t.setTime(+t+e)}.bind(void 0),function(t,e){return o(this,Vu),e-t}.bind(void 0));Gu.every=function(t){var e=this;return o(this,Vu),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)):Gu:null}.bind(void 0);Gu.range;var Hu=void 0;const Wu=c(function(t){o(this,Hu),t.setTime(t-t.getMilliseconds())}.bind(void 0),function(t,e){o(this,Hu),t.setTime(+t+e*u)}.bind(void 0),function(t,e){return o(this,Hu),(e-t)/u}.bind(void 0),function(t){return o(this,Hu),t.getUTCSeconds()}.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)}.bind(void 0),function(t,e){o(this,qu),t.setTime(+t+e*l)}.bind(void 0),function(t,e){return o(this,qu),(e-t)/l}.bind(void 0),function(t){return o(this,qu),t.getMinutes()}.bind(void 0)),Ku=(Zu.range,c(function(t){o(this,qu),t.setUTCSeconds(0,0)}.bind(void 0),function(t,e){o(this,qu),t.setTime(+t+e*l)}.bind(void 0),function(t,e){return o(this,qu),(e-t)/l}.bind(void 0),function(t){return o(this,qu),t.getUTCMinutes()}.bind(void 0)));Ku.range;var Ju=void 0;const Qu=c(function(t){o(this,Ju),t.setTime(t-t.getMilliseconds()-t.getSeconds()*u-t.getMinutes()*l)}.bind(void 0),function(t,e){o(this,Ju),t.setTime(+t+e*h)}.bind(void 0),function(t,e){return o(this,Ju),(e-t)/h}.bind(void 0),function(t){return o(this,Ju),t.getHours()}.bind(void 0)),tl=(Qu.range,c(function(t){o(this,Ju),t.setUTCMinutes(0,0,0)}.bind(void 0),function(t,e){o(this,Ju),t.setTime(+t+e*h)}.bind(void 0),function(t,e){return o(this,Ju),(e-t)/h}.bind(void 0),function(t){return o(this,Ju),t.getUTCHours()}.bind(void 0)));tl.range;var el=void 0;const nl=c(function(t){o(this,el),t.setDate(1),t.setHours(0,0,0,0)}.bind(void 0),function(t,e){o(this,el),t.setMonth(t.getMonth()+e)}.bind(void 0),function(t,e){return o(this,el),e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}.bind(void 0),function(t){return o(this,el),t.getMonth()}.bind(void 0)),il=(nl.range,c(function(t){o(this,el),t.setUTCDate(1),t.setUTCHours(0,0,0,0)}.bind(void 0),function(t,e){o(this,el),t.setUTCMonth(t.getUTCMonth()+e)}.bind(void 0),function(t,e){return o(this,el),e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}.bind(void 0),function(t){return o(this,el),t.getUTCMonth()}.bind(void 0)));il.range;function rl(t,e,n,i,r,s){const a=[[Wu,1,u],[Wu,5,5e3],[Wu,15,15e3],[Wu,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=Qc(function(t){let e=t[2];return o(this,r),e}.bind(this)).right(a,s);if(c===a.length)return t.every(Zc(e/p,n/p,i));if(0===c)return Gu.every(Math.max(Zc(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 ol=rl(F,il,S,D,tl,Ku),sl=ol[0],al=ol[1],cl=rl(N,nl,y,P,Qu,Zu),ul=cl[0],ll=cl[1];function hl(t){return new Date(t)}function fl(t){return t instanceof Date?+t:+new Date(+t)}function dl(t,e,n,i,r,o,s,a,c,u){var l=du(),h=l.invert,f=l.domain,d=u(".%L"),g=u(":%S"),p=u("%I:%M"),v=u("%I %p"),y=u("%a %d"),x=u("%b %d"),b=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: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,fl)):f().map(hl)},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(zu(n,t)):l},l.copy=function(){return hu(l,dl(t,e,n,i,r,o,s,a,c,u))},l}function gl(){return Mc.apply(dl(ul,ll,N,nl,y,P,Qu,Zu,Wu,U).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function pl(){return Mc.apply(dl(sl,al,F,il,S,L,tl,Ku,Wu,V).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function vl(t,e,n){void 0===t&&(t="linear"),void 0===e&&(e=0),void 0===n&&(n=1);const i={linear:Iu,log:Du,_log:Yu,time:gl,utc:pl}[t]();return i.type=t,/_?log/.test(t)&&i.clamp(!0),i.range([e,n])}var yl={getXScale:function(t,e,n,i){const r=this,o="append"!==r.state.loading&&r.scale.zoom||vl(r.axis.getAxisType("x"),t,e);return r.getCustomizedXScale(n?o.domain(n):o,i)},getYScale:function(t,e,n,i){const r=vl(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 x;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},b=e&&(null==(x=u.x)?void 0:x.orgDomain()),m=e&&c.xDomain;u.x=i.getXScale(v.x,y.x,b,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=Iu().rangeRound([t.left,h.width-t.right]),u.y=Iu().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(jo(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=Es.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 xl(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 bl(t){this._context=t}function ml(t){return new bl(t)}function _l(){}function wl(t){this._context=t}function Tl(t){return new wl(t)}function Al(t){this._context=t}function Sl(t){return new Al(t)}function El(t,e){this._basis=new bl(t),this._beta=e}bl.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:xl(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:xl(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},wl.prototype={areaStart:_l,areaEnd:_l,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:xl(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Al.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:xl(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},El.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 kl=function t(e){function n(t){return 1===e?new bl(t):new El(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function Ol(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 Ml(t,e){this._context=t,this._k=(1-e)/6}Ml.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:Ol(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:Ol(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 Rl=function t(e){function n(t){return new Ml(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Cl(t,e){this._context=t,this._k=(1-e)/6}Cl.prototype={areaStart:_l,areaEnd:_l,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:Ol(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Il=function t(e){function n(t){return new Cl(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Pl(t,e){this._context=t,this._k=(1-e)/6}Pl.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:Ol(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 Ll=function t(e){function n(t){return new Pl(t,e)}return n.tension=function(e){return t(+e)},n}(0);const Dl=Math.abs,zl=Math.atan2,Nl=Math.cos,Fl=Math.max,jl=Math.min,Bl=Math.sin,$l=Math.sqrt,Xl=1e-12,Ul=Math.PI,Yl=Ul/2,Vl=2*Ul;function Gl(t){return t>=1?Yl:t<=-1?-Yl:Math.asin(t)}function Hl(t,e,n){var i=t._x1,r=t._y1,o=t._x2,s=t._y2;if(t._l01_a>Xl){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>Xl){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 Wl(t,e){this._context=t,this._alpha=e}Wl.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:Hl(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 ql=function t(e){function n(t){return e?new Wl(t,e):new Ml(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Zl(t,e){this._context=t,this._alpha=e}Zl.prototype={areaStart:_l,areaEnd:_l,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:Hl(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 Kl=function t(e){function n(t){return e?new Zl(t,e):new Cl(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Jl(t,e){this._context=t,this._alpha=e}Jl.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:Hl(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 Ql=function t(e){function n(t){return e?new Jl(t,e):new Pl(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function th(t){return t<0?-1:1}function eh(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(th(o)+th(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs((o*r+s*i)/(i+r)))||0}function nh(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function ih(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 rh(t){this._context=t}function oh(t){this._context=new sh(t)}function sh(t){this._context=t}function ah(t){return new rh(t)}function ch(t){return new oh(t)}function uh(t){this._context=t}function lh(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 hh(t){return new uh(t)}function fh(t){this._context=t}function dh(t){return new fh(t)}function gh(t){this._context=t}function ph(t){return new gh(t)}function vh(t,e){this._context=t,this._t=e}function yh(t){return new vh(t,.5)}function xh(t){return new vh(t,0)}function bh(t){return new vh(t,1)}function mh(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}rh.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:ih(this,this._t0,nh(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,ih(this,nh(this,n=eh(this,t,e)),n);break;default:ih(this,this._t0,n=eh(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(oh.prototype=Object.create(rh.prototype)).point=function(t,e){rh.prototype.point.call(this,e,t)},sh.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)}},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=lh(t),r=lh(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)}},fh.prototype={areaStart:_l,areaEnd:_l,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))}},gh.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)}}},vh.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 _h={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=Ko(r),a={};let c=s?{}:0;return s&&xs(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]}Uo(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 Ko(s)?t[s[c]]:t},getIndicesMax:function(t){var e=this;return Ko(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=qo(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(Ko(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-(Xo(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 Xo(r)?s=r:n.isAreaRangeType(r)?s=n.getBaseValue(r,"mid"):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 x=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&&Xo(t)){(0!==f||("positive"===u&&t>0||"negative"===u&&t<0))&&(x+=p(t)-y)}}}.bind(this)),x}.bind(this)},circleY:function(t,e){const n=this,i=t.id;let r;return n.isGrouped(i)&&(r=mh.bind(n)(t)),r?r(t,e)[0][1]:n.getYScaleById(i)(n.getBaseValue(t))},getBarW:function(t,e,n){var i,r,s,a,c=this;const u=this,l=u.config,h=u.org,f=u.scale,d=u.getMaxDataCount(),g="bar"===t&&(null==(i=l.data_groups)?void 0:i.length),p=t+"_width",v=(null!=(r=null==u.getZoomTransform?void 0:u.getZoomTransform())?r:{k:1}).k,y=[null!=(s=l.axis_x_min)?s:h.xDomain[0],null!=(a=l.axis_x_max)?a:h.xDomain[1]].map(u.axis.isTimeSeries()?Es.bind(u):Number);let x=e.tickInterval(d);if(f.zoom&&!u.axis.isCategorized()&&v>1){const t=y.every(function(t,e){return o(this,c),t===h.xDomain[e]}.bind(this));x=h.xDomain.map(function(e,n){o(this,c);const i=t?e:e-Math.abs(y[n]);return f.zoom(i)}.bind(this)).reduce(function(t,e){return o(this,c),Math.abs(t)+e}.bind(this))/d}const b=function(t){o(this,c);const e=t?l[p][t]:l[p],i=t?e.ratio:l[p+"_ratio"],r=t?e.max:l[p+"_max"],s=Xo(e)?e:n?x*i/n:0;return r&&s>r?r:s}.bind(this);let m=b();return!g&&qo(l[p])&&(m={_$width:m,_$total:[]},u.filterTargetsToShow(u.data.targets).forEach(function(t){o(this,c),l[p][t.id]&&(m[t.id]=b(t.id),m._$total.push(m[t.id]||m._$width))}.bind(this))),m},getShapeByIndex:function(t,e,n){var i=this;const r=this,s=r.$el,a=jo(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),!jo(e)||t.index===e}.bind(this)):(n?s.main.selectAll("."+ra[t+"s"]+r.getTargetSelectorSuffix(n)):s.main).selectAll("."+ra[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(ra.bar)||n.isWithinBar(t)):r=!1,r},getInterpolate:function(t){const e=this.getInterpolateType(t);return{basis:ml,"basis-closed":Tl,"basis-open":Sl,bundle:kl,cardinal:Rl,"cardinal-closed":Il,"cardinal-open":Ll,"catmull-rom":ql,"catmull-rom-closed":Kl,"catmull-rom-open":Ql,"monotone-x":ah,"monotone-y":ch,natural:hh,"linear-closed":dh,linear:ph,step:yh,"step-after":bh,"step-before":xh}[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=os(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}},wh={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)},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.state.hasAxis,r=e.$el,o=n.axis_rotated,s=o||!o&&!n.axis_y_inner,a=o?Ds.axisX:Ds.axisY,c=r.main.select("."+a).node(),u=i&&n["axis_"+(o?"x":"y")+"_label"];let l=0;if(i&&($o(u)||$o(u.text)||/^inner-/.test(null==u?void 0:u.position))){const t=r.main.select("."+a+"-label");t.empty()||(l=t.node().getBoundingClientRect().left)}const h=c&&s?c.getBoundingClientRect():{right:0},f=r.chart.node().getBoundingClientRect().left+l,d=e.hasArcType(),g=h.right-f-(d?0:e.getCurrentPaddingByDirection("left",t));return g>0?g: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("."+Qs.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)}},getCurrentPaddingByDirection:function(t,e,n){var i;void 0===e&&(e=!1),void 0===n&&(n=!1);const r=this,o=r.config,s=r.$el,a=r.state.hasAxis,c=o.axis_rotated,u="fit"===(null==(i=o.padding)?void 0:i.mode),l=Xo(o["padding_"+t])?o["padding_"+t]:void 0,h=a?{top:c?"y2":null,bottom:c?"y":"x",left:c?"x":"y",right:c?null:"y2"}[t]:null,f=/^(left|right)$/.test(t),d=h&&o["axis_"+h+"_inner"],g=h&&o["axis_"+h+"_show"],p=h?o["axis_"+h+"_axes"].length:0;let v=h?f?r.getAxisWidthByAxisId(h,e):r.getHorizontalAxisHeight(h):0;let y=0;!u&&f&&(v=Go(v));let x=a&&f&&(d||Uo(l)&&!g)?0:u?(g?v:0)+(null!=l?l:0):Uo(l)?v:l;return f&&a?(h&&(u||d)&&o["axis_"+h+"_label"].text&&(x+=r.axis.getAxisLabelPosition(h).isOuter?20:0),"right"===t?(x+=c?!u&&Uo(l)?10:2:!g||d?u?2:1:0,x+=n?r.axis.getXAxisTickTextY2Overflow(20):0):"left"===t&&c&&Uo(l)&&(x=o.axis_x_show?u?v:Math.max(v,40):1)):"top"===t?(s.title&&s.title.node()&&(x+=r.getTitlePadding()),y=c&&!d?p:0):"bottom"===t&&a&&c&&!g&&(x+=1),x+v*p-y},getCurrentPadding:function(t){var e=this;void 0===t&&(t=!1);const n=this,i=["top","bottom","left","right"].map(function(i){return o(this,e),n.getCurrentPaddingByDirection(i,null,t)}.bind(this));return{top:i[0],bottom:i[1],left:i[2],right:i[3]}},getResettedPadding:function(t){var e=this;const n=this.config,i=Xo(t);let r=i?0:{};return!1===n.padding?i||Object.keys(t).forEach(function(i){o(this,e),r[i]=Zo(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=i.legend_show&&r.isLegendRight?n.getLegendWidth()+(c?0:20):0,h=!i.legend_show||r.isLegendRight||r.isLegendInset?0:u.height,f=s||a?0:n.getHorizontalAxisHeight("x"),d=i.subchart_axis_x_show&&i.subchart_axis_x_tick_text_show?f:30,g=i.subchart_show&&!a?i.subchart_size_height+d:0,p=n.hasType("gauge")&&i.arc_needle_show&&!i.gauge_fullCircle&&!i.gauge_label_show?10:0,v=n.getCurrentPadding(!0);if(r.margin=!a&&s?{top:v.top,right:a?0:v.right+l,bottom:h+v.bottom,left:g+(a?0:v.left)}:{top:(c?0:4)+v.top,right:a?0:v.right+l,bottom:p+g+h+v.bottom,left:a?0:v.left},r.margin=n.getResettedPadding(r.margin),r.margin2=s?{top:r.margin.top,right:NaN,bottom:20+h,left:n.state.rotatedPadding.left}:{top:r.current.height-g-h,right:NaN,bottom:d+h,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()){var y,x;const t=n.hasType("gauge"),e=i.legend_show&&r.isLegendRight,o=null!=(y=r.hasRadar&&n.cache.get(ka))?y:0;r.arcWidth=r.width-(e?u.width+10:0)-o,r.arcHeight=r.height-(e&&!t?0:10),null!=(x=i.arc_rangeText_values)&&x.length&&(t?(r.arcWidth-=25,r.arcHeight-=10,r.margin.left+=10):(r.arcHeight-=20,r.margin.top+=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)}},Th={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?"."+(Js.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.rootSelector,s=void 0===r?"":r,a=t.sheet,c=s+" "+function(t){return o(this,i),t.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,".")}.bind(this)(e)+" {"+n.join(";")+"}";return a[a.insertRule?"insertRule":"addRule"](c,a.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:Bo(t)?t.bind(this):t}};function Ah(t){return"string"==typeof t?new kn([document.querySelectorAll(t)],[document.documentElement]):new kn([fe(t)],En)}function Sh(t,e,n,i,r){var o;const s=t.value,a=this.isCandlestickType(t),c=Xo(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 Eh(t,e){var n;const i=this.config.data_labels_position,r=t.id,o=t.index,s=t.value;return null!=(n=Bo(i)?i.bind(this.api)(e,s,r,o,this.$el.text):(r in i?i[r]:i)[e])?n:0}var kh={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("."+Is.chart).append("g").attr("class",ta.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("."+ta.chartTexts).selectAll("."+ta.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," ."+ta.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("."+ta.texts).selectAll("."+ta.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,t.index,i),Xo(o)?this.textContent=o:rs(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(Qo(i)){o=i[(t.data||t).id]}else Bo(i)&&(o=i.bind(e.api)(r,t));if(e.isCandlestickType(t)&&!Bo(i)){const i=e.getCandlestickData(t);if(null==i||!i._isUp){const e=n.candlestick_color_down;o=Qo(e)?e[t.id]:e}}return o||r},updateTextBackgroundColor:function(t){const e=this,n=e.$el,i=e.config.data_labels_backgroundColors;let r="";if($o(i)||Qo(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.updateTextBackgroundColor.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=Sh.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=Ra+"-"+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 o=us(n);if(a){const n=r.getRangedData(t,null,"bar")>=0;if(s){const t=(n?e[1][1]-e[0][1]:e[0][1]-e[1][1])/2+o.width/2;return n?-t-3:t+2}{const t=(n?e[0][1]-e[1][1]:e[1][1]-e[0][1])/2+o.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+o.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+Eh.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],Xo(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+Eh.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=ys(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=ys(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(ta.TextOverlapping,i&&r)}))},undoMarkOverlapped:function(t,e){t.$el.arcs.selectAll(e).each((function(){Ah([this,this.previousSibling]).classed(ta.TextOverlapping,!1)}))},meetsLabelThreshold:function(t,e){void 0===t&&(t=0);return t>=(this.config[e+"_label_threshold"]||0)}};function Oh(t,e){void 0===t&&(t="left");const n=Xo(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 Mh={initTitle:function(){const t=this.config,e=this.$el;if(t.title_text){e.title=e.svg.append("g");rs(e.title.append("text").style("text-anchor",Oh(t.title_position)).attr("class",ta.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=Oh(e.title_position,n.width),o=(e.title_padding.top||0)+t.getTextRect(t.$el.title,ta.title).height;i.attr("transform","translate("+r+", "+o+")")}},getTitlePadding:function(){const t=this,e=t.$el.title,n=t.config;return(n.title_padding.top||0)+(e?t.getTextRect(e,ta.title).height:0)+(n.title_padding.bottom||0)}},Rh={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",ea.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=Es.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&&!Zo(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 Bo(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 Bo(e)?e.bind(a):e}.bind(this)),f=h[0],d=h[1],g=h[2],p=function(){return o(this,r),is((f||e).apply(void 0,arguments))}.bind(this),v=function(){var t=this;return o(this,r),is((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 is((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),x=c.tooltip_order,b=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,w=_.template,T=s.mapToTargetIds();if(null===x&&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(x)?t.sort(function(t,e){o(this,r);const n=t?b(t):null,i=e?b(e):null;return"asc"===x?n-i:i-n}.bind(this)):Bo(x)&&t.sort(x.bind(a));const A=s.getTooltipContentTemplate(w),S=t.length;let E,k,O,M,R;for(R=0;R<S;R++)if(k=t[R],k&&(b(k)||0===b(k))){if(Uo(E)){const t=(u.hasAxis||u.hasRadar)&&p(k.x);E=Ss(A[0],{CLASS_TOOLTIP:ea.tooltip,TITLE:jo(t)?w?t:'<tr><th colspan="2">'+t+"</th></tr>":""})}if(!k.ratio&&l.arcs&&(O=["arc",s.$el.arcs.select("path."+Ps.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,[b(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=t.id,i=t.index;M=""+y(e,void 0,n,i)}else M=y.apply(void 0,[b(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:ea.tooltipName+s.getTargetSelectorSuffix(k.id),COLOR:w||!s.patterns?e:'<svg><rect style="fill:'+e+'" width="10" height="10"></rect></svg>',NAME:t,VALUE:M};if(w&&Qo(_.text)){const t=T.indexOf(k.id);Object.keys(_.text).forEach(function(e){o(this,r),n[e]=_.text[e][t]}.bind(this))}E+=Ss(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=r.axis_rotated,d=null==l?void 0:l.datum();if(!h&&d){var g,p;const c=null!=t?t:JSON.parse(d.current),h=as(a.event,null!=e?e:null==u?void 0:u.node()),v={x:h[0],y:h[1]};if(a.hasAxis&&s.x&&d&&"x"in d){const t=function(t,e,r){var c;void 0===t&&(t=0),void 0===r&&(r="y"),o(this,n);const u=s[e?null==(c=i.axis)?void 0:c.getId(e):r];return u?u(t)+(f?a.margin.left:a.margin.top):0}.bind(this);v.xAxis=s.x(d.x)+(r.tooltip_position?f?a.margin.top:a.margin.left:0),1===c.length?v.yAxis=t(c[0].value,c[0].id):v.yAxis=t}const y=d.width,x=void 0===y?0:y,b=d.height,m=void 0===b?0:b,_=null!=(g=null==(p=r.tooltip_position)?void 0:p.bind(i.api)(c,x,m,null==u?void 0:u.node(),v))?g:i.getTooltipPosition.bind(i)(x,m,v);["top","left"].forEach(function(t){o(this,n);const e=_[t];l.style(t,e+"px"),"left"!==t||d.xPosInPercent||(d.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.width,l=c.height,h=c.current,f=c.hasRadar,d=c.hasTreemap,g=c.isLegendRight,p=c.inputType,v=r.hasType("gauge")&&!s.gauge_fullCircle,y=s.axis_rotated,x=r.hasArcType(),b=r.getSvgLeft(!0);let m=b+h.width-r.getCurrentPaddingByDirection("right");let _=n.x,w=n.y;if(f)_+=_>=u/2?15:-(t+15),w+=15;else if(x){if("touch"!==p){var T,A;let t=null!=(T=null==r.getTitlePadding?void 0:r.getTitlePadding())?T:0;t&&v&&null!=(A=s.arc_rangeText_values)&&A.length&&(t+=10),_+=(u-(g?r.getLegendWidth():0))/2,w+=(v?l:l/2+e)+t}}else if(d)w+=e;else{const t={top:r.getCurrentPaddingByDirection("top",!0),left:r.getCurrentPaddingByDirection("left",!0)};y?(_+=b+t.left+20,w=t.top+n.xAxis+20,m-=b):(_=b+t.left+20+(a.zoom?_:n.xAxis),w+=t.top-5)}if(_+t+15>m&&(_-=t+(d||x?0:y?40:38)),w+e>h.height){w-=v?1.5*e:e+(d?e+10:30)}const S={top:w,left:_};return Object.keys(S).forEach(function(t){o(this,i),S[t]<0&&(S[t]=0)}.bind(this)),S},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&&jo(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;es(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")}),es(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)){var o;const t=JSON.parse(null!=(o=r.datum().current)?o:{});es(i.tooltip_onhide,n,t),r.style("display","none").style("visibility","hidden").datum(null),es(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)}}}},Ch={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=Ho(r.margin.left),a=Ho(r.margin.top);else if("context"===t)s=Ho(r.margin2.left),a=Ho(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:0;else if("subX"===t)s=0,a=o?0:r.height2;else if("arc"===t){var u;s=r.arcWidth/2,a=r.arcHeight/2,null!=(u=i.arc_rangeText_values)&&u.length&&(a+=5+(n.hasType("gauge")&&i.title_text?10:0))}else if("polar"===t)s=r.arcWidth/2,a=r.arcHeight/2;else if("radar"===t){const t=n.getRadarSize(),e=t[0],i=t[1];s=r.width/2-e,a=r.height/2-i}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("."+Ds.axisX),t),s=null!=e&&e.axisY?e.axisY:r(i.select("."+Ds.axisY),t),a=null!=e&&e.axisY2?e.axisY2:r(i.select("."+Ds.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("."+Ps.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)}},Ih={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 Fn&&!Fn[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){var n;const i=$o(t)?t:t.id,r=this.config&&((null==(n=this.config.data_types)?void 0:n[i])||this.config.data_type);return Jo(e)?e.indexOf(r)>=0:r===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,Fn.Line)},isStepType:function(t){return this.isTypeOf(t,Fn.Step)},isSplineType:function(t){return this.isTypeOf(t,Fn.Spline)},isAreaType:function(t){return this.isTypeOf(t,Fn.Area)},isAreaRangeType:function(t){return this.isTypeOf(t,Fn.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||Jo(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),Xo(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 Ph=function(){function t(t){this.api=void 0,this.config=void 0,this.cache=void 0,this.$el=void 0,this.state=void 0,this.charts=void 0,this.data={xs:{},targets:[]},this.axis=void 0,this.scale={x:null,y:null,y2:null,subX:null,subY:null,subY2:null,zoom:null},this.org={xScale:null,xDomain:null},this.color=void 0,this.patterns=void 0,this.levelColor=void 0,this.point=void 0,this.brush=void 0,this.format={extraLineClasses:null,xAxisTick:null,dataTime:null,defaultAxisTime:null,axisTime:null};const e=this;e.api=t,e.config=new ba,e.cache=new Ca;const n=new sa;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"),es(t.config.onbeforeinit,t.api)},e.afterInit=function(){const t=this;t.callPluginHook("$afterInit"),es(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(Ms(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"};Qo(e.bindto)&&(o.element=e.bindto.element||"#chart",o.classname=e.bindto.classname||o.classname),i.chart=Bo(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()||null!=e.hasLegendDefsPoint&&e.hasLegendDefsPoint())&&(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(_s(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=Bo(i.color_tiles)&&n.patterns;(l||g||d||h||i.data_labels_backgroundColors||null!=n.hasLegendDefsPoint&&n.hasLegendDefsPoint())&&(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(Is.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",ta.text+" "+Is.empty).attr("text-anchor","middle").attr("dominant-baseline","middle"),l&&(i.regions.length&&n.initRegion(),i.clipPath||n.axis.init()),p.append("g").classed(Is.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(),es(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();es(i.data_onmin,n.api,t.min),es(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)),Ko(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(Ko(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="."+Is.target;t&&(s+=", ."+Fs.chartCircles+" > ."+Fs.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]=ts(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?Dn(function(){var t=this;o(this,e),n.forEach(function(e){return o(this,t),e()}.bind(this))}.bind(this),{timeout:200}):i=Ia(function(){var t=this;o(this,e),n.forEach(function(e){return o(this,t),e()}.bind(this))}.bind(this),Xo(t)?t:200)};return r.clear=function(){o(this,e),i&&(Pa(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),es(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),es(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 Lh(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&&qo(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(),Yo(s)&&(n[c]=s)}.bind(this)),this.api&&(this.state.orgConfig=t)}ds(Ph.prototype,[ic,rc,sc,{categoryName:function(t){var e;const n=this.config.axis_x_categories;return null!=(e=null==n?void 0:n[t])?e:t}},pc,zc,Nc,gc,jc,Xc,Uc,yl,_h,wh,Th,kh,Mh,Rh,Ch,Ih]);var Dh={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(Ko(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?Yo(e)?(r[s]=e,a=e,n&&this.flush()):a=r[s]:(0===arguments.length||Zo(t))&&(a=o.orgConfig),a}};const zh=function(t){var e=this;const n=this.internal.data.targets;if(!Uo(t)){const i=Jo(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(zh,{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);Jo(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 Nh={data:zh};const Fh=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 jh(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,"+Fh(g)}function Bh(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 $h={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=ms({width:l,height:h,preserveAspectRatio:!0,preserveFontStyle:!1,mimeType:"image/png"},t),d=jh(a.node(),f,{width:l,height:h}),g=f.preserveFontStyle?Bh(c.node()):[];if(e&&Bo(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}},Xh={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(Vs.focused,!0).classed(Vs.defocused,!1),n.hasArcType()&&!i.hasRadar&&(n.expandArc(r),n.hasType("gauge")&&n.markOverlapped(t,n,"."+$s.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(Vs.focused,!1).classed(Vs.defocused,!0),n.hasArcType(null,["polar"])&&(n.unexpandArc(r),n.hasType("gauge")&&n.undoMarkOverlapped(n,"."+$s.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(Vs.focused,!1).classed(Vs.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(Vs.legendItemFocused)})).classed(Vs.legendItemFocused,!1)),i.focusedTargetIds=[],i.defocusedTargetIds=[]}};var Uh={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})}}},Yh={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),Dn(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||{};Zo(i)&&this.tooltip.hide(),Jo(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),oc.call(n,i.done,i.resizeAfter)}.bind(this))}};function Vh(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),es(r.config.data_onshown,this,a)),r.$T(c).style("opacity",u,"important").call(ns,function(){o(this,i),t||0!==a.length||(c.style("display","none"),es(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 Gh={show:function(t,e){void 0===e&&(e={}),Vh.call(this,!0,t,e)},hide:function(t,e){void 0===e&&(e={}),Vh.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 Hh={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 Yo(t.x)?l=n.getIndexByX(t.x):Yo(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 Wh={tooltip:Hh};let qh=function t(e){this.plugins=[],this.internal=void 0;const n=new Ph(this);this.internal=n,function t(e,n,i){var r=this;Object.keys(e).forEach(function(s){o(this,r);const a=Bo(e[s]),c=n!==i,u=Ko(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),Lh.call(n,e),n.beforeInit(),n.init()};function Zh(t,e,n){var i=this;const r=t.config,s=function(t,n){o(this,i);const s=Xo(n)?n:!1===n?void 0:null;null!==s&&(r["axis_"+t+"_"+e]=s)}.bind(this);Yo(n)&&(qo(n)?Object.keys(n).forEach(function(t){o(this,i),s(t,n[t])}.bind(this)):(Xo(n)||!1===n)&&["y","y2"].forEach(function(t){o(this,i),s(t,n)}.bind(this)),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))}function Kh(t,e){const n=t.config;return{x:n["axis_x_"+e],y:n["axis_y_"+e],y2:n["axis_y2_"+e]}}ds(qh.prototype,[Dh,{color:function(t){return this.internal.color(t)}},Nh,$h,Xh,Uh,Yh,Gh,Wh]);const Jh={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 jo(t)||!1===t?Zh(e,"min",t):Kh(e,"min")},max:function(t){const e=this.internal;return jo(t)||!1===t?Zh(e,"max",t):Kh(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;Yo(i)&&e.max(i),Yo(n)&&e.min(n)}}};var Qh={axis:Jh},tf={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 Zo(t)?Object.values(e.data.xs)[0]:t}return n.axis_x_categories=t,e.redraw(),n.axis_x_categories}};function ef(t,e){const n=this.internal,i=n.config,r=i.transition_duration&&ks(),o="grid_"+e+"_lines";return t?(i[o]=t,n.updateGrid(),n.redrawGrid(r),i[o]):i[o]}function nf(t,e){return ef.bind(this)(this.internal.config["grid_"+e+"_lines"].concat(t||[]),e)}function rf(t,e){this.internal.removeGridLines(t,e)}const of=function(t){return ef.bind(this)(t,"x")};ds(of,{add:function(t){return nf.bind(this)(t,"x")},remove:function(t){return rf.bind(this)(t,!0)}});const sf=function(t){return ef.bind(this)(t,"y")};ds(sf,{add:function(t){return nf.bind(this)(t,"y")},remove:function(t){return rf.bind(this)(t,!1)}});var af={xgrids:of,ygrids:sf},cf={groups:function(t){const e=this.internal,n=e.config;return Uo(t)||(n.data_groups=t,e.redraw()),n.data_groups}};function uf(t,e){void 0===e&&(e=!1);const n=this.internal,i=n.config,r=i.transition_duration&&ks();return t?(i.regions=e?i.regions.concat(t):t,n.updateRegion(),n.redrawRegion(r),e?i.regions:t):i.regions}const lf=function(t){return uf.bind(this)(t)};ds(lf,{add:function(t){return uf.bind(this)(t,!0)},remove:function(t){var e=this;const n=this.internal,i=n.config,r=n.$T,s=t||{},a=ts(s,"classes",[Zs.region]);let c=n.$el.main.select("."+Zs.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 hf={regions:lf},ff={x:function(t){const e=this.internal,n=e.axis,i=e.data,r=n.isCustomX()&&n.isCategorized();return Jo(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 Qo(t)&&(e.updateTargetXs(e.data.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),e.data.xs}},df={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||!ks())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];Yo(t.to)?(c=0,a=d?Es.call(n,t.to):t.to,g.values.forEach(function(t){o(this,e),t.x<a&&c++}.bind(this))):Yo(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:jo(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 gf(t){return t}var pf=1,vf=2,yf=3,xf=4,bf=1e-6;function mf(t){return"translate("+t+",0)"}function _f(t){return"translate(0,"+t+")"}function wf(t){var e=this;return function(n){return o(this,e),+t(n)}.bind(this)}function Tf(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 Af(){return!this.__axis}function Sf(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===pf||t===xf?-1:1,l=t===xf||t===vf?"x":"y",h=t===pf||t===yf?mf:_f;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):gf:r,p=Math.max(o,0)+a,v=e.range(),y=+v[0]+c,x=+v[v.length-1]+c,b=(e.bandwidth?Tf:wf)(e.copy(),c),m=f.selection?f.selection():f,_=m.selectAll(".domain").data([null]),w=m.selectAll(".tick").data(d,e).order(),T=w.exit(),A=w.enter().append("g").attr("class","tick"),S=w.select("line"),E=w.select("text");_=_.merge(_.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(A),S=S.merge(A.append("line").attr("stroke","currentColor").attr(l+"2",u*o)),E=E.merge(A.append("text").attr("fill","currentColor").attr(l,u*p).attr("dy",t===pf?"0em":t===yf?"0.71em":"0.32em")),f!==m&&(_=_.transition(f),w=w.transition(f),S=S.transition(f),E=E.transition(f),T=T.transition(f).attr("opacity",bf).attr("transform",(function(t){return isFinite(t=b(t))?h(t+c):this.getAttribute("transform")})),A.attr("opacity",bf).attr("transform",(function(t){var e=this.parentNode.__axis;return h((e&&isFinite(e=e(t))?e:b(t))+c)}))),T.remove(),_.attr("d",t===xf||t===vf?s?"M"+u*s+","+y+"H"+c+"V"+x+"H"+u*s:"M"+c+","+y+"V"+x:s?"M"+y+","+u*s+"V"+c+"H"+x+"V"+u*s:"M"+y+","+c+"H"+x),w.attr("opacity",1).attr("transform",(function(t){return h(b(t)+c)})),S.attr(l+"2",u*o),E.attr(l,u*p).text(g),m.filter(Af).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===vf?"start":t===xf?"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?(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 Ef(t){return Sf(pf,t)}function kf(t){return Sf(vf,t)}function Of(t){return Sf(yf,t)}function Mf(t){return Sf(xf,t)}let Rf=function(){function t(t){this.owner=void 0,this.config=void 0,this.scale=void 0;const e=vl(),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),jo(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=vl("_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)&&Xo(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 Yo(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}(),Cf=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 Rf(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,x=r.id,b=x&&/^(x|y|y2)$/.test(x)?r.config["axis_"+x+"_tick_text_position"]:{x:0,y:0},m="subX"===x?"subchart_axis_x":"axis_"+x,_=r.config[m+"_show"],w=!!_&&r.config[m+"_tick_show"],T=!!_&&r.config[m+"_tick_text_show"];let A;t.each((function(){var t=this;const x=Rn(this);let m=this.__chart__||s,_=i.copyScale();A=x,this.__chart__=_,n.tickOffset=r.isCategory?Math.ceil((_(1)-_(0))/2):0;const S=x.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)),w||T){const s=n.tickValues||i.generateTicks(_,u);e.generatedTicks=s;let y=x.selectAll(".tick").data(s,_);const A=y.enter().insert("g",".domain").attr("class","tick"),S=y.exit().remove();y=A.merge(y),w&&A.append("line"),T&&A.append("text");const E=Rf.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):Jo(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+(b.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===b.y?".71em":0)),Xo(i)&&b.y?i+b.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),g=this.params.owner.config,p=g.axis_rotated,v=g.axis_x_tick_text_inner;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)).style("text-anchor",function(t,e,i){let r=i.length;return o(this,n),p||0!==e||!0!==v&&!v.first?p||e!==r-1||!0!==v&&!v.last?h(l):"end":"start"}.bind(this)).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(Jo(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{var c;const n=null!=(c=this.params.owner.scale.zoom)?c:this.helper.scale;a=(this.g.select("path.domain").node().getTotalLength()-2*i)/(t||this.g.selectAll("line").size());const r=s?s.map(function(t,i,r){o(this,e);const s=i+1;return s<r.length?n(r[s])-n(t):null}.bind(this)).filter(Boolean):[];a=Math.min.apply(Math,r.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(Bo(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 If={getAxisInstance:function(){return this.axis||new Pf(this)}};let Pf=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 Ds.axis+" "+Ds["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||Ko(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=Ds["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?Mf:Of:"y"===t?c=a?Of:Mf:"y2"===t&&(c=a?Ef:kf),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(Bo(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"];Bo(e)&&(g=e.bind(a.api))}let p=this.tick[l];const v=ms({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 Cf(v).scale(u&&a.scale.zoom||e).orient(f);if(u&&this.isTimeSeries()&&p&&!Bo(p)){const t=Es.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),Zo(c.axis_x_tick_culling)&&(c.axis_x_tick_culling=!1));const x=c["axis_"+l+"_tick_count"];return x&&y.ticks(x),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?Bo(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),Bo(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(Bo(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=qo(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.getMaxTickSize(t).width;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.getMaxTickSize=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.maxTickSize[t],h="axis_"+t,f={width:0,height:0};if(e||!r[h+"_show"]||l.width>0&&0===i.filterTargetsToShow().length)return l;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(),d=c[0]===c[1]&&c.every(function(t){return o(this,n),t>0}.bind(this)),g=Jo(l.domain)&&l.domain[0]===l.domain[1]&&l.domain.every(function(t){return o(this,n),t>0}.bind(this));if(d||g)return l.size;l.domain=c,e||l.ticks.splice(0);const p=this.getAxis(t,a,!1,!1,!0),v=r[h+"_tick_rotate"],y=r[h+"_tick_count"];!r[h+"_tick_values"]&&y&&p.tickValues(this.generateTickValues(c,y,e?this.isTimeSeriesY():this.isTimeSeries())),e||this.updateXAxisTickValues(s,p);const x=u.append("svg").style("visibility","hidden").style("position","fixed").style("top","0").style("left","0");p.create(x),x.selectAll("text").attr("transform",Xo(v)?"rotate("+v+")":null).each((function(t,n){const i=this.getBoundingClientRect(),r=i.width,o=i.height;f.width=Math.max(f.width,r),f.height=Math.max(f.height,o),e||(l.ticks[n]=r)})),x.remove()}return Object.keys(f).forEach(function(t){o(this,n),f[t]>0&&(l[t]=f[t])}.bind(this)),l},e.getXAxisTickTextY2Overflow=function(t){const e=this.owner,n=e.axis,i=e.config,r=e.state,o=r.current,s=r.isLegendRight,a=r.legendItemWidth,c=e.getAxisTickRotate("x");if((n.isCategorized()||n.isTimeSeries())&&i.axis_x_tick_fit&&(!i.axis_x_tick_culling||Zo(i.axis_x_tick_culling))&&!i.axis_x_tick_multiline&&c>0&&c<90){const n=i.axis_y2_show&&o.maxTickSize.y2.width||0,r=o.width-e.getCurrentPaddingByDirection("left"),u=this.getXAxisTickMaxOverflow(c,r-t)-n-(s&&a||0),l=Math.max(0,u)+t;return Math.min(l,r/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.maxTickSize.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=vl(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("."+Ds.axisX+" ."+Ds.axisXLabel),y:i.select("."+Ds.axisY+" ."+Ds.axisYLabel),y2:i.select("."+Ds.axisY2+" ."+Ds.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=Xo(t)?t:t[e];return jo(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=Bo(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=_s(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.maxTickSize.x.clipPath?r.pathXAxisTickTexts:null;a.svg.selectAll("."+Ds.axisX+" .tick text").attr("clip-path",t)}}}.bind(this))},t}();var Lf={initEventRect:function(){this.$el.main.select("."+Is.chart).append("g").attr("class",Ys.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("."+Ys.eventRects).style("cursor",n.zoom_enabled&&"drag"!==n.zoom_type?n.axis_rotated?"ns-resize":"ew-resize":null).classed(Ys.eventRectsMultiple,s).classed(Ys.eventRectsSingle,!s).selectAll("."+Ys.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=Vo(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(Ys.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(Ys.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(){if(o(this,n),a){const t=vs(r.chart.node());a.rect=f.node().getBoundingClientRect().toJSON(),a.rect.top+=t.y,a.rect.left+=t.x}}.bind(this);(!l||h||e)&&(f.attr("x",0).attr("y",0).attr("width",c).attr("height",u),l&&!e||f.classed(Ys.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),Bo(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("."+Is.EXPANDED+":not(."+Js.shape+"-"+e+")").classed(Is.EXPANDED,!1);const g=a.selectAll("."+Js.shape+"-"+e).classed(Is.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("."+Ys.eventRect).style("cursor","pointer"),e&&!s.mouseover&&(r.data_onover.call(i.api,u),s.mouseover=u))},unselectRect:function(){const t=this,e=t.$el,n=e.circle,i=e.tooltip;t.$el.svg.select("."+Ys.eventRect).style("cursor",null),t.hideGridFocus(),i&&(t.hideTooltip(),t._handleLinkedCharts(!1)),n&&!t.isPointFocusOnly()&&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?i.tooltip_show&&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("."+Js.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),a="radius"===n.point_sensitivity?s.r:n.point_sensitivity;s&&(e.isBarType(s.id)||e.dist(s,o)<a)&&e.$el.main.selectAll("."+Js.shapes+e.getTargetSelectorSuffix(s.id)).selectAll("."+Js.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 Df=function(t){return o(this,undefined),+t}.bind(void 0);var zf={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=La();let p;g.add(Object.keys(t).map(function(e){var r=this;return o(this,n),p=t[e].transition().ease(Df).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,x=y.done,b=void 0===x?function(){o(this,n)}.bind(this):x,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("."+ra[t]+"-"+n);a.selectAll("."+ra[t+"s"]).selectAll(e).remove()}.bind(this)),a.select("."+ra.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(),b.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=Wo(g)/2;return"translate("+l+",0) scale("+Wo(d)/Wo(g)+",1)"}},Nf={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;return!e.clipPath&&/-clip$/.test(t)||!e.axis_x_clipPath&&/-clip-xaxis$/.test(t)||!e.axis_y_clipPath&&/-clip-yaxis$/.test(t)?null:"url(#"+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=s?i.left+20:r+10+a;t.attr("x",u).attr("y",-15).attr("width",l).attr("height",c)},setYAxisClipPath: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?20:0),c=e.axis_y_inner,u=c&&!s?e.axis_y_label.text?-20:-1:s?-(1+a):-(a-1),l=-(s?20:i.top),h=(s?r+15+a:i.left+20)+(c?20:0),f=(s?i.bottom+10:i.top+o)+10;t.attr("x",u).attr("y",l).attr("width",h).attr("height",f)},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.maxTickSize,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.maxTickSize.x.clipPath).attr("height",30)}},Ff=void 0;const jf=function(t){return o(this,Ff),jo(t.position)||"end"}.bind(void 0),Bf=function(t){return o(this,Ff),"start"===t.position?4:"middle"===t.position?0:-4}.bind(void 0);function $f(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 Xf(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 Uf={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","."+Is.chart+(e.grid_lines_front?" + *":"")).attr("clip-path",n.pathGrid).attr("class",Gs.grid+" "+Gs.gridLines),i.gridLines.main.append("g").attr("class",Gs.xgridLines),i.gridLines.main.append("g").attr("class",Gs.ygridLines),i.gridLines.x=Ah([]))},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("."+Gs.xgrids).selectAll("."+Gs.xgrid).data(h),u.x.exit().remove(),u.x=u.x.enter().append("line").attr("class",Gs.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("."+Gs.ygrids).selectAll("."+Gs.ygrid).data(f),c.y.exit().remove(),c.y=c.y.enter().append("line").attr("class",Gs.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),Xf(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("."+Gs[t+"gridLines"]).selectAll("."+Gs[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),(Gs[t+"gridLine"]+" "+(n.class||"")).trim()}.bind(this)).select("text").attr("text-anchor",jf).attr("transform",function(){return o(this,e),"x"===t?u?null:"rotate(-90)":u?"rotate(-90)":null}.bind(this)).attr("dx",Bf).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",$f(!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",$f(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?Gs.gridLines:Is.chart)+(r?" + *":""),s=i.main.insert("g",o).attr("clip-path",n.pathGrid).attr("class",Gs.grid);i.grid.main=s,e.grid_x_show&&s.append("g").attr("class",Gs.xgrids),e.grid_y_show&&s.append("g").attr("class",Gs.ygrids),e.interaction_enabled&&e.grid_focus_show&&(s.append("g").attr("class",Vs.xgridFocus).append("line").attr("class",Vs.xgridFocus),e.grid_focus_y&&!e.tooltip_grouped&&s.append("g").attr("class",Vs.ygridFocus).append("line").attr("class",Vs.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."+Vs.xgridFocus+", line."+Vs.ygridFocus),l=(t||[u.datum()]).filter(function(t){return o(this,e),t&&jo(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(Vs.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))})),Xf(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."+Vs.xgridFocus+", line."+Vs.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."+Vs.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("."+Ds.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(Jo(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?Gs.xgridLines:Gs.ygridLines,l=e?Gs.xgridLine:Gs.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)}},Yf={initRegion:function(){const t=this.$el;t.region.main=t.main.insert("g",":first-child").attr("clip-path",this.state.clip.path).attr("class",Zs.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("."+Zs.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),jo(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()?Es.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()?Es.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}},Vf={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.getMaxTickSize(t,e).width,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.rotatedPadding,a=o.isLegendRight,c=o.isLegendInset,u=r.axis_rotated,l="fit"===(null==(e=r.padding)?void 0:e.mode),h=r["axis_"+t+"_inner"],f=r["axis_"+t+"_label"].text;let d="fit"===(null==(n=r.padding)?void 0:n.mode)?h&&!f?"y"===t?1:0:20:30;if("x"===t&&!r.axis_x_show)return 8;if("x"===t&&Xo(r.axis_x_height))return r.axis_x_height;if("y"===t&&!r.axis_y_show)return!r.legend_show||a||c?1:10;if("y2"===t&&!r.axis_y2_show)return l?0:s.top;const g=i.axis.getMaxTickSize(t),p=Math.abs(r.axis_x_tick_rotate)>0&&(!r.axis_x_tick_autorotate||i.needToRotateXAxisTickTexts());return(r.axis_x_tick_multiline||p)&&g.height>13&&(d+=g.height-13),d+(i.axis.getLabelPositionById(t).isInner?0:10)+("y2"!==t||u?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.maxTickSize.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_autorotate&&i.axis_x_tick_fit&&!i.axis_x_tick_multiline&&!i.axis_x_tick_culling&&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,r=e.isLegendRight,o=e.legendItemWidth,s=i.width-(r&&o)-t.getCurrentPaddingByDirection("left")-t.getCurrentPaddingByDirection("right"),a=n.x.tickCount+n.x.padding.left+n.x.padding.right;return t.axis.getMaxTickSize("x").width>(a?s/a:0)}},Gf={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:[]},Hf={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 Wf(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 qf(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?Wf(Object(e),!0).forEach((function(n){$n(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Wf(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var Zf=qf(qf(qf({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_inner:!1,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:[]}),Gf),Hf);const Kf=[Qh,tf,df,af,cf,hf,ff],Jf={axis:If,clip:Nf,eventrect:Lf,flow:zf,grid:Uf,region:Yf,sizeAxis:Vf},Qf={optDataAxis:{data_xs:{},data_xFormat:"%Y-%m-%d",data_xLocaltime:!0,data_xSort:!0,data_axes:{},data_regions:{},data_stack_normalize:!1},optAxis:Zf,optGrid:{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 td,ed,nd,id,rd,od,sd,ad,cd,ud,ld,hd,fd,dd;Array.prototype.slice;function gd(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function pd(t){return function(){return t}}function vd(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function yd(t){return t}function xd(t,e){return e||(e=t.slice(0)),t.raw=e,t}const bd=Math.PI,md=2*bd,_d=1e-6,wd=md-_d;function Td(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}let Ad=function(){function t(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Td:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error("invalid digits: "+t);if(e>15)return Td;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(td||(td=xd(["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(ed||(ed=xd(["Z"]))))},e.lineTo=function(t,e){this._append(nd||(nd=xd(["L",",",""])),this._x1=+t,this._y1=+e)},e.quadraticCurveTo=function(t,e,n,i){this._append(id||(id=xd(["Q",",",",",",",""])),+t,+e,this._x1=+n,this._y1=+i)},e.bezierCurveTo=function(t,e,n,i,r,o){this._append(rd||(rd=xd(["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(od||(od=xd(["M",",",""])),this._x1=t,this._y1=e);else if(h>_d)if(Math.abs(l*a-c*u)>_d&&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((bd-Math.acos((g+h-(f*f+d*d))/(2*p*v)))/2),x=y/v,b=y/p;Math.abs(x-1)>_d&&this._append(ad||(ad=xd(["L",",",""])),t+x*u,e+x*l),this._append(cd||(cd=xd(["A",",",",0,0,",",",",",""])),r,r,+(l*f>u*d),this._x1=t+b*a,this._y1=e+b*c)}else this._append(sd||(sd=xd(["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(ud||(ud=xd(["M",",",""])),c,u):(Math.abs(this._x1-c)>_d||Math.abs(this._y1-u)>_d)&&this._append(ld||(ld=xd(["L",",",""])),c,u),n&&(h<0&&(h=h%md+md),h>wd?this._append(hd||(hd=xd(["A",",",",0,1,",",",",","A",",",",0,1,",",",",",""])),n,n,l,t-s,e-a,n,n,l,this._x1=c,this._y1=u):h>_d&&this._append(fd||(fd=xd(["A",",",",0,",",",",",",",""])),n,n,+(h>=bd),l,this._x1=t+n*Math.cos(r),this._y1=e+n*Math.sin(r)))},e.rect=function(t,e,n,i){this._append(dd||(dd=xd(["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 Sd(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 Ad(n)}.bind(this)}function Ed(t){return t.innerRadius}function kd(t){return t.outerRadius}function Od(t){return t.startAngle}function Md(t){return t.endAngle}function Rd(t){return t&&t.padAngle}function Cd(t,e,n,i,r,o,s){var a=t-n,c=e-i,u=(s?o:-o)/$l(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,x=g-f,b=p-d,m=x*x+b*b,_=r-o,w=f*p-g*d,T=(b<0?-1:1)*$l(Fl(0,_*_*m-w*w)),A=(w*b-x*T)/m,S=(-w*x-b*T)/m,E=(w*b+x*T)/m,k=(-w*x+b*T)/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 Id(){var t=Ed,e=kd,n=pd(0),i=null,r=Od,o=Md,s=Rd,a=null,c=Sd(u);function u(){var u,l,h=+t.apply(this,arguments),f=+e.apply(this,arguments),d=r.apply(this,arguments)-Yl,g=o.apply(this,arguments)-Yl,p=Dl(g-d),v=g>d;if(a||(a=u=c()),f<h&&(l=f,f=h,h=l),f>Xl)if(p>Vl-Xl)a.moveTo(f*Nl(d),f*Bl(d)),a.arc(0,0,f,d,g,!v),h>Xl&&(a.moveTo(h*Nl(g),h*Bl(g)),a.arc(0,0,h,g,d,v));else{var y,x,b=d,m=g,_=d,w=g,T=p,A=p,S=s.apply(this,arguments)/2,E=S>Xl&&(i?+i.apply(this,arguments):$l(h*h+f*f)),k=jl(Dl(f-h)/2,+n.apply(this,arguments)),O=k,M=k;if(E>Xl){var R=Gl(E/h*Bl(S)),C=Gl(E/f*Bl(S));(T-=2*R)>Xl?(_+=R*=v?1:-1,w-=R):(T=0,_=w=(d+g)/2),(A-=2*C)>Xl?(b+=C*=v?1:-1,m-=C):(A=0,b=m=(d+g)/2)}var I=f*Nl(b),P=f*Bl(b),L=h*Nl(w),D=h*Bl(w);if(k>Xl){var z,N=f*Nl(m),F=f*Bl(m),j=h*Nl(_),B=h*Bl(_);if(p<Ul)if(z=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<Xl))return[t+(f=(l*(e-o)-h*(t-r))/f)*c,e+f*u]}(I,P,j,B,N,F,L,D)){var $=I-z[0],X=P-z[1],U=N-z[0],Y=F-z[1],V=1/Bl(function(t){return t>1?0:t<-1?Ul:Math.acos(t)}(($*U+X*Y)/($l($*$+X*X)*$l(U*U+Y*Y)))/2),G=$l(z[0]*z[0]+z[1]*z[1]);O=jl(k,(h-G)/(V-1)),M=jl(k,(f-G)/(V+1))}else O=M=0}A>Xl?M>Xl?(y=Cd(j,B,I,P,f,M,v),x=Cd(N,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,zl(y.y01,y.x01),zl(x.y01,x.x01),!v):(a.arc(y.cx,y.cy,M,zl(y.y01,y.x01),zl(y.y11,y.x11),!v),a.arc(0,0,f,zl(y.cy+y.y11,y.cx+y.x11),zl(x.cy+x.y11,x.cx+x.x11),!v),a.arc(x.cx,x.cy,M,zl(x.y11,x.x11),zl(x.y01,x.x01),!v))):(a.moveTo(I,P),a.arc(0,0,f,b,m,!v)):a.moveTo(I,P),h>Xl&&T>Xl?O>Xl?(y=Cd(L,D,N,F,h,-O,v),x=Cd(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,zl(y.y01,y.x01),zl(x.y01,x.x01),!v):(a.arc(y.cx,y.cy,O,zl(y.y01,y.x01),zl(y.y11,y.x11),!v),a.arc(0,0,h,zl(y.cy+y.y11,y.cx+y.x11),zl(x.cy+x.y11,x.cx+x.x11),v),a.arc(x.cx,x.cy,O,zl(x.y11,x.x11),zl(x.y01,x.x01),!v))):a.arc(0,0,h,w,_,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-Ul/2;return[Nl(i)*n,Bl(i)*n]},u.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:pd(+e),u):t},u.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:pd(+t),u):e},u.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:pd(+t),u):n},u.padRadius=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:pd(+t),u):i},u.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:pd(+t),u):r},u.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:pd(+t),u):o},u.padAngle=function(t){return arguments.length?(s="function"==typeof t?t:pd(+t),u):s},u.context=function(t){return arguments.length?(a=null==t?null:t,u):a},u}function Pd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Ld(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?Pd(Object(e),!0).forEach((function(n){$n(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Pd(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}function Dd(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):Xo(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:Xo(a)?a:a.call(e.api,c,u,i),l}}}function zd(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=Wi(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(Ld(Ld({},i),{},{data:o,index:s,value:a}))}}}Ad.prototype;var Nd={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=yd,e=vd,n=null,i=pd(0),r=pd(Vl),o=pd(0);function s(s){var a,c,u,l,h,f=(s=gd(s)).length,d=0,g=Array(f),p=Array(f),v=+i.apply(this,arguments),y=Math.min(Vl,Math.max(-Vl,r.apply(this,arguments)-v)),x=Math.min(Math.abs(y)/f,o.apply(this,arguments)),b=x*(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*b)/d:0;a<f;++a,v=l)c=g[a],l=v+((h=p[c])>0?h*u:0)+b,p[c]={data:s[c],index:a,value:h,startAngle:v,endAngle:l,padAngle:x};return p}return s.value=function(e){return arguments.length?(t="function"==typeof e?e:pd(+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:pd(+t),s):i},s.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:pd(+t),s):r},s.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:pd(+t),s):o},s}().startAngle(s).endAngle(s+2*Math.PI).padAngle(a).value(function(e){var n,i,r=this;return o(this,t),null!=(n=null==(i=e.values)?void 0:i.reduce(function(t,e){return o(this,r),t+e.value}.bind(this),0))?n:e}.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!Xo(r)&&n&&(r=r[n.id]||0),Qo(o)&&n&&n.id in o?o=o[n.id]:Xo(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},getStartingAngle:function(){const t=this.config,e=t.data_type,n=!!this.hasType("gauge")&&t.gauge_fullCircle,i=-1*Math.PI/2,r=Math.PI/2;let o=t[e+"_startingAngle"]||0;return!n&&o<=i?o=i:!n&&o>=r?o=r:(o>Math.PI||o<-1*Math.PI)&&(o=Math.PI),o},updateAngle:function(t,e){var n=this;void 0===e&&(e=!1);const i=this,r=i.config,s=i.state,a=e&&i.hasType("gauge");let c=i.pie,u=t,l=!1;if(!r)return null;const h=i.getStartingAngle(),f=r.gauge_fullCircle||e&&!a?i.getArcLength():-2*h;if(u.data&&i.isGaugeType(u.data)&&!i.hasMultiArcGauge()){const t=r.gauge_min,e=r.gauge_max,n=i.getTotalDataSum(s.rendered);c=c.startAngle(h).endAngle(f*((n-t)/(e-t))+h)}if(!1===e&&c(i.filterTargetsToShow()).forEach(function(t,e){var i;o(this,n),l||t.data.id!==(null==(i=u.data)?void 0:i.id)||(l=!0,u=t,u.index=e)}.bind(this)),isNaN(u.startAngle)&&(u.startAngle=0),isNaN(u.endAngle)&&(u.endAngle=u.startAngle),e||u.data&&(r.gauge_enforceMinMax||i.hasMultiArcGauge())){var d;const t=r.gauge_min,n=r.gauge_max,o=e&&!a?i.getTotalDataSum(s.rendered):n,c=null!=(d=u.value)?d:0,l=c<t?0:c<o?c-t:o-t;u.startAngle=h,u.endAngle=h+f/(o-t)*l}return l||e?u:null},getSvgArc:function(){const t=this,e=Dd.call(t),n=e.inner,i=e.outer,r=e.corner,o=Id().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=Dd.call(n,t),r=i.inner,s=i.outer,a=i.corner,c=Id().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"},redrawArcRangeText:function(){var t,e=this;const n=this,i=n.config,r=n.$el.arcs,s=n.state,a=n.$T,c=i.arc_rangeText_format,u=n.hasType("gauge")&&i.arc_rangeText_fixed;let l=i.arc_rangeText_values;if(null!=(t=l)&&t.length){const t="%"===i.arc_rangeText_unit,h=n.getTotalDataSum(s.rendered);t&&(l=l.map(function(t){return o(this,e),h/100*t}.bind(this)));const f=n.pie(l).map(function(t,n){return o(this,e),t.index=n,t}.bind(this));let d=r.selectAll("."+Ps.arcRange).data(l);d.exit(),d=a(d.enter().append("text").attr("class",Ps.arcRange).style("text-anchor","middle").style("pointer-events","none").style("opacity","0").text(function(n){o(this,e);const i=t?n/h*100:n;return Bo(c)?c(i):i+(t?"%":"")}.bind(this)).merge(d)),(!s.rendered||s.rendered&&!u)&&h>0&&d.attr("transform",function(t,i){return o(this,e),n.transformForArcLabel(f[i],!0)}.bind(this)),d.style("opacity",function(t){return o(this,e),!u&&(t>h||0===h)?"0":null}.bind(this))}},transformForArcLabel:function(t,e){var n=this;void 0===e&&(e=!1);const i=this,r=i.config,s=i.state.radiusExpanded,a=i.updateAngle(t,e);let c="";if(a)if(e||i.hasMultiArcGauge()){const n=Math.sin(a.endAngle-Math.PI/2),i=r.arc_rangeText_position;let o=Math.cos(a.endAngle-Math.PI/2)*(s+(e?5:25)),d=n*(s+15-Math.abs(10*n))+3;if(e&&i){var u,l,h,f;const e=r.arc_rangeText_values,n=Bo(i)?i(e[t.index]):i;o+=null!=(u=null==(l=n)?void 0:l.x)?u:0,d+=null!=(h=null==(f=n)?void 0:f.y)?h:0}c="translate("+o+","+d+")"}else if(!i.hasType("gauge")||i.data.targets.length>1){var d;let e=i.getRadius(t).outerRadius;i.hasType("polar")&&(e=i.getPolarOuterRadius(t,e));const s=this.svgArc.centroid(a).map(function(t){return o(this,n),isNaN(t)?0:t}.bind(this)),u=s[0],l=s[1],h=Math.sqrt(u*u+l*l);let f=null==(d=["donut","gauge","pie","polar"].filter(i.hasType.bind(i)).map(function(t){return o(this,n),r[t+"_label_ratio"]}.bind(this)))?void 0:d[0];f=f?Bo(f)?f.bind(i.api)(t,e,h):f:e&&(h?(36/e>.375?1.175-36/e:.8)*e/h:0),c="translate("+u*f+","+l*f+")"}return c},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.updateTextBackgroundColor.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;rs(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("."+Vs.legendItemFocused).size()>0&&n.expandArc(t))}.bind(this),10);return}const s=n.mapToTargetIds(t);r.svg.selectAll(n.selectorTargets(s,"."+Ps.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",zd(n.svgArcExpanded.bind(n))).transition().duration(2*e).attrTween("d",zd(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,"."+Ps.chartArc)).selectAll("path").transition().duration(function(t){return o(this,e),n.getExpandConfig(t.data.id,"duration")}.bind(this)).attrTween("d",zd(n.svgArc.bind(n))),r.selectAll(""+Ps.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)),Bo(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("."+Ps.chartArcs),l=u.selectAll("."+Ps.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,"."+Ps.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("."+Is.target+" text")},initArc:function(){const t=this,e=t.$el;e.arcs=e.main.select("."+Is.chart).append("g").attr("class",Ps.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?$s.chartArcsGaugeTitle:Ps.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"),rs(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 Xo(t)||(t=e.arc_needle_value),Ss(i,{NEEDLE_VALUE:Xo(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("."+Ps.arcs).selectAll("."+Ps.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.redrawArcGaugeLine()),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=Wi(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(ns,(function(){if(r.levelColor){const t=Rn(this),e=t.datum(this._current);r.updateLegendItemColor(e.data.id,t.style("fill"))}a.transiting=!1,es(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),r.redrawArcRangeText()},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("."+Ps.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,x=e.getNeedleAngle(),b=function(){o(this,t);const n=e.getArcTitleWithNeedleValue();n&&e.setArcTitle(n)}.bind(this);if(b(),u.empty()&&(u=n.arcs.append("path").classed(Ps.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(ns,function(){o(this,a),s&&(i.arc_needle_value=r),b()}.bind(this))}.bind(this)),c){const t=Bo(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("+x+"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=Yo(t)?t:n.arc_needle_value,c=n[n.data_type+"_startingAngle"]||0,u=0;if(Xo(a)||(a=o&&1===e.data.targets.length?s:0),i.current.needle=a,o){c=e.getStartingAngle();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.getStartingAngle(),u=s?c+e.getArcLength():-1*c;let l=e.$el.arcs.select((r?"g":"")+"."+Ps.chartArcsBackground);if(r){let r=0;l=l.selectAll("path."+Ps.chartArcsBackground).data(e.data.targets),l.enter().append("path").attr("class",function(e,n){return o(this,t),Ps.chartArcsBackground+" "+Ps.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),Uo(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("."+Ps.chartArc).select("text").style("opacity","0").attr("class",function(t){return o(this,e),n.isGaugeType(t.data)?$s.gaugeValue:null}.bind(this)).call(n.textForArcLabel.bind(n)).attr("transform",function(t){return o(this,e),n.transformForArcLabel.bind(n)(t)}.bind(this)).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("."+Ps.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("."+$s.chartArcsGaugeUnit).attr("dy",(t?1.5:.75)+"em").text(i.gauge_units),c.select("."+$s.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("."+$s.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=Xo(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("."+Is.target+" path").filter(i)}};function Fd(t){return t[0]}function jd(t){return t[1]}function Bd(t,e){var n=pd(!0),i=null,r=ph,o=null,s=Sd(a);function a(a){var c,u,l,h=(a=gd(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?Fd:pd(t),e="function"==typeof e?e:void 0===e?jd:pd(e),a.x=function(e){return arguments.length?(t="function"==typeof e?e:pd(+e),a):t},a.y=function(t){return arguments.length?(e="function"==typeof t?t:pd(+t),a):e},a.defined=function(t){return arguments.length?(n="function"==typeof t?t:pd(!!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 $d={initArea:function(t){const e=this.config;t.insert("g","."+(e.area_front?Fs.circles:Us.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("."+Ls.areas).selectAll("."+Ls.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=pd(!0),o=null,s=ph,a=null,c=Sd(u);function u(u){var l,h,f,d,g,p=(u=gd(u)).length,v=!1,y=Array(p),x=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],x[f]);a.lineEnd(),a.areaEnd()}v&&(y[l]=+t(d,l,u),x[l]=+e(d,l,u),a.point(i?+i(d,l,u):y[l],n?+n(d,l,u):x[l]))}if(g)return a=null,g+""||null}function l(){return Bd().defined(r).curve(s).context(o)}return t="function"==typeof t?t:void 0===t?Fd:pd(+t),e="function"==typeof e?e:pd(void 0===e?0:+e),n="function"==typeof n?n:void 0===n?jd:pd(+n),u.x=function(e){return arguments.length?(t="function"==typeof e?e:pd(+e),i=null,u):t},u.x0=function(e){return arguments.length?(t="function"==typeof e?e:pd(+e),u):t},u.x1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:pd(+t),u):i},u.y=function(t){return arguments.length?(e="function"==typeof t?t:pd(+t),n=null,u):e},u.y0=function(t){return arguments.length?(e="function"==typeof t?t:pd(+t),u):e},u.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:pd(+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:pd(!!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]]}}},Xd={initBar:function(){const t=this.$el,e=this.config,n=this.state.clip;t.bar=t.main.select("."+Is.chart),t.bar=e.bar_front?t.bar.append("g"):t.bar.insert("g",":first-child"),t.bar.attr("class",zs.chartBars).call(this.setCssRule(!1,"."+zs.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("."+zs.chartBars).selectAll("."+zs.chartBar).data(t.filter(function(t){var i=this;return o(this,e),t.values.some(function(t){return o(this,i),Xo(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," ."+zs.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("."+zs.bars).selectAll("."+zs.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),(Xo(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=Xo(c)&&c>0?function(){return o(this,n),c}.bind(this):Xo(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),x=!(!l||!y)&&i.isStackingRadiusData(t);if(l){const t=a?h:u,e=c[2][t]-c[0][t];v=!y||x?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 b=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]+b+"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&&(Xo(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=Xo(c)?c:c[t.id]||c._$width,v=r["axis_"+i.axis.getId(a)+"_inverted"],y=t.value,x=u(t);let b=l(t);r.axis_rotated&&!v&&(y>0&&b<d||y<0&&d<b)&&(b=d),i.isBarRangeType(t)||(b-=d-g);const m=x+p;return[[x,g],[x,b],[m,b],[m,g]]}.bind(this)}};function Ud(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 Yd={initCandlestick:function(){const t=this.$el;t.candlestick=t.main.select("."+Is.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):Qo(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=Xo(a)?a:a[t.id]||a._$width,g=i.getCandlestickData(t);let p;if(g&&Xo(g.open)&&Xo(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(Jo(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 Qo(n)&&(e=function(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?Ud(Object(e),!0).forEach((function(n){$n(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Ud(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}},Vd={initGauge:function(){var t=this;const e=this,n=e.config,i=e.$el.arcs,r=function(e,n){void 0===e&&(e=null),void 0===n&&(n=""),o(this,t),i.append("text").attr("class",e).style("text-anchor","middle").style("pointer-events","none").text(n)}.bind(this);if(e.hasType("gauge")){const t=e.hasMultiArcGauge();i.append(t?"g":"path").attr("class",Ps.chartArcsBackground).style("fill",!t&&n.gauge_background||null),n.gauge_units&&r($s.chartArcsGaugeUnit),n.gauge_label_show&&(r($s.chartArcsGaugeMin),n.gauge_fullCircle||r($s.chartArcsGaugeMax))}},updateGaugeMax:function(){const t=this,e=t.config,n=t.state,i=t.hasMultiArcGauge()?t.getMinMaxData().max[0].value:t.getTotalDataSum(n.rendered);!e.gauge_enforceMinMax&&i+e.gauge_min*(e.gauge_min>0?-1:1)>e.gauge_max&&(e.gauge_max=i-e.gauge_min)},redrawArcGaugeLine:function(){var t=this;const e=this,n=e.config,i=e.state,r=e.$el,s=e.state.hiddenTargetIds,a=r.main.selectAll("."+Ps.arcs).selectAll("."+Ps.arcLabelLine).data(e.arcData.bind(e));a.enter().append("rect").attr("class",function(e){return o(this,t),Ps.arcLabelLine+" "+Is.target+" "+Is.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 Bo(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)}},Gd={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=ma;let o=t.cache.get(r);return o||t.cache.add(r,o=ws("min",[n,i])),o},getBubbleR:function(t){var e=this;const n=this;let i=n.config.bubble_maxR;Bo(i)?i=i.bind(n.api)(t):Xo(i)||(i=n.getBaseLength()/(2*n.getMaxDataCount())+12);const r=ws("max",n.getMinMaxData().max.map(function(t){return o(this,e),n.isBubbleZType(t)?n.getBubbleZData(t.value,"y"):Qo(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 Qo(t)?t[e]:t["y"===e?0:1]}},Hd={initLine:function(){const t=this.$el;t.line=t.main.select("."+Is.chart).append("g").attr("class",Us.chartLines).call(this.setCssRule(!1,"."+Us.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("."+Us.chartLines).selectAll("."+Us.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("."+Us.lines).selectAll("."+Us.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=Bd();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(Yo(i)){const e=function(t,e){return o(this,r),Uo(t)?e:c?Es.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),x={x:s.axis.getAxisType("x"),y:s.axis.getAxisType("y")};let b="";for(let i,r=0;i=t[r];r++){const o=t[r-1],a=o&&jo(o.value);let c=s.isWithinRegions(i.x,u);if(jo(i.value))if(!Uo(u)&&c&&a){if(a){try{c=c.dasharray.split(" ")}catch(t){c="2 2".split(" ")}l=vl(x.x,o.x,i.x),h=vl(x.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)b+=y(o,i,t,f),t+d>=1&&(b+=y(o,i,1,0))}}else b+=(r&&a?"L":"M")+g(i)+","+p(i)}return b},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||Jo(e)&&-1!==e.indexOf(t.id)}};function Wd(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)}var qd={hasValidPointType:function(t){return/^(circle|rect(angle)?|polygon|ellipse|use)$/i.test(t||this.config.point_type)},hasLegendDefsPoint:function(){var t;const e=this.config;return e.legend_show&&(null==(t=e.point_pattern)?void 0:t.length)&&e.legend_usePoint},getDefsPointId:function(t){return this.state.datetimeId+"-point"+t},generatePoint:function(){const t=this,e=t.$el,n=t.config,i=[],r=Ko(n.point_pattern)?n.point_pattern:[n.point_type];return function(o,s){for(var a=arguments.length,c=Array(a>2?a-2:0),u=2;u<a;u++)c[u-2]=arguments[u];return function(a){var u,l;const h=t.getTargetSelectorSuffix(a.id||(null==(u=a.data)?void 0:u.id)||a),f=Rn(this);i.indexOf(h)<0&&i.push(h);let d=r[i.indexOf(h)%r.length];if(t.hasValidPointType(d))d=t[d];else if(!function(t){return qo(t)&&Bo(t.create)&&Bo(t.update)}(d||n.point_type)){const n=t.getDefsPointId(h);var g,p;if(e.defs.select("#"+n).size()<1&&Wd.bind(t)(d,n),"create"===o)return null==(g=t.custom)?void 0:g.create.bind(s).apply(void 0,[f,n].concat(c));if("update"===o)return null==(p=t.custom)?void 0:p.update.bind(s).apply(void 0,[f].concat(c))}return null==(l=d[o])?void 0:l.bind(s).apply(void 0,[f].concat(c))}}}};const Zd=function(){return o(this,undefined),ls()}.bind(void 0);var Kd={initialOpacityForCircle:function(t){const e=this.config,n=this.state.withoutFadeIn;let i=e.point_opacity;return Uo(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;var i;Uo(n)&&(n=!e.point_show||null!=(i=this.isPointFocusOnly)&&i.call(this)?"0":null,n=jo(this.getBaseValue(t))?this.isBubbleType(t)||this.isScatterType(t)?"0.5":n:"0");return n},initCircle:function(){const t=this,e=t.$el.main;t.point=t.generatePoint(),(t.hasType("bubble")||t.hasType("scatter"))&&e.select("."+Fs.chartCircles).empty()&&e.select("."+Is.chart).append("g").attr("class",Fs.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("."+Fs.chartCircles).style("pointer-events","none").selectAll("."+Fs.circles).data(h);t.exit().remove(),f=t.enter()}c&&f.append("g").attr("class",function(t){return o(this,n),i.generateClass(Ks.selectedCircles,t.id)}.bind(this)),f.append("g").attr("class",l).call(function(t){o(this,n),i.setCssRule(!0,"."+Fs.circles,["cursor:pointer"],u)(t),i.setCssRule(!0," ."+Fs.circle,["fill","stroke"],i.color)(t)}.bind(this)).style("opacity",(function(){return Rn(this.parentNode).attr("class").indexOf(Fs.chartCircles)>-1?"0":null})),c&&h.forEach(function(t){var e=this;o(this,n),a.main.selectAll("."+Ks.selectedCircles+i.getTargetSelectorSuffix(t.id)).selectAll(""+Ks.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=n.isPointFocusOnly(),c=t?s.subchart:s;if(i.point_show&&!r.toggling){i.point_radialGradient&&n.updateLinearGradient();const t=c.main.selectAll("."+Fs.circles).selectAll("."+Fs.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.updateCircleColor.bind(n))),c.circle=c.main.selectAll("."+Fs.circles+" ."+Fs.circle).style("stroke",n.getStylePropValue(n.color)).style("opacity",n.initialOpacityForCircle.bind(n))}},updateCircleColor:function(t){const e=this,n=e.getStylePropValue(e.color);return e.config.point_radialGradient?e.getGradienColortUrl(t.id):n?n(t):null},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("."+Ks.selectedCircle);if(!o.config.point_show)return[];const h=o.point("update",o,t,e,o.updateCircleColor.bind(o),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.state,i=n.hasRadar,r=n.resizing,s=n.toggling,a=n.transiting;let c=e.$el.circle;if(!1===a&&c&&e.isPointFocusOnly()){const n=(i?e.radarCircleX:e.circleX).bind(e),a=(i?e.radarCircleY:e.circleY).bind(e),u=s||Uo(t),l=e.point("update",e,n,a,e.getStylePropValue(e.color),!r&&u);t&&(c=c.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])}))),c.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";jo(r)&&(l.bind(this)(t),e.expandCircles(i,n),o=""),this.style.visibility=o}))}},hideCircleFocus:function(){const t=this,e=t.$el.circle;t.isPointFocusOnly()&&e&&(t.unexpandCircles(),e.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(Is.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(Is.EXPANDED)})).classed(Is.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):Bo(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 Bo(e)?e(t):e||4*this.pointR(t)},isPointFocusOnly:function(){const t=this;return t.config.point_focus_only&&!t.hasType("bubble")&&!t.hasType("scatter")&&!t.hasArcType(null,["radar"])},isWithinCircle:function(t,e){const n=this.config,i=as(this.state.event,t),r=Rn(t),o=this.isCirclePoint(t)?"c":"",s="radius"===n.point_sensitivity?t.getAttribute("r"):n.point_sensitivity;let a=+r.attr(o+"x"),c=+r.attr(o+"y");if(!a&&!c&&1===t.nodeType){const e=us(t);a=e.x,c=e.y}return Math.sqrt(Math.pow(a-i[0],2)+Math.pow(c-i[1],2))<(e||s)},getPointSensitivity:function(t){const e=this;let n=e.config.point_sensitivity;return Bo(n)?n=n.call(e.api,t):"radius"===n&&(n=t.r),n},updatePointClass:function(t){const e=this,n=e.$el.circle;let i=!1;return(Qo(t)||n)&&(i=!0===t?n.each((function(t){let n=e.getClass("circle",!0)(t);this.getAttribute("class").indexOf(Is.EXPANDED)>-1&&(n+=" "+Is.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)},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),jo(t.value)?e(t)-h/2:0}.bind(this),g=function(t){return o(this,c),jo(t.value)?n(t)-f/2:0}.bind(this);let p=t;return r&&(s&&p.attr("x",d),p=u.$T(p,r,Zd()),a&&u.$T(a,r,Zd())),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,Zd())),s&&a.$T(c,r,Zd())),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,Zd()),a&&u.$T(a,r,Zd())),d.attr("x",h).attr("y",f).style("fill",i)}}};function Jd(t){const e=t.config.polar_level_max;let n=t.getMinMaxData().max[0].value;return e&&e>n&&(n=e),n}var Qd={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",Ws),i&&r&&t.generateDataLabelBackgroundColorFilter(r)},getPolarOuterRadius:function(t,e){var n;const i=Jd(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=Jd(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("."+Hs).data(c);f.exit().remove();const d=f.enter().append("g").attr("class",function(e,n){return o(this,t),Hs+" "+Hs+"-"+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 tg=Ea,eg=ka;var ng={initRadar:function(){const t=this,e=t.config,n=t.state.current,i=t.$el;t.hasType("radar")&&(i.radar=i.main.select("."+Is.chart).append("g").attr("class",qs.chartRadars),i.radar.levels=i.radar.append("g").attr("class",Ws),i.radar.axes=i.radar.append("g").attr("class",Ds.axis),i.radar.shapes=i.radar.append("g").attr("class",Js.shapes),n.dataMax=e.radar_axis_max||t.getMinMaxData().max[0].value,e.radar_axis_text_show&&(e.interaction_enabled&&t.bindRadarEvent(),t.updateRadarLevel(),t.updateRadarAxes()))},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;Zo(n.axis_x_categories)&&(n.axis_x_categories=Ts(0,ws("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,Yo(n)?n:"x"===t?c:u,Xo(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(tg)||{},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(tg,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("."+ta.chartTexts).attr("transform",r),t.generateRadarPoints(),t.updateRadarLevel(),t.updateRadarAxes(),t.updateRadarShape())},generateGetRadarPoints:function(){var t=this;const e=this.cache.get(tg);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)),x=f.selectAll("."+Hs).data(d);x.exit().remove();const b=x.enter().append("g").attr("class",function(e,n){return o(this,t),Hs+" "+Hs+"-"+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 o(this,t),v(0)}.bind(this)),b.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))),b.merge(x).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),Uo(e)?a:y[e].split(",")[0]}.bind(this)).attr("y",function(e){return o(this,t),Uo(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),Ds.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 r=n.radar_axis_text_position,c=r.x,l=void 0===c?0:c,h=r.y,f=void 0===h?0:h,d=e.cache.get(eg)||0;if(u.select("text").style("text-anchor","middle").attr("dy",".5em").call(function(e){o(this,t),e.each((function(t){rs(Rn(this),t+"",[-.6,1.2])}))}.bind(this)).datum(function(e,n){return o(this,t),{index:n}}.bind(this)).attr("transform",(function(t){Uo(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+l:Math.round(n)<s&&(n-=this.width+l),i>a?(i/2===a&&"tspan"===this.firstChild.tagName&&this.firstChild.setAttribute("dy","0em"),i+=f):i<a&&(i-=f),"translate("+n+" "+i+")"})),!d){const n=[i.axes,i.levels].map(function(e){return o(this,t),ss(e.node()).width}.bind(this));n.every(function(e){return o(this,t),e>0}.bind(this))&&e.cache.add(eg,n[0]-n[1])}}},bindRadarEvent:function(){var t=this;const e=this,n=e.state,i=e.$el,r=i.radar,s=i.svg,a=e.isPointFocusOnly(),c=n,u=c.inputType,l=c.transiting,h="mouse"===u,f=function(i){o(this,t),n.event=i;const r=e.getDataIndexFromEvent(i),s=Uo(r);(h||s)&&(e.hideTooltip(),a?e.hideCircleFocus():e.unexpandCircles(),h?e.setOverOut(!1,r):s&&e.callOverOutForTouch())}.bind(this);r.axes.on(h?"mouseover ":"touchstart",function(i){if(o(this,t),l)return;n.event=i;const r=e.getDataIndexFromEvent(i);e.selectRectForSingle(s.node(),r),h?e.setOverOut(!0,r):e.callOverOutForTouch(r)}.bind(this)).on("mouseout",h?f:null),h||s.on("touchstart",f)},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(tg),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(tg)[t.id][t.index][0]},radarCircleY:function(t){return this.cache.get(tg)[t.id][t.index][1]}};function ig(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 rg(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 og(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 sg=(1+Math.sqrt(5))/2;function ag(t,e,n,i,r,o){for(var s,a,c,u,l,h,f,d,g,p,v,y=[],x=e.children,b=0,m=0,_=x.length,w=e.value;b<_;){c=r-n,u=o-i;do{l=x[m++].value}while(!l&&m<_);for(h=f=l,v=l*l*(p=Math.max(u/c,c/u)/(w*t)),g=Math.max(f/v,v/h);m<_;++m){if(l+=a=x[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:x.slice(b,m)}),s.dice?rg(s,n,i,r,w?i+=u*l/w:o):og(s,n,i,w?n+=c*l/w:r,o),w-=l,b=m}return y}var cg=function t(e){function n(t,n,i,r,o){ag(e,t,n,i,r,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(sg);function ug(t){if("function"!=typeof t)throw new Error;return t}function lg(){return 0}function hg(t){return function(){return t}}function fg(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 dg(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 gg(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 gg(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 gg(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 pg(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 vg(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 vg(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 vg(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 yg,xg=Tn.mark(bg);function bg(){var t,e,n,i,r,o;return Tn.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()}}),xg,this)}function mg(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=wg)):void 0===e&&(e=_g);for(var n,i,r,o,s,a=new Sg(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 Sg(r[o])),i.parent=n,i.depth=n.depth+1;return a.eachBefore(Ag)}function _g(t){return t.children}function wg(t){return Array.isArray(t)?t[1]:null}function Tg(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Ag(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Sg(t){this.data=t,this.depth=this.height=0,this.parent=null}function Eg(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 x=i?(r*y+s*v)/i:s;t(e,d,v,r,o,x,c),t(d,n,y,x,o,s,c)}else{var b=i?(o*y+c*v)/i:c;t(e,d,v,r,o,s,b),t(d,n,y,r,b,s,c)}}(0,c,t.value,e,n,i,r)}function kg(t,e,n,i,r){(1&t.depth?og:rg)(t,e,n,i,r)}Sg.prototype=mg.prototype=(yg={constructor:Sg,count:function(){return this.eachAfter(fg)},each:function(t,e){let n=-1;for(var i,r=dg(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=pg(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 mg(this).eachBefore(Tg)}},yg[Symbol.iterator]=bg,yg);var Og=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?rg(a,n,i,r,d?i+=(o-i)*a.value/d:o):og(a,n,i,d?n+=(r-n)*a.value/d:r,o),d-=a.value}else t._squarify=s=ag(e,t,n,i,r,o),s.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(sg);function Mg(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 Rg(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 Rg(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 Rg(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=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 Ig(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 Pg={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=cg,e=!1,n=1,i=1,r=[0],o=lg,s=lg,a=lg,c=lg,u=lg;function l(t){return t.x0=t.y0=0,t.x1=n,t.y1=i,t.eachBefore(h),r=[0],e&&t.eachBefore(ig),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=ug(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:hg(+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:hg(+t),l):s},l.paddingRight=function(t){return arguments.length?(a="function"==typeof t?t:hg(+t),l):a},l.paddingBottom=function(t){return arguments.length?(c="function"==typeof t?t:hg(+t),l):c},l.paddingLeft=function(t){return arguments.length?(u="function"==typeof t?t:hg(+t),l):u},l}().tile(e.getTreemapTile()),e.treemapFn=function(n){var i=this;o(this,t);const r=mg(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("."+Is.chart).attr("clip-path","url(#"+c.id+")").append("g").classed(na.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:Eg,dice:rg,slice:og,sliceDice:kg,squarify:cg,resquarify:Og}[null!=(e=i.treemap_tile)?e:"binary"])?t:Eg;return function(t,e,i,r,u){o(this,n),c(t,0,0,s,a);for(var l,h=Mg(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:Ig.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(Cg.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),Bo(o)?o.bind(e.api)(r,s,i):i+"\n"+a+"%"}}},Lg={point_show:!0,point_r:2.5,point_radialGradient:!1,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"},Dg={area_above:!1,area_below:!1,area_front:!0,area_linearGradient:!1,area_zerobased:!0},zg={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},Ng={bubble_maxR:35,bubble_zerobased:!1},Fg={candlestick_width:void 0,candlestick_width_ratio:.6,candlestick_width_max:void 0,candlestick_color_down:"red"},jg={line_connectNull:!1,line_step_type:"step",line_step_tooltipMatch:!1,line_zerobased:!1,line_classes:void 0,line_point:!0},Bg={scatter_zerobased:!1},$g={spline_interpolation_type:"cardinal"},Xg={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,arc_rangeText_values:void 0,arc_rangeText_unit:"absolute",arc_rangeText_fixed:!1,arc_rangeText_format:void 0,arc_rangeText_position:void 0},Ug={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},Yg={gauge_background:"",gauge_fullCircle:!1,gauge_label_show:!0,gauge_label_extents:void 0,gauge_label_format:void 0,gauge_label_ratio:void 0,gauge_label_threshold:0,gauge_enforceMinMax:!1,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},Vg={pie_label_show:!0,pie_label_format:void 0,pie_label_ratio:void 0,pie_label_threshold:.05,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},Gg={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},Hg={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},Wg={treemap_tile:"binary",treemap_label_format:void 0,treemap_label_threshold:.05,treemap_label_show:!0},qg=void 0;function Zg(t,e){ds(Ph.prototype,Object.values(Jf).concat(t)),ds(qh.prototype,Kf),ba.setOptions(Object.values(Qf).concat(e||[]))}function Kg(t,e){Zg([qd,Kd,Hd].concat(t||[])),ba.setOptions([Lg,jg].concat(e||[]))}function Jg(t,e){ds(Ph.prototype,[Nd,qd].concat(t||[])),ba.setOptions([Lg].concat(e||[]))}let Qg=function(){var t=this;return o(this,qg),Kg($d,[Dg]),(Qg=function(){return o(this,t),zn.AREA}.bind(this))()}.bind(void 0),tp=function(){var t=this;return o(this,qg),Kg($d,[Dg]),(tp=function(){return o(this,t),zn.AREA_LINE_RANGE}.bind(this))()}.bind(void 0),ep=function(){var t=this;return o(this,qg),Kg($d,[Dg,$g]),(ep=function(){return o(this,t),zn.AREA_SPLINE}.bind(this))()}.bind(void 0),np=function(){var t=this;return o(this,qg),Kg($d,[Dg,$g]),(np=function(){return o(this,t),zn.AREA_SPLINE_RANGE}.bind(this))()}.bind(void 0),ip=function(){var t=this;return o(this,qg),Kg($d,[Dg]),(ip=function(){return o(this,t),zn.AREA_STEP}.bind(this))()}.bind(void 0),rp=function(){var t=this;return o(this,qg),Kg(),(rp=function(){return o(this,t),zn.LINE}.bind(this))()}.bind(void 0),op=function(){var t=this;return o(this,qg),Kg(void 0,[$g]),(op=function(){return o(this,t),zn.SPLINE}.bind(this))()}.bind(void 0),sp=function(){var t=this;return o(this,qg),Kg(),(sp=function(){return o(this,t),zn.STEP}.bind(this))()}.bind(void 0),ap=function(){var t=this;return o(this,qg),Jg(void 0,[Xg,Ug]),(ap=function(){return o(this,t),zn.DONUT}.bind(this))()}.bind(void 0),cp=function(){var t=this;return o(this,qg),Jg([Vd],[Xg,Yg]),(cp=function(){return o(this,t),zn.GAUGE}.bind(this))()}.bind(void 0),up=function(){var t=this;return o(this,qg),Jg(void 0,[Xg,Vg]),(up=function(){return o(this,t),zn.PIE}.bind(this))()}.bind(void 0),lp=function(){var t=this;return o(this,qg),Jg([Qd],[Xg,Gg]),(lp=function(){return o(this,t),zn.POLAR}.bind(this))()}.bind(void 0),hp=function(){var t=this;return o(this,qg),Jg([Jf.eventrect,Kd,ng],[Lg,Hg,{axis_x_categories:Qf.optAxis.axis_x_categories}]),(hp=function(){return o(this,t),zn.RADAR}.bind(this))()}.bind(void 0),fp=function(){var t=this;return o(this,qg),Zg([Xd,qd],[zg,Lg]),(fp=function(){return o(this,t),zn.BAR}.bind(this))()}.bind(void 0),dp=function(){var t=this;return o(this,qg),Zg([qd,Kd,Gd],[Ng,Lg]),(dp=function(){return o(this,t),zn.BUBBLE}.bind(this))()}.bind(void 0),gp=function(){var t=this;return o(this,qg),Zg([Yd,qd],[Fg,Lg]),(gp=function(){return o(this,t),zn.CANDLESTICK}.bind(this))()}.bind(void 0),pp=function(){var t=this;return o(this,qg),Zg([qd,Kd],[Lg,Bg]),(pp=function(){return o(this,t),zn.SCATTER}.bind(this))()}.bind(void 0),vp=function(){var t=this;return o(this,qg),Zg([Pg],[Wg]),(vp=function(){return o(this,t),zn.TREEMAP}.bind(this))()}.bind(void 0);function yp(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("."+Js.shapes).selectAll("."+Js.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(Ks.SELECTED);s.classed(Us.line)||s.classed(Ls.area)||(t?d&&g&&c(o)&&!p?f(!0,s.classed(Ks.SELECTED,!0),o,h):Yo(i)&&i&&p&&f(!1,s.classed(Ks.SELECTED,!1),o,h):d&&g&&c(o)&&p&&f(!1,s.classed(Ks.SELECTED,!1),o,h))}))}var xp={selected:function(t){var e=this;const n=this.internal,i=[];return n.$el.main.selectAll("."+(Js.shapes+n.getTargetSelectorSuffix(t))).selectAll("."+Js.shape).filter((function(){return Rn(this).classed(Ks.SELECTED)})).each(function(t){return o(this,e),i.push(t)}.bind(this)),i},select:function(t,e,n){const i=this.internal;yp.bind(i)(!0,t,e,n)},unselect:function(t,e){const n=this.internal;yp.bind(n)(!1,t,e)}};const bp=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),Es.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(bp,{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("."+Is.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("."+Is.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 mp={subchart:bp};function _p(t){return((t=Math.exp(t))+1/t)/2}var wp=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),x=(f*f-u*u-i*p)/(2*f*n*v),b=Math.log(Math.sqrt(y*y+1)-y),m=Math.log(Math.sqrt(x*x+1)-x);s=(m-b)/e,o=function(t){var i=t*s,r=_p(b),o=u/(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[a+o*d,c+o*g,u*r/_p(e*i+b)]}}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),Tp=function(t){var e=this;return o(this,undefined),function(){return o(this,e),t}.bind(this)}.bind(void 0);function Ap(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 Sp(t,e,n){this.k=t,this.x=e,this.y=n}Sp.prototype={constructor:Sp,scale:function(t){return 1===t?this:new Sp(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new Sp(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 Ep=new Sp(1,0,0);function kp(t){for(;!t.__zoom;)if(!(t=t.parentNode))return Ep;return t.__zoom}function Op(t){t.stopImmediatePropagation()}function Mp(t){t.preventDefault(),t.stopImmediatePropagation()}function Rp(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function Cp(){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 Ip(){return this.__zoom||Ep}function Pp(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Lp(){return navigator.maxTouchPoints||"ontouchstart"in this}function Dp(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))}kp.prototype=Sp.prototype;const zp=function(t){var e,n=this;const i=this.internal,r=i.axis,s=i.config,a=i.org,c=i.scale,u=i.state,l=r.isCategorized();let h;if(s.zoom_enabled)if(h=t,Array.isArray(h)){r.isTimeSeries()&&(h=h.map(function(t){return o(this,n),Es.bind(i)(t)}.bind(this)));if(i.withinRange(h,i.getZoomDomain("zoom",!0),i.getZoomDomain("zoom"))){if(u.domain=h,h=i.getZoomDomainValue(h),i.api.tooltip.hide(),s.subchart_show){const t=c.zoom||c.x;i.brush.getSelection().call(i.brush.move,h.map(t))}else{const t=l?c.x.orgScale():a.xScale||c.x;i.updateCurrentZoomTransform(t,h)}i.setZoomResetButton()}}else h=i.zoom.getDomain();return null!=(e=u.domain)?e:h};ds(zp,{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=ws("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=ws("min",[i[0],t])),n.zoom_x_min},range:function(t){const e=this.zoom;if(Qo(t)){const n=t.min,i=t.max;Yo(n)&&e.min(n),Yo(i)&&e.max(i)}return{min:e.min(),max:e.max()}}});var Np={zoom:zp,unzoom:function(){const t=this.internal,e=t.config,n=t.$el,i=n.eventRect,r=n.zoomResetBtn,o=t.scale.zoom,s=t.state;o&&(e.subchart_show?t.brush.getSelection().call(t.brush.move,null):t.zoom.updateTransformScale(Ep),t.updateZoom(!0),null==r||r.style("display","none"),kp(i.node())!==Ep&&t.zoom.transform(i,Ep),s.domain=void 0)}},Fp={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("."+Bs.dragarea).attr("x",g).attr("y",v).attr("width",p-g).attr("height",y-v),s.selectAll("."+Js.shapes).selectAll("."+Js.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(Ks.SELECTED),o=i.classed(Bs.INCLUDED);let s,a=!1;if(i.classed(Fs.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(zs.bar))return;{const t=ss(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(Bs.INCLUDED,!o),i.classed(Ks.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("."+Is.chart).append("rect").attr("class",Bs.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("."+Bs.dragarea)).style("opacity","0").remove(),n.selectAll("."+Js.shape).classed(Bs.INCLUDED,!1),t.setDragStatus(!1))}};function jp(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 Bp(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?jp(Object(e),!0).forEach((function(n){$n(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):jp(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var $p=Bp(Bp({},Fp),{},{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);es(s.data_onselected,r.api,e,t.node()),c(a.select("."+Ks.selectedCircles+r.getTargetSelectorSuffix(e.id)).selectAll("."+Ks.selectedCircle+"-"+n).data([e]).enter().append("circle").attr("class",function(){return o(this,i),r.generateClass(Ks.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;es(r.data_onunselected,i.api,e,null==t?void 0:t.node()),s(o.select("."+Ks.selectedCircles+i.getTargetSelectorSuffix(e.id)).selectAll("."+Ks.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;es(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;es(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(Ks.SELECTED),c=i.getToggle(t,e).bind(i);let u;if(!r.data_selection_multiple){const t=null==i.isPointFocusOnly?void 0:i.isPointFocusOnly();let n="."+(t?Ks.selectedCircles:Js.shapes);r.data_selection_grouped&&(n+=i.getTargetSelectorSuffix(e.id)),o.selectAll(n).selectAll(t?"."+Ks.selectedCircle:"."+Js.shape+"."+Ks.SELECTED).classed(Ks.SELECTED,!1).each((function(t){const e=Rn(this);u=e,c(!1,e,t,t.index)}))}u&&u.node()===s.node()||(s.classed(Ks.SELECTED,!a),c(!a,s,e,n))}}}),Xp={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=Do(a?To: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&&Lo(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("."+ra.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]]:Jo(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("."+ra.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(ra.subchart,!0).attr("transform",e.getTranslate("context"));const p=l.main;p.style("visibility",f),p.append("g").attr("clip-path",g).attr("class",ra.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("."+ra.chart),e=ra["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",ra.brush).call(e.brush);n.subchart_showHandle&&e.addBrushHandle(v),h.subX=p.append("g").attr("class",ra.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("."+ra["chart"+a+"s"]);if(r){const e=l.selectAll("."+ra.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("."+ra["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("."+ra.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("."+ra.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(Bo(r))r=r.bind(e.api)(e.getXDomain(e.data.targets),i.subX);else if(e.axis.isTimeSeries()&&r.every(isNaN)){const n=Es.bind(e);r=r.map(function(e){return o(this,t),i.subX(n(e))}.bind(this))}return r}},Up={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=Rp,r=Cp,o=Dp,s=Pp,a=Lp,c=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],l=250,h=wp,f=Wn("start","zoom","end"),d=0,g=10;function p(t){t.property("__zoom",Ip).on("wheel.zoom",w,{passive:!1}).on("mousedown.zoom",T).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 Sp(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 Sp(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,o=arguments,s=m(t,o).event(i),a=r.apply(t,o),c=null==n?x(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 Sp(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 w(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(i.apply(this,arguments)){var 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=Xn(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)],kr(this),a.start()}Mp(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 T(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(Mp(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]=Xn(t,a),c.mouse[1]),c.extent,u))}),!0).on("mouseup.zoom",(function(t){l.on("mousemove.zoom mouseup.zoom",null),ti(t.view,c.moved),Mp(t),c.event(t).end()}),!0),h=Xn(t,a),f=t.clientX,g=t.clientY;Qn(t.view),Op(t),c.mouse=[h,this.__zoom.invert(h)],kr(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=Xn(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);Mp(t),l>0?Rn(this).transition().duration(l).call(b,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(Op(n),c=0;c<f;++c)l=[l=Xn(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)),kr(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(Mp(t),r=0;r<f;++r)a=Xn(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],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])*_;s=v(s,Math.sqrt(b/_)),a=[(d[0]+p[0])/2,(d[1]+p[1])/2],c=[(g[0]+x[0])/2,(g[1]+x[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(Op(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=Xn(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",Ip),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,s=null==n?x(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?x(t):"function"==typeof i?i.apply(this,arguments):i;return o(Ep.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 Ap(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:Tp(+t),p):s},p.filter=function(t){return arguments.length?(i="function"==typeof t?t:Tp(!!t),p):i},p.touchable=function(t){return arguments.length?(a="function"==typeof t?t:Tp(!!t),p):a},p.extent=function(t){return arguments.length?(r="function"==typeof t?t:Tp([[+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=Wo(e.scale.x.orgDomain())/Wo(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",Ep.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)):i.xScale&&(r.x.domain(i.xScale.domain()),i.xScale=null)}.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,es(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)===Ep;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||es(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)===Ep;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||(o.zooming=!1,i.redrawEventRect(),i.updateZoom(),!c&&(a||o.dragging)&&es(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)}},updateCurrentZoomTransform:function(t,e){var n;const i=this,r=i.$el.eventRect,o=i.config.axis_rotated,s=[-t(e[0]),0],a=(n=Ep.scale(t.range()[1]/(t(e[1])-t(e[0])))).translate.apply(n,o?s.reverse():s);r.call(i.zoom.transform,a)},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)),null==i||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=dc().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",ia.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(Is.button,!0).append("span").on("click",(function(){Bo(i.onclick)&&i.onclick.bind(t.api)(this),t.api.unzoom()})).classed(ia.buttonZoomReset,!0).text(i.text||"Reset Zoom"))},getZoomTransform:function(){const t=this.$el.eventRect;return null!=t&&t.node()?kp(t.node()):{k:1}}},Yp=void 0,Vp={data_selection_enabled:!1,data_selection_grouped:!1,data_selection_isselectable:function(){return o(this,Yp),!0}.bind(void 0),data_selection_multiple:!0,data_selection_draggable:!1,data_onselected:function(){o(this,Yp)}.bind(void 0),data_onunselected:function(){o(this,Yp)}.bind(void 0)},Gp={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)},Hp={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},Wp=void 0;let qp=function(){var t=this;return o(this,Wp),ds(Ph.prototype,$p),ds(qh.prototype,xp),ba.setOptions([Vp]),(qp=function(){return o(this,t),!0}.bind(this))()}.bind(void 0),Zp=function(){var t=this;return o(this,Wp),ds(Ph.prototype,Xp),ds(qh.prototype,mp),ba.setOptions([Gp]),(Zp=function(){return o(this,t),!0}.bind(this))()}.bind(void 0),Kp=function(){var t=this;return o(this,Wp),ds(Ph.prototype,Up),ds(qh.prototype,Np),ba.setOptions([Hp]),(Kp=function(){return o(this,t),!0}.bind(this))()}.bind(void 0),Jp={};const Qp={version:"3.11.3",generate:function(t){const e=ms({},Jp,t),n=new qh(e);return n.internal.charts=this.instance,this.instance.push(n),n},defaults:function(t){return Qo(t)&&(Jp=t),Jp},instance:[],plugin:{}};var tv=void 0;Object.keys(i).forEach(function(t){return o(this,tv),i[t]()}.bind(void 0)),Object.keys(r).forEach(function(t){return o(this,tv),r[t]()}.bind(void 0))},function(t,e,n){var i=n(541)();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(542).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",x="completed",b={};function m(){}function _(){}function w(){}var T={};f(T,u,(function(){return this}));var A=Object.getPrototypeOf,S=A&&A(A(L([])));S&&S!==o&&s.call(S,u)&&(T=S);var E=w.prototype=m.prototype=Object.create(T);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===x){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===b)continue;return c}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===p)throw r=x,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?x:v,u.arg===b)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(r=x,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")),b;var o=g(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,b;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,b):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}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=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:_,configurable:!0}),_.displayName=f(w,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,w):(t.__proto__=w,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,b):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),b},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),b}},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),b}},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(539)}()}));
|
|
26
|
+
*/(function(Xa,Nn){if(typeof exports=="object"&&typeof module=="object")module.exports=Nn();else if(typeof define=="function"&&define.amd)define([],Nn);else{var Va=Nn();for(var x in Va)(typeof exports=="object"?exports:Xa)[x]=Va[x]}})(this,function(){return function(){"use strict";var Oo=[function(x,E,r){r(1),r(97),r(98),r(99),r(100),r(101),r(102),r(103),r(104),r(105),r(106),r(107),r(108),r(109),r(110),r(111),r(124),r(126),r(136),r(137),r(139),r(143),r(146),r(148),r(150),r(151),r(152),r(153),r(155),r(156),r(158),r(159),r(161),r(165),r(166),r(167),r(168),r(173),r(174),r(176),r(177),r(178),r(180),r(183),r(184),r(185),r(186),r(187),r(192),r(194),r(195),r(197),r(200),r(201),r(202),r(203),r(204),r(206),r(216),r(218),r(221),r(223),r(226),r(233),r(234),r(235),r(236),r(237),r(238),r(242),r(243),r(245),r(246),r(247),r(249),r(250),r(251),r(93),r(252),r(253),r(261),r(263),r(265),r(266),r(267),r(268),r(269),r(271),r(272),r(273),r(274),r(275),r(277),r(278),r(279),r(280),r(281),r(282),r(283),r(284),r(288),r(289),r(291),r(293),r(294),r(295),r(296),r(297),r(299),r(301),r(302),r(303),r(304),r(306),r(307),r(309),r(310),r(311),r(312),r(314),r(315),r(316),r(317),r(318),r(319),r(320),r(321),r(322),r(324),r(325),r(326),r(327),r(328),r(329),r(330),r(331),r(332),r(333),r(334),r(336),r(337),r(338),r(339),r(361),r(362),r(363),r(364),r(365),r(366),r(367),r(368),r(369),r(371),r(372),r(373),r(374),r(375),r(376),r(377),r(378),r(379),r(380),r(387),r(388),r(390),r(391),r(392),r(393),r(394),r(396),r(407),r(409),r(411),r(413),r(415),r(417),r(419),r(420),r(422),r(425),r(426),r(427),r(428),r(429),r(433),r(434),r(436),r(437),r(438),r(439),r(441),r(442),r(443),r(444),r(445),r(446),r(447),r(449),r(452),r(455),r(458),r(459),r(460),r(461),r(462),r(463),r(464),r(465),r(466),r(467),r(468),r(469),r(470),r(479),r(480),r(481),r(482),r(483),r(484),r(485),r(486),r(487),r(488),r(489),r(490),r(491),r(494),r(495),r(496),r(497),r(498),r(499),r(500),r(501),r(502),r(503),r(504),r(505),r(506),r(507),r(508),r(509),r(510),r(511),r(512),r(513),r(514),r(515),r(516),r(517),r(518),r(519),r(520),r(521),r(524),r(526),r(528),r(529),r(532),r(533),r(535),r(536),r(537),r(542),r(543),r(544),r(545),r(548),r(553),r(554),r(555),r(556),r(557),r(558),r(559),r(80)},function(x,E,r){r(2),r(90),r(92),r(93),r(96)},function(x,E,r){var u=r(3),d=r(4),h=r(8),p=r(14),y=r(36),T=r(6),$=r(26),A=r(7),b=r(38),R=r(24),O=r(46),C=r(12),w=r(18),D=r(68),L=r(11),F=r(71),j=r(73),U=r(57),z=r(75),Y=r(66),B=r(5),V=r(44),K=r(72),J=r(10),Z=r(47),_=r(77),nt=r(34),rt=r(53),q=r(54),tt=r(40),et=r(33),lt=r(78),vt=r(79),ft=r(81),bt=r(82),yt=r(51),Ft=r(83).forEach,Lt=rt("hidden"),jt="Symbol",Kt="prototype",Jt=yt.set,ge=yt.getterFor(jt),le=Object[Kt],ee=d.Symbol,Mt=ee&&ee[Kt],zt=d.RangeError,te=d.TypeError,ae=d.QObject,re=B.f,oe=V.f,Re=z.f,Ce=J.f,xe=p([].push),se=nt("symbols"),Ae=nt("op-symbols"),me=nt("wks"),ce=!ae||!ae[Kt]||!ae[Kt].findChild,Et=function(Ot,Pt,ot){var gt=re(le,Pt);gt&&delete le[Pt],oe(Ot,Pt,ot),gt&&Ot!==le&&oe(le,Pt,gt)},Bt=T&&A(function(){return F(oe({},"a",{get:function(){return oe(this,"a",{value:7}).a}})).a!==7})?Et:oe,$t=function(Ot,Pt){var ot=se[Ot]=F(Mt);return Jt(ot,{type:jt,tag:Ot,description:Pt}),T||(ot.description=Pt),ot},kt=function(Pt,ot,gt){Pt===le&&kt(Ae,ot,gt),O(Pt);var ct=w(ot);return O(gt),b(se,ct)?(gt.enumerable?(b(Pt,Lt)&&Pt[Lt][ct]&&(Pt[Lt][ct]=!1),gt=F(gt,{enumerable:L(0,!1)})):(b(Pt,Lt)||oe(Pt,Lt,L(1,F(null))),Pt[Lt][ct]=!0),Bt(Pt,ct,gt)):oe(Pt,ct,gt)},Qt=function(Pt,ot){O(Pt);var gt=C(ot),ct=j(gt).concat(dt(gt));return Ft(ct,function(Nt){(!T||h(Ut,gt,Nt))&&kt(Pt,Nt,gt[Nt])}),Pt},Vt=function(Pt,ot){return ot===void 0?F(Pt):Qt(F(Pt),ot)},Ut=function(Pt){var ot=w(Pt),gt=h(Ce,this,ot);return this===le&&b(se,ot)&&!b(Ae,ot)?!1:gt||!b(this,ot)||!b(se,ot)||b(this,Lt)&&this[Lt][ot]?gt:!0},we=function(Pt,ot){var gt=C(Pt),ct=w(ot);if(!(gt===le&&b(se,ct)&&!b(Ae,ct))){var Nt=re(gt,ct);return Nt&&b(se,ct)&&!(b(gt,Lt)&>[Lt][ct])&&(Nt.enumerable=!0),Nt}},Ye=function(Pt){var ot=Re(C(Pt)),gt=[];return Ft(ot,function(ct){!b(se,ct)&&!b(q,ct)&&xe(gt,ct)}),gt},dt=function(Ot){var Pt=Ot===le,ot=Re(Pt?Ae:C(Ot)),gt=[];return Ft(ot,function(ct){b(se,ct)&&(!Pt||b(le,ct))&&xe(gt,se[ct])}),gt};$||(ee=function(){if(R(Mt,this))throw new te("Symbol is not a constructor");var Pt=!arguments.length||arguments[0]===void 0?void 0:D(arguments[0]),ot=tt(Pt),gt=function(ct){var Nt=this===void 0?d:this;Nt===le&&h(gt,Ae,ct),b(Nt,Lt)&&b(Nt[Lt],ot)&&(Nt[Lt][ot]=!1);var qt=L(1,ct);try{Bt(Nt,ot,qt)}catch(ie){if(!(ie instanceof zt))throw ie;Et(Nt,ot,qt)}};return T&&ce&&Bt(le,ot,{configurable:!0,set:gt}),$t(ot,Pt)},Mt=ee[Kt],Z(Mt,"toString",function(){return ge(this).tag}),Z(ee,"withoutSetter",function(Ot){return $t(tt(Ot),Ot)}),J.f=Ut,V.f=kt,K.f=Qt,B.f=we,U.f=z.f=Ye,Y.f=dt,lt.f=function(Ot){return $t(et(Ot),Ot)},T&&(_(Mt,"description",{configurable:!0,get:function(){return ge(this).description}}),y||Z(le,"propertyIsEnumerable",Ut,{unsafe:!0}))),u({global:!0,constructor:!0,wrap:!0,forced:!$,sham:!$},{Symbol:ee}),Ft(j(me),function(Ot){vt(Ot)}),u({target:jt,stat:!0,forced:!$},{useSetter:function(){ce=!0},useSimple:function(){ce=!1}}),u({target:"Object",stat:!0,forced:!$,sham:!T},{create:Vt,defineProperty:kt,defineProperties:Qt,getOwnPropertyDescriptor:we}),u({target:"Object",stat:!0,forced:!$},{getOwnPropertyNames:Ye}),ft(),bt(ee,jt),q[Lt]=!0},function(x,E,r){var u=r(4),d=r(5).f,h=r(43),p=r(47),y=r(37),T=r(55),$=r(67);x.exports=function(A,b){var R=A.target,O=A.global,C=A.stat,w,D,L,F,j,U;if(O?D=u:C?D=u[R]||y(R,{}):D=u[R]&&u[R].prototype,D)for(L in b){if(j=b[L],A.dontCallGetSet?(U=d(D,L),F=U&&U.value):F=D[L],w=$(O?L:R+(C?".":"#")+L,A.forced),!w&&F!==void 0){if(typeof j==typeof F)continue;T(j,F)}(A.sham||F&&F.sham)&&h(j,"sham",!0),p(D,L,j,A)}}},function(x){var E=function(r){return r&&r.Math===Math&&r};x.exports=E(typeof globalThis=="object"&&globalThis)||E(typeof window=="object"&&window)||E(typeof self=="object"&&self)||E(typeof global=="object"&&global)||E(typeof this=="object"&&this)||function(){return this}()||Function("return this")()},function(x,E,r){var u=r(6),d=r(8),h=r(10),p=r(11),y=r(12),T=r(18),$=r(38),A=r(41),b=Object.getOwnPropertyDescriptor;E.f=u?b:function(O,C){if(O=y(O),C=T(C),A)try{return b(O,C)}catch(w){}if($(O,C))return p(!d(h.f,O,C),O[C])}},function(x,E,r){var u=r(7);x.exports=!u(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},function(x){x.exports=function(E){try{return!!E()}catch(r){return!0}}},function(x,E,r){var u=r(9),d=Function.prototype.call;x.exports=u?d.bind(d):function(){return d.apply(d,arguments)}},function(x,E,r){var u=r(7);x.exports=!u(function(){var d=function(){}.bind();return typeof d!="function"||d.hasOwnProperty("prototype")})},function(x,E){var r={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,d=u&&!r.call({1:2},1);E.f=d?function(p){var y=u(this,p);return!!y&&y.enumerable}:r},function(x){x.exports=function(E,r){return{enumerable:!(E&1),configurable:!(E&2),writable:!(E&4),value:r}}},function(x,E,r){var u=r(13),d=r(16);x.exports=function(h){return u(d(h))}},function(x,E,r){var u=r(14),d=r(7),h=r(15),p=Object,y=u("".split);x.exports=d(function(){return!p("z").propertyIsEnumerable(0)})?function(T){return h(T)==="String"?y(T,""):p(T)}:p},function(x,E,r){var u=r(9),d=Function.prototype,h=d.call,p=u&&d.bind.bind(h,h);x.exports=u?p:function(y){return function(){return h.apply(y,arguments)}}},function(x,E,r){var u=r(14),d=u({}.toString),h=u("".slice);x.exports=function(p){return h(d(p),8,-1)}},function(x,E,r){var u=r(17),d=TypeError;x.exports=function(h){if(u(h))throw new d("Can't call method on "+h);return h}},function(x){x.exports=function(E){return E==null}},function(x,E,r){var u=r(19),d=r(22);x.exports=function(h){var p=u(h,"string");return d(p)?p:p+""}},function(x,E,r){var u=r(8),d=r(20),h=r(22),p=r(29),y=r(32),T=r(33),$=TypeError,A=T("toPrimitive");x.exports=function(b,R){if(!d(b)||h(b))return b;var O=p(b,A),C;if(O){if(R===void 0&&(R="default"),C=u(O,b,R),!d(C)||h(C))return C;throw new $("Can't convert object to primitive value")}return R===void 0&&(R="number"),y(b,R)}},function(x,E,r){var u=r(21);x.exports=function(d){return typeof d=="object"?d!==null:u(d)}},function(x){var E=typeof document=="object"&&document.all;x.exports=typeof E=="undefined"&&E!==void 0?function(r){return typeof r=="function"||r===E}:function(r){return typeof r=="function"}},function(x,E,r){var u=r(23),d=r(21),h=r(24),p=r(25),y=Object;x.exports=p?function(T){return typeof T=="symbol"}:function(T){var $=u("Symbol");return d($)&&h($.prototype,y(T))}},function(x,E,r){var u=r(4),d=r(21),h=function(p){return d(p)?p:void 0};x.exports=function(p,y){return arguments.length<2?h(u[p]):u[p]&&u[p][y]}},function(x,E,r){var u=r(14);x.exports=u({}.isPrototypeOf)},function(x,E,r){var u=r(26);x.exports=u&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},function(x,E,r){var u=r(27),d=r(7),h=r(4),p=h.String;x.exports=!!Object.getOwnPropertySymbols&&!d(function(){var y=Symbol("symbol detection");return!p(y)||!(Object(y)instanceof Symbol)||!Symbol.sham&&u&&u<41})},function(x,E,r){var u=r(4),d=r(28),h=u.process,p=u.Deno,y=h&&h.versions||p&&p.version,T=y&&y.v8,$,A;T&&($=T.split("."),A=$[0]>0&&$[0]<4?1:+($[0]+$[1])),!A&&d&&($=d.match(/Edge\/(\d+)/),(!$||$[1]>=74)&&($=d.match(/Chrome\/(\d+)/),$&&(A=+$[1]))),x.exports=A},function(x){x.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},function(x,E,r){var u=r(30),d=r(17);x.exports=function(h,p){var y=h[p];return d(y)?void 0:u(y)}},function(x,E,r){var u=r(21),d=r(31),h=TypeError;x.exports=function(p){if(u(p))return p;throw new h(d(p)+" is not a function")}},function(x){var E=String;x.exports=function(r){try{return E(r)}catch(u){return"Object"}}},function(x,E,r){var u=r(8),d=r(21),h=r(20),p=TypeError;x.exports=function(y,T){var $,A;if(T==="string"&&d($=y.toString)&&!h(A=u($,y))||d($=y.valueOf)&&!h(A=u($,y))||T!=="string"&&d($=y.toString)&&!h(A=u($,y)))return A;throw new p("Can't convert object to primitive value")}},function(x,E,r){var u=r(4),d=r(34),h=r(38),p=r(40),y=r(26),T=r(25),$=u.Symbol,A=d("wks"),b=T?$.for||$:$&&$.withoutSetter||p;x.exports=function(R){return h(A,R)||(A[R]=y&&h($,R)?$[R]:b("Symbol."+R)),A[R]}},function(x,E,r){var u=r(35);x.exports=function(d,h){return u[d]||(u[d]=h||{})}},function(x,E,r){var u=r(36),d=r(4),h=r(37),p="__core-js_shared__",y=x.exports=d[p]||h(p,{});(y.versions||(y.versions=[])).push({version:"3.37.1",mode:u?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(x){x.exports=!1},function(x,E,r){var u=r(4),d=Object.defineProperty;x.exports=function(h,p){try{d(u,h,{value:p,configurable:!0,writable:!0})}catch(y){u[h]=p}return p}},function(x,E,r){var u=r(14),d=r(39),h=u({}.hasOwnProperty);x.exports=Object.hasOwn||function(y,T){return h(d(y),T)}},function(x,E,r){var u=r(16),d=Object;x.exports=function(h){return d(u(h))}},function(x,E,r){var u=r(14),d=0,h=Math.random(),p=u(1 .toString);x.exports=function(y){return"Symbol("+(y===void 0?"":y)+")_"+p(++d+h,36)}},function(x,E,r){var u=r(6),d=r(7),h=r(42);x.exports=!u&&!d(function(){return Object.defineProperty(h("div"),"a",{get:function(){return 7}}).a!==7})},function(x,E,r){var u=r(4),d=r(20),h=u.document,p=d(h)&&d(h.createElement);x.exports=function(y){return p?h.createElement(y):{}}},function(x,E,r){var u=r(6),d=r(44),h=r(11);x.exports=u?function(p,y,T){return d.f(p,y,h(1,T))}:function(p,y,T){return p[y]=T,p}},function(x,E,r){var u=r(6),d=r(41),h=r(45),p=r(46),y=r(18),T=TypeError,$=Object.defineProperty,A=Object.getOwnPropertyDescriptor,b="enumerable",R="configurable",O="writable";E.f=u?h?function(w,D,L){if(p(w),D=y(D),p(L),typeof w=="function"&&D==="prototype"&&"value"in L&&O in L&&!L[O]){var F=A(w,D);F&&F[O]&&(w[D]=L.value,L={configurable:R in L?L[R]:F[R],enumerable:b in L?L[b]:F[b],writable:!1})}return $(w,D,L)}:$:function(w,D,L){if(p(w),D=y(D),p(L),d)try{return $(w,D,L)}catch(F){}if("get"in L||"set"in L)throw new T("Accessors not supported");return"value"in L&&(w[D]=L.value),w}},function(x,E,r){var u=r(6),d=r(7);x.exports=u&&d(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},function(x,E,r){var u=r(20),d=String,h=TypeError;x.exports=function(p){if(u(p))return p;throw new h(d(p)+" is not an object")}},function(x,E,r){var u=r(21),d=r(44),h=r(48),p=r(37);x.exports=function(y,T,$,A){A||(A={});var b=A.enumerable,R=A.name!==void 0?A.name:T;if(u($)&&h($,R,A),A.global)b?y[T]=$:p(T,$);else{try{A.unsafe?y[T]&&(b=!0):delete y[T]}catch(O){}b?y[T]=$:d.f(y,T,{value:$,enumerable:!1,configurable:!A.nonConfigurable,writable:!A.nonWritable})}return y}},function(x,E,r){var u=r(14),d=r(7),h=r(21),p=r(38),y=r(6),T=r(49).CONFIGURABLE,$=r(50),A=r(51),b=A.enforce,R=A.get,O=String,C=Object.defineProperty,w=u("".slice),D=u("".replace),L=u([].join),F=y&&!d(function(){return C(function(){},"length",{value:8}).length!==8}),j=String(String).split("String"),U=x.exports=function(z,Y,B){w(O(Y),0,7)==="Symbol("&&(Y="["+D(O(Y),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),B&&B.getter&&(Y="get "+Y),B&&B.setter&&(Y="set "+Y),(!p(z,"name")||T&&z.name!==Y)&&(y?C(z,"name",{value:Y,configurable:!0}):z.name=Y),F&&B&&p(B,"arity")&&z.length!==B.arity&&C(z,"length",{value:B.arity});try{B&&p(B,"constructor")&&B.constructor?y&&C(z,"prototype",{writable:!1}):z.prototype&&(z.prototype=void 0)}catch(K){}var V=b(z);return p(V,"source")||(V.source=L(j,typeof Y=="string"?Y:"")),z};Function.prototype.toString=U(function(){return h(this)&&R(this).source||$(this)},"toString")},function(x,E,r){var u=r(6),d=r(38),h=Function.prototype,p=u&&Object.getOwnPropertyDescriptor,y=d(h,"name"),T=y&&function(){}.name==="something",$=y&&(!u||u&&p(h,"name").configurable);x.exports={EXISTS:y,PROPER:T,CONFIGURABLE:$}},function(x,E,r){var u=r(14),d=r(21),h=r(35),p=u(Function.toString);d(h.inspectSource)||(h.inspectSource=function(y){return p(y)}),x.exports=h.inspectSource},function(x,E,r){var u=r(52),d=r(4),h=r(20),p=r(43),y=r(38),T=r(35),$=r(53),A=r(54),b="Object already initialized",R=d.TypeError,O=d.WeakMap,C,w,D,L=function(z){return D(z)?w(z):C(z,{})},F=function(z){return function(Y){var B;if(!h(Y)||(B=w(Y)).type!==z)throw new R("Incompatible receiver, "+z+" required");return B}};if(u||T.state){var j=T.state||(T.state=new O);j.get=j.get,j.has=j.has,j.set=j.set,C=function(z,Y){if(j.has(z))throw new R(b);return Y.facade=z,j.set(z,Y),Y},w=function(z){return j.get(z)||{}},D=function(z){return j.has(z)}}else{var U=$("state");A[U]=!0,C=function(z,Y){if(y(z,U))throw new R(b);return Y.facade=z,p(z,U,Y),Y},w=function(z){return y(z,U)?z[U]:{}},D=function(z){return y(z,U)}}x.exports={set:C,get:w,has:D,enforce:L,getterFor:F}},function(x,E,r){var u=r(4),d=r(21),h=u.WeakMap;x.exports=d(h)&&/native code/.test(String(h))},function(x,E,r){var u=r(34),d=r(40),h=u("keys");x.exports=function(p){return h[p]||(h[p]=d(p))}},function(x){x.exports={}},function(x,E,r){var u=r(38),d=r(56),h=r(5),p=r(44);x.exports=function(y,T,$){for(var A=d(T),b=p.f,R=h.f,O=0;O<A.length;O++){var C=A[O];!u(y,C)&&!($&&u($,C))&&b(y,C,R(T,C))}}},function(x,E,r){var u=r(23),d=r(14),h=r(57),p=r(66),y=r(46),T=d([].concat);x.exports=u("Reflect","ownKeys")||function(A){var b=h.f(y(A)),R=p.f;return R?T(b,R(A)):b}},function(x,E,r){var u=r(58),d=r(65),h=d.concat("length","prototype");E.f=Object.getOwnPropertyNames||function(y){return u(y,h)}},function(x,E,r){var u=r(14),d=r(38),h=r(12),p=r(59).indexOf,y=r(54),T=u([].push);x.exports=function($,A){var b=h($),R=0,O=[],C;for(C in b)!d(y,C)&&d(b,C)&&T(O,C);for(;A.length>R;)d(b,C=A[R++])&&(~p(O,C)||T(O,C));return O}},function(x,E,r){var u=r(12),d=r(60),h=r(63),p=function(y){return function(T,$,A){var b=u(T),R=h(b);if(R===0)return!y&&-1;var O=d(A,R),C;if(y&&$!==$){for(;R>O;)if(C=b[O++],C!==C)return!0}else for(;R>O;O++)if((y||O in b)&&b[O]===$)return y||O||0;return!y&&-1}};x.exports={includes:p(!0),indexOf:p(!1)}},function(x,E,r){var u=r(61),d=Math.max,h=Math.min;x.exports=function(p,y){var T=u(p);return T<0?d(T+y,0):h(T,y)}},function(x,E,r){var u=r(62);x.exports=function(d){var h=+d;return h!==h||h===0?0:u(h)}},function(x){var E=Math.ceil,r=Math.floor;x.exports=Math.trunc||function(d){var h=+d;return(h>0?r:E)(h)}},function(x,E,r){var u=r(64);x.exports=function(d){return u(d.length)}},function(x,E,r){var u=r(61),d=Math.min;x.exports=function(h){var p=u(h);return p>0?d(p,9007199254740991):0}},function(x){x.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(x,E){E.f=Object.getOwnPropertySymbols},function(x,E,r){var u=r(7),d=r(21),h=/#|\.prototype\./,p=function(b,R){var O=T[y(b)];return O===A?!0:O===$?!1:d(R)?u(R):!!R},y=p.normalize=function(b){return String(b).replace(h,".").toLowerCase()},T=p.data={},$=p.NATIVE="N",A=p.POLYFILL="P";x.exports=p},function(x,E,r){var u=r(69),d=String;x.exports=function(h){if(u(h)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return d(h)}},function(x,E,r){var u=r(70),d=r(21),h=r(15),p=r(33),y=p("toStringTag"),T=Object,$=h(function(){return arguments}())==="Arguments",A=function(b,R){try{return b[R]}catch(O){}};x.exports=u?h:function(b){var R,O,C;return b===void 0?"Undefined":b===null?"Null":typeof(O=A(R=T(b),y))=="string"?O:$?h(R):(C=h(R))==="Object"&&d(R.callee)?"Arguments":C}},function(x,E,r){var u=r(33),d=u("toStringTag"),h={};h[d]="z",x.exports=String(h)==="[object z]"},function(x,E,r){var u=r(46),d=r(72),h=r(65),p=r(54),y=r(74),T=r(42),$=r(53),A=">",b="<",R="prototype",O="script",C=$("IE_PROTO"),w=function(){},D=function(z){return b+O+A+z+b+"/"+O+A},L=function(z){z.write(D("")),z.close();var Y=z.parentWindow.Object;return z=null,Y},F=function(){var z=T("iframe"),Y="java"+O+":",B;return z.style.display="none",y.appendChild(z),z.src=String(Y),B=z.contentWindow.document,B.open(),B.write(D("document.F=Object")),B.close(),B.F},j,U=function(){try{j=new ActiveXObject("htmlfile")}catch(Y){}U=typeof document!="undefined"?document.domain&&j?L(j):F():L(j);for(var z=h.length;z--;)delete U[R][h[z]];return U()};p[C]=!0,x.exports=Object.create||function(Y,B){var V;return Y!==null?(w[R]=u(Y),V=new w,w[R]=null,V[C]=Y):V=U(),B===void 0?V:d.f(V,B)}},function(x,E,r){var u=r(6),d=r(45),h=r(44),p=r(46),y=r(12),T=r(73);E.f=u&&!d?Object.defineProperties:function(A,b){p(A);for(var R=y(b),O=T(b),C=O.length,w=0,D;C>w;)h.f(A,D=O[w++],R[D]);return A}},function(x,E,r){var u=r(58),d=r(65);x.exports=Object.keys||function(p){return u(p,d)}},function(x,E,r){var u=r(23);x.exports=u("document","documentElement")},function(x,E,r){var u=r(15),d=r(12),h=r(57).f,p=r(76),y=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],T=function($){try{return h($)}catch(A){return p(y)}};x.exports.f=function(A){return y&&u(A)==="Window"?T(A):h(d(A))}},function(x,E,r){var u=r(14);x.exports=u([].slice)},function(x,E,r){var u=r(48),d=r(44);x.exports=function(h,p,y){return y.get&&u(y.get,p,{getter:!0}),y.set&&u(y.set,p,{setter:!0}),d.f(h,p,y)}},function(x,E,r){var u=r(33);E.f=u},function(x,E,r){var u=r(80),d=r(38),h=r(78),p=r(44).f;x.exports=function(y){var T=u.Symbol||(u.Symbol={});d(T,y)||p(T,y,{value:h.f(y)})}},function(x,E,r){var u=r(4);x.exports=u},function(x,E,r){var u=r(8),d=r(23),h=r(33),p=r(47);x.exports=function(){var y=d("Symbol"),T=y&&y.prototype,$=T&&T.valueOf,A=h("toPrimitive");T&&!T[A]&&p(T,A,function(b){return u($,this)},{arity:1})}},function(x,E,r){var u=r(44).f,d=r(38),h=r(33),p=h("toStringTag");x.exports=function(y,T,$){y&&!$&&(y=y.prototype),y&&!d(y,p)&&u(y,p,{configurable:!0,value:T})}},function(x,E,r){var u=r(84),d=r(14),h=r(13),p=r(39),y=r(63),T=r(86),$=d([].push),A=function(b){var R=b===1,O=b===2,C=b===3,w=b===4,D=b===6,L=b===7,F=b===5||D;return function(j,U,z,Y){for(var B=p(j),V=h(B),K=y(V),J=u(U,z),Z=0,_=Y||T,nt=R?_(j,K):O||L?_(j,0):void 0,rt,q;K>Z;Z++)if((F||Z in V)&&(rt=V[Z],q=J(rt,Z,B),b))if(R)nt[Z]=q;else if(q)switch(b){case 3:return!0;case 5:return rt;case 6:return Z;case 2:$(nt,rt)}else switch(b){case 4:return!1;case 7:$(nt,rt)}return D?-1:C||w?w:nt}};x.exports={forEach:A(0),map:A(1),filter:A(2),some:A(3),every:A(4),find:A(5),findIndex:A(6),filterReject:A(7)}},function(x,E,r){var u=r(85),d=r(30),h=r(9),p=u(u.bind);x.exports=function(y,T){return d(y),T===void 0?y:h?p(y,T):function(){return y.apply(T,arguments)}}},function(x,E,r){var u=r(15),d=r(14);x.exports=function(h){if(u(h)==="Function")return d(h)}},function(x,E,r){var u=r(87);x.exports=function(d,h){return new(u(d))(h===0?0:h)}},function(x,E,r){var u=r(88),d=r(89),h=r(20),p=r(33),y=p("species"),T=Array;x.exports=function($){var A;return u($)&&(A=$.constructor,d(A)&&(A===T||u(A.prototype))?A=void 0:h(A)&&(A=A[y],A===null&&(A=void 0))),A===void 0?T:A}},function(x,E,r){var u=r(15);x.exports=Array.isArray||function(h){return u(h)==="Array"}},function(x,E,r){var u=r(14),d=r(7),h=r(21),p=r(69),y=r(23),T=r(50),$=function(){},A=y("Reflect","construct"),b=/^\s*(?:class|function)\b/,R=u(b.exec),O=!b.test($),C=function(L){if(!h(L))return!1;try{return A($,[],L),!0}catch(F){return!1}},w=function(L){if(!h(L))return!1;switch(p(L)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return O||!!R(b,T(L))}catch(F){return!0}};w.sham=!0,x.exports=!A||d(function(){var D;return C(C.call)||!C(Object)||!C(function(){D=!0})||D})?w:C},function(x,E,r){var u=r(3),d=r(23),h=r(38),p=r(68),y=r(34),T=r(91),$=y("string-to-symbol-registry"),A=y("symbol-to-string-registry");u({target:"Symbol",stat:!0,forced:!T},{for:function(b){var R=p(b);if(h($,R))return $[R];var O=d("Symbol")(R);return $[R]=O,A[O]=R,O}})},function(x,E,r){var u=r(26);x.exports=u&&!!Symbol.for&&!!Symbol.keyFor},function(x,E,r){var u=r(3),d=r(38),h=r(22),p=r(31),y=r(34),T=r(91),$=y("symbol-to-string-registry");u({target:"Symbol",stat:!0,forced:!T},{keyFor:function(b){if(!h(b))throw new TypeError(p(b)+" is not a symbol");if(d($,b))return $[b]}})},function(x,E,r){var u=r(3),d=r(23),h=r(94),p=r(8),y=r(14),T=r(7),$=r(21),A=r(22),b=r(76),R=r(95),O=r(26),C=String,w=d("JSON","stringify"),D=y(/./.exec),L=y("".charAt),F=y("".charCodeAt),j=y("".replace),U=y(1 .toString),z=/[\uD800-\uDFFF]/g,Y=/^[\uD800-\uDBFF]$/,B=/^[\uDC00-\uDFFF]$/,V=!O||T(function(){var _=d("Symbol")("stringify detection");return w([_])!=="[null]"||w({a:_})!=="{}"||w(Object(_))!=="{}"}),K=T(function(){return w("\uDF06\uD834")!=='"\\udf06\\ud834"'||w("\uDEAD")!=='"\\udead"'}),J=function(_,nt){var rt=b(arguments),q=R(nt);if(!(!$(q)&&(_===void 0||A(_))))return rt[1]=function(tt,et){if($(q)&&(et=p(q,this,C(tt),et)),!A(et))return et},h(w,null,rt)},Z=function(_,nt,rt){var q=L(rt,nt-1),tt=L(rt,nt+1);return D(Y,_)&&!D(B,tt)||D(B,_)&&!D(Y,q)?"\\u"+U(F(_,0),16):_};w&&u({target:"JSON",stat:!0,arity:3,forced:V||K},{stringify:function(nt,rt,q){var tt=b(arguments),et=h(V?J:w,null,tt);return K&&typeof et=="string"?j(et,z,Z):et}})},function(x,E,r){var u=r(9),d=Function.prototype,h=d.apply,p=d.call;x.exports=typeof Reflect=="object"&&Reflect.apply||(u?p.bind(h):function(){return p.apply(h,arguments)})},function(x,E,r){var u=r(14),d=r(88),h=r(21),p=r(15),y=r(68),T=u([].push);x.exports=function($){if(h($))return $;if(d($)){for(var A=$.length,b=[],R=0;R<A;R++){var O=$[R];typeof O=="string"?T(b,O):(typeof O=="number"||p(O)==="Number"||p(O)==="String")&&T(b,y(O))}var C=b.length,w=!0;return function(D,L){if(w)return w=!1,L;if(d(this))return L;for(var F=0;F<C;F++)if(b[F]===D)return L}}}},function(x,E,r){var u=r(3),d=r(26),h=r(7),p=r(66),y=r(39),T=!d||h(function(){p.f(1)});u({target:"Object",stat:!0,forced:T},{getOwnPropertySymbols:function(A){var b=p.f;return b?b(y(A)):[]}})},function(x,E,r){var u=r(3),d=r(6),h=r(4),p=r(14),y=r(38),T=r(21),$=r(24),A=r(68),b=r(77),R=r(55),O=h.Symbol,C=O&&O.prototype;if(d&&T(O)&&(!("description"in C)||O().description!==void 0)){var w={},D=function(){var V=arguments.length<1||arguments[0]===void 0?void 0:A(arguments[0]),K=$(C,this)?new O(V):V===void 0?O():O(V);return V===""&&(w[K]=!0),K};R(D,O),D.prototype=C,C.constructor=D;var L=String(O("description detection"))==="Symbol(description detection)",F=p(C.valueOf),j=p(C.toString),U=/^Symbol\((.*)\)[^)]+$/,z=p("".replace),Y=p("".slice);b(C,"description",{configurable:!0,get:function(){var V=F(this);if(y(w,V))return"";var K=j(V),J=L?Y(K,7,-1):z(K,U,"$1");return J===""?void 0:J}}),u({global:!0,constructor:!0,forced:!0},{Symbol:D})}},function(x,E,r){var u=r(79);u("asyncIterator")},function(x,E,r){var u=r(79);u("hasInstance")},function(x,E,r){var u=r(79);u("isConcatSpreadable")},function(x,E,r){var u=r(79);u("iterator")},function(x,E,r){var u=r(79);u("match")},function(x,E,r){var u=r(79);u("matchAll")},function(x,E,r){var u=r(79);u("replace")},function(x,E,r){var u=r(79);u("search")},function(x,E,r){var u=r(79);u("species")},function(x,E,r){var u=r(79);u("split")},function(x,E,r){var u=r(79),d=r(81);u("toPrimitive"),d()},function(x,E,r){var u=r(23),d=r(79),h=r(82);d("toStringTag"),h(u("Symbol"),"Symbol")},function(x,E,r){var u=r(79);u("unscopables")},function(x,E,r){var u=r(3),d=r(4),h=r(94),p=r(112),y="WebAssembly",T=d[y],$=new Error("e",{cause:7}).cause!==7,A=function(R,O){var C={};C[R]=p(R,O,$),u({global:!0,constructor:!0,arity:1,forced:$},C)},b=function(R,O){if(T&&T[R]){var C={};C[R]=p(y+"."+R,O,$),u({target:y,stat:!0,constructor:!0,arity:1,forced:$},C)}};A("Error",function(R){return function(C){return h(R,this,arguments)}}),A("EvalError",function(R){return function(C){return h(R,this,arguments)}}),A("RangeError",function(R){return function(C){return h(R,this,arguments)}}),A("ReferenceError",function(R){return function(C){return h(R,this,arguments)}}),A("SyntaxError",function(R){return function(C){return h(R,this,arguments)}}),A("TypeError",function(R){return function(C){return h(R,this,arguments)}}),A("URIError",function(R){return function(C){return h(R,this,arguments)}}),b("CompileError",function(R){return function(C){return h(R,this,arguments)}}),b("LinkError",function(R){return function(C){return h(R,this,arguments)}}),b("RuntimeError",function(R){return function(C){return h(R,this,arguments)}})},function(x,E,r){var u=r(23),d=r(38),h=r(43),p=r(24),y=r(113),T=r(55),$=r(117),A=r(118),b=r(119),R=r(120),O=r(121),C=r(6),w=r(36);x.exports=function(D,L,F,j){var U="stackTraceLimit",z=j?2:1,Y=D.split("."),B=Y[Y.length-1],V=u.apply(null,Y);if(V){var K=V.prototype;if(!w&&d(K,"cause")&&delete K.cause,!F)return V;var J=u("Error"),Z=L(function(_,nt){var rt=b(j?nt:_,void 0),q=j?new V(_):new V;return rt!==void 0&&h(q,"message",rt),O(q,Z,q.stack,2),this&&p(K,this)&&A(q,this,Z),arguments.length>z&&R(q,arguments[z]),q});if(Z.prototype=K,B!=="Error"?y?y(Z,J):T(Z,J,{name:!0}):C&&U in V&&($(Z,V,U),$(Z,V,"prepareStackTrace")),T(Z,V),!w)try{K.name!==B&&h(K,"name",B),K.constructor=Z}catch(_){}return Z}}},function(x,E,r){var u=r(114),d=r(20),h=r(16),p=r(115);x.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var y=!1,T={},$;try{$=u(Object.prototype,"__proto__","set"),$(T,[]),y=T instanceof Array}catch(A){}return function(b,R){return h(b),p(R),d(b)&&(y?$(b,R):b.__proto__=R),b}}():void 0)},function(x,E,r){var u=r(14),d=r(30);x.exports=function(h,p,y){try{return u(d(Object.getOwnPropertyDescriptor(h,p)[y]))}catch(T){}}},function(x,E,r){var u=r(116),d=String,h=TypeError;x.exports=function(p){if(u(p))return p;throw new h("Can't set "+d(p)+" as a prototype")}},function(x,E,r){var u=r(20);x.exports=function(d){return u(d)||d===null}},function(x,E,r){var u=r(44).f;x.exports=function(d,h,p){p in d||u(d,p,{configurable:!0,get:function(){return h[p]},set:function(y){h[p]=y}})}},function(x,E,r){var u=r(21),d=r(20),h=r(113);x.exports=function(p,y,T){var $,A;return h&&u($=y.constructor)&&$!==T&&d(A=$.prototype)&&A!==T.prototype&&h(p,A),p}},function(x,E,r){var u=r(68);x.exports=function(d,h){return d===void 0?arguments.length<2?"":h:u(d)}},function(x,E,r){var u=r(20),d=r(43);x.exports=function(h,p){u(p)&&"cause"in p&&d(h,"cause",p.cause)}},function(x,E,r){var u=r(43),d=r(122),h=r(123),p=Error.captureStackTrace;x.exports=function(y,T,$,A){h&&(p?p(y,T):u(y,"stack",d($,A)))}},function(x,E,r){var u=r(14),d=Error,h=u("".replace),p=function($){return String(new d($).stack)}("zxcasd"),y=/\n\s*at [^:]*:[^\n]*/,T=y.test(p);x.exports=function($,A){if(T&&typeof $=="string"&&!d.prepareStackTrace)for(;A--;)$=h($,y,"");return $}},function(x,E,r){var u=r(7),d=r(11);x.exports=!u(function(){var h=new Error("a");return"stack"in h?(Object.defineProperty(h,"stack",d(1,7)),h.stack!==7):!0})},function(x,E,r){var u=r(47),d=r(125),h=Error.prototype;h.toString!==d&&u(h,"toString",d)},function(x,E,r){var u=r(6),d=r(7),h=r(46),p=r(119),y=Error.prototype.toString,T=d(function(){if(u){var $=Object.create(Object.defineProperty({},"name",{get:function(){return this===$}}));if(y.call($)!=="true")return!0}return y.call({message:1,name:2})!=="2: 1"||y.call({})!=="Error"});x.exports=T?function(){var A=h(this),b=p(A.name,"Error"),R=p(A.message);return b?R?b+": "+R:b:R}:y},function(x,E,r){r(127)},function(x,E,r){var u=r(3),d=r(24),h=r(128),p=r(113),y=r(55),T=r(71),$=r(43),A=r(11),b=r(120),R=r(121),O=r(130),C=r(119),w=r(33),D=w("toStringTag"),L=Error,F=[].push,j=function(Y,B){var V=d(U,this),K;p?K=p(new L,V?h(this):U):(K=V?this:T(U),$(K,D,"Error")),B!==void 0&&$(K,"message",C(B)),R(K,j,K.stack,1),arguments.length>2&&b(K,arguments[2]);var J=[];return O(Y,F,{that:J}),$(K,"errors",J),K};p?p(j,L):y(j,L,{name:!0});var U=j.prototype=T(L.prototype,{constructor:A(1,j),message:A(1,""),name:A(1,"AggregateError")});u({global:!0,constructor:!0,arity:2},{AggregateError:j})},function(x,E,r){var u=r(38),d=r(21),h=r(39),p=r(53),y=r(129),T=p("IE_PROTO"),$=Object,A=$.prototype;x.exports=y?$.getPrototypeOf:function(b){var R=h(b);if(u(R,T))return R[T];var O=R.constructor;return d(O)&&R instanceof O?O.prototype:R instanceof $?A:null}},function(x,E,r){var u=r(7);x.exports=!u(function(){function d(){}return d.prototype.constructor=null,Object.getPrototypeOf(new d)!==d.prototype})},function(x,E,r){var u=r(84),d=r(8),h=r(46),p=r(31),y=r(131),T=r(63),$=r(24),A=r(133),b=r(134),R=r(135),O=TypeError,C=function(D,L){this.stopped=D,this.result=L},w=C.prototype;x.exports=function(D,L,F){var j=F&&F.that,U=!!(F&&F.AS_ENTRIES),z=!!(F&&F.IS_RECORD),Y=!!(F&&F.IS_ITERATOR),B=!!(F&&F.INTERRUPTED),V=u(L,j),K,J,Z,_,nt,rt,q,tt=function(lt){return K&&R(K,"normal",lt),new C(!0,lt)},et=function(lt){return U?(h(lt),B?V(lt[0],lt[1],tt):V(lt[0],lt[1])):B?V(lt,tt):V(lt)};if(z)K=D.iterator;else if(Y)K=D;else{if(J=b(D),!J)throw new O(p(D)+" is not iterable");if(y(J)){for(Z=0,_=T(D);_>Z;Z++)if(nt=et(D[Z]),nt&&$(w,nt))return nt;return new C(!1)}K=A(D,J)}for(rt=z?D.next:K.next;!(q=d(rt,K)).done;){try{nt=et(q.value)}catch(lt){R(K,"throw",lt)}if(typeof nt=="object"&&nt&&$(w,nt))return nt}return new C(!1)}},function(x,E,r){var u=r(33),d=r(132),h=u("iterator"),p=Array.prototype;x.exports=function(y){return y!==void 0&&(d.Array===y||p[h]===y)}},function(x){x.exports={}},function(x,E,r){var u=r(8),d=r(30),h=r(46),p=r(31),y=r(134),T=TypeError;x.exports=function($,A){var b=arguments.length<2?y($):A;if(d(b))return h(u(b,$));throw new T(p($)+" is not iterable")}},function(x,E,r){var u=r(69),d=r(29),h=r(17),p=r(132),y=r(33),T=y("iterator");x.exports=function($){if(!h($))return d($,T)||d($,"@@iterator")||p[u($)]}},function(x,E,r){var u=r(8),d=r(46),h=r(29);x.exports=function(p,y,T){var $,A;d(p);try{if($=h(p,"return"),!$){if(y==="throw")throw T;return T}$=u($,p)}catch(b){A=!0,$=b}if(y==="throw")throw T;if(A)throw $;return d($),T}},function(x,E,r){var u=r(3),d=r(23),h=r(94),p=r(7),y=r(112),T="AggregateError",$=d(T),A=!p(function(){return $([1]).errors[0]!==1})&&p(function(){return $([1],T,{cause:7}).cause!==7});u({global:!0,constructor:!0,arity:2,forced:A},{AggregateError:y(T,function(b){return function(O,C){return h(b,this,arguments)}},A,!0)})},function(x,E,r){var u=r(3),d=r(39),h=r(63),p=r(61),y=r(138);u({target:"Array",proto:!0},{at:function($){var A=d(this),b=h(A),R=p($),O=R>=0?R:b+R;return O<0||O>=b?void 0:A[O]}}),y("at")},function(x,E,r){var u=r(33),d=r(71),h=r(44).f,p=u("unscopables"),y=Array.prototype;y[p]===void 0&&h(y,p,{configurable:!0,value:d(null)}),x.exports=function(T){y[p][T]=!0}},function(x,E,r){var u=r(3),d=r(7),h=r(88),p=r(20),y=r(39),T=r(63),$=r(140),A=r(141),b=r(86),R=r(142),O=r(33),C=r(27),w=O("isConcatSpreadable"),D=C>=51||!d(function(){var j=[];return j[w]=!1,j.concat()[0]!==j}),L=function(j){if(!p(j))return!1;var U=j[w];return U!==void 0?!!U:h(j)},F=!D||!R("concat");u({target:"Array",proto:!0,arity:1,forced:F},{concat:function(U){var z=y(this),Y=b(z,0),B=0,V,K,J,Z,_;for(V=-1,J=arguments.length;V<J;V++)if(_=V===-1?z:arguments[V],L(_))for(Z=T(_),$(B+Z),K=0;K<Z;K++,B++)K in _&&A(Y,B,_[K]);else $(B+1),A(Y,B++,_);return Y.length=B,Y}})},function(x){var E=TypeError,r=9007199254740991;x.exports=function(u){if(u>r)throw E("Maximum allowed index exceeded");return u}},function(x,E,r){var u=r(6),d=r(44),h=r(11);x.exports=function(p,y,T){u?d.f(p,y,h(0,T)):p[y]=T}},function(x,E,r){var u=r(7),d=r(33),h=r(27),p=d("species");x.exports=function(y){return h>=51||!u(function(){var T=[],$=T.constructor={};return $[p]=function(){return{foo:1}},T[y](Boolean).foo!==1})}},function(x,E,r){var u=r(3),d=r(144),h=r(138);u({target:"Array",proto:!0},{copyWithin:d}),h("copyWithin")},function(x,E,r){var u=r(39),d=r(60),h=r(63),p=r(145),y=Math.min;x.exports=[].copyWithin||function($,A){var b=u(this),R=h(b),O=d($,R),C=d(A,R),w=arguments.length>2?arguments[2]:void 0,D=y((w===void 0?R:d(w,R))-C,R-O),L=1;for(C<O&&O<C+D&&(L=-1,C+=D-1,O+=D-1);D-- >0;)C in b?b[O]=b[C]:p(b,O),O+=L,C+=L;return b}},function(x,E,r){var u=r(31),d=TypeError;x.exports=function(h,p){if(!delete h[p])throw new d("Cannot delete property "+u(p)+" of "+u(h))}},function(x,E,r){var u=r(3),d=r(83).every,h=r(147),p=h("every");u({target:"Array",proto:!0,forced:!p},{every:function(T){return d(this,T,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var u=r(7);x.exports=function(d,h){var p=[][d];return!!p&&u(function(){p.call(null,h||function(){return 1},1)})}},function(x,E,r){var u=r(3),d=r(149),h=r(138);u({target:"Array",proto:!0},{fill:d}),h("fill")},function(x,E,r){var u=r(39),d=r(60),h=r(63);x.exports=function(y){for(var T=u(this),$=h(T),A=arguments.length,b=d(A>1?arguments[1]:void 0,$),R=A>2?arguments[2]:void 0,O=R===void 0?$:d(R,$);O>b;)T[b++]=y;return T}},function(x,E,r){var u=r(3),d=r(83).filter,h=r(142),p=h("filter");u({target:"Array",proto:!0,forced:!p},{filter:function(T){return d(this,T,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var u=r(3),d=r(83).find,h=r(138),p="find",y=!0;p in[]&&Array(1)[p](function(){y=!1}),u({target:"Array",proto:!0,forced:y},{find:function($){return d(this,$,arguments.length>1?arguments[1]:void 0)}}),h(p)},function(x,E,r){var u=r(3),d=r(83).findIndex,h=r(138),p="findIndex",y=!0;p in[]&&Array(1)[p](function(){y=!1}),u({target:"Array",proto:!0,forced:y},{findIndex:function($){return d(this,$,arguments.length>1?arguments[1]:void 0)}}),h(p)},function(x,E,r){var u=r(3),d=r(154).findLast,h=r(138);u({target:"Array",proto:!0},{findLast:function(y){return d(this,y,arguments.length>1?arguments[1]:void 0)}}),h("findLast")},function(x,E,r){var u=r(84),d=r(13),h=r(39),p=r(63),y=function(T){var $=T===1;return function(A,b,R){for(var O=h(A),C=d(O),w=p(C),D=u(b,R),L,F;w-- >0;)if(L=C[w],F=D(L,w,O),F)switch(T){case 0:return L;case 1:return w}return $?-1:void 0}};x.exports={findLast:y(0),findLastIndex:y(1)}},function(x,E,r){var u=r(3),d=r(154).findLastIndex,h=r(138);u({target:"Array",proto:!0},{findLastIndex:function(y){return d(this,y,arguments.length>1?arguments[1]:void 0)}}),h("findLastIndex")},function(x,E,r){var u=r(3),d=r(157),h=r(39),p=r(63),y=r(61),T=r(86);u({target:"Array",proto:!0},{flat:function(){var A=arguments.length?arguments[0]:void 0,b=h(this),R=p(b),O=T(b,0);return O.length=d(O,b,b,R,0,A===void 0?1:y(A)),O}})},function(x,E,r){var u=r(88),d=r(63),h=r(140),p=r(84),y=function(T,$,A,b,R,O,C,w){for(var D=R,L=0,F=C?p(C,w):!1,j,U;L<b;)L in A&&(j=F?F(A[L],L,$):A[L],O>0&&u(j)?(U=d(j),D=y(T,$,j,U,D,O-1)-1):(h(D+1),T[D]=j),D++),L++;return D};x.exports=y},function(x,E,r){var u=r(3),d=r(157),h=r(30),p=r(39),y=r(63),T=r(86);u({target:"Array",proto:!0},{flatMap:function(A){var b=p(this),R=y(b),O;return h(A),O=T(b,0),O.length=d(O,b,b,R,0,1,A,arguments.length>1?arguments[1]:void 0),O}})},function(x,E,r){var u=r(3),d=r(160);u({target:"Array",proto:!0,forced:[].forEach!==d},{forEach:d})},function(x,E,r){var u=r(83).forEach,d=r(147),h=d("forEach");x.exports=h?[].forEach:function(y){return u(this,y,arguments.length>1?arguments[1]:void 0)}},function(x,E,r){var u=r(3),d=r(162),h=r(164),p=!h(function(y){Array.from(y)});u({target:"Array",stat:!0,forced:p},{from:d})},function(x,E,r){var u=r(84),d=r(8),h=r(39),p=r(163),y=r(131),T=r(89),$=r(63),A=r(141),b=r(133),R=r(134),O=Array;x.exports=function(w){var D=h(w),L=T(this),F=arguments.length,j=F>1?arguments[1]:void 0,U=j!==void 0;U&&(j=u(j,F>2?arguments[2]:void 0));var z=R(D),Y=0,B,V,K,J,Z,_;if(z&&!(this===O&&y(z)))for(V=L?new this:[],J=b(D,z),Z=J.next;!(K=d(Z,J)).done;Y++)_=U?p(J,j,[K.value,Y],!0):K.value,A(V,Y,_);else for(B=$(D),V=L?new this(B):O(B);B>Y;Y++)_=U?j(D[Y],Y):D[Y],A(V,Y,_);return V.length=Y,V}},function(x,E,r){var u=r(46),d=r(135);x.exports=function(h,p,y,T){try{return T?p(u(y)[0],y[1]):p(y)}catch($){d(h,"throw",$)}}},function(x,E,r){var u=r(33),d=u("iterator"),h=!1;try{var p=0,y={next:function(){return{done:!!p++}},return:function(){h=!0}};y[d]=function(){return this},Array.from(y,function(){throw 2})}catch(T){}x.exports=function(T,$){try{if(!$&&!h)return!1}catch(R){return!1}var A=!1;try{var b={};b[d]=function(){return{next:function(){return{done:A=!0}}}},T(b)}catch(R){}return A}},function(x,E,r){var u=r(3),d=r(59).includes,h=r(7),p=r(138),y=h(function(){return!Array(1).includes()});u({target:"Array",proto:!0,forced:y},{includes:function($){return d(this,$,arguments.length>1?arguments[1]:void 0)}}),p("includes")},function(x,E,r){var u=r(3),d=r(85),h=r(59).indexOf,p=r(147),y=d([].indexOf),T=!!y&&1/y([1],1,-0)<0,$=T||!p("indexOf");u({target:"Array",proto:!0,forced:$},{indexOf:function(b){var R=arguments.length>1?arguments[1]:void 0;return T?y(this,b,R)||0:h(this,b,R)}})},function(x,E,r){var u=r(3),d=r(88);u({target:"Array",stat:!0},{isArray:d})},function(x,E,r){var u=r(12),d=r(138),h=r(132),p=r(51),y=r(44).f,T=r(169),$=r(172),A=r(36),b=r(6),R="Array Iterator",O=p.set,C=p.getterFor(R);x.exports=T(Array,"Array",function(D,L){O(this,{type:R,target:u(D),index:0,kind:L})},function(){var D=C(this),L=D.target,F=D.index++;if(!L||F>=L.length)return D.target=void 0,$(void 0,!0);switch(D.kind){case"keys":return $(F,!1);case"values":return $(L[F],!1)}return $([F,L[F]],!1)},"values");var w=h.Arguments=h.Array;if(d("keys"),d("values"),d("entries"),!A&&b&&w.name!=="values")try{y(w,"name",{value:"values"})}catch(D){}},function(x,E,r){var u=r(3),d=r(8),h=r(36),p=r(49),y=r(21),T=r(170),$=r(128),A=r(113),b=r(82),R=r(43),O=r(47),C=r(33),w=r(132),D=r(171),L=p.PROPER,F=p.CONFIGURABLE,j=D.IteratorPrototype,U=D.BUGGY_SAFARI_ITERATORS,z=C("iterator"),Y="keys",B="values",V="entries",K=function(){return this};x.exports=function(J,Z,_,nt,rt,q,tt){T(_,Z,nt);var et=function(Jt){if(Jt===rt&&yt)return yt;if(!U&&Jt&&Jt in ft)return ft[Jt];switch(Jt){case Y:return function(){return new _(this,Jt)};case B:return function(){return new _(this,Jt)};case V:return function(){return new _(this,Jt)}}return function(){return new _(this)}},lt=Z+" Iterator",vt=!1,ft=J.prototype,bt=ft[z]||ft["@@iterator"]||rt&&ft[rt],yt=!U&&bt||et(rt),Ft=Z==="Array"&&ft.entries||bt,Lt,jt,Kt;if(Ft&&(Lt=$(Ft.call(new J)),Lt!==Object.prototype&&Lt.next&&(!h&&$(Lt)!==j&&(A?A(Lt,j):y(Lt[z])||O(Lt,z,K)),b(Lt,lt,!0,!0),h&&(w[lt]=K))),L&&rt===B&&bt&&bt.name!==B&&(!h&&F?R(ft,"name",B):(vt=!0,yt=function(){return d(bt,this)})),rt)if(jt={values:et(B),keys:q?yt:et(Y),entries:et(V)},tt)for(Kt in jt)(U||vt||!(Kt in ft))&&O(ft,Kt,jt[Kt]);else u({target:Z,proto:!0,forced:U||vt},jt);return(!h||tt)&&ft[z]!==yt&&O(ft,z,yt,{name:rt}),w[Z]=yt,jt}},function(x,E,r){var u=r(171).IteratorPrototype,d=r(71),h=r(11),p=r(82),y=r(132),T=function(){return this};x.exports=function($,A,b,R){var O=A+" Iterator";return $.prototype=d(u,{next:h(+!R,b)}),p($,O,!1,!0),y[O]=T,$}},function(x,E,r){var u=r(7),d=r(21),h=r(20),p=r(71),y=r(128),T=r(47),$=r(33),A=r(36),b=$("iterator"),R=!1,O,C,w;[].keys&&(w=[].keys(),"next"in w?(C=y(y(w)),C!==Object.prototype&&(O=C)):R=!0);var D=!h(O)||u(function(){var L={};return O[b].call(L)!==L});D?O={}:A&&(O=p(O)),d(O[b])||T(O,b,function(){return this}),x.exports={IteratorPrototype:O,BUGGY_SAFARI_ITERATORS:R}},function(x){x.exports=function(E,r){return{value:E,done:r}}},function(x,E,r){var u=r(3),d=r(14),h=r(13),p=r(12),y=r(147),T=d([].join),$=h!==Object,A=$||!y("join",",");u({target:"Array",proto:!0,forced:A},{join:function(R){return T(p(this),R===void 0?",":R)}})},function(x,E,r){var u=r(3),d=r(175);u({target:"Array",proto:!0,forced:d!==[].lastIndexOf},{lastIndexOf:d})},function(x,E,r){var u=r(94),d=r(12),h=r(61),p=r(63),y=r(147),T=Math.min,$=[].lastIndexOf,A=!!$&&1/[1].lastIndexOf(1,-0)<0,b=y("lastIndexOf"),R=A||!b;x.exports=R?function(C){if(A)return u($,this,arguments)||0;var w=d(this),D=p(w);if(D===0)return-1;var L=D-1;for(arguments.length>1&&(L=T(L,h(arguments[1]))),L<0&&(L=D+L);L>=0;L--)if(L in w&&w[L]===C)return L||0;return-1}:$},function(x,E,r){var u=r(3),d=r(83).map,h=r(142),p=h("map");u({target:"Array",proto:!0,forced:!p},{map:function(T){return d(this,T,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var u=r(3),d=r(7),h=r(89),p=r(141),y=Array,T=d(function(){function $(){}return!(y.of.call($)instanceof $)});u({target:"Array",stat:!0,forced:T},{of:function(){for(var A=0,b=arguments.length,R=new(h(this)?this:y)(b);b>A;)p(R,A,arguments[A++]);return R.length=b,R}})},function(x,E,r){var u=r(3),d=r(39),h=r(63),p=r(179),y=r(140),T=r(7),$=T(function(){return[].push.call({length:4294967296},1)!==4294967297}),A=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(R){return R instanceof TypeError}},b=$||!A();u({target:"Array",proto:!0,arity:1,forced:b},{push:function(O){var C=d(this),w=h(C),D=arguments.length;y(w+D);for(var L=0;L<D;L++)C[w]=arguments[L],w++;return p(C,w),w}})},function(x,E,r){var u=r(6),d=r(88),h=TypeError,p=Object.getOwnPropertyDescriptor,y=u&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(T){return T instanceof TypeError}}();x.exports=y?function(T,$){if(d(T)&&!p(T,"length").writable)throw new h("Cannot set read only .length");return T.length=$}:function(T,$){return T.length=$}},function(x,E,r){var u=r(3),d=r(181).left,h=r(147),p=r(27),y=r(182),T=!y&&p>79&&p<83,$=T||!h("reduce");u({target:"Array",proto:!0,forced:$},{reduce:function(b){var R=arguments.length;return d(this,b,R,R>1?arguments[1]:void 0)}})},function(x,E,r){var u=r(30),d=r(39),h=r(13),p=r(63),y=TypeError,T="Reduce of empty array with no initial value",$=function(A){return function(b,R,O,C){var w=d(b),D=h(w),L=p(w);if(u(R),L===0&&O<2)throw new y(T);var F=A?L-1:0,j=A?-1:1;if(O<2)for(;;){if(F in D){C=D[F],F+=j;break}if(F+=j,A?F<0:L<=F)throw new y(T)}for(;A?F>=0:L>F;F+=j)F in D&&(C=R(C,D[F],F,w));return C}};x.exports={left:$(!1),right:$(!0)}},function(x,E,r){var u=r(4),d=r(15);x.exports=d(u.process)==="process"},function(x,E,r){var u=r(3),d=r(181).right,h=r(147),p=r(27),y=r(182),T=!y&&p>79&&p<83,$=T||!h("reduceRight");u({target:"Array",proto:!0,forced:$},{reduceRight:function(b){return d(this,b,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var u=r(3),d=r(14),h=r(88),p=d([].reverse),y=[1,2];u({target:"Array",proto:!0,forced:String(y)===String(y.reverse())},{reverse:function(){return h(this)&&(this.length=this.length),p(this)}})},function(x,E,r){var u=r(3),d=r(88),h=r(89),p=r(20),y=r(60),T=r(63),$=r(12),A=r(141),b=r(33),R=r(142),O=r(76),C=R("slice"),w=b("species"),D=Array,L=Math.max;u({target:"Array",proto:!0,forced:!C},{slice:function(j,U){var z=$(this),Y=T(z),B=y(j,Y),V=y(U===void 0?Y:U,Y),K,J,Z;if(d(z)&&(K=z.constructor,h(K)&&(K===D||d(K.prototype))?K=void 0:p(K)&&(K=K[w],K===null&&(K=void 0)),K===D||K===void 0))return O(z,B,V);for(J=new(K===void 0?D:K)(L(V-B,0)),Z=0;B<V;B++,Z++)B in z&&A(J,Z,z[B]);return J.length=Z,J}})},function(x,E,r){var u=r(3),d=r(83).some,h=r(147),p=h("some");u({target:"Array",proto:!0,forced:!p},{some:function(T){return d(this,T,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var u=r(3),d=r(14),h=r(30),p=r(39),y=r(63),T=r(145),$=r(68),A=r(7),b=r(188),R=r(147),O=r(189),C=r(190),w=r(27),D=r(191),L=[],F=d(L.sort),j=d(L.push),U=A(function(){L.sort(void 0)}),z=A(function(){L.sort(null)}),Y=R("sort"),B=!A(function(){if(w)return w<70;if(!(O&&O>3)){if(C)return!0;if(D)return D<603;var J="",Z,_,nt,rt;for(Z=65;Z<76;Z++){switch(_=String.fromCharCode(Z),Z){case 66:case 69:case 70:case 72:nt=3;break;case 68:case 71:nt=4;break;default:nt=2}for(rt=0;rt<47;rt++)L.push({k:_+rt,v:nt})}for(L.sort(function(q,tt){return tt.v-q.v}),rt=0;rt<L.length;rt++)_=L[rt].k.charAt(0),J.charAt(J.length-1)!==_&&(J+=_);return J!=="DGBEFHACIJK"}}),V=U||!z||!Y||!B,K=function(J){return function(Z,_){return _===void 0?-1:Z===void 0?1:J!==void 0?+J(Z,_)||0:$(Z)>$(_)?1:-1}};u({target:"Array",proto:!0,forced:V},{sort:function(Z){Z!==void 0&&h(Z);var _=p(this);if(B)return Z===void 0?F(_):F(_,Z);var nt=[],rt=y(_),q,tt;for(tt=0;tt<rt;tt++)tt in _&&j(nt,_[tt]);for(b(nt,K(Z)),q=y(nt),tt=0;tt<q;)_[tt]=nt[tt++];for(;tt<rt;)T(_,tt++);return _}})},function(x,E,r){var u=r(76),d=Math.floor,h=function(p,y){var T=p.length;if(T<8)for(var $=1,A,b;$<T;){for(b=$,A=p[$];b&&y(p[b-1],A)>0;)p[b]=p[--b];b!==$++&&(p[b]=A)}else for(var R=d(T/2),O=h(u(p,0,R),y),C=h(u(p,R),y),w=O.length,D=C.length,L=0,F=0;L<w||F<D;)p[L+F]=L<w&&F<D?y(O[L],C[F])<=0?O[L++]:C[F++]:L<w?O[L++]:C[F++];return p};x.exports=h},function(x,E,r){var u=r(28),d=u.match(/firefox\/(\d+)/i);x.exports=!!d&&+d[1]},function(x,E,r){var u=r(28);x.exports=/MSIE|Trident/.test(u)},function(x,E,r){var u=r(28),d=u.match(/AppleWebKit\/(\d+)\./);x.exports=!!d&&+d[1]},function(x,E,r){var u=r(193);u("Array")},function(x,E,r){var u=r(23),d=r(77),h=r(33),p=r(6),y=h("species");x.exports=function(T){var $=u(T);p&&$&&!$[y]&&d($,y,{configurable:!0,get:function(){return this}})}},function(x,E,r){var u=r(3),d=r(39),h=r(60),p=r(61),y=r(63),T=r(179),$=r(140),A=r(86),b=r(141),R=r(145),O=r(142),C=O("splice"),w=Math.max,D=Math.min;u({target:"Array",proto:!0,forced:!C},{splice:function(F,j){var U=d(this),z=y(U),Y=h(F,z),B=arguments.length,V,K,J,Z,_,nt;for(B===0?V=K=0:B===1?(V=0,K=z-Y):(V=B-2,K=D(w(p(j),0),z-Y)),$(z+V-K),J=A(U,K),Z=0;Z<K;Z++)_=Y+Z,_ in U&&b(J,Z,U[_]);if(J.length=K,V<K){for(Z=Y;Z<z-K;Z++)_=Z+K,nt=Z+V,_ in U?U[nt]=U[_]:R(U,nt);for(Z=z;Z>z-K+V;Z--)R(U,Z-1)}else if(V>K)for(Z=z-K;Z>Y;Z--)_=Z+K-1,nt=Z+V-1,_ in U?U[nt]=U[_]:R(U,nt);for(Z=0;Z<V;Z++)U[Z+Y]=arguments[Z+2];return T(U,z-K+V),J}})},function(x,E,r){var u=r(3),d=r(196),h=r(12),p=r(138),y=Array;u({target:"Array",proto:!0},{toReversed:function(){return d(h(this),y)}}),p("toReversed")},function(x,E,r){var u=r(63);x.exports=function(d,h){for(var p=u(d),y=new h(p),T=0;T<p;T++)y[T]=d[p-T-1];return y}},function(x,E,r){var u=r(3),d=r(14),h=r(30),p=r(12),y=r(198),T=r(199),$=r(138),A=Array,b=d(T("Array","sort"));u({target:"Array",proto:!0},{toSorted:function(O){O!==void 0&&h(O);var C=p(this),w=y(A,C);return b(w,O)}}),$("toSorted")},function(x,E,r){var u=r(63);x.exports=function(d,h,p){for(var y=0,T=arguments.length>2?p:u(h),$=new d(T);T>y;)$[y]=h[y++];return $}},function(x,E,r){var u=r(4);x.exports=function(d,h){var p=u[d],y=p&&p.prototype;return y&&y[h]}},function(x,E,r){var u=r(3),d=r(138),h=r(140),p=r(63),y=r(60),T=r(12),$=r(61),A=Array,b=Math.max,R=Math.min;u({target:"Array",proto:!0},{toSpliced:function(C,w){var D=T(this),L=p(D),F=y(C,L),j=arguments.length,U=0,z,Y,B,V;for(j===0?z=Y=0:j===1?(z=0,Y=L-F):(z=j-2,Y=R(b($(w),0),L-F)),B=h(L+z-Y),V=A(B);U<F;U++)V[U]=D[U];for(;U<F+z;U++)V[U]=arguments[U-F+2];for(;U<B;U++)V[U]=D[U+Y-z];return V}}),d("toSpliced")},function(x,E,r){var u=r(138);u("flat")},function(x,E,r){var u=r(138);u("flatMap")},function(x,E,r){var u=r(3),d=r(39),h=r(63),p=r(179),y=r(145),T=r(140),$=[].unshift(0)!==1,A=function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(R){return R instanceof TypeError}},b=$||!A();u({target:"Array",proto:!0,arity:1,forced:b},{unshift:function(O){var C=d(this),w=h(C),D=arguments.length;if(D){T(w+D);for(var L=w;L--;){var F=L+D;L in C?C[F]=C[L]:y(C,F)}for(var j=0;j<D;j++)C[j]=arguments[j]}return p(C,w+D)}})},function(x,E,r){var u=r(3),d=r(205),h=r(12),p=Array;u({target:"Array",proto:!0},{with:function(y,T){return d(h(this),p,y,T)}})},function(x,E,r){var u=r(63),d=r(61),h=RangeError;x.exports=function(p,y,T,$){var A=u(p),b=d(T),R=b<0?A+b:b;if(R>=A||R<0)throw new h("Incorrect index");for(var O=new y(A),C=0;C<A;C++)O[C]=C===R?$:p[C];return O}},function(x,E,r){var u=r(3),d=r(4),h=r(207),p=r(193),y="ArrayBuffer",T=h[y],$=d[y];u({global:!0,constructor:!0,forced:$!==T},{ArrayBuffer:T}),p(y)},function(x,E,r){var u=r(4),d=r(14),h=r(6),p=r(208),y=r(49),T=r(43),$=r(77),A=r(209),b=r(7),R=r(210),O=r(61),C=r(64),w=r(211),D=r(212),L=r(215),F=r(128),j=r(113),U=r(149),z=r(76),Y=r(118),B=r(55),V=r(82),K=r(51),J=y.PROPER,Z=y.CONFIGURABLE,_="ArrayBuffer",nt="DataView",rt="prototype",q="Wrong length",tt="Wrong index",et=K.getterFor(_),lt=K.getterFor(nt),vt=K.set,ft=u[_],bt=ft,yt=bt&&bt[rt],Ft=u[nt],Lt=Ft&&Ft[rt],jt=Object.prototype,Kt=u.Array,Jt=u.RangeError,ge=d(U),le=d([].reverse),ee=L.pack,Mt=L.unpack,zt=function(Et){return[Et&255]},te=function(Et){return[Et&255,Et>>8&255]},ae=function(Et){return[Et&255,Et>>8&255,Et>>16&255,Et>>24&255]},re=function(Et){return Et[3]<<24|Et[2]<<16|Et[1]<<8|Et[0]},oe=function(Et){return ee(D(Et),23,4)},Re=function(Et){return ee(Et,52,8)},Ce=function(Et,Bt,$t){$(Et[rt],Bt,{configurable:!0,get:function(){return $t(this)[Bt]}})},xe=function(Et,Bt,$t,kt){var Qt=lt(Et),Vt=w($t),Ut=!!kt;if(Vt+Bt>Qt.byteLength)throw new Jt(tt);var we=Qt.bytes,Ye=Vt+Qt.byteOffset,dt=z(we,Ye,Ye+Bt);return Ut?dt:le(dt)},se=function(Et,Bt,$t,kt,Qt,Vt){var Ut=lt(Et),we=w($t),Ye=kt(+Qt),dt=!!Vt;if(we+Bt>Ut.byteLength)throw new Jt(tt);for(var Ot=Ut.bytes,Pt=we+Ut.byteOffset,ot=0;ot<Bt;ot++)Ot[Pt+ot]=Ye[dt?ot:Bt-ot-1]};if(!p)bt=function(Bt){R(this,yt);var $t=w(Bt);vt(this,{type:_,bytes:ge(Kt($t),0),byteLength:$t}),h||(this.byteLength=$t,this.detached=!1)},yt=bt[rt],Ft=function(Bt,$t,kt){R(this,Lt),R(Bt,yt);var Qt=et(Bt),Vt=Qt.byteLength,Ut=O($t);if(Ut<0||Ut>Vt)throw new Jt("Wrong offset");if(kt=kt===void 0?Vt-Ut:C(kt),Ut+kt>Vt)throw new Jt(q);vt(this,{type:nt,buffer:Bt,byteLength:kt,byteOffset:Ut,bytes:Qt.bytes}),h||(this.buffer=Bt,this.byteLength=kt,this.byteOffset=Ut)},Lt=Ft[rt],h&&(Ce(bt,"byteLength",et),Ce(Ft,"buffer",lt),Ce(Ft,"byteLength",lt),Ce(Ft,"byteOffset",lt)),A(Lt,{getInt8:function(Bt){return xe(this,1,Bt)[0]<<24>>24},getUint8:function(Bt){return xe(this,1,Bt)[0]},getInt16:function(Bt){var $t=xe(this,2,Bt,arguments.length>1?arguments[1]:!1);return($t[1]<<8|$t[0])<<16>>16},getUint16:function(Bt){var $t=xe(this,2,Bt,arguments.length>1?arguments[1]:!1);return $t[1]<<8|$t[0]},getInt32:function(Bt){return re(xe(this,4,Bt,arguments.length>1?arguments[1]:!1))},getUint32:function(Bt){return re(xe(this,4,Bt,arguments.length>1?arguments[1]:!1))>>>0},getFloat32:function(Bt){return Mt(xe(this,4,Bt,arguments.length>1?arguments[1]:!1),23)},getFloat64:function(Bt){return Mt(xe(this,8,Bt,arguments.length>1?arguments[1]:!1),52)},setInt8:function(Bt,$t){se(this,1,Bt,zt,$t)},setUint8:function(Bt,$t){se(this,1,Bt,zt,$t)},setInt16:function(Bt,$t){se(this,2,Bt,te,$t,arguments.length>2?arguments[2]:!1)},setUint16:function(Bt,$t){se(this,2,Bt,te,$t,arguments.length>2?arguments[2]:!1)},setInt32:function(Bt,$t){se(this,4,Bt,ae,$t,arguments.length>2?arguments[2]:!1)},setUint32:function(Bt,$t){se(this,4,Bt,ae,$t,arguments.length>2?arguments[2]:!1)},setFloat32:function(Bt,$t){se(this,4,Bt,oe,$t,arguments.length>2?arguments[2]:!1)},setFloat64:function(Bt,$t){se(this,8,Bt,Re,$t,arguments.length>2?arguments[2]:!1)}});else{var Ae=J&&ft.name!==_;!b(function(){ft(1)})||!b(function(){new ft(-1)})||b(function(){return new ft,new ft(1.5),new ft(NaN),ft.length!==1||Ae&&!Z})?(bt=function(Bt){return R(this,yt),Y(new ft(w(Bt)),this,bt)},bt[rt]=yt,yt.constructor=bt,B(bt,ft)):Ae&&Z&&T(ft,"name",_),j&&F(Lt)!==jt&&j(Lt,jt);var me=new Ft(new bt(2)),ce=d(Lt.setInt8);me.setInt8(0,2147483648),me.setInt8(1,2147483649),(me.getInt8(0)||!me.getInt8(1))&&A(Lt,{setInt8:function(Bt,$t){ce(this,Bt,$t<<24>>24)},setUint8:function(Bt,$t){ce(this,Bt,$t<<24>>24)}},{unsafe:!0})}V(bt,_),V(Ft,nt),x.exports={ArrayBuffer:bt,DataView:Ft}},function(x){x.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},function(x,E,r){var u=r(47);x.exports=function(d,h,p){for(var y in h)u(d,y,h[y],p);return d}},function(x,E,r){var u=r(24),d=TypeError;x.exports=function(h,p){if(u(p,h))return h;throw new d("Incorrect invocation")}},function(x,E,r){var u=r(61),d=r(64),h=RangeError;x.exports=function(p){if(p===void 0)return 0;var y=u(p),T=d(y);if(y!==T)throw new h("Wrong length or index");return T}},function(x,E,r){var u=r(213),d=11920928955078125e-23,h=34028234663852886e22,p=11754943508222875e-54;x.exports=Math.fround||function(T){return u(T,d,h,p)}},function(x,E,r){var u=r(214),d=Math.abs,h=2220446049250313e-31,p=1/h,y=function(T){return T+p-p};x.exports=function(T,$,A,b){var R=+T,O=d(R),C=u(R);if(O<b)return C*y(O/b/$)*b*$;var w=(1+$/h)*O,D=w-(w-O);return D>A||D!==D?C*(1/0):C*D}},function(x){x.exports=Math.sign||function(r){var u=+r;return u===0||u!==u?u:u<0?-1:1}},function(x){var E=Array,r=Math.abs,u=Math.pow,d=Math.floor,h=Math.log,p=Math.LN2,y=function($,A,b){var R=E(b),O=b*8-A-1,C=(1<<O)-1,w=C>>1,D=A===23?u(2,-24)-u(2,-77):0,L=$<0||$===0&&1/$<0?1:0,F=0,j,U,z;for($=r($),$!==$||$===1/0?(U=$!==$?1:0,j=C):(j=d(h($)/p),z=u(2,-j),$*z<1&&(j--,z*=2),j+w>=1?$+=D/z:$+=D*u(2,1-w),$*z>=2&&(j++,z/=2),j+w>=C?(U=0,j=C):j+w>=1?(U=($*z-1)*u(2,A),j+=w):(U=$*u(2,w-1)*u(2,A),j=0));A>=8;)R[F++]=U&255,U/=256,A-=8;for(j=j<<A|U,O+=A;O>0;)R[F++]=j&255,j/=256,O-=8;return R[--F]|=L*128,R},T=function($,A){var b=$.length,R=b*8-A-1,O=(1<<R)-1,C=O>>1,w=R-7,D=b-1,L=$[D--],F=L&127,j;for(L>>=7;w>0;)F=F*256+$[D--],w-=8;for(j=F&(1<<-w)-1,F>>=-w,w+=A;w>0;)j=j*256+$[D--],w-=8;if(F===0)F=1-C;else{if(F===O)return j?NaN:L?-1/0:1/0;j+=u(2,A),F-=C}return(L?-1:1)*j*u(2,F-A)};x.exports={pack:y,unpack:T}},function(x,E,r){var u=r(3),d=r(217),h=d.NATIVE_ARRAY_BUFFER_VIEWS;u({target:"ArrayBuffer",stat:!0,forced:!h},{isView:d.isView})},function(x,E,r){var u=r(208),d=r(6),h=r(4),p=r(21),y=r(20),T=r(38),$=r(69),A=r(31),b=r(43),R=r(47),O=r(77),C=r(24),w=r(128),D=r(113),L=r(33),F=r(40),j=r(51),U=j.enforce,z=j.get,Y=h.Int8Array,B=Y&&Y.prototype,V=h.Uint8ClampedArray,K=V&&V.prototype,J=Y&&w(Y),Z=B&&w(B),_=Object.prototype,nt=h.TypeError,rt=L("toStringTag"),q=F("TYPED_ARRAY_TAG"),tt="TypedArrayConstructor",et=u&&!!D&&$(h.opera)!=="Opera",lt=!1,vt,ft,bt,yt={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Ft={BigInt64Array:8,BigUint64Array:8},Lt=function(zt){if(!y(zt))return!1;var te=$(zt);return te==="DataView"||T(yt,te)||T(Ft,te)},jt=function(Mt){var zt=w(Mt);if(y(zt)){var te=z(zt);return te&&T(te,tt)?te[tt]:jt(zt)}},Kt=function(Mt){if(!y(Mt))return!1;var zt=$(Mt);return T(yt,zt)||T(Ft,zt)},Jt=function(Mt){if(Kt(Mt))return Mt;throw new nt("Target is not a typed array")},ge=function(Mt){if(p(Mt)&&(!D||C(J,Mt)))return Mt;throw new nt(A(Mt)+" is not a typed array constructor")},le=function(Mt,zt,te,ae){if(d){if(te)for(var re in yt){var oe=h[re];if(oe&&T(oe.prototype,Mt))try{delete oe.prototype[Mt]}catch(Re){try{oe.prototype[Mt]=zt}catch(Ce){}}}(!Z[Mt]||te)&&R(Z,Mt,te?zt:et&&B[Mt]||zt,ae)}},ee=function(Mt,zt,te){var ae,re;if(d){if(D){if(te){for(ae in yt)if(re=h[ae],re&&T(re,Mt))try{delete re[Mt]}catch(oe){}}if(!J[Mt]||te)try{return R(J,Mt,te?zt:et&&J[Mt]||zt)}catch(oe){}else return}for(ae in yt)re=h[ae],re&&(!re[Mt]||te)&&R(re,Mt,zt)}};for(vt in yt)ft=h[vt],bt=ft&&ft.prototype,bt?U(bt)[tt]=ft:et=!1;for(vt in Ft)ft=h[vt],bt=ft&&ft.prototype,bt&&(U(bt)[tt]=ft);if((!et||!p(J)||J===Function.prototype)&&(J=function(){throw new nt("Incorrect invocation")},et))for(vt in yt)h[vt]&&D(h[vt],J);if((!et||!Z||Z===_)&&(Z=J.prototype,et))for(vt in yt)h[vt]&&D(h[vt].prototype,Z);if(et&&w(K)!==Z&&D(K,Z),d&&!T(Z,rt)){lt=!0,O(Z,rt,{configurable:!0,get:function(){return y(this)?this[q]:void 0}});for(vt in yt)h[vt]&&b(h[vt],q,vt)}x.exports={NATIVE_ARRAY_BUFFER_VIEWS:et,TYPED_ARRAY_TAG:lt&&q,aTypedArray:Jt,aTypedArrayConstructor:ge,exportTypedArrayMethod:le,exportTypedArrayStaticMethod:ee,getTypedArrayConstructor:jt,isView:Lt,isTypedArray:Kt,TypedArray:J,TypedArrayPrototype:Z}},function(x,E,r){var u=r(3),d=r(85),h=r(7),p=r(207),y=r(46),T=r(60),$=r(64),A=r(219),b=p.ArrayBuffer,R=p.DataView,O=R.prototype,C=d(b.prototype.slice),w=d(O.getUint8),D=d(O.setUint8),L=h(function(){return!new b(2).slice(1,void 0).byteLength});u({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:L},{slice:function(j,U){if(C&&U===void 0)return C(y(this),j);for(var z=y(this).byteLength,Y=T(j,z),B=T(U===void 0?z:U,z),V=new(A(this,b))($(B-Y)),K=new R(this),J=new R(V),Z=0;Y<B;)D(J,Z++,w(K,Y++));return V}})},function(x,E,r){var u=r(46),d=r(220),h=r(17),p=r(33),y=p("species");x.exports=function(T,$){var A=u(T).constructor,b;return A===void 0||h(b=u(A)[y])?$:d(b)}},function(x,E,r){var u=r(89),d=r(31),h=TypeError;x.exports=function(p){if(u(p))return p;throw new h(d(p)+" is not a constructor")}},function(x,E,r){r(222)},function(x,E,r){var u=r(3),d=r(207),h=r(208);u({global:!0,constructor:!0,forced:!h},{DataView:d.DataView})},function(x,E,r){var u=r(6),d=r(77),h=r(224),p=ArrayBuffer.prototype;u&&!("detached"in p)&&d(p,"detached",{configurable:!0,get:function(){return h(this)}})},function(x,E,r){var u=r(14),d=r(225),h=u(ArrayBuffer.prototype.slice);x.exports=function(p){if(d(p)!==0)return!1;try{return h(p,0,0),!1}catch(y){return!0}}},function(x,E,r){var u=r(114),d=r(15),h=TypeError;x.exports=u(ArrayBuffer.prototype,"byteLength","get")||function(p){if(d(p)!=="ArrayBuffer")throw new h("ArrayBuffer expected");return p.byteLength}},function(x,E,r){var u=r(3),d=r(227);d&&u({target:"ArrayBuffer",proto:!0},{transfer:function(){return d(this,arguments.length?arguments[0]:void 0,!0)}})},function(x,E,r){var u=r(4),d=r(14),h=r(114),p=r(211),y=r(224),T=r(225),$=r(228),A=r(230),b=u.structuredClone,R=u.ArrayBuffer,O=u.DataView,C=u.TypeError,w=Math.min,D=R.prototype,L=O.prototype,F=d(D.slice),j=h(D,"resizable","get"),U=h(D,"maxByteLength","get"),z=d(L.getInt8),Y=d(L.setInt8);x.exports=(A||$)&&function(B,V,K){var J=T(B),Z=V===void 0?J:p(V),_=!j||!j(B),nt;if(y(B))throw new C("ArrayBuffer is detached");if(A&&(B=b(B,{transfer:[B]}),J===Z&&(K||_)))return B;if(J>=Z&&(!K||_))nt=F(B,0,Z);else{var rt=K&&!_&&U?{maxByteLength:U(B)}:void 0;nt=new R(Z,rt);for(var q=new O(B),tt=new O(nt),et=w(Z,J),lt=0;lt<et;lt++)Y(tt,lt,z(q,lt))}return A||$(B),nt}},function(x,E,r){var u=r(4),d=r(229),h=r(230),p=u.structuredClone,y=u.ArrayBuffer,T=u.MessageChannel,$=!1,A,b,R,O;if(h)$=function(C){p(C,{transfer:[C]})};else if(y)try{T||(A=d("worker_threads"),A&&(T=A.MessageChannel)),T&&(b=new T,R=new y(2),O=function(C){b.port1.postMessage(null,[C])},R.byteLength===2&&(O(R),R.byteLength===0&&($=O)))}catch(C){}x.exports=$},function(x,E,r){var u=r(182);x.exports=function(d){try{if(u)return Function('return require("'+d+'")')()}catch(h){}}},function(x,E,r){var u=r(4),d=r(7),h=r(27),p=r(231),y=r(232),T=r(182),$=u.structuredClone;x.exports=!!$&&!d(function(){if(y&&h>92||T&&h>94||p&&h>97)return!1;var A=new ArrayBuffer(8),b=$(A,{transfer:[A]});return A.byteLength!==0||b.byteLength!==8})},function(x,E,r){var u=r(232),d=r(182);x.exports=!u&&!d&&typeof window=="object"&&typeof document=="object"},function(x){x.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},function(x,E,r){var u=r(3),d=r(227);d&&u({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return d(this,arguments.length?arguments[0]:void 0,!1)}})},function(x,E,r){var u=r(3),d=r(14),h=r(7),p=h(function(){return new Date(16e11).getYear()!==120}),y=d(Date.prototype.getFullYear);u({target:"Date",proto:!0,forced:p},{getYear:function(){return y(this)-1900}})},function(x,E,r){var u=r(3),d=r(14),h=Date,p=d(h.prototype.getTime);u({target:"Date",stat:!0},{now:function(){return p(new h)}})},function(x,E,r){var u=r(3),d=r(14),h=r(61),p=Date.prototype,y=d(p.getTime),T=d(p.setFullYear);u({target:"Date",proto:!0},{setYear:function(A){y(this);var b=h(A),R=b>=0&&b<=99?b+1900:b;return T(this,R)}})},function(x,E,r){var u=r(3);u({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})},function(x,E,r){var u=r(3),d=r(239);u({target:"Date",proto:!0,forced:Date.prototype.toISOString!==d},{toISOString:d})},function(x,E,r){var u=r(14),d=r(7),h=r(240).start,p=RangeError,y=isFinite,T=Math.abs,$=Date.prototype,A=$.toISOString,b=u($.getTime),R=u($.getUTCDate),O=u($.getUTCFullYear),C=u($.getUTCHours),w=u($.getUTCMilliseconds),D=u($.getUTCMinutes),L=u($.getUTCMonth),F=u($.getUTCSeconds);x.exports=d(function(){return A.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!d(function(){A.call(new Date(NaN))})?function(){if(!y(b(this)))throw new p("Invalid time value");var U=this,z=O(U),Y=w(U),B=z<0?"-":z>9999?"+":"";return B+h(T(z),B?6:4,0)+"-"+h(L(U)+1,2,0)+"-"+h(R(U),2,0)+"T"+h(C(U),2,0)+":"+h(D(U),2,0)+":"+h(F(U),2,0)+"."+h(Y,3,0)+"Z"}:A},function(x,E,r){var u=r(14),d=r(64),h=r(68),p=r(241),y=r(16),T=u(p),$=u("".slice),A=Math.ceil,b=function(R){return function(O,C,w){var D=h(y(O)),L=d(C),F=D.length,j=w===void 0?" ":h(w),U,z;return L<=F||j===""?D:(U=L-F,z=T(j,A(U/j.length)),z.length>U&&(z=$(z,0,U)),R?D+z:z+D)}};x.exports={start:b(!1),end:b(!0)}},function(x,E,r){var u=r(61),d=r(68),h=r(16),p=RangeError;x.exports=function(T){var $=d(h(this)),A="",b=u(T);if(b<0||b===1/0)throw new p("Wrong number of repetitions");for(;b>0;(b>>>=1)&&($+=$))b&1&&(A+=$);return A}},function(x,E,r){var u=r(3),d=r(7),h=r(39),p=r(19),y=d(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1});u({target:"Date",proto:!0,arity:1,forced:y},{toJSON:function($){var A=h(this),b=p(A,"number");return typeof b=="number"&&!isFinite(b)?null:A.toISOString()}})},function(x,E,r){var u=r(38),d=r(47),h=r(244),p=r(33),y=p("toPrimitive"),T=Date.prototype;u(T,y)||d(T,y,h)},function(x,E,r){var u=r(46),d=r(32),h=TypeError;x.exports=function(p){if(u(this),p==="string"||p==="default")p="string";else if(p!=="number")throw new h("Incorrect hint");return d(this,p)}},function(x,E,r){var u=r(14),d=r(47),h=Date.prototype,p="Invalid Date",y="toString",T=u(h[y]),$=u(h.getTime);String(new Date(NaN))!==p&&d(h,y,function(){var b=$(this);return b===b?T(this):p})},function(x,E,r){var u=r(3),d=r(14),h=r(68),p=d("".charAt),y=d("".charCodeAt),T=d(/./.exec),$=d(1 .toString),A=d("".toUpperCase),b=/[\w*+\-./@]/,R=function(O,C){for(var w=$(O,16);w.length<C;)w="0"+w;return w};u({global:!0},{escape:function(C){for(var w=h(C),D="",L=w.length,F=0,j,U;F<L;)j=p(w,F++),T(b,j)?D+=j:(U=y(j,0),U<256?D+="%"+R(U,2):D+="%u"+A(R(U,4)));return D}})},function(x,E,r){var u=r(3),d=r(248);u({target:"Function",proto:!0,forced:Function.bind!==d},{bind:d})},function(x,E,r){var u=r(14),d=r(30),h=r(20),p=r(38),y=r(76),T=r(9),$=Function,A=u([].concat),b=u([].join),R={},O=function(C,w,D){if(!p(R,w)){for(var L=[],F=0;F<w;F++)L[F]="a["+F+"]";R[w]=$("C,a","return new C("+b(L,",")+")")}return R[w](C,D)};x.exports=T?$.bind:function(w){var D=d(this),L=D.prototype,F=y(arguments,1),j=function(){var z=A(F,y(arguments));return this instanceof j?O(D,z.length,z):D.apply(w,z)};return h(L)&&(j.prototype=L),j}},function(x,E,r){var u=r(21),d=r(20),h=r(44),p=r(24),y=r(33),T=r(48),$=y("hasInstance"),A=Function.prototype;$ in A||h.f(A,$,{value:T(function(b){if(!u(this)||!d(b))return!1;var R=this.prototype;return d(R)?p(R,b):b instanceof this},$)})},function(x,E,r){var u=r(6),d=r(49).EXISTS,h=r(14),p=r(77),y=Function.prototype,T=h(y.toString),$=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,A=h($.exec),b="name";u&&!d&&p(y,b,{configurable:!0,get:function(){try{return A($,T(this))[1]}catch(R){return""}}})},function(x,E,r){var u=r(3),d=r(4);u({global:!0,forced:d.globalThis!==d},{globalThis:d})},function(x,E,r){var u=r(4),d=r(82);d(u.JSON,"JSON",!0)},function(x,E,r){r(254)},function(x,E,r){var u=r(255),d=r(260);u("Map",function(h){return function(){return h(this,arguments.length?arguments[0]:void 0)}},d)},function(x,E,r){var u=r(3),d=r(4),h=r(14),p=r(67),y=r(47),T=r(256),$=r(130),A=r(210),b=r(21),R=r(17),O=r(20),C=r(7),w=r(164),D=r(82),L=r(118);x.exports=function(F,j,U){var z=F.indexOf("Map")!==-1,Y=F.indexOf("Weak")!==-1,B=z?"set":"add",V=d[F],K=V&&V.prototype,J=V,Z={},_=function(vt){var ft=h(K[vt]);y(K,vt,vt==="add"?function(yt){return ft(this,yt===0?0:yt),this}:vt==="delete"?function(bt){return Y&&!O(bt)?!1:ft(this,bt===0?0:bt)}:vt==="get"?function(yt){return Y&&!O(yt)?void 0:ft(this,yt===0?0:yt)}:vt==="has"?function(yt){return Y&&!O(yt)?!1:ft(this,yt===0?0:yt)}:function(yt,Ft){return ft(this,yt===0?0:yt,Ft),this})},nt=p(F,!b(V)||!(Y||K.forEach&&!C(function(){new V().entries().next()})));if(nt)J=U.getConstructor(j,F,z,B),T.enable();else if(p(F,!0)){var rt=new J,q=rt[B](Y?{}:-0,1)!==rt,tt=C(function(){rt.has(1)}),et=w(function(vt){new V(vt)}),lt=!Y&&C(function(){for(var vt=new V,ft=5;ft--;)vt[B](ft,ft);return!vt.has(-0)});et||(J=j(function(vt,ft){A(vt,K);var bt=L(new V,vt,J);return R(ft)||$(ft,bt[B],{that:bt,AS_ENTRIES:z}),bt}),J.prototype=K,K.constructor=J),(tt||lt)&&(_("delete"),_("has"),z&&_("get")),(lt||q)&&_(B),Y&&K.clear&&delete K.clear}return Z[F]=J,u({global:!0,constructor:!0,forced:J!==V},Z),D(J,F),Y||U.setStrong(J,F,z),J}},function(x,E,r){var u=r(3),d=r(14),h=r(54),p=r(20),y=r(38),T=r(44).f,$=r(57),A=r(75),b=r(257),R=r(40),O=r(259),C=!1,w=R("meta"),D=0,L=function(B){T(B,w,{value:{objectID:"O"+D++,weakData:{}}})},F=function(B,V){if(!p(B))return typeof B=="symbol"?B:(typeof B=="string"?"S":"P")+B;if(!y(B,w)){if(!b(B))return"F";if(!V)return"E";L(B)}return B[w].objectID},j=function(B,V){if(!y(B,w)){if(!b(B))return!0;if(!V)return!1;L(B)}return B[w].weakData},U=function(B){return O&&C&&b(B)&&!y(B,w)&&L(B),B},z=function(){Y.enable=function(){},C=!0;var B=$.f,V=d([].splice),K={};K[w]=1,B(K).length&&($.f=function(J){for(var Z=B(J),_=0,nt=Z.length;_<nt;_++)if(Z[_]===w){V(Z,_,1);break}return Z},u({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:A.f}))},Y=x.exports={enable:z,fastKey:F,getWeakData:j,onFreeze:U};h[w]=!0},function(x,E,r){var u=r(7),d=r(20),h=r(15),p=r(258),y=Object.isExtensible,T=u(function(){y(1)});x.exports=T||p?function(A){return!d(A)||p&&h(A)==="ArrayBuffer"?!1:y?y(A):!0}:y},function(x,E,r){var u=r(7);x.exports=u(function(){if(typeof ArrayBuffer=="function"){var d=new ArrayBuffer(8);Object.isExtensible(d)&&Object.defineProperty(d,"a",{value:8})}})},function(x,E,r){var u=r(7);x.exports=!u(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(x,E,r){var u=r(71),d=r(77),h=r(209),p=r(84),y=r(210),T=r(17),$=r(130),A=r(169),b=r(172),R=r(193),O=r(6),C=r(256).fastKey,w=r(51),D=w.set,L=w.getterFor;x.exports={getConstructor:function(F,j,U,z){var Y=F(function(Z,_){y(Z,B),D(Z,{type:j,index:u(null),first:void 0,last:void 0,size:0}),O||(Z.size=0),T(_)||$(_,Z[z],{that:Z,AS_ENTRIES:U})}),B=Y.prototype,V=L(j),K=function(Z,_,nt){var rt=V(Z),q=J(Z,_),tt,et;return q?q.value=nt:(rt.last=q={index:et=C(_,!0),key:_,value:nt,previous:tt=rt.last,next:void 0,removed:!1},rt.first||(rt.first=q),tt&&(tt.next=q),O?rt.size++:Z.size++,et!=="F"&&(rt.index[et]=q)),Z},J=function(Z,_){var nt=V(Z),rt=C(_),q;if(rt!=="F")return nt.index[rt];for(q=nt.first;q;q=q.next)if(q.key===_)return q};return h(B,{clear:function(){for(var _=this,nt=V(_),rt=nt.first;rt;)rt.removed=!0,rt.previous&&(rt.previous=rt.previous.next=void 0),rt=rt.next;nt.first=nt.last=void 0,nt.index=u(null),O?nt.size=0:_.size=0},delete:function(Z){var _=this,nt=V(_),rt=J(_,Z);if(rt){var q=rt.next,tt=rt.previous;delete nt.index[rt.index],rt.removed=!0,tt&&(tt.next=q),q&&(q.previous=tt),nt.first===rt&&(nt.first=q),nt.last===rt&&(nt.last=tt),O?nt.size--:_.size--}return!!rt},forEach:function(_){for(var nt=V(this),rt=p(_,arguments.length>1?arguments[1]:void 0),q;q=q?q.next:nt.first;)for(rt(q.value,q.key,this);q&&q.removed;)q=q.previous},has:function(_){return!!J(this,_)}}),h(B,U?{get:function(_){var nt=J(this,_);return nt&&nt.value},set:function(_,nt){return K(this,_===0?0:_,nt)}}:{add:function(_){return K(this,_=_===0?0:_,_)}}),O&&d(B,"size",{configurable:!0,get:function(){return V(this).size}}),Y},setStrong:function(F,j,U){var z=j+" Iterator",Y=L(j),B=L(z);A(F,j,function(V,K){D(this,{type:z,target:V,state:Y(V),kind:K,last:void 0})},function(){for(var V=B(this),K=V.kind,J=V.last;J&&J.removed;)J=J.previous;return!V.target||!(V.last=J=J?J.next:V.state.first)?(V.target=void 0,b(void 0,!0)):b(K==="keys"?J.key:K==="values"?J.value:[J.key,J.value],!1)},U?"entries":"values",!U,!0),R(j)}}},function(x,E,r){var u=r(3),d=r(14),h=r(30),p=r(16),y=r(130),T=r(262),$=r(36),A=r(7),b=T.Map,R=T.has,O=T.get,C=T.set,w=d([].push),D=$||A(function(){return b.groupBy("ab",function(L){return L}).get("a").length!==1});u({target:"Map",stat:!0,forced:$||D},{groupBy:function(F,j){p(F),h(j);var U=new b,z=0;return y(F,function(Y){var B=j(Y,z++);R(U,B)?w(O(U,B),Y):C(U,B,[Y])}),U}})},function(x,E,r){var u=r(14),d=Map.prototype;x.exports={Map,set:u(d.set),get:u(d.get),has:u(d.has),remove:u(d.delete),proto:d}},function(x,E,r){var u=r(3),d=r(264),h=Math.acosh,p=Math.log,y=Math.sqrt,T=Math.LN2,$=!h||Math.floor(h(Number.MAX_VALUE))!==710||h(1/0)!==1/0;u({target:"Math",stat:!0,forced:$},{acosh:function(b){var R=+b;return R<1?NaN:R>9490626562425156e-8?p(R)+T:d(R-1+y(R-1)*y(R+1))}})},function(x){var E=Math.log;x.exports=Math.log1p||function(u){var d=+u;return d>-1e-8&&d<1e-8?d-d*d/2:E(1+d)}},function(x,E,r){var u=r(3),d=Math.asinh,h=Math.log,p=Math.sqrt;function y($){var A=+$;return!isFinite(A)||A===0?A:A<0?-y(-A):h(A+p(A*A+1))}var T=!(d&&1/d(0)>0);u({target:"Math",stat:!0,forced:T},{asinh:y})},function(x,E,r){var u=r(3),d=Math.atanh,h=Math.log,p=!(d&&1/d(-0)<0);u({target:"Math",stat:!0,forced:p},{atanh:function(T){var $=+T;return $===0?$:h((1+$)/(1-$))/2}})},function(x,E,r){var u=r(3),d=r(214),h=Math.abs,p=Math.pow;u({target:"Math",stat:!0},{cbrt:function(T){var $=+T;return d($)*p(h($),.3333333333333333)}})},function(x,E,r){var u=r(3),d=Math.floor,h=Math.log,p=Math.LOG2E;u({target:"Math",stat:!0},{clz32:function(T){var $=T>>>0;return $?31-d(h($+.5)*p):32}})},function(x,E,r){var u=r(3),d=r(270),h=Math.cosh,p=Math.abs,y=Math.E,T=!h||h(710)===1/0;u({target:"Math",stat:!0,forced:T},{cosh:function(A){var b=d(p(A)-1)+1;return(b+1/(b*y*y))*(y/2)}})},function(x){var E=Math.expm1,r=Math.exp;x.exports=!E||E(10)>22025.465794806718||E(10)<22025.465794806718||E(-2e-17)!==-2e-17?function(d){var h=+d;return h===0?h:h>-1e-6&&h<1e-6?h+h*h/2:r(h)-1}:E},function(x,E,r){var u=r(3),d=r(270);u({target:"Math",stat:!0,forced:d!==Math.expm1},{expm1:d})},function(x,E,r){var u=r(3),d=r(212);u({target:"Math",stat:!0},{fround:d})},function(x,E,r){var u=r(3),d=Math.hypot,h=Math.abs,p=Math.sqrt,y=!!d&&d(1/0,NaN)!==1/0;u({target:"Math",stat:!0,arity:2,forced:y},{hypot:function($,A){for(var b=0,R=0,O=arguments.length,C=0,w,D;R<O;)w=h(arguments[R++]),C<w?(D=C/w,b=b*D*D+1,C=w):w>0?(D=w/C,b+=D*D):b+=w;return C===1/0?1/0:C*p(b)}})},function(x,E,r){var u=r(3),d=r(7),h=Math.imul,p=d(function(){return h(4294967295,5)!==-5||h.length!==2});u({target:"Math",stat:!0,forced:p},{imul:function(T,$){var A=65535,b=+T,R=+$,O=A&b,C=A&R;return 0|O*C+((A&b>>>16)*C+O*(A&R>>>16)<<16>>>0)}})},function(x,E,r){var u=r(3),d=r(276);u({target:"Math",stat:!0},{log10:d})},function(x){var E=Math.log,r=Math.LOG10E;x.exports=Math.log10||function(d){return E(d)*r}},function(x,E,r){var u=r(3),d=r(264);u({target:"Math",stat:!0},{log1p:d})},function(x,E,r){var u=r(3),d=Math.log,h=Math.LN2;u({target:"Math",stat:!0},{log2:function(y){return d(y)/h}})},function(x,E,r){var u=r(3),d=r(214);u({target:"Math",stat:!0},{sign:d})},function(x,E,r){var u=r(3),d=r(7),h=r(270),p=Math.abs,y=Math.exp,T=Math.E,$=d(function(){return Math.sinh(-2e-17)!==-2e-17});u({target:"Math",stat:!0,forced:$},{sinh:function(b){var R=+b;return p(R)<1?(h(R)-h(-R))/2:(y(R-1)-y(-R-1))*(T/2)}})},function(x,E,r){var u=r(3),d=r(270),h=Math.exp;u({target:"Math",stat:!0},{tanh:function(y){var T=+y,$=d(T),A=d(-T);return $===1/0?1:A===1/0?-1:($-A)/(h(T)+h(-T))}})},function(x,E,r){var u=r(82);u(Math,"Math",!0)},function(x,E,r){var u=r(3),d=r(62);u({target:"Math",stat:!0},{trunc:d})},function(x,E,r){var u=r(3),d=r(36),h=r(6),p=r(4),y=r(80),T=r(14),$=r(67),A=r(38),b=r(118),R=r(24),O=r(22),C=r(19),w=r(7),D=r(57).f,L=r(5).f,F=r(44).f,j=r(285),U=r(286).trim,z="Number",Y=p[z],B=y[z],V=Y.prototype,K=p.TypeError,J=T("".slice),Z=T("".charCodeAt),_=function(lt){var vt=C(lt,"number");return typeof vt=="bigint"?vt:nt(vt)},nt=function(lt){var vt=C(lt,"number"),ft,bt,yt,Ft,Lt,jt,Kt,Jt;if(O(vt))throw new K("Cannot convert a Symbol value to a number");if(typeof vt=="string"&&vt.length>2){if(vt=U(vt),ft=Z(vt,0),ft===43||ft===45){if(bt=Z(vt,2),bt===88||bt===120)return NaN}else if(ft===48){switch(Z(vt,1)){case 66:case 98:yt=2,Ft=49;break;case 79:case 111:yt=8,Ft=55;break;default:return+vt}for(Lt=J(vt,2),jt=Lt.length,Kt=0;Kt<jt;Kt++)if(Jt=Z(Lt,Kt),Jt<48||Jt>Ft)return NaN;return parseInt(Lt,yt)}}return+vt},rt=$(z,!Y(" 0o1")||!Y("0b1")||Y("+0x1")),q=function(lt){return R(V,lt)&&w(function(){j(lt)})},tt=function(vt){var ft=arguments.length<1?0:Y(_(vt));return q(this)?b(Object(ft),this,tt):ft};tt.prototype=V,rt&&!d&&(V.constructor=tt),u({global:!0,constructor:!0,wrap:!0,forced:rt},{Number:tt});var et=function(lt,vt){for(var ft=h?D(vt):"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(","),bt=0,yt;ft.length>bt;bt++)A(vt,yt=ft[bt])&&!A(lt,yt)&&F(lt,yt,L(vt,yt))};d&&B&&et(y[z],B),(rt||d)&&et(y[z],Y)},function(x,E,r){var u=r(14);x.exports=u(1 .valueOf)},function(x,E,r){var u=r(14),d=r(16),h=r(68),p=r(287),y=u("".replace),T=RegExp("^["+p+"]+"),$=RegExp("(^|[^"+p+"])["+p+"]+$"),A=function(b){return function(R){var O=h(d(R));return b&1&&(O=y(O,T,"")),b&2&&(O=y(O,$,"$1")),O}};x.exports={start:A(1),end:A(2),trim:A(3)}},function(x){x.exports=`
|
|
27
|
+
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},function(x,E,r){var u=r(3);u({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},function(x,E,r){var u=r(3),d=r(290);u({target:"Number",stat:!0},{isFinite:d})},function(x,E,r){var u=r(4),d=u.isFinite;x.exports=Number.isFinite||function(p){return typeof p=="number"&&d(p)}},function(x,E,r){var u=r(3),d=r(292);u({target:"Number",stat:!0},{isInteger:d})},function(x,E,r){var u=r(20),d=Math.floor;x.exports=Number.isInteger||function(p){return!u(p)&&isFinite(p)&&d(p)===p}},function(x,E,r){var u=r(3);u({target:"Number",stat:!0},{isNaN:function(h){return h!==h}})},function(x,E,r){var u=r(3),d=r(292),h=Math.abs;u({target:"Number",stat:!0},{isSafeInteger:function(y){return d(y)&&h(y)<=9007199254740991}})},function(x,E,r){var u=r(3);u({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(x,E,r){var u=r(3);u({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(x,E,r){var u=r(3),d=r(298);u({target:"Number",stat:!0,forced:Number.parseFloat!==d},{parseFloat:d})},function(x,E,r){var u=r(4),d=r(7),h=r(14),p=r(68),y=r(286).trim,T=r(287),$=h("".charAt),A=u.parseFloat,b=u.Symbol,R=b&&b.iterator,O=1/A(T+"-0")!==-1/0||R&&!d(function(){A(Object(R))});x.exports=O?function(w){var D=y(p(w)),L=A(D);return L===0&&$(D,0)==="-"?-0:L}:A},function(x,E,r){var u=r(3),d=r(300);u({target:"Number",stat:!0,forced:Number.parseInt!==d},{parseInt:d})},function(x,E,r){var u=r(4),d=r(7),h=r(14),p=r(68),y=r(286).trim,T=r(287),$=u.parseInt,A=u.Symbol,b=A&&A.iterator,R=/^[+-]?0x/i,O=h(R.exec),C=$(T+"08")!==8||$(T+"0x16")!==22||b&&!d(function(){$(Object(b))});x.exports=C?function(D,L){var F=y(p(D));return $(F,L>>>0||(O(R,F)?16:10))}:$},function(x,E,r){var u=r(3),d=r(14),h=r(61),p=r(285),y=r(241),T=r(276),$=r(7),A=RangeError,b=String,R=isFinite,O=Math.abs,C=Math.floor,w=Math.pow,D=Math.round,L=d(1 .toExponential),F=d(y),j=d("".slice),U=L(-69e-12,4)==="-6.9000e-11"&&L(1.255,2)==="1.25e+0"&&L(12345,3)==="1.235e+4"&&L(25,0)==="3e+1",z=function(){return $(function(){L(1,1/0)})&&$(function(){L(1,-1/0)})},Y=function(){return!$(function(){L(1/0,1/0),L(NaN,1/0)})},B=!U||!z()||!Y();u({target:"Number",proto:!0,forced:B},{toExponential:function(K){var J=p(this);if(K===void 0)return L(J);var Z=h(K);if(!R(J))return String(J);if(Z<0||Z>20)throw new A("Incorrect fraction digits");if(U)return L(J,Z);var _="",nt="",rt=0,q="",tt="";if(J<0&&(_="-",J=-J),J===0)rt=0,nt=F("0",Z+1);else{var et=T(J);rt=C(et);var lt=0,vt=w(10,rt-Z);lt=D(J/vt),2*J>=(2*lt+1)*vt&&(lt+=1),lt>=w(10,Z+1)&&(lt/=10,rt+=1),nt=b(lt)}return Z!==0&&(nt=j(nt,0,1)+"."+j(nt,1)),rt===0?(q="+",tt="0"):(q=rt>0?"+":"-",tt=b(O(rt))),nt+="e"+q+tt,_+nt}})},function(x,E,r){var u=r(3),d=r(14),h=r(61),p=r(285),y=r(241),T=r(7),$=RangeError,A=String,b=Math.floor,R=d(y),O=d("".slice),C=d(1 .toFixed),w=function(z,Y,B){return Y===0?B:Y%2===1?w(z,Y-1,B*z):w(z*z,Y/2,B)},D=function(z){for(var Y=0,B=z;B>=4096;)Y+=12,B/=4096;for(;B>=2;)Y+=1,B/=2;return Y},L=function(z,Y,B){for(var V=-1,K=B;++V<6;)K+=Y*z[V],z[V]=K%1e7,K=b(K/1e7)},F=function(z,Y){for(var B=6,V=0;--B>=0;)V+=z[B],z[B]=b(V/Y),V=V%Y*1e7},j=function(z){for(var Y=6,B="";--Y>=0;)if(B!==""||Y===0||z[Y]!==0){var V=A(z[Y]);B=B===""?V:B+R("0",7-V.length)+V}return B},U=T(function(){return C(8e-5,3)!=="0.000"||C(.9,0)!=="1"||C(1.255,2)!=="1.25"||C(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!T(function(){C({})});u({target:"Number",proto:!0,forced:U},{toFixed:function(Y){var B=p(this),V=h(Y),K=[0,0,0,0,0,0],J="",Z="0",_,nt,rt,q;if(V<0||V>20)throw new $("Incorrect fraction digits");if(B!==B)return"NaN";if(B<=-1e21||B>=1e21)return A(B);if(B<0&&(J="-",B=-B),B>1e-21)if(_=D(B*w(2,69,1))-69,nt=_<0?B*w(2,-_,1):B/w(2,_,1),nt*=4503599627370496,_=52-_,_>0){for(L(K,0,nt),rt=V;rt>=7;)L(K,1e7,0),rt-=7;for(L(K,w(10,rt,1),0),rt=_-1;rt>=23;)F(K,8388608),rt-=23;F(K,1<<rt),L(K,1,1),F(K,2),Z=j(K)}else L(K,0,nt),L(K,1<<-_,0),Z=j(K)+R("0",V);return V>0?(q=Z.length,Z=J+(q<=V?"0."+R("0",V-q)+Z:O(Z,0,q-V)+"."+O(Z,q-V))):Z=J+Z,Z}})},function(x,E,r){var u=r(3),d=r(14),h=r(7),p=r(285),y=d(1 .toPrecision),T=h(function(){return y(1,void 0)!=="1"})||!h(function(){y({})});u({target:"Number",proto:!0,forced:T},{toPrecision:function(A){return A===void 0?y(p(this)):y(p(this),A)}})},function(x,E,r){var u=r(3),d=r(305);u({target:"Object",stat:!0,arity:2,forced:Object.assign!==d},{assign:d})},function(x,E,r){var u=r(6),d=r(14),h=r(8),p=r(7),y=r(73),T=r(66),$=r(10),A=r(39),b=r(13),R=Object.assign,O=Object.defineProperty,C=d([].concat);x.exports=!R||p(function(){if(u&&R({b:1},R(O({},"a",{enumerable:!0,get:function(){O(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var w={},D={},L=Symbol("assign detection"),F="abcdefghijklmnopqrst";return w[L]=7,F.split("").forEach(function(j){D[j]=j}),R({},w)[L]!==7||y(R({},D)).join("")!==F})?function(D,L){for(var F=A(D),j=arguments.length,U=1,z=T.f,Y=$.f;j>U;)for(var B=b(arguments[U++]),V=z?C(y(B),z(B)):y(B),K=V.length,J=0,Z;K>J;)Z=V[J++],(!u||h(Y,B,Z))&&(F[Z]=B[Z]);return F}:R},function(x,E,r){var u=r(3),d=r(6),h=r(71);u({target:"Object",stat:!0,sham:!d},{create:h})},function(x,E,r){var u=r(3),d=r(6),h=r(308),p=r(30),y=r(39),T=r(44);d&&u({target:"Object",proto:!0,forced:h},{__defineGetter__:function(A,b){T.f(y(this),A,{get:p(b),enumerable:!0,configurable:!0})}})},function(x,E,r){var u=r(36),d=r(4),h=r(7),p=r(191);x.exports=u||!h(function(){if(!(p&&p<535)){var y=Math.random();__defineSetter__.call(null,y,function(){}),delete d[y]}})},function(x,E,r){var u=r(3),d=r(6),h=r(72).f;u({target:"Object",stat:!0,forced:Object.defineProperties!==h,sham:!d},{defineProperties:h})},function(x,E,r){var u=r(3),d=r(6),h=r(44).f;u({target:"Object",stat:!0,forced:Object.defineProperty!==h,sham:!d},{defineProperty:h})},function(x,E,r){var u=r(3),d=r(6),h=r(308),p=r(30),y=r(39),T=r(44);d&&u({target:"Object",proto:!0,forced:h},{__defineSetter__:function(A,b){T.f(y(this),A,{set:p(b),enumerable:!0,configurable:!0})}})},function(x,E,r){var u=r(3),d=r(313).entries;u({target:"Object",stat:!0},{entries:function(p){return d(p)}})},function(x,E,r){var u=r(6),d=r(7),h=r(14),p=r(128),y=r(73),T=r(12),$=r(10).f,A=h($),b=h([].push),R=u&&d(function(){var C=Object.create(null);return C[2]=2,!A(C,2)}),O=function(C){return function(w){for(var D=T(w),L=y(D),F=R&&p(D)===null,j=L.length,U=0,z=[],Y;j>U;)Y=L[U++],(!u||(F?Y in D:A(D,Y)))&&b(z,C?[Y,D[Y]]:D[Y]);return z}};x.exports={entries:O(!0),values:O(!1)}},function(x,E,r){var u=r(3),d=r(259),h=r(7),p=r(20),y=r(256).onFreeze,T=Object.freeze,$=h(function(){T(1)});u({target:"Object",stat:!0,forced:$,sham:!d},{freeze:function(b){return T&&p(b)?T(y(b)):b}})},function(x,E,r){var u=r(3),d=r(130),h=r(141);u({target:"Object",stat:!0},{fromEntries:function(y){var T={};return d(y,function($,A){h(T,$,A)},{AS_ENTRIES:!0}),T}})},function(x,E,r){var u=r(3),d=r(7),h=r(12),p=r(5).f,y=r(6),T=!y||d(function(){p(1)});u({target:"Object",stat:!0,forced:T,sham:!y},{getOwnPropertyDescriptor:function(A,b){return p(h(A),b)}})},function(x,E,r){var u=r(3),d=r(6),h=r(56),p=r(12),y=r(5),T=r(141);u({target:"Object",stat:!0,sham:!d},{getOwnPropertyDescriptors:function(A){for(var b=p(A),R=y.f,O=h(b),C={},w=0,D,L;O.length>w;)L=R(b,D=O[w++]),L!==void 0&&T(C,D,L);return C}})},function(x,E,r){var u=r(3),d=r(7),h=r(75).f,p=d(function(){return!Object.getOwnPropertyNames(1)});u({target:"Object",stat:!0,forced:p},{getOwnPropertyNames:h})},function(x,E,r){var u=r(3),d=r(7),h=r(39),p=r(128),y=r(129),T=d(function(){p(1)});u({target:"Object",stat:!0,forced:T,sham:!y},{getPrototypeOf:function(A){return p(h(A))}})},function(x,E,r){var u=r(3),d=r(23),h=r(14),p=r(30),y=r(16),T=r(18),$=r(130),A=r(7),b=Object.groupBy,R=d("Object","create"),O=h([].push),C=!b||A(function(){return b("ab",function(w){return w}).a.length!==1});u({target:"Object",stat:!0,forced:C},{groupBy:function(D,L){y(D),p(L);var F=R(null),j=0;return $(D,function(U){var z=T(L(U,j++));z in F?O(F[z],U):F[z]=[U]}),F}})},function(x,E,r){var u=r(3),d=r(38);u({target:"Object",stat:!0},{hasOwn:d})},function(x,E,r){var u=r(3),d=r(323);u({target:"Object",stat:!0},{is:d})},function(x){x.exports=Object.is||function(r,u){return r===u?r!==0||1/r===1/u:r!==r&&u!==u}},function(x,E,r){var u=r(3),d=r(257);u({target:"Object",stat:!0,forced:Object.isExtensible!==d},{isExtensible:d})},function(x,E,r){var u=r(3),d=r(7),h=r(20),p=r(15),y=r(258),T=Object.isFrozen,$=y||d(function(){T(1)});u({target:"Object",stat:!0,forced:$},{isFrozen:function(b){return!h(b)||y&&p(b)==="ArrayBuffer"?!0:T?T(b):!1}})},function(x,E,r){var u=r(3),d=r(7),h=r(20),p=r(15),y=r(258),T=Object.isSealed,$=y||d(function(){T(1)});u({target:"Object",stat:!0,forced:$},{isSealed:function(b){return!h(b)||y&&p(b)==="ArrayBuffer"?!0:T?T(b):!1}})},function(x,E,r){var u=r(3),d=r(39),h=r(73),p=r(7),y=p(function(){h(1)});u({target:"Object",stat:!0,forced:y},{keys:function($){return h(d($))}})},function(x,E,r){var u=r(3),d=r(6),h=r(308),p=r(39),y=r(18),T=r(128),$=r(5).f;d&&u({target:"Object",proto:!0,forced:h},{__lookupGetter__:function(b){var R=p(this),O=y(b),C;do if(C=$(R,O))return C.get;while(R=T(R))}})},function(x,E,r){var u=r(3),d=r(6),h=r(308),p=r(39),y=r(18),T=r(128),$=r(5).f;d&&u({target:"Object",proto:!0,forced:h},{__lookupSetter__:function(b){var R=p(this),O=y(b),C;do if(C=$(R,O))return C.set;while(R=T(R))}})},function(x,E,r){var u=r(3),d=r(20),h=r(256).onFreeze,p=r(259),y=r(7),T=Object.preventExtensions,$=y(function(){T(1)});u({target:"Object",stat:!0,forced:$,sham:!p},{preventExtensions:function(b){return T&&d(b)?T(h(b)):b}})},function(x,E,r){var u=r(6),d=r(77),h=r(20),p=r(116),y=r(39),T=r(16),$=Object.getPrototypeOf,A=Object.setPrototypeOf,b=Object.prototype,R="__proto__";if(u&&$&&A&&!(R in b))try{d(b,R,{configurable:!0,get:function(){return $(y(this))},set:function(C){var w=T(this);p(C)&&h(w)&&A(w,C)}})}catch(O){}},function(x,E,r){var u=r(3),d=r(20),h=r(256).onFreeze,p=r(259),y=r(7),T=Object.seal,$=y(function(){T(1)});u({target:"Object",stat:!0,forced:$,sham:!p},{seal:function(b){return T&&d(b)?T(h(b)):b}})},function(x,E,r){var u=r(3),d=r(113);u({target:"Object",stat:!0},{setPrototypeOf:d})},function(x,E,r){var u=r(70),d=r(47),h=r(335);u||d(Object.prototype,"toString",h,{unsafe:!0})},function(x,E,r){var u=r(70),d=r(69);x.exports=u?{}.toString:function(){return"[object "+d(this)+"]"}},function(x,E,r){var u=r(3),d=r(313).values;u({target:"Object",stat:!0},{values:function(p){return d(p)}})},function(x,E,r){var u=r(3),d=r(298);u({global:!0,forced:parseFloat!==d},{parseFloat:d})},function(x,E,r){var u=r(3),d=r(300);u({global:!0,forced:parseInt!==d},{parseInt:d})},function(x,E,r){r(340),r(354),r(356),r(357),r(358),r(359)},function(x,E,r){var u=r(3),d=r(36),h=r(182),p=r(4),y=r(8),T=r(47),$=r(113),A=r(82),b=r(193),R=r(30),O=r(21),C=r(20),w=r(210),D=r(219),L=r(341).set,F=r(344),j=r(349),U=r(350),z=r(346),Y=r(51),B=r(351),V=r(352),K=r(353),J="Promise",Z=V.CONSTRUCTOR,_=V.REJECTION_EVENT,nt=V.SUBCLASSING,rt=Y.getterFor(J),q=Y.set,tt=B&&B.prototype,et=B,lt=tt,vt=p.TypeError,ft=p.document,bt=p.process,yt=K.f,Ft=yt,Lt=!!(ft&&ft.createEvent&&p.dispatchEvent),jt="unhandledrejection",Kt="rejectionhandled",Jt=0,ge=1,le=2,ee=1,Mt=2,zt,te,ae,re,oe=function($t){var kt;return C($t)&&O(kt=$t.then)?kt:!1},Re=function($t,kt){var Qt=kt.value,Vt=kt.state===ge,Ut=Vt?$t.ok:$t.fail,we=$t.resolve,Ye=$t.reject,dt=$t.domain,Ot,Pt,ot;try{Ut?(Vt||(kt.rejection===Mt&&me(kt),kt.rejection=ee),Ut===!0?Ot=Qt:(dt&&dt.enter(),Ot=Ut(Qt),dt&&(dt.exit(),ot=!0)),Ot===$t.promise?Ye(new vt("Promise-chain cycle")):(Pt=oe(Ot))?y(Pt,Ot,we,Ye):we(Ot)):Ye(Qt)}catch(gt){dt&&!ot&&dt.exit(),Ye(gt)}},Ce=function($t,kt){$t.notified||($t.notified=!0,F(function(){for(var Qt=$t.reactions,Vt;Vt=Qt.get();)Re(Vt,$t);$t.notified=!1,kt&&!$t.rejection&&se($t)}))},xe=function($t,kt,Qt){var Vt,Ut;Lt?(Vt=ft.createEvent("Event"),Vt.promise=kt,Vt.reason=Qt,Vt.initEvent($t,!1,!0),p.dispatchEvent(Vt)):Vt={promise:kt,reason:Qt},!_&&(Ut=p["on"+$t])?Ut(Vt):$t===jt&&j("Unhandled promise rejection",Qt)},se=function($t){y(L,p,function(){var kt=$t.facade,Qt=$t.value,Vt=Ae($t),Ut;if(Vt&&(Ut=U(function(){h?bt.emit("unhandledRejection",Qt,kt):xe(jt,kt,Qt)}),$t.rejection=h||Ae($t)?Mt:ee,Ut.error))throw Ut.value})},Ae=function($t){return $t.rejection!==ee&&!$t.parent},me=function($t){y(L,p,function(){var kt=$t.facade;h?bt.emit("rejectionHandled",kt):xe(Kt,kt,$t.value)})},ce=function($t,kt,Qt){return function(Vt){$t(kt,Vt,Qt)}},Et=function($t,kt,Qt){$t.done||($t.done=!0,Qt&&($t=Qt),$t.value=kt,$t.state=le,Ce($t,!0))},Bt=function($t,kt,Qt){if(!$t.done){$t.done=!0,Qt&&($t=Qt);try{if($t.facade===kt)throw new vt("Promise can't be resolved itself");var Vt=oe(kt);Vt?F(function(){var Ut={done:!1};try{y(Vt,kt,ce(Bt,Ut,$t),ce(Et,Ut,$t))}catch(we){Et(Ut,we,$t)}}):($t.value=kt,$t.state=ge,Ce($t,!1))}catch(Ut){Et({done:!1},Ut,$t)}}};if(Z&&(et=function(kt){w(this,lt),R(kt),y(zt,this);var Qt=rt(this);try{kt(ce(Bt,Qt),ce(Et,Qt))}catch(Vt){Et(Qt,Vt)}},lt=et.prototype,zt=function(kt){q(this,{type:J,done:!1,notified:!1,parent:!1,reactions:new z,rejection:!1,state:Jt,value:void 0})},zt.prototype=T(lt,"then",function(kt,Qt){var Vt=rt(this),Ut=yt(D(this,et));return Vt.parent=!0,Ut.ok=O(kt)?kt:!0,Ut.fail=O(Qt)&&Qt,Ut.domain=h?bt.domain:void 0,Vt.state===Jt?Vt.reactions.add(Ut):F(function(){Re(Ut,Vt)}),Ut.promise}),te=function(){var $t=new zt,kt=rt($t);this.promise=$t,this.resolve=ce(Bt,kt),this.reject=ce(Et,kt)},K.f=yt=function($t){return $t===et||$t===ae?new te($t):Ft($t)},!d&&O(B)&&tt!==Object.prototype)){re=tt.then,nt||T(tt,"then",function(kt,Qt){var Vt=this;return new et(function(Ut,we){y(re,Vt,Ut,we)}).then(kt,Qt)},{unsafe:!0});try{delete tt.constructor}catch($t){}$&&$(tt,lt)}u({global:!0,constructor:!0,wrap:!0,forced:Z},{Promise:et}),A(et,J,!1,!0),b(J)},function(x,E,r){var u=r(4),d=r(94),h=r(84),p=r(21),y=r(38),T=r(7),$=r(74),A=r(76),b=r(42),R=r(342),O=r(343),C=r(182),w=u.setImmediate,D=u.clearImmediate,L=u.process,F=u.Dispatch,j=u.Function,U=u.MessageChannel,z=u.String,Y=0,B={},V="onreadystatechange",K,J,Z,_;T(function(){K=u.location});var nt=function(et){if(y(B,et)){var lt=B[et];delete B[et],lt()}},rt=function(et){return function(){nt(et)}},q=function(et){nt(et.data)},tt=function(et){u.postMessage(z(et),K.protocol+"//"+K.host)};(!w||!D)&&(w=function(lt){R(arguments.length,1);var vt=p(lt)?lt:j(lt),ft=A(arguments,1);return B[++Y]=function(){d(vt,void 0,ft)},J(Y),Y},D=function(lt){delete B[lt]},C?J=function(et){L.nextTick(rt(et))}:F&&F.now?J=function(et){F.now(rt(et))}:U&&!O?(Z=new U,_=Z.port2,Z.port1.onmessage=q,J=h(_.postMessage,_)):u.addEventListener&&p(u.postMessage)&&!u.importScripts&&K&&K.protocol!=="file:"&&!T(tt)?(J=tt,u.addEventListener("message",q,!1)):V in b("script")?J=function(et){$.appendChild(b("script"))[V]=function(){$.removeChild(this),nt(et)}}:J=function(et){setTimeout(rt(et),0)}),x.exports={set:w,clear:D}},function(x){var E=TypeError;x.exports=function(r,u){if(r<u)throw new E("Not enough arguments");return r}},function(x,E,r){var u=r(28);x.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(u)},function(x,E,r){var u=r(4),d=r(345),h=r(84),p=r(341).set,y=r(346),T=r(343),$=r(347),A=r(348),b=r(182),R=u.MutationObserver||u.WebKitMutationObserver,O=u.document,C=u.process,w=u.Promise,D=d("queueMicrotask"),L,F,j,U,z;if(!D){var Y=new y,B=function(){var V,K;for(b&&(V=C.domain)&&V.exit();K=Y.get();)try{K()}catch(J){throw Y.head&&L(),J}V&&V.enter()};!T&&!b&&!A&&R&&O?(F=!0,j=O.createTextNode(""),new R(B).observe(j,{characterData:!0}),L=function(){j.data=F=!F}):!$&&w&&w.resolve?(U=w.resolve(void 0),U.constructor=w,z=h(U.then,U),L=function(){z(B)}):b?L=function(){C.nextTick(B)}:(p=h(p,u),L=function(){p(B)}),D=function(V){Y.head||L(),Y.add(V)}}x.exports=D},function(x,E,r){var u=r(4),d=r(6),h=Object.getOwnPropertyDescriptor;x.exports=function(p){if(!d)return u[p];var y=h(u,p);return y&&y.value}},function(x){var E=function(){this.head=null,this.tail=null};E.prototype={add:function(r){var u={item:r,next:null},d=this.tail;d?d.next=u:this.head=u,this.tail=u},get:function(){var r=this.head;if(r){var u=this.head=r.next;return u===null&&(this.tail=null),r.item}}},x.exports=E},function(x,E,r){var u=r(28);x.exports=/ipad|iphone|ipod/i.test(u)&&typeof Pebble!="undefined"},function(x,E,r){var u=r(28);x.exports=/web0s(?!.*chrome)/i.test(u)},function(x){x.exports=function(E,r){try{arguments.length===1?console.error(E):console.error(E,r)}catch(u){}}},function(x){x.exports=function(E){try{return{error:!1,value:E()}}catch(r){return{error:!0,value:r}}}},function(x,E,r){var u=r(4);x.exports=u.Promise},function(x,E,r){var u=r(4),d=r(351),h=r(21),p=r(67),y=r(50),T=r(33),$=r(231),A=r(232),b=r(36),R=r(27),O=d&&d.prototype,C=T("species"),w=!1,D=h(u.PromiseRejectionEvent),L=p("Promise",function(){var F=y(d),j=F!==String(d);if(!j&&R===66||b&&!(O.catch&&O.finally))return!0;if(!R||R<51||!/native code/.test(F)){var U=new d(function(B){B(1)}),z=function(B){B(function(){},function(){})},Y=U.constructor={};if(Y[C]=z,w=U.then(function(){})instanceof z,!w)return!0}return!j&&($||A)&&!D});x.exports={CONSTRUCTOR:L,REJECTION_EVENT:D,SUBCLASSING:w}},function(x,E,r){var u=r(30),d=TypeError,h=function(p){var y,T;this.promise=new p(function($,A){if(y!==void 0||T!==void 0)throw new d("Bad Promise constructor");y=$,T=A}),this.resolve=u(y),this.reject=u(T)};x.exports.f=function(p){return new h(p)}},function(x,E,r){var u=r(3),d=r(8),h=r(30),p=r(353),y=r(350),T=r(130),$=r(355);u({target:"Promise",stat:!0,forced:$},{all:function(b){var R=this,O=p.f(R),C=O.resolve,w=O.reject,D=y(function(){var L=h(R.resolve),F=[],j=0,U=1;T(b,function(z){var Y=j++,B=!1;U++,d(L,R,z).then(function(V){B||(B=!0,F[Y]=V,--U||C(F))},w)}),--U||C(F)});return D.error&&w(D.value),O.promise}})},function(x,E,r){var u=r(351),d=r(164),h=r(352).CONSTRUCTOR;x.exports=h||!d(function(p){u.all(p).then(void 0,function(){})})},function(x,E,r){var u=r(3),d=r(36),h=r(352).CONSTRUCTOR,p=r(351),y=r(23),T=r(21),$=r(47),A=p&&p.prototype;if(u({target:"Promise",proto:!0,forced:h,real:!0},{catch:function(R){return this.then(void 0,R)}}),!d&&T(p)){var b=y("Promise").prototype.catch;A.catch!==b&&$(A,"catch",b,{unsafe:!0})}},function(x,E,r){var u=r(3),d=r(8),h=r(30),p=r(353),y=r(350),T=r(130),$=r(355);u({target:"Promise",stat:!0,forced:$},{race:function(b){var R=this,O=p.f(R),C=O.reject,w=y(function(){var D=h(R.resolve);T(b,function(L){d(D,R,L).then(O.resolve,C)})});return w.error&&C(w.value),O.promise}})},function(x,E,r){var u=r(3),d=r(353),h=r(352).CONSTRUCTOR;u({target:"Promise",stat:!0,forced:h},{reject:function(y){var T=d.f(this),$=T.reject;return $(y),T.promise}})},function(x,E,r){var u=r(3),d=r(23),h=r(36),p=r(351),y=r(352).CONSTRUCTOR,T=r(360),$=d("Promise"),A=h&&!y;u({target:"Promise",stat:!0,forced:h||y},{resolve:function(R){return T(A&&this===$?p:this,R)}})},function(x,E,r){var u=r(46),d=r(20),h=r(353);x.exports=function(p,y){if(u(p),d(y)&&y.constructor===p)return y;var T=h.f(p),$=T.resolve;return $(y),T.promise}},function(x,E,r){var u=r(3),d=r(8),h=r(30),p=r(353),y=r(350),T=r(130),$=r(355);u({target:"Promise",stat:!0,forced:$},{allSettled:function(b){var R=this,O=p.f(R),C=O.resolve,w=O.reject,D=y(function(){var L=h(R.resolve),F=[],j=0,U=1;T(b,function(z){var Y=j++,B=!1;U++,d(L,R,z).then(function(V){B||(B=!0,F[Y]={status:"fulfilled",value:V},--U||C(F))},function(V){B||(B=!0,F[Y]={status:"rejected",reason:V},--U||C(F))})}),--U||C(F)});return D.error&&w(D.value),O.promise}})},function(x,E,r){var u=r(3),d=r(8),h=r(30),p=r(23),y=r(353),T=r(350),$=r(130),A=r(355),b="No one promise resolved";u({target:"Promise",stat:!0,forced:A},{any:function(O){var C=this,w=p("AggregateError"),D=y.f(C),L=D.resolve,F=D.reject,j=T(function(){var U=h(C.resolve),z=[],Y=0,B=1,V=!1;$(O,function(K){var J=Y++,Z=!1;B++,d(U,C,K).then(function(_){Z||V||(V=!0,L(_))},function(_){Z||V||(Z=!0,z[J]=_,--B||F(new w(z,b)))})}),--B||F(new w(z,b))});return j.error&&F(j.value),D.promise}})},function(x,E,r){var u=r(3),d=r(36),h=r(351),p=r(7),y=r(23),T=r(21),$=r(219),A=r(360),b=r(47),R=h&&h.prototype,O=!!h&&p(function(){R.finally.call({then:function(){}},function(){})});if(u({target:"Promise",proto:!0,real:!0,forced:O},{finally:function(w){var D=$(this,y("Promise")),L=T(w);return this.then(L?function(F){return A(D,w()).then(function(){return F})}:w,L?function(F){return A(D,w()).then(function(){throw F})}:w)}}),!d&&T(h)){var C=y("Promise").prototype.finally;R.finally!==C&&b(R,"finally",C,{unsafe:!0})}},function(x,E,r){var u=r(3),d=r(353);u({target:"Promise",stat:!0},{withResolvers:function(){var p=d.f(this);return{promise:p.promise,resolve:p.resolve,reject:p.reject}}})},function(x,E,r){var u=r(3),d=r(94),h=r(30),p=r(46),y=r(7),T=!y(function(){Reflect.apply(function(){})});u({target:"Reflect",stat:!0,forced:T},{apply:function(A,b,R){return d(h(A),b,p(R))}})},function(x,E,r){var u=r(3),d=r(23),h=r(94),p=r(248),y=r(220),T=r(46),$=r(20),A=r(71),b=r(7),R=d("Reflect","construct"),O=Object.prototype,C=[].push,w=b(function(){function F(){}return!(R(function(){},[],F)instanceof F)}),D=!b(function(){R(function(){})}),L=w||D;u({target:"Reflect",stat:!0,forced:L,sham:L},{construct:function(j,U){y(j),T(U);var z=arguments.length<3?j:y(arguments[2]);if(D&&!w)return R(j,U,z);if(j===z){switch(U.length){case 0:return new j;case 1:return new j(U[0]);case 2:return new j(U[0],U[1]);case 3:return new j(U[0],U[1],U[2]);case 4:return new j(U[0],U[1],U[2],U[3])}var Y=[null];return h(C,Y,U),new(h(p,j,Y))}var B=z.prototype,V=A($(B)?B:O),K=h(j,V,U);return $(K)?K:V}})},function(x,E,r){var u=r(3),d=r(6),h=r(46),p=r(18),y=r(44),T=r(7),$=T(function(){Reflect.defineProperty(y.f({},1,{value:1}),1,{value:2})});u({target:"Reflect",stat:!0,forced:$,sham:!d},{defineProperty:function(b,R,O){h(b);var C=p(R);h(O);try{return y.f(b,C,O),!0}catch(w){return!1}}})},function(x,E,r){var u=r(3),d=r(46),h=r(5).f;u({target:"Reflect",stat:!0},{deleteProperty:function(y,T){var $=h(d(y),T);return $&&!$.configurable?!1:delete y[T]}})},function(x,E,r){var u=r(3),d=r(8),h=r(20),p=r(46),y=r(370),T=r(5),$=r(128);function A(b,R){var O=arguments.length<3?b:arguments[2],C,w;if(p(b)===O)return b[R];if(C=T.f(b,R),C)return y(C)?C.value:C.get===void 0?void 0:d(C.get,O);if(h(w=$(b)))return A(w,R,O)}u({target:"Reflect",stat:!0},{get:A})},function(x,E,r){var u=r(38);x.exports=function(d){return d!==void 0&&(u(d,"value")||u(d,"writable"))}},function(x,E,r){var u=r(3),d=r(6),h=r(46),p=r(5);u({target:"Reflect",stat:!0,sham:!d},{getOwnPropertyDescriptor:function(T,$){return p.f(h(T),$)}})},function(x,E,r){var u=r(3),d=r(46),h=r(128),p=r(129);u({target:"Reflect",stat:!0,sham:!p},{getPrototypeOf:function(T){return h(d(T))}})},function(x,E,r){var u=r(3);u({target:"Reflect",stat:!0},{has:function(h,p){return p in h}})},function(x,E,r){var u=r(3),d=r(46),h=r(257);u({target:"Reflect",stat:!0},{isExtensible:function(y){return d(y),h(y)}})},function(x,E,r){var u=r(3),d=r(56);u({target:"Reflect",stat:!0},{ownKeys:d})},function(x,E,r){var u=r(3),d=r(23),h=r(46),p=r(259);u({target:"Reflect",stat:!0,sham:!p},{preventExtensions:function(T){h(T);try{var $=d("Object","preventExtensions");return $&&$(T),!0}catch(A){return!1}}})},function(x,E,r){var u=r(3),d=r(8),h=r(46),p=r(20),y=r(370),T=r(7),$=r(44),A=r(5),b=r(128),R=r(11);function O(w,D,L){var F=arguments.length<4?w:arguments[3],j=A.f(h(w),D),U,z,Y;if(!j){if(p(z=b(w)))return O(z,D,L,F);j=R(0)}if(y(j)){if(j.writable===!1||!p(F))return!1;if(U=A.f(F,D)){if(U.get||U.set||U.writable===!1)return!1;U.value=L,$.f(F,D,U)}else $.f(F,D,R(0,L))}else{if(Y=j.set,Y===void 0)return!1;d(Y,F,L)}return!0}var C=T(function(){var w=function(){},D=$.f(new w,"a",{configurable:!0});return Reflect.set(w.prototype,"a",1,D)!==!1});u({target:"Reflect",stat:!0,forced:C},{set:O})},function(x,E,r){var u=r(3),d=r(46),h=r(115),p=r(113);p&&u({target:"Reflect",stat:!0},{setPrototypeOf:function(T,$){d(T),h($);try{return p(T,$),!0}catch(A){return!1}}})},function(x,E,r){var u=r(3),d=r(4),h=r(82);u({global:!0},{Reflect:{}}),h(d.Reflect,"Reflect",!0)},function(x,E,r){var u=r(6),d=r(4),h=r(14),p=r(67),y=r(118),T=r(43),$=r(71),A=r(57).f,b=r(24),R=r(381),O=r(68),C=r(382),w=r(384),D=r(117),L=r(47),F=r(7),j=r(38),U=r(51).enforce,z=r(193),Y=r(33),B=r(385),V=r(386),K=Y("match"),J=d.RegExp,Z=J.prototype,_=d.SyntaxError,nt=h(Z.exec),rt=h("".charAt),q=h("".replace),tt=h("".indexOf),et=h("".slice),lt=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,vt=/a/g,ft=/a/g,bt=new J(vt)!==vt,yt=w.MISSED_STICKY,Ft=w.UNSUPPORTED_Y,Lt=u&&(!bt||yt||B||V||F(function(){return ft[K]=!1,J(vt)!==vt||J(ft)===ft||String(J(vt,"i"))!=="/a/i"})),jt=function(ee){for(var Mt=ee.length,zt=0,te="",ae=!1,re;zt<=Mt;zt++){if(re=rt(ee,zt),re==="\\"){te+=re+rt(ee,++zt);continue}!ae&&re==="."?te+="[\\s\\S]":(re==="["?ae=!0:re==="]"&&(ae=!1),te+=re)}return te},Kt=function(ee){for(var Mt=ee.length,zt=0,te="",ae=[],re=$(null),oe=!1,Re=!1,Ce=0,xe="",se;zt<=Mt;zt++){if(se=rt(ee,zt),se==="\\")se+=rt(ee,++zt);else if(se==="]")oe=!1;else if(!oe)switch(!0){case se==="[":oe=!0;break;case se==="(":nt(lt,et(ee,zt+1))&&(zt+=2,Re=!0),te+=se,Ce++;continue;case(se===">"&&Re):if(xe===""||j(re,xe))throw new _("Invalid capture group name");re[xe]=!0,ae[ae.length]=[xe,Ce],Re=!1,xe="";continue}Re?xe+=se:te+=se}return[te,ae]};if(p("RegExp",Lt)){for(var Jt=function(Mt,zt){var te=b(Z,this),ae=R(Mt),re=zt===void 0,oe=[],Re=Mt,Ce,xe,se,Ae,me,ce;if(!te&&ae&&re&&Mt.constructor===Jt)return Mt;if((ae||b(Z,Mt))&&(Mt=Mt.source,re&&(zt=C(Re))),Mt=Mt===void 0?"":O(Mt),zt=zt===void 0?"":O(zt),Re=Mt,B&&"dotAll"in vt&&(xe=!!zt&&tt(zt,"s")>-1,xe&&(zt=q(zt,/s/g,""))),Ce=zt,yt&&"sticky"in vt&&(se=!!zt&&tt(zt,"y")>-1,se&&Ft&&(zt=q(zt,/y/g,""))),V&&(Ae=Kt(Mt),Mt=Ae[0],oe=Ae[1]),me=y(J(Mt,zt),te?this:Z,Jt),(xe||se||oe.length)&&(ce=U(me),xe&&(ce.dotAll=!0,ce.raw=Jt(jt(Mt),Ce)),se&&(ce.sticky=!0),oe.length&&(ce.groups=oe)),Mt!==Re)try{T(me,"source",Re===""?"(?:)":Re)}catch(Et){}return me},ge=A(J),le=0;ge.length>le;)D(Jt,J,ge[le++]);Z.constructor=Jt,Jt.prototype=Z,L(d,"RegExp",Jt,{constructor:!0})}z("RegExp")},function(x,E,r){var u=r(20),d=r(15),h=r(33),p=h("match");x.exports=function(y){var T;return u(y)&&((T=y[p])!==void 0?!!T:d(y)==="RegExp")}},function(x,E,r){var u=r(8),d=r(38),h=r(24),p=r(383),y=RegExp.prototype;x.exports=function(T){var $=T.flags;return $===void 0&&!("flags"in y)&&!d(T,"flags")&&h(y,T)?u(p,T):$}},function(x,E,r){var u=r(46);x.exports=function(){var d=u(this),h="";return d.hasIndices&&(h+="d"),d.global&&(h+="g"),d.ignoreCase&&(h+="i"),d.multiline&&(h+="m"),d.dotAll&&(h+="s"),d.unicode&&(h+="u"),d.unicodeSets&&(h+="v"),d.sticky&&(h+="y"),h}},function(x,E,r){var u=r(7),d=r(4),h=d.RegExp,p=u(function(){var $=h("a","y");return $.lastIndex=2,$.exec("abcd")!==null}),y=p||u(function(){return!h("a","y").sticky}),T=p||u(function(){var $=h("^r","gy");return $.lastIndex=2,$.exec("str")!==null});x.exports={BROKEN_CARET:T,MISSED_STICKY:y,UNSUPPORTED_Y:p}},function(x,E,r){var u=r(7),d=r(4),h=d.RegExp;x.exports=u(function(){var p=h(".","s");return!(p.dotAll&&p.test(`
|
|
28
|
+
`)&&p.flags==="s")})},function(x,E,r){var u=r(7),d=r(4),h=d.RegExp;x.exports=u(function(){var p=h("(?<a>b)","g");return p.exec("b").groups.a!=="b"||"b".replace(p,"$<a>c")!=="bc"})},function(x,E,r){var u=r(6),d=r(385),h=r(15),p=r(77),y=r(51).get,T=RegExp.prototype,$=TypeError;u&&d&&p(T,"dotAll",{configurable:!0,get:function(){if(this!==T){if(h(this)==="RegExp")return!!y(this).dotAll;throw new $("Incompatible receiver, RegExp required")}}})},function(x,E,r){var u=r(3),d=r(389);u({target:"RegExp",proto:!0,forced:/./.exec!==d},{exec:d})},function(x,E,r){var u=r(8),d=r(14),h=r(68),p=r(383),y=r(384),T=r(34),$=r(71),A=r(51).get,b=r(385),R=r(386),O=T("native-string-replace",String.prototype.replace),C=RegExp.prototype.exec,w=C,D=d("".charAt),L=d("".indexOf),F=d("".replace),j=d("".slice),U=function(){var V=/a/,K=/b*/g;return u(C,V,"a"),u(C,K,"a"),V.lastIndex!==0||K.lastIndex!==0}(),z=y.BROKEN_CARET,Y=/()??/.exec("")[1]!==void 0,B=U||Y||z||b||R;B&&(w=function(K){var J=this,Z=A(J),_=h(K),nt=Z.raw,rt,q,tt,et,lt,vt,ft;if(nt)return nt.lastIndex=J.lastIndex,rt=u(w,nt,_),J.lastIndex=nt.lastIndex,rt;var bt=Z.groups,yt=z&&J.sticky,Ft=u(p,J),Lt=J.source,jt=0,Kt=_;if(yt&&(Ft=F(Ft,"y",""),L(Ft,"g")===-1&&(Ft+="g"),Kt=j(_,J.lastIndex),J.lastIndex>0&&(!J.multiline||J.multiline&&D(_,J.lastIndex-1)!==`
|
|
29
|
+
`)&&(Lt="(?: "+Lt+")",Kt=" "+Kt,jt++),q=new RegExp("^(?:"+Lt+")",Ft)),Y&&(q=new RegExp("^"+Lt+"$(?!\\s)",Ft)),U&&(tt=J.lastIndex),et=u(C,yt?q:J,Kt),yt?et?(et.input=j(et.input,jt),et[0]=j(et[0],jt),et.index=J.lastIndex,J.lastIndex+=et[0].length):J.lastIndex=0:U&&et&&(J.lastIndex=J.global?et.index+et[0].length:tt),Y&&et&&et.length>1&&u(O,et[0],q,function(){for(lt=1;lt<arguments.length-2;lt++)arguments[lt]===void 0&&(et[lt]=void 0)}),et&&bt)for(et.groups=vt=$(null),lt=0;lt<bt.length;lt++)ft=bt[lt],vt[ft[0]]=et[ft[1]];return et}),x.exports=w},function(x,E,r){var u=r(4),d=r(6),h=r(77),p=r(383),y=r(7),T=u.RegExp,$=T.prototype,A=d&&y(function(){var b=!0;try{T(".","d")}catch(j){b=!1}var R={},O="",C=b?"dgimsy":"gimsy",w=function(j,U){Object.defineProperty(R,j,{get:function(){return O+=U,!0}})},D={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};b&&(D.hasIndices="d");for(var L in D)w(L,D[L]);var F=Object.getOwnPropertyDescriptor($,"flags").get.call(R);return F!==C||O!==C});A&&h($,"flags",{configurable:!0,get:p})},function(x,E,r){var u=r(6),d=r(384).MISSED_STICKY,h=r(15),p=r(77),y=r(51).get,T=RegExp.prototype,$=TypeError;u&&d&&p(T,"sticky",{configurable:!0,get:function(){if(this!==T){if(h(this)==="RegExp")return!!y(this).sticky;throw new $("Incompatible receiver, RegExp required")}}})},function(x,E,r){r(388);var u=r(3),d=r(8),h=r(21),p=r(46),y=r(68),T=function(){var A=!1,b=/[ac]/;return b.exec=function(){return A=!0,/./.exec.apply(this,arguments)},b.test("abc")===!0&&A}(),$=/./.test;u({target:"RegExp",proto:!0,forced:!T},{test:function(A){var b=p(this),R=y(A),O=b.exec;if(!h(O))return d($,b,R);var C=d(O,b,R);return C===null?!1:(p(C),!0)}})},function(x,E,r){var u=r(49).PROPER,d=r(47),h=r(46),p=r(68),y=r(7),T=r(382),$="toString",A=RegExp.prototype,b=A[$],R=y(function(){return b.call({source:"a",flags:"b"})!=="/a/b"}),O=u&&b.name!==$;(R||O)&&d(A,$,function(){var w=h(this),D=p(w.source),L=p(T(w));return"/"+D+"/"+L},{unsafe:!0})},function(x,E,r){r(395)},function(x,E,r){var u=r(255),d=r(260);u("Set",function(h){return function(){return h(this,arguments.length?arguments[0]:void 0)}},d)},function(x,E,r){var u=r(3),d=r(397),h=r(406);u({target:"Set",proto:!0,real:!0,forced:!h("difference")},{difference:d})},function(x,E,r){var u=r(398),d=r(399),h=r(400),p=r(403),y=r(404),T=r(401),$=r(402),A=d.has,b=d.remove;x.exports=function(O){var C=u(this),w=y(O),D=h(C);return p(C)<=w.size?T(C,function(L){w.includes(L)&&b(D,L)}):$(w.getIterator(),function(L){A(C,L)&&b(D,L)}),D}},function(x,E,r){var u=r(399).has;x.exports=function(d){return u(d),d}},function(x,E,r){var u=r(14),d=Set.prototype;x.exports={Set,add:u(d.add),has:u(d.has),remove:u(d.delete),proto:d}},function(x,E,r){var u=r(399),d=r(401),h=u.Set,p=u.add;x.exports=function(y){var T=new h;return d(y,function($){p(T,$)}),T}},function(x,E,r){var u=r(14),d=r(402),h=r(399),p=h.Set,y=h.proto,T=u(y.forEach),$=u(y.keys),A=$(new p).next;x.exports=function(b,R,O){return O?d({iterator:$(b),next:A},R):T(b,R)}},function(x,E,r){var u=r(8);x.exports=function(d,h,p){for(var y=p?d:d.iterator,T=d.next,$,A;!($=u(T,y)).done;)if(A=h($.value),A!==void 0)return A}},function(x,E,r){var u=r(114),d=r(399);x.exports=u(d.proto,"size","get")||function(h){return h.size}},function(x,E,r){var u=r(30),d=r(46),h=r(8),p=r(61),y=r(405),T="Invalid size",$=RangeError,A=TypeError,b=Math.max,R=function(O,C){this.set=O,this.size=b(C,0),this.has=u(O.has),this.keys=u(O.keys)};R.prototype={getIterator:function(){return y(d(h(this.keys,this.set)))},includes:function(O){return h(this.has,this.set,O)}},x.exports=function(O){d(O);var C=+O.size;if(C!==C)throw new A(T);var w=p(C);if(w<0)throw new $(T);return new R(O,w)}},function(x){x.exports=function(E){return{iterator:E,next:E.next,done:!1}}},function(x,E,r){var u=r(23),d=function(h){return{size:h,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};x.exports=function(h){var p=u("Set");try{new p()[h](d(0));try{return new p()[h](d(-1)),!1}catch(y){return!0}}catch(y){return!1}}},function(x,E,r){var u=r(3),d=r(7),h=r(408),p=r(406),y=!p("intersection")||d(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});u({target:"Set",proto:!0,real:!0,forced:y},{intersection:h})},function(x,E,r){var u=r(398),d=r(399),h=r(403),p=r(404),y=r(401),T=r(402),$=d.Set,A=d.add,b=d.has;x.exports=function(O){var C=u(this),w=p(O),D=new $;return h(C)>w.size?T(w.getIterator(),function(L){b(C,L)&&A(D,L)}):y(C,function(L){w.includes(L)&&A(D,L)}),D}},function(x,E,r){var u=r(3),d=r(410),h=r(406);u({target:"Set",proto:!0,real:!0,forced:!h("isDisjointFrom")},{isDisjointFrom:d})},function(x,E,r){var u=r(398),d=r(399).has,h=r(403),p=r(404),y=r(401),T=r(402),$=r(135);x.exports=function(b){var R=u(this),O=p(b);if(h(R)<=O.size)return y(R,function(w){if(O.includes(w))return!1},!0)!==!1;var C=O.getIterator();return T(C,function(w){if(d(R,w))return $(C,"normal",!1)})!==!1}},function(x,E,r){var u=r(3),d=r(412),h=r(406);u({target:"Set",proto:!0,real:!0,forced:!h("isSubsetOf")},{isSubsetOf:d})},function(x,E,r){var u=r(398),d=r(403),h=r(401),p=r(404);x.exports=function(T){var $=u(this),A=p(T);return d($)>A.size?!1:h($,function(b){if(!A.includes(b))return!1},!0)!==!1}},function(x,E,r){var u=r(3),d=r(414),h=r(406);u({target:"Set",proto:!0,real:!0,forced:!h("isSupersetOf")},{isSupersetOf:d})},function(x,E,r){var u=r(398),d=r(399).has,h=r(403),p=r(404),y=r(402),T=r(135);x.exports=function(A){var b=u(this),R=p(A);if(h(b)<R.size)return!1;var O=R.getIterator();return y(O,function(C){if(!d(b,C))return T(O,"normal",!1)})!==!1}},function(x,E,r){var u=r(3),d=r(416),h=r(406);u({target:"Set",proto:!0,real:!0,forced:!h("symmetricDifference")},{symmetricDifference:d})},function(x,E,r){var u=r(398),d=r(399),h=r(400),p=r(404),y=r(402),T=d.add,$=d.has,A=d.remove;x.exports=function(R){var O=u(this),C=p(R).getIterator(),w=h(O);return y(C,function(D){$(O,D)?A(w,D):T(w,D)}),w}},function(x,E,r){var u=r(3),d=r(418),h=r(406);u({target:"Set",proto:!0,real:!0,forced:!h("union")},{union:d})},function(x,E,r){var u=r(398),d=r(399).add,h=r(400),p=r(404),y=r(402);x.exports=function($){var A=u(this),b=p($).getIterator(),R=h(A);return y(b,function(O){d(R,O)}),R}},function(x,E,r){var u=r(3),d=r(14),h=r(16),p=r(61),y=r(68),T=r(7),$=d("".charAt),A=T(function(){return"\u{20BB7}".at(-2)!=="\uD842"});u({target:"String",proto:!0,forced:A},{at:function(R){var O=y(h(this)),C=O.length,w=p(R),D=w>=0?w:C+w;return D<0||D>=C?void 0:$(O,D)}})},function(x,E,r){var u=r(3),d=r(421).codeAt;u({target:"String",proto:!0},{codePointAt:function(p){return d(this,p)}})},function(x,E,r){var u=r(14),d=r(61),h=r(68),p=r(16),y=u("".charAt),T=u("".charCodeAt),$=u("".slice),A=function(b){return function(R,O){var C=h(p(R)),w=d(O),D=C.length,L,F;return w<0||w>=D?b?"":void 0:(L=T(C,w),L<55296||L>56319||w+1===D||(F=T(C,w+1))<56320||F>57343?b?y(C,w):L:b?$(C,w,w+2):(L-55296<<10)+(F-56320)+65536)}};x.exports={codeAt:A(!1),charAt:A(!0)}},function(x,E,r){var u=r(3),d=r(85),h=r(5).f,p=r(64),y=r(68),T=r(423),$=r(16),A=r(424),b=r(36),R=d("".slice),O=Math.min,C=A("endsWith"),w=!b&&!C&&!!function(){var D=h(String.prototype,"endsWith");return D&&!D.writable}();u({target:"String",proto:!0,forced:!w&&!C},{endsWith:function(L){var F=y($(this));T(L);var j=arguments.length>1?arguments[1]:void 0,U=F.length,z=j===void 0?U:O(p(j),U),Y=y(L);return R(F,z-Y.length,z)===Y}})},function(x,E,r){var u=r(381),d=TypeError;x.exports=function(h){if(u(h))throw new d("The method doesn't accept regular expressions");return h}},function(x,E,r){var u=r(33),d=u("match");x.exports=function(h){var p=/./;try{"/./"[h](p)}catch(y){try{return p[d]=!1,"/./"[h](p)}catch(T){}}return!1}},function(x,E,r){var u=r(3),d=r(14),h=r(60),p=RangeError,y=String.fromCharCode,T=String.fromCodePoint,$=d([].join),A=!!T&&T.length!==1;u({target:"String",stat:!0,arity:1,forced:A},{fromCodePoint:function(R){for(var O=[],C=arguments.length,w=0,D;C>w;){if(D=+arguments[w++],h(D,1114111)!==D)throw new p(D+" is not a valid code point");O[w]=D<65536?y(D):y(((D-=65536)>>10)+55296,D%1024+56320)}return $(O,"")}})},function(x,E,r){var u=r(3),d=r(14),h=r(423),p=r(16),y=r(68),T=r(424),$=d("".indexOf);u({target:"String",proto:!0,forced:!T("includes")},{includes:function(b){return!!~$(y(p(this)),y(h(b)),arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var u=r(3),d=r(14),h=r(16),p=r(68),y=d("".charCodeAt);u({target:"String",proto:!0},{isWellFormed:function(){for(var $=p(h(this)),A=$.length,b=0;b<A;b++){var R=y($,b);if((R&63488)===55296&&(R>=56320||++b>=A||(y($,b)&64512)!==56320))return!1}return!0}})},function(x,E,r){var u=r(421).charAt,d=r(68),h=r(51),p=r(169),y=r(172),T="String Iterator",$=h.set,A=h.getterFor(T);p(String,"String",function(b){$(this,{type:T,string:d(b),index:0})},function(){var R=A(this),O=R.string,C=R.index,w;return C>=O.length?y(void 0,!0):(w=u(O,C),R.index+=w.length,y(w,!1))})},function(x,E,r){var u=r(8),d=r(430),h=r(46),p=r(17),y=r(64),T=r(68),$=r(16),A=r(29),b=r(431),R=r(432);d("match",function(O,C,w){return[function(L){var F=$(this),j=p(L)?void 0:A(L,O);return j?u(j,L,F):new RegExp(L)[O](T(F))},function(D){var L=h(this),F=T(D),j=w(C,L,F);if(j.done)return j.value;if(!L.global)return R(L,F);var U=L.unicode;L.lastIndex=0;for(var z=[],Y=0,B;(B=R(L,F))!==null;){var V=T(B[0]);z[Y]=V,V===""&&(L.lastIndex=b(F,y(L.lastIndex),U)),Y++}return Y===0?null:z}]})},function(x,E,r){r(388);var u=r(8),d=r(47),h=r(389),p=r(7),y=r(33),T=r(43),$=y("species"),A=RegExp.prototype;x.exports=function(b,R,O,C){var w=y(b),D=!p(function(){var U={};return U[w]=function(){return 7},""[b](U)!==7}),L=D&&!p(function(){var U=!1,z=/a/;return b==="split"&&(z={},z.constructor={},z.constructor[$]=function(){return z},z.flags="",z[w]=/./[w]),z.exec=function(){return U=!0,null},z[w](""),!U});if(!D||!L||O){var F=/./[w],j=R(w,""[b],function(U,z,Y,B,V){var K=z.exec;return K===h||K===A.exec?D&&!V?{done:!0,value:u(F,z,Y,B)}:{done:!0,value:u(U,Y,z,B)}:{done:!1}});d(String.prototype,b,j[0]),d(A,w,j[1])}C&&T(A[w],"sham",!0)}},function(x,E,r){var u=r(421).charAt;x.exports=function(d,h,p){return h+(p?u(d,h).length:1)}},function(x,E,r){var u=r(8),d=r(46),h=r(21),p=r(15),y=r(389),T=TypeError;x.exports=function($,A){var b=$.exec;if(h(b)){var R=u(b,$,A);return R!==null&&d(R),R}if(p($)==="RegExp")return u(y,$,A);throw new T("RegExp#exec called on incompatible receiver")}},function(x,E,r){var u=r(3),d=r(8),h=r(85),p=r(170),y=r(172),T=r(16),$=r(64),A=r(68),b=r(46),R=r(17),O=r(15),C=r(381),w=r(382),D=r(29),L=r(47),F=r(7),j=r(33),U=r(219),z=r(431),Y=r(432),B=r(51),V=r(36),K=j("matchAll"),J="RegExp String",Z=J+" Iterator",_=B.set,nt=B.getterFor(Z),rt=RegExp.prototype,q=TypeError,tt=h("".indexOf),et=h("".matchAll),lt=!!et&&!F(function(){et("a",/./)}),vt=p(function(yt,Ft,Lt,jt){_(this,{type:Z,regexp:yt,string:Ft,global:Lt,unicode:jt,done:!1})},J,function(){var yt=nt(this);if(yt.done)return y(void 0,!0);var Ft=yt.regexp,Lt=yt.string,jt=Y(Ft,Lt);return jt===null?(yt.done=!0,y(void 0,!0)):yt.global?(A(jt[0])===""&&(Ft.lastIndex=z(Lt,$(Ft.lastIndex),yt.unicode)),y(jt,!1)):(yt.done=!0,y(jt,!1))}),ft=function(bt){var yt=b(this),Ft=A(bt),Lt=U(yt,RegExp),jt=A(w(yt)),Kt,Jt,ge;return Kt=new Lt(Lt===RegExp?yt.source:yt,jt),Jt=!!~tt(jt,"g"),ge=!!~tt(jt,"u"),Kt.lastIndex=$(yt.lastIndex),new vt(Kt,Ft,Jt,ge)};u({target:"String",proto:!0,forced:lt},{matchAll:function(yt){var Ft=T(this),Lt,jt,Kt,Jt;if(R(yt)){if(lt)return et(Ft,yt)}else{if(C(yt)&&(Lt=A(T(w(yt))),!~tt(Lt,"g")))throw new q("`.matchAll` does not allow non-global regexes");if(lt)return et(Ft,yt);if(Kt=D(yt,K),Kt===void 0&&V&&O(yt)==="RegExp"&&(Kt=ft),Kt)return d(Kt,yt,Ft)}return jt=A(Ft),Jt=new RegExp(yt,"g"),V?d(ft,Jt,jt):Jt[K](jt)}}),V||K in rt||L(rt,K,ft)},function(x,E,r){var u=r(3),d=r(240).end,h=r(435);u({target:"String",proto:!0,forced:h},{padEnd:function(y){return d(this,y,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var u=r(28);x.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(u)},function(x,E,r){var u=r(3),d=r(240).start,h=r(435);u({target:"String",proto:!0,forced:h},{padStart:function(y){return d(this,y,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var u=r(3),d=r(14),h=r(12),p=r(39),y=r(68),T=r(63),$=d([].push),A=d([].join);u({target:"String",stat:!0},{raw:function(R){var O=h(p(R).raw),C=T(O);if(!C)return"";for(var w=arguments.length,D=[],L=0;;){if($(D,y(O[L++])),L===C)return A(D,"");L<w&&$(D,y(arguments[L]))}}})},function(x,E,r){var u=r(3),d=r(241);u({target:"String",proto:!0},{repeat:d})},function(x,E,r){var u=r(94),d=r(8),h=r(14),p=r(430),y=r(7),T=r(46),$=r(21),A=r(17),b=r(61),R=r(64),O=r(68),C=r(16),w=r(431),D=r(29),L=r(440),F=r(432),j=r(33),U=j("replace"),z=Math.max,Y=Math.min,B=h([].concat),V=h([].push),K=h("".indexOf),J=h("".slice),Z=function(q){return q===void 0?q:String(q)},_=function(){return"a".replace(/./,"$0")==="$0"}(),nt=function(){return/./[U]?/./[U]("a","$0")==="":!1}(),rt=!y(function(){var q=/./;return q.exec=function(){var tt=[];return tt.groups={a:"7"},tt},"".replace(q,"$<a>")!=="7"});p("replace",function(q,tt,et){var lt=nt?"$":"$0";return[function(ft,bt){var yt=C(this),Ft=A(ft)?void 0:D(ft,U);return Ft?d(Ft,ft,yt,bt):d(tt,O(yt),ft,bt)},function(vt,ft){var bt=T(this),yt=O(vt);if(typeof ft=="string"&&K(ft,lt)===-1&&K(ft,"$<")===-1){var Ft=et(tt,bt,yt,ft);if(Ft.done)return Ft.value}var Lt=$(ft);Lt||(ft=O(ft));var jt=bt.global,Kt;jt&&(Kt=bt.unicode,bt.lastIndex=0);for(var Jt=[],ge;ge=F(bt,yt),!(ge===null||(V(Jt,ge),!jt));){var le=O(ge[0]);le===""&&(bt.lastIndex=w(yt,R(bt.lastIndex),Kt))}for(var ee="",Mt=0,zt=0;zt<Jt.length;zt++){ge=Jt[zt];for(var te=O(ge[0]),ae=z(Y(b(ge.index),yt.length),0),re=[],oe,Re=1;Re<ge.length;Re++)V(re,Z(ge[Re]));var Ce=ge.groups;if(Lt){var xe=B([te],re,ae,yt);Ce!==void 0&&V(xe,Ce),oe=O(u(ft,void 0,xe))}else oe=L(te,yt,ae,re,Ce,ft);ae>=Mt&&(ee+=J(yt,Mt,ae)+oe,Mt=ae+te.length)}return ee+J(yt,Mt)}]},!rt||!_||nt)},function(x,E,r){var u=r(14),d=r(39),h=Math.floor,p=u("".charAt),y=u("".replace),T=u("".slice),$=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,A=/\$([$&'`]|\d{1,2})/g;x.exports=function(b,R,O,C,w,D){var L=O+b.length,F=C.length,j=A;return w!==void 0&&(w=d(w),j=$),y(D,j,function(U,z){var Y;switch(p(z,0)){case"$":return"$";case"&":return b;case"`":return T(R,0,O);case"'":return T(R,L);case"<":Y=w[T(z,1,-1)];break;default:var B=+z;if(B===0)return U;if(B>F){var V=h(B/10);return V===0?U:V<=F?C[V-1]===void 0?p(z,1):C[V-1]+p(z,1):U}Y=C[B-1]}return Y===void 0?"":Y})}},function(x,E,r){var u=r(3),d=r(8),h=r(14),p=r(16),y=r(21),T=r(17),$=r(381),A=r(68),b=r(29),R=r(382),O=r(440),C=r(33),w=r(36),D=C("replace"),L=TypeError,F=h("".indexOf),j=h("".replace),U=h("".slice),z=Math.max;u({target:"String",proto:!0},{replaceAll:function(B,V){var K=p(this),J,Z,_,nt,rt,q,tt,et,lt,vt=0,ft=0,bt="";if(!T(B)){if(J=$(B),J&&(Z=A(p(R(B))),!~F(Z,"g")))throw new L("`.replaceAll` does not allow non-global regexes");if(_=b(B,D),_)return d(_,B,K,V);if(w&&J)return j(A(K),B,V)}for(nt=A(K),rt=A(B),q=y(V),q||(V=A(V)),tt=rt.length,et=z(1,tt),vt=F(nt,rt);vt!==-1;)lt=q?A(V(rt,vt,nt)):O(rt,nt,vt,[],void 0,V),bt+=U(nt,ft,vt)+lt,ft=vt+tt,vt=vt+et>nt.length?-1:F(nt,rt,vt+et);return ft<nt.length&&(bt+=U(nt,ft)),bt}})},function(x,E,r){var u=r(8),d=r(430),h=r(46),p=r(17),y=r(16),T=r(323),$=r(68),A=r(29),b=r(432);d("search",function(R,O,C){return[function(D){var L=y(this),F=p(D)?void 0:A(D,R);return F?u(F,D,L):new RegExp(D)[R]($(L))},function(w){var D=h(this),L=$(w),F=C(O,D,L);if(F.done)return F.value;var j=D.lastIndex;T(j,0)||(D.lastIndex=0);var U=b(D,L);return T(D.lastIndex,j)||(D.lastIndex=j),U===null?-1:U.index}]})},function(x,E,r){var u=r(8),d=r(14),h=r(430),p=r(46),y=r(17),T=r(16),$=r(219),A=r(431),b=r(64),R=r(68),O=r(29),C=r(432),w=r(384),D=r(7),L=w.UNSUPPORTED_Y,F=4294967295,j=Math.min,U=d([].push),z=d("".slice),Y=!D(function(){var V=/(?:)/,K=V.exec;V.exec=function(){return K.apply(this,arguments)};var J="ab".split(V);return J.length!==2||J[0]!=="a"||J[1]!=="b"}),B="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;h("split",function(V,K,J){var Z="0".split(void 0,0).length?function(_,nt){return _===void 0&&nt===0?[]:u(K,this,_,nt)}:K;return[function(nt,rt){var q=T(this),tt=y(nt)?void 0:O(nt,V);return tt?u(tt,nt,q,rt):u(Z,R(q),nt,rt)},function(_,nt){var rt=p(this),q=R(_);if(!B){var tt=J(Z,rt,q,nt,Z!==K);if(tt.done)return tt.value}var et=$(rt,RegExp),lt=rt.unicode,vt=(rt.ignoreCase?"i":"")+(rt.multiline?"m":"")+(rt.unicode?"u":"")+(L?"g":"y"),ft=new et(L?"^(?:"+rt.source+")":rt,vt),bt=nt===void 0?F:nt>>>0;if(bt===0)return[];if(q.length===0)return C(ft,q)===null?[q]:[];for(var yt=0,Ft=0,Lt=[];Ft<q.length;){ft.lastIndex=L?0:Ft;var jt=C(ft,L?z(q,Ft):q),Kt;if(jt===null||(Kt=j(b(ft.lastIndex+(L?Ft:0)),q.length))===yt)Ft=A(q,Ft,lt);else{if(U(Lt,z(q,yt,Ft)),Lt.length===bt)return Lt;for(var Jt=1;Jt<=jt.length-1;Jt++)if(U(Lt,jt[Jt]),Lt.length===bt)return Lt;Ft=yt=Kt}}return U(Lt,z(q,yt)),Lt}]},B||!Y,L)},function(x,E,r){var u=r(3),d=r(85),h=r(5).f,p=r(64),y=r(68),T=r(423),$=r(16),A=r(424),b=r(36),R=d("".slice),O=Math.min,C=A("startsWith"),w=!b&&!C&&!!function(){var D=h(String.prototype,"startsWith");return D&&!D.writable}();u({target:"String",proto:!0,forced:!w&&!C},{startsWith:function(L){var F=y($(this));T(L);var j=p(O(arguments.length>1?arguments[1]:void 0,F.length)),U=y(L);return R(F,j,j+U.length)===U}})},function(x,E,r){var u=r(3),d=r(14),h=r(16),p=r(61),y=r(68),T=d("".slice),$=Math.max,A=Math.min,b=!"".substr||"ab".substr(-1)!=="b";u({target:"String",proto:!0,forced:b},{substr:function(O,C){var w=y(h(this)),D=w.length,L=p(O),F,j;return L===1/0&&(L=0),L<0&&(L=$(D+L,0)),F=C===void 0?D:p(C),F<=0||F===1/0?"":(j=A(L+F,D),L>=j?"":T(w,L,j))}})},function(x,E,r){var u=r(3),d=r(8),h=r(14),p=r(16),y=r(68),T=r(7),$=Array,A=h("".charAt),b=h("".charCodeAt),R=h([].join),O="".toWellFormed,C="\uFFFD",w=O&&T(function(){return d(O,1)!=="1"});u({target:"String",proto:!0,forced:w},{toWellFormed:function(){var L=y(p(this));if(w)return d(O,L);for(var F=L.length,j=$(F),U=0;U<F;U++){var z=b(L,U);(z&63488)!==55296?j[U]=A(L,U):z>=56320||U+1>=F||(b(L,U+1)&64512)!==56320?j[U]=C:(j[U]=A(L,U),j[++U]=A(L,U))}return R(j,"")}})},function(x,E,r){var u=r(3),d=r(286).trim,h=r(448);u({target:"String",proto:!0,forced:h("trim")},{trim:function(){return d(this)}})},function(x,E,r){var u=r(49).PROPER,d=r(7),h=r(287),p="\u200B\x85\u180E";x.exports=function(y){return d(function(){return!!h[y]()||p[y]()!==p||u&&h[y].name!==y})}},function(x,E,r){r(450);var u=r(3),d=r(451);u({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==d},{trimEnd:d})},function(x,E,r){var u=r(3),d=r(451);u({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==d},{trimRight:d})},function(x,E,r){var u=r(286).end,d=r(448);x.exports=d("trimEnd")?function(){return u(this)}:"".trimEnd},function(x,E,r){r(453);var u=r(3),d=r(454);u({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==d},{trimStart:d})},function(x,E,r){var u=r(3),d=r(454);u({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==d},{trimLeft:d})},function(x,E,r){var u=r(286).start,d=r(448);x.exports=d("trimStart")?function(){return u(this)}:"".trimStart},function(x,E,r){var u=r(3),d=r(456),h=r(457);u({target:"String",proto:!0,forced:h("anchor")},{anchor:function(y){return d(this,"a","name",y)}})},function(x,E,r){var u=r(14),d=r(16),h=r(68),p=/"/g,y=u("".replace);x.exports=function(T,$,A,b){var R=h(d(T)),O="<"+$;return A!==""&&(O+=" "+A+'="'+y(h(b),p,""")+'"'),O+">"+R+"</"+$+">"}},function(x,E,r){var u=r(7);x.exports=function(d){return u(function(){var h=""[d]('"');return h!==h.toLowerCase()||h.split('"').length>3})}},function(x,E,r){var u=r(3),d=r(456),h=r(457);u({target:"String",proto:!0,forced:h("big")},{big:function(){return d(this,"big","","")}})},function(x,E,r){var u=r(3),d=r(456),h=r(457);u({target:"String",proto:!0,forced:h("blink")},{blink:function(){return d(this,"blink","","")}})},function(x,E,r){var u=r(3),d=r(456),h=r(457);u({target:"String",proto:!0,forced:h("bold")},{bold:function(){return d(this,"b","","")}})},function(x,E,r){var u=r(3),d=r(456),h=r(457);u({target:"String",proto:!0,forced:h("fixed")},{fixed:function(){return d(this,"tt","","")}})},function(x,E,r){var u=r(3),d=r(456),h=r(457);u({target:"String",proto:!0,forced:h("fontcolor")},{fontcolor:function(y){return d(this,"font","color",y)}})},function(x,E,r){var u=r(3),d=r(456),h=r(457);u({target:"String",proto:!0,forced:h("fontsize")},{fontsize:function(y){return d(this,"font","size",y)}})},function(x,E,r){var u=r(3),d=r(456),h=r(457);u({target:"String",proto:!0,forced:h("italics")},{italics:function(){return d(this,"i","","")}})},function(x,E,r){var u=r(3),d=r(456),h=r(457);u({target:"String",proto:!0,forced:h("link")},{link:function(y){return d(this,"a","href",y)}})},function(x,E,r){var u=r(3),d=r(456),h=r(457);u({target:"String",proto:!0,forced:h("small")},{small:function(){return d(this,"small","","")}})},function(x,E,r){var u=r(3),d=r(456),h=r(457);u({target:"String",proto:!0,forced:h("strike")},{strike:function(){return d(this,"strike","","")}})},function(x,E,r){var u=r(3),d=r(456),h=r(457);u({target:"String",proto:!0,forced:h("sub")},{sub:function(){return d(this,"sub","","")}})},function(x,E,r){var u=r(3),d=r(456),h=r(457);u({target:"String",proto:!0,forced:h("sup")},{sup:function(){return d(this,"sup","","")}})},function(x,E,r){var u=r(471);u("Float32",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var u=r(3),d=r(4),h=r(8),p=r(6),y=r(472),T=r(217),$=r(207),A=r(210),b=r(11),R=r(43),O=r(292),C=r(64),w=r(211),D=r(473),L=r(475),F=r(18),j=r(38),U=r(69),z=r(20),Y=r(22),B=r(71),V=r(24),K=r(113),J=r(57).f,Z=r(476),_=r(83).forEach,nt=r(193),rt=r(77),q=r(44),tt=r(5),et=r(198),lt=r(51),vt=r(118),ft=lt.get,bt=lt.set,yt=lt.enforce,Ft=q.f,Lt=tt.f,jt=d.RangeError,Kt=$.ArrayBuffer,Jt=Kt.prototype,ge=$.DataView,le=T.NATIVE_ARRAY_BUFFER_VIEWS,ee=T.TYPED_ARRAY_TAG,Mt=T.TypedArray,zt=T.TypedArrayPrototype,te=T.isTypedArray,ae="BYTES_PER_ELEMENT",re="Wrong length",oe=function(Ae,me){rt(Ae,me,{configurable:!0,get:function(){return ft(this)[me]}})},Re=function(Ae){var me;return V(Jt,Ae)||(me=U(Ae))==="ArrayBuffer"||me==="SharedArrayBuffer"},Ce=function(Ae,me){return te(Ae)&&!Y(me)&&me in Ae&&O(+me)&&me>=0},xe=function(me,ce){return ce=F(ce),Ce(me,ce)?b(2,me[ce]):Lt(me,ce)},se=function(me,ce,Et){return ce=F(ce),Ce(me,ce)&&z(Et)&&j(Et,"value")&&!j(Et,"get")&&!j(Et,"set")&&!Et.configurable&&(!j(Et,"writable")||Et.writable)&&(!j(Et,"enumerable")||Et.enumerable)?(me[ce]=Et.value,me):Ft(me,ce,Et)};p?(le||(tt.f=xe,q.f=se,oe(zt,"buffer"),oe(zt,"byteOffset"),oe(zt,"byteLength"),oe(zt,"length")),u({target:"Object",stat:!0,forced:!le},{getOwnPropertyDescriptor:xe,defineProperty:se}),x.exports=function(Ae,me,ce){var Et=Ae.match(/\d+/)[0]/8,Bt=Ae+(ce?"Clamped":"")+"Array",$t="get"+Ae,kt="set"+Ae,Qt=d[Bt],Vt=Qt,Ut=Vt&&Vt.prototype,we={},Ye=function(ot,gt){var ct=ft(ot);return ct.view[$t](gt*Et+ct.byteOffset,!0)},dt=function(ot,gt,ct){var Nt=ft(ot);Nt.view[kt](gt*Et+Nt.byteOffset,ce?L(ct):ct,!0)},Ot=function(ot,gt){Ft(ot,gt,{get:function(){return Ye(this,gt)},set:function(ct){return dt(this,gt,ct)},enumerable:!0})};le?y&&(Vt=me(function(ot,gt,ct,Nt){return A(ot,Ut),vt(function(){return z(gt)?Re(gt)?Nt!==void 0?new Qt(gt,D(ct,Et),Nt):ct!==void 0?new Qt(gt,D(ct,Et)):new Qt(gt):te(gt)?et(Vt,gt):h(Z,Vt,gt):new Qt(w(gt))}(),ot,Vt)}),K&&K(Vt,Mt),_(J(Qt),function(ot){ot in Vt||R(Vt,ot,Qt[ot])}),Vt.prototype=Ut):(Vt=me(function(ot,gt,ct,Nt){A(ot,Ut);var qt=0,ie=0,Te,$e,ye;if(!z(gt))ye=w(gt),$e=ye*Et,Te=new Kt($e);else if(Re(gt)){Te=gt,ie=D(ct,Et);var sn=gt.byteLength;if(Nt===void 0){if(sn%Et)throw new jt(re);if($e=sn-ie,$e<0)throw new jt(re)}else if($e=C(Nt)*Et,$e+ie>sn)throw new jt(re);ye=$e/Et}else return te(gt)?et(Vt,gt):h(Z,Vt,gt);for(bt(ot,{buffer:Te,byteOffset:ie,byteLength:$e,length:ye,view:new ge(Te)});qt<ye;)Ot(ot,qt++)}),K&&K(Vt,Mt),Ut=Vt.prototype=B(zt)),Ut.constructor!==Vt&&R(Ut,"constructor",Vt),yt(Ut).TypedArrayConstructor=Vt,ee&&R(Ut,ee,Bt);var Pt=Vt!==Qt;we[Bt]=Vt,u({global:!0,constructor:!0,forced:Pt,sham:!le},we),ae in Vt||R(Vt,ae,Et),ae in Ut||R(Ut,ae,Et),nt(Bt)}):x.exports=function(){}},function(x,E,r){var u=r(4),d=r(7),h=r(164),p=r(217).NATIVE_ARRAY_BUFFER_VIEWS,y=u.ArrayBuffer,T=u.Int8Array;x.exports=!p||!d(function(){T(1)})||!d(function(){new T(-1)})||!h(function($){new T,new T(null),new T(1.5),new T($)},!0)||d(function(){return new T(new y(2),1,void 0).length!==1})},function(x,E,r){var u=r(474),d=RangeError;x.exports=function(h,p){var y=u(h);if(y%p)throw new d("Wrong offset");return y}},function(x,E,r){var u=r(61),d=RangeError;x.exports=function(h){var p=u(h);if(p<0)throw new d("The argument can't be less than 0");return p}},function(x){var E=Math.round;x.exports=function(r){var u=E(r);return u<0?0:u>255?255:u&255}},function(x,E,r){var u=r(84),d=r(8),h=r(220),p=r(39),y=r(63),T=r(133),$=r(134),A=r(131),b=r(477),R=r(217).aTypedArrayConstructor,O=r(478);x.exports=function(w){var D=h(this),L=p(w),F=arguments.length,j=F>1?arguments[1]:void 0,U=j!==void 0,z=$(L),Y,B,V,K,J,Z,_,nt;if(z&&!A(z))for(_=T(L,z),nt=_.next,L=[];!(Z=d(nt,_)).done;)L.push(Z.value);for(U&&F>2&&(j=u(j,arguments[2])),B=y(L),V=new(R(D))(B),K=b(V),Y=0;B>Y;Y++)J=U?j(L[Y],Y):L[Y],V[Y]=K?O(J):+J;return V}},function(x,E,r){var u=r(69);x.exports=function(d){var h=u(d);return h==="BigInt64Array"||h==="BigUint64Array"}},function(x,E,r){var u=r(19),d=TypeError;x.exports=function(h){var p=u(h,"number");if(typeof p=="number")throw new d("Can't convert number to bigint");return BigInt(p)}},function(x,E,r){var u=r(471);u("Float64",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var u=r(471);u("Int8",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var u=r(471);u("Int16",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var u=r(471);u("Int32",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var u=r(471);u("Uint8",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var u=r(471);u("Uint8",function(d){return function(p,y,T){return d(this,p,y,T)}},!0)},function(x,E,r){var u=r(471);u("Uint16",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var u=r(471);u("Uint32",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var u=r(217),d=r(63),h=r(61),p=u.aTypedArray,y=u.exportTypedArrayMethod;y("at",function($){var A=p(this),b=d(A),R=h($),O=R>=0?R:b+R;return O<0||O>=b?void 0:A[O]})},function(x,E,r){var u=r(14),d=r(217),h=r(144),p=u(h),y=d.aTypedArray,T=d.exportTypedArrayMethod;T("copyWithin",function(A,b){return p(y(this),A,b,arguments.length>2?arguments[2]:void 0)})},function(x,E,r){var u=r(217),d=r(83).every,h=u.aTypedArray,p=u.exportTypedArrayMethod;p("every",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var u=r(217),d=r(149),h=r(478),p=r(69),y=r(8),T=r(14),$=r(7),A=u.aTypedArray,b=u.exportTypedArrayMethod,R=T("".slice),O=$(function(){var C=0;return new Int8Array(2).fill({valueOf:function(){return C++}}),C!==1});b("fill",function(w){var D=arguments.length;A(this);var L=R(p(this),0,3)==="Big"?h(w):+w;return y(d,this,L,D>1?arguments[1]:void 0,D>2?arguments[2]:void 0)},O)},function(x,E,r){var u=r(217),d=r(83).filter,h=r(492),p=u.aTypedArray,y=u.exportTypedArrayMethod;y("filter",function($){var A=d(p(this),$,arguments.length>1?arguments[1]:void 0);return h(this,A)})},function(x,E,r){var u=r(198),d=r(493);x.exports=function(h,p){return u(d(h),p)}},function(x,E,r){var u=r(217),d=r(219),h=u.aTypedArrayConstructor,p=u.getTypedArrayConstructor;x.exports=function(y){return h(d(y,p(y)))}},function(x,E,r){var u=r(217),d=r(83).find,h=u.aTypedArray,p=u.exportTypedArrayMethod;p("find",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var u=r(217),d=r(83).findIndex,h=u.aTypedArray,p=u.exportTypedArrayMethod;p("findIndex",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var u=r(217),d=r(154).findLast,h=u.aTypedArray,p=u.exportTypedArrayMethod;p("findLast",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var u=r(217),d=r(154).findLastIndex,h=u.aTypedArray,p=u.exportTypedArrayMethod;p("findLastIndex",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var u=r(217),d=r(83).forEach,h=u.aTypedArray,p=u.exportTypedArrayMethod;p("forEach",function(T){d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var u=r(472),d=r(217).exportTypedArrayStaticMethod,h=r(476);d("from",h,u)},function(x,E,r){var u=r(217),d=r(59).includes,h=u.aTypedArray,p=u.exportTypedArrayMethod;p("includes",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var u=r(217),d=r(59).indexOf,h=u.aTypedArray,p=u.exportTypedArrayMethod;p("indexOf",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var u=r(4),d=r(7),h=r(14),p=r(217),y=r(168),T=r(33),$=T("iterator"),A=u.Uint8Array,b=h(y.values),R=h(y.keys),O=h(y.entries),C=p.aTypedArray,w=p.exportTypedArrayMethod,D=A&&A.prototype,L=!d(function(){D[$].call([1])}),F=!!D&&D.values&&D[$]===D.values&&D.values.name==="values",j=function(){return b(C(this))};w("entries",function(){return O(C(this))},L),w("keys",function(){return R(C(this))},L),w("values",j,L||!F,{name:"values"}),w($,j,L||!F,{name:"values"})},function(x,E,r){var u=r(217),d=r(14),h=u.aTypedArray,p=u.exportTypedArrayMethod,y=d([].join);p("join",function($){return y(h(this),$)})},function(x,E,r){var u=r(217),d=r(94),h=r(175),p=u.aTypedArray,y=u.exportTypedArrayMethod;y("lastIndexOf",function($){var A=arguments.length;return d(h,p(this),A>1?[$,arguments[1]]:[$])})},function(x,E,r){var u=r(217),d=r(83).map,h=r(493),p=u.aTypedArray,y=u.exportTypedArrayMethod;y("map",function($){return d(p(this),$,arguments.length>1?arguments[1]:void 0,function(A,b){return new(h(A))(b)})})},function(x,E,r){var u=r(217),d=r(472),h=u.aTypedArrayConstructor,p=u.exportTypedArrayStaticMethod;p("of",function(){for(var T=0,$=arguments.length,A=new(h(this))($);$>T;)A[T]=arguments[T++];return A},d)},function(x,E,r){var u=r(217),d=r(181).left,h=u.aTypedArray,p=u.exportTypedArrayMethod;p("reduce",function(T){var $=arguments.length;return d(h(this),T,$,$>1?arguments[1]:void 0)})},function(x,E,r){var u=r(217),d=r(181).right,h=u.aTypedArray,p=u.exportTypedArrayMethod;p("reduceRight",function(T){var $=arguments.length;return d(h(this),T,$,$>1?arguments[1]:void 0)})},function(x,E,r){var u=r(217),d=u.aTypedArray,h=u.exportTypedArrayMethod,p=Math.floor;h("reverse",function(){for(var T=this,$=d(T).length,A=p($/2),b=0,R;b<A;)R=T[b],T[b++]=T[--$],T[$]=R;return T})},function(x,E,r){var u=r(4),d=r(8),h=r(217),p=r(63),y=r(473),T=r(39),$=r(7),A=u.RangeError,b=u.Int8Array,R=b&&b.prototype,O=R&&R.set,C=h.aTypedArray,w=h.exportTypedArrayMethod,D=!$(function(){var F=new Uint8ClampedArray(2);return d(O,F,{length:1,0:3},1),F[1]!==3}),L=D&&h.NATIVE_ARRAY_BUFFER_VIEWS&&$(function(){var F=new b(2);return F.set(1),F.set("2",1),F[0]!==0||F[1]!==2});w("set",function(j){C(this);var U=y(arguments.length>1?arguments[1]:void 0,1),z=T(j);if(D)return d(O,this,z,U);var Y=this.length,B=p(z),V=0;if(B+U>Y)throw new A("Wrong length");for(;V<B;)this[U+V]=z[V++]},!D||L)},function(x,E,r){var u=r(217),d=r(493),h=r(7),p=r(76),y=u.aTypedArray,T=u.exportTypedArrayMethod,$=h(function(){new Int8Array(1).slice()});T("slice",function(b,R){for(var O=p(y(this),b,R),C=d(this),w=0,D=O.length,L=new C(D);D>w;)L[w]=O[w++];return L},$)},function(x,E,r){var u=r(217),d=r(83).some,h=u.aTypedArray,p=u.exportTypedArrayMethod;p("some",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var u=r(4),d=r(85),h=r(7),p=r(30),y=r(188),T=r(217),$=r(189),A=r(190),b=r(27),R=r(191),O=T.aTypedArray,C=T.exportTypedArrayMethod,w=u.Uint16Array,D=w&&d(w.prototype.sort),L=!!D&&!(h(function(){D(new w(2),null)})&&h(function(){D(new w(2),{})})),F=!!D&&!h(function(){if(b)return b<74;if($)return $<67;if(A)return!0;if(R)return R<602;var U=new w(516),z=Array(516),Y,B;for(Y=0;Y<516;Y++)B=Y%4,U[Y]=515-Y,z[Y]=Y-2*B+3;for(D(U,function(V,K){return(V/4|0)-(K/4|0)}),Y=0;Y<516;Y++)if(U[Y]!==z[Y])return!0}),j=function(U){return function(z,Y){return U!==void 0?+U(z,Y)||0:Y!==Y?-1:z!==z?1:z===0&&Y===0?1/z>0&&1/Y<0?1:-1:z>Y}};C("sort",function(z){return z!==void 0&&p(z),F?D(this,z):y(O(this),j(z))},!F||L)},function(x,E,r){var u=r(217),d=r(64),h=r(60),p=r(493),y=u.aTypedArray,T=u.exportTypedArrayMethod;T("subarray",function(A,b){var R=y(this),O=R.length,C=h(A,O),w=p(R);return new w(R.buffer,R.byteOffset+C*R.BYTES_PER_ELEMENT,d((b===void 0?O:h(b,O))-C))})},function(x,E,r){var u=r(4),d=r(94),h=r(217),p=r(7),y=r(76),T=u.Int8Array,$=h.aTypedArray,A=h.exportTypedArrayMethod,b=[].toLocaleString,R=!!T&&p(function(){b.call(new T(1))}),O=p(function(){return[1,2].toLocaleString()!==new T([1,2]).toLocaleString()})||!p(function(){T.prototype.toLocaleString.call([1,2])});A("toLocaleString",function(){return d(b,R?y($(this)):$(this),y(arguments))},O)},function(x,E,r){var u=r(196),d=r(217),h=d.aTypedArray,p=d.exportTypedArrayMethod,y=d.getTypedArrayConstructor;p("toReversed",function(){return u(h(this),y(this))})},function(x,E,r){var u=r(217),d=r(14),h=r(30),p=r(198),y=u.aTypedArray,T=u.getTypedArrayConstructor,$=u.exportTypedArrayMethod,A=d(u.TypedArrayPrototype.sort);$("toSorted",function(R){R!==void 0&&h(R);var O=y(this),C=p(T(O),O);return A(C,R)})},function(x,E,r){var u=r(217).exportTypedArrayMethod,d=r(7),h=r(4),p=r(14),y=h.Uint8Array,T=y&&y.prototype||{},$=[].toString,A=p([].join);d(function(){$.call({})})&&($=function(){return A(this)});var b=T.toString!==$;u("toString",$,b)},function(x,E,r){var u=r(205),d=r(217),h=r(477),p=r(61),y=r(478),T=d.aTypedArray,$=d.getTypedArrayConstructor,A=d.exportTypedArrayMethod,b=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(R){return R===8}}();A("with",function(R,O){var C=T(this),w=p(R),D=h(C)?y(O):+O;return u(C,$(C),w,D)},!b)},function(x,E,r){var u=r(3),d=r(14),h=r(68),p=String.fromCharCode,y=d("".charAt),T=d(/./.exec),$=d("".slice),A=/^[\da-f]{2}$/i,b=/^[\da-f]{4}$/i;u({global:!0},{unescape:function(O){for(var C=h(O),w="",D=C.length,L=0,F,j;L<D;){if(F=y(C,L++),F==="%"){if(y(C,L)==="u"){if(j=$(C,L+1,L+5),T(b,j)){w+=p(parseInt(j,16)),L+=5;continue}}else if(j=$(C,L,L+2),T(A,j)){w+=p(parseInt(j,16)),L+=2;continue}}w+=F}return w}})},function(x,E,r){r(522)},function(x,E,r){var u=r(259),d=r(4),h=r(14),p=r(209),y=r(256),T=r(255),$=r(523),A=r(20),b=r(51).enforce,R=r(7),O=r(52),C=Object,w=Array.isArray,D=C.isExtensible,L=C.isFrozen,F=C.isSealed,j=C.freeze,U=C.seal,z=!d.ActiveXObject&&"ActiveXObject"in d,Y,B=function(q){return function(){return q(this,arguments.length?arguments[0]:void 0)}},V=T("WeakMap",B,$),K=V.prototype,J=h(K.set),Z=function(){return u&&R(function(){var q=j([]);return J(new V,q,1),!L(q)})};if(O)if(z){Y=$.getConstructor(B,"WeakMap",!0),y.enable();var _=h(K.delete),nt=h(K.has),rt=h(K.get);p(K,{delete:function(q){if(A(q)&&!D(q)){var tt=b(this);return tt.frozen||(tt.frozen=new Y),_(this,q)||tt.frozen.delete(q)}return _(this,q)},has:function(tt){if(A(tt)&&!D(tt)){var et=b(this);return et.frozen||(et.frozen=new Y),nt(this,tt)||et.frozen.has(tt)}return nt(this,tt)},get:function(tt){if(A(tt)&&!D(tt)){var et=b(this);return et.frozen||(et.frozen=new Y),nt(this,tt)?rt(this,tt):et.frozen.get(tt)}return rt(this,tt)},set:function(tt,et){if(A(tt)&&!D(tt)){var lt=b(this);lt.frozen||(lt.frozen=new Y),nt(this,tt)?J(this,tt,et):lt.frozen.set(tt,et)}else J(this,tt,et);return this}})}else Z()&&p(K,{set:function(tt,et){var lt;return w(tt)&&(L(tt)?lt=j:F(tt)&&(lt=U)),J(this,tt,et),lt&<(tt),this}})},function(x,E,r){var u=r(14),d=r(209),h=r(256).getWeakData,p=r(210),y=r(46),T=r(17),$=r(20),A=r(130),b=r(83),R=r(38),O=r(51),C=O.set,w=O.getterFor,D=b.find,L=b.findIndex,F=u([].splice),j=0,U=function(B){return B.frozen||(B.frozen=new z)},z=function(){this.entries=[]},Y=function(B,V){return D(B.entries,function(K){return K[0]===V})};z.prototype={get:function(B){var V=Y(this,B);if(V)return V[1]},has:function(B){return!!Y(this,B)},set:function(B,V){var K=Y(this,B);K?K[1]=V:this.entries.push([B,V])},delete:function(B){var V=L(this.entries,function(K){return K[0]===B});return~V&&F(this.entries,V,1),!!~V}},x.exports={getConstructor:function(B,V,K,J){var Z=B(function(q,tt){p(q,_),C(q,{type:V,id:j++,frozen:void 0}),T(tt)||A(tt,q[J],{that:q,AS_ENTRIES:K})}),_=Z.prototype,nt=w(V),rt=function(q,tt,et){var lt=nt(q),vt=h(y(tt),!0);return vt===!0?U(lt).set(tt,et):vt[lt.id]=et,q};return d(_,{delete:function(q){var tt=nt(this);if(!$(q))return!1;var et=h(q);return et===!0?U(tt).delete(q):et&&R(et,tt.id)&&delete et[tt.id]},has:function(tt){var et=nt(this);if(!$(tt))return!1;var lt=h(tt);return lt===!0?U(et).has(tt):lt&&R(lt,et.id)}}),d(_,K?{get:function(tt){var et=nt(this);if($(tt)){var lt=h(tt);return lt===!0?U(et).get(tt):lt?lt[et.id]:void 0}},set:function(tt,et){return rt(this,tt,et)}}:{add:function(tt){return rt(this,tt,!0)}}),Z}}},function(x,E,r){r(525)},function(x,E,r){var u=r(255),d=r(523);u("WeakSet",function(h){return function(){return h(this,arguments.length?arguments[0]:void 0)}},d)},function(x,E,r){var u=r(3),d=r(4),h=r(23),p=r(14),y=r(8),T=r(7),$=r(68),A=r(342),b=r(527).c2i,R=/[^\d+/a-z]/i,O=/[\t\n\f\r ]+/g,C=/[=]{1,2}$/,w=h("atob"),D=String.fromCharCode,L=p("".charAt),F=p("".replace),j=p(R.exec),U=!!w&&!T(function(){return w("aGk=")!=="hi"}),z=U&&T(function(){return w(" ")!==""}),Y=U&&!T(function(){w("a")}),B=U&&!T(function(){w()}),V=U&&w.length!==1,K=!U||z||Y||B||V;u({global:!0,bind:!0,enumerable:!0,forced:K},{atob:function(Z){if(A(arguments.length,1),U&&!z&&!Y)return y(w,d,Z);var _=F($(Z),O,""),nt="",rt=0,q=0,tt,et,lt;if(_.length%4===0&&(_=F(_,C,"")),tt=_.length,tt%4===1||j(R,_))throw new(h("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;rt<tt;)et=L(_,rt++),lt=q%4?lt*64+b[et]:b[et],q++%4&&(nt+=D(255<>>(-2*q&6)));return nt}})},function(x){var E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=E+"+/",u=E+"-_",d=function(h){for(var p={},y=0;y<64;y++)p[h.charAt(y)]=y;return p};x.exports={i2c:r,c2i:d(r),i2cUrl:u,c2iUrl:d(u)}},function(x,E,r){var u=r(3),d=r(4),h=r(23),p=r(14),y=r(8),T=r(7),$=r(68),A=r(342),b=r(527).i2c,R=h("btoa"),O=p("".charAt),C=p("".charCodeAt),w=!!R&&!T(function(){return R("hi")!=="aGk="}),D=w&&!T(function(){R()}),L=w&&T(function(){return R(null)!=="bnVsbA=="}),F=w&&R.length!==1;u({global:!0,bind:!0,enumerable:!0,forced:!w||D||L||F},{btoa:function(U){if(A(arguments.length,1),w)return y(R,d,$(U));for(var z=$(U),Y="",B=0,V=b,K,J;O(z,B)||(V="=",B%1);){if(J=C(z,B+=.75),J>255)throw new(h("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");K=K<<8|J,Y+=O(V,63&K>>8-B%1*8)}return Y}})},function(x,E,r){var u=r(4),d=r(530),h=r(531),p=r(160),y=r(43),T=function(A){if(A&&A.forEach!==p)try{y(A,"forEach",p)}catch(b){A.forEach=p}};for(var $ in d)d[$]&&T(u[$]&&u[$].prototype);T(h)},function(x){x.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(x,E,r){var u=r(42),d=u("span").classList,h=d&&d.constructor&&d.constructor.prototype;x.exports=h===Object.prototype?void 0:h},function(x,E,r){var u=r(4),d=r(530),h=r(531),p=r(168),y=r(43),T=r(82),$=r(33),A=$("iterator"),b=p.values,R=function(C,w){if(C){if(C[A]!==b)try{y(C,A,b)}catch(L){C[A]=b}if(T(C,w,!0),d[w]){for(var D in p)if(C[D]!==p[D])try{y(C,D,p[D])}catch(L){C[D]=p[D]}}}};for(var O in d)R(u[O]&&u[O].prototype,O);R(h,"DOMTokenList")},function(x,E,r){var u=r(3),d=r(229),h=r(23),p=r(7),y=r(71),T=r(11),$=r(44).f,A=r(47),b=r(77),R=r(38),O=r(210),C=r(46),w=r(125),D=r(119),L=r(534),F=r(122),j=r(51),U=r(6),z=r(36),Y="DOMException",B="DATA_CLONE_ERR",V=h("Error"),K=h(Y)||function(){try{var Mt=h("MessageChannel")||d("worker_threads").MessageChannel;new Mt().port1.postMessage(new WeakMap)}catch(zt){if(zt.name===B&&zt.code===25)return zt.constructor}}(),J=K&&K.prototype,Z=V.prototype,_=j.set,nt=j.getterFor(Y),rt="stack"in new V(Y),q=function(Mt){return R(L,Mt)&&L[Mt].m?L[Mt].c:0},tt=function(){O(this,et);var zt=arguments.length,te=D(zt<1?void 0:arguments[0]),ae=D(zt<2?void 0:arguments[1],"Error"),re=q(ae);if(_(this,{type:Y,name:ae,message:te,code:re}),U||(this.name=ae,this.message=te,this.code=re),rt){var oe=new V(te);oe.name=Y,$(this,"stack",T(1,F(oe.stack,1)))}},et=tt.prototype=y(Z),lt=function(Mt){return{enumerable:!0,configurable:!0,get:Mt}},vt=function(Mt){return lt(function(){return nt(this)[Mt]})};U&&(b(et,"code",vt("code")),b(et,"message",vt("message")),b(et,"name",vt("name"))),$(et,"constructor",T(1,tt));var ft=p(function(){return!(new K instanceof V)}),bt=ft||p(function(){return Z.toString!==w||String(new K(1,2))!=="2: 1"}),yt=ft||p(function(){return new K(1,"DataCloneError").code!==25}),Ft=ft||K[B]!==25||J[B]!==25,Lt=z?bt||yt||Ft:ft;u({global:!0,constructor:!0,forced:Lt},{DOMException:Lt?tt:K});var jt=h(Y),Kt=jt.prototype;bt&&(z||K===jt)&&A(Kt,"toString",w),yt&&U&&K===jt&&b(Kt,"code",lt(function(){return q(C(this).name)}));for(var Jt in L)if(R(L,Jt)){var ge=L[Jt],le=ge.s,ee=T(6,ge.c);R(jt,le)||$(jt,le,ee),R(Kt,le)||$(Kt,le,ee)}},function(x){x.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(x,E,r){var u=r(3),d=r(4),h=r(23),p=r(11),y=r(44).f,T=r(38),$=r(210),A=r(118),b=r(119),R=r(534),O=r(122),C=r(6),w=r(36),D="DOMException",L=h("Error"),F=h(D),j=function(){$(this,U);var tt=arguments.length,et=b(tt<1?void 0:arguments[0]),lt=b(tt<2?void 0:arguments[1],"Error"),vt=new F(et,lt),ft=new L(et);return ft.name=D,y(vt,"stack",p(1,O(ft.stack,1))),A(vt,this,j),vt},U=j.prototype=F.prototype,z="stack"in new L(D),Y="stack"in new F(1,2),B=F&&C&&Object.getOwnPropertyDescriptor(d,D),V=!!B&&!(B.writable&&B.configurable),K=z&&!V&&!Y;u({global:!0,constructor:!0,forced:w||K},{DOMException:K?j:F});var J=h(D),Z=J.prototype;if(Z.constructor!==J){w||y(Z,"constructor",p(1,J));for(var _ in R)if(T(R,_)){var nt=R[_],rt=nt.s;T(J,rt)||y(J,rt,p(6,nt.c))}}},function(x,E,r){var u=r(23),d=r(82),h="DOMException";d(u(h),h)},function(x,E,r){r(538),r(539)},function(x,E,r){var u=r(3),d=r(4),h=r(341).clear;u({global:!0,bind:!0,enumerable:!0,forced:d.clearImmediate!==h},{clearImmediate:h})},function(x,E,r){var u=r(3),d=r(4),h=r(341).set,p=r(540),y=d.setImmediate?p(h,!1):h;u({global:!0,bind:!0,enumerable:!0,forced:d.setImmediate!==y},{setImmediate:y})},function(x,E,r){var u=r(4),d=r(94),h=r(21),p=r(541),y=r(28),T=r(76),$=r(342),A=u.Function,b=/MSIE .\./.test(y)||p&&function(){var R=u.Bun.version.split(".");return R.length<3||R[0]==="0"&&(R[1]<3||R[1]==="3"&&R[2]==="0")}();x.exports=function(R,O){var C=O?2:1;return b?function(w,D){var L=$(arguments.length,1)>C,F=h(w)?w:A(w),j=L?T(arguments,C):[],U=L?function(){d(F,this,j)}:F;return O?R(U,D):R(U)}:R}},function(x){x.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},function(x,E,r){var u=r(3),d=r(4),h=r(344),p=r(30),y=r(342),T=r(7),$=r(6),A=T(function(){return $&&Object.getOwnPropertyDescriptor(d,"queueMicrotask").value.length!==1});u({global:!0,enumerable:!0,dontCallGetSet:!0,forced:A},{queueMicrotask:function(R){y(arguments.length,1),h(p(R))}})},function(x,E,r){var u=r(3),d=r(4),h=r(77),p=r(6),y=TypeError,T=Object.defineProperty,$=d.self!==d;try{if(p){var A=Object.getOwnPropertyDescriptor(d,"self");($||!A||!A.get||!A.enumerable)&&h(d,"self",{get:function(){return d},set:function(R){if(this!==d)throw new y("Illegal invocation");T(d,"self",{value:R,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else u({global:!0,simple:!0,forced:$},{self:d})}catch(b){}},function(x,E,r){var u=r(36),d=r(3),h=r(4),p=r(23),y=r(14),T=r(7),$=r(40),A=r(21),b=r(89),R=r(17),O=r(20),C=r(22),w=r(130),D=r(46),L=r(69),F=r(38),j=r(141),U=r(43),z=r(63),Y=r(342),B=r(382),V=r(262),K=r(399),J=r(401),Z=r(228),_=r(123),nt=r(230),rt=h.Object,q=h.Array,tt=h.Date,et=h.Error,lt=h.TypeError,vt=h.PerformanceMark,ft=p("DOMException"),bt=V.Map,yt=V.has,Ft=V.get,Lt=V.set,jt=K.Set,Kt=K.add,Jt=K.has,ge=p("Object","keys"),le=y([].push),ee=y((!0).valueOf),Mt=y(1 .valueOf),zt=y("".valueOf),te=y(tt.prototype.getTime),ae=$("structuredClone"),re="DataCloneError",oe="Transferring",Re=function(dt){return!T(function(){var Ot=new h.Set([7]),Pt=dt(Ot),ot=dt(rt(7));return Pt===Ot||!Pt.has(7)||!O(ot)||+ot!=7})&&dt},Ce=function(dt,Ot){return!T(function(){var Pt=new Ot,ot=dt({a:Pt,b:Pt});return!(ot&&ot.a===ot.b&&ot.a instanceof Ot&&ot.a.stack===Pt.stack)})},xe=function(dt){return!T(function(){var Ot=dt(new h.AggregateError([1],ae,{cause:3}));return Ot.name!=="AggregateError"||Ot.errors[0]!==1||Ot.message!==ae||Ot.cause!==3})},se=h.structuredClone,Ae=u||!Ce(se,et)||!Ce(se,ft)||!xe(se),me=!se&&Re(function(dt){return new vt(ae,{detail:dt}).detail}),ce=Re(se)||me,Et=function(dt){throw new ft("Uncloneable type: "+dt,re)},Bt=function(dt,Ot){throw new ft((Ot||"Cloning")+" of "+dt+" cannot be properly polyfilled in this engine",re)},$t=function(dt,Ot){return ce||Bt(Ot),ce(dt)},kt=function(){var dt;try{dt=new h.DataTransfer}catch(Ot){try{dt=new h.ClipboardEvent("").clipboardData}catch(Pt){}}return dt&&dt.items&&dt.files?dt:null},Qt=function(dt,Ot,Pt){if(yt(Ot,dt))return Ft(Ot,dt);var ot=Pt||L(dt),gt,ct,Nt,qt,ie,Te;if(ot==="SharedArrayBuffer")ce?gt=ce(dt):gt=dt;else{var $e=h.DataView;!$e&&!A(dt.slice)&&Bt("ArrayBuffer");try{if(A(dt.slice)&&!dt.resizable)gt=dt.slice(0);else for(ct=dt.byteLength,Nt=("maxByteLength"in dt)?{maxByteLength:dt.maxByteLength}:void 0,gt=new ArrayBuffer(ct,Nt),qt=new $e(dt),ie=new $e(gt),Te=0;Te<ct;Te++)ie.setUint8(Te,qt.getUint8(Te))}catch(ye){throw new ft("ArrayBuffer is detached",re)}}return Lt(Ot,dt,gt),gt},Vt=function(dt,Ot,Pt,ot,gt){var ct=h[Ot];return O(ct)||Bt(Ot),new ct(Qt(dt.buffer,gt),Pt,ot)},Ut=function(dt,Ot){if(C(dt)&&Et("Symbol"),!O(dt))return dt;if(Ot){if(yt(Ot,dt))return Ft(Ot,dt)}else Ot=new bt;var Pt=L(dt),ot,gt,ct,Nt,qt,ie,Te,$e;switch(Pt){case"Array":ct=q(z(dt));break;case"Object":ct={};break;case"Map":ct=new bt;break;case"Set":ct=new jt;break;case"RegExp":ct=new RegExp(dt.source,B(dt));break;case"Error":switch(gt=dt.name,gt){case"AggregateError":ct=new(p(gt))([]);break;case"EvalError":case"RangeError":case"ReferenceError":case"SuppressedError":case"SyntaxError":case"TypeError":case"URIError":ct=new(p(gt));break;case"CompileError":case"LinkError":case"RuntimeError":ct=new(p("WebAssembly",gt));break;default:ct=new et}break;case"DOMException":ct=new ft(dt.message,dt.name);break;case"ArrayBuffer":case"SharedArrayBuffer":ct=Qt(dt,Ot,Pt);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":ie=Pt==="DataView"?dt.byteLength:dt.length,ct=Vt(dt,Pt,dt.byteOffset,ie,Ot);break;case"DOMQuad":try{ct=new DOMQuad(Ut(dt.p1,Ot),Ut(dt.p2,Ot),Ut(dt.p3,Ot),Ut(dt.p4,Ot))}catch(ye){ct=$t(dt,Pt)}break;case"File":if(ce)try{ct=ce(dt),L(ct)!==Pt&&(ct=void 0)}catch(ye){}if(!ct)try{ct=new File([dt],dt.name,dt)}catch(ye){}ct||Bt(Pt);break;case"FileList":if(Nt=kt(),Nt){for(qt=0,ie=z(dt);qt<ie;qt++)Nt.items.add(Ut(dt[qt],Ot));ct=Nt.files}else ct=$t(dt,Pt);break;case"ImageData":try{ct=new ImageData(Ut(dt.data,Ot),dt.width,dt.height,{colorSpace:dt.colorSpace})}catch(ye){ct=$t(dt,Pt)}break;default:if(ce)ct=ce(dt);else switch(Pt){case"BigInt":ct=rt(dt.valueOf());break;case"Boolean":ct=rt(ee(dt));break;case"Number":ct=rt(Mt(dt));break;case"String":ct=rt(zt(dt));break;case"Date":ct=new tt(te(dt));break;case"Blob":try{ct=dt.slice(0,dt.size,dt.type)}catch(ye){Bt(Pt)}break;case"DOMPoint":case"DOMPointReadOnly":ot=h[Pt];try{ct=ot.fromPoint?ot.fromPoint(dt):new ot(dt.x,dt.y,dt.z,dt.w)}catch(ye){Bt(Pt)}break;case"DOMRect":case"DOMRectReadOnly":ot=h[Pt];try{ct=ot.fromRect?ot.fromRect(dt):new ot(dt.x,dt.y,dt.width,dt.height)}catch(ye){Bt(Pt)}break;case"DOMMatrix":case"DOMMatrixReadOnly":ot=h[Pt];try{ct=ot.fromMatrix?ot.fromMatrix(dt):new ot(dt)}catch(ye){Bt(Pt)}break;case"AudioData":case"VideoFrame":A(dt.clone)||Bt(Pt);try{ct=dt.clone()}catch(ye){Et(Pt)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":Bt(Pt);default:Et(Pt)}}switch(Lt(Ot,dt,ct),Pt){case"Array":case"Object":for(Te=ge(dt),qt=0,ie=z(Te);qt<ie;qt++)$e=Te[qt],j(ct,$e,Ut(dt[$e],Ot));break;case"Map":dt.forEach(function(ye,sn){Lt(ct,Ut(sn,Ot),Ut(ye,Ot))});break;case"Set":dt.forEach(function(ye){Kt(ct,Ut(ye,Ot))});break;case"Error":U(ct,"message",Ut(dt.message,Ot)),F(dt,"cause")&&U(ct,"cause",Ut(dt.cause,Ot)),gt==="AggregateError"?ct.errors=Ut(dt.errors,Ot):gt==="SuppressedError"&&(ct.error=Ut(dt.error,Ot),ct.suppressed=Ut(dt.suppressed,Ot));case"DOMException":_&&U(ct,"stack",Ut(dt.stack,Ot))}return ct},we=function(dt,Ot){if(!O(dt))throw new lt("Transfer option cannot be converted to a sequence");var Pt=[];w(dt,function(sn){le(Pt,D(sn))});for(var ot=0,gt=z(Pt),ct=new jt,Nt,qt,ie,Te,$e,ye;ot<gt;){if(Nt=Pt[ot++],qt=L(Nt),qt==="ArrayBuffer"?Jt(ct,Nt):yt(Ot,Nt))throw new ft("Duplicate transferable",re);if(qt==="ArrayBuffer"){Kt(ct,Nt);continue}if(nt)Te=se(Nt,{transfer:[Nt]});else switch(qt){case"ImageBitmap":ie=h.OffscreenCanvas,b(ie)||Bt(qt,oe);try{$e=new ie(Nt.width,Nt.height),ye=$e.getContext("bitmaprenderer"),ye.transferFromImageBitmap(Nt),Te=$e.transferToImageBitmap()}catch(sn){}break;case"AudioData":case"VideoFrame":(!A(Nt.clone)||!A(Nt.close))&&Bt(qt,oe);try{Te=Nt.clone(),Nt.close()}catch(sn){}break;case"MediaSourceHandle":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":Bt(qt,oe)}if(Te===void 0)throw new ft("This object cannot be transferred: "+qt,re);Lt(Ot,Nt,Te)}return ct},Ye=function(dt){J(dt,function(Ot){nt?ce(Ot,{transfer:[Ot]}):A(Ot.transfer)?Ot.transfer():Z?Z(Ot):Bt("ArrayBuffer",oe)})};d({global:!0,enumerable:!0,sham:!nt,forced:Ae},{structuredClone:function(Ot){var Pt=Y(arguments.length,1)>1&&!R(arguments[1])?D(arguments[1]):void 0,ot=Pt?Pt.transfer:void 0,gt,ct;ot!==void 0&&(gt=new bt,ct=we(ot,gt));var Nt=Ut(Ot,gt);return ct&&Ye(ct),Nt}})},function(x,E,r){r(546),r(547)},function(x,E,r){var u=r(3),d=r(4),h=r(540),p=h(d.setInterval,!0);u({global:!0,bind:!0,forced:d.setInterval!==p},{setInterval:p})},function(x,E,r){var u=r(3),d=r(4),h=r(540),p=h(d.setTimeout,!0);u({global:!0,bind:!0,forced:d.setTimeout!==p},{setTimeout:p})},function(x,E,r){r(549)},function(x,E,r){r(428);var u=r(3),d=r(6),h=r(550),p=r(4),y=r(84),T=r(14),$=r(47),A=r(77),b=r(210),R=r(38),O=r(305),C=r(162),w=r(76),D=r(421).codeAt,L=r(551),F=r(68),j=r(82),U=r(342),z=r(552),Y=r(51),B=Y.set,V=Y.getterFor("URL"),K=z.URLSearchParams,J=z.getState,Z=p.URL,_=p.TypeError,nt=p.parseInt,rt=Math.floor,q=Math.pow,tt=T("".charAt),et=T(/./.exec),lt=T([].join),vt=T(1 .toString),ft=T([].pop),bt=T([].push),yt=T("".replace),Ft=T([].shift),Lt=T("".split),jt=T("".slice),Kt=T("".toLowerCase),Jt=T([].unshift),ge="Invalid authority",le="Invalid scheme",ee="Invalid host",Mt="Invalid port",zt=/[a-z]/i,te=/[\d+-.a-z]/i,ae=/\d/,re=/^0x/i,oe=/^[0-7]+$/,Re=/^\d+$/,Ce=/^[\da-f]+$/i,xe=/[\0\t\n\r #%/:<>?@[\\\]^|]/,se=/[\0\t\n\r #/:<>?@[\\\]^|]/,Ae=/^[\u0000-\u0020]+/,me=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ce=/[\t\n\r]/g,Et,Bt=function(ut){var wt=Lt(ut,"."),pt,it,Rt,ve,_t,Ee,Qe;if(wt.length&&wt[wt.length-1]===""&&wt.length--,pt=wt.length,pt>4)return ut;for(it=[],Rt=0;Rt<pt;Rt++){if(ve=wt[Rt],ve==="")return ut;if(_t=10,ve.length>1&&tt(ve,0)==="0"&&(_t=et(re,ve)?16:8,ve=jt(ve,_t===8?1:2)),ve==="")Ee=0;else{if(!et(_t===10?Re:_t===8?oe:Ce,ve))return ut;Ee=nt(ve,_t)}bt(it,Ee)}for(Rt=0;Rt<pt;Rt++)if(Ee=it[Rt],Rt===pt-1){if(Ee>=q(256,5-pt))return null}else if(Ee>255)return null;for(Qe=ft(it),Rt=0;Rt<it.length;Rt++)Qe+=it[Rt]*q(256,3-Rt);return Qe},$t=function(ut){var wt=[0,0,0,0,0,0,0,0],pt=0,it=null,Rt=0,ve,_t,Ee,Qe,un,dn,st,_e=function(){return tt(ut,Rt)};if(_e()===":"){if(tt(ut,1)!==":")return;Rt+=2,pt++,it=pt}for(;_e();){if(pt===8)return;if(_e()===":"){if(it!==null)return;Rt++,pt++,it=pt;continue}for(ve=_t=0;_t<4&&et(Ce,_e());)ve=ve*16+nt(_e(),16),Rt++,_t++;if(_e()==="."){if(_t===0||(Rt-=_t,pt>6))return;for(Ee=0;_e();){if(Qe=null,Ee>0)if(_e()==="."&&Ee<4)Rt++;else return;if(!et(ae,_e()))return;for(;et(ae,_e());){if(un=nt(_e(),10),Qe===null)Qe=un;else{if(Qe===0)return;Qe=Qe*10+un}if(Qe>255)return;Rt++}wt[pt]=wt[pt]*256+Qe,Ee++,(Ee===2||Ee===4)&&pt++}if(Ee!==4)return;break}else if(_e()===":"){if(Rt++,!_e())return}else if(_e())return;wt[pt++]=ve}if(it!==null)for(dn=pt-it,pt=7;pt!==0&&dn>0;)st=wt[pt],wt[pt--]=wt[it+dn-1],wt[it+--dn]=st;else if(pt!==8)return;return wt},kt=function(ut){for(var wt=null,pt=1,it=null,Rt=0,ve=0;ve<8;ve++)ut[ve]!==0?(Rt>pt&&(wt=it,pt=Rt),it=null,Rt=0):(it===null&&(it=ve),++Rt);return Rt>pt&&(wt=it,pt=Rt),wt},Qt=function(ut){var wt,pt,it,Rt;if(typeof ut=="number"){for(wt=[],pt=0;pt<4;pt++)Jt(wt,ut%256),ut=rt(ut/256);return lt(wt,".")}else if(typeof ut=="object"){for(wt="",it=kt(ut),pt=0;pt<8;pt++)Rt&&ut[pt]===0||(Rt&&(Rt=!1),it===pt?(wt+=pt?":":"::",Rt=!0):(wt+=vt(ut[pt],16),pt<7&&(wt+=":")));return"["+wt+"]"}return ut},Vt={},Ut=O({},Vt,{" ":1,'"':1,"<":1,">":1,"`":1}),we=O({},Ut,{"#":1,"?":1,"{":1,"}":1}),Ye=O({},we,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),dt=function(ut,wt){var pt=D(ut,0);return pt>32&&pt<127&&!R(wt,ut)?ut:encodeURIComponent(ut)},Ot={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Pt=function(ut,wt){var pt;return ut.length===2&&et(zt,tt(ut,0))&&((pt=tt(ut,1))===":"||!wt&&pt==="|")},ot=function(ut){var wt;return ut.length>1&&Pt(jt(ut,0,2))&&(ut.length===2||(wt=tt(ut,2))==="/"||wt==="\\"||wt==="?"||wt==="#")},gt=function(ut){return ut==="."||Kt(ut)==="%2e"},ct=function(ut){return ut=Kt(ut),ut===".."||ut==="%2e."||ut===".%2e"||ut==="%2e%2e"},Nt={},qt={},ie={},Te={},$e={},ye={},sn={},fr={},zr={},jr={},ca={},ua={},fa={},Gr={},Ya={},da={},dr={},Fn={},Ha={},qn={},jn={},ha=function(ut,wt,pt){var it=F(ut),Rt,ve,_t;if(wt){if(ve=this.parse(it),ve)throw new _(ve);this.searchParams=null}else{if(pt!==void 0&&(Rt=new ha(pt,!0)),ve=this.parse(it,null,Rt),ve)throw new _(ve);_t=J(new K),_t.bindURL(this),this.searchParams=_t}};ha.prototype={type:"URL",parse:function(ut,wt,pt){var it=this,Rt=wt||Nt,ve=0,_t="",Ee=!1,Qe=!1,un=!1,dn,st,_e,wn;for(ut=F(ut),wt||(it.scheme="",it.username="",it.password="",it.host=null,it.port=null,it.path=[],it.query=null,it.fragment=null,it.cannotBeABaseURL=!1,ut=yt(ut,Ae,""),ut=yt(ut,me,"$1")),ut=yt(ut,ce,""),dn=C(ut);ve<=dn.length;){switch(st=dn[ve],Rt){case Nt:if(st&&et(zt,st))_t+=Kt(st),Rt=qt;else{if(wt)return le;Rt=ie;continue}break;case qt:if(st&&(et(te,st)||st==="+"||st==="-"||st==="."))_t+=Kt(st);else if(st===":"){if(wt&&(it.isSpecial()!==R(Ot,_t)||_t==="file"&&(it.includesCredentials()||it.port!==null)||it.scheme==="file"&&!it.host))return;if(it.scheme=_t,wt){it.isSpecial()&&Ot[it.scheme]===it.port&&(it.port=null);return}_t="",it.scheme==="file"?Rt=Gr:it.isSpecial()&&pt&&pt.scheme===it.scheme?Rt=Te:it.isSpecial()?Rt=fr:dn[ve+1]==="/"?(Rt=$e,ve++):(it.cannotBeABaseURL=!0,bt(it.path,""),Rt=Ha)}else{if(wt)return le;_t="",Rt=ie,ve=0;continue}break;case ie:if(!pt||pt.cannotBeABaseURL&&st!=="#")return le;if(pt.cannotBeABaseURL&&st==="#"){it.scheme=pt.scheme,it.path=w(pt.path),it.query=pt.query,it.fragment="",it.cannotBeABaseURL=!0,Rt=jn;break}Rt=pt.scheme==="file"?Gr:ye;continue;case Te:if(st==="/"&&dn[ve+1]==="/")Rt=zr,ve++;else{Rt=ye;continue}break;case $e:if(st==="/"){Rt=jr;break}else{Rt=Fn;continue}case ye:if(it.scheme=pt.scheme,st===Et)it.username=pt.username,it.password=pt.password,it.host=pt.host,it.port=pt.port,it.path=w(pt.path),it.query=pt.query;else if(st==="/"||st==="\\"&&it.isSpecial())Rt=sn;else if(st==="?")it.username=pt.username,it.password=pt.password,it.host=pt.host,it.port=pt.port,it.path=w(pt.path),it.query="",Rt=qn;else if(st==="#")it.username=pt.username,it.password=pt.password,it.host=pt.host,it.port=pt.port,it.path=w(pt.path),it.query=pt.query,it.fragment="",Rt=jn;else{it.username=pt.username,it.password=pt.password,it.host=pt.host,it.port=pt.port,it.path=w(pt.path),it.path.length--,Rt=Fn;continue}break;case sn:if(it.isSpecial()&&(st==="/"||st==="\\"))Rt=zr;else if(st==="/")Rt=jr;else{it.username=pt.username,it.password=pt.password,it.host=pt.host,it.port=pt.port,Rt=Fn;continue}break;case fr:if(Rt=zr,st!=="/"||tt(_t,ve+1)!=="/")continue;ve++;break;case zr:if(st!=="/"&&st!=="\\"){Rt=jr;continue}break;case jr:if(st==="@"){Ee&&(_t="%40"+_t),Ee=!0,_e=C(_t);for(var Je=0;Je<_e.length;Je++){var Bn=_e[Je];if(Bn===":"&&!un){un=!0;continue}var Sn=dt(Bn,Ye);un?it.password+=Sn:it.username+=Sn}_t=""}else if(st===Et||st==="/"||st==="?"||st==="#"||st==="\\"&&it.isSpecial()){if(Ee&&_t==="")return ge;ve-=C(_t).length+1,_t="",Rt=ca}else _t+=st;break;case ca:case ua:if(wt&&it.scheme==="file"){Rt=da;continue}else if(st===":"&&!Qe){if(_t==="")return ee;if(wn=it.parseHost(_t),wn)return wn;if(_t="",Rt=fa,wt===ua)return}else if(st===Et||st==="/"||st==="?"||st==="#"||st==="\\"&&it.isSpecial()){if(it.isSpecial()&&_t==="")return ee;if(wt&&_t===""&&(it.includesCredentials()||it.port!==null))return;if(wn=it.parseHost(_t),wn)return wn;if(_t="",Rt=dr,wt)return;continue}else st==="["?Qe=!0:st==="]"&&(Qe=!1),_t+=st;break;case fa:if(et(ae,st))_t+=st;else if(st===Et||st==="/"||st==="?"||st==="#"||st==="\\"&&it.isSpecial()||wt){if(_t!==""){var Mn=nt(_t,10);if(Mn>65535)return Mt;it.port=it.isSpecial()&&Mn===Ot[it.scheme]?null:Mn,_t=""}if(wt)return;Rt=dr;continue}else return Mt;break;case Gr:if(it.scheme="file",st==="/"||st==="\\")Rt=Ya;else if(pt&&pt.scheme==="file")switch(st){case Et:it.host=pt.host,it.path=w(pt.path),it.query=pt.query;break;case"?":it.host=pt.host,it.path=w(pt.path),it.query="",Rt=qn;break;case"#":it.host=pt.host,it.path=w(pt.path),it.query=pt.query,it.fragment="",Rt=jn;break;default:ot(lt(w(dn,ve),""))||(it.host=pt.host,it.path=w(pt.path),it.shortenPath()),Rt=Fn;continue}else{Rt=Fn;continue}break;case Ya:if(st==="/"||st==="\\"){Rt=da;break}pt&&pt.scheme==="file"&&!ot(lt(w(dn,ve),""))&&(Pt(pt.path[0],!0)?bt(it.path,pt.path[0]):it.host=pt.host),Rt=Fn;continue;case da:if(st===Et||st==="/"||st==="\\"||st==="?"||st==="#"){if(!wt&&Pt(_t))Rt=Fn;else if(_t===""){if(it.host="",wt)return;Rt=dr}else{if(wn=it.parseHost(_t),wn)return wn;if(it.host==="localhost"&&(it.host=""),wt)return;_t="",Rt=dr}continue}else _t+=st;break;case dr:if(it.isSpecial()){if(Rt=Fn,st!=="/"&&st!=="\\")continue}else if(!wt&&st==="?")it.query="",Rt=qn;else if(!wt&&st==="#")it.fragment="",Rt=jn;else if(st!==Et&&(Rt=Fn,st!=="/"))continue;break;case Fn:if(st===Et||st==="/"||st==="\\"&&it.isSpecial()||!wt&&(st==="?"||st==="#")){if(ct(_t)?(it.shortenPath(),st!=="/"&&!(st==="\\"&&it.isSpecial())&&bt(it.path,"")):gt(_t)?st!=="/"&&!(st==="\\"&&it.isSpecial())&&bt(it.path,""):(it.scheme==="file"&&!it.path.length&&Pt(_t)&&(it.host&&(it.host=""),_t=tt(_t,0)+":"),bt(it.path,_t)),_t="",it.scheme==="file"&&(st===Et||st==="?"||st==="#"))for(;it.path.length>1&&it.path[0]==="";)Ft(it.path);st==="?"?(it.query="",Rt=qn):st==="#"&&(it.fragment="",Rt=jn)}else _t+=dt(st,we);break;case Ha:st==="?"?(it.query="",Rt=qn):st==="#"?(it.fragment="",Rt=jn):st!==Et&&(it.path[0]+=dt(st,Vt));break;case qn:!wt&&st==="#"?(it.fragment="",Rt=jn):st!==Et&&(st==="'"&&it.isSpecial()?it.query+="%27":st==="#"?it.query+="%23":it.query+=dt(st,Vt));break;case jn:st!==Et&&(it.fragment+=dt(st,Ut));break}ve++}},parseHost:function(ut){var wt,pt,it;if(tt(ut,0)==="["){if(tt(ut,ut.length-1)!=="]"||(wt=$t(jt(ut,1,-1)),!wt))return ee;this.host=wt}else if(this.isSpecial()){if(ut=L(ut),et(xe,ut)||(wt=Bt(ut),wt===null))return ee;this.host=wt}else{if(et(se,ut))return ee;for(wt="",pt=C(ut),it=0;it<pt.length;it++)wt+=dt(pt[it],Vt);this.host=wt}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||this.scheme==="file"},includesCredentials:function(){return this.username!==""||this.password!==""},isSpecial:function(){return R(Ot,this.scheme)},shortenPath:function(){var ut=this.path,wt=ut.length;wt&&(this.scheme!=="file"||wt!==1||!Pt(ut[0],!0))&&ut.length--},serialize:function(){var ut=this,wt=ut.scheme,pt=ut.username,it=ut.password,Rt=ut.host,ve=ut.port,_t=ut.path,Ee=ut.query,Qe=ut.fragment,un=wt+":";return Rt!==null?(un+="//",ut.includesCredentials()&&(un+=pt+(it?":"+it:"")+"@"),un+=Qt(Rt),ve!==null&&(un+=":"+ve)):wt==="file"&&(un+="//"),un+=ut.cannotBeABaseURL?_t[0]:_t.length?"/"+lt(_t,"/"):"",Ee!==null&&(un+="?"+Ee),Qe!==null&&(un+="#"+Qe),un},setHref:function(ut){var wt=this.parse(ut);if(wt)throw new _(wt);this.searchParams.update()},getOrigin:function(){var ut=this.scheme,wt=this.port;if(ut==="blob")try{return new hr(ut.path[0]).origin}catch(pt){return"null"}return ut==="file"||!this.isSpecial()?"null":ut+"://"+Qt(this.host)+(wt!==null?":"+wt:"")},getProtocol:function(){return this.scheme+":"},setProtocol:function(ut){this.parse(F(ut)+":",Nt)},getUsername:function(){return this.username},setUsername:function(ut){var wt=C(F(ut));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var pt=0;pt<wt.length;pt++)this.username+=dt(wt[pt],Ye)}},getPassword:function(){return this.password},setPassword:function(ut){var wt=C(F(ut));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var pt=0;pt<wt.length;pt++)this.password+=dt(wt[pt],Ye)}},getHost:function(){var ut=this.host,wt=this.port;return ut===null?"":wt===null?Qt(ut):Qt(ut)+":"+wt},setHost:function(ut){this.cannotBeABaseURL||this.parse(ut,ca)},getHostname:function(){var ut=this.host;return ut===null?"":Qt(ut)},setHostname:function(ut){this.cannotBeABaseURL||this.parse(ut,ua)},getPort:function(){var ut=this.port;return ut===null?"":F(ut)},setPort:function(ut){this.cannotHaveUsernamePasswordPort()||(ut=F(ut),ut===""?this.port=null:this.parse(ut,fa))},getPathname:function(){var ut=this.path;return this.cannotBeABaseURL?ut[0]:ut.length?"/"+lt(ut,"/"):""},setPathname:function(ut){this.cannotBeABaseURL||(this.path=[],this.parse(ut,dr))},getSearch:function(){var ut=this.query;return ut?"?"+ut:""},setSearch:function(ut){ut=F(ut),ut===""?this.query=null:(tt(ut,0)==="?"&&(ut=jt(ut,1)),this.query="",this.parse(ut,qn)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var ut=this.fragment;return ut?"#"+ut:""},setHash:function(ut){if(ut=F(ut),ut===""){this.fragment=null;return}tt(ut,0)==="#"&&(ut=jt(ut,1)),this.fragment="",this.parse(ut,jn)},update:function(){this.query=this.searchParams.serialize()||null}};var hr=function(wt){var pt=b(this,vn),it=U(arguments.length,1)>1?arguments[1]:void 0,Rt=B(pt,new ha(wt,!1,it));d||(pt.href=Rt.serialize(),pt.origin=Rt.getOrigin(),pt.protocol=Rt.getProtocol(),pt.username=Rt.getUsername(),pt.password=Rt.getPassword(),pt.host=Rt.getHost(),pt.hostname=Rt.getHostname(),pt.port=Rt.getPort(),pt.pathname=Rt.getPathname(),pt.search=Rt.getSearch(),pt.searchParams=Rt.getSearchParams(),pt.hash=Rt.getHash())},vn=hr.prototype,Rn=function(ut,wt){return{get:function(){return V(this)[ut]()},set:wt&&function(pt){return V(this)[wt](pt)},configurable:!0,enumerable:!0}};if(d&&(A(vn,"href",Rn("serialize","setHref")),A(vn,"origin",Rn("getOrigin")),A(vn,"protocol",Rn("getProtocol","setProtocol")),A(vn,"username",Rn("getUsername","setUsername")),A(vn,"password",Rn("getPassword","setPassword")),A(vn,"host",Rn("getHost","setHost")),A(vn,"hostname",Rn("getHostname","setHostname")),A(vn,"port",Rn("getPort","setPort")),A(vn,"pathname",Rn("getPathname","setPathname")),A(vn,"search",Rn("getSearch","setSearch")),A(vn,"searchParams",Rn("getSearchParams")),A(vn,"hash",Rn("getHash","setHash"))),$(vn,"toJSON",function(){return V(this).serialize()},{enumerable:!0}),$(vn,"toString",function(){return V(this).serialize()},{enumerable:!0}),Z){var Wa=Z.createObjectURL,Ka=Z.revokeObjectURL;Wa&&$(hr,"createObjectURL",y(Wa,Z)),Ka&&$(hr,"revokeObjectURL",y(Ka,Z))}j(hr,"URL"),u({global:!0,constructor:!0,forced:!h,sham:!d},{URL:hr})},function(x,E,r){var u=r(7),d=r(33),h=r(6),p=r(36),y=d("iterator");x.exports=!u(function(){var T=new URL("b?a=1&b=2&c=3","http://a"),$=T.searchParams,A=new URLSearchParams("a=1&a=2&b=3"),b="";return T.pathname="c%20d",$.forEach(function(R,O){$.delete("b"),b+=O+R}),A.delete("a",2),A.delete("b",void 0),p&&(!T.toJSON||!A.has("a",1)||A.has("a",2)||!A.has("a",void 0)||A.has("b"))||!$.size&&(p||!h)||!$.sort||T.href!=="http://a/c%20d?a=1&c=3"||$.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!$[y]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||b!=="a1c3"||new URL("http://x",void 0).host!=="x"})},function(x,E,r){var u=r(14),d=2147483647,h=36,p=1,y=26,T=38,$=700,A=72,b=128,R="-",O=/[^\0-\u007E]/,C=/[.\u3002\uFF0E\uFF61]/g,w="Overflow: input needs wider integers to process",D=h-p,L=RangeError,F=u(C.exec),j=Math.floor,U=String.fromCharCode,z=u("".charCodeAt),Y=u([].join),B=u([].push),V=u("".replace),K=u("".split),J=u("".toLowerCase),Z=function(q){for(var tt=[],et=0,lt=q.length;et<lt;){var vt=z(q,et++);if(vt>=55296&&vt<=56319&&et<lt){var ft=z(q,et++);(ft&64512)===56320?B(tt,((vt&1023)<<10)+(ft&1023)+65536):(B(tt,vt),et--)}else B(tt,vt)}return tt},_=function(q){return q+22+75*(q<26)},nt=function(q,tt,et){var lt=0;for(q=et?j(q/$):q>>1,q+=j(q/tt);q>D*y>>1;)q=j(q/D),lt+=h;return j(lt+(D+1)*q/(q+T))},rt=function(q){var tt=[];q=Z(q);var et=q.length,lt=b,vt=0,ft=A,bt,yt;for(bt=0;bt<q.length;bt++)yt=q[bt],yt<128&&B(tt,U(yt));var Ft=tt.length,Lt=Ft;for(Ft&&B(tt,R);Lt<et;){var jt=d;for(bt=0;bt<q.length;bt++)yt=q[bt],yt>=lt&&yt<jt&&(jt=yt);var Kt=Lt+1;if(jt-lt>j((d-vt)/Kt))throw new L(w);for(vt+=(jt-lt)*Kt,lt=jt,bt=0;bt<q.length;bt++){if(yt=q[bt],yt<lt&&++vt>d)throw new L(w);if(yt===lt){for(var Jt=vt,ge=h;;){var le=ge<=ft?p:ge>=ft+y?y:ge-ft;if(Jt<le)break;var ee=Jt-le,Mt=h-le;B(tt,U(_(le+ee%Mt))),Jt=j(ee/Mt),ge+=h}B(tt,U(_(Jt))),ft=nt(vt,Kt,Lt===Ft),vt=0,Lt++}}vt++,lt++}return Y(tt,"")};x.exports=function(q){var tt=[],et=K(V(J(q),C,"."),"."),lt,vt;for(lt=0;lt<et.length;lt++)vt=et[lt],B(tt,F(O,vt)?"xn--"+rt(vt):vt);return Y(tt,".")}},function(x,E,r){r(168);var u=r(3),d=r(4),h=r(345),p=r(8),y=r(14),T=r(6),$=r(550),A=r(47),b=r(77),R=r(209),O=r(82),C=r(170),w=r(51),D=r(210),L=r(21),F=r(38),j=r(84),U=r(69),z=r(46),Y=r(20),B=r(68),V=r(71),K=r(11),J=r(133),Z=r(134),_=r(172),nt=r(342),rt=r(33),q=r(188),tt=rt("iterator"),et="URLSearchParams",lt=et+"Iterator",vt=w.set,ft=w.getterFor(et),bt=w.getterFor(lt),yt=h("fetch"),Ft=h("Request"),Lt=h("Headers"),jt=Ft&&Ft.prototype,Kt=Lt&&Lt.prototype,Jt=d.RegExp,ge=d.TypeError,le=d.decodeURIComponent,ee=d.encodeURIComponent,Mt=y("".charAt),zt=y([].join),te=y([].push),ae=y("".replace),re=y([].shift),oe=y([].splice),Re=y("".split),Ce=y("".slice),xe=/\+/g,se=Array(4),Ae=function(ot){return se[ot-1]||(se[ot-1]=Jt("((?:%[\\da-f]{2}){"+ot+"})","gi"))},me=function(ot){try{return le(ot)}catch(gt){return ot}},ce=function(ot){var gt=ae(ot,xe," "),ct=4;try{return le(gt)}catch(Nt){for(;ct;)gt=ae(gt,Ae(ct--),me);return gt}},Et=/[!'()~]|%20/g,Bt={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},$t=function(ot){return Bt[ot]},kt=function(ot){return ae(ee(ot),Et,$t)},Qt=C(function(gt,ct){vt(this,{type:lt,target:ft(gt).entries,index:0,kind:ct})},et,function(){var gt=bt(this),ct=gt.target,Nt=gt.index++;if(!ct||Nt>=ct.length)return gt.target=void 0,_(void 0,!0);var qt=ct[Nt];switch(gt.kind){case"keys":return _(qt.key,!1);case"values":return _(qt.value,!1)}return _([qt.key,qt.value],!1)},!0),Vt=function(ot){this.entries=[],this.url=null,ot!==void 0&&(Y(ot)?this.parseObject(ot):this.parseQuery(typeof ot=="string"?Mt(ot,0)==="?"?Ce(ot,1):ot:B(ot)))};Vt.prototype={type:et,bindURL:function(ot){this.url=ot,this.update()},parseObject:function(ot){var gt=this.entries,ct=Z(ot),Nt,qt,ie,Te,$e,ye,sn;if(ct)for(Nt=J(ot,ct),qt=Nt.next;!(ie=p(qt,Nt)).done;){if(Te=J(z(ie.value)),$e=Te.next,(ye=p($e,Te)).done||(sn=p($e,Te)).done||!p($e,Te).done)throw new ge("Expected sequence with length 2");te(gt,{key:B(ye.value),value:B(sn.value)})}else for(var fr in ot)F(ot,fr)&&te(gt,{key:fr,value:B(ot[fr])})},parseQuery:function(ot){if(ot)for(var gt=this.entries,ct=Re(ot,"&"),Nt=0,qt,ie;Nt<ct.length;)qt=ct[Nt++],qt.length&&(ie=Re(qt,"="),te(gt,{key:ce(re(ie)),value:ce(zt(ie,"="))}))},serialize:function(){for(var ot=this.entries,gt=[],ct=0,Nt;ct<ot.length;)Nt=ot[ct++],te(gt,kt(Nt.key)+"="+kt(Nt.value));return zt(gt,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Ut=function(){D(this,we);var gt=arguments.length>0?arguments[0]:void 0,ct=vt(this,new Vt(gt));T||(this.size=ct.entries.length)},we=Ut.prototype;if(R(we,{append:function(gt,ct){var Nt=ft(this);nt(arguments.length,2),te(Nt.entries,{key:B(gt),value:B(ct)}),T||this.length++,Nt.updateURL()},delete:function(ot){for(var gt=ft(this),ct=nt(arguments.length,1),Nt=gt.entries,qt=B(ot),ie=ct<2?void 0:arguments[1],Te=ie===void 0?ie:B(ie),$e=0;$e<Nt.length;){var ye=Nt[$e];if(ye.key===qt&&(Te===void 0||ye.value===Te)){if(oe(Nt,$e,1),Te!==void 0)break}else $e++}T||(this.size=Nt.length),gt.updateURL()},get:function(gt){var ct=ft(this).entries;nt(arguments.length,1);for(var Nt=B(gt),qt=0;qt<ct.length;qt++)if(ct[qt].key===Nt)return ct[qt].value;return null},getAll:function(gt){var ct=ft(this).entries;nt(arguments.length,1);for(var Nt=B(gt),qt=[],ie=0;ie<ct.length;ie++)ct[ie].key===Nt&&te(qt,ct[ie].value);return qt},has:function(gt){for(var ct=ft(this).entries,Nt=nt(arguments.length,1),qt=B(gt),ie=Nt<2?void 0:arguments[1],Te=ie===void 0?ie:B(ie),$e=0;$e<ct.length;){var ye=ct[$e++];if(ye.key===qt&&(Te===void 0||ye.value===Te))return!0}return!1},set:function(gt,ct){var Nt=ft(this);nt(arguments.length,1);for(var qt=Nt.entries,ie=!1,Te=B(gt),$e=B(ct),ye=0,sn;ye<qt.length;ye++)sn=qt[ye],sn.key===Te&&(ie?oe(qt,ye--,1):(ie=!0,sn.value=$e));ie||te(qt,{key:Te,value:$e}),T||(this.size=qt.length),Nt.updateURL()},sort:function(){var gt=ft(this);q(gt.entries,function(ct,Nt){return ct.key>Nt.key?1:-1}),gt.updateURL()},forEach:function(gt){for(var ct=ft(this).entries,Nt=j(gt,arguments.length>1?arguments[1]:void 0),qt=0,ie;qt<ct.length;)ie=ct[qt++],Nt(ie.value,ie.key,this)},keys:function(){return new Qt(this,"keys")},values:function(){return new Qt(this,"values")},entries:function(){return new Qt(this,"entries")}},{enumerable:!0}),A(we,tt,we.entries,{name:"entries"}),A(we,"toString",function(){return ft(this).serialize()},{enumerable:!0}),T&&b(we,"size",{get:function(){return ft(this).entries.length},configurable:!0,enumerable:!0}),O(Ut,et),u({global:!0,constructor:!0,forced:!$},{URLSearchParams:Ut}),!$&&L(Lt)){var Ye=y(Kt.has),dt=y(Kt.set),Ot=function(ot){if(Y(ot)){var gt=ot.body,ct;if(U(gt)===et)return ct=ot.headers?new Lt(ot.headers):new Lt,Ye(ct,"content-type")||dt(ct,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),V(ot,{body:K(0,B(gt)),headers:K(0,ct)})}return ot};if(L(yt)&&u({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(gt){return yt(gt,arguments.length>1?Ot(arguments[1]):{})}}),L(Ft)){var Pt=function(gt){return D(this,jt),new Ft(gt,arguments.length>1?Ot(arguments[1]):{})};jt.constructor=Pt,Pt.prototype=jt,u({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Pt})}}x.exports={URLSearchParams:Ut,getState:ft}},function(x,E,r){var u=r(3),d=r(23),h=r(7),p=r(342),y=r(68),T=r(550),$=d("URL"),A=T&&h(function(){$.canParse()}),b=h(function(){return $.canParse.length!==1});u({target:"URL",stat:!0,forced:!A||b},{canParse:function(O){var C=p(arguments.length,1),w=y(O),D=C<2||arguments[1]===void 0?void 0:y(arguments[1]);try{return!!new $(w,D)}catch(L){return!1}}})},function(x,E,r){var u=r(3),d=r(23),h=r(342),p=r(68),y=r(550),T=d("URL");u({target:"URL",stat:!0,forced:!y},{parse:function(A){var b=h(arguments.length,1),R=p(A),O=b<2||arguments[1]===void 0?void 0:p(arguments[1]);try{return new T(R,O)}catch(C){return null}}})},function(x,E,r){var u=r(3),d=r(8);u({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return d(URL.prototype.toString,this)}})},function(x,E,r){r(552)},function(x,E,r){var u=r(47),d=r(14),h=r(68),p=r(342),y=URLSearchParams,T=y.prototype,$=d(T.append),A=d(T.delete),b=d(T.forEach),R=d([].push),O=new y("a=1&a=2&b=3");O.delete("a",1),O.delete("b",void 0),O+""!="a=2"&&u(T,"delete",function(C){var w=arguments.length,D=w<2?void 0:arguments[1];if(w&&D===void 0)return A(this,C);var L=[];b(this,function(K,J){R(L,{key:J,value:K})}),p(w,1);for(var F=h(C),j=h(D),U=0,z=0,Y=!1,B=L.length,V;U<B;)V=L[U++],Y||V.key===F?(Y=!0,A(this,V.key)):z++;for(;z<B;)V=L[z++],V.key===F&&V.value===j||$(this,V.key,V.value)},{enumerable:!0,unsafe:!0})},function(x,E,r){var u=r(47),d=r(14),h=r(68),p=r(342),y=URLSearchParams,T=y.prototype,$=d(T.getAll),A=d(T.has),b=new y("a=1");(b.has("a",2)||!b.has("a",void 0))&&u(T,"has",function(O){var C=arguments.length,w=C<2?void 0:arguments[1];if(C&&w===void 0)return A(this,O);var D=$(this,O);p(C,1);for(var L=h(w),F=0;F<D.length;)if(D[F++]===L)return!0;return!1},{enumerable:!0,unsafe:!0})},function(x,E,r){var u=r(6),d=r(14),h=r(77),p=URLSearchParams.prototype,y=d(p.forEach);u&&!("size"in p)&&h(p,"size",{get:function(){var $=0;return y(this,function(){$++}),$},configurable:!0,enumerable:!0})},function(x,E,r){r.r(E),r.d(E,{bb:function(){return Tf},default:function(){return Tf}});var u={};r.r(u),r.d(u,{selection:function(){return du},subchart:function(){return hu},zoom:function(){return gu}});var d={};r.r(d),r.d(d,{area:function(){return tf},areaLineRange:function(){return ef},areaSpline:function(){return nf},areaSplineRange:function(){return rf},areaStep:function(){return af},bar:function(){return gf},bubble:function(){return vf},candlestick:function(){return pf},donut:function(){return cf},funnel:function(){return yf},gauge:function(){return uf},line:function(){return sf},pie:function(){return ff},polar:function(){return df},radar:function(){return hf},scatter:function(){return mf},spline:function(){return of},step:function(){return lf},treemap:function(){return xf}});function h(){}function p(t){return t==null?h:function(){return this.querySelector(t)}}function y(t){typeof t!="function"&&(t=p(t));for(var e=this._groups,n=e.length,a=new Array(n),i=0;i<n;++i)for(var s=e[i],o=s.length,l=a[i]=new Array(o),c,f,g=0;g<o;++g)(c=s[g])&&(f=t.call(c,c.__data__,g,s))&&("__data__"in c&&(f.__data__=c.__data__),l[g]=f);return new Ee(a,this._parents)}function T(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function $(){return[]}function A(t){return t==null?$:function(){return this.querySelectorAll(t)}}function b(t){return function(){return T(t.apply(this,arguments))}}function R(t){typeof t=="function"?t=b(t):t=A(t);for(var e=this._groups,n=e.length,a=[],i=[],s=0;s<n;++s)for(var o=e[s],l=o.length,c,f=0;f<l;++f)(c=o[f])&&(a.push(t.call(c,c.__data__,f,o)),i.push(c));return new Ee(a,i)}function O(t){return function(){return this.matches(t)}}function C(t){return function(e){return e.matches(t)}}var w=Array.prototype.find;function D(t){return function(){return w.call(this.children,t)}}function L(){return this.firstElementChild}function F(t){return this.select(t==null?L:D(typeof t=="function"?t:C(t)))}var j=Array.prototype.filter;function U(){return Array.from(this.children)}function z(t){return function(){return j.call(this.children,t)}}function Y(t){return this.selectAll(t==null?U:z(typeof t=="function"?t:C(t)))}function B(t){typeof t!="function"&&(t=O(t));for(var e=this._groups,n=e.length,a=new Array(n),i=0;i<n;++i)for(var s=e[i],o=s.length,l=a[i]=[],c,f=0;f<o;++f)(c=s[f])&&t.call(c,c.__data__,f,s)&&l.push(c);return new Ee(a,this._parents)}function V(t){return new Array(t.length)}function K(){return new Ee(this._enter||this._groups.map(V),this._parents)}function J(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}J.prototype={constructor:J,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)}};function Z(t){return function(){return t}}function _(t,e,n,a,i,s){for(var o=0,l,c=e.length,f=s.length;o<f;++o)(l=e[o])?(l.__data__=s[o],a[o]=l):n[o]=new J(t,s[o]);for(;o<c;++o)(l=e[o])&&(i[o]=l)}function nt(t,e,n,a,i,s,o){var l,c,f=new Map,g=e.length,v=s.length,m=new Array(g),S;for(l=0;l<g;++l)(c=e[l])&&(m[l]=S=o.call(c,c.__data__,l,e)+"",f.has(S)?i[l]=c:f.set(S,c));for(l=0;l<v;++l)S=o.call(t,s[l],l,s)+"",(c=f.get(S))?(a[l]=c,c.__data__=s[l],f.delete(S)):n[l]=new J(t,s[l]);for(l=0;l<g;++l)(c=e[l])&&f.get(m[l])===c&&(i[l]=c)}function rt(t){return t.__data__}function q(t,e){if(!arguments.length)return Array.from(this,rt);var n=e?nt:_,a=this._parents,i=this._groups;typeof t!="function"&&(t=Z(t));for(var s=i.length,o=new Array(s),l=new Array(s),c=new Array(s),f=0;f<s;++f){var g=a[f],v=i[f],m=v.length,S=tt(t.call(g,g&&g.__data__,f,a)),I=S.length,N=l[f]=new Array(I),M=o[f]=new Array(I),P=c[f]=new Array(m);n(g,v,N,M,P,S,e);for(var X=0,W=0,G,k;X<I;++X)if(G=N[X]){for(X>=W&&(W=X+1);!(k=M[W])&&++W<I;);G._next=k||null}}return o=new Ee(o,a),o._enter=l,o._exit=c,o}function tt(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function et(){return new Ee(this._exit||this._groups.map(V),this._parents)}function lt(t,e,n){var a=this.enter(),i=this,s=this.exit();return typeof t=="function"?(a=t(a),a&&(a=a.selection())):a=a.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?s.remove():n(s),a&&i?a.merge(i).order():i}function vt(t){for(var e=t.selection?t.selection():t,n=this._groups,a=e._groups,i=n.length,s=a.length,o=Math.min(i,s),l=new Array(i),c=0;c<o;++c)for(var f=n[c],g=a[c],v=f.length,m=l[c]=new Array(v),S,I=0;I<v;++I)(S=f[I]||g[I])&&(m[I]=S);for(;c<i;++c)l[c]=n[c];return new Ee(l,this._parents)}function ft(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var a=t[e],i=a.length-1,s=a[i],o;--i>=0;)(o=a[i])&&(s&&o.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(o,s),s=o);return this}function bt(t){t||(t=yt);function e(v,m){return v&&m?t(v.__data__,m.__data__):!v-!m}for(var n=this._groups,a=n.length,i=new Array(a),s=0;s<a;++s){for(var o=n[s],l=o.length,c=i[s]=new Array(l),f,g=0;g<l;++g)(f=o[g])&&(c[g]=f);c.sort(e)}return new Ee(i,this._parents).order()}function yt(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Ft(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Lt(){return Array.from(this)}function jt(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var a=t[e],i=0,s=a.length;i<s;++i){var o=a[i];if(o)return o}return null}function Kt(){let t=0;for(const e of this)++t;return t}function Jt(){return!this.node()}function ge(t){for(var e=this._groups,n=0,a=e.length;n<a;++n)for(var i=e[n],s=0,o=i.length,l;s<o;++s)(l=i[s])&&t.call(l,l.__data__,s,i);return this}var le="http://www.w3.org/1999/xhtml",ee={svg:"http://www.w3.org/2000/svg",xhtml:le,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Mt(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),ee.hasOwnProperty(e)?{space:ee[e],local:t}:t}function zt(t){return function(){this.removeAttribute(t)}}function te(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ae(t,e){return function(){this.setAttribute(t,e)}}function re(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function oe(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Re(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Ce(t,e){var n=Mt(t);if(arguments.length<2){var a=this.node();return n.local?a.getAttributeNS(n.space,n.local):a.getAttribute(n)}return this.each((e==null?n.local?te:zt:typeof e=="function"?n.local?Re:oe:n.local?re:ae)(n,e))}function xe(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function se(t){return function(){this.style.removeProperty(t)}}function Ae(t,e,n){return function(){this.style.setProperty(t,e,n)}}function me(t,e,n){return function(){var a=e.apply(this,arguments);a==null?this.style.removeProperty(t):this.style.setProperty(t,a,n)}}function ce(t,e,n){return arguments.length>1?this.each((e==null?se:typeof e=="function"?me:Ae)(t,e,n==null?"":n)):Et(this.node(),t)}function Et(t,e){return t.style.getPropertyValue(e)||xe(t).getComputedStyle(t,null).getPropertyValue(e)}function Bt(t){return function(){delete this[t]}}function $t(t,e){return function(){this[t]=e}}function kt(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Qt(t,e){return arguments.length>1?this.each((e==null?Bt:typeof e=="function"?kt:$t)(t,e)):this.node()[t]}function Vt(t){return t.trim().split(/^|\s+/)}function Ut(t){return t.classList||new we(t)}function we(t){this._node=t,this._names=Vt(t.getAttribute("class")||"")}we.prototype={add:function(t){var e=this._names.indexOf(t);e<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}};function Ye(t,e){for(var n=Ut(t),a=-1,i=e.length;++a<i;)n.add(e[a])}function dt(t,e){for(var n=Ut(t),a=-1,i=e.length;++a<i;)n.remove(e[a])}function Ot(t){return function(){Ye(this,t)}}function Pt(t){return function(){dt(this,t)}}function ot(t,e){return function(){(e.apply(this,arguments)?Ye:dt)(this,t)}}function gt(t,e){var n=Vt(t+"");if(arguments.length<2){for(var a=Ut(this.node()),i=-1,s=n.length;++i<s;)if(!a.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?ot:e?Ot:Pt)(n,e))}function ct(){this.textContent=""}function Nt(t){return function(){this.textContent=t}}function qt(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function ie(t){return arguments.length?this.each(t==null?ct:(typeof t=="function"?qt:Nt)(t)):this.node().textContent}function Te(){this.innerHTML=""}function $e(t){return function(){this.innerHTML=t}}function ye(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function sn(t){return arguments.length?this.each(t==null?Te:(typeof t=="function"?ye:$e)(t)):this.node().innerHTML}function fr(){this.nextSibling&&this.parentNode.appendChild(this)}function zr(){return this.each(fr)}function jr(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ca(){return this.each(jr)}function ua(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===le&&e.documentElement.namespaceURI===le?e.createElement(t):e.createElementNS(n,t)}}function fa(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Gr(t){var e=Mt(t);return(e.local?fa:ua)(e)}function Ya(t){var e=typeof t=="function"?t:Gr(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function da(){return null}function dr(t,e){var n=typeof t=="function"?t:Gr(t),a=e==null?da:typeof e=="function"?e:p(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),a.apply(this,arguments)||null)})}function Fn(){var t=this.parentNode;t&&t.removeChild(this)}function Ha(){return this.each(Fn)}function qn(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function jn(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ha(t){return this.select(t?jn:qn)}function hr(t){return arguments.length?this.property("__data__",t):this.node().__data__}function vn(t){return function(e){t.call(this,e,this.__data__)}}function Rn(t){return t.trim().split(/^|\s+/).map(function(e){var n="",a=e.indexOf(".");return a>=0&&(n=e.slice(a+1),e=e.slice(0,a)),{type:e,name:n}})}function Wa(t){return function(){var e=this.__on;if(e){for(var n=0,a=-1,i=e.length,s;n<i;++n)s=e[n],(!t.type||s.type===t.type)&&s.name===t.name?this.removeEventListener(s.type,s.listener,s.options):e[++a]=s;++a?e.length=a:delete this.__on}}}function Ka(t,e,n){return function(){var a=this.__on,i,s=vn(e);if(a){for(var o=0,l=a.length;o<l;++o)if((i=a[o]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=s,i.options=n),i.value=e;return}}this.addEventListener(t.type,s,n),i={type:t.type,name:t.name,value:e,listener:s,options:n},a?a.push(i):this.__on=[i]}}function ut(t,e,n){var a=Rn(t+""),i,s=a.length,o;if(arguments.length<2){var l=this.node().__on;if(l){for(var c=0,f=l.length,g;c<f;++c)for(i=0,g=l[c];i<s;++i)if((o=a[i]).type===g.type&&o.name===g.name)return g.value}return}for(l=e?Ka:Wa,i=0;i<s;++i)this.each(l(a[i],e,n));return this}function wt(t,e,n){var a=xe(t),i=a.CustomEvent;typeof i=="function"?i=new i(e,n):(i=a.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function pt(t,e){return function(){return wt(this,t,e)}}function it(t,e){return function(){return wt(this,t,e.apply(this,arguments))}}function Rt(t,e){return this.each((typeof e=="function"?it:pt)(t,e))}function*ve(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var a=t[e],i=0,s=a.length,o;i<s;++i)(o=a[i])&&(yield o)}var _t=[null];function Ee(t,e){this._groups=t,this._parents=e}function Qe(){return new Ee([[document.documentElement]],_t)}function un(){return this}Ee.prototype=Qe.prototype={constructor:Ee,select:y,selectAll:R,selectChild:F,selectChildren:Y,filter:B,data:q,enter:K,exit:et,join:lt,merge:vt,selection:un,order:ft,sort:bt,call:Ft,nodes:Lt,node:jt,size:Kt,empty:Jt,each:ge,attr:Ce,style:ce,property:Qt,classed:gt,text:ie,html:sn,raise:zr,lower:ca,append:Ya,insert:dr,remove:Ha,clone:ha,datum:hr,on:ut,dispatch:Rt,[Symbol.iterator]:ve};var dn=Qe;function st(t){return typeof t=="string"?new Ee([[document.querySelector(t)]],[document.documentElement]):new Ee([[t]],_t)}const _e=new Date,wn=new Date;function Je(t,e,n,a){function i(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const o=i(s),l=i.ceil(s);return s-o<l-s?o:l},i.offset=(s,o)=>(e(s=new Date(+s),o==null?1:Math.floor(o)),s),i.range=(s,o,l)=>{const c=[];if(s=i.ceil(s),l=l==null?1:Math.floor(l),!(s<o)||!(l>0))return c;let f;do c.push(f=new Date(+s)),e(s,l),t(s);while(f<s&&s<o);return c},i.filter=s=>Je(o=>{if(o>=o)for(;t(o),!s(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;e(o,-1),!s(o););else for(;--l>=0;)for(;e(o,1),!s(o););}),n&&(i.count=(s,o)=>(_e.setTime(+s),wn.setTime(+o),t(_e),t(wn),Math.floor(n(_e,wn))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(a?o=>a(o)%s===0:o=>i.count(0,o)%s===0):i)),i}const Bn=1e3,Sn=Bn*60,Mn=Sn*60,tr=Mn*24,qi=tr*7,Io=tr*30,ts=tr*365;function $r(t){return Je(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*Sn)/qi)}const Za=$r(0),ka=$r(1),Sf=$r(2),Af=$r(3),Xr=$r(4),bf=$r(5),Ef=$r(6),T0=Za.range,$0=ka.range,S0=Sf.range,A0=Af.range,b0=Xr.range,E0=bf.range,R0=Ef.range;function Sr(t){return Je(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/qi)}const Ja=Sr(0),Qa=Sr(1),Rf=Sr(2),Of=Sr(3),Vr=Sr(4),If=Sr(5),Cf=Sr(6),O0=Ja.range,I0=Qa.range,C0=Rf.range,P0=Of.range,w0=Vr.range,M0=If.range,L0=Cf.range,ga=Je(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Sn)/tr,t=>t.getDate()-1),D0=ga.range,_a=Je(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/tr,t=>t.getUTCDate()-1),N0=_a.range,Co=Je(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/tr,t=>Math.floor(t/tr)),F0=Co.range,er=Je(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());er.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Je(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});const B0=er.range,nr=Je(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());nr.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Je(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});const U0=nr.range;function es(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 ns(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 va(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Pf(t){var e=t.dateTime,n=t.date,a=t.time,i=t.periods,s=t.days,o=t.shortDays,l=t.months,c=t.shortMonths,f=pa(i),g=ma(i),v=pa(s),m=ma(s),S=pa(o),I=ma(o),N=pa(l),M=ma(l),P=pa(c),X=ma(c),W={a:It,A:Yt,b:Xt,B:Zt,c:null,d:No,e:No,f:qf,g:cd,G:fd,H:Jf,I:Qf,j:_f,L:Fo,m:td,M:ed,p:Wt,q:ne,Q:Xo,s:Vo,S:nd,u:rd,U:ad,V:id,w:sd,W:od,x:null,X:null,y:ld,Y:ud,Z:dd,"%":Go},G={a:je,A:Oe,b:Ge,B:cn,c:null,d:Uo,e:Uo,f:pd,g:Rd,G:Id,H:hd,I:gd,j:vd,L:zo,m:md,M:yd,p:Le,q:ln,Q:Xo,s:Vo,S:xd,u:Td,U:$d,V:Sd,w:Ad,W:bd,x:null,X:null,y:Ed,Y:Od,Z:Cd,"%":Go},k={a:St,A:Tt,b:Gt,B:xt,c:Q,d:Lo,e:Lo,f:Wf,g:Mo,G:wo,H:Do,I:Do,j:Xf,L:Hf,m:Gf,M:Vf,p:At,q:jf,Q:Zf,s:kf,S:Yf,u:Nf,U:Ff,V:Bf,w:Df,W:Uf,x:Ct,X:ht,y:Mo,Y:wo,Z:zf,"%":Kf};W.x=H(n,W),W.X=H(a,W),W.c=H(e,W),G.x=H(n,G),G.X=H(a,G),G.c=H(e,G);function H(Ht,pe){return function(be){var Dt=[],rn=-1,Ue=0,bn=Ht.length,En,de,an;for(be instanceof Date||(be=new Date(+be));++rn<bn;)Ht.charCodeAt(rn)===37&&(Dt.push(Ht.slice(Ue,rn)),(de=Po[En=Ht.charAt(++rn)])!=null?En=Ht.charAt(++rn):de=En==="e"?" ":"0",(an=pe[En])&&(En=an(be,de)),Dt.push(En),Ue=rn+1);return Dt.push(Ht.slice(Ue,rn)),Dt.join("")}}function at(Ht,pe){return function(be){var Dt=va(1900,void 0,1),rn=mt(Dt,Ht,be+="",0),Ue,bn;if(rn!=be.length)return null;if("Q"in Dt)return new Date(Dt.Q);if("s"in Dt)return new Date(Dt.s*1e3+("L"in Dt?Dt.L:0));if(pe&&!("Z"in Dt)&&(Dt.Z=0),"p"in Dt&&(Dt.H=Dt.H%12+Dt.p*12),Dt.m===void 0&&(Dt.m="q"in Dt?Dt.q:0),"V"in Dt){if(Dt.V<1||Dt.V>53)return null;"w"in Dt||(Dt.w=1),"Z"in Dt?(Ue=ns(va(Dt.y,0,1)),bn=Ue.getUTCDay(),Ue=bn>4||bn===0?Qa.ceil(Ue):Qa(Ue),Ue=_a.offset(Ue,(Dt.V-1)*7),Dt.y=Ue.getUTCFullYear(),Dt.m=Ue.getUTCMonth(),Dt.d=Ue.getUTCDate()+(Dt.w+6)%7):(Ue=es(va(Dt.y,0,1)),bn=Ue.getDay(),Ue=bn>4||bn===0?ka.ceil(Ue):ka(Ue),Ue=ga.offset(Ue,(Dt.V-1)*7),Dt.y=Ue.getFullYear(),Dt.m=Ue.getMonth(),Dt.d=Ue.getDate()+(Dt.w+6)%7)}else("W"in Dt||"U"in Dt)&&("w"in Dt||(Dt.w="u"in Dt?Dt.u%7:"W"in Dt?1:0),bn="Z"in Dt?ns(va(Dt.y,0,1)).getUTCDay():es(va(Dt.y,0,1)).getDay(),Dt.m=0,Dt.d="W"in Dt?(Dt.w+6)%7+Dt.W*7-(bn+5)%7:Dt.w+Dt.U*7-(bn+6)%7);return"Z"in Dt?(Dt.H+=Dt.Z/100|0,Dt.M+=Dt.Z%100,ns(Dt)):es(Dt)}}function mt(Ht,pe,be,Dt){for(var rn=0,Ue=pe.length,bn=be.length,En,de;rn<Ue;){if(Dt>=bn)return-1;if(En=pe.charCodeAt(rn++),En===37){if(En=pe.charAt(rn++),de=k[En in Po?pe.charAt(rn++):En],!de||(Dt=de(Ht,be,Dt))<0)return-1}else if(En!=be.charCodeAt(Dt++))return-1}return Dt}function At(Ht,pe,be){var Dt=f.exec(pe.slice(be));return Dt?(Ht.p=g.get(Dt[0].toLowerCase()),be+Dt[0].length):-1}function St(Ht,pe,be){var Dt=S.exec(pe.slice(be));return Dt?(Ht.w=I.get(Dt[0].toLowerCase()),be+Dt[0].length):-1}function Tt(Ht,pe,be){var Dt=v.exec(pe.slice(be));return Dt?(Ht.w=m.get(Dt[0].toLowerCase()),be+Dt[0].length):-1}function Gt(Ht,pe,be){var Dt=P.exec(pe.slice(be));return Dt?(Ht.m=X.get(Dt[0].toLowerCase()),be+Dt[0].length):-1}function xt(Ht,pe,be){var Dt=N.exec(pe.slice(be));return Dt?(Ht.m=M.get(Dt[0].toLowerCase()),be+Dt[0].length):-1}function Q(Ht,pe,be){return mt(Ht,e,pe,be)}function Ct(Ht,pe,be){return mt(Ht,n,pe,be)}function ht(Ht,pe,be){return mt(Ht,a,pe,be)}function It(Ht){return o[Ht.getDay()]}function Yt(Ht){return s[Ht.getDay()]}function Xt(Ht){return c[Ht.getMonth()]}function Zt(Ht){return l[Ht.getMonth()]}function Wt(Ht){return i[+(Ht.getHours()>=12)]}function ne(Ht){return 1+~~(Ht.getMonth()/3)}function je(Ht){return o[Ht.getUTCDay()]}function Oe(Ht){return s[Ht.getUTCDay()]}function Ge(Ht){return c[Ht.getUTCMonth()]}function cn(Ht){return l[Ht.getUTCMonth()]}function Le(Ht){return i[+(Ht.getUTCHours()>=12)]}function ln(Ht){return 1+~~(Ht.getUTCMonth()/3)}return{format:function(Ht){var pe=H(Ht+="",W);return pe.toString=function(){return Ht},pe},parse:function(Ht){var pe=at(Ht+="",!1);return pe.toString=function(){return Ht},pe},utcFormat:function(Ht){var pe=H(Ht+="",G);return pe.toString=function(){return Ht},pe},utcParse:function(Ht){var pe=at(Ht+="",!0);return pe.toString=function(){return Ht},pe}}}var Po={"-":"",_:" ",0:"0"},hn=/^\s*\d+/,wf=/^%/,Mf=/[\\^$*+?|[\]().{}]/g;function Me(t,e,n){var a=t<0?"-":"",i=(a?-t:t)+"",s=i.length;return a+(s<n?new Array(n-s+1).join(e)+i:i)}function Lf(t){return t.replace(Mf,"\\$&")}function pa(t){return new RegExp("^(?:"+t.map(Lf).join("|")+")","i")}function ma(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function Df(t,e,n){var a=hn.exec(e.slice(n,n+1));return a?(t.w=+a[0],n+a[0].length):-1}function Nf(t,e,n){var a=hn.exec(e.slice(n,n+1));return a?(t.u=+a[0],n+a[0].length):-1}function Ff(t,e,n){var a=hn.exec(e.slice(n,n+2));return a?(t.U=+a[0],n+a[0].length):-1}function Bf(t,e,n){var a=hn.exec(e.slice(n,n+2));return a?(t.V=+a[0],n+a[0].length):-1}function Uf(t,e,n){var a=hn.exec(e.slice(n,n+2));return a?(t.W=+a[0],n+a[0].length):-1}function wo(t,e,n){var a=hn.exec(e.slice(n,n+4));return a?(t.y=+a[0],n+a[0].length):-1}function Mo(t,e,n){var a=hn.exec(e.slice(n,n+2));return a?(t.y=+a[0]+(+a[0]>68?1900:2e3),n+a[0].length):-1}function zf(t,e,n){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return a?(t.Z=a[1]?0:-(a[2]+(a[3]||"00")),n+a[0].length):-1}function jf(t,e,n){var a=hn.exec(e.slice(n,n+1));return a?(t.q=a[0]*3-3,n+a[0].length):-1}function Gf(t,e,n){var a=hn.exec(e.slice(n,n+2));return a?(t.m=a[0]-1,n+a[0].length):-1}function Lo(t,e,n){var a=hn.exec(e.slice(n,n+2));return a?(t.d=+a[0],n+a[0].length):-1}function Xf(t,e,n){var a=hn.exec(e.slice(n,n+3));return a?(t.m=0,t.d=+a[0],n+a[0].length):-1}function Do(t,e,n){var a=hn.exec(e.slice(n,n+2));return a?(t.H=+a[0],n+a[0].length):-1}function Vf(t,e,n){var a=hn.exec(e.slice(n,n+2));return a?(t.M=+a[0],n+a[0].length):-1}function Yf(t,e,n){var a=hn.exec(e.slice(n,n+2));return a?(t.S=+a[0],n+a[0].length):-1}function Hf(t,e,n){var a=hn.exec(e.slice(n,n+3));return a?(t.L=+a[0],n+a[0].length):-1}function Wf(t,e,n){var a=hn.exec(e.slice(n,n+6));return a?(t.L=Math.floor(a[0]/1e3),n+a[0].length):-1}function Kf(t,e,n){var a=wf.exec(e.slice(n,n+1));return a?n+a[0].length:-1}function Zf(t,e,n){var a=hn.exec(e.slice(n));return a?(t.Q=+a[0],n+a[0].length):-1}function kf(t,e,n){var a=hn.exec(e.slice(n));return a?(t.s=+a[0],n+a[0].length):-1}function No(t,e){return Me(t.getDate(),e,2)}function Jf(t,e){return Me(t.getHours(),e,2)}function Qf(t,e){return Me(t.getHours()%12||12,e,2)}function _f(t,e){return Me(1+ga.count(er(t),t),e,3)}function Fo(t,e){return Me(t.getMilliseconds(),e,3)}function qf(t,e){return Fo(t,e)+"000"}function td(t,e){return Me(t.getMonth()+1,e,2)}function ed(t,e){return Me(t.getMinutes(),e,2)}function nd(t,e){return Me(t.getSeconds(),e,2)}function rd(t){var e=t.getDay();return e===0?7:e}function ad(t,e){return Me(Za.count(er(t)-1,t),e,2)}function Bo(t){var e=t.getDay();return e>=4||e===0?Xr(t):Xr.ceil(t)}function id(t,e){return t=Bo(t),Me(Xr.count(er(t),t)+(er(t).getDay()===4),e,2)}function sd(t){return t.getDay()}function od(t,e){return Me(ka.count(er(t)-1,t),e,2)}function ld(t,e){return Me(t.getFullYear()%100,e,2)}function cd(t,e){return t=Bo(t),Me(t.getFullYear()%100,e,2)}function ud(t,e){return Me(t.getFullYear()%1e4,e,4)}function fd(t,e){var n=t.getDay();return t=n>=4||n===0?Xr(t):Xr.ceil(t),Me(t.getFullYear()%1e4,e,4)}function dd(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Me(e/60|0,"0",2)+Me(e%60,"0",2)}function Uo(t,e){return Me(t.getUTCDate(),e,2)}function hd(t,e){return Me(t.getUTCHours(),e,2)}function gd(t,e){return Me(t.getUTCHours()%12||12,e,2)}function vd(t,e){return Me(1+_a.count(nr(t),t),e,3)}function zo(t,e){return Me(t.getUTCMilliseconds(),e,3)}function pd(t,e){return zo(t,e)+"000"}function md(t,e){return Me(t.getUTCMonth()+1,e,2)}function yd(t,e){return Me(t.getUTCMinutes(),e,2)}function xd(t,e){return Me(t.getUTCSeconds(),e,2)}function Td(t){var e=t.getUTCDay();return e===0?7:e}function $d(t,e){return Me(Ja.count(nr(t)-1,t),e,2)}function jo(t){var e=t.getUTCDay();return e>=4||e===0?Vr(t):Vr.ceil(t)}function Sd(t,e){return t=jo(t),Me(Vr.count(nr(t),t)+(nr(t).getUTCDay()===4),e,2)}function Ad(t){return t.getUTCDay()}function bd(t,e){return Me(Qa.count(nr(t)-1,t),e,2)}function Ed(t,e){return Me(t.getUTCFullYear()%100,e,2)}function Rd(t,e){return t=jo(t),Me(t.getUTCFullYear()%100,e,2)}function Od(t,e){return Me(t.getUTCFullYear()%1e4,e,4)}function Id(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Vr(t):Vr.ceil(t),Me(t.getUTCFullYear()%1e4,e,4)}function Cd(){return"+0000"}function Go(){return"%"}function Xo(t){return+t}function Vo(t){return Math.floor(+t/1e3)}var Yr,rs,Yo,as,Ho;Pd({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"]});function Pd(t){return Yr=Pf(t),rs=Yr.format,Yo=Yr.parse,as=Yr.utcFormat,Ho=Yr.utcParse,Yr}var wd=Object.defineProperty,Wo=Object.getOwnPropertySymbols,Md=Object.prototype.hasOwnProperty,Ld=Object.prototype.propertyIsEnumerable,Ko=(t,e,n)=>e in t?wd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,He=(t,e)=>{for(var n in e||(e={}))Md.call(e,n)&&Ko(t,n,e[n]);if(Wo)for(var n of Wo(e))Ld.call(e,n)&&Ko(t,n,e[n]);return t};const Se={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_"},Be={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcRange:"bb-arc-range",arcs:"bb-arcs",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsTitle:"bb-chart-arcs-title",needle:"bb-needle"},qa={area:"bb-area",areas:"bb-areas"},on={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",axisXTooltip:"bb-axis-x-tooltip",axisYTooltip:"bb-axis-y-tooltip",axisY2Tooltip:"bb-axis-y2-tooltip"},Gn={bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars"},rr={candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"},pn={chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"},is={colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"},Ar={dragarea:"bb-dragarea",INCLUDED:"_included_"},ya={funnel:"bb-funnel",chartFunnel:"bb-chart-funnel",chartFunnels:"bb-chart-funnels",funnelBackground:"bb-funnel-background"},Ln={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"},Xe={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"},ar={chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"},Xn={eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"},We={focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"},qe={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"},gr={level:"bb-level",levels:"bb-levels"},Zo={chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"},xa={region:"bb-region",regions:"bb-regions"},ke={selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"},tn={shape:"bb-shape",shapes:"bb-shapes"},ko={brush:"bb-brush",subchart:"bb-subchart"},An={chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",TextOverlapping:"text-overlapping"},ti={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},Jo={treemap:"bb-treemap",chartTreemap:"bb-chart-treemap",chartTreemaps:"bb-chart-treemaps"},ss={buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"};var Ne=He(He(He(He(He(He(He(He(He(He(He(He(He(He(He(He(He(He(He(He(He(He(He(He(He({},Se),Be),qa),on),Gn),rr),pn),is),Ar),Ln),Xe),ar),Xn),We),ya),qe),Zo),xa),ke),tn),ko),An),ti),Jo),ss),Dd={boost_useCssRule:!1,boost_useWorker:!1},Nd={color_pattern:[],color_tiles:void 0,color_threshold:{},color_onover:void 0},Fd={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_format:void 0,legend_padding:0,legend_position:"bottom",legend_show:!0,legend_tooltip:!1,legend_usePoint:!1},Bd={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:[]},Ud={title_text:void 0,title_padding:{top:0,right:0,bottom:0,left:0},title_position:"center"},zd={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:()=>{},tooltip_onhide:()=>{},tooltip_onshown:()=>{},tooltip_onhidden:()=>{},tooltip_order:null},jd={data_x:void 0,data_idConverter:t=>t,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:()=>{},data_onover:()=>{},data_onout:()=>{},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:""},Gd={interaction_enabled:!0,interaction_brighten:!0,interaction_inputType_mouse:!0,interaction_inputType_touch:{}},Xd={value:()=>{}};function Qo(){for(var t=0,e=arguments.length,n={},a;t<e;++t){if(!(a=arguments[t]+"")||a in n||/[\s.]/.test(a))throw new Error("illegal type: "+a);n[a]=[]}return new ei(n)}function ei(t){this._=t}function Vd(t,e){return t.trim().split(/^|\s+/).map(function(n){var a="",i=n.indexOf(".");if(i>=0&&(a=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:a}})}ei.prototype=Qo.prototype={constructor:ei,on:function(t,e){var n=this._,a=Vd(t+"",n),i,s=-1,o=a.length;if(arguments.length<2){for(;++s<o;)if((i=(t=a[s]).type)&&(i=Yd(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++s<o;)if(i=(t=a[s]).type)n[i]=_o(n[i],t.name,e);else if(e==null)for(i in n)n[i]=_o(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new ei(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),a=0,i,s;a<i;++a)n[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=this._[t],a=0,i=s.length;a<i;++a)s[a].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var a=this._[t],i=0,s=a.length;i<s;++i)a[i].value.apply(e,n)}};function Yd(t,e){for(var n=0,a=t.length,i;n<a;++n)if((i=t[n]).name===e)return i.value}function _o(t,e,n){for(var a=0,i=t.length;a<i;++a)if(t[a].name===e){t[a]=Xd,t=t.slice(0,a).concat(t.slice(a+1));break}return n!=null&&t.push({name:e,value:n}),t}var ni=Qo;const Hd={passive:!1},Ta={capture:!0,passive:!1};function os(t){t.stopImmediatePropagation()}function Hr(t){t.preventDefault(),t.stopImmediatePropagation()}function ls(t){var e=t.document.documentElement,n=st(t).on("dragstart.drag",Hr,Ta);"onselectstart"in e?n.on("selectstart.drag",Hr,Ta):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function cs(t,e){var n=t.document.documentElement,a=st(t).on("dragstart.drag",null);e&&(a.on("click.drag",Hr,Ta),setTimeout(function(){a.on("click.drag",null)},0)),"onselectstart"in n?a.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function us(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function qo(t,e){var n=Object.create(t.prototype);for(var a in e)n[a]=e[a];return n}function $a(){}var Sa=.7,ri=1/Sa,Wr="\\s*([+-]?\\d+)\\s*",Aa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Zn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Wd=/^#([0-9a-f]{3,8})$/,Kd=new RegExp(`^rgb\\(${Wr},${Wr},${Wr}\\)$`),Zd=new RegExp(`^rgb\\(${Zn},${Zn},${Zn}\\)$`),kd=new RegExp(`^rgba\\(${Wr},${Wr},${Wr},${Aa}\\)$`),Jd=new RegExp(`^rgba\\(${Zn},${Zn},${Zn},${Aa}\\)$`),Qd=new RegExp(`^hsl\\(${Aa},${Zn},${Zn}\\)$`),_d=new RegExp(`^hsla\\(${Aa},${Zn},${Zn},${Aa}\\)$`),tl={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};us($a,br,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:el,formatHex:el,formatHex8:qd,formatHsl:th,formatRgb:nl,toString:nl});function el(){return this.rgb().formatHex()}function qd(){return this.rgb().formatHex8()}function th(){return ol(this).formatHsl()}function nl(){return this.rgb().formatRgb()}function br(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Wd.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?rl(e):n===3?new On(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?ai(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?ai(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Kd.exec(t))?new On(e[1],e[2],e[3],1):(e=Zd.exec(t))?new On(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=kd.exec(t))?ai(e[1],e[2],e[3],e[4]):(e=Jd.exec(t))?ai(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Qd.exec(t))?sl(e[1],e[2]/100,e[3]/100,1):(e=_d.exec(t))?sl(e[1],e[2]/100,e[3]/100,e[4]):tl.hasOwnProperty(t)?rl(tl[t]):t==="transparent"?new On(NaN,NaN,NaN,0):null}function rl(t){return new On(t>>16&255,t>>8&255,t&255,1)}function ai(t,e,n,a){return a<=0&&(t=e=n=NaN),new On(t,e,n,a)}function eh(t){return t instanceof $a||(t=br(t)),t?(t=t.rgb(),new On(t.r,t.g,t.b,t.opacity)):new On}function ii(t,e,n,a){return arguments.length===1?eh(t):new On(t,e,n,a==null?1:a)}function On(t,e,n,a){this.r=+t,this.g=+e,this.b=+n,this.opacity=+a}us(On,ii,qo($a,{brighter(t){return t=t==null?ri:Math.pow(ri,t),new On(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Sa:Math.pow(Sa,t),new On(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new On(Er(this.r),Er(this.g),Er(this.b),si(this.opacity))},displayable(){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:al,formatHex:al,formatHex8:nh,formatRgb:il,toString:il}));function al(){return`#${Rr(this.r)}${Rr(this.g)}${Rr(this.b)}`}function nh(){return`#${Rr(this.r)}${Rr(this.g)}${Rr(this.b)}${Rr((isNaN(this.opacity)?1:this.opacity)*255)}`}function il(){const t=si(this.opacity);return`${t===1?"rgb(":"rgba("}${Er(this.r)}, ${Er(this.g)}, ${Er(this.b)}${t===1?")":`, ${t})`}`}function si(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Er(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Rr(t){return t=Er(t),(t<16?"0":"")+t.toString(16)}function sl(t,e,n,a){return a<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Vn(t,e,n,a)}function ol(t){if(t instanceof Vn)return new Vn(t.h,t.s,t.l,t.opacity);if(t instanceof $a||(t=br(t)),!t)return new Vn;if(t instanceof Vn)return t;t=t.rgb();var e=t.r/255,n=t.g/255,a=t.b/255,i=Math.min(e,n,a),s=Math.max(e,n,a),o=NaN,l=s-i,c=(s+i)/2;return l?(e===s?o=(n-a)/l+(n<a)*6:n===s?o=(a-e)/l+2:o=(e-n)/l+4,l/=c<.5?s+i:2-s-i,o*=60):l=c>0&&c<1?0:o,new Vn(o,l,c,t.opacity)}function rh(t,e,n,a){return arguments.length===1?ol(t):new Vn(t,e,n,a==null?1:a)}function Vn(t,e,n,a){this.h=+t,this.s=+e,this.l=+n,this.opacity=+a}us(Vn,rh,qo($a,{brighter(t){return t=t==null?ri:Math.pow(ri,t),new Vn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Sa:Math.pow(Sa,t),new Vn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,a=n+(n<.5?n:1-n)*e,i=2*n-a;return new On(fs(t>=240?t-240:t+120,i,a),fs(t,i,a),fs(t<120?t+240:t-120,i,a),this.opacity)},clamp(){return new Vn(ll(this.h),oi(this.s),oi(this.l),si(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=si(this.opacity);return`${t===1?"hsl(":"hsla("}${ll(this.h)}, ${oi(this.s)*100}%, ${oi(this.l)*100}%${t===1?")":`, ${t})`}`}}));function ll(t){return t=(t||0)%360,t<0?t+360:t}function oi(t){return Math.max(0,Math.min(1,t||0))}function fs(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function cl(t,e,n,a,i){var s=t*t,o=s*t;return((1-3*t+3*s-o)*e+(4-6*s+3*o)*n+(1+3*t+3*s-3*o)*a+o*i)/6}function ah(t){var e=t.length-1;return function(n){var a=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[a],s=t[a+1],o=a>0?t[a-1]:2*i-s,l=a<e-1?t[a+2]:2*s-i;return cl((n-a/e)*e,o,i,s,l)}}function ih(t){var e=t.length;return function(n){var a=Math.floor(((n%=1)<0?++n:n)*e),i=t[(a+e-1)%e],s=t[a%e],o=t[(a+1)%e],l=t[(a+2)%e];return cl((n-a/e)*e,i,s,o,l)}}var li=t=>()=>t;function ul(t,e){return function(n){return t+n*e}}function sh(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(a){return Math.pow(t+a*e,n)}}function z0(t,e){var n=e-t;return n?ul(t,n>180||n<-180?n-360*Math.round(n/360):n):li(isNaN(t)?e:t)}function oh(t){return(t=+t)==1?fl:function(e,n){return n-e?sh(e,n,t):li(isNaN(e)?n:e)}}function fl(t,e){var n=e-t;return n?ul(t,n):li(isNaN(t)?e:t)}var ci=function t(e){var n=oh(e);function a(i,s){var o=n((i=ii(i)).r,(s=ii(s)).r),l=n(i.g,s.g),c=n(i.b,s.b),f=fl(i.opacity,s.opacity);return function(g){return i.r=o(g),i.g=l(g),i.b=c(g),i.opacity=f(g),i+""}}return a.gamma=t,a}(1);function dl(t){return function(e){var n=e.length,a=new Array(n),i=new Array(n),s=new Array(n),o,l;for(o=0;o<n;++o)l=ii(e[o]),a[o]=l.r||0,i[o]=l.g||0,s[o]=l.b||0;return a=t(a),i=t(i),s=t(s),l.opacity=1,function(c){return l.r=a(c),l.g=i(c),l.b=s(c),l+""}}}var j0=dl(ah),G0=dl(ih);function hl(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,a=e.slice(),i;return function(s){for(i=0;i<n;++i)a[i]=t[i]*(1-s)+e[i]*s;return a}}function gl(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function X0(t,e){return(gl(e)?hl:vl)(t,e)}function vl(t,e){var n=e?e.length:0,a=t?Math.min(n,t.length):0,i=new Array(a),s=new Array(n),o;for(o=0;o<a;++o)i[o]=Kr(t[o],e[o]);for(;o<n;++o)s[o]=e[o];return function(l){for(o=0;o<a;++o)s[o]=i[o](l);return s}}function lh(t,e){var n=new Date;return t=+t,e=+e,function(a){return n.setTime(t*(1-a)+e*a),n}}function Yn(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function ch(t,e){var n={},a={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?n[i]=Kr(t[i],e[i]):a[i]=e[i];return function(s){for(i in n)a[i]=n[i](s);return a}}var ds=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,hs=new RegExp(ds.source,"g");function uh(t){return function(){return t}}function fh(t){return function(e){return t(e)+""}}function pl(t,e){var n=ds.lastIndex=hs.lastIndex=0,a,i,s,o=-1,l=[],c=[];for(t=t+"",e=e+"";(a=ds.exec(t))&&(i=hs.exec(e));)(s=i.index)>n&&(s=e.slice(n,s),l[o]?l[o]+=s:l[++o]=s),(a=a[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,c.push({i:o,x:Yn(a,i)})),n=hs.lastIndex;return n<e.length&&(s=e.slice(n),l[o]?l[o]+=s:l[++o]=s),l.length<2?c[0]?fh(c[0].x):uh(e):(e=c.length,function(f){for(var g=0,v;g<e;++g)l[(v=c[g]).i]=v.x(f);return l.join("")})}function Kr(t,e){var n=typeof e,a;return e==null||n==="boolean"?li(e):(n==="number"?Yn:n==="string"?(a=br(e))?(e=a,ci):pl:e instanceof br?ci:e instanceof Date?lh:gl(e)?hl:Array.isArray(e)?vl:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?ch:Yn)(t,e)}function dh(t){let e;for(;e=t.sourceEvent;)t=e;return t}function Un(t,e){if(t=dh(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var a=n.createSVGPoint();return a.x=t.clientX,a.y=t.clientY,a=a.matrixTransform(e.getScreenCTM().inverse()),[a.x,a.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}var Zr=0,ba=0,Ea=0,ml=1e3,ui,Ra,fi=0,Or=0,di=0,Oa=typeof performance=="object"&&performance.now?performance:Date,yl=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function gs(){return Or||(yl(hh),Or=Oa.now()+di)}function hh(){Or=0}function hi(){this._call=this._time=this._next=null}hi.prototype=xl.prototype={constructor:hi,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?gs():+n)+(e==null?0:+e),!this._next&&Ra!==this&&(Ra?Ra._next=this:ui=this,Ra=this),this._call=t,this._time=n,vs()},stop:function(){this._call&&(this._call=null,this._time=1/0,vs())}};function xl(t,e,n){var a=new hi;return a.restart(t,e,n),a}function gh(){gs(),++Zr;for(var t=ui,e;t;)(e=Or-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Zr}function Tl(){Or=(fi=Oa.now())+di,Zr=ba=0;try{gh()}finally{Zr=0,ph(),Or=0}}function vh(){var t=Oa.now(),e=t-fi;e>ml&&(di-=e,fi=t)}function ph(){for(var t,e=ui,n,a=1/0;e;)e._call?(a>e._time&&(a=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:ui=n);Ra=t,vs(a)}function vs(t){if(!Zr){ba&&(ba=clearTimeout(ba));var e=t-Or;e>24?(t<1/0&&(ba=setTimeout(Tl,t-Oa.now()-di)),Ea&&(Ea=clearInterval(Ea))):(Ea||(fi=Oa.now(),Ea=setInterval(vh,ml)),Zr=1,yl(Tl))}}function $l(t,e,n){var a=new hi;return e=e==null?0:+e,a.restart(i=>{a.stop(),t(i+e)},e,n),a}var mh=ni("start","end","cancel","interrupt"),yh=[],Sl=0,Al=1,ps=2,gi=3,bl=4,ms=5,vi=6;function pi(t,e,n,a,i,s){var o=t.__transition;if(!o)t.__transition={};else if(n in o)return;xh(t,n,{name:e,index:a,group:i,on:mh,tween:yh,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:Sl})}function ys(t,e){var n=Hn(t,e);if(n.state>Sl)throw new Error("too late; already scheduled");return n}function kn(t,e){var n=Hn(t,e);if(n.state>gi)throw new Error("too late; already running");return n}function Hn(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function xh(t,e,n){var a=t.__transition,i;a[e]=n,n.timer=xl(s,0,n.time);function s(f){n.state=Al,n.timer.restart(o,n.delay,n.time),n.delay<=f&&o(f-n.delay)}function o(f){var g,v,m,S;if(n.state!==Al)return c();for(g in a)if(S=a[g],S.name===n.name){if(S.state===gi)return $l(o);S.state===bl?(S.state=vi,S.timer.stop(),S.on.call("interrupt",t,t.__data__,S.index,S.group),delete a[g]):+g<e&&(S.state=vi,S.timer.stop(),S.on.call("cancel",t,t.__data__,S.index,S.group),delete a[g])}if($l(function(){n.state===gi&&(n.state=bl,n.timer.restart(l,n.delay,n.time),l(f))}),n.state=ps,n.on.call("start",t,t.__data__,n.index,n.group),n.state===ps){for(n.state=gi,i=new Array(m=n.tween.length),g=0,v=-1;g<m;++g)(S=n.tween[g].value.call(t,t.__data__,n.index,n.group))&&(i[++v]=S);i.length=v+1}}function l(f){for(var g=f<n.duration?n.ease.call(null,f/n.duration):(n.timer.restart(c),n.state=ms,1),v=-1,m=i.length;++v<m;)i[v].call(t,g);n.state===ms&&(n.on.call("end",t,t.__data__,n.index,n.group),c())}function c(){n.state=vi,n.timer.stop(),delete a[e];for(var f in a)return;delete t.__transition}}function kr(t,e){var n=t.__transition,a,i,s=!0,o;if(n){e=e==null?null:e+"";for(o in n){if((a=n[o]).name!==e){s=!1;continue}i=a.state>ps&&a.state<ms,a.state=vi,a.timer.stop(),a.on.call(i?"interrupt":"cancel",t,t.__data__,a.index,a.group),delete n[o]}s&&delete t.__transition}}function Th(t){return this.each(function(){kr(this,t)})}var El=180/Math.PI,xs={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Rl(t,e,n,a,i,s){var o,l,c;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(c=t*n+e*a)&&(n-=t*c,a-=e*c),(l=Math.sqrt(n*n+a*a))&&(n/=l,a/=l,c/=l),t*a<e*n&&(t=-t,e=-e,c=-c,o=-o),{translateX:i,translateY:s,rotate:Math.atan2(e,t)*El,skewX:Math.atan(c)*El,scaleX:o,scaleY:l}}var mi;function $h(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?xs:Rl(e.a,e.b,e.c,e.d,e.e,e.f)}function Sh(t){return t==null||(mi||(mi=document.createElementNS("http://www.w3.org/2000/svg","g")),mi.setAttribute("transform",t),!(t=mi.transform.baseVal.consolidate()))?xs:(t=t.matrix,Rl(t.a,t.b,t.c,t.d,t.e,t.f))}function Ol(t,e,n,a){function i(f){return f.length?f.pop()+" ":""}function s(f,g,v,m,S,I){if(f!==v||g!==m){var N=S.push("translate(",null,e,null,n);I.push({i:N-4,x:Yn(f,v)},{i:N-2,x:Yn(g,m)})}else(v||m)&&S.push("translate("+v+e+m+n)}function o(f,g,v,m){f!==g?(f-g>180?g+=360:g-f>180&&(f+=360),m.push({i:v.push(i(v)+"rotate(",null,a)-2,x:Yn(f,g)})):g&&v.push(i(v)+"rotate("+g+a)}function l(f,g,v,m){f!==g?m.push({i:v.push(i(v)+"skewX(",null,a)-2,x:Yn(f,g)}):g&&v.push(i(v)+"skewX("+g+a)}function c(f,g,v,m,S,I){if(f!==v||g!==m){var N=S.push(i(S)+"scale(",null,",",null,")");I.push({i:N-4,x:Yn(f,v)},{i:N-2,x:Yn(g,m)})}else(v!==1||m!==1)&&S.push(i(S)+"scale("+v+","+m+")")}return function(f,g){var v=[],m=[];return f=t(f),g=t(g),s(f.translateX,f.translateY,g.translateX,g.translateY,v,m),o(f.rotate,g.rotate,v,m),l(f.skewX,g.skewX,v,m),c(f.scaleX,f.scaleY,g.scaleX,g.scaleY,v,m),f=g=null,function(S){for(var I=-1,N=m.length,M;++I<N;)v[(M=m[I]).i]=M.x(S);return v.join("")}}}var Ah=Ol($h,"px, ","px)","deg)"),bh=Ol(Sh,", ",")",")");function Eh(t,e){var n,a;return function(){var i=kn(this,t),s=i.tween;if(s!==n){a=n=s;for(var o=0,l=a.length;o<l;++o)if(a[o].name===e){a=a.slice(),a.splice(o,1);break}}i.tween=a}}function Rh(t,e,n){var a,i;if(typeof n!="function")throw new Error;return function(){var s=kn(this,t),o=s.tween;if(o!==a){i=(a=o).slice();for(var l={name:e,value:n},c=0,f=i.length;c<f;++c)if(i[c].name===e){i[c]=l;break}c===f&&i.push(l)}s.tween=i}}function Oh(t,e){var n=this._id;if(t+="",arguments.length<2){for(var a=Hn(this.node(),n).tween,i=0,s=a.length,o;i<s;++i)if((o=a[i]).name===t)return o.value;return null}return this.each((e==null?Eh:Rh)(n,t,e))}function Ts(t,e,n){var a=t._id;return t.each(function(){var i=kn(this,a);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return Hn(i,a).value[e]}}function Il(t,e){var n;return(typeof e=="number"?Yn:e instanceof br?ci:(n=br(e))?(e=n,ci):pl)(t,e)}function Ih(t){return function(){this.removeAttribute(t)}}function Ch(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ph(t,e,n){var a,i=n+"",s;return function(){var o=this.getAttribute(t);return o===i?null:o===a?s:s=e(a=o,n)}}function wh(t,e,n){var a,i=n+"",s;return function(){var o=this.getAttributeNS(t.space,t.local);return o===i?null:o===a?s:s=e(a=o,n)}}function Mh(t,e,n){var a,i,s;return function(){var o,l=n(this),c;return l==null?void this.removeAttribute(t):(o=this.getAttribute(t),c=l+"",o===c?null:o===a&&c===i?s:(i=c,s=e(a=o,l)))}}function Lh(t,e,n){var a,i,s;return function(){var o,l=n(this),c;return l==null?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local),c=l+"",o===c?null:o===a&&c===i?s:(i=c,s=e(a=o,l)))}}function Dh(t,e){var n=Mt(t),a=n==="transform"?bh:Il;return this.attrTween(t,typeof e=="function"?(n.local?Lh:Mh)(n,a,Ts(this,"attr."+t,e)):e==null?(n.local?Ch:Ih)(n):(n.local?wh:Ph)(n,a,e))}function Nh(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Fh(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Bh(t,e){var n,a;function i(){var s=e.apply(this,arguments);return s!==a&&(n=(a=s)&&Fh(t,s)),n}return i._value=e,i}function Uh(t,e){var n,a;function i(){var s=e.apply(this,arguments);return s!==a&&(n=(a=s)&&Nh(t,s)),n}return i._value=e,i}function zh(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var a=Mt(t);return this.tween(n,(a.local?Bh:Uh)(a,e))}function jh(t,e){return function(){ys(this,t).delay=+e.apply(this,arguments)}}function Gh(t,e){return e=+e,function(){ys(this,t).delay=e}}function Xh(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?jh:Gh)(e,t)):Hn(this.node(),e).delay}function Vh(t,e){return function(){kn(this,t).duration=+e.apply(this,arguments)}}function Yh(t,e){return e=+e,function(){kn(this,t).duration=e}}function Hh(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Vh:Yh)(e,t)):Hn(this.node(),e).duration}function Wh(t,e){if(typeof e!="function")throw new Error;return function(){kn(this,t).ease=e}}function Kh(t){var e=this._id;return arguments.length?this.each(Wh(e,t)):Hn(this.node(),e).ease}function Zh(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;kn(this,t).ease=n}}function kh(t){if(typeof t!="function")throw new Error;return this.each(Zh(this._id,t))}function Jh(t){typeof t!="function"&&(t=O(t));for(var e=this._groups,n=e.length,a=new Array(n),i=0;i<n;++i)for(var s=e[i],o=s.length,l=a[i]=[],c,f=0;f<o;++f)(c=s[f])&&t.call(c,c.__data__,f,s)&&l.push(c);return new ir(a,this._parents,this._name,this._id)}function Qh(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,a=e.length,i=n.length,s=Math.min(a,i),o=new Array(a),l=0;l<s;++l)for(var c=e[l],f=n[l],g=c.length,v=o[l]=new Array(g),m,S=0;S<g;++S)(m=c[S]||f[S])&&(v[S]=m);for(;l<a;++l)o[l]=e[l];return new ir(o,this._parents,this._name,this._id)}function _h(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function qh(t,e,n){var a,i,s=_h(e)?ys:kn;return function(){var o=s(this,t),l=o.on;l!==a&&(i=(a=l).copy()).on(e,n),o.on=i}}function tg(t,e){var n=this._id;return arguments.length<2?Hn(this.node(),n).on.on(t):this.each(qh(n,t,e))}function eg(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function ng(){return this.on("end.remove",eg(this._id))}function rg(t){var e=this._name,n=this._id;typeof t!="function"&&(t=p(t));for(var a=this._groups,i=a.length,s=new Array(i),o=0;o<i;++o)for(var l=a[o],c=l.length,f=s[o]=new Array(c),g,v,m=0;m<c;++m)(g=l[m])&&(v=t.call(g,g.__data__,m,l))&&("__data__"in g&&(v.__data__=g.__data__),f[m]=v,pi(f[m],e,n,m,f,Hn(g,n)));return new ir(s,this._parents,e,n)}function ag(t){var e=this._name,n=this._id;typeof t!="function"&&(t=A(t));for(var a=this._groups,i=a.length,s=[],o=[],l=0;l<i;++l)for(var c=a[l],f=c.length,g,v=0;v<f;++v)if(g=c[v]){for(var m=t.call(g,g.__data__,v,c),S,I=Hn(g,n),N=0,M=m.length;N<M;++N)(S=m[N])&&pi(S,e,n,N,m,I);s.push(m),o.push(g)}return new ir(s,o,e,n)}var ig=dn.prototype.constructor;function sg(){return new ig(this._groups,this._parents)}function og(t,e){var n,a,i;return function(){var s=Et(this,t),o=(this.style.removeProperty(t),Et(this,t));return s===o?null:s===n&&o===a?i:i=e(n=s,a=o)}}function Cl(t){return function(){this.style.removeProperty(t)}}function lg(t,e,n){var a,i=n+"",s;return function(){var o=Et(this,t);return o===i?null:o===a?s:s=e(a=o,n)}}function cg(t,e,n){var a,i,s;return function(){var o=Et(this,t),l=n(this),c=l+"";return l==null&&(c=l=(this.style.removeProperty(t),Et(this,t))),o===c?null:o===a&&c===i?s:(i=c,s=e(a=o,l))}}function ug(t,e){var n,a,i,s="style."+e,o="end."+s,l;return function(){var c=kn(this,t),f=c.on,g=c.value[s]==null?l||(l=Cl(e)):void 0;(f!==n||i!==g)&&(a=(n=f).copy()).on(o,i=g),c.on=a}}function fg(t,e,n){var a=(t+="")=="transform"?Ah:Il;return e==null?this.styleTween(t,og(t,a)).on("end.style."+t,Cl(t)):typeof e=="function"?this.styleTween(t,cg(t,a,Ts(this,"style."+t,e))).each(ug(this._id,t)):this.styleTween(t,lg(t,a,e),n).on("end.style."+t,null)}function dg(t,e,n){return function(a){this.style.setProperty(t,e.call(this,a),n)}}function hg(t,e,n){var a,i;function s(){var o=e.apply(this,arguments);return o!==i&&(a=(i=o)&&dg(t,o,n)),a}return s._value=e,s}function gg(t,e,n){var a="style."+(t+="");if(arguments.length<2)return(a=this.tween(a))&&a._value;if(e==null)return this.tween(a,null);if(typeof e!="function")throw new Error;return this.tween(a,hg(t,e,n==null?"":n))}function vg(t){return function(){this.textContent=t}}function pg(t){return function(){var e=t(this);this.textContent=e==null?"":e}}function mg(t){return this.tween("text",typeof t=="function"?pg(Ts(this,"text",t)):vg(t==null?"":t+""))}function yg(t){return function(e){this.textContent=t.call(this,e)}}function xg(t){var e,n;function a(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&yg(i)),e}return a._value=t,a}function Tg(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,xg(t))}function $g(){for(var t=this._name,e=this._id,n=wl(),a=this._groups,i=a.length,s=0;s<i;++s)for(var o=a[s],l=o.length,c,f=0;f<l;++f)if(c=o[f]){var g=Hn(c,e);pi(c,t,n,f,o,{time:g.time+g.delay+g.duration,delay:0,duration:g.duration,ease:g.ease})}return new ir(a,this._parents,t,n)}function Sg(){var t,e,n=this,a=n._id,i=n.size();return new Promise(function(s,o){var l={value:o},c={value:function(){--i===0&&s()}};n.each(function(){var f=kn(this,a),g=f.on;g!==t&&(e=(t=g).copy(),e._.cancel.push(l),e._.interrupt.push(l),e._.end.push(c)),f.on=e}),i===0&&s()})}var Ag=0;function ir(t,e,n,a){this._groups=t,this._parents=e,this._name=n,this._id=a}function Pl(t){return dn().transition(t)}function wl(){return++Ag}var sr=dn.prototype;ir.prototype=Pl.prototype={constructor:ir,select:rg,selectAll:ag,selectChild:sr.selectChild,selectChildren:sr.selectChildren,filter:Jh,merge:Qh,selection:sg,transition:$g,call:sr.call,nodes:sr.nodes,node:sr.node,size:sr.size,empty:sr.empty,each:sr.each,on:tg,attr:Dh,attrTween:zh,style:fg,styleTween:gg,text:mg,textTween:Tg,remove:ng,tween:Oh,delay:Xh,duration:Hh,ease:Kh,easeVarying:kh,end:Sg,[Symbol.iterator]:sr[Symbol.iterator]};function V0(t){return t*t*t}function Y0(t){return--t*t*t+1}function bg(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Eg={time:null,delay:0,duration:250,ease:bg};function Rg(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function Og(t){var e,n;t instanceof ir?(e=t._id,t=t._name):(e=wl(),(n=Eg).time=gs(),t=t==null?null:t+"");for(var a=this._groups,i=a.length,s=0;s<i;++s)for(var o=a[s],l=o.length,c,f=0;f<l;++f)(c=o[f])&&pi(c,t,e,f,o,n||Rg(c,e));return new ir(a,this._parents,t,e)}dn.prototype.interrupt=Th,dn.prototype.transition=Og;var $s=t=>()=>t;function Ig(t,{sourceEvent:e,target:n,selection:a,mode:i,dispatch:s}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:a,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:s}})}function Cg(t){t.stopImmediatePropagation()}function Ss(t){t.preventDefault(),t.stopImmediatePropagation()}var Ml={name:"drag"},As={name:"space"},Jr={name:"handle"},Qr={name:"center"};const{abs:Ll,max:mn,min:yn}=Math;function Dl(t){return[+t[0],+t[1]]}function bs(t){return[Dl(t[0]),Dl(t[1])]}var yi={name:"x",handles:["w","e"].map(Ia),input:function(t,e){return t==null?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},xi={name:"y",handles:["n","s"].map(Ia),input:function(t,e){return t==null?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},Pg={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Ia),input:function(t){return t==null?null:bs(t)},output:function(t){return t}},or={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"},Nl={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Fl={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},wg={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Mg={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Ia(t){return{type:t}}function Lg(t){return!t.ctrlKey&&!t.button}function Dg(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function Ng(){return navigator.maxTouchPoints||"ontouchstart"in this}function Es(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Fg(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Bl(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function Bg(){return Rs(yi)}function Ug(){return Rs(xi)}function H0(){return Rs(Pg)}function Rs(t){var e=Dg,n=Lg,a=Ng,i=!0,s=ni("start","brush","end"),o=6,l;function c(M){var P=M.property("__brush",N).selectAll(".overlay").data([Ia("overlay")]);P.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",or.overlay).merge(P).each(function(){var W=Es(this).extent;st(this).attr("x",W[0][0]).attr("y",W[0][1]).attr("width",W[1][0]-W[0][0]).attr("height",W[1][1]-W[0][1])}),M.selectAll(".selection").data([Ia("selection")]).enter().append("rect").attr("class","selection").attr("cursor",or.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var X=M.selectAll(".handle").data(t.handles,function(W){return W.type});X.exit().remove(),X.enter().append("rect").attr("class",function(W){return"handle handle--"+W.type}).attr("cursor",function(W){return or[W.type]}),M.each(f).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",m).filter(a).on("touchstart.brush",m).on("touchmove.brush",S).on("touchend.brush touchcancel.brush",I).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}c.move=function(M,P,X){M.tween?M.on("start.brush",function(W){g(this,arguments).beforestart().start(W)}).on("interrupt.brush end.brush",function(W){g(this,arguments).end(W)}).tween("brush",function(){var W=this,G=W.__brush,k=g(W,arguments),H=G.selection,at=t.input(typeof P=="function"?P.apply(this,arguments):P,G.extent),mt=Kr(H,at);function At(St){G.selection=St===1&&at===null?null:mt(St),f.call(W),k.brush()}return H!==null&&at!==null?At:At(1)}):M.each(function(){var W=this,G=arguments,k=W.__brush,H=t.input(typeof P=="function"?P.apply(W,G):P,k.extent),at=g(W,G).beforestart();kr(W),k.selection=H===null?null:H,f.call(W),at.start(X).brush(X).end(X)})},c.clear=function(M,P){c.move(M,null,P)};function f(){var M=st(this),P=Es(this).selection;P?(M.selectAll(".selection").style("display",null).attr("x",P[0][0]).attr("y",P[0][1]).attr("width",P[1][0]-P[0][0]).attr("height",P[1][1]-P[0][1]),M.selectAll(".handle").style("display",null).attr("x",function(X){return X.type[X.type.length-1]==="e"?P[1][0]-o/2:P[0][0]-o/2}).attr("y",function(X){return X.type[0]==="s"?P[1][1]-o/2:P[0][1]-o/2}).attr("width",function(X){return X.type==="n"||X.type==="s"?P[1][0]-P[0][0]+o:o}).attr("height",function(X){return X.type==="e"||X.type==="w"?P[1][1]-P[0][1]+o:o})):M.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function g(M,P,X){var W=M.__brush.emitter;return W&&(!X||!W.clean)?W:new v(M,P,X)}function v(M,P,X){this.that=M,this.args=P,this.state=M.__brush,this.active=0,this.clean=X}v.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(M,P){return this.starting?(this.starting=!1,this.emit("start",M,P)):this.emit("brush",M),this},brush:function(M,P){return this.emit("brush",M,P),this},end:function(M,P){return--this.active===0&&(delete this.state.emitter,this.emit("end",M,P)),this},emit:function(M,P,X){var W=st(this.that).datum();s.call(M,this.that,new Ig(M,{sourceEvent:P,target:c,selection:t.output(this.state.selection),mode:X,dispatch:s}),W)}};function m(M){if(l&&!M.touches||!n.apply(this,arguments))return;var P=this,X=M.target.__data__.type,W=(i&&M.metaKey?X="overlay":X)==="selection"?Ml:i&&M.altKey?Qr:Jr,G=t===xi?null:wg[X],k=t===yi?null:Mg[X],H=Es(P),at=H.extent,mt=H.selection,At=at[0][0],St,Tt,Gt=at[0][1],xt,Q,Ct=at[1][0],ht,It,Yt=at[1][1],Xt,Zt,Wt=0,ne=0,je,Oe=G&&k&&i&&M.shiftKey,Ge,cn,Le=Array.from(M.touches||[M],de=>{const an=de.identifier;return de=Un(de,P),de.point0=de.slice(),de.identifier=an,de});kr(P);var ln=g(P,arguments,!0).beforestart();if(X==="overlay"){mt&&(je=!0);const de=[Le[0],Le[1]||Le[0]];H.selection=mt=[[St=t===xi?At:yn(de[0][0],de[1][0]),xt=t===yi?Gt:yn(de[0][1],de[1][1])],[ht=t===xi?Ct:mn(de[0][0],de[1][0]),Xt=t===yi?Yt:mn(de[0][1],de[1][1])]],Le.length>1&&rn(M)}else St=mt[0][0],xt=mt[0][1],ht=mt[1][0],Xt=mt[1][1];Tt=St,Q=xt,It=ht,Zt=Xt;var Ht=st(P).attr("pointer-events","none"),pe=Ht.selectAll(".overlay").attr("cursor",or[X]);if(M.touches)ln.moved=Dt,ln.ended=Ue;else{var be=st(M.view).on("mousemove.brush",Dt,!0).on("mouseup.brush",Ue,!0);i&&be.on("keydown.brush",bn,!0).on("keyup.brush",En,!0),ls(M.view)}f.call(P),ln.start(M,W.name);function Dt(de){for(const an of de.changedTouches||[de])for(const Ga of Le)Ga.identifier===an.identifier&&(Ga.cur=Un(an,P));if(Oe&&!Ge&&!cn&&Le.length===1){const an=Le[0];Ll(an.cur[0]-an[0])>Ll(an.cur[1]-an[1])?cn=!0:Ge=!0}for(const an of Le)an.cur&&(an[0]=an.cur[0],an[1]=an.cur[1]);je=!0,Ss(de),rn(de)}function rn(de){const an=Le[0],Ga=an.point0;var Tr;switch(Wt=an[0]-Ga[0],ne=an[1]-Ga[1],W){case As:case Ml:{G&&(Wt=mn(At-St,yn(Ct-ht,Wt)),Tt=St+Wt,It=ht+Wt),k&&(ne=mn(Gt-xt,yn(Yt-Xt,ne)),Q=xt+ne,Zt=Xt+ne);break}case Jr:{Le[1]?(G&&(Tt=mn(At,yn(Ct,Le[0][0])),It=mn(At,yn(Ct,Le[1][0])),G=1),k&&(Q=mn(Gt,yn(Yt,Le[0][1])),Zt=mn(Gt,yn(Yt,Le[1][1])),k=1)):(G<0?(Wt=mn(At-St,yn(Ct-St,Wt)),Tt=St+Wt,It=ht):G>0&&(Wt=mn(At-ht,yn(Ct-ht,Wt)),Tt=St,It=ht+Wt),k<0?(ne=mn(Gt-xt,yn(Yt-xt,ne)),Q=xt+ne,Zt=Xt):k>0&&(ne=mn(Gt-Xt,yn(Yt-Xt,ne)),Q=xt,Zt=Xt+ne));break}case Qr:{G&&(Tt=mn(At,yn(Ct,St-Wt*G)),It=mn(At,yn(Ct,ht+Wt*G))),k&&(Q=mn(Gt,yn(Yt,xt-ne*k)),Zt=mn(Gt,yn(Yt,Xt+ne*k)));break}}It<Tt&&(G*=-1,Tr=St,St=ht,ht=Tr,Tr=Tt,Tt=It,It=Tr,X in Nl&&pe.attr("cursor",or[X=Nl[X]])),Zt<Q&&(k*=-1,Tr=xt,xt=Xt,Xt=Tr,Tr=Q,Q=Zt,Zt=Tr,X in Fl&&pe.attr("cursor",or[X=Fl[X]])),H.selection&&(mt=H.selection),Ge&&(Tt=mt[0][0],It=mt[1][0]),cn&&(Q=mt[0][1],Zt=mt[1][1]),(mt[0][0]!==Tt||mt[0][1]!==Q||mt[1][0]!==It||mt[1][1]!==Zt)&&(H.selection=[[Tt,Q],[It,Zt]],f.call(P),ln.brush(de,W.name))}function Ue(de){if(Cg(de),de.touches){if(de.touches.length)return;l&&clearTimeout(l),l=setTimeout(function(){l=null},500)}else cs(de.view,je),be.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);Ht.attr("pointer-events","all"),pe.attr("cursor",or.overlay),H.selection&&(mt=H.selection),Fg(mt)&&(H.selection=null,f.call(P)),ln.end(de,W.name)}function bn(de){switch(de.keyCode){case 16:{Oe=G&&k;break}case 18:{W===Jr&&(G&&(ht=It-Wt*G,St=Tt+Wt*G),k&&(Xt=Zt-ne*k,xt=Q+ne*k),W=Qr,rn(de));break}case 32:{(W===Jr||W===Qr)&&(G<0?ht=It-Wt:G>0&&(St=Tt-Wt),k<0?Xt=Zt-ne:k>0&&(xt=Q-ne),W=As,pe.attr("cursor",or.selection),rn(de));break}default:return}Ss(de)}function En(de){switch(de.keyCode){case 16:{Oe&&(Ge=cn=Oe=!1,rn(de));break}case 18:{W===Qr&&(G<0?ht=It:G>0&&(St=Tt),k<0?Xt=Zt:k>0&&(xt=Q),W=Jr,rn(de));break}case 32:{W===As&&(de.altKey?(G&&(ht=It-Wt*G,St=Tt+Wt*G),k&&(Xt=Zt-ne*k,xt=Q+ne*k),W=Qr):(G<0?ht=It:G>0&&(St=Tt),k<0?Xt=Zt:k>0&&(xt=Q),W=Jr),pe.attr("cursor",or[X]),rn(de));break}default:return}Ss(de)}}function S(M){g(this,arguments).moved(M)}function I(M){g(this,arguments).ended(M)}function N(){var M=this.__brush||{selection:null};return M.extent=bs(e.apply(this,arguments)),M.dim=t,M}return c.extent=function(M){return arguments.length?(e=typeof M=="function"?M:$s(bs(M)),c):e},c.filter=function(M){return arguments.length?(n=typeof M=="function"?M:$s(!!M),c):n},c.touchable=function(M){return arguments.length?(a=typeof M=="function"?M:$s(!!M),c):a},c.handleSize=function(M){return arguments.length?(o=+M,c):o},c.keyModifiers=function(M){return arguments.length?(i=!!M,c):i},c.on=function(){var M=s.on.apply(s,arguments);return M===s?c:M},c}function zg(){return typeof globalThis=="object"&&globalThis!==null&&globalThis.Object===Object&&globalThis||typeof global=="object"&&global!==null&&global.Object===Object&&global||typeof self=="object"&&self!==null&&self.Object===Object&&self||Function("return this")()}function jg(t){const e=typeof(t==null?void 0:t.requestAnimationFrame)=="function"&&typeof(t==null?void 0:t.cancelAnimationFrame)=="function",n=typeof(t==null?void 0:t.requestIdleCallback)=="function"&&typeof(t==null?void 0:t.cancelIdleCallback)=="function",a=s=>setTimeout(s,1),i=s=>clearTimeout(s);return[e?t.requestAnimationFrame:a,e?t.cancelAnimationFrame:i,n?t.requestIdleCallback:a,n?t.cancelIdleCallback:i]}const Ke=zg(),fn=Ke==null?void 0:Ke.document,[Gg,W0,Ul,K0]=jg(Ke);var Xg=Object.defineProperty,zl=Object.getOwnPropertySymbols,Vg=Object.prototype.hasOwnProperty,Yg=Object.prototype.propertyIsEnumerable,jl=(t,e,n)=>e in t?Xg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Gl=(t,e)=>{for(var n in e||(e={}))Vg.call(e,n)&&jl(t,n,e[n]);if(zl)for(var n of zl(e))Yg.call(e,n)&&jl(t,n,e[n]);return t};const Ie=t=>t||t===0,he=t=>typeof t=="function",ze=t=>typeof t=="string",ue=t=>typeof t=="number",en=t=>typeof t=="undefined",Ve=t=>typeof t!="undefined",Os=t=>typeof t=="boolean",Hg=t=>Math.ceil(t/10)*10,Ti=t=>Math.ceil(t)+.5,Ir=t=>t[1]-t[0],Jn=t=>typeof t=="object",Wn=t=>en(t)||t===null||ze(t)&&t.length===0||Jn(t)&&!(t instanceof Date)&&Object.keys(t).length===0||ue(t)&&isNaN(t),nn=t=>!Wn(t),Fe=t=>Array.isArray(t),De=t=>t&&!(t!=null&&t.nodeType)&&Jn(t)&&!Fe(t);function vr(t,e,n){return Ve(t[e])?t[e]:n}function Wg(t,e){let n=!1;return Object.keys(t).forEach(a=>t[a]===e&&(n=!0)),n}function Ze(t,e,...n){const a=he(t);return a&&t.call(e,...n),a}function $i(t,e){let n=0;const a=function(...i){!--n&&e.apply(this,...i)};"duration"in t?t.each(()=>++n).on("end",a):(++n,t.call(a))}function Is(t){return ze(t)?t.replace(/<(script|img)?/ig,"<").replace(/(script)?>/ig,">"):t}function Ca(t,e,n=[-1,1],a=!1){if(!(!t||!ze(e)))if(e.indexOf(`
|
|
30
|
+
`)===-1)t.text(e);else{const i=[t.text(),e].map(s=>s.replace(/[\s\n]/g,""));if(i[0]!==i[1]){const s=e.split(`
|
|
31
|
+
`),o=a?s.length-1:1;t.html(""),s.forEach((l,c)=>{t.append("tspan").attr("x",0).attr("dy",`${c===0?n[0]*o:n[1]}em`).text(l)})}}}function Xl(t){const{x:e,y:n,width:a,height:i}=t.getBBox();return[{x:e,y:n+i},{x:e,y:n},{x:e+a,y:n},{x:e+a,y:n+i}]}function Vl(t){const{width:e,height:n}=t.getBoundingClientRect(),a=Xl(t),i=a[0].x,s=Math.min(a[0].y,a[1].y);return{x:i,y:s,width:e,height:n}}function zn(t,e){var n;const a=t&&((n=t.touches||t.sourceEvent&&t.sourceEvent.touches)==null?void 0:n[0]);let i=[0,0];try{i=Un(a||t,e)}catch(s){}return i.map(s=>isNaN(s)?0:s)}function Yl(t){const{event:e,$el:n}=t,a=n.subchart.main||n.main;let i;return e&&e.type==="brush"?i=e.selection:a&&(i=a.select(".bb-brush").node())&&(i=Bl(i)),i}function Si(t){return!("rect"in t)||"rect"in t&&t.hasAttribute("width")&&t.rect.width!==+t.getAttribute("width")?t.rect=t.getBoundingClientRect():t.rect}function lr(t=!0,e=0,n=1e4){const a=Ke.crypto||Ke.msCrypto,i=a?e+a.getRandomValues(new Uint32Array(1))[0]%(n-e+1):Math.floor(Math.random()*(n-e)+e);return t?String(i):i}function Cs(t,e,n,a,i){if(n>a)return-1;const s=Math.floor((n+a)/2);let{x:o,w:l=0}=t[s];return i&&(o=t[s].y,l=t[s].h),e>=o&&e<=o+l?s:e<o?Cs(t,e,n,s-1,i):Cs(t,e,s+1,a,i)}function Hl(t){const e=Yl(t);return e?e[0]===e[1]:!0}function Kg(...t){const e=n=>{if(De(n)&&n.constructor){const a=new n.constructor;for(const i in n)a[i]=e(n[i]);return a}return n};return t.map(n=>e(n)).reduce((n,a)=>Gl(Gl({},n),a))}function gn(t={},e){Fe(e)&&e.forEach(n=>gn(t,n));for(const n in e)/^\d+$/.test(n)||n in t||(t[n]=e[n]);return t}const In=t=>t.charAt(0).toUpperCase()+t.slice(1);function Zg(t,e="-"){return t.split(e).map((n,a)=>a?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()).join("")}const Cr=t=>[].slice.call(t);function kg(t,e,n){const{rootSelector:a="",sheet:i}=t,o=`${a} ${(l=>l.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(e)} {${n.join(";")}}`;return i[i.insertRule?"insertRule":"addRule"](o,i.cssRules.length)}function Jg(t){let e=[];return t.forEach(n=>{var a;try{n.cssRules&&n.cssRules.length&&(e=e.concat(Cr(n.cssRules)))}catch(i){(a=Ke.console)==null||a.warn(`Error while reading rules from ${n.href}: ${i.toString()}`)}}),e}function Wl(t){var e,n,a,i;return{x:((n=(e=Ke.pageXOffset)!=null?e:Ke.scrollX)!=null?n:0)+t.scrollLeft,y:((i=(a=Ke.pageYOffset)!=null?a:Ke.scrollY)!=null?i:0)+t.scrollTop}}function Kl(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 Ps(t){const e=t[0]instanceof Date,n=(e?t.map(Number):t).filter((a,i,s)=>s.indexOf(a)===i);return e?n.map(a=>new Date(a)):n}function ws(t){return t&&t.length?t.reduce((e,n)=>e.concat(n)):[]}function _r(t,...e){if(!e.length||e.length===1&&!e[0])return t;const n=e.shift();return De(t)&&De(n)&&Object.keys(n).forEach(a=>{const i=n[a];De(i)?(!t[a]&&(t[a]={}),t[a]=_r(t[a],i)):t[a]=Fe(i)?i.concat():i}),_r(t,...e)}function qr(t,e=!0){let n;return t[0]instanceof Date?n=e?(a,i)=>a-i:(a,i)=>i-a:e&&!t.every(isNaN)?n=(a,i)=>a-i:e||(n=(a,i)=>a>i&&-1||a<i&&1||a===i&&0),t.concat().sort(n)}function Kn(t,e){let n=e.filter(a=>nn(a));return n.length?ue(n[0])?n=Math[t](...n):n[0]instanceof Date&&(n=qr(n,t==="min")[0]):n=void 0,n}const Ai=(t,e,n=1)=>{const a=[],i=Math.max(0,Math.ceil((e-t)/n))|0;for(let s=t;s<i;s++)a.push(t+s*n);return a},Qg={mouse:(()=>{const t=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(e,n,a=t())=>{e.dispatchEvent(new MouseEvent(n,a))}}catch(e){return(n,a,i=t())=>{const s=fn.createEvent("MouseEvent");s.initMouseEvent(a,i.bubbles,i.cancelable,Ke,0,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),n.dispatchEvent(s)}}})(),touch:(t,e,n)=>{const a=new Touch(_r({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:[a],targetTouches:[],changedTouches:[a]}))}};function bi(t,e){let n=t;for(const a in e)n=n.replace(new RegExp(`{=${a}}`,"g"),e[a]);return n}function Dn(t){var e;let n;if(t instanceof Date)n=t;else if(ze(t)){const{config:a,format:i}=this;n=(e=i.dataTime(a.data_xFormat)(t))!=null?e:new Date(t)}else ue(t)&&!isNaN(t)&&(n=new Date(+t));return(!n||isNaN(+n))&&console&&console.error&&console.error(`Failed to parse x '${t}' to Date object`),n}function Pa(){var t,e;return((t=fn)==null?void 0:t.hidden)===!1||((e=fn)==null?void 0:e.visibilityState)==="visible"}function _g(t,e){const{DocumentTouch:n,matchMedia:a,navigator:i}=Ke;let s=!1;if(e)if(i&&"maxTouchPoints"in i)s=i.maxTouchPoints>0;else if("ontouchmove"in Ke||n&&fn instanceof n)s=!0;else if(a!=null&&a("(pointer:coarse)").matches)s=!0;else{const l=i.userAgent;s=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(l)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(l)}return t&&["any-hover:hover","any-pointer:fine"].some(l=>a==null?void 0:a(`(${l})`).matches)&&"mouse"||s&&"touch"||"mouse"}function Zl(t,e){e()===!1?Gg(()=>Zl(t,e)):t()}var qg=Object.defineProperty,kl=Object.getOwnPropertySymbols,tv=Object.prototype.hasOwnProperty,ev=Object.prototype.propertyIsEnumerable,Ms=(t,e,n)=>e in t?qg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Jl=(t,e)=>{for(var n in e||(e={}))tv.call(e,n)&&Ms(t,n,e[n]);if(kl)for(var n of kl(e))ev.call(e,n)&&Ms(t,n,e[n]);return t},nv=(t,e,n)=>(Ms(t,typeof e!="symbol"?e+"":e,n),n);const Ql=class $f{static setOptions(e){this.data=e.reduce((n,a)=>Jl(Jl({},n),a),this.data)}constructor(){return Kg(Bd,Dd,jd,Nd,Gd,Fd,Ud,zd,$f.data)}};nv(Ql,"data",{});let Pr=Ql;class rv{constructor(){return{chart:null,main:null,svg:null,axis:{x:null,y:null,y2:null,subX:null},axisTooltip:{x:null,y:null,y2: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}}}class av{constructor(){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,hasFunnel:!1,hasRadar:!1,hasTreemap:!1,cssRule:{},current:{domain:void 0,width:0,height:0,dataMax:0,maxTickSize:{x:{width:0,height:0,ticks:[],clipPath:0,domain:""},y:{width:0,height:0,domain:""},y2:{width:0,height: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}}}}const _l={element:rv,state:av};class iv{constructor(){Object.keys(_l).forEach(e=>{this[e]=new _l[e]})}getStore(e){return this[e]}}var sv=Object.defineProperty,ov=(t,e,n)=>e in t?sv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,lv=(t,e,n)=>(ov(t,typeof e!="symbol"?e+"":e,n),n);const Cn={bubbleBaseLength:"$baseLength",colorPattern:"__colorPattern__",dataMinMax:"$dataMinMax",dataTotalSum:"$dataTotalSum",dataTotalPerIndex:"$totalPerIndex",legendItemTextBox:"legendItemTextBox",radarPoints:"$radarPoints",radarTextWidth:"$radarTextWidth",setOverOut:"setOverOut",callOverOutForTouch:"callOverOutForTouch",textRect:"textRect"};class cv{constructor(){lv(this,"cache",{})}add(e,n,a=!1){return this.cache[e]=a?this.cloneTarget(n):n,this.cache[e]}remove(e){(ze(e)?[e]:e).forEach(n=>delete this.cache[n])}get(e,n=!1){if(n&&Array.isArray(e)){const a=[];for(let i=0,s;s=e[i];i++)s in this.cache&&a.push(this.cloneTarget(this.cache[s]));return a}else{const a=this.cache[e];return Ie(a)?a:null}}reset(e){const n=this;for(const a in n.cache)(e||/^\$/.test(a))&&(n.cache[a]=null)}cloneTarget(e){return{id:e.id,id_org:e.id_org,values:e.values.map(n=>({x:n.x,value:n.value,id:n.id}))}}}const fe={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",FUNNEL:"funnel",GAUGE:"gauge",LINE:"line",PIE:"pie",POLAR:"polar",RADAR:"radar",SCATTER:"scatter",SPLINE:"spline",STEP:"step",TREEMAP:"treemap"},Ls={AREA:"initArea",AREA_LINE_RANGE:"initArea",AREA_SPLINE:"initArea",AREA_SPLINE_RANGE:"initArea",AREA_STEP:"initArea",BAR:"initBar",BUBBLE:"initCircle",CANDLESTICK:"initCandlestick",DONUT:"initArc",FUNNEL:"initFunnel",GAUGE:"initArc",LINE:"initLine",PIE:"initArc",POLAR:"initPolar",RADAR:"initCircle",SCATTER:"initCircle",SPLINE:"initLine",STEP:"initLine",TREEMAP:"initTreemap"},pr={Area:[fe.AREA,fe.AREA_SPLINE,fe.AREA_SPLINE_RANGE,fe.AREA_LINE_RANGE,fe.AREA_STEP],AreaRange:[fe.AREA_SPLINE_RANGE,fe.AREA_LINE_RANGE],Arc:[fe.PIE,fe.DONUT,fe.GAUGE,fe.POLAR,fe.RADAR],Line:[fe.LINE,fe.SPLINE,fe.AREA,fe.AREA_SPLINE,fe.AREA_SPLINE_RANGE,fe.AREA_LINE_RANGE,fe.STEP,fe.AREA_STEP],Step:[fe.STEP,fe.AREA_STEP],Spline:[fe.SPLINE,fe.AREA_SPLINE,fe.AREA_SPLINE_RANGE]};function uv(t){const e=t,{config:n}=e;let a="";if(Wn(n.data_type||n.data_types)&&!e[Ls.LINE])a="line";else for(const i in Ls){const s=fe[i];if(e.hasType(s)&&!e[Ls[i]]){a=s;break}}a&&fv(`Please, make sure if %c${Zg(a)}`,"module has been imported and specified correctly.")}function fv(t,e){var n;const a="[billboard.js]";throw((n=Ke.console)==null?void 0:n.error)&&(console.error(`\u274C ${a} ${t}`,"background:red;color:white;display:block;font-size:15px",e),console.info("%c\u2139\uFE0F","font-size:15px","https://github.com/naver/billboard.js/wiki/CHANGELOG-v2#modularization-by-its-functionality")),Error(`${a} ${t.replace(/\%c([a-z-]+)/i,"'$1' ")} ${e}`)}const{setTimeout:dv,clearTimeout:hv}=Ke;function gv(t){const e=[];let n;const a=function(){a.clear(),t===!1?Ul(()=>{e.forEach(i=>i())},{timeout:200}):n=dv(()=>{e.forEach(i=>i())},ue(t)?t:200)};return a.clear=()=>{n&&(hv(n),n=null)},a.add=i=>e.push(i),a.remove=i=>e.splice(e.indexOf(i),1),a}function ql(){let t=[];const e=function(n,a){function i(){var s;let o=0;for(let l=0,c;c=t[l];l++){if(c===!0||(s=c.empty)!=null&&s.call(c)){o++;continue}if(Pa()===!1){o=t.length;break}try{c.transition()}catch(f){o++}}return o===t.length}Zl(()=>{a==null||a()},i)};return e.add=function(n){Fe(n)?t=t.concat(n):t.push(n)},e}const Ds={};function vv(t,e){var n;const a=t.toString(),i=a.replace(/(function|[\s\W\n])/g,"").substring(0,15);return i in Ds||(Ds[i]=new Ke.Blob([`${(n=e==null?void 0:e.map(String).join(";"))!=null?n:""}
|
|
32
|
+
|
|
33
|
+
self.onmessage=function({data}) {
|
|
34
|
+
const result = (${a}).apply(null, data);
|
|
35
|
+
self.postMessage(result);
|
|
36
|
+
};`],{type:"text/javascript"})),Ke.URL.createObjectURL(Ds[i])}function pv(t){const e=new Ke.Worker(t);return e.onerror=function(n){console.error?console.error(n):console.log(n)},e}function Ns(t=!0,e,n,a){let i=function(...s){const o=e(...s);n(o)};if(Ke.Worker&&t){const s=vv(e,a),o=pv(s);i=function(...l){o.postMessage(l),o.onmessage=function(c){return Ke.URL.revokeObjectURL(s),n(c.data)}}}return i}var tc={},Fs={},Bs=34,wa=10,Us=13;function ec(t){return new Function("d","return {"+t.map(function(e,n){return JSON.stringify(e)+": d["+n+'] || ""'}).join(",")+"}")}function mv(t,e){var n=ec(t);return function(a,i){return e(n(a),i,t)}}function nc(t){var e=Object.create(null),n=[];return t.forEach(function(a){for(var i in a)i in e||n.push(e[i]=i)}),n}function Pn(t,e){var n=t+"",a=n.length;return a<e?new Array(e-a+1).join(0)+n:n}function yv(t){return t<0?"-"+Pn(-t,6):t>9999?"+"+Pn(t,6):Pn(t,4)}function xv(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),a=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":yv(t.getUTCFullYear(),4)+"-"+Pn(t.getUTCMonth()+1,2)+"-"+Pn(t.getUTCDate(),2)+(i?"T"+Pn(e,2)+":"+Pn(n,2)+":"+Pn(a,2)+"."+Pn(i,3)+"Z":a?"T"+Pn(e,2)+":"+Pn(n,2)+":"+Pn(a,2)+"Z":n||e?"T"+Pn(e,2)+":"+Pn(n,2)+"Z":"")}function rc(t){var e=new RegExp('["'+t+`
|
|
37
|
+
\r]`),n=t.charCodeAt(0);function a(v,m){var S,I,N=i(v,function(M,P){if(S)return S(M,P-1);I=M,S=m?mv(M,m):ec(M)});return N.columns=I||[],N}function i(v,m){var S=[],I=v.length,N=0,M=0,P,X=I<=0,W=!1;v.charCodeAt(I-1)===wa&&--I,v.charCodeAt(I-1)===Us&&--I;function G(){if(X)return Fs;if(W)return W=!1,tc;var H,at=N,mt;if(v.charCodeAt(at)===Bs){for(;N++<I&&v.charCodeAt(N)!==Bs||v.charCodeAt(++N)===Bs;);return(H=N)>=I?X=!0:(mt=v.charCodeAt(N++))===wa?W=!0:mt===Us&&(W=!0,v.charCodeAt(N)===wa&&++N),v.slice(at+1,H-1).replace(/""/g,'"')}for(;N<I;){if((mt=v.charCodeAt(H=N++))===wa)W=!0;else if(mt===Us)W=!0,v.charCodeAt(N)===wa&&++N;else if(mt!==n)continue;return v.slice(at,H)}return X=!0,v.slice(at,I)}for(;(P=G())!==Fs;){for(var k=[];P!==tc&&P!==Fs;)k.push(P),P=G();m&&(k=m(k,M++))==null||S.push(k)}return S}function s(v,m){return v.map(function(S){return m.map(function(I){return g(S[I])}).join(t)})}function o(v,m){return m==null&&(m=nc(v)),[m.map(g).join(t)].concat(s(v,m)).join(`
|
|
38
|
+
`)}function l(v,m){return m==null&&(m=nc(v)),s(v,m).join(`
|
|
39
|
+
`)}function c(v){return v.map(f).join(`
|
|
40
|
+
`)}function f(v){return v.map(g).join(t)}function g(v){return v==null?"":v instanceof Date?xv(v):e.test(v+="")?'"'+v.replace(/"/g,'""')+'"':v}return{parse:a,parseRows:i,format:o,formatBody:l,formatRows:c,formatRow:f,formatValue:g}}var wr=rc(","),Tv=wr.parse,$v=wr.parseRows,Z0=wr.format,k0=wr.formatBody,J0=wr.formatRows,Q0=wr.formatRow,_0=wr.formatValue,Mr=rc(" "),Sv=Mr.parse,Av=Mr.parseRows,q0=Mr.format,t1=Mr.formatBody,e1=Mr.formatRows,n1=Mr.formatRow,r1=Mr.formatValue;function zs(t){const e=[];return t.forEach(function(n,a){const i=n[0];n.forEach(function(s,o){if(o>0){if(typeof e[o-1]=="undefined"&&(e[o-1]={}),typeof s=="undefined")throw new Error(`Source data is missing a component at (${a}, ${o})!`);e[o-1][i]=s}})}),e}function js(t){const e=t[0],n=[];return t.forEach(function(a,i){if(i>0){const s={};a.forEach(function(o,l){if(typeof o=="undefined")throw new Error(`Source data is missing a component at (${i}, ${l})!`);s[e[l]]=o}),n.push(s)}}),n}function ac(t,e){const n=[];let a,i;if(Array.isArray(t)){const s=function(o,l){if(o[l]!==void 0)return o[l];const f=l.replace(/\[(\w+)\]/g,".$1").replace(/^\./,"").split(".");let g=o;return f.some(function(v){return!(g=g&&v in g?g[v]:void 0)}),g};e.x?a=e.value.concat(e.x):a=e.value,n.push(a),t.forEach(function(o){const l=a.map(function(c){let f=s(o,c);return typeof f=="undefined"&&(f=null),f});n.push(l)}),i=js(n)}else Object.keys(t).forEach(function(s){var o;const l=t[s].concat();(o=l.unshift)==null||o.call(l,s),n.push(l)}),i=zs(n);return i}function bv(t,e="csv",n,a,i){const s=new XMLHttpRequest,o={csv:Ev,tsv:Rv,json:ac};s.open("GET",t),n&&Object.keys(n).forEach(function(l){s.setRequestHeader(l,n[l])}),s.onreadystatechange=function(){if(s.readyState===4)if(s.status===200){const l=s.responseText;l&&i.call(this,o[e](e==="json"?JSON.parse(l):l,a))}else throw new Error(`${t}: Something went wrong loading!`)},s.send()}function ic(t,e){const n=t.rows(e);let a;return n.length===1?(a=[{}],n[0].forEach(i=>{a[0][i]=null})):a=t.parse(e),a}function Ev(t){return ic({rows:$v,parse:Tv},t)}function Rv(t){return ic({rows:Av,parse:Sv},t)}function sc(t,e){const n=t||(e==null?void 0:e.data_keys);return n!=null&&n.x&&(e.data_x=n.x),n}var Ov={convertData(t,e){const{config:n}=this,a=n.boost_useWorker;let i=t;if(t.bindto&&(i={},["url","mimeType","headers","keys","json","keys","rows","columns"].forEach(s=>{const o=`data_${s}`;o in t&&(i[s]=t[o])})),i.url&&e)bv(i.url,i.mimeType,i.headers,sc(i.keys,n),e);else if(i.json)Ns(a,ac,e,[zs,js])(i.json,sc(i.keys,n));else if(i.rows)Ns(a,js,e)(i.rows);else if(i.columns)Ns(a,zs,e)(i.columns);else if(t.bindto)throw Error("url or json or rows or columns is required.")},convertDataToTargets(t,e){const n=this,{axis:a,config:i,state:s}=n,o=i.data_type;let l=!1,c=!1,f=!1;a&&(l=a.isCategorized(),c=a.isTimeSeries(),f=a.isCustomX());const g=Object.keys(t[0]||{}),v=g.length?g.filter(n.isNotX,n):[],m=g.length?g.filter(n.isX,n):[];let S;v.forEach(N=>{const M=this.getXKey(N);f||c?m.indexOf(M)>=0?S=(e&&n.data.xs[N]||[]).concat(t.map(P=>P[M]).filter(Ie).map((P,X)=>n.generateTargetX(P,N,X))):i.data_x?S=this.getOtherTargetXs():nn(i.data_xs)&&(S=n.getXValuesOfXKey(M,n.data.targets)):S=t.map((P,X)=>X),S&&(this.data.xs[N]=S)}),v.forEach(N=>{if(!this.data.xs[N])throw new Error(`x is not defined for id = "${N}".`)});const I=v.map((N,M)=>{const P=i.data_idConverter.bind(n.api)(N),X=n.getXKey(N),W=f&&l,G=W&&t.map(at=>at.x).every(at=>i.axis_x_categories.indexOf(at)>-1),k=t.__append__,H=X===null&&k?n.api.data.values(N).length:0;return{id:P,id_org:N,values:t.map((at,mt)=>{const At=at[X];let St=at[N],Tt;return St=St!==null&&!isNaN(St)&&!De(St)?+St:Fe(St)||De(St)?St:null,(W||s.hasRadar)&&M===0&&!en(At)?(!G&&M===0&&mt===0&&!k&&(i.axis_x_categories=[]),Tt=i.axis_x_categories.indexOf(At),Tt===-1&&(Tt=i.axis_x_categories.length,i.axis_x_categories.push(At))):Tt=n.generateTargetX(At,N,H+mt),(en(St)||n.data.xs[N].length<=mt)&&(Tt=void 0),{x:Tt,value:St,id:P,index:-1}}).filter(at=>Ve(at.x))}});if(I.forEach(N=>{var M;i.data_xSort&&(N.values=N.values.sort((P,X)=>{const W=P.x||P.x===0?P.x:1/0,G=X.x||X.x===0?X.x:1/0;return W-G})),N.values.forEach((P,X)=>P.index=X),(M=n.data.xs[N.id])==null||M.sort((P,X)=>P-X)}),s.hasNegativeValue=n.hasNegativeValueInTargets(I),s.hasPositiveValue=n.hasPositiveValueInTargets(I),o&&n.isValidChartType(o)){const N=n.mapToIds(I).filter(M=>!(M in i.data_types)||!n.isValidChartType(i.data_types[M]));n.setTargetType(N,o)}return I.forEach(N=>n.cache.add(N.id_org,N,!0)),I}},Iv={isX(t){const e=this,{config:n}=e,a=n.data_x&&t===n.data_x,i=nn(n.data_xs)&&Wg(n.data_xs,t);return a||i},isNotX(t){return!this.isX(t)},isStackNormalized(){const{config:t}=this;return!!(t.data_stack_normalize&&t.data_groups.length)},isGrouped(t){const e=this.config.data_groups;return t?e.some(n=>n.indexOf(t)>=0&&n.length>1):e.length>0},getXKey(t){const e=this,{config:n}=e;return n.data_x?n.data_x:nn(n.data_xs)?n.data_xs[t]:null},getXValuesOfXKey(t,e){const n=this,a=e&&nn(e)?n.mapToIds(e):[];let i;return a.forEach(s=>{n.getXKey(s)===t&&(i=n.data.xs[s])}),i},getIndexByX(t,e){const n=this;return e?e.indexOf(ze(t)?t:+t):(n.filterByX(n.data.targets,t)[0]||{index:null}).index},getXValue(t,e){const n=this;return t in n.data.xs&&n.data.xs[t]&&Ie(n.data.xs[t][e])?n.data.xs[t][e]:e},getOtherTargetXs(){const t=this,e=Object.keys(t.data.xs);return e.length?t.data.xs[e[0]]:null},getOtherTargetX(t){const e=this.getOtherTargetXs();return e&&t<e.length?e[t]:null},addXs(t){const e=this,{config:n}=e;Object.keys(t).forEach(a=>{n.data_xs[a]=t[a]})},isMultipleX(){return!this.config.axis_x_forceAsSingle&&(nn(this.config.data_xs)||this.hasType("bubble")||this.hasType("scatter"))},addName(t){const e=this,{config:n}=e;let a;return t&&(a=n.data_names[t.id],t.name=a!==void 0?a:t.id),t},getAllValuesOnIndex(t,e=!1){const n=this;let a=n.filterTargetsToShow(n.data.targets).map(i=>n.addName(n.getValueOnIndex(i.values,t)));return e&&(a=a.filter(i=>i&&"value"in i&&Ie(i.value))),a},getValueOnIndex(t,e){const n=t.filter(a=>a.index===e);return n.length?n[0]:null},updateTargetX(t,e){const n=this;t.forEach(a=>{a.values.forEach((i,s)=>{i.x=n.generateTargetX(e[s],a.id,s)}),n.data.xs[a.id]=e})},updateTargetXs(t,e){const n=this;t.forEach(a=>{e[a.id]&&n.updateTargetX([a],e[a.id])})},generateTargetX(t,e,n){const a=this,{axis:i}=a;let s=i!=null&&i.isCategorized()?n:t||n;if(i!=null&&i.isTimeSeries()){const o=Dn.bind(a);s=o(t||a.getXValue(e,n))}else i!=null&&i.isCustomX()&&!(i!=null&&i.isCategorized())&&(s=Ie(t)?+t:a.getXValue(e,n));return s},updateXs(t){t.length&&(this.axis.xs=t.map(e=>e.x))},getPrevX(t){const e=this.axis.xs[t-1];return Ve(e)?e:null},getNextX(t){const e=this.axis.xs[t+1];return Ve(e)?e:null},getBaseValue(t){const e=this,{hasAxis:n}=e.state;let{value:a}=t;return a&&n&&(e.isAreaRangeType(t)?a=e.getRangedData(t,"mid"):e.isBubbleZType(t)&&(a=e.getBubbleZData(a,"y"))),a},getMinMaxValue(t){const e=this.getBaseValue.bind(this);let n,a;return(t||this.data.targets.map(i=>i.values)).forEach((i,s)=>{const o=i.map(e).filter(ue);n=Math.min(s?n:1/0,...o),a=Math.max(s?a:-1/0,...o)}),{min:n,max:a}},getMinMaxData(){const t=this,e=Cn.dataMinMax;let n=t.cache.get(e);if(!n){const a=t.data.targets.map(l=>l.values),i=t.getMinMaxValue(a);let s=[],o=[];a.forEach(l=>{const c=t.getFilteredDataByValue(l,i.min),f=t.getFilteredDataByValue(l,i.max);c.length&&(s=s.concat(c)),f.length&&(o=o.concat(f))}),t.cache.add(e,n={min:s,max:o})}return n},getTotalPerIndex(){const t=this,e=Cn.dataTotalPerIndex;let n=t.cache.get(e);return(t.config.data_groups.length||t.isStackNormalized())&&!n&&(n=[],t.data.targets.forEach(a=>{a.values.forEach((i,s)=>{n[s]||(n[s]=0),n[s]+=ue(i.value)?i.value:0})})),n},getTotalDataSum(t){const e=this,n=Cn.dataTotalSum;let a=e.cache.get(n);if(!ue(a)){const i=ws(e.data.targets.map(s=>s.values)).map(s=>s.value);a=i.length?i.reduce((s,o)=>s+o):0,e.cache.add(n,a)}return t&&(a-=e.getHiddenTotalDataSum()),a},getHiddenTotalDataSum(){const t=this,{api:e,state:{hiddenTargetIds:n}}=t;let a=0;return n.length&&(a=e.data.values.bind(e)(n).reduce((i,s)=>i+s)),a},getFilteredDataByValue(t,e){return t.filter(n=>this.getBaseValue(n)===e)},getMaxDataCount(){return Math.max(...this.data.targets.map(t=>t.values.length),0)},getMaxDataCountTarget(){let t=this.filterTargetsToShow()||[];const e=t.length,n=this.config.axis_x_inverted;return e>1?(t=t.map(a=>a.values).reduce((a,i)=>a.concat(i)).map(a=>a.x),t=qr(Ps(t)).map((a,i,s)=>({x:a,index:n?s.length-i-1:i}))):e&&(t=t[0].values.concat()),t},mapToIds(t){return t.map(e=>e.id)},mapToTargetIds(t){const e=this;return t?Fe(t)?t.concat():[t]:e.mapToIds(e.data.targets)},hasTarget(t,e){const n=this.mapToIds(t);for(let a=0,i;i=n[a];a++)if(i===e)return!0;return!1},isTargetToShow(t){return this.state.hiddenTargetIds.indexOf(t)<0},isLegendToShow(t){return this.state.hiddenLegendIds.indexOf(t)<0},filterTargetsToShow(t){const e=this;return(t||e.data.targets).filter(n=>e.isTargetToShow(n.id))},mapTargetsToUniqueXs(t){const e=this,{axis:n}=e;let a=[];return t!=null&&t.length&&(a=Ps(ws(t.map(i=>i.values.map(s=>+s.x)))),a=n!=null&&n.isTimeSeries()?a.map(i=>new Date(+i)):a.map(Number)),qr(a)},addTargetIds(t,e){const{state:n}=this;(Fe(e)?e:[e]).forEach(i=>{n[t].indexOf(i)<0&&n[t].push(i)})},removeTargetIds(t,e){const{state:n}=this;(Fe(e)?e:[e]).forEach(i=>{const s=n[t].indexOf(i);s>=0&&n[t].splice(s,1)})},addHiddenTargetIds(t){this.addTargetIds("hiddenTargetIds",t)},removeHiddenTargetIds(t){this.removeTargetIds("hiddenTargetIds",t)},addHiddenLegendIds(t){this.addTargetIds("hiddenLegendIds",t)},removeHiddenLegendIds(t){this.removeTargetIds("hiddenLegendIds",t)},getValuesAsIdKeyed(t){const e=this,{hasAxis:n}=e.state,a={},i=e.isMultipleX(),s=i?e.mapTargetsToUniqueXs(t).map(o=>ze(o)?o:+o):null;return t.forEach(o=>{const l=[];o.values.filter(({value:c})=>Ie(c)||c===null).forEach(c=>{let{value:f}=c;f!==null&&e.isCandlestickType(c)&&(f=Fe(f)?f.slice(0,4):[f.open,f.high,f.low,f.close]),Fe(f)?l.push(...f):De(f)&&"high"in f?l.push(...Object.values(f)):e.isBubbleZType(c)?l.push(n&&e.getBubbleZData(f,"y")):i?l[e.getIndexByX(c.x,s)]=f:l.push(f)}),a[o.id]=l}),a},checkValueInTargets(t,e){const n=Object.keys(t);let a;for(let i=0;i<n.length;i++){a=t[n[i]].values;for(let s=0;s<a.length;s++)if(e(a[s].value))return!0}return!1},hasMultiTargets(){return this.filterTargetsToShow().length>1},hasNegativeValueInTargets(t){return this.checkValueInTargets(t,e=>e<0)},hasPositiveValueInTargets(t){return this.checkValueInTargets(t,e=>e>0)},orderTargets(t){const e=this,n=[...t],a=e.getSortCompareFn();return a&&n.sort(a),n},getSortCompareFn(t=!1){const e=this,{config:n}=e,a=n.data_order,i=/asc/i.test(a),s=/desc/i.test(a);let o;if(i||s){const l=(f,g)=>f+Math.abs(g.value),c=f=>ue(f)?f:"values"in f?f.values.reduce(l,0):f.value;o=(f,g)=>{const v=c(f),m=c(g);return t?i?v-m:m-v:i?m-v:v-m}}else he(a)&&(o=a.bind(e.api));return o||null},filterByX(t,e){return ws(t.map(n=>n.values)).filter(n=>n.x-e===0)},filterRemoveNull(t){return t.filter(e=>Ie(this.getBaseValue(e)))},filterByXDomain(t,e){return t.map(n=>({id:n.id,id_org:n.id_org,values:n.values.filter(a=>e[0]<=a.x&&a.x<=e[1])}))},hasDataLabel(){const t=this.config.data_labels;return Os(t)&&t||Jn(t)&&nn(t)},getDataIndexFromEvent(t){const e=this,{$el:n,config:a,state:{hasRadar:i,inputType:s,eventReceiver:{coords:o,rect:l}}}=e;let c;if(i){let f=t.target;/tspan/i.test(f.tagName)&&(f=f.parentNode);const g=st(f).datum();c=g&&Object.keys(g).length===1?g.index:void 0}else{const f=a.axis_rotated,g=Wl(n.chart.node()),v=s==="touch"&&t.changedTouches?t.changedTouches[0]:t;c=Cs(o,f?v.clientY+g.y-l.top:v.clientX+g.x-l.left,0,o.length-1,f)}return c},getDataLabelLength(t,e,n){const a=this,i=[0,0],s=1.3;return a.$el.chart.select("svg").selectAll(".dummy").data([t,e]).enter().append("text").text(o=>a.dataLabelFormat(o.id)(o)).each(function(o,l){i[l]=this.getBoundingClientRect()[n]*s}).remove(),i},isNoneArc(t){return this.hasTarget(this.data.targets,t.id)},isArc(t){return"data"in t&&this.hasTarget(this.data.targets,t.data.id)},findSameXOfValues(t,e){const n=t[e].x,a=[];let i;for(i=e-1;i>=0&&n===t[i].x;i--)a.push(t[i]);for(i=e;i<t.length&&n===t[i].x;i++)a.push(t[i]);return a},findClosestFromTargets(t,e){const n=this,a=t.map(i=>n.findClosest(i.values,e));return n.findClosest(a,e)},findClosest(t,e){const n=this,{$el:{main:a}}=n,i=t.filter(l=>l&&Ie(l.value));let s,o;return i.filter(l=>n.isBarType(l.id)||n.isCandlestickType(l.id)).forEach(l=>{const c=n.isBarType(l.id)?`.${Gn.chartBar}.${Se.target}${n.getTargetSelectorSuffix(l.id)} .${Gn.bar}-${l.index}`:`.${rr.chartCandlestick}.${Se.target}${n.getTargetSelectorSuffix(l.id)} .${rr.candlestick}-${l.index} path`;!o&&n.isWithinBar(a.select(c).node())&&(o=l)}),i.filter(l=>!n.isBarType(l.id)&&!n.isCandlestickType(l.id)).forEach(l=>{const c=n.dist(l,e);s=n.getPointSensitivity(l),c<s&&(s=c,o=l)}),o},dist(t,e){const n=this,{config:{axis_rotated:a},scale:i}=n,s=+a,o=+!a,l=n.circleY(t,t.index),c=(i.zoom||i.x)(t.x);return Math.sqrt(Math.pow(c-e[s],2)+Math.pow(l-e[o],2))},convertValuesToStep(t){const e=this,{axis:n,config:a}=e,i=a.line_step_type,s=n?n.isCategorized():!1,o=Fe(t)?t.concat():[t];if(!(s||/step\-(after|before)/.test(i)))return t;if(o.length){const l=o[0],c=o[o.length-1],{id:f}=l;let{x:g}=l;o.unshift({x:--g,value:l.value,id:f}),s&&i==="step-after"&&o.unshift({x:--g,value:l.value,id:f}),g=c.x,o.push({x:++g,value:c.value,id:f}),s&&i==="step-before"&&o.push({x:++g,value:c.value,id:f})}return o},convertValuesToRange(t){const e=Fe(t)?t.concat():[t],n=[];return e.forEach(a=>{const{x:i,id:s}=a;n.push({x:i,id:s,value:a.value[0]}),n.push({x:i,id:s,value:a.value[2]})}),n},updateDataAttributes(t,e){const n=this,{config:a}=n,i=a[`data_${t}`];return en(e)||(Object.keys(e).forEach(s=>{i[s]=e[s]}),n.redraw({withLegend:!0})),i},getRangedData(t,e="",n="areaRange"){const a=t==null?void 0:t.value;if(Fe(a)){if(n==="bar")return a.reduce((i,s)=>s-i);{const i={areaRange:["high","mid","low"],candlestick:["open","high","low","close","volume"]}[n].indexOf(e);return i>=0&&a?a[i]:void 0}}else if(a&&e)return a[e];return a},setRatioForGroupedData(t){const e=this,{config:n}=e;if(n.data_groups.length&&t.some(a=>e.isGrouped(a.id))){const a=i=>e.getRatio("index",i,!0);t.forEach(i=>{"values"in i?i.values.forEach(a):a(i)})}},getRatio(t,e,n=!1){const a=this,{config:i,state:s}=a,o=a.api;let l=0;if(e&&o.data.shown().length)if(l=e.ratio||e.value,t==="arc")if(a.pie.padAngle()())l=e.value/a.getTotalDataSum(!0);else{const c=i.gauge_fullCircle?a.getArcLength():a.getStartingAngle()*-2,f=a.hasType("gauge")?c:Math.PI*2;l=(e.endAngle-e.startAngle)/f}else if(t==="index"){const c=o.data.values.bind(o);let f=this.getTotalPerIndex();if(s.hiddenTargetIds.length){let v=c(s.hiddenTargetIds,!1);v.length&&(v=v.reduce((m,S)=>m.map((I,N)=>(ue(I)?I:0)+S[N])),f=f.map((m,S)=>m-v[S]))}const g=f[e.index];e.ratio=ue(e.value)&&f&&g?e.value/g:0,l=e.ratio}else if(t==="radar")l=parseFloat(String(Math.max(e.value,0)))/s.current.dataMax*i.radar_size_ratio;else if(t==="bar"){const f=a.getYScaleById.bind(a)(e.id).domain().reduce((g,v)=>v-g);l=f===0?0:Math.abs(a.getRangedData(e,null,t)/f)}else t==="treemap"&&(l/=a.getTotalDataSum(!0));return n&&l?l*100:l},updateDataIndexByX(t){const e=this,n=t.reduce((a,i,s)=>(a[Number(i.x)]=s,a),{});e.data.targets.forEach(a=>{a.values.forEach((i,s)=>{let o=n[Number(i.x)];o===void 0&&(o=s),i.index=o})})},isBubbleZType(t){return this.isBubbleType(t)&&(De(t.value)&&("z"in t.value||"y"in t.value)||Fe(t.value)&&t.value.length>=2)},isBarRangeType(t){const e=this,{value:n}=t;return e.isBarType(t)&&Fe(n)&&n.length>=2&&n.every(a=>ue(a))},getDataById(t){var e;const n=this.cache.get(t)||this.api.data(t);return(e=n==null?void 0:n[0])!=null?e:n}};function oc(t,e=!1){const n=this,{api:a}=n;e&&n.api.flush(!0),t==null||t.call(a)}var Cv={load(t,e){const n=this,{axis:a,data:i,org:s,scale:o}=n,{append:l}=e,c={domain:null,currentDomain:null,x:null};let f=t;f&&(e.filter&&(f=f.filter(e.filter)),(e.type||e.types)&&f.forEach(g=>{var v;const m=((v=e.types)==null?void 0:v[g.id])||e.type;n.setTargetType(g.id,m)}),i.targets.forEach(g=>{for(let v=0;v<f.length;v++)if(g.id===f[v].id){g.values=l?g.values.concat(f[v].values):f[v].values,f.splice(v,1);break}}),i.targets=i.targets.concat(f)),n.updateTargets(i.targets),o.zoom&&(c.x=a.isCategorized()?o.x.orgScale():(s.xScale||o.x).copy(),c.domain=n.getXDomain(i.targets),c.x.domain(c.domain),c.currentDomain=n.zoom.getDomain(),n.withinRange(c.currentDomain,void 0,c.domain)||(o.x.domain(c.domain),o.zoom=null,n.$el.eventRect.property("__zoom",null))),n.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),o.zoom&&(s.xDomain=c.domain,s.xScale=c.x,a.isCategorized()&&(c.currentDomain=n.getZoomDomainValue(c.currentDomain),s.xDomain=n.getZoomDomainValue(s.xDomain),s.xScale=c.x.domain(s.xDomain)),n.updateCurrentZoomTransform(c.x,c.currentDomain)),n.updateTypesElements(),oc.call(n,e.done,e.resizeAfter)},loadFromArgs(t){const e=this;e.config&&(e.cache.reset(),e.convertData(t,n=>{const a=t.data||n;t.append&&(a.__append__=!0),a&&e.load(e.convertDataToTargets(a),t)}))},unload(t,e){var n;const a=this,{state:i,$el:s,$T:o}=a,l=!!((n=a.hasLegendDefsPoint)!=null&&n.call(a));let c=e,f=t;if(a.cache.reset(),c||(c=()=>{}),f=f.filter(v=>a.hasTarget(a.data.targets,v)),!f||f.length===0){c();return}const g=s.svg.selectAll(f.map(v=>a.selectorTarget(v)));o(g).style("opacity","0").remove().call($i,c),f.forEach(v=>{var m;const S=a.getTargetSelectorSuffix(v);i.withoutFadeIn[v]=!1,s.legend&&s.legend.selectAll(`.${Xe.legendItem}${S}`).remove(),a.data.targets=a.data.targets.filter(I=>I.id!==v),l&&((m=s.defs)==null||m.select(`#${a.getDefsPointId(S)}`).remove())}),i.hasTreemap&&a.updateTargetsForTreemap(a.data.targets),a.updateTypesElements()}},Ei=t=>()=>t;function Gs(t,{sourceEvent:e,subject:n,target:a,identifier:i,active:s,x:o,y:l,dx:c,dy:f,dispatch:g}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:a,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:s,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:l,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:f,enumerable:!0,configurable:!0},_:{value:g}})}Gs.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function Pv(t){return!t.ctrlKey&&!t.button}function wv(){return this.parentNode}function Mv(t,e){return e==null?{x:t.x,y:t.y}:e}function Lv(){return navigator.maxTouchPoints||"ontouchstart"in this}function lc(){var t=Pv,e=wv,n=Mv,a=Lv,i={},s=ni("start","drag","end"),o=0,l,c,f,g,v=0;function m(G){G.on("mousedown.drag",S).filter(a).on("touchstart.drag",M).on("touchmove.drag",P,Hd).on("touchend.drag touchcancel.drag",X).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function S(G,k){if(!(g||!t.call(this,G,k))){var H=W(this,e.call(this,G,k),G,k,"mouse");H&&(st(G.view).on("mousemove.drag",I,Ta).on("mouseup.drag",N,Ta),ls(G.view),os(G),f=!1,l=G.clientX,c=G.clientY,H("start",G))}}function I(G){if(Hr(G),!f){var k=G.clientX-l,H=G.clientY-c;f=k*k+H*H>v}i.mouse("drag",G)}function N(G){st(G.view).on("mousemove.drag mouseup.drag",null),cs(G.view,f),Hr(G),i.mouse("end",G)}function M(G,k){if(t.call(this,G,k)){var H=G.changedTouches,at=e.call(this,G,k),mt=H.length,At,St;for(At=0;At<mt;++At)(St=W(this,at,G,k,H[At].identifier,H[At]))&&(os(G),St("start",G,H[At]))}}function P(G){var k=G.changedTouches,H=k.length,at,mt;for(at=0;at<H;++at)(mt=i[k[at].identifier])&&(Hr(G),mt("drag",G,k[at]))}function X(G){var k=G.changedTouches,H=k.length,at,mt;for(g&&clearTimeout(g),g=setTimeout(function(){g=null},500),at=0;at<H;++at)(mt=i[k[at].identifier])&&(os(G),mt("end",G,k[at]))}function W(G,k,H,at,mt,At){var St=s.copy(),Tt=Un(At||H,k),Gt,xt,Q;if((Q=n.call(G,new Gs("beforestart",{sourceEvent:H,target:m,identifier:mt,active:o,x:Tt[0],y:Tt[1],dx:0,dy:0,dispatch:St}),at))!=null)return Gt=Q.x-Tt[0]||0,xt=Q.y-Tt[1]||0,function Ct(ht,It,Yt){var Xt=Tt,Zt;switch(ht){case"start":i[mt]=Ct,Zt=o++;break;case"end":delete i[mt],--o;case"drag":Tt=Un(Yt||It,k),Zt=o;break}St.call(ht,G,new Gs(ht,{sourceEvent:It,subject:Q,target:m,identifier:mt,active:Zt,x:Tt[0]+Gt,y:Tt[1]+xt,dx:Tt[0]-Xt[0],dy:Tt[1]-Xt[1],dispatch:St}),at)}}return m.filter=function(G){return arguments.length?(t=typeof G=="function"?G:Ei(!!G),m):t},m.container=function(G){return arguments.length?(e=typeof G=="function"?G:Ei(G),m):e},m.subject=function(G){return arguments.length?(n=typeof G=="function"?G:Ei(G),m):n},m.touchable=function(G){return arguments.length?(a=typeof G=="function"?G:Ei(!!G),m):a},m.on=function(){var G=s.on.apply(s,arguments);return G===s?m:G},m.clickDistance=function(G){return arguments.length?(v=(G=+G)*G,m):Math.sqrt(v)},m}var Dv={setExpand(t,e,n){const a=this,{config:i,$el:{circle:s}}=a;s&&i.point_focus_expand_enabled&&a.expandCircles(t,e,n),a.expandBarTypeShapes(!0,t,e,n)},expandBarTypeShapes(t=!0,e,n,a){const i=this;["bar","candlestick"].filter(s=>i.$el[s]).forEach(s=>{a&&i.$el[s].classed(Se.EXPANDED,!1),i.getShapeByIndex(s,e,n).classed(Se.EXPANDED,t)})},setOverOut(t,e){const n=this,{config:a,state:{hasFunnel:i,hasRadar:s,hasTreemap:o},$el:{main:l}}=n,c=De(e);if(c||e!==-1){const f=a[t?"data_onover":"data_onout"].bind(n.api);if(a.color_onover&&n.setOverColor(t,e,c),c){const g=n.getTargetSelectorSuffix(e.id),v=i||o?`${Se.target+g} .${tn.shape}`:Be.arc+g;f(e,l.select(`.${v}`).node())}else if(a.tooltip_grouped)t&&(s&&n.isPointFocusOnly()?n.showCircleFocus(n.getAllValuesOnIndex(e,!0)):n.setExpand(e,null,!0)),!n.isMultipleX()&&l.selectAll(`.${tn.shape}-${e}`).each(function(g){f(g,this)});else{const g=n.cache.get(Cn.setOverOut)||[],v=l.selectAll(`.${tn.shape}-${e}`).filter(function(S){return n.isWithinShape(this,S)}),m=v.filter(function(){return g.every(S=>S!==this)});if(!t||v.empty()||g.length===m.size()&&m.nodes().every((S,I)=>S!==g[I]))for(;g.length;){const S=g.pop();a.data_onout.bind(n.api)(st(S).datum(),S)}m.each(function(){t&&(f(st(this).datum(),this),g.push(this))}),n.cache.add(Cn.setOverOut,g)}}},callOverOutForTouch(t){const e=this,n=e.cache.get(Cn.callOverOutForTouch);(De(t)&&n?t.id!==n.id:t!==n)&&((n||ue(n))&&e.setOverOut(!1,n),(t||ue(t))&&e.setOverOut(!0,t),e.cache.add(Cn.callOverOutForTouch,t))},getDraggableSelection(){const t=this,{config:e,state:n}=t;return e.interaction_enabled&&e.data_selection_draggable&&t.drag?lc().on("drag",function(a){n.event=a,t.drag(zn(a,this))}).on("start",function(a){n.event=a,t.dragstart(zn(a,this))}).on("end",a=>{n.event=a,t.dragend()}):()=>{}},dispatchEvent(t,e,n){var a,i;const s=this,{config:o,state:{eventReceiver:l,hasAxis:c,hasFunnel:f,hasRadar:g,hasTreemap:v},$el:{eventRect:m,funnel:S,radar:I,treemap:N}}=s;let M=(i=(f||v)&&l.rect||g&&I.axes.select(`.${on.axis}-${e} text`)||m||((a=s.getArcElementByIdOrIndex)==null?void 0:a.call(s,e)))==null?void 0:i.node();if(M){const P=s.isMultipleX(),X=o.axis_rotated;let{width:W,left:G,top:k}=M.getBoundingClientRect();if(c&&!g&&!P){const At=l.coords[e];At?(W=At.w,G+=At.x,k+=At.y):(W=0,G=0,k=0)}const H=G+(n?n[0]:0)+(P||X?0:W/2),at=k+(n?n[1]:0)+(X?4:0),mt={screenX:H,screenY:at,clientX:H,clientY:at,bubbles:g};(f||v)&&(M=(S!=null?S:N).node()),Qg[/^(mouse|click)/.test(t)?"mouse":"touch"](M,t,mt)}},setDragStatus(t){this.state.dragging=t},unbindZoomEvent(){const t=this,{$el:{eventRect:e,zoomResetBtn:n}}=t;e==null||e.on(".zoom wheel.zoom .drag",null),n==null||n.on("click",null).style("display","none")},unbindAllEvents(){var t;const e=this,{$el:{arcs:n,eventRect:a,legend:i,region:s,svg:o,treemap:l},brush:c}=e,f=["wheel","click","mouseover","mousemove","mouseout","touchstart","touchmove","touchend","touchstart.eventRect","touchmove.eventRect","touchend.eventRect",".brush",".drag",".zoom","wheel.zoom","dblclick.zoom"].join(" ");[o,a,s==null?void 0:s.list,c==null?void 0:c.getSelection(),n==null?void 0:n.selectAll("path"),i==null?void 0:i.selectAll("g"),l].forEach(g=>g==null?void 0:g.on(f,null)),(t=e.unbindZoomEvent)==null||t.call(e)}},Nv={categoryName(t){var e;const{axis_x_categories:n}=this.config;return(e=n==null?void 0:n[t])!=null?e:t}},Fv={generateClass(t,e){return` ${t} ${t+this.getTargetSelectorSuffix(e)}`},getClass(t,e){const n=/s$/.test(t),a=/^(area|arc|line|funnel|treemap)s?$/.test(t),i=n?"id":"index";return s=>{const o=s.data||s;return((e?this.generateClass(Ne[n?"shapes":"shape"],o[i]):"")+this.generateClass(Ne[t],o[a?"id":i])).trim()}},getChartClass(t){return e=>Ne[`chart${t}`]+this.classTarget((e.data?e.data:e).id)},generateExtraLineClass(){const e=this.config.line_classes||[],n=[];return function(a){var i;const s=a.id||((i=a.data)==null?void 0:i.id)||a;return n.indexOf(s)<0&&n.push(s),e[n.indexOf(s)%e.length]}},classRegion(t,e){return`${this.generateClass(Ne.region,e)} ${"class"in t?t.class:""}`},classTarget(t){const e=this.config.data_classes[t];let n="";return e&&(n=` ${Ne.target}-${e}`),this.generateClass(Ne.target,t)+n},classFocus(t){return this.classFocused(t)+this.classDefocused(t)},classFocused(t){return` ${this.state.focusedTargetIds.indexOf(t.id)>=0?Ne.focused:""}`},classDefocused(t){return` ${this.state.defocusedTargetIds.indexOf(t.id)>=0?Ne.defocused:""}`},getTargetSelectorSuffix(t){return(t||t===0?`-${t}`:"").replace(/([\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\])/g,"-")},selectorTarget(t,e="",n=""){const a=this.getTargetSelectorSuffix(t);return`${e}.${Ne.target+a} ${n}, ${e}.${Ne.circles+a} ${n}`},selectorTargets(t,e){const n=t||[];return n.length?n.map(a=>this.selectorTarget(a,e)):null},selectorLegend(t){return`.${Ne.legendItem+this.getTargetSelectorSuffix(t)}`},selectorLegends(t){return t!=null&&t.length?t.map(e=>this.selectorLegend(e)):null}};class cc extends Map{constructor(e,n=dc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[a,i]of e)this.set(a,i)}get(e){return super.get(Xs(this,e))}has(e){return super.has(Xs(this,e))}set(e,n){return super.set(uc(this,e),n)}delete(e){return super.delete(fc(this,e))}}class a1 extends Set{constructor(e,n=dc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const a of e)this.add(a)}has(e){return super.has(Xs(this,e))}add(e){return super.add(uc(this,e))}delete(e){return super.delete(fc(this,e))}}function Xs({_intern:t,_key:e},n){const a=e(n);return t.has(a)?t.get(a):n}function uc({_intern:t,_key:e},n){const a=e(n);return t.has(a)?t.get(a):(t.set(a,n),n)}function fc({_intern:t,_key:e},n){const a=e(n);return t.has(a)&&(n=t.get(a),t.delete(a)),n}function dc(t){return t!==null&&typeof t=="object"?t.valueOf():t}function ta(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function i1(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}const hc=Symbol("implicit");function gc(){var t=new cc,e=[],n=[],a=hc;function i(s){let o=t.get(s);if(o===void 0){if(a!==hc)return a;t.set(s,o=e.push(s)-1)}return n[o%n.length]}return i.domain=function(s){if(!arguments.length)return e.slice();e=[],t=new cc;for(const o of s)t.has(o)||t.set(o,e.push(o)-1);return i},i.range=function(s){return arguments.length?(n=Array.from(s),i):n.slice()},i.unknown=function(s){return arguments.length?(a=s,i):a},i.copy=function(){return gc(e,n).unknown(a)},ta.apply(i,arguments),i}const Bv=(t,e,n)=>{const a=st(t.cloneNode(!0));return a.attr("id",n).insert("rect",":first-child").attr("width",a.attr("width")).attr("height",a.attr("height")).style("fill",e),{id:n,node:a.node()}};function Uv(t){const e=Cn.colorPattern,{body:n}=fn;let a=n[e];if(!a){const i=";",s=t.classed(is.colorPattern,!0).style("background-image");t.classed(is.colorPattern,!1),s.indexOf(i)>-1&&(a=s.replace(/url[^#]*|["'()]|(\s|%20)/g,"").split(i).map(o=>o.trim().replace(/[\"'\s]/g,"")).filter(Boolean),n[e]=a)}return a}const zv=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];var jv={generateColor(){const t=this,{$el:e,config:n}=t,a=n.data_colors,i=n.data_color,s=[];let o=nn(n.color_pattern)?n.color_pattern:gc(Uv(e.chart)||zv).range();const l=o;if(he(n.color_tiles)){const c=n.color_tiles.bind(t.api)(),f=o.map((g,v)=>{const m=g.replace(/[#\(\)\s,]/g,""),S=`${t.state.datetimeId}-pattern-${m}-${v}`;return Bv(c[v%c.length],g,S)});o=f.map(g=>`url(#${g.id})`),t.patterns=f}return function(c){var f;const g=c.id||((f=c.data)==null?void 0:f.id)||c,v=t.isTypeOf(g,["line","spline","step"])||!n.data_types[g];let m;return he(a[g])?m=a[g].bind(t.api)(c):a[g]?m=a[g]:(s.indexOf(g)<0&&s.push(g),m=v?l[s.indexOf(g)%l.length]:o[s.indexOf(g)%o.length],a[g]=m),he(i)?i.bind(t.api)(m,c):m}},generateLevelColor(){const t=this,{config:e}=t,n=e.color_pattern,a=e.color_threshold,i=a.unit==="value",s=a.max||100,o=a.values&&a.values.length?a.values:[];return nn(a)?function(l){const c=i?l:l*100/s;let f=n[n.length-1];for(let g=0,v=o.length;g<v;g++)if(c<=o[g]){f=n[g];break}return f}:null},generateTextBGColorFilter(t,e={x:0,y:0,width:1,height:1}){const n=this,{$el:a,state:i}=n;if(t){let s=[];ze(t)?s.push(""):De(t)&&(s=Object.keys(t)),s.forEach(o=>{const l=`${i.datetimeId}-labels-bg${n.getTargetSelectorSuffix(o)}${ze(t)?n.getTargetSelectorSuffix(t):""}`;a.defs.append("filter").attr("x",e.x).attr("y",e.y).attr("width",e.width).attr("height",e.height).attr("id",l).html(`<feFlood flood-color="${o===""?t:t[o]}" />
|
|
41
|
+
<feComposite in="SourceGraphic" />`)})}},getGradienColortUrl(t){return`url(#${this.state.datetimeId}-gradient${this.getTargetSelectorSuffix(t)})`},updateLinearGradient(){const t=this,{config:e,data:{targets:n},state:{datetimeId:a},$el:{defs:i}}=t;n.forEach(s=>{const o=`${a}-gradient${t.getTargetSelectorSuffix(s.id)}`,l=t.hasPointType()&&e.point_radialGradient,c=t.isAreaType(s)&&"area"||t.isBarType(s)&&"bar";if((l||c)&&i.select(`#${o}`).empty()){const f=t.color(s),g={defs:null,stops:[]};if(l){const{cx:v=.3,cy:m=.3,r:S=.7,stops:I=[[.1,f,0],[.9,f,1]]}=l;g.stops=I,g.defs=i.append("radialGradient").attr("id",`${o}`).attr("cx",v).attr("cy",m).attr("r",S)}else{const v=e.axis_rotated,{x:m=v?[1,0]:[0,0],y:S=v?[0,0]:[0,1],stops:I=[[0,f,1],[1,f,0]]}=e[`${c}_linearGradient`];g.stops=I,g.defs=i.append("linearGradient").attr("id",`${o}`).attr("x1",m[0]).attr("x2",m[1]).attr("y1",S[0]).attr("y2",S[1])}g.stops.forEach(v=>{const[m,S,I]=v,N=he(S)?S.bind(t.api)(s.id):S;g.defs&&g.defs.append("stop").attr("offset",m).attr("stop-color",N||f).attr("stop-opacity",I)})}})},setOverColor(t,e){const n=this,{config:a,$el:{main:i}}=n,s=a.color_onover;let o=t?s:n.color;De(o)?o=({id:l})=>l in s?s[l]:n.color(l):ze(o)?o=()=>s:he(s)&&(o=o.bind(n.api)),i.selectAll(De(e)?`.${Be.arc}${n.getTargetSelectorSuffix(e.id)}`:`.${tn.shape}-${e}`).style("fill",o)}},Gv={getYDomainMinMax(t,e){const n=this,{axis:a,config:i}=n,s=e==="min",o=i.data_groups,l=n.mapToIds(t),c=n.getValuesAsIdKeyed(t);if(o.length>0){const f=n[`has${s?"Negative":"Positive"}ValueInTargets`](t);o.forEach(g=>{const v=g.filter(m=>l.indexOf(m)>=0);if(v.length){const m=v[0],S=a.getId(m);f&&c[m]&&(c[m]=c[m].map(I=>(s?I<0:I>0)?I:0)),v.filter((I,N)=>N>0).forEach(I=>{if(c[I]){const N=a.getId(I);c[I].forEach((M,P)=>{const X=+M,W=s?X>0:X<0;N===S&&!(f&&W)&&(c[m][P]+=X)})}})}})}return Kn(e,Object.keys(c).map(f=>Kn(e,c[f])))},isHiddenTargetWithYDomain(t){const e=this;return e.state.hiddenTargetIds.some(n=>e.axis.getId(n)===t)},getYDomain(t,e,n){const a=this,{axis:i,config:s,scale:o}=a,l=`axis_${e}`;if(a.isStackNormalized())return[0,100];const c=(o==null?void 0:o[e])&&o[e].type==="log",f=t.filter(St=>i.getId(St.id)===e),g=n?a.filterByXDomain(f,n):f;if(g.length===0)return a.isHiddenTargetWithYDomain(e)?o[e].domain():e==="y2"?o.y.domain():a.getYDomain(t,"y2",n);const v=s[`${l}_min`],m=s[`${l}_max`],S=s[`${l}_center`],I=s[`${l}_inverted`],N=a.hasDataLabel()&&s.axis_rotated,M=a.hasDataLabel()&&!s.axis_rotated;let P=a.getYDomainMinMax(g,"min"),X=a.getYDomainMinMax(g,"max"),W=[fe.BAR,fe.BUBBLE,fe.SCATTER,...pr.Line].some(St=>{const Tt=St.indexOf("area")>-1?"area":St;return a.hasType(St,g,!0)&&s[`${Tt}_zerobased`]});P=Ie(v)?v:Ie(m)?P<=m?P:m-10:P,X=Ie(m)?m:Ie(v)?v<=X?X:v+10:X,isNaN(P)&&(P=0),isNaN(X)&&(X=P),P===X&&(P<0?X=0:P=0);const G=P>=0&&X>=0,k=P<=0&&X<=0;(Ie(v)&&G||Ie(m)&&k)&&(W=!1),W&&(G&&(P=0),k&&(X=0));const H=Math.abs(X-P);let at={top:H*.1,bottom:H*.1};if(Ve(S)){const St=Math.max(Math.abs(P),Math.abs(X));X=S+St,P=S-St}if(N){const St=Ir(o.y.range()),Tt=a.getDataLabelLength(P,X,"width").map(Gt=>Gt/St);["bottom","top"].forEach((Gt,xt)=>{at[Gt]+=H*(Tt[xt]/(1-Tt[0]-Tt[1]))})}else if(M){const St=a.getDataLabelLength(P,X,"height");["bottom","top"].forEach((Tt,Gt)=>{at[Tt]+=a.convertPixelToScale("y",St[Gt],H)})}at=a.getResettedPadding(at);const mt=s[`${l}_padding`];nn(mt)&&["bottom","top"].forEach(St=>{at[St]=i.getPadding(mt,St,at[St],H)}),W&&(G&&(at.bottom=P),k&&(at.top=-X));const At=c?[P,X].map(St=>St<0?0:St):[P-at.bottom,X+at.top];return I?At.reverse():At},getXDomainMinMax(t,e){var n;const a=this,i=a.config[`axis_x_${e}`],s=Kn(e,t.map(l=>Kn(e,l.values.map(c=>c.x))));let o=De(i)?i.value:i;return o=Ve(o)&&((n=a.axis)!=null&&n.isTimeSeries())?Dn.bind(this)(o):o,De(i)&&i.fit&&(e==="min"&&o<s||e==="max"&&o>s)&&(o=void 0),Ve(o)?o:s},getXDomainPadding(t,e){const n=this,{axis:a,config:i}=n,s=i.axis_x_padding,o=a.isTimeSeries()&&e,l=Ir(t);let c;if(a.isCategorized()||o)c=0;else if(n.hasType("bar")){const v=n.getMaxDataCount();c=v>1?l/(v-1)/2:.5}else c=n.getResettedPadding(l*.01);let{left:f=c,right:g=c}=ue(s)?{left:s,right:s}:s;if(s.unit==="px"){const v=Math.abs(l+l*.2);f=a.getPadding(s,"left",c,v),g=a.getPadding(s,"right",c,v)}else{const v=l+f+g;if(o&&v){const m=l/e/v;f=f/v/m,g=g/v/m}}return{left:f,right:g}},getXDomain(t){const e=this,{axis:n,config:a,scale:{x:i}}=e,s=a.axis_x_inverted,o=[e.getXDomainMinMax(t,"min"),e.getXDomainMinMax(t,"max")];let[l=0,c=0]=o;if(i.type!=="log"){const f=n.isCategorized(),g=n.isTimeSeries(),v=e.getXDomainPadding(o);let[m,S]=o;m-S===0&&!f&&(g?(m=new Date(m.getTime()*.5),S=new Date(S.getTime()*1.5)):(m=m===0?1:m*.5,S=S===0?-1:S*1.5)),(m||m===0)&&(l=g?new Date(m.getTime()-v.left):m-v.left),(S||S===0)&&(c=g?new Date(S.getTime()+v.right):S+v.right)}return s?[c,l]:[l,c]},updateXDomain(t,e,n,a,i){var s;const o=this,{config:l,org:c,scale:{x:f,subX:g}}=o,v=l.zoom_enabled;if(n&&(f.domain(i||qr(o.getXDomain(t),!l.axis_x_inverted)),c.xDomain=f.domain(),g.domain(f.domain()),(s=o.brush)==null||s.scale(g)),e){const m=i||!o.brush||Hl(o)?c.xDomain:Yl(o).map(g.invert);f.domain(m)}return(n||e)&&v&&o.zoom.updateScaleExtent(),a&&f.domain(o.trimXDomain(f.orgDomain())),f.domain()},trimXDomain(t){const e=this,n=e.config.axis_x_inverted,a=e.getZoomDomain(),[i,s]=a;return(n?t[0]>=i:t[0]<=i)&&(t[1]=+t[1]+(i-t[0]),t[0]=i),(n?t[1]<=s:t[1]>=s)&&(t[0]=+t[0]-(t[1]-s),t[1]=s),t},getZoomDomain(t="zoom",e=!1){const n=this,{config:a,scale:i,org:s}=n;let[o,l]=e&&i[t]?i[t].domain():s.xDomain;return t==="zoom"&&(Ve(a.zoom_x_min)&&(o=Kn("min",[o,a.zoom_x_min])),Ve(a.zoom_x_max)&&(l=Kn("max",[l,a.zoom_x_max]))),[o,l]},getZoomDomainValue(t){const e=this,{config:n,axis:a}=e;if(a.isCategorized()&&Array.isArray(t)){const i=n.axis_x_inverted;return t.map((o,l)=>Number(o)+(l===0?+i:+!i))}return t},convertPixelToScale(t,e,n){const a=this,{config:i,state:s}=a,o=i.axis_rotated;let l;return t==="x"?l=o?"height":"width":l=o?"width":"height",n*(e/s[l])},withinRange(t,e=[0,0],n){const i=this.config.axis_x_inverted,[s,o]=n;if(Array.isArray(t)){const l=[...t];if(i&&l.reverse(),l[0]<l[1])return t.every((c,f)=>(f===0?i?+c<=s:+c>=s:i?+c>=o:+c<=o)&&!t.every((g,v)=>g===e[v]))}return!1}};function vc(t,e,n){const{config:a}=t,i=`axis_${e}_tick_format`;return(a[i]?a[i]:t.defaultValueFormat).call(t.api,n)}var Xv={yFormat(t){return vc(this,"y",t)},y2Format(t){return vc(this,"y2",t)},getDefaultValueFormat(){const t=this,{defaultArcValueFormat:e,yFormat:n,y2Format:a}=t,i=t.hasArcType(null,["gauge","polar","radar"]);return function(s,o,l){return(i?e:t.axis&&t.axis.getId(l)==="y2"?a:n).call(t,s,o)}},defaultValueFormat(t){return Fe(t)?t.join("~"):Ie(t)?+t:""},defaultArcValueFormat(t,e){return`${(e*100).toFixed(1)}%`},defaultPolarValueFormat(t){return`${t}`},dataLabelFormat(t){const e=this,n=e.config.data_labels,a=s=>{const o="~";let l=s;return Fe(s)?l=s.join(o):De(s)&&(l=Object.values(s).join(o)),l};let i=a;return he(n.format)?i=n.format:Jn(n.format)&&(n.format[t]?i=n.format[t]===!0?a:n.format[t]:i=()=>""),i.bind(e.api)}};function Ri(t){const e=this,n=e.getDataById(t);return e.levelColor?e.levelColor(n.values[0].value):e.color(n)}function Vs(t,e=!0){var n;const{config:a}=this;let i=(n=a.data_names[t])!=null?n:t;return e&&he(a.legend_format)&&(i=a.legend_format(i)),i}var Vv={initLegend(){const t=this,{config:e,$el:n}=t;t.legendItemTextBox={},t.state.legendHasRendered=!1,e.legend_show?(e.legend_contents_bindto||(n.legend=t.$el.svg.append("g").classed(Xe.legend,!0).attr("transform",t.getTranslate("legend"))),t.updateLegend()):t.state.hiddenLegendIds=t.mapToIds(t.data.targets)},updateLegend(t,e,n){var a;const i=this,{config:s,state:o,scale:l,$el:c}=i,f=e||{withTransform:!1,withTransitionForTransform:!1,withTransition:!1};f.withTransition=vr(f,"withTransition",!0),f.withTransitionForTransform=vr(f,"withTransitionForTransform",!0),s.legend_contents_bindto&&s.legend_contents_template?i.updateLegendTemplate():o.hasTreemap||i.updateLegendElement(t||i.mapToIds(i.data.targets),f,n),(a=c.legend)==null||a.selectAll(`.${Xe.legendItem}`).classed(Xe.legendItemHidden,function(g){const v=!i.isTargetToShow(g);return v&&(this.style.opacity=null),v}),i.updateScales(!1,!l.zoom),i.updateSvgSize(),i.transformAll(f.withTransitionForTransform,n),o.legendHasRendered=!0},updateLegendTemplate(){const t=this,{config:e,$el:n}=t,a=st(e.legend_contents_bindto),i=e.legend_contents_template;if(!a.empty()){const s=t.mapToIds(t.data.targets),o=[];let l="";s.forEach(f=>{const g=he(i)?i.bind(t.api)(f,t.color(f),t.api.data(f)[0].values):bi(i,{COLOR:t.color(f),TITLE:f});g&&(o.push(f),l+=g)});const c=a.html(l).selectAll(function(){return this.childNodes}).data(o);t.setLegendItem(c),n.legend=a}},updateSizeForLegend(t){const e=this,{config:n,state:{isLegendTop:a,isLegendLeft:i,isLegendRight:s,isLegendInset:o,current:l}}=e,{width:c,height:f}=t,g={top:a?e.getCurrentPaddingByDirection("top")+n.legend_inset_y+5.5:l.height-f-e.getCurrentPaddingByDirection("bottom")-n.legend_inset_y,left:i?e.getCurrentPaddingByDirection("left")+n.legend_inset_x+.5:l.width-c-e.getCurrentPaddingByDirection("right")-n.legend_inset_x+.5};e.state.margin3={top:s?0:o?g.top:l.height-f,right:NaN,bottom:0,left:s?l.width-c:o?g.left:0}},transformLegend(t){const e=this,{$el:{legend:n},$T:a}=e;a(n,t).attr("transform",e.getTranslate("legend"))},updateLegendStep(t){this.state.legendStep=t},updateLegendItemWidth(t){this.state.legendItemWidth=t},updateLegendItemHeight(t){this.state.legendItemHeight=t},updateLegendItemColor(t,e){const{legend:n}=this.$el;n&&n.select(`.${Xe.legendItem}-${t} line`).style("stroke",e)},getLegendWidth(){const t=this,{current:{width:e},isLegendRight:n,isLegendInset:a,legendItemWidth:i,legendStep:s}=t.state;return t.config.legend_show?n||a?i*(s+1):e:0},getLegendHeight(){var t;const e=this,{current:n,isLegendRight:a,legendItemHeight:i,legendStep:s}=e.state,o=((t=e.config.padding)==null?void 0:t.mode)==="fit";return e.config.legend_show?a?n.height:(o?10:Math.max(20,i))*(s+1):0},opacityForUnfocusedLegend(t){return t.classed(Xe.legendItemHidden)?null:"0.3"},toggleFocusLegend(t,e){const n=this,{$el:{legend:a},$T:i}=n,s=n.mapToTargetIds(t);a&&i(a.selectAll(`.${Xe.legendItem}`).filter(o=>s.indexOf(o)>=0).classed(We.legendItemFocused,e)).style("opacity",function(){return e?null:n.opacityForUnfocusedLegend.call(n,st(this))})},revertLegend(){const t=this,{$el:{legend:e},$T:n}=t;e&&n(e.selectAll(`.${Xe.legendItem}`).classed(We.legendItemFocused,!1)).style("opacity",null)},showLegend(t){const e=this,{config:n,$el:a,$T:i}=e;n.legend_show||(n.legend_show=!0,a.legend?a.legend.style("visibility",null):e.initLegend(),!e.state.legendHasRendered&&e.updateLegend()),e.removeHiddenLegendIds(t),i(a.legend.selectAll(e.selectorLegends(t)).style("visibility",null)).style("opacity",null)},hideLegend(t){const e=this,{config:n,$el:{legend:a}}=e;n.legend_show&&Wn(t)&&(n.legend_show=!1,a.style("visibility","hidden")),e.addHiddenLegendIds(t),a.selectAll(e.selectorLegends(t)).style("opacity","0").style("visibility","hidden")},getLegendItemTextBox(t,e){const n=this,{cache:a,state:i}=n;let s;const o=Cn.legendItemTextBox;return t&&(s=!i.redrawing&&a.get(o)||{},s[t]||(s[t]=n.getTextRect(e,Xe.legendItem),a.add(o,s)),s=s[t]),s},setLegendItem(t){const e=this,{$el:n,api:a,config:i,state:s}=e,o=s.inputType==="touch",l=e.hasType("gauge"),c=i.boost_useCssRule,f=i.legend_item_interaction;t.attr("class",function(g){const v=st(this);return(!v.empty()&&v.attr("class")||"")+e.generateClass(Xe.legendItem,g)}).style("visibility",g=>e.isLegendToShow(g)?null:"hidden"),i.interaction_enabled&&(c&&[[`.${Xe.legendItem}`,"cursor:pointer"],[`.${Xe.legendItem} text`,"pointer-events:none"],[`.${Xe.legendItemPoint} text`,"pointer-events:none"],[`.${Xe.legendItemTile}`,"pointer-events:none"],[`.${Xe.legendItemEvent}`,"fill-opacity:0"]].forEach(g=>{const[v,m]=g;e.setCssRule(!1,v,[m])(n.legend)}),t.on(f.dblclick?"dblclick":"click",f||he(i.legend_item_onclick)?function(g,v){if(!Ze(i.legend_item_onclick,a,v)){const{altKey:m,target:S,type:I}=g;I==="dblclick"||m?s.hiddenTargetIds.length&&S.parentNode.getAttribute("class").indexOf(Xe.legendItemHidden)===-1?a.show():(a.hide(),a.show(v)):(a.toggle(v),st(this).classed(We.legendItemFocused,!1))}o&&e.hideTooltip()}:null),!o&&t.on("mouseout",f||he(i.legend_item_onout)?function(g,v){Ze(i.legend_item_onout,a,v)||(st(this).classed(We.legendItemFocused,!1),l&&e.undoMarkOverlapped(e,`.${Ln.gaugeValue}`),e.api.revert())}:null).on("mouseover",f||he(i.legend_item_onover)?function(g,v){Ze(i.legend_item_onover,a,v)||(st(this).classed(We.legendItemFocused,!0),l&&e.markOverlapped(v,e,`.${Ln.gaugeValue}`),!s.transiting&&e.isTargetToShow(v)&&a.focus(v))}:null),!t.empty()&&t.on("click mouseout mouseover")&&t.style("cursor",e.getStylePropValue("pointer")))},updateLegendElement(t,e){const n=this,{config:a,state:i,$el:{legend:s},$T:o}=n,c=a.legend_item_tile_type!=="circle",f=a.legend_item_tile_r,g={width:c?a.legend_item_tile_width:f*2,height:c?a.legend_item_tile_height:f*2},v={padding:{top:4,right:10},max:{width:0,height:0},posMin:10,step:0,tileWidth:g.width+5,totalLength:0},m={offsets:{},widths:{},heights:{},margins:[0],steps:{}};let S,I,N;const M=t.filter(H=>!Ve(a.data_names[H])||a.data_names[H]!==null),P=e.withTransition,X=n.getUpdateLegendPositions(M,v,m);i.isLegendInset&&(v.step=a.legend_inset_step?a.legend_inset_step:M.length,n.updateLegendStep(v.step)),i.isLegendRight?(S=H=>v.max.width*m.steps[H],I=H=>m.margins[m.steps[H]]+m.offsets[H]):i.isLegendInset?(S=H=>v.max.width*m.steps[H]+10,I=H=>m.margins[m.steps[H]]+m.offsets[H]):(S=H=>m.margins[m.steps[H]]+m.offsets[H],I=H=>v.max.height*m.steps[H]);const W={xText:(H,at)=>S(H,at)+4+g.width,xRect:(H,at)=>S(H,at),x1Tile:(H,at)=>S(H,at)-2,x2Tile:(H,at)=>S(H,at)-2+g.width,yText:(H,at)=>I(H,at)+9,yRect:(H,at)=>I(H,at)-5,yTile:(H,at)=>I(H,at)+4};n.generateLegendItem(M,g,X,W),N=s.select(`.${Xe.legendBackground} rect`),i.isLegendInset&&v.max.width>0&&N.size()===0&&(N=s.insert("g",`.${Xe.legendItem}`).attr("class",Xe.legendBackground).append("rect")),a.legend_tooltip&&s.selectAll("title").data(M).text(H=>Vs.bind(n)(H,!1));const G=s.selectAll("text").data(M).text(H=>Vs.bind(n)(H)).each(function(H,at){X(this,H,at)});o(G,P).attr("x",W.xText).attr("y",W.yText);const k=s.selectAll(`rect.${Xe.legendItemEvent}`).data(M);o(k,P).attr("width",H=>m.widths[H]).attr("height",H=>m.heights[H]).attr("x",W.xRect).attr("y",W.yRect),n.updateLegendItemPos(M,P,W),N&&o(N,P).attr("height",n.getLegendHeight()-12).attr("width",v.max.width*(v.step+1)+10),n.updateLegendItemWidth(v.max.width),n.updateLegendItemHeight(v.max.height),n.updateLegendStep(v.step)},getUpdateLegendPositions(t,e,n){const a=this,{config:i,state:s}=a,o=s.isLegendRight||s.isLegendInset;return function(l,c,f){const g=f===0,v=f===t.length-1,m=a.getLegendItemTextBox(c,l),S=m.width+e.tileWidth+(v&&!o?0:e.padding.right)+i.legend_padding,I=m.height+e.padding.top,N=o?I:S,M=o?a.getLegendHeight():a.getLegendWidth();let P;const X=function(G,k){k||(P=(M-e.totalLength-N)/2,P<e.posMin&&(P=(M-N)/2,e.totalLength=0,e.step++)),n.steps[G]=e.step,n.margins[e.step]=s.isLegendInset?10:P,n.offsets[G]=e.totalLength,e.totalLength+=N};if(g&&(e.totalLength=0,e.step=0,e.max.width=0,e.max.height=0),i.legend_show&&!a.isLegendToShow(c)){n.widths[c]=0,n.heights[c]=0,n.steps[c]=0,n.offsets[c]=0;return}n.widths[c]=S,n.heights[c]=I,(!e.max.width||S>=e.max.width)&&(e.max.width=S),(!e.max.height||I>=e.max.height)&&(e.max.height=I);const W=o?e.max.height:e.max.width;i.legend_equally?(Object.keys(n.widths).forEach(G=>n.widths[G]=e.max.width),Object.keys(n.heights).forEach(G=>n.heights[G]=e.max.height),P=(M-W*t.length)/2,P<e.posMin?(e.totalLength=0,e.step=0,t.forEach(G=>X(G))):X(c,!0)):X(c)}},generateLegendItem(t,e,n,a){const i=this,{config:s,state:o,$el:{legend:l}}=i,c=s.legend_usePoint,f=s.legend_item_tile_r,g=s.legend_item_tile_type,v=g!=="circle",m=o.isLegendRight||o.isLegendInset,S=-200,I=l.selectAll(`.${Xe.legendItem}`).data(t).enter().append("g");if(i.setLegendItem(I),s.legend_tooltip&&I.append("title").text(N=>N),I.append("text").text(N=>Vs.bind(i)(N)).each(function(N,M){n(this,N,M)}).style("pointer-events",i.getStylePropValue("none")).attr("x",m?a.xText:S).attr("y",m?S:a.yText),I.append("rect").attr("class",Xe.legendItemEvent).style("fill-opacity",i.getStylePropValue("0")).attr("x",m?a.xRect:S).attr("y",m?S:a.yRect),c){const N=[];I.append(M=>{const P=nn(s.point_pattern)?s.point_pattern:[s.point_type];N.indexOf(M)===-1&&N.push(M);let X=P[N.indexOf(M)%P.length];return X==="rectangle"&&(X="rect"),fn.createElementNS(ee.svg,"hasValidPointType"in i&&i.hasValidPointType(X)?X:"use")}).attr("class",Xe.legendItemPoint).style("fill",Ri.bind(i)).style("pointer-events",i.getStylePropValue("none")).attr("href",(M,P,X)=>{const G=X[P].nodeName.toLowerCase(),k=i.getTargetSelectorSuffix(M);return G==="use"?`#${o.datetimeId}-point${k}`:void 0})}else I.append(v?"line":g).attr("class",Xe.legendItemTile).style("stroke",Ri.bind(i)).style("pointer-events",i.getStylePropValue("none")).call(N=>{g==="circle"?N.attr("r",f).style("fill",Ri.bind(i)).attr("cx",m?a.x2Tile:S).attr("cy",m?S:a.yTile):v&&N.attr("stroke-width",e.height).attr("x1",m?a.x1Tile:S).attr("y1",m?S:a.yTile).attr("x2",m?a.x2Tile:S).attr("y2",m?S:a.yTile)})},updateLegendItemPos(t,e,n){const a=this,{config:i,$el:{legend:s},$T:o}=a,l=i.legend_usePoint,c=i.legend_item_tile_type,f=c!=="circle";if(l){const g=s.selectAll(`.${Xe.legendItemPoint}`).data(t);o(g,e).each(function(){const v=this.nodeName.toLowerCase(),m=i.point_r;let S="x",I="y",N=2,M=2.5,P=null,X=null,W=null;if(v==="circle"){const G=m*.2;S="cx",I="cy",P=m+G,N=m*2,M=-G}else if(v==="rect"){const G=m*2.5;X=G,W=G,M=3}st(this).attr(S,G=>n.x1Tile(G)+N).attr(I,G=>n.yTile(G)-M).attr("r",P).attr("width",X).attr("height",W)})}else{const g=s.selectAll(`.${Xe.legendItemTile}`).data(t);o(g,e).style("stroke",Ri.bind(a)).call(v=>{c==="circle"?v.attr("cx",m=>{const S=n.x2Tile(m);return S-(S-n.x1Tile(m))/2}).attr("cy",n.yTile):f&&v.attr("x1",n.x1Tile).attr("y1",n.yTile).attr("x2",n.x2Tile).attr("y2",n.yTile)})}}},Yv={redraw(t={}){var e,n,a,i;const s=this,{config:o,state:l,$el:c}=s,{main:f,treemap:g}=c;l.redrawing=!0;const v=s.filterTargetsToShow(s.data.targets),{flow:m,initializing:S}=t,I=s.getWithOption(t),N=I.Transition?o.transition_duration:0,M=I.TransitionForExit?N:0,P=I.TransitionForAxis?N:0,X=(e=s.axis)==null?void 0:e.generateTransitions(P);s.updateSizes(S),I.Legend&&o.legend_show?(t.withTransition=!!N,!g&&s.updateLegend(s.mapToIds(s.data.targets),t,X)):I.Dimension&&s.updateDimension(!0),o.data_empty_label_text&&f.select(`text.${An.text}.${Se.empty}`).attr("x",l.width/2).attr("y",l.height/2).text(o.data_empty_label_text).style("display",v.length?"none":null),l.hasAxis?(s.axis.redrawAxis(v,I,X,m,S),s.hasGrid()&&s.updateGrid(),o.regions.length&&s.updateRegion(),["bar","candlestick","line","area"].forEach(W=>{const G=In(W);(/^(line|area)$/.test(W)&&s.hasTypeOf(G)||s.hasType(W))&&s[`update${G}`](I.TransitionForExit)}),c.text&&f.selectAll(`.${ke.selectedCircles}`).filter(s.isBarType.bind(s)).selectAll("circle").remove(),o.interaction_enabled&&!m&&I.EventRect&&(s.redrawEventRect(),(n=s.bindZoomEvent)==null||n.call(s))):(c.arcs&&s.redrawArc(N,M,I.Transform),c.radar&&s.redrawRadar(),c.polar&&s.redrawPolar(),c.funnel&&s.redrawFunnel(),g&&s.updateTreemap(M)),!l.resizing&&!g&&(s.hasPointType()||l.hasRadar)?s.updateCircle():(a=s.hasLegendDefsPoint)!=null&&a.call(s)&&s.data.targets.forEach(s.point("create",this)),s.hasDataLabel()&&!s.hasArcType(null,["radar"])&&s.updateText(),(i=s.redrawTitle)==null||i.call(s),S&&s.updateTypesElements(),s.generateRedrawList(v,m,N,I.Subchart),s.updateTooltipOnRedraw(),s.callPluginHook("$redraw",t,N)},generateRedrawList(t,e,n,a){const i=this,{config:s,state:o}=i,l=i.getDrawShape();o.hasAxis&&s.subchart_show&&i.redrawSubchart(a,n,l);const c=e&&i.generateFlow({targets:t,flow:e,duration:e.duration,shape:l,xv:i.xv.bind(i)}),f=(n||c)&&Pa(),g=i.getRedrawList(l,e,c,f),v=()=>{c&&c(),o.redrawing=!1,Ze(s.onrendered,i.api)};if(v)if(f&&g.length){const m=ql();Pl().duration(n).each(()=>{g.reduce((S,I)=>S.concat(I),[]).forEach(S=>m.add(S))}).call(m,v)}else o.transiting||v();i.mapToIds(i.data.targets).forEach(m=>{o.withoutFadeIn[m]=!0})},getRedrawList(t,e,n,a){const i=this,{config:s,state:{hasAxis:o,hasRadar:l,hasTreemap:c},$el:{grid:f}}=i,{cx:g,cy:v,xForText:m,yForText:S}=t.pos,I=[];return o&&((s.grid_x_lines.length||s.grid_y_lines.length)&&I.push(i.redrawGrid(a)),s.regions.length&&I.push(i.redrawRegion(a)),Object.keys(t.type).forEach(N=>{const M=In(N),P=t.type[N];(/^(area|line)$/.test(N)&&i.hasTypeOf(M)||i.hasType(N))&&I.push(i[`redraw${M}`](P,a))}),!e&&f.main&&I.push(i.updateGridFocus())),(!i.hasArcType()||l)&&nn(s.data_labels)&&s.data_labels!==!1&&I.push(i.redrawText(m,S,e,a)),(i.hasPointType()||l)&&!i.isPointFocusOnly()&&i.redrawCircle&&I.push(i.redrawCircle(g,v,a,n)),c&&I.push(i.redrawTreemap(a)),I},updateAndRedraw(t={}){const e=this,{config:n,state:a}=e;let i;t.withTransition=vr(t,"withTransition",!0),t.withTransform=vr(t,"withTransform",!1),t.withLegend=vr(t,"withLegend",!1),t.withUpdateXDomain=!0,t.withUpdateOrgXDomain=!0,t.withTransitionForExit=!1,t.withTransitionForTransform=vr(t,"withTransitionForTransform",t.withTransition),t.withLegend&&n.legend_show||(a.hasAxis&&(i=e.axis.generateTransitions(t.withTransitionForAxis?n.transition_duration:0)),e.updateScales(),e.updateSvgSize(),e.transformAll(t.withTransitionForTransform,i)),e.redraw(t,i)}};const Hv=Math.sqrt(50),Wv=Math.sqrt(10),Kv=Math.sqrt(2);function Oi(t,e,n){const a=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(a)),s=a/Math.pow(10,i),o=s>=Hv?10:s>=Wv?5:s>=Kv?2:1;let l,c,f;return i<0?(f=Math.pow(10,-i)/o,l=Math.round(t*f),c=Math.round(e*f),l/f<t&&++l,c/f>e&&--c,f=-f):(f=Math.pow(10,i)*o,l=Math.round(t/f),c=Math.round(e/f),l*f<t&&++l,c*f>e&&--c),c<l&&.5<=n&&n<2?Oi(t,e,n*2):[l,c,f]}function Ys(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];const a=e<t,[i,s,o]=a?Oi(e,t,n):Oi(t,e,n);if(!(s>=i))return[];const l=s-i+1,c=new Array(l);if(a)if(o<0)for(let f=0;f<l;++f)c[f]=(s-f)/-o;else for(let f=0;f<l;++f)c[f]=(s-f)*o;else if(o<0)for(let f=0;f<l;++f)c[f]=(i+f)/-o;else for(let f=0;f<l;++f)c[f]=(i+f)*o;return c}function Hs(t,e,n){return e=+e,t=+t,n=+n,Oi(t,e,n)[2]}function Ws(t,e,n){e=+e,t=+t,n=+n;const a=e<t,i=a?Hs(e,t,n):Hs(t,e,n);return(a?-1:1)*(i<0?1/-i:i)}function Ii(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Zv(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Ks(t){let e,n,a;t.length!==2?(e=Ii,n=(l,c)=>Ii(t(l),c),a=(l,c)=>t(l)-c):(e=t===Ii||t===Zv?t:kv,n=t,a=t);function i(l,c,f=0,g=l.length){if(f<g){if(e(c,c)!==0)return g;do{const v=f+g>>>1;n(l[v],c)<0?f=v+1:g=v}while(f<g)}return f}function s(l,c,f=0,g=l.length){if(f<g){if(e(c,c)!==0)return g;do{const v=f+g>>>1;n(l[v],c)<=0?f=v+1:g=v}while(f<g)}return f}function o(l,c,f=0,g=l.length){const v=i(l,c,f,g-1);return v>f&&a(l[v-1],c)>-a(l[v],c)?v-1:v}return{left:i,center:o,right:s}}function kv(){return 0}function Jv(t){return t===null?NaN:+t}function*s1(t,e){if(e===void 0)for(let n of t)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let a of t)(a=e(a,++n,t))!=null&&(a=+a)>=a&&(yield a)}}const pc=Ks(Ii),Qv=pc.right,o1=pc.left,l1=Ks(Jv).center;var _v=Qv;function qv(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function tp(t){return function(){return t}}function ep(t){return+t}var mc=[0,1];function ea(t){return t}function Zs(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:tp(isNaN(e)?NaN:.5)}function np(t,e){var n;return t>e&&(n=t,t=e,e=n),function(a){return Math.max(t,Math.min(e,a))}}function rp(t,e,n){var a=t[0],i=t[1],s=e[0],o=e[1];return i<a?(a=Zs(i,a),s=n(o,s)):(a=Zs(a,i),s=n(s,o)),function(l){return s(a(l))}}function ap(t,e,n){var a=Math.min(t.length,e.length)-1,i=new Array(a),s=new Array(a),o=-1;for(t[a]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<a;)i[o]=Zs(t[o],t[o+1]),s[o]=n(e[o],e[o+1]);return function(l){var c=_v(t,l,1,a)-1;return s[c](i[c](l))}}function Ci(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function ks(){var t=mc,e=mc,n=Kr,a,i,s,o=ea,l,c,f;function g(){var m=Math.min(t.length,e.length);return o!==ea&&(o=np(t[0],t[m-1])),l=m>2?ap:rp,c=f=null,v}function v(m){return m==null||isNaN(m=+m)?s:(c||(c=l(t.map(a),e,n)))(a(o(m)))}return v.invert=function(m){return o(i((f||(f=l(e,t.map(a),Yn)))(m)))},v.domain=function(m){return arguments.length?(t=Array.from(m,ep),g()):t.slice()},v.range=function(m){return arguments.length?(e=Array.from(m),g()):e.slice()},v.rangeRound=function(m){return e=Array.from(m),n=qv,g()},v.clamp=function(m){return arguments.length?(o=m?!0:ea,g()):o!==ea},v.interpolate=function(m){return arguments.length?(n=m,g()):n},v.unknown=function(m){return arguments.length?(s=m,v):s},function(m,S){return a=m,i=S,g()}}function yc(){return ks()(ea,ea)}var ip=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ma(t){if(!(e=ip.exec(t)))throw new Error("invalid format: "+t);var e;return new Js({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]})}Ma.prototype=Js.prototype;function Js(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}Js.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function sp(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Pi(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,a=t.slice(0,n);return[a.length>1?a[0]+a.slice(2):a,+t.slice(n+1)]}function na(t){return t=Pi(Math.abs(t)),t?t[1]:NaN}function op(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(na(e)/3)))*3-na(Math.abs(t)))}function lp(t,e){return function(n,a){for(var i=n.length,s=[],o=0,l=t[0],c=0;i>0&&l>0&&(c+l+1>a&&(l=Math.max(1,a-c)),s.push(n.substring(i-=l,i+l)),!((c+=l+1)>a));)l=t[o=(o+1)%t.length];return s.reverse().join(e)}}function cp(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}function up(t){t:for(var e=t.length,n=1,a=-1,i;n<e;++n)switch(t[n]){case".":a=i=n;break;case"0":a===0&&(a=n),i=n;break;default:if(!+t[n])break t;a>0&&(a=0);break}return a>0?t.slice(0,a)+t.slice(i+1):t}var xc;function fp(t,e){var n=Pi(t,e);if(!n)return t+"";var a=n[0],i=n[1],s=i-(xc=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=a.length;return s===o?a:s>o?a+new Array(s-o+1).join("0"):s>0?a.slice(0,s)+"."+a.slice(s):"0."+new Array(1-s).join("0")+Pi(t,Math.max(0,e+s-1))[0]}function Tc(t,e){var n=Pi(t,e);if(!n)return t+"";var a=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+a:a.length>i+1?a.slice(0,i+1)+"."+a.slice(i+1):a+new Array(i-a.length+2).join("0")}var $c={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:sp,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Tc(t*100,e),r:Tc,s:fp,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Sc(t){return t}var Ac=Array.prototype.map,bc=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function dp(t){var e=t.grouping===void 0||t.thousands===void 0?Sc:lp(Ac.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",a=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",s=t.numerals===void 0?Sc:cp(Ac.call(t.numerals,String)),o=t.percent===void 0?"%":t.percent+"",l=t.minus===void 0?"\u2212":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function f(v){v=Ma(v);var m=v.fill,S=v.align,I=v.sign,N=v.symbol,M=v.zero,P=v.width,X=v.comma,W=v.precision,G=v.trim,k=v.type;k==="n"?(X=!0,k="g"):$c[k]||(W===void 0&&(W=12),G=!0,k="g"),(M||m==="0"&&S==="=")&&(M=!0,m="0",S="=");var H=N==="$"?n:N==="#"&&/[boxX]/.test(k)?"0"+k.toLowerCase():"",at=N==="$"?a:/[%p]/.test(k)?o:"",mt=$c[k],At=/[defgprs%]/.test(k);W=W===void 0?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,W)):Math.max(0,Math.min(20,W));function St(Tt){var Gt=H,xt=at,Q,Ct,ht;if(k==="c")xt=mt(Tt)+xt,Tt="";else{Tt=+Tt;var It=Tt<0||1/Tt<0;if(Tt=isNaN(Tt)?c:mt(Math.abs(Tt),W),G&&(Tt=up(Tt)),It&&+Tt==0&&I!=="+"&&(It=!1),Gt=(It?I==="("?I:l:I==="-"||I==="("?"":I)+Gt,xt=(k==="s"?bc[8+xc/3]:"")+xt+(It&&I==="("?")":""),At){for(Q=-1,Ct=Tt.length;++Q<Ct;)if(ht=Tt.charCodeAt(Q),48>ht||ht>57){xt=(ht===46?i+Tt.slice(Q+1):Tt.slice(Q))+xt,Tt=Tt.slice(0,Q);break}}}X&&!M&&(Tt=e(Tt,1/0));var Yt=Gt.length+Tt.length+xt.length,Xt=Yt<P?new Array(P-Yt+1).join(m):"";switch(X&&M&&(Tt=e(Xt+Tt,Xt.length?P-xt.length:1/0),Xt=""),S){case"<":Tt=Gt+Tt+xt+Xt;break;case"=":Tt=Gt+Xt+Tt+xt;break;case"^":Tt=Xt.slice(0,Yt=Xt.length>>1)+Gt+Tt+xt+Xt.slice(Yt);break;default:Tt=Xt+Gt+Tt+xt;break}return s(Tt)}return St.toString=function(){return v+""},St}function g(v,m){var S=f((v=Ma(v),v.type="f",v)),I=Math.max(-8,Math.min(8,Math.floor(na(m)/3)))*3,N=Math.pow(10,-I),M=bc[8+I/3];return function(P){return S(N*P)+M}}return{format:f,formatPrefix:g}}var wi,Qs,Ec;hp({thousands:",",grouping:[3],currency:["$",""]});function hp(t){return wi=dp(t),Qs=wi.format,Ec=wi.formatPrefix,wi}function gp(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,na(e)-na(t))+1}function vp(t){return Math.max(0,-na(Math.abs(t)))}function pp(t,e,n,a){var i=Ws(t,e,n),s;switch(a=Ma(a==null?",f":a),a.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));return a.precision==null&&!isNaN(s=op(i,o))&&(a.precision=s),Ec(a,o)}case"":case"e":case"g":case"p":case"r":{a.precision==null&&!isNaN(s=gp(i,Math.max(Math.abs(t),Math.abs(e))))&&(a.precision=s-(a.type==="e"));break}case"f":case"%":{a.precision==null&&!isNaN(s=vp(i))&&(a.precision=s-(a.type==="%")*2);break}}return Qs(a)}function Rc(t){var e=t.domain;return t.ticks=function(n){var a=e();return Ys(a[0],a[a.length-1],n==null?10:n)},t.tickFormat=function(n,a){var i=e();return pp(i[0],i[i.length-1],n==null?10:n,a)},t.nice=function(n){n==null&&(n=10);var a=e(),i=0,s=a.length-1,o=a[i],l=a[s],c,f,g=10;for(l<o&&(f=o,o=l,l=f,f=i,i=s,s=f);g-- >0;){if(f=Hs(o,l,n),f===c)return a[i]=o,a[s]=l,e(a);if(f>0)o=Math.floor(o/f)*f,l=Math.ceil(l/f)*f;else if(f<0)o=Math.ceil(o*f)/f,l=Math.floor(l*f)/f;else break;c=f}return t},t}function Mi(){var t=yc();return t.copy=function(){return Ci(t,Mi())},ta.apply(t,arguments),Rc(t)}function Oc(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Ic(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function mp(t){var e=1,n=t(Oc(e),Ic(e));return n.constant=function(a){return arguments.length?t(Oc(e=+a),Ic(e)):e},Rc(n)}function Cc(){var t=mp(ks());return t.copy=function(){return Ci(t,Cc()).constant(t.constant())},ta.apply(t,arguments)}function Pc(t,e){t=t.slice();var n=0,a=t.length-1,i=t[n],s=t[a],o;return s<i&&(o=n,n=a,a=o,o=i,i=s,s=o),t[n]=e.floor(i),t[a]=e.ceil(s),t}function wc(t){return Math.log(t)}function Mc(t){return Math.exp(t)}function yp(t){return-Math.log(-t)}function xp(t){return-Math.exp(-t)}function Tp(t){return isFinite(t)?+("1e"+t):t<0?0:t}function $p(t){return t===10?Tp:t===Math.E?Math.exp:e=>Math.pow(t,e)}function Sp(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function Lc(t){return(e,n)=>-t(-e,n)}function Ap(t){const e=t(wc,Mc),n=e.domain;let a=10,i,s;function o(){return i=Sp(a),s=$p(a),n()[0]<0?(i=Lc(i),s=Lc(s),t(yp,xp)):t(wc,Mc),e}return e.base=function(l){return arguments.length?(a=+l,o()):a},e.domain=function(l){return arguments.length?(n(l),o()):n()},e.ticks=l=>{const c=n();let f=c[0],g=c[c.length-1];const v=g<f;v&&([f,g]=[g,f]);let m=i(f),S=i(g),I,N;const M=l==null?10:+l;let P=[];if(!(a%1)&&S-m<M){if(m=Math.floor(m),S=Math.ceil(S),f>0){for(;m<=S;++m)for(I=1;I<a;++I)if(N=m<0?I/s(-m):I*s(m),!(N<f)){if(N>g)break;P.push(N)}}else for(;m<=S;++m)for(I=a-1;I>=1;--I)if(N=m>0?I/s(-m):I*s(m),!(N<f)){if(N>g)break;P.push(N)}P.length*2<M&&(P=Ys(f,g,M))}else P=Ys(m,S,Math.min(S-m,M)).map(s);return v?P.reverse():P},e.tickFormat=(l,c)=>{if(l==null&&(l=10),c==null&&(c=a===10?"s":","),typeof c!="function"&&(!(a%1)&&(c=Ma(c)).precision==null&&(c.trim=!0),c=Qs(c)),l===1/0)return c;const f=Math.max(1,a*l/e.ticks().length);return g=>{let v=g/s(Math.round(i(g)));return v*a<a-.5&&(v*=a),v<=f?c(g):""}},e.nice=()=>n(Pc(n(),{floor:l=>s(Math.floor(i(l))),ceil:l=>s(Math.ceil(i(l)))})),e}function Dc(){const t=Ap(ks()).domain([1,10]);return t.copy=()=>Ci(t,Dc()).base(t.base()),ta.apply(t,arguments),t}const Li=Je(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Li.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?Je(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Li);const c1=Li.range,Lr=Je(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Bn)},(t,e)=>(e-t)/Bn,t=>t.getUTCSeconds()),u1=Lr.range,_s=Je(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Bn)},(t,e)=>{t.setTime(+t+e*Sn)},(t,e)=>(e-t)/Sn,t=>t.getMinutes()),f1=_s.range,qs=Je(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*Sn)},(t,e)=>(e-t)/Sn,t=>t.getUTCMinutes()),d1=qs.range,to=Je(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Bn-t.getMinutes()*Sn)},(t,e)=>{t.setTime(+t+e*Mn)},(t,e)=>(e-t)/Mn,t=>t.getHours()),h1=to.range,eo=Je(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Mn)},(t,e)=>(e-t)/Mn,t=>t.getUTCHours()),g1=eo.range,no=Je(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth()),v1=no.range,ro=Je(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth()),p1=ro.range;function Nc(t,e,n,a,i,s){const o=[[Lr,1,Bn],[Lr,5,5*Bn],[Lr,15,15*Bn],[Lr,30,30*Bn],[s,1,Sn],[s,5,5*Sn],[s,15,15*Sn],[s,30,30*Sn],[i,1,Mn],[i,3,3*Mn],[i,6,6*Mn],[i,12,12*Mn],[a,1,tr],[a,2,2*tr],[n,1,qi],[e,1,Io],[e,3,3*Io],[t,1,ts]];function l(f,g,v){const m=g<f;m&&([f,g]=[g,f]);const S=v&&typeof v.range=="function"?v:c(f,g,v),I=S?S.range(f,+g+1):[];return m?I.reverse():I}function c(f,g,v){const m=Math.abs(g-f)/v,S=Ks(([,,M])=>M).right(o,m);if(S===o.length)return t.every(Ws(f/ts,g/ts,v));if(S===0)return Li.every(Math.max(Ws(f,g,v),1));const[I,N]=o[m/o[S-1][2]<o[S][2]/m?S-1:S];return I.every(N)}return[l,c]}const[bp,Ep]=Nc(nr,ro,Ja,Co,eo,qs),[Rp,Op]=Nc(er,no,Za,ga,to,_s);function Ip(t){return new Date(t)}function Cp(t){return t instanceof Date?+t:+new Date(+t)}function ao(t,e,n,a,i,s,o,l,c,f){var g=yc(),v=g.invert,m=g.domain,S=f(".%L"),I=f(":%S"),N=f("%I:%M"),M=f("%I %p"),P=f("%a %d"),X=f("%b %d"),W=f("%B"),G=f("%Y");function k(H){return(c(H)<H?S:l(H)<H?I:o(H)<H?N:s(H)<H?M:a(H)<H?i(H)<H?P:X:n(H)<H?W:G)(H)}return g.invert=function(H){return new Date(v(H))},g.domain=function(H){return arguments.length?m(Array.from(H,Cp)):m().map(Ip)},g.ticks=function(H){var at=m();return t(at[0],at[at.length-1],H==null?10:H)},g.tickFormat=function(H,at){return at==null?k:f(at)},g.nice=function(H){var at=m();return(!H||typeof H.range!="function")&&(H=e(at[0],at[at.length-1],H==null?10:H)),H?m(Pc(at,H)):g},g.copy=function(){return Ci(g,ao(t,e,n,a,i,s,o,l,c,f))},g}function Pp(){return ta.apply(ao(Rp,Op,er,no,Za,ga,to,_s,Lr,rs).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function wp(){return ta.apply(ao(bp,Ep,nr,ro,Ja,_a,eo,qs,Lr,as).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Dr(t="linear",e=0,n=1){const a={linear:Mi,log:Cc,_log:Dc,time:Pp,utc:wp}[t]();return a.type=t,/_?log/.test(t)&&a.clamp(!0),a.range([e,n])}var Mp={getXScale(t,e,n,a){const i=this,s=i.state.loading!=="append"&&i.scale.zoom||Dr(i.axis.getAxisType("x"),t,e);return i.getCustomizedXScale(n?s.domain(n):s,a)},getYScale(t,e,n,a){const s=Dr(this.axis.getAxisType(t),e,n);return a&&s.domain(a),s},getYScaleById(t,e=!1){var n;const a=((n=this.axis)==null?void 0:n.getId(t))==="y2",i=e?a?"subY2":"subY":a?"y2":"y";return this.scale[i]},getCustomizedXScale(t,e){const n=this,a=e||(()=>n.axis.x.tickOffset()),i=n.config.axis_x_inverted,s=function(o,l){const c=t(o)+a();return l?c:Math.ceil(c)};for(const o in t)s[o]=t[o];return s.orgDomain=()=>t.domain(),s.orgScale=()=>t,n.axis.isCategorized()&&(s.domain=function(o){let l=o;return arguments.length?(t.domain(l),s):(l=this.orgDomain(),i?[l[0]+1,l[1]]:[l[0],l[1]+1])}),s},updateScales(t,e=!0){var n,a;const i=this,{axis:s,config:o,format:l,org:c,scale:f,state:{current:g,width:v,height:m,width2:S,height2:I,hasAxis:N,hasTreemap:M}}=i;if(N){const P=o.axis_rotated,X=i.getResettedPadding(1),W={x:P?X:0,y:P?0:m,subX:P?1:0,subY:P?0:I},G={x:P?m:v,y:P?v:X,subX:P?m:v,subY:P?S:1},k=e&&((n=f.x)==null?void 0:n.orgDomain()),H=e&&c.xDomain;f.x=i.getXScale(W.x,G.x,k,()=>s.x.tickOffset()),f.subX=i.getXScale(W.x,G.x,H,at=>{var mt;return at%1?0:((mt=s.subX)!=null?mt:s.x).tickOffset()}),l.xAxisTick=s.getXAxisTickFormat(),l.subXAxisTick=s.getXAxisTickFormat(!0),s.setAxis("x",f.x,o.axis_x_tick_outer,t),o.subchart_show&&s.setAxis("subX",f.subX,o.axis_x_tick_outer,t),f.y=i.getYScale("y",W.y,G.y,f.y?f.y.domain():o.axis_y_default),f.subY=i.getYScale("y",W.subY,G.subY,f.subY?f.subY.domain():o.axis_y_default),s.setAxis("y",f.y,o.axis_y_tick_outer,t),o.axis_y2_show&&(f.y2=i.getYScale("y2",W.y,G.y,f.y2?f.y2.domain():o.axis_y2_default),f.subY2=i.getYScale("y2",W.subY,G.subY,f.subY2?f.subY2.domain():o.axis_y2_default),s.setAxis("y2",f.y2,o.axis_y2_tick_outer,t))}else if(M){const P=i.getCurrentPadding();f.x=Mi().rangeRound([P.left,g.width-P.right]),f.y=Mi().rangeRound([P.top,g.height-P.bottom])}else(a=i.updateArc)==null||a.call(i)},xx(t){const e=this,{config:n,scale:{x:a,zoom:i}}=e,s=n.zoom_enabled&&i?i:a;return t?s(Ie(t.x)?t.x:t):null},xv(t){const e=this,{axis:n,config:a,scale:{x:i,zoom:s}}=e,o=a.zoom_enabled&&s?s:i;let l=e.getBaseValue(t);return n.isTimeSeries()?l=Dn.call(e,l):n.isCategorized()&&ze(l)&&(l=a.axis_x_categories.indexOf(l)),Math.ceil(o(l))},yv(t){const e=this,{scale:{y:n,y2:a}}=e,i=t.axis&&t.axis==="y2"?a:n;return Math.ceil(i(e.getBaseValue(t)))},subxx(t){return t?this.scale.subX(t.x):null}},Lp={setContainerSize(){const t=this,{state:e}=t;e.current.width=t.getCurrentWidth(),e.current.height=t.getCurrentHeight()},getCurrentWidth(){const t=this;return t.config.size_width||t.getParentWidth()},getCurrentHeight(){const t=this,{config:e}=t,n=e.size_height||t.getParentHeight();return n>0?n:320/(t.hasType("gauge")&&!e.gauge_fullCircle?2:1)},getParentRectValue(t){const e=`offset${In(t)}`;let n=this.$el.chart.node(),a=0;for(;a<30&&n&&n.tagName!=="BODY";){try{a=n.getBoundingClientRect()[t]}catch(s){e in n&&(a=n[e])}n=n.parentNode}const i=fn.body[e];return a>i&&(a=i),a},getParentWidth(){return this.getParentRectValue("width")},getParentHeight(){const t=this.$el.chart.style("height");let e=0;return t&&(e=/px$/.test(t)?parseInt(t,10):this.getParentRectValue("height")),e},getSvgLeft(t){const e=this,{config:n,state:{hasAxis:a},$el:i}=e,s=n.axis_rotated,o=s||!s&&!n.axis_y_inner,l=s?on.axisX:on.axisY,c=i.main.select(`.${l}`).node(),f=a&&n[`axis_${s?"x":"y"}_label`];let g=0;if(a&&(ze(f)||ze(f.text)||/^inner-/.test(f==null?void 0:f.position))){const N=i.main.select(`.${l}-label`);N.empty()||(g=N.node().getBoundingClientRect().left)}const v=c&&o?c.getBoundingClientRect():{right:0},m=i.chart.node().getBoundingClientRect().left+g,S=e.hasArcType(),I=v.right-m-(S?0:e.getCurrentPaddingByDirection("left",t));return I>0?I:0},updateDimension(t){var e;const n=this,{config:a,state:{hasAxis:i},$el:s}=n;i&&!t&&n.axis.x&&a.axis_rotated&&((e=n.axis.subX)==null||e.create(s.axis.subX)),n.updateScales(t),n.updateSvgSize(),n.transformAll(!1)},updateSvgSize(){const t=this,{state:{clip:e,current:n,hasAxis:a,width:i,height:s},$el:{svg:o}}=t;if(o.attr("width",n.width).attr("height",n.height),a){const l=o.select(`.${ko.brush} .overlay`),c={width:0,height:0};l.size()&&(c.width=+l.attr("width"),c.height=+l.attr("height")),o.selectAll([`#${e.id}`,`#${e.idGrid}`]).select("rect").attr("width",i).attr("height",s),o.select(`#${e.idXAxis}`).select("rect").call(t.setXAxisClipPath.bind(t)),o.select(`#${e.idYAxis}`).select("rect").call(t.setYAxisClipPath.bind(t)),e.idSubchart&&o.select(`#${e.idSubchart}`).select("rect").attr("width",i).attr("height",c.height)}},getCurrentPaddingByDirection(t,e=!1,n=!1){var a;const i=this,{config:s,$el:o,state:{hasAxis:l}}=i,c=s.axis_rotated,f=((a=s.padding)==null?void 0:a.mode)==="fit",g=ue(s[`padding_${t}`])?s[`padding_${t}`]:void 0,v=l?{top:c?"y2":null,bottom:c?"y":"x",left:c?"x":"y",right:c?null:"y2"}[t]:null,m=/^(left|right)$/.test(t),S=v&&s[`axis_${v}_inner`],I=v&&s[`axis_${v}_show`],N=v?s[`axis_${v}_axes`].length:0;let M=v?m?i.getAxisWidthByAxisId(v,e):i.getHorizontalAxisHeight(v):0;const P=20;let X=0;!f&&m&&(M=Hg(M));let W=l&&m&&(S||en(g)&&!I)?0:f?(I?M:0)+(g!=null?g:0):en(g)?M:g;return m&&l?(v&&(f||S)&&s[`axis_${v}_label`].text&&(W+=i.axis.getAxisLabelPosition(v).isOuter?P:0),t==="right"?(W+=c?!f&&en(g)?10:2:!I||S?f?2:1:0,W+=n?i.axis.getXAxisTickTextY2Overflow(P):0):t==="left"&&c&&en(g)&&(W=s.axis_x_show?f?M:Math.max(M,40):1)):t==="top"?(o.title&&o.title.node()&&(W+=i.getTitlePadding()),X=c&&!S?N:0):t==="bottom"&&l&&c&&!I&&(W+=1),W+M*N-X},getCurrentPadding(t=!1){const e=this,[n,a,i,s]=["top","bottom","left","right"].map(o=>e.getCurrentPaddingByDirection(o,null,t));return{top:n,bottom:a,left:i,right:s}},getResettedPadding(t){const e=this,{config:n}=e,a=ue(t);let i=a?0:{};return n.padding===!1?!a&&Object.keys(t).forEach(s=>{i[s]=!Wn(n.data_labels)&&n.data_labels!==!1&&s==="top"?t[s]:0}):i=t,i},updateSizes(t){var e,n,a,i,s;const o=this,{config:l,state:c,$el:{legend:f}}=o,g=l.axis_rotated,v=o.hasArcType()||c.hasFunnel||c.hasTreemap,m=((e=l.padding)==null?void 0:e.mode)==="fit";!t&&o.setContainerSize();const S={width:f?o.getLegendWidth():0,height:f?o.getLegendHeight():0};!v&&l.axis_x_show&&l.axis_x_tick_autorotate&&o.updateXAxisTickClip();const I={right:l.legend_show&&c.isLegendRight?o.getLegendWidth()+(m?0:20):0,bottom:!l.legend_show||c.isLegendRight||c.isLegendInset?0:S.height},N=g||v?0:o.getHorizontalAxisHeight("x"),M=l.subchart_axis_x_show&&l.subchart_axis_x_tick_text_show?N:30,P=l.subchart_show&&!v?l.subchart_size_height+M:0,X=o.hasType("gauge")&&l.arc_needle_show&&!l.gauge_fullCircle&&!l.gauge_label_show?10:0,W=o.getCurrentPadding(!0);if(c.margin=!v&&g?{top:W.top,right:v?0:W.right+I.right,bottom:I.bottom+W.bottom,left:P+(v?0:W.left)}:{top:(m?0:4)+W.top,right:v?0:W.right+I.right,bottom:X+P+I.bottom+W.bottom,left:v?0:W.left},c.margin=o.getResettedPadding(c.margin),c.margin2=g?{top:c.margin.top,right:NaN,bottom:20+I.bottom,left:o.state.rotatedPadding.left}:{top:c.current.height-P-I.bottom,right:NaN,bottom:M+I.bottom,left:c.margin.left},c.margin3={top:0,right:NaN,bottom:0,left:0},(n=o.updateSizeForLegend)==null||n.call(o,S),c.width=c.current.width-c.margin.left-c.margin.right,c.height=c.current.height-c.margin.top-c.margin.bottom,c.width<0&&(c.width=0),c.height<0&&(c.height=0),c.width2=g?c.margin.left-c.rotatedPadding.left-c.rotatedPadding.right:c.width,c.height2=g?c.height:c.current.height-c.margin2.top-c.margin2.bottom,c.width2<0&&(c.width2=0),c.height2<0&&(c.height2=0),o.hasArcType()){const G=o.hasType("gauge"),k=l.legend_show&&c.isLegendRight,H=(a=c.hasRadar&&o.cache.get(Cn.radarTextWidth))!=null?a:0;c.arcWidth=c.width-(k?S.width+10:0)-H,c.arcHeight=c.height-(k&&!G?0:10),(i=l.arc_rangeText_values)!=null&&i.length&&(G?(c.arcWidth-=25,c.arcHeight-=10,c.margin.left+=10):(c.arcHeight-=20,c.margin.top+=10)),G&&!l.gauge_fullCircle&&(c.arcHeight+=c.height-o.getPaddingBottomForGauge()),(s=o.updateRadius)==null||s.call(o)}c.isLegendRight&&v&&(c.margin3.left=c.arcWidth/2+c.radiusExpanded*1.1)}},Dp={setCssRule(t,e,n,a){const i=this,{config:s,state:{cssRule:o,style:l}}=i;return s.boost_useCssRule?c=>{c.each(f=>{const g=a&&(a==null?void 0:a.call(i,f)),v=`${t?`.${tn.shapes+i.getTargetSelectorSuffix(f.id)}`:""}${e}`;e in o&&l.sheet.deleteRule(o[v]),i.state.cssRule[v]=kg(l,v,n.filter(Boolean).map(m=>ze(g)&&m.indexOf(":")===-1?`${m}: ${g}`:m||""))})}:()=>{}},getStylePropValue(t){const{config:{boost_useCssRule:e}}=this;return e?null:he(t)?t.bind(this):t}};function Fc(t){return typeof t=="string"?new Ee([document.querySelectorAll(t)],[document.documentElement]):new Ee([T(t)],_t)}function Np(t){let e="middle";return t>0&&t<=170?e="end":t>190&&t<=360&&(e="start"),e}function Fp(t,e,n,a,i){var s;const o=this,{value:l}=t,c=o.isCandlestickType(t),f=ue(l)&&l<0||c&&!((s=o.getCandlestickData(t))!=null&&s._isUp);let{x:g,y:v}=e;const m=4,S=m*2;return a?n==="start"?(g+=f?0:S,v+=m):n==="middle"?(g+=S,v-=S):n==="end"&&(f&&(g-=S),v+=m):(n==="start"?(g+=m,f&&(v+=S*2)):n==="middle"?v-=S:n==="end"&&(g-=m,f&&(v+=S*2)),i&&(v+=f?-17:c?13:7)),{x:g,y:v}}function Bc(t,e){var n;const a=this.config.data_labels_position,{id:i,index:s,value:o}=t;return(n=he(a)?a.bind(this.api)(e,o,i,s,this.$el.text):(i in a?a[i]:a)[e])!=null?n:0}var Bp={opacityForText(t){const e=this;return e.isBarType(t)&&!e.meetsLabelThreshold(Math.abs(e.getRatio("bar",t)),"bar")?"0":e.hasDataLabel?null:"0"},initText(){const{$el:t}=this;t.main.select(`.${Se.chart}`).append("g").attr("class",An.chartTexts).style("pointer-events",t.funnel||t.treemap?"none":null)},updateTargetsForText(t){const e=this,n=e.getChartClass("Text"),a=e.getClass("texts","id"),i=e.classFocus.bind(e);e.$el.main.select(`.${An.chartTexts}`).selectAll(`.${An.chartText}`).data(t).attr("class",l=>`${n(l)}${i(l)}`.trim()).enter().append("g").style("opacity","0").attr("class",n).call(e.setCssRule(!0,` .${An.text}`,["fill","pointer-events:none"],e.updateTextColor)).append("g").attr("class",a)},updateText(){const t=this,{$el:e,$T:n,config:a,axis:i}=t,s=t.getClass("text","index"),o=a.data_labels.centered,l=e.main.selectAll(`.${An.texts}`).selectAll(`.${An.text}`).data(t.labelishData.bind(t));n(l.exit()).style("fill-opacity","0").remove(),e.text=l.enter().append("text").merge(l).attr("class",s).attr("text-anchor",c=>{let g=a[`axis_${i==null?void 0:i.getId(c.id)}_inverted`]?c.value>0:c.value<0;if(t.isCandlestickType(c)){const v=t.getCandlestickData(c);g=!(v!=null&&v._isUp)}else if(t.isTreemapType(c))return o?"middle":"start";return a.axis_rotated?g?"end":"start":"middle"}).style("fill",t.getStylePropValue(t.updateTextColor)).style("fill-opacity","0").each(function(c,f,g){const v=st(this);let{value:m}=c;if(t.isBubbleZType(c))m=t.getBubbleZData(m,"z");else if(t.isCandlestickType(c)){const S=t.getCandlestickData(c);S&&(m=S.close)}m=t.isTreemapType(c)?t.treemapDataLabelFormat(c)(v):t.dataLabelFormat(c.id)(m,c.id,c.index,g),ue(m)?this.textContent=m:Ca(v,m)})},updateTextColor(t){const e=this,{config:n}=e,a=n.data_labels_colors,i=e.isArcType(t)&&!e.isRadarType(t)||e.isFunnelType(t)||e.isTreemapType(t)?null:e.color(t);let s;if(ze(a))s=a;else if(De(a)){const{id:o}=t.data||t;s=a[o]}else he(a)&&(s=a.bind(e.api)(i,t));if(e.isCandlestickType(t)&&!he(a)){const o=e.getCandlestickData(t);if(!(o!=null&&o._isUp)){const l=n.candlestick_color_down;s=De(l)?l[t.id]:l}}return s||i},updateTextBGColor(t,e){const n=this,{$el:a}=n;let i="";if(ze(e)||De(e)){const s=ze(e)?"":n.getTargetSelectorSuffix("id"in t?t.id:t.data.id),o=a.defs.select(["filter[id*='labels-bg","']"].join(s));o.size()&&(i=`url(#${o.attr("id")})`)}return i||null},redrawText(t,e,n,a){const i=this,{$T:s,axis:o,config:l,state:{hasTreemap:c}}=i,f=lr(!0),g=l.axis_rotated,v=l.data_labels.rotate,m=Np(v),S=v?`rotate(${v})`:"";return i.$el.text.style("fill",i.getStylePropValue(i.updateTextColor)).attr("filter",I=>i.updateTextBGColor.bind(i)(I,l.data_labels_backgroundColors)).style("fill-opacity",n?0:i.opacityForText.bind(i)).each(function(I,N){const M=s(c&&this.childElementCount?this.parentNode:this,!!(a&&this.getAttribute("x")),f),P=l[`axis_${o==null?void 0:o.getId(I.id)}_inverted`];let X={x:t.bind(this)(I,N),y:e.bind(this)(I,N)};v&&(X=Fp.bind(i)(I,X,m,g,P),M.attr("text-anchor",m)),this.childElementCount||v?M.attr("transform",`translate(${X.x} ${X.y}) ${S}`):M.attr("x",X.x).attr("y",X.y)}),!0},getTextRect(t,e){const n=this;let a=t.node?t.node():t;/text/i.test(a.tagName)||(a=a.querySelector("text"));const i=a.textContent,s=`${Cn.textRect}-${i.replace(/\W/g,"_")}`;let o=n.cache.get(s);return o||(n.$el.svg.append("text").style("visibility","hidden").style("font",st(a).style("font")).classed(e,!0).text(i).call(l=>{o=Si(l.node())}).remove(),n.cache.add(s,o)),o},generateXYForText(t,e){const n=this,{state:{hasRadar:a,hasFunnel:i,hasTreemap:s}}=n,o=Object.keys(t),l={},c=e?n.getXForText:n.getYForText;return i&&o.push("funnel"),a&&o.push("radar"),s&&o.push("treemap"),o.forEach(f=>{l[f]=n[`generateGet${In(f)}Points`](t[f],!1)}),function(f,g){const v=n.isAreaType(f)&&"area"||n.isBarType(f)&&"bar"||n.isCandlestickType(f)&&"candlestick"||n.isFunnelType(f)&&"funnel"||n.isRadarType(f)&&"radar"||n.isTreemapType(f)&&"treemap"||"line";return c.call(n,l[v](f,g),f,this)}},getCenteredTextPos(t,e,n,a){const i=this,{config:s}=i,o=s.axis_rotated,l=i.isBarType(t),c=i.isTreemapType(t);if(s.data_labels.centered&&(l||c)){const f=Si(n);if(l){const g=i.getRangedData(t,null,"bar")>=0;if(o){const v=(g?e[1][1]-e[0][1]:e[0][1]-e[1][1])/2+f.width/2;return g?-v-3:v+2}else{const v=(g?e[0][1]-e[1][1]:e[1][1]-e[0][1])/2+f.height/2;return g?v:-v-2}}else if(c)return a==="x"?(e[1][0]-e[0][0])/2:(e[1][1]-e[0][1])/2+f.height/2}return 0},getXForText(t,e,n){var a;const i=this,{config:s}=i,o=s.axis_rotated,l=i.isFunnelType(e),c=i.isTreemapType(e);let f=t?t[0][0]:0;if(i.isCandlestickType(e))o?f=(a=i.getCandlestickData(e))!=null&&a._isUp?t[2][2]+4:t[2][1]-4:f+=(t[1][0]-f)/2;else if(l)f+=i.state.current.width/2;else if(c)f+=s.data_labels.centered?0:5;else if(o){const g=s[`axis_${i.axis.getId(e.id)}_inverted`],v=i.isBarType(e)?4:6,m=e.value;f=t[2][1],g?f-=v*(m>0?1:-1):f+=v*(m<0?-1:1)}else f=i.hasType("bar")?(t[2][0]+t[0][0])/2:f;return(o||c)&&(f+=i.getCenteredTextPos(e,t,n,"x")),f+Bc.call(this,e,"x")},getYForText(t,e,n){const a=this,{axis:i,config:s,state:o}=a,l=s.axis_rotated,c=s[`axis_${i==null?void 0:i.getId(e.id)}_inverted`],f=a.isBarType(e),g=a.isFunnelType(e),v=a.isTreemapType(e),m=s.point_r,S=Si(n);let{value:I}=e,N=3,M;if(a.isCandlestickType(e))I=a.getCandlestickData(e),l?(M=t[0][0],M+=(t[1][0]-M)/2+N):(M=I&&I._isUp?t[2][2]-N:t[2][1]+N*4,c&&(M+=15*(I._isUp?1:-1)));else if(g)M=t?t[0][1]+(t[1][1]-t[0][1])/2+S.height/2-3:0;else if(v)M=t[0][1]+(s.data_labels.centered?0:S.height+5);else if(l)M=(t[0][0]+t[2][0]+S.height*.6)/2;else if(M=t[2][1],ue(m)&&m>5&&(a.isLineType(e)||a.isScatterType(e))&&(N+=s.point_r/2.3),I<0||I===0&&!o.hasPositiveValue&&o.hasNegativeValue)M+=c?f?-3:-5:S.height+(f?-N:N);else{let P=-N*2;f?P=-N:a.isBubbleType(e)&&(P=N),c&&(P=f?10:15),M+=P}return(!l||v)&&(M+=a.getCenteredTextPos(e,t,n,"y")),M+Bc.call(this,e,"y")},markOverlapped(t,e,n){const a=e.$el.arcs.selectAll(n),i=a.filter(c=>c.data.id!==t),s=a.filter(c=>c.data.id===t),o=Kl(s.node()),l=(c,f)=>Math.sqrt(Math.pow(c,2)+Math.pow(f,2));s.node()&&i.each(function(){const c=Kl(this),f=st(this),g=l(o.e,o.f)>l(c.e,c.f)?s:f,v=Math.ceil(Math.abs(o.e-c.e))<Math.ceil(g.node().getComputedTextLength()),m=Math.ceil(Math.abs(o.f-c.f))<parseInt(s.style("font-size"),10);f.classed(An.TextOverlapping,v&&m)})},undoMarkOverlapped(t,e){t.$el.arcs.selectAll(e).each(function(){Fc([this,this.previousSibling]).classed(An.TextOverlapping,!1)})},meetsLabelThreshold(t=0,e){const n=this,{config:a}=n,i=a[`${e}_label_threshold`]||0;return t>=i}};function Uc(t="left",e){const n=ue(e);let a;return t.indexOf("center")>-1?a=n?e/2:"middle":t.indexOf("right")>-1?a=n?e:"end":a=n?0:"start",a}var Up={initTitle(){const t=this,{config:e,$el:n}=t;if(e.title_text){n.title=n.svg.append("g");const a=n.title.append("text").style("text-anchor",Uc(e.title_position)).attr("class",An.title);Ca(a,e.title_text,[.3,1.5])}},redrawTitle(){const t=this,{config:e,state:{current:n},$el:{title:a}}=t;if(a){const i=Uc(e.title_position,n.width),s=(e.title_padding.top||0)+t.getTextRect(t.$el.title,An.title).height;a.attr("transform",`translate(${i}, ${s})`)}},getTitlePadding(){const t=this,{$el:{title:e},config:n}=t;return(n.title_padding.top||0)+(e?t.getTextRect(e,An.title).height:0)+(n.title_padding.bottom||0)}},zp={initTooltip(){const t=this,{config:e,$el:n}=t;n.tooltip=st(e.tooltip_contents.bindto),n.tooltip.empty()&&(n.tooltip=n.chart.append("div").attr("class",ti.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none")),t.bindTooltipResizePos()},initShowTooltip(){var t;const e=this,{config:n,$el:a,state:{hasAxis:i,hasRadar:s}}=e;if(n.tooltip_init_show){const o=!(i||s);(t=e.axis)!=null&&t.isTimeSeries()&&ze(n.tooltip_init_x)&&(n.tooltip_init_x=Dn.call(e,n.tooltip_init_x)),e.api.tooltip.show({data:{[o?"index":"x"]:n.tooltip_init_x}});const l=n.tooltip_init_position;if(!n.tooltip_contents.bindto&&!Wn(l)){const{top:c=0,left:f=50}=l;a.tooltip.style("top",ze(c)?c:`${c}px`).style("left",ze(f)?f:`${f}px`).style("display",null)}}},getTooltipHTML(...t){const e=this,{api:n,config:a}=e;return he(a.tooltip_contents)?a.tooltip_contents.bind(n)(...t):e.getTooltipContent(...t)},getTooltipContent(t,e,n,a){var i;const s=this,{api:o,config:l,state:c,$el:f}=s,[g,v,m]=["title","name","value"].map(xt=>{const Q=l[`tooltip_format_${xt}`];return he(Q)?Q.bind(o):Q}),S=(...xt)=>Is((g||e)(...xt)),I=(...xt)=>Is((v||(Q=>Q))(...xt)),N=(...xt)=>{const Q=m||(c.hasTreemap||s.isStackNormalized()?(Ct,ht)=>`${(ht*100).toFixed(2)}%`:n);return Is(Q(...xt))},M=l.tooltip_order,P=xt=>s.axis&&s.isBubbleZType(xt)?s.getBubbleZData(xt.value,"z"):s.getBaseValue(xt),X=s.levelColor?xt=>s.levelColor(xt.value):xt=>a(xt),W=l.tooltip_contents,G=W.template,k=s.mapToTargetIds();if(M===null&&l.data_groups.length){const xt=s.orderTargets(s.data.targets).map(Q=>Q.id).reverse();t.sort((Q,Ct)=>{let ht=Q?Q.value:null,It=Ct?Ct.value:null;return ht>0&&It>0&&(ht=Q.id?xt.indexOf(Q.id):null,It=Ct.id?xt.indexOf(Ct.id):null),ht-It})}else if(/^(asc|desc)$/.test(M)){const xt=M==="asc";t.sort((Q,Ct)=>{const ht=Q?P(Q):null,It=Ct?P(Ct):null;return xt?ht-It:It-ht})}else he(M)&&t.sort(M.bind(o));const H=s.getTooltipContentTemplate(G),at=t.length;let mt,At,St,Tt,Gt;for(Gt=0;Gt<at;Gt++)if(At=t[Gt],!(!At||!(P(At)||P(At)===0))){if(en(mt)){const xt=(c.hasAxis||c.hasRadar)&&S(At.x);mt=bi(H[0],{CLASS_TOOLTIP:ti.tooltip,TITLE:Ie(xt)?G?xt:`<tr><th colspan="2">${xt}</th></tr>`:""})}if(!At.ratio&&f.arcs&&(St=["arc",s.$el.arcs.select(`path.${Be.arc}-${At.id}`).data()[0]],At.ratio=s.getRatio(...St)),St=[At.ratio,At.id,At.index],s.isAreaRangeType(At)){const[xt,Q]=["high","low"].map(ht=>N(s.getRangedData(At,ht),...St));Tt=`<b>Mid:</b> ${N(P(At),...St)} <b>High:</b> ${xt} <b>Low:</b> ${Q}`}else if(s.isCandlestickType(At)){const[xt,Q,Ct,ht,It]=["open","high","low","close","volume"].map(Yt=>s.getRangedData(At,Yt,"candlestick")?N(s.getRangedData(At,Yt,"candlestick"),...St):void 0);Tt=`<b>Open:</b> ${xt} <b>High:</b> ${Q} <b>Low:</b> ${Ct} <b>Close:</b> ${ht}${It?` <b>Volume:</b> ${It}`:""}`}else if(s.isBarRangeType(At)){const{value:xt,id:Q,index:Ct}=At;Tt=`${N(xt,void 0,Q,Ct)}`}else Tt=N(P(At),...St);if(Tt!==void 0){if(At.name===null)continue;const xt=I((i=At.name)!=null?i:At.id,...St),Q=X(At),Ct={CLASS_TOOLTIP_NAME:ti.tooltipName+s.getTargetSelectorSuffix(At.id),COLOR:G||!s.patterns?Q:`<svg><rect style="fill:${Q}" width="10" height="10"></rect></svg>`,NAME:xt,VALUE:Tt};if(G&&De(W.text)){const ht=k.indexOf(At.id);Object.keys(W.text).forEach(It=>{Ct[It]=W.text[It][ht]})}mt+=bi(H[1],Ct)}}return`${mt}</table>`},getTooltipContentTemplate(t){return(t||`<table class="{=CLASS_TOOLTIP}"><tbody>
|
|
42
|
+
{=TITLE}
|
|
43
|
+
{{<tr class="{=CLASS_TOOLTIP_NAME}">
|
|
44
|
+
<td class="name">${this.patterns?"{=COLOR}":'<span style="background-color:{=COLOR}"></span>'}{=NAME}</td>
|
|
45
|
+
<td class="value">{=VALUE}</td>
|
|
46
|
+
</tr>}}
|
|
47
|
+
</tbody></table>`).replace(/(\r?\n|\t)/g,"").split(/{{(.*)}}/)},setTooltipPosition(t,e){var n,a;const i=this,{config:s,scale:o,state:l,$el:{eventRect:c,tooltip:f}}=i,{bindto:g}=s.tooltip_contents,v=s.axis_rotated,m=f==null?void 0:f.datum();if(!g&&m){const S=t!=null?t:JSON.parse(m.current),[I,N]=zn(l.event,e!=null?e:c==null?void 0:c.node()),M={x:I,y:N};if(l.hasAxis&&o.x&&m&&"x"in m){const G=(k=0,H,at="y")=>{var mt;const At=o[H?(mt=i.axis)==null?void 0:mt.getId(H):at];return At?At(k)+(v?l.margin.left:l.margin.top):0};M.xAxis=o.x(m.x)+(s.tooltip_position?v?l.margin.top:l.margin.left:0),S.length===1?M.yAxis=G(S[0].value,S[0].id):M.yAxis=G}const{width:P=0,height:X=0}=m,W=(a=(n=s.tooltip_position)==null?void 0:n.bind(i.api)(S,P,X,c==null?void 0:c.node(),M))!=null?a:i.getTooltipPosition.bind(i)(P,X,M);["top","left"].forEach(G=>{const k=W[G];f.style(G,`${k}px`),G==="left"&&!m.xPosInPercent&&(m.xPosInPercent=k/l.current.width*100)})}},getTooltipPosition(t,e,n){var a,i,s;const o=this,{config:l,scale:c,state:f}=o,{width:g,height:v,current:m,hasFunnel:S,hasRadar:I,hasTreemap:N,isLegendRight:M,inputType:P}=f,X=o.hasType("gauge")&&!l.gauge_fullCircle,W=l.axis_rotated,G=o.hasArcType(),k=o.getSvgLeft(!0);let H=k+m.width-o.getCurrentPaddingByDirection("right");const at=20;let{x:mt,y:At}=n;if(I)mt+=mt>=g/2?15:-(t+15),At+=15;else if(G){if(P!=="touch"){let Gt=(i=(a=o.getTitlePadding)==null?void 0:a.call(o))!=null?i:0;Gt&&X&&((s=l.arc_rangeText_values)!=null&&s.length)&&(Gt+=10),mt+=(g-(M?o.getLegendWidth():0))/2,At+=(X?v:v/2+e)+Gt}}else if(S||N)At+=e;else{const Tt={top:o.getCurrentPaddingByDirection("top",!0),left:o.getCurrentPaddingByDirection("left",!0)};W?(mt+=k+Tt.left+at,At=Tt.top+n.xAxis+at,H-=k):(mt=k+Tt.left+at+(c.zoom?mt:n.xAxis),At+=Tt.top-5)}if(mt+t+15>H&&(mt-=t+(S||N||G?0:W?at*2:38)),At+e>m.height){const Tt=N?e+10:30;At-=X?e*1.5:e+Tt}const St={top:At,left:mt};return Object.keys(St).forEach(Tt=>{St[Tt]<0&&(St[Tt]=0)}),St},showTooltip(t,e){const n=this,{config:a,$el:{tooltip:i}}=n,s=t.filter(c=>c&&Ie(n.getBaseValue(c)));if(!i||s.length===0||!a.tooltip_show)return;let o=i.datum();const l=JSON.stringify(t);if(!o||o.current!==l){const{index:c,x:f}=t.concat().sort()[0];Ze(a.tooltip_onshow,n.api,t),i.html(n.getTooltipHTML(t,n.axis?n.axis.getXAxisTickFormat():n.categoryName.bind(n),n.getDefaultValueFormat(),n.color)).style("display",null).style("visibility",null).datum(o={index:c,x:f,current:l,width:i.property("offsetWidth"),height:i.property("offsetHeight")}),Ze(a.tooltip_onshown,n.api,t),n._handleLinkedCharts(!0,c)}n.setTooltipPosition(s,e)},bindTooltipResizePos(){const t=this,{resizeFunction:e,state:n,$el:{tooltip:a}}=t;e.add(()=>{if(a.style("display")==="block"){const{current:i}=n,{width:s,xPosInPercent:o}=a.datum();let l=i.width/100*o;const c=i.width-(l+s);c<0&&(l+=c),a.style("left",`${l}px`)}})},hideTooltip(t){var e;const n=this,{api:a,config:i,$el:{tooltip:s}}=n;if(s&&s.style("display")!=="none"&&(!i.tooltip_doNotHide||t)){const o=JSON.parse((e=s.datum().current)!=null?e:{});Ze(i.tooltip_onhide,a,o),s.style("display","none").style("visibility","hidden").datum(null),Ze(i.tooltip_onhidden,a,o)}},_handleLinkedCharts(t,e){const n=this,{charts:a,config:i,state:{event:s}}=n;if(s!=null&&s.isTrusted&&i.tooltip_linked&&a.length>1){const o=i.tooltip_linked_name;a.filter(l=>l!==n.api).forEach(l=>{const{config:c,$el:f}=l.internal,g=c.tooltip_linked,v=c.tooltip_linked_name,m=fn.body.contains(f.chart.node());if(g&&o===v&&m){const S=f.tooltip.data()[0],I=e!==(S==null?void 0:S.index);try{l.tooltip[t&&I?"show":"hide"]({index:e})}catch(N){}}})}},updateTooltipOnRedraw(t,e){var n;const a=this,{config:i,$el:{eventRect:s,svg:o,tooltip:l},state:{event:c,hasAxis:f,hasRadar:g,hasTreemap:v}}=a;if((l==null?void 0:l.style("display"))==="block"&&c){const m=t!=null?t:(n=g?o:s)==null?void 0:n.node();if(f||g)if(a.isMultipleX())a.selectRectForMultipleXs(m,!1);else{const S=e!=null?e:a.getDataIndexFromEvent(c);e===-1?a.api.tooltip.hide():(a.selectRectForSingle(m,S),a.setExpand(S,null,!0))}else{const{clientX:S,clientY:I}=c;setTimeout(()=>{let N=fn.elementFromPoint(S,I);const M=st(N).datum();if(M){const P=a.hasArcType()?a.convertToArcData(a.updateAngle(M)):M==null?void 0:M.data;v&&(N=o.node()),P&&a.showTooltip([P],N)}else a.api.tooltip.hide()},i.transition_duration)}}}},jp={getTranslate(t,e=0){var n;const a=this,{config:i,state:s}=a,o=i.axis_rotated;let l=0,c,f;if(e&&/^(x|y2?)$/.test(t)&&(l=a.getAxisSize(t)*e),t==="main")c=Ti(s.margin.left),f=Ti(s.margin.top);else if(t==="context")c=Ti(s.margin2.left),f=Ti(s.margin2.top);else if(t==="legend")c=s.margin3.left,f=s.margin3.top;else if(t==="x")c=o?-l:0,f=o?0:s.height+l;else if(t==="y")c=o?0:-l,f=o?s.height+l:0;else if(t==="y2")c=o?0:s.width+l,f=o?-l-1:0;else if(t==="subX")c=0,f=o?0:s.height2;else if(t==="arc")c=s.arcWidth/2,f=s.arcHeight/2,(n=i.arc_rangeText_values)!=null&&n.length&&(f+=5+(a.hasType("gauge")&&i.title_text?10:0));else if(t==="polar")c=s.arcWidth/2,f=s.arcHeight/2;else if(t==="radar"){const[g,v]=a.getRadarSize();c=s.width/2-g,f=s.height/2-v}return`translate(${c}, ${f})`},transformMain(t,e){const n=this,{$el:{main:a},$T:i}=n,s=e!=null&&e.axisX?e.axisX:i(a.select(`.${on.axisX}`),t),o=e!=null&&e.axisY?e.axisY:i(a.select(`.${on.axisY}`),t),l=e!=null&&e.axisY2?e.axisY2:i(a.select(`.${on.axisY2}`),t);i(a,t).attr("transform",n.getTranslate("main")),s.attr("transform",n.getTranslate("x")),o.attr("transform",n.getTranslate("y")),l.attr("transform",n.getTranslate("y2")),a.select(`.${Be.chartArcs}`).attr("transform",n.getTranslate("arc"))},transformAll(t,e){const n=this,{config:a,state:{hasAxis:i,hasFunnel:s,hasTreemap:o},$el:l}=n;!s&&!o&&n.transformMain(t,e),i&&a.subchart_show&&n.transformContext(t,e),l.legend&&n.transformLegend(t)}},Gp={isValidChartType(t){return!!(t&&Object.values(fe).indexOf(t)>-1)},setTargetType(t,e){const n=this,{config:a,state:{withoutFadeIn:i}}=n;n.mapToTargetIds(t).forEach(s=>{i[s]=e===a.data_types[s],a.data_types[s]=e}),t||(a.data_type=e)},updateTypesElements(){const t=this,{state:{current:e}}=t;Object.keys(fe).forEach(n=>{const a=fe[n],i=t.hasType(a,null,!0),s=e.types.indexOf(a);s===-1&&i?e.types.push(a):s>-1&&!i&&e.types.splice(s,1)}),t.setChartElements()},hasType(t,e,n=!1){var a;const i=this,{config:s,state:{current:o}}=i,l=s.data_types,c=e||i.data.targets;let f=!1;return!n&&((a=o.types)==null?void 0:a.indexOf(t))>-1?f=!0:c!=null&&c.length?c.forEach(g=>{const v=l[g.id];(v===t||!v&&t==="line")&&(f=!0)}):Object.keys(l).length?Object.keys(l).forEach(g=>{l[g]===t&&(f=!0)}):f=s.data_type===t,f},hasTypeOf(t,e,n=[]){return t in pr?!pr[t].filter(a=>n.indexOf(a)===-1).every(a=>!this.hasType(a,e)):!1},isTypeOf(t,e){var n;const a=ze(t)?t:t.id,i=this.config&&(((n=this.config.data_types)==null?void 0:n[a])||this.config.data_type);return Fe(e)?e.indexOf(i)>=0:i===e},hasPointType(){const t=this;return t.hasTypeOf("Line")||t.hasType("bubble")||t.hasType("scatter")},hasArcType(t,e){return this.hasTypeOf("Arc",t,e)},hasMultiArcGauge(){return this.hasType("gauge")&&this.config.gauge_type==="multi"},isLineType(t){const e=ze(t)?t:t.id;return!this.config.data_types[e]||this.isTypeOf(e,pr.Line)},isStepType(t){return this.isTypeOf(t,pr.Step)},isSplineType(t){return this.isTypeOf(t,pr.Spline)},isAreaType(t){return this.isTypeOf(t,pr.Area)},isAreaRangeType(t){return this.isTypeOf(t,pr.AreaRange)},isBarType(t){return this.isTypeOf(t,"bar")},isBubbleType(t){return this.isTypeOf(t,"bubble")},isCandlestickType(t){return this.isTypeOf(t,"candlestick")},isScatterType(t){return this.isTypeOf(t,"scatter")},isTreemapType(t){return this.isTypeOf(t,"treemap")},isPieType(t){return this.isTypeOf(t,"pie")},isFunnelType(t){return this.isTypeOf(t,"funnel")},isGaugeType(t){return this.isTypeOf(t,"gauge")},isDonutType(t){return this.isTypeOf(t,"donut")},isPolarType(t){return this.isTypeOf(t,"polar")},isRadarType(t){return this.isTypeOf(t,"radar")},isArcType(t){return this.isPieType(t)||this.isDonutType(t)||this.isGaugeType(t)||this.isPolarType(t)||this.isRadarType(t)},isCirclePoint(t){const{config:e}=this,n=e.point_pattern;let a=!1;return(t==null?void 0:t.tagName)==="circle"?a=!0:a=e.point_type==="circle"&&(!n||Fe(n)&&n.length===0),a},lineData(t){return this.isLineType(t)?[t]:[]},arcData(t){return this.isArcType(t.data)?[t]:[]},labelishData(t){return this.isBarType(t)||this.isLineType(t)||this.isScatterType(t)||this.isBubbleType(t)||this.isCandlestickType(t)||this.isFunnelType(t)||this.isRadarType(t)||this.isTreemapType(t)?t.values.filter(e=>ue(e.value)||!!e.value):[]},barLineBubbleData(t){return this.isBarType(t)||this.isLineType(t)||this.isBubbleType(t)?t.values:[]},isInterpolationType(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}};function Di(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 Ni(t){this._context=t}Ni.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:Di(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&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:Di(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Xp(t){return new Ni(t)}function mr(){}function zc(t){this._context=t}zc.prototype={areaStart:mr,areaEnd:mr,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);break}}},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:Di(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Vp(t){return new zc(t)}function jc(t){this._context=t}jc.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||this._line!==0&&this._point===3)&&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,a=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,a):this._context.moveTo(n,a);break;case 3:this._point=4;default:Di(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Yp(t){return new jc(t)}function Gc(t,e){this._basis=new Ni(t),this._beta=e}Gc.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 a=t[0],i=e[0],s=t[n]-a,o=e[n]-i,l=-1,c;++l<=n;)c=l/n,this._basis.point(this._beta*t[l]+(1-this._beta)*(a+c*s),this._beta*e[l]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Hp=function t(e){function n(a){return e===1?new Ni(a):new Gc(a,e)}return n.beta=function(a){return t(+a)},n}(.85);function Fi(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 io(t,e){this._context=t,this._k=(1-e)/6}io.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:Fi(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&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:Fi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Wp=function t(e){function n(a){return new io(a,e)}return n.tension=function(a){return t(+a)},n}(0);function so(t,e){this._context=t,this._k=(1-e)/6}so.prototype={areaStart:mr,areaEnd:mr,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);break}}},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:Fi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Kp=function t(e){function n(a){return new so(a,e)}return n.tension=function(a){return t(+a)},n}(0);function oo(t,e){this._context=t,this._k=(1-e)/6}oo.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||this._line!==0&&this._point===3)&&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:Fi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Zp=function t(e){function n(a){return new oo(a,e)}return n.tension=function(a){return t(+a)},n}(0);const Xc=Math.abs,xn=Math.atan2,Nr=Math.cos,kp=Math.max,lo=Math.min,Qn=Math.sin,ra=Math.sqrt,Tn=1e-12,La=Math.PI,Bi=La/2,Ui=2*La;function Jp(t){return t>1?0:t<-1?La:Math.acos(t)}function Vc(t){return t>=1?Bi:t<=-1?-Bi:Math.asin(t)}function co(t,e,n){var a=t._x1,i=t._y1,s=t._x2,o=t._y2;if(t._l01_a>Tn){var l=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);a=(a*l-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*l-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>Tn){var f=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,g=3*t._l23_a*(t._l23_a+t._l12_a);s=(s*f+t._x1*t._l23_2a-e*t._l12_2a)/g,o=(o*f+t._y1*t._l23_2a-n*t._l12_2a)/g}t._context.bezierCurveTo(a,i,s,o,t._x2,t._y2)}function Yc(t,e){this._context=t,this._alpha=e}Yc.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);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+a*a,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:co(this,t,e);break}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 Qp=function t(e){function n(a){return e?new Yc(a,e):new io(a,0)}return n.alpha=function(a){return t(+a)},n}(.5);function Hc(t,e){this._context=t,this._alpha=e}Hc.prototype={areaStart:mr,areaEnd:mr,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);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+a*a,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:co(this,t,e);break}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 _p=function t(e){function n(a){return e?new Hc(a,e):new so(a,0)}return n.alpha=function(a){return t(+a)},n}(.5);function Wc(t,e){this._context=t,this._alpha=e}Wc.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+a*a,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:co(this,t,e);break}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 qp=function t(e){function n(a){return e?new Wc(a,e):new oo(a,0)}return n.alpha=function(a){return t(+a)},n}(.5);function Kc(t){return t<0?-1:1}function Zc(t,e,n){var a=t._x1-t._x0,i=e-t._x1,s=(t._y1-t._y0)/(a||i<0&&-0),o=(n-t._y1)/(i||a<0&&-0),l=(s*i+o*a)/(a+i);return(Kc(s)+Kc(o))*Math.min(Math.abs(s),Math.abs(o),.5*Math.abs(l))||0}function kc(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function uo(t,e,n){var a=t._x0,i=t._y0,s=t._x1,o=t._y1,l=(s-a)/3;t._context.bezierCurveTo(a+l,i+l*e,s-l,o-l*n,s,o)}function zi(t){this._context=t}zi.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:uo(this,this._t0,kc(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(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,uo(this,kc(this,n=Zc(this,t,e)),n);break;default:uo(this,this._t0,n=Zc(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function Jc(t){this._context=new Qc(t)}(Jc.prototype=Object.create(zi.prototype)).point=function(t,e){zi.prototype.point.call(this,e,t)};function Qc(t){this._context=t}Qc.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,a,i,s){this._context.bezierCurveTo(e,t,a,n,s,i)}};function tm(t){return new zi(t)}function em(t){return new Jc(t)}function _c(t){this._context=t}_c.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]),n===2)this._context.lineTo(t[1],e[1]);else for(var a=qc(t),i=qc(e),s=0,o=1;o<n;++s,++o)this._context.bezierCurveTo(a[0][s],i[0][s],a[1][s],i[1][s],t[o],e[o]);(this._line||this._line!==0&&n===1)&&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)}};function qc(t){var e,n=t.length-1,a,i=new Array(n),s=new Array(n),o=new Array(n);for(i[0]=0,s[0]=2,o[0]=t[0]+2*t[1],e=1;e<n-1;++e)i[e]=1,s[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,s[n-1]=7,o[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)a=i[e]/s[e-1],s[e]-=a,o[e]-=a*o[e-1];for(i[n-1]=o[n-1]/s[n-1],e=n-2;e>=0;--e)i[e]=(o[e]-i[e+1])/s[e];for(s[n-1]=(t[n]+i[n-1])/2,e=0;e<n-1;++e)s[e]=2*t[e+1]-i[e+1];return[i,s]}function nm(t){return new _c(t)}function tu(t){this._context=t}tu.prototype={areaStart:mr,areaEnd:mr,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))}};function rm(t){return new tu(t)}function eu(t){this._context=t}eu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&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);break}}};function fo(t){return new eu(t)}function ji(t,e){this._context=t,this._t=e}ji.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&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&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)}break}}this._x=t,this._y=e}};function am(t){return new ji(t,.5)}function im(t){return new ji(t,0)}function sm(t){return new ji(t,1)}function om(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}var lm={getDrawShape(){const t=this,e=t.config.axis_rotated,{hasRadar:n,hasTreemap:a}=t.state,i={type:{},indices:{},pos:{}};if(!a&&["bar","candlestick","line","area"].forEach(s=>{const o=In(/^(bubble|scatter)$/.test(s)?"line":s);if(t.hasType(s)||t.hasTypeOf(o)||s==="line"&&(t.hasType("bubble")||t.hasType("scatter"))){const l=t.getShapeIndices(t[`is${o}Type`]),c=t[`generateDraw${o}`];i.indices[s]=l,i.type[s]=c?c.bind(t)(l,!1):void 0}}),!t.hasArcType()||n||a){let s,o;a||(s=n?t.radarCircleX:e?t.circleY:t.circleX,o=n?t.radarCircleY:e?t.circleX:t.circleY),i.pos={xForText:t.generateXYForText(i.indices,!0),yForText:t.generateXYForText(i.indices,!1),cx:(s||function(){}).bind(t),cy:(o||function(){}).bind(t)}}return i},getShapeIndices(t){const e=this,{config:n}=e,a=n.data_xs,i=nn(a),s={};let o=i?{}:0;return i&&Ps(Object.keys(a).map(l=>a[l])).forEach(l=>{o[l]=0,s[l]={}}),e.filterTargetsToShow(e.data.targets.filter(t,e)).forEach(l=>{var c;const f=l.id in a?a[l.id]:"",g=f?s[f]:s;for(let v=0,m;m=n.data_groups[v];v++)if(!(m.indexOf(l.id)<0))for(let S=0,I;I=m[S];S++){if(I in g){g[l.id]=g[I];break}l.id!==I&&f&&(g[I]=(c=g[l.id])!=null?c:o[f])}en(g[l.id])&&(g[l.id]=f?o[f]++:o++,g.__max__=(f?o[f]:o)-1)}),s},getIndices(t,e,n){const a=this,{data_xs:i,bar_indices_removeNull:s}=a.config,{id:o,index:l}=e;if(a.isBarType(o)&&s){const c={};return a.getAllValuesOnIndex(l,!0).forEach((f,g)=>{c[f.id]=g,c.__max__=g}),c}return nn(i)?t[i[o]]:t},getIndicesMax(t){return nn(this.config.data_xs)?Object.keys(t).map(e=>t[e].__max__||0).reduce((e,n)=>e+n):t.__max__},getShapeX(t,e,n){const a=this,{config:i,scale:s}=a,o=n?s.subX:s.zoom||s.x,l=i.bar_overlap,c=i.bar_padding,f=(v,m)=>v+m,g=Jn(t)&&(t._$total.length?t._$total.reduce(f)/2:0);return v=>{const m=a.getIndices(e,v,"getShapeX"),S=v.id in m?m[v.id]:0,I=(m.__max__||0)+1;let N=0;if(nn(v.x)){const M=o(v.x,!0);if(g){const P=t[v.id]||t._$width;N=l?M-P/2:M-P+t._$total.slice(0,S+1).reduce(f)-g}else N=M-(ue(t)?t:t._$width)*(I/2-(l?1:S))}return t&&N&&I>1&&c&&(S&&(N+=c*S),I>2?N-=(I-1)*c/2:I===2&&(N-=c/2)),N}},getShapeY(t){const e=this,n=e.isStackNormalized();return a=>{let{value:i}=a;return ue(a)?i=a:e.isAreaRangeType(a)?i=e.getBaseValue(a,"mid"):n?i=e.getRatio("index",a,!0):e.isBubbleZType(a)?i=e.getBubbleZData(a.value,"y"):e.isBarRangeType(a)&&(i=i[1]),e.getYScaleById(a.id,t)(i)}},getShapeYMin(t){const e=this,n=e.axis.getId(t),a=e.scale[n],[i]=a.domain(),s=e.config[`axis_${n}_inverted`];return!e.isGrouped(t)&&!s&&i>0?i:0},getShapeOffsetData(t){const e=this,n=e.orderTargets(e.filterTargetsToShow(e.data.targets.filter(t,e))),a=e.isStackNormalized(),i=n.map(o=>{let l=o.values;const c={};e.isStepType(o)&&(l=e.convertValuesToStep(l));const f=l.reduce((g,v)=>{const m=Number(v.x);return g[m]=v,c[m]=a?e.getRatio("index",v,!0):v.value,g},{});return{id:o.id,rowValues:l,rowValueMapByXValue:f,values:c}});return{indexMapByTargetId:n.reduce((o,{id:l},c)=>(o[l]=c,o),{}),shapeOffsetTargets:i}},getShapeOffset(t,e,n){const a=this,{shapeOffsetTargets:i,indexMapByTargetId:s}=a.getShapeOffsetData(t),o=a.config.data_groupsZeroAs;return(l,c)=>{const{id:f,value:g,x:v}=l,m=a.getIndices(e,l),S=a.getYScaleById(f,n);if(a.isBarRangeType(l))return S(g[0]);const I=Number(v),N=S(o==="zero"?0:a.getShapeYMin(f));let M=N;return i.filter(P=>P.id!==f&&m[P.id]===m[f]).forEach(P=>{const{id:X,rowValueMapByXValue:W,rowValues:G,values:k}=P;if(s[X]<s[f]){const H=k[I];let at=G[c];(!at||Number(at.x)!==I)&&(at=W[I]),(at==null?void 0:at.value)*g>=0&&ue(H)&&(g!==0||o==="positive"&&H>0||o==="negative"&&H<0)&&(M+=S(H)-N)}}),M}},circleY(t,e){const n=this,a=t.id;let i;return n.isGrouped(a)&&(i=om.bind(n)(t)),i?i(t,e)[0][1]:n.getYScaleById(a)(n.getBaseValue(t))},getBarW(t,e,n){var a,i,s,o,l;const c=this,{config:f,org:g,scale:v}=c,m=c.getMaxDataCount(),S=t==="bar"&&((a=f.data_groups)==null?void 0:a.length),I=`${t}_width`,{k:N}=(s=(i=c.getZoomTransform)==null?void 0:i.call(c))!=null?s:{k:1},M=[(o=f.axis_x_min)!=null?o:g.xDomain[0],(l=f.axis_x_max)!=null?l:g.xDomain[1]].map(c.axis.isTimeSeries()?Dn.bind(c):Number);let P=e.tickInterval(m);if(v.zoom&&!c.axis.isCategorized()&&N>1){const G=M.every((k,H)=>k===g.xDomain[H]);P=g.xDomain.map((k,H)=>{const at=G?k:k-Math.abs(M[H]);return v.zoom(at)}).reduce((k,H)=>Math.abs(k)+H)/m}const X=G=>{const k=G?f[I][G]:f[I],H=G?k.ratio:f[`${I}_ratio`],at=G?k.max:f[`${I}_max`],mt=ue(k)?k:n?P*H/n:0;return at&&mt>at?at:mt};let W=X();return!S&&Jn(f[I])&&(W={_$width:W,_$total:[]},c.filterTargetsToShow(c.data.targets).forEach(G=>{f[I][G.id]&&(W[G.id]=X(G.id),W._$total.push(W[G.id]||W._$width))})),W},getShapeByIndex(t,e,n){const a=this,{$el:i}=a,s=Ie(e)?`-${e}`:"";let o=i[t];return o&&!o.empty()?o=o.filter(l=>n?l.id===n:!0).filter(l=>Ie(e)?l.index===e:!0):o=(n?i.main.selectAll(`.${Ne[`${t}s`]}${a.getTargetSelectorSuffix(n)}`):i.main).selectAll(`.${Ne[t]}${s}`),o},isWithinShape(t,e){var n;const a=this,i=st(t);let s;return a.isTargetToShow(e.id)?(n=a.hasValidPointType)!=null&&n.call(a,t.nodeName)?s=a.isStepType(e)?a.isWithinStep(t,a.getYScaleById(e.id)(e.value)):a.isWithinCircle(t,a.isBubbleType(e)?a.pointSelectR(e)*1.5:0):t.nodeName==="path"&&(s=i.classed(Ne.bar)?a.isWithinBar(t):!0):s=!1,s},getInterpolate(t){const n=this.getInterpolateType(t);return{basis:Xp,"basis-closed":Vp,"basis-open":Yp,bundle:Hp,cardinal:Wp,"cardinal-closed":Kp,"cardinal-open":Zp,"catmull-rom":Qp,"catmull-rom-closed":_p,"catmull-rom-open":qp,"monotone-x":tm,"monotone-y":em,natural:nm,"linear-closed":rm,linear:fo,step:am,"step-after":sm,"step-before":im}[n]},getInterpolateType(t){const e=this,{config:n}=e,a=n.spline_interpolation_type,i=e.isInterpolationType(a)?a:"cardinal";return e.isSplineType(t)?i:e.isStepType(t)?n.line_step_type:"linear"},isWithinBar(t){const e=zn(this.state.event,t),n=Xl(t),[a,i]=n,s=Math.min(a.x,i.x),o=Math.min(a.y,i.y),l=this.config.bar_sensitivity,{width:c,height:f}=t.getBBox(),g=s-l,v=s+c+l,m=o+f+l,S=o-l;return g<e[0]&&e[0]<v&&S<e[1]&&e[1]<m}},cm=Object.defineProperty,um=(t,e,n)=>e in t?cm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$n=(t,e,n)=>(um(t,typeof e!="symbol"?e+"":e,n),n);class Fr{constructor(e){$n(this,"api"),$n(this,"config"),$n(this,"cache"),$n(this,"$el"),$n(this,"state"),$n(this,"charts"),$n(this,"data",{xs:{},targets:[]}),$n(this,"axis"),$n(this,"scale",{x:null,y:null,y2:null,subX:null,subY:null,subY2:null,zoom:null}),$n(this,"org",{xScale:null,xDomain:null}),$n(this,"color"),$n(this,"patterns"),$n(this,"levelColor"),$n(this,"point"),$n(this,"brush"),$n(this,"format",{extraLineClasses:null,xAxisTick:null,dataTime:null,defaultAxisTime:null,axisTime:null});const n=this;n.api=e,n.config=new Pr,n.cache=new cv;const a=new iv;n.$el=a.getStore("element"),n.state=a.getStore("state"),n.$T=n.$T.bind(n)}$T(e,n,a){const{config:i,state:s}=this,o=i.transition_duration,l=i.subchart_show;let c=e;return c&&("tagName"in c&&(c=st(c)),c=(n!==!1&&o||n)&&(!s.zooming||s.dragging)&&!s.resizing&&s.rendered&&!l?c.transition(a).duration(o):c),c}beforeInit(){const e=this;e.callPluginHook("$beforeInit"),Ze(e.config.onbeforeinit,e.api)}afterInit(){const e=this;e.callPluginHook("$afterInit"),Ze(e.config.onafterinit,e.api)}init(){const e=this,{config:n,state:a,$el:i}=e,s=n.boost_useCssRule;if(uv(e),a.hasRadar=!a.hasAxis&&e.hasType("radar"),a.hasFunnel=!a.hasAxis&&e.hasType("funnel"),a.hasTreemap=!a.hasAxis&&e.hasType("treemap"),a.hasAxis=!e.hasArcType()&&!a.hasFunnel&&!a.hasTreemap,a.datetimeId=`bb-${+new Date*lr()}`,s){const l=fn.createElement("style");l.type="text/css",fn.head.appendChild(l),a.style={rootSelctor:`.${a.datetimeId}`,sheet:l.sheet},i.style=l}const o={element:n.bindto,classname:"bb"};De(n.bindto)&&(o.element=n.bindto.element||"#chart",o.classname=n.bindto.classname||o.classname),i.chart=he(o.element.node)?n.bindto.element:st(o.element||[]),i.chart.empty()&&(i.chart=st(fn.body.appendChild(fn.createElement("div")))),i.chart.html("").classed(o.classname,!0).classed(a.datetimeId,s).style("position","relative"),e.initParams(),e.initToRender()}initToRender(e){const n=this,{config:a,state:i,$el:{chart:s}}=n,o=()=>s.style("display")==="none"||s.style("visibility")==="hidden",l=a.render.lazy||o(),c=Ke.MutationObserver;l&&c&&a.render.observe!==!1&&!e&&new c((f,g)=>{o()||(g.disconnect(),!i.rendered&&n.initToRender(!0))}).observe(s.node(),{attributes:!0,attributeFilter:["class","style"]}),(!l||e)&&n.convertData(a,f=>{n.initWithData(f),n.afterInit()})}initParams(){var e;const n=this,{config:a,format:i,state:s}=n,o=a.axis_rotated;if(n.color=n.generateColor(),n.levelColor=n.generateLevelColor(),a.padding===!1&&(a.axis_x_show=!1,a.axis_y_show=!1,a.axis_y2_show=!1,a.subchart_show=!1),(n.hasPointType()||(e=n.hasLegendDefsPoint)!=null&&e.call(n))&&(n.point=n.generatePoint()),s.hasAxis){n.initClip(),i.extraLineClasses=n.generateExtraLineClass(),i.dataTime=a.data_xLocaltime?Yo:Ho,i.axisTime=a.axis_x_localtime?rs:as;const l=n.config.zoom_enabled&&n.config.zoom_type==="drag";i.defaultAxisTime=c=>{const{x:f,zoom:g}=n.scale,v=l?g:g&&f.orgDomain().toString()!==g.domain().toString(),m=c.getMilliseconds()&&".%L"||c.getSeconds()&&".:%S"||c.getMinutes()&&"%I:%M"||c.getHours()&&"%I %p"||c.getDate()!==1&&"%b %d"||v&&c.getDate()===1&&"%b'%y"||c.getMonth()&&"%-m/%-d"||"%Y";return i.axisTime(m)(c)}}s.isLegendRight=a.legend_position==="right",s.isLegendInset=a.legend_position==="inset",s.isLegendTop=a.legend_inset_anchor==="top-left"||a.legend_inset_anchor==="top-right",s.isLegendLeft=a.legend_inset_anchor==="top-left"||a.legend_inset_anchor==="bottom-left",s.rotatedPadding.top=n.getResettedPadding(s.rotatedPadding.top),s.rotatedPadding.right=o&&!a.axis_x_show?0:30,s.inputType=_g(a.interaction_inputType_mouse,a.interaction_inputType_touch)}initWithData(e){var n,a,i;const s=this,{config:o,scale:l,state:c,$el:f,org:g}=s,{hasAxis:v,hasFunnel:m,hasTreemap:S}=c,I=o.interaction_enabled,N=s.hasType("polar"),M=o.data_labels_backgroundColors;if(v&&(s.axis=s.getAxisInstance(),o.zoom_enabled&&s.initZoom()),s.data.xs={},s.data.targets=s.convertDataToTargets(e),o.data_filter&&(s.data.targets=s.data.targets.filter(o.data_filter.bind(s.api))),o.data_hide&&s.addHiddenTargetIds(o.data_hide===!0?s.mapToIds(s.data.targets):o.data_hide),o.legend_hide&&s.addHiddenLegendIds(o.legend_hide===!0?s.mapToIds(s.data.targets):o.legend_hide),s.updateSizes(),s.updateScales(!0),v){const{x:W,y:G,y2:k,subX:H,subY:at,subY2:mt}=l;W&&(W.domain(qr(s.getXDomain(s.data.targets),!o.axis_x_inverted)),H.domain(W.domain()),g.xDomain=W.domain()),G&&(G.domain(s.getYDomain(s.data.targets,"y")),at.domain(G.domain())),k&&(k.domain(s.getYDomain(s.data.targets,"y2")),mt&&mt.domain(k.domain()))}if(f.svg=f.chart.append("svg").style("overflow","hidden").style("display","block"),I&&c.inputType){const W=c.inputType==="touch",{onclick:G,onover:k,onout:H}=o;f.svg.on("click",(G==null?void 0:G.bind(s.api))||null).on(W?"touchstart":"mouseenter",(k==null?void 0:k.bind(s.api))||null).on(W?"touchend":"mouseleave",(H==null?void 0:H.bind(s.api))||null)}o.svg_classname&&f.svg.attr("class",o.svg_classname);const P=he(o.color_tiles)&&s.patterns;(v||P||N||S||M||(n=s.hasLegendDefsPoint)!=null&&n.call(s))&&(f.defs=f.svg.append("defs"),v&&["id","idXAxis","idYAxis","idY2Axis","idGrid"].forEach(W=>{s.appendClip(f.defs,c.clip[W])}),s.generateTextBGColorFilter(M),P&&s.patterns.forEach(W=>f.defs.append(()=>W.node))),s.updateSvgSize(),s.bindResize();const X=f.svg.append("g").classed(Se.main,!0).attr("transform",m||S?null:s.getTranslate("main"));if(f.main=X,o.subchart_show&&s.initSubchart(),o.tooltip_show&&s.initTooltip(),o.title_text&&s.initTitle(),!S&&o.legend_show&&s.initLegend(),o.data_empty_label_text&&X.append("text").attr("class",`${An.text} ${Se.empty}`).attr("text-anchor","middle").attr("dominant-baseline","middle"),v&&(o.regions.length&&s.initRegion(),!o.clipPath&&s.axis.init()),X.append("g").classed(Se.chart,!0).attr("clip-path",v?c.clip.path:null),s.callPluginHook("$init"),s.initChartElements(),v&&(I&&((a=s.initEventRect)==null||a.call(s)),s.initGrid(),o.clipPath&&((i=s.axis)==null||i.init())),s.updateTargets(s.data.targets),s.updateDimension(),Ze(o.oninit,s.api),s.setBackground(),s.redraw({withTransition:!1,withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransitionForAxis:!1,initializing:!0}),o.data_onmin||o.data_onmax){const W=s.getMinMaxData();Ze(o.data_onmin,s.api,W.min),Ze(o.data_onmax,s.api,W.max)}o.tooltip_show&&s.initShowTooltip(),c.rendered=!0}initChartElements(){const e=this,{hasAxis:n,hasRadar:a,hasTreemap:i}=e.state,s=[];if(n){const o=["bar","bubble","candlestick","line"];e.config.bar_front&&o.push(o.shift()),o.forEach(l=>{const c=In(l);(l==="line"&&e.hasTypeOf(c)||e.hasType(l))&&s.push(c)})}else if(i)s.push("Treemap");else if(e.hasType("funnel"))s.push("Funnel");else{const o=e.hasType("polar");a||s.push("Arc","Pie"),e.hasType("gauge")?s.push("Gauge"):a?s.push("Radar"):o&&s.push("Polar")}s.forEach(o=>{e[`init${o}`]()}),nn(e.config.data_labels)&&!e.hasArcType(null,["radar"])&&e.initText()}setChartElements(){const e=this,{$el:{chart:n,svg:a,defs:i,main:s,tooltip:o,legend:l,title:c,grid:f,needle:g,arcs:v,circle:m,bar:S,candlestick:I,line:N,area:M,text:P}}=e;e.api.$={chart:n,svg:a,defs:i,main:s,tooltip:o,legend:l,title:c,grid:f,arc:v,circles:m,bar:{bars:S},candlestick:I,line:{lines:N,areas:M},needle:g,text:{texts:P}}}setBackground(){const e=this,{config:{background:n},state:a,$el:{svg:i}}=e;if(nn(n)){const s=i.select("g").insert(n.imgUrl?"image":"rect",":first-child");n.imgUrl?s.attr("href",n.imgUrl):n.color&&s.style("fill",n.color).attr("clip-path",a.clip.path),s.attr("class",n.class||null).attr("width","100%").attr("height","100%")}}updateTargets(e){var n;const a=this,{hasAxis:i,hasFunnel:s,hasRadar:o,hasTreemap:l}=a.state,c=g=>a[`updateTargetsFor${g}`](e.filter(a[`is${g}Type`].bind(a)));if(a.updateTargetsForText(e),i)["bar","candlestick","line"].forEach(g=>{const v=In(g);(g==="line"&&a.hasTypeOf(v)||a.hasType(g))&&c(v)}),a.updateTargetsForSubchart&&a.updateTargetsForSubchart(e);else if(a.hasArcType(e)){let g="Arc";o?g="Radar":a.hasType("polar")&&(g="Polar"),c(g)}else s?c("Funnel"):l&&c("Treemap");const f=a.hasType("bubble")||a.hasType("scatter");f&&((n=a.updateTargetForCircle)==null||n.call(a)),a.filterTargetsToShowAtInit(f)}filterTargetsToShowAtInit(e=!1){const n=this,{$el:{svg:a},$T:i}=n;let s=`.${Se.target}`;e&&(s+=`, .${pn.chartCircles} > .${pn.circles}`),i(a.selectAll(s).filter(o=>n.isTargetToShow(o.id))).style("opacity",null)}getWithOption(e){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(a=>{let i=n[a];ze(i)&&(i=n[i]),n[a]=vr(e,`with${a}`,i)}),n}initialOpacity(e){const n=this,{withoutFadeIn:a}=n.state;return n.getBaseValue(e)!==null&&a[e.id]?null:"0"}bindResize(){const e=this,{config:n,state:a}=e,i=gv(n.resize_timer),s=[];s.push(()=>Ze(n.onresize,e.api)),n.resize_auto&&s.push(()=>{a.resizing=!0,n.legend_show&&(e.updateSizes(),e.updateLegend()),e.api.flush(!1)}),s.push(()=>{Ze(n.onresized,e.api),a.resizing=!1}),s.forEach(o=>i.add(o)),e.resizeFunction=i,Ke.addEventListener("resize",e.resizeFunction=i)}callPluginHook(e,...n){this.config.plugins.forEach(a=>{e==="$beforeInit"&&(a.$$=this,this.api.plugins.push(a)),a[e](...n)})}}gn(Fr.prototype,[Ov,Iv,Cv,Nv,Fv,jv,Gv,Dv,Xv,Vv,Yv,Mp,lm,Lp,Dp,Bp,Up,zp,jp,Gp]);function fm(t){const e=this.config;let n,a,i;const s=()=>{const o=a.shift();if(o&&n&&Jn(n)&&o in n)return n=n[o],s();if(!o)return n};Object.keys(e).forEach(o=>{n=t,a=o.split("_"),i=s(),Ve(i)&&(e[o]=i)}),this.api&&(this.state.orgConfig=t)}var dm={resize(t){const e=this.internal,{config:n,state:a}=e;a.rendered&&(n.size_width=t?t.width:null,n.size_height=t?t.height:null,a.resizing=!0,this.flush(!1),e.resizeFunction())},flush(t){var e,n;const a=this.internal,{state:i,$el:{zoomResetBtn:s}}=a;i.rendered?(i.resizing?(e=a.brush)==null||e.updateResize():(n=a.axis)==null||n.setOrient(),s==null||s.style("display","none"),a.scale.zoom=null,t?a.redraw({withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withLegend:!0}):a.updateAndRedraw({withLegend:!0,withTransition:!1,withTransitionForTransform:!1}),!i.resizing&&a.brush&&(a.brush.getSelection().call(a.brush.move),a.unselectRect())):a.initToRender(!0)},destroy(){const t=this.internal,{$el:{chart:e,style:n,svg:a}}=t;if(nn(t)){t.callPluginHook("$willDestroy"),t.charts.splice(t.charts.indexOf(this),1),t.unbindAllEvents(),a.select("*").interrupt(),t.resizeFunction.clear(),Ke.removeEventListener("resize",t.resizeFunction),e.classed("bb",!1).style("position",null).selectChildren().remove(),n&&n.parentNode.removeChild(n),Object.keys(this).forEach(i=>{i==="internal"&&Object.keys(t).forEach(s=>{t[s]=null}),this[i]=null,delete this[i]});for(const i in this)this[i]=()=>{}}return null},config(t,e,n){const a=this.internal,{config:i,state:s}=a,o=t==null?void 0:t.replace(/\./g,"_");let l;return t&&o in i?Ve(e)?(i[o]=e,l=e,n&&this.flush()):l=i[o]:(arguments.length===0||Wn(t))&&(l=s.orgConfig),l}},hm={color(t){return this.internal.color(t)}};const nu=function(t){const{targets:e}=this.internal.data;if(!en(t)){const n=Fe(t)?t:[t];return e.filter(a=>n.some(i=>i===a.id))}return e};gn(nu,{shown:function(t){return this.internal.filterTargetsToShow(this.data(t))},values:function(t,e=!0){let n=null;if(t){const a=this.data(t);Fe(a)&&(n=[],a.forEach(i=>{const s=i.values.map(o=>o.value);e?n=n.concat(s):n.push(s)}))}return n},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 gm={data:nu};const vm=t=>{var e,n;return(n=(e=Ke).btoa)==null?void 0:n.call(e,encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(a,i)=>String.fromCharCode(+`0x${i}`)))};function pm(t,e,n){const{width:a,height:i}=e||n,s=new XMLSerializer,o=t.cloneNode(!0),l=Jg(Cr(fn.styleSheets)).filter(m=>m.cssText).map(m=>m.cssText);o.setAttribute("xmlns",ee.xhtml),o.style.margin="0",o.style.padding="0",e.preserveFontStyle&&o.querySelectorAll("text").forEach(m=>{m.innerHTML=""});const c=s.serializeToString(o),f=fn.createElement("style");f.appendChild(fn.createTextNode(l.join(`
|
|
48
|
+
`)));const g=s.serializeToString(f),v=`<svg xmlns="${ee.svg}" width="${a}" height="${i}"
|
|
49
|
+
viewBox="0 0 ${n.width} ${n.height}"
|
|
50
|
+
preserveAspectRatio="${(e==null?void 0:e.preserveAspectRatio)===!1?"none":"xMinYMid meet"}">
|
|
51
|
+
<foreignObject width="100%" height="100%">
|
|
52
|
+
${g}
|
|
53
|
+
${c.replace(/(url\()[^#]+/g,"$1")}
|
|
54
|
+
</foreignObject></svg>`;return`data:image/svg+xml;base64,${vm(v)}`}function mm(t,e){const{top:n,left:a}=e,{x:i,y:s}=t.getBBox(),{a:o,b:l,c,d:f,e:g,f:v}=t.getScreenCTM(),{width:m,height:S}=t.getBoundingClientRect();return{x:o*i+c*s+g-a,y:l*i+f*s+v-n+(S-Math.round(S/4)),width:m,height:S}}function ym(t){const{left:e,top:n}=t.getBoundingClientRect(),a=s=>s.textContent||s.childElementCount,i=[];return Cr(t.querySelectorAll("text")).filter(a).forEach(s=>{const o=l=>{const{fill:c,fontFamily:f,fontSize:g,textAnchor:v,transform:m}=Ke.getComputedStyle(l),{x:S,y:I,width:N,height:M}=mm(l,{left:e,top:n});return{[l.textContent]:{x:S,y:I,width:N,height:M,fill:c,fontFamily:f,fontSize:g,textAnchor:v,transform:m}}};if(s.childElementCount>1){const l=[];return Cr(s.querySelectorAll("tspan")).filter(a).forEach(c=>{i.push(o(c))}),l}else i.push(o(s))}),i}function xm(t,e){e.forEach(n=>{Object.keys(n).forEach(a=>{const{x:i,y:s,width:o,height:l,fill:c,fontFamily:f,fontSize:g,transform:v}=n[a];if(t.save(),t.font=`${g} ${f}`,t.fillStyle=c,v==="none")t.fillText(a,i,s);else{const m=v.replace(/(matrix|\(|\))/g,"").split(",");m.splice(4).every(S=>+S==0)?(m.push(i+o-o/4),m.push(s-l+l/3)):(m.push(i),m.push(s)),t.transform(...m),t.fillText(a,0,0)}t.restore()})})}var Tm={export(t,e){const n=this.internal,{state:a,$el:{chart:i,svg:s}}=n,{width:o,height:l}=a.current,c=_r({width:o,height:l,preserveAspectRatio:!0,preserveFontStyle:!1,mimeType:"image/png"},t),f=pm(i.node(),c,{width:o,height:l}),g=c.preserveFontStyle?ym(s.node()):[];if(e&&he(e)){const v=new Image;v.crossOrigin="Anonymous",v.onload=()=>{const m=fn.createElement("canvas"),S=m.getContext("2d");m.width=c.width||o,m.height=c.height||l,S.drawImage(v,0,0),g.length&&(xm(S,g),g.length=0),e.bind(this)(m.toDataURL(c.mimeType))},v.src=f}return f}},$m={focus(t){const e=this.internal,{state:n}=e,a=e.mapToTargetIds(t),i=e.$el.svg.selectAll(e.selectorTargets(a.filter(e.isTargetToShow,e)));this.revert(),this.defocus(),i.classed(We.focused,!0).classed(We.defocused,!1),e.hasArcType()&&!n.hasRadar&&(e.expandArc(a),e.hasType("gauge")&&e.markOverlapped(t,e,`.${Ln.gaugeValue}`)),e.toggleFocusLegend(a,!0),n.focusedTargetIds=a,n.defocusedTargetIds=n.defocusedTargetIds.filter(s=>a.indexOf(s)<0)},defocus(t){const e=this.internal,{state:n}=e,a=e.mapToTargetIds(t);e.$el.svg.selectAll(e.selectorTargets(a.filter(e.isTargetToShow,e))).classed(We.focused,!1).classed(We.defocused,!0),e.hasArcType(null,["polar"])&&(e.unexpandArc(a),e.hasType("gauge")&&e.undoMarkOverlapped(e,`.${Ln.gaugeValue}`)),e.toggleFocusLegend(a,!1),n.focusedTargetIds=n.focusedTargetIds.filter(s=>a.indexOf(s)<0),n.defocusedTargetIds=a},revert(t){const e=this.internal,{config:n,state:a,$el:i}=e,s=e.mapToTargetIds(t);i.svg.selectAll(e.selectorTargets(s)).classed(We.focused,!1).classed(We.defocused,!1),e.hasArcType(null,["polar"])&&e.unexpandArc(s),n.legend_show&&(e.showLegend(s.filter(e.isLegendToShow.bind(e))),i.legend.selectAll(e.selectorLegends(s)).filter(function(){return st(this).classed(We.legendItemFocused)}).classed(We.legendItemFocused,!1)),a.focusedTargetIds=[],a.defocusedTargetIds=[]}},Sm={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})}}},Am={load(t){const e=this.internal,{config:n}=e;t.xs&&e.addXs(t.xs),"names"in t&&this.data.names(t.names),"classes"in t&&Object.keys(t.classes).forEach(a=>{n.data_classes[a]=t.classes[a]}),"categories"in t&&e.axis.isCategorized()&&(n.axis_x_categories=t.categories),"axes"in t&&Object.keys(t.axes).forEach(a=>{n.data_axes[a]=t.axes[a]}),"colors"in t&&Object.keys(t.colors).forEach(a=>{n.data_colors[a]=t.colors[a]}),"unload"in t&&t.unload!==!1?e.unload(e.mapToTargetIds(t.unload===!0?null:t.unload),()=>{Ul(()=>e.loadFromArgs(t))}):e.loadFromArgs(t)},unload(t){const e=this.internal;let n=t||{};Wn(n)&&this.tooltip.hide(),Fe(n)?n={ids:n}:ze(n)&&(n={ids:[n]});const a=e.mapToTargetIds(n.ids);e.unload(a,()=>{e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),e.cache.remove(a),oc.call(e,n.done,n.resizeAfter)})}};function ru(t,e,n){const a=this.internal,i=a.mapToTargetIds(e),s=a.state.hiddenTargetIds.map(c=>i.indexOf(c)>-1&&c).filter(Boolean);a.state.toggling=!0,a[`${t?"remove":"add"}HiddenTargetIds`](i);const o=a.$el.svg.selectAll(a.selectorTargets(i)),l=t?null:"0";t&&s.length&&(o.style("display",null),Ze(a.config.data_onshown,this,s)),a.$T(o).style("opacity",l,"important").call($i,()=>{!t&&s.length===0&&(o.style("display","none"),Ze(a.config.data_onhidden,this,i)),o.style("opacity",l)}),n.withLegend&&a[`${t?"show":"hide"}Legend`](i),a.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),a.state.toggling=!1}var bm={show(t,e={}){ru.call(this,!0,t,e)},hide(t,e={}){ru.call(this,!1,t,e)},toggle(t,e={}){const n=this.internal,a={show:[],hide:[]};n.mapToTargetIds(t).forEach(i=>a[n.isTargetToShow(i)?"hide":"show"].push(i)),a.show.length&&this.show(a.show,e),a.hide.length&&setTimeout(()=>this.hide(a.hide,e),0)}},Em={tooltip:{show:function(t){var e,n,a;const i=this.internal,{$el:s,config:o,state:{eventReceiver:l,hasFunnel:c,hasTreemap:f,inputType:g}}=i;let v,m;if(t.mouse&&(m=t.mouse),t.data){const{data:S}=t,I=(e=i.getYScaleById(S.id))==null?void 0:e(S.value);if((c||f)&&S.id){const N=i.selectorTarget(S.id,void 0,`.${tn.shape}`);l.rect=s.main.select(N)}else i.isMultipleX()?m=[i.xx(S),I]:(o.tooltip_grouped||(m=[0,I]),v=(a=S.index)!=null?a:i.hasArcType()&&S.id?(n=i.getArcElementByIdOrIndex(S.id))==null?void 0:n.datum().index:i.getIndexByX(S.x))}else Ve(t.x)?v=i.getIndexByX(t.x):Ve(t.index)&&(v=t.index);(g==="mouse"?["mouseover","mousemove"]:["touchstart"]).forEach(S=>{i.dispatchEvent(S,v,m)})},hide:function(){var t,e,n;const a=this.internal,{state:{inputType:i},$el:{tooltip:s}}=a,o=s==null?void 0:s.datum();if(o){const{index:l}=JSON.parse(o.current)[0];(i==="mouse"?["mouseout"]:["touchend"]).forEach(c=>{a.dispatchEvent(c,l)})}i==="touch"&&a.callOverOutForTouch(),a.hideTooltip(!0),(t=a.hideGridFocus)==null||t.call(a),(e=a.unexpandCircles)==null||e.call(a),(n=a.expandBarTypeShapes)==null||n.call(a,!1)}}},Rm=Object.defineProperty,Om=(t,e,n)=>e in t?Rm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,au=(t,e,n)=>(Om(t,typeof e!="symbol"?e+"":e,n),n);class yr{constructor(e){au(this,"plugins",[]),au(this,"internal");const n=new Fr(this);this.internal=n,function a(i,s,o){Object.keys(i).forEach(l=>{const c=he(i[l]),f=s!==o,g=nn(i[l]),v=g&&Object.keys(i[l]).length>0;c&&(!f&&v||f)?s[l]=i[l].bind(o):g&&!c?s[l]={}:s[l]=i[l],v&&a(i[l],s[l],o)})}(yr.prototype,this,this),fm.call(n,e),n.beforeInit(),n.init()}}gn(yr.prototype,[dm,hm,gm,Tm,$m,Sm,Am,bm,Em]);function iu(t=!1,e,n,a){const i=this,{config:s,$el:{main:o}}=i,l=s.data_selection_grouped,c=s.data_selection_isselectable.bind(i.api);s.data_selection_enabled&&o.selectAll(`.${tn.shapes}`).selectAll(`.${tn.shape}`).each(function(f){const g=st(this),{id:v,index:m}=f.data?f.data:f,S=i.getToggle(this,f).bind(i),I=l||!e||e.indexOf(v)>=0,N=!n||n.indexOf(m)>=0,M=g.classed(ke.SELECTED);g.classed(ar.line)||g.classed(qa.area)||(t?I&&N&&c(f)&&!M?S(!0,g.classed(ke.SELECTED,!0),f,m):Ve(a)&&a&&M&&S(!1,g.classed(ke.SELECTED,!1),f,m):I&&N&&c(f)&&M&&S(!1,g.classed(ke.SELECTED,!1),f,m))})}var Im={selected(t){const e=this.internal,n=[];return e.$el.main.selectAll(`.${tn.shapes+e.getTargetSelectorSuffix(t)}`).selectAll(`.${tn.shape}`).filter(function(){return st(this).classed(ke.SELECTED)}).each(a=>n.push(a)),n},select(t,e,n){const a=this.internal;iu.bind(a)(!0,t,e,n)},unselect(t,e){const n=this.internal;iu.bind(n)(!1,t,e)}};const su=function(t){var e;const n=this.internal,{axis:a,brush:i,config:s,scale:{x:o,subX:l},state:c}=n;let f;return s.subchart_show&&(f=t,Array.isArray(f)?(a.isTimeSeries()&&(f=f.map(v=>Dn.bind(n)(v))),n.withinRange(f,n.getZoomDomain("subX",!0),n.getZoomDomain("subX"))&&(c.domain=f,i.move(i.getSelection(),f.map(l)))):f=(e=c.domain)!=null?e:o.orgDomain()),f};gn(su,{show(){var t,e;const n=this.internal,{$el:{subchart:a},config:i}=n,s=i.subchart_show;if(!s){n.unbindZoomEvent(),i.subchart_show=!s,!a.main&&n.initSubchart();let o=a.main.selectAll(`.${Se.target}`);n.data.targets.length!==o.size()&&(n.updateSizes(),n.updateTargetsForSubchart(n.data.targets),o=(t=a.main)==null?void 0:t.selectAll(`.${Se.target}`)),o==null||o.style("opacity",null),(e=a.main)==null||e.style("display",null),this.resize()}},hide(){const t=this.internal,{$el:{subchart:{main:e}},config:n}=t;n.subchart_show&&(e==null?void 0:e.style("display"))!=="none"&&(n.subchart_show=!1,e.style("display","none"),this.resize())},toggle(){const t=this.internal,{config:e}=t;this.subchart[e.subchart_show?"hide":"show"]()},reset(){const t=this.internal,{brush:e}=t;e.clear(e.getSelection())}});var Cm={subchart:su},Pm=1e-12;function ou(t){return((t=Math.exp(t))+1/t)/2}function wm(t){return((t=Math.exp(t))-1/t)/2}function Mm(t){return((t=Math.exp(2*t))-1)/(t+1)}var Lm=function t(e,n,a){function i(s,o){var l=s[0],c=s[1],f=s[2],g=o[0],v=o[1],m=o[2],S=g-l,I=v-c,N=S*S+I*I,M,P;if(N<Pm)P=Math.log(m/f)/e,M=function(at){return[l+at*S,c+at*I,f*Math.exp(e*at*P)]};else{var X=Math.sqrt(N),W=(m*m-f*f+a*N)/(2*f*n*X),G=(m*m-f*f-a*N)/(2*m*n*X),k=Math.log(Math.sqrt(W*W+1)-W),H=Math.log(Math.sqrt(G*G+1)-G);P=(H-k)/e,M=function(at){var mt=at*P,At=ou(k),St=f/(n*X)*(At*Mm(e*mt+k)-wm(k));return[l+St*S,c+St*I,f*At/ou(e*mt+k)]}}return M.duration=P*1e3*e/Math.SQRT2,M}return i.rho=function(s){var o=Math.max(.001,+s),l=o*o,c=l*l;return t(o,l,c)},i}(Math.SQRT2,2,4),Gi=t=>()=>t;function Dm(t,{sourceEvent:e,target:n,transform:a,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:a,enumerable:!0,configurable:!0},_:{value:i}})}function cr(t,e,n){this.k=t,this.x=e,this.y=n}cr.prototype={constructor:cr,scale:function(t){return t===1?this:new cr(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new cr(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 _n=new cr(1,0,0);ho.prototype=cr.prototype;function ho(t){for(;!t.__zoom;)if(!(t=t.parentNode))return _n;return t.__zoom}function go(t){t.stopImmediatePropagation()}function Da(t){t.preventDefault(),t.stopImmediatePropagation()}function Nm(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Fm(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.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 lu(){return this.__zoom||_n}function Bm(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Um(){return navigator.maxTouchPoints||"ontouchstart"in this}function zm(t,e,n){var a=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],s=t.invertY(e[0][1])-n[0][1],o=t.invertY(e[1][1])-n[1][1];return t.translate(i>a?(a+i)/2:Math.min(0,a)||Math.max(0,i),o>s?(s+o)/2:Math.min(0,s)||Math.max(0,o))}function jm(){var t=Nm,e=Fm,n=zm,a=Bm,i=Um,s=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],l=250,c=Lm,f=ni("start","zoom","end"),g,v,m,S=500,I=150,N=0,M=10;function P(Q){Q.property("__zoom",lu).on("wheel.zoom",mt,{passive:!1}).on("mousedown.zoom",At).on("dblclick.zoom",St).filter(i).on("touchstart.zoom",Tt).on("touchmove.zoom",Gt).on("touchend.zoom touchcancel.zoom",xt).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}P.transform=function(Q,Ct,ht,It){var Yt=Q.selection?Q.selection():Q;Yt.property("__zoom",lu),Q!==Yt?k(Q,Ct,ht,It):Yt.interrupt().each(function(){H(this,arguments).event(It).start().zoom(null,typeof Ct=="function"?Ct.apply(this,arguments):Ct).end()})},P.scaleBy=function(Q,Ct,ht,It){P.scaleTo(Q,function(){var Yt=this.__zoom.k,Xt=typeof Ct=="function"?Ct.apply(this,arguments):Ct;return Yt*Xt},ht,It)},P.scaleTo=function(Q,Ct,ht,It){P.transform(Q,function(){var Yt=e.apply(this,arguments),Xt=this.__zoom,Zt=ht==null?G(Yt):typeof ht=="function"?ht.apply(this,arguments):ht,Wt=Xt.invert(Zt),ne=typeof Ct=="function"?Ct.apply(this,arguments):Ct;return n(W(X(Xt,ne),Zt,Wt),Yt,o)},ht,It)},P.translateBy=function(Q,Ct,ht,It){P.transform(Q,function(){return n(this.__zoom.translate(typeof Ct=="function"?Ct.apply(this,arguments):Ct,typeof ht=="function"?ht.apply(this,arguments):ht),e.apply(this,arguments),o)},null,It)},P.translateTo=function(Q,Ct,ht,It,Yt){P.transform(Q,function(){var Xt=e.apply(this,arguments),Zt=this.__zoom,Wt=It==null?G(Xt):typeof It=="function"?It.apply(this,arguments):It;return n(_n.translate(Wt[0],Wt[1]).scale(Zt.k).translate(typeof Ct=="function"?-Ct.apply(this,arguments):-Ct,typeof ht=="function"?-ht.apply(this,arguments):-ht),Xt,o)},It,Yt)};function X(Q,Ct){return Ct=Math.max(s[0],Math.min(s[1],Ct)),Ct===Q.k?Q:new cr(Ct,Q.x,Q.y)}function W(Q,Ct,ht){var It=Ct[0]-ht[0]*Q.k,Yt=Ct[1]-ht[1]*Q.k;return It===Q.x&&Yt===Q.y?Q:new cr(Q.k,It,Yt)}function G(Q){return[(+Q[0][0]+ +Q[1][0])/2,(+Q[0][1]+ +Q[1][1])/2]}function k(Q,Ct,ht,It){Q.on("start.zoom",function(){H(this,arguments).event(It).start()}).on("interrupt.zoom end.zoom",function(){H(this,arguments).event(It).end()}).tween("zoom",function(){var Yt=this,Xt=arguments,Zt=H(Yt,Xt).event(It),Wt=e.apply(Yt,Xt),ne=ht==null?G(Wt):typeof ht=="function"?ht.apply(Yt,Xt):ht,je=Math.max(Wt[1][0]-Wt[0][0],Wt[1][1]-Wt[0][1]),Oe=Yt.__zoom,Ge=typeof Ct=="function"?Ct.apply(Yt,Xt):Ct,cn=c(Oe.invert(ne).concat(je/Oe.k),Ge.invert(ne).concat(je/Ge.k));return function(Le){if(Le===1)Le=Ge;else{var ln=cn(Le),Ht=je/ln[2];Le=new cr(Ht,ne[0]-ln[0]*Ht,ne[1]-ln[1]*Ht)}Zt.zoom(null,Le)}})}function H(Q,Ct,ht){return!ht&&Q.__zooming||new at(Q,Ct)}function at(Q,Ct){this.that=Q,this.args=Ct,this.active=0,this.sourceEvent=null,this.extent=e.apply(Q,Ct),this.taps=0}at.prototype={event:function(Q){return Q&&(this.sourceEvent=Q),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(Q,Ct){return this.mouse&&Q!=="mouse"&&(this.mouse[1]=Ct.invert(this.mouse[0])),this.touch0&&Q!=="touch"&&(this.touch0[1]=Ct.invert(this.touch0[0])),this.touch1&&Q!=="touch"&&(this.touch1[1]=Ct.invert(this.touch1[0])),this.that.__zoom=Ct,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(Q){var Ct=st(this.that).datum();f.call(Q,this.that,new Dm(Q,{sourceEvent:this.sourceEvent,target:P,type:Q,transform:this.that.__zoom,dispatch:f}),Ct)}};function mt(Q,...Ct){if(!t.apply(this,arguments))return;var ht=H(this,Ct).event(Q),It=this.__zoom,Yt=Math.max(s[0],Math.min(s[1],It.k*Math.pow(2,a.apply(this,arguments)))),Xt=Un(Q);if(ht.wheel)(ht.mouse[0][0]!==Xt[0]||ht.mouse[0][1]!==Xt[1])&&(ht.mouse[1]=It.invert(ht.mouse[0]=Xt)),clearTimeout(ht.wheel);else{if(It.k===Yt)return;ht.mouse=[Xt,It.invert(Xt)],kr(this),ht.start()}Da(Q),ht.wheel=setTimeout(Zt,I),ht.zoom("mouse",n(W(X(It,Yt),ht.mouse[0],ht.mouse[1]),ht.extent,o));function Zt(){ht.wheel=null,ht.end()}}function At(Q,...Ct){if(m||!t.apply(this,arguments))return;var ht=Q.currentTarget,It=H(this,Ct,!0).event(Q),Yt=st(Q.view).on("mousemove.zoom",ne,!0).on("mouseup.zoom",je,!0),Xt=Un(Q,ht),Zt=Q.clientX,Wt=Q.clientY;ls(Q.view),go(Q),It.mouse=[Xt,this.__zoom.invert(Xt)],kr(this),It.start();function ne(Oe){if(Da(Oe),!It.moved){var Ge=Oe.clientX-Zt,cn=Oe.clientY-Wt;It.moved=Ge*Ge+cn*cn>N}It.event(Oe).zoom("mouse",n(W(It.that.__zoom,It.mouse[0]=Un(Oe,ht),It.mouse[1]),It.extent,o))}function je(Oe){Yt.on("mousemove.zoom mouseup.zoom",null),cs(Oe.view,It.moved),Da(Oe),It.event(Oe).end()}}function St(Q,...Ct){if(t.apply(this,arguments)){var ht=this.__zoom,It=Un(Q.changedTouches?Q.changedTouches[0]:Q,this),Yt=ht.invert(It),Xt=ht.k*(Q.shiftKey?.5:2),Zt=n(W(X(ht,Xt),It,Yt),e.apply(this,Ct),o);Da(Q),l>0?st(this).transition().duration(l).call(k,Zt,It,Q):st(this).call(P.transform,Zt,It,Q)}}function Tt(Q,...Ct){if(t.apply(this,arguments)){var ht=Q.touches,It=ht.length,Yt=H(this,Ct,Q.changedTouches.length===It).event(Q),Xt,Zt,Wt,ne;for(go(Q),Zt=0;Zt<It;++Zt)Wt=ht[Zt],ne=Un(Wt,this),ne=[ne,this.__zoom.invert(ne),Wt.identifier],Yt.touch0?!Yt.touch1&&Yt.touch0[2]!==ne[2]&&(Yt.touch1=ne,Yt.taps=0):(Yt.touch0=ne,Xt=!0,Yt.taps=1+!!g);g&&(g=clearTimeout(g)),Xt&&(Yt.taps<2&&(v=ne[0],g=setTimeout(function(){g=null},S)),kr(this),Yt.start())}}function Gt(Q,...Ct){if(this.__zooming){var ht=H(this,Ct).event(Q),It=Q.changedTouches,Yt=It.length,Xt,Zt,Wt,ne;for(Da(Q),Xt=0;Xt<Yt;++Xt)Zt=It[Xt],Wt=Un(Zt,this),ht.touch0&&ht.touch0[2]===Zt.identifier?ht.touch0[0]=Wt:ht.touch1&&ht.touch1[2]===Zt.identifier&&(ht.touch1[0]=Wt);if(Zt=ht.that.__zoom,ht.touch1){var je=ht.touch0[0],Oe=ht.touch0[1],Ge=ht.touch1[0],cn=ht.touch1[1],Le=(Le=Ge[0]-je[0])*Le+(Le=Ge[1]-je[1])*Le,ln=(ln=cn[0]-Oe[0])*ln+(ln=cn[1]-Oe[1])*ln;Zt=X(Zt,Math.sqrt(Le/ln)),Wt=[(je[0]+Ge[0])/2,(je[1]+Ge[1])/2],ne=[(Oe[0]+cn[0])/2,(Oe[1]+cn[1])/2]}else if(ht.touch0)Wt=ht.touch0[0],ne=ht.touch0[1];else return;ht.zoom("touch",n(W(Zt,Wt,ne),ht.extent,o))}}function xt(Q,...Ct){if(this.__zooming){var ht=H(this,Ct).event(Q),It=Q.changedTouches,Yt=It.length,Xt,Zt;for(go(Q),m&&clearTimeout(m),m=setTimeout(function(){m=null},S),Xt=0;Xt<Yt;++Xt)Zt=It[Xt],ht.touch0&&ht.touch0[2]===Zt.identifier?delete ht.touch0:ht.touch1&&ht.touch1[2]===Zt.identifier&&delete ht.touch1;if(ht.touch1&&!ht.touch0&&(ht.touch0=ht.touch1,delete ht.touch1),ht.touch0)ht.touch0[1]=this.__zoom.invert(ht.touch0[0]);else if(ht.end(),ht.taps===2&&(Zt=Un(Zt,this),Math.hypot(v[0]-Zt[0],v[1]-Zt[1])<M)){var Wt=st(this).on("dblclick.zoom");Wt&&Wt.apply(this,arguments)}}}return P.wheelDelta=function(Q){return arguments.length?(a=typeof Q=="function"?Q:Gi(+Q),P):a},P.filter=function(Q){return arguments.length?(t=typeof Q=="function"?Q:Gi(!!Q),P):t},P.touchable=function(Q){return arguments.length?(i=typeof Q=="function"?Q:Gi(!!Q),P):i},P.extent=function(Q){return arguments.length?(e=typeof Q=="function"?Q:Gi([[+Q[0][0],+Q[0][1]],[+Q[1][0],+Q[1][1]]]),P):e},P.scaleExtent=function(Q){return arguments.length?(s[0]=+Q[0],s[1]=+Q[1],P):[s[0],s[1]]},P.translateExtent=function(Q){return arguments.length?(o[0][0]=+Q[0][0],o[1][0]=+Q[1][0],o[0][1]=+Q[0][1],o[1][1]=+Q[1][1],P):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},P.constrain=function(Q){return arguments.length?(n=Q,P):n},P.duration=function(Q){return arguments.length?(l=+Q,P):l},P.interpolate=function(Q){return arguments.length?(c=Q,P):c},P.on=function(){var Q=f.on.apply(f,arguments);return Q===f?P:Q},P.clickDistance=function(Q){return arguments.length?(N=(Q=+Q)*Q,P):Math.sqrt(N)},P.tapDistance=function(Q){return arguments.length?(M=+Q,P):M},P}const cu=function(t){var e;const n=this.internal,{axis:a,config:i,org:s,scale:o,state:l}=n,c=a.isCategorized();let f;if(i.zoom_enabled)if(f=t,Array.isArray(f)){if(a.isTimeSeries()&&(f=f.map(v=>Dn.bind(n)(v))),n.withinRange(f,n.getZoomDomain("zoom",!0),n.getZoomDomain("zoom"))){if(l.domain=f,f=n.getZoomDomainValue(f),n.api.tooltip.hide(),i.subchart_show){const v=o.zoom||o.x;n.brush.getSelection().call(n.brush.move,f.map(v))}else{const v=c?o.x.orgScale():s.xScale||o.x;n.updateCurrentZoomTransform(v,f)}n.setZoomResetButton()}}else f=n.zoom.getDomain();return(e=l.domain)!=null?e:f};gn(cu,{enable(t){const e=this.internal,{config:n}=e;/^(drag|wheel)$/.test(t)&&(n.zoom_type=t),n.zoom_enabled=!!t,e.zoom?t===!1&&e.bindZoomEvent(!1):(e.initZoom(),e.bindZoomEvent()),e.updateAndRedraw()},max(t){const e=this.internal,{config:n,org:{xDomain:a}}=e;return(t===0||t)&&(n.zoom_x_max=Kn("max",[a[1],t])),n.zoom_x_max},min(t){const e=this.internal,{config:n,org:{xDomain:a}}=e;return(t===0||t)&&(n.zoom_x_min=Kn("min",[a[0],t])),n.zoom_x_min},range(t){const e=this.zoom;if(De(t)){const{min:n,max:a}=t;Ve(n)&&e.min(n),Ve(a)&&e.max(a)}return{min:e.min(),max:e.max()}}});var Gm={zoom:cu,unzoom(){const t=this.internal,{config:e,$el:{eventRect:n,zoomResetBtn:a},scale:{zoom:i},state:s}=t;i&&(e.subchart_show?t.brush.getSelection().call(t.brush.move,null):t.zoom.updateTransformScale(_n),t.updateZoom(!0),a==null||a.style("display","none"),ho(n.node())!==_n&&t.zoom.transform(n,_n),s.domain=void 0)}},Xm={initBrush(){const t=this,{config:e,scale:n,$el:{subchart:a},state:i}=t,s=e.axis_rotated,o=e.subchart_size_height;let l,c,f;t.brush=(s?Ug():Bg()).handleSize(5),t.brush.on("start brush end",g=>{const{selection:v,sourceEvent:m,target:S,type:I}=g;I==="start"&&(t.state.inputType==="touch"&&t.hideTooltip(),c=m?v:null),/(start|brush)/.test(I)&&(I==="brush"&&m&&i.domain&&(c==null||c.forEach((N,M)=>{N!==v[M]&&(i.domain[M]=n.x.orgDomain()[M])})),t.redrawForBrush(I!=="start")),I==="end"&&(l=n.x.orgDomain()),S!=null&&S.handle&&(v===null?t.brush.handle.attr("display","none"):t.brush.handle.attr("display",null).attr("transform",(N,M)=>{const P=[v[M],o/2];return`translate(${s?P.reverse():P})`}))}),t.brush.updateResize=function(){f&&clearTimeout(f),f=setTimeout(()=>{const g=this.getSelection();l&&Bl(g.node())&&this.move(g,l.map(n.subX.orgScale()))},0)},t.brush.update=function(){var g;return this.extent()()[1].filter(m=>isNaN(m)).length===0&&((g=a.main)==null||g.select(`.${Ne.brush}`).call(this)),this},t.brush.scale=function(g){const v=e.subchart_size_height;let m=t.getExtent();!m&&g.range?m=[[0,0],[g.range()[1],v]]:Fe(m)&&(m=m.map((S,I)=>[S,I>0?v:I])),s&&m[1].reverse(),this.extent(m),this.update()},t.brush.getSelection=()=>a.main?a.main.select(`.${Ne.brush}`):st([])},initSubchart(){const t=this,{config:e,state:{clip:n,hasAxis:a},$el:{defs:i,svg:s,subchart:o,axis:l}}=t;if(!a)return;const c=e.subchart_show?null:"hidden",f=`${n.id}-subchart`,g=t.getClipPath(f);n.idSubchart=f,t.appendClip(i,f),t.initBrush(),o.main=s.append("g").classed(Ne.subchart,!0).attr("transform",t.getTranslate("context"));const{main:v}=o;v.style("visibility",c),v.append("g").attr("clip-path",g).attr("class",Ne.chart),["bar","line","bubble","candlestick","scatter"].forEach(S=>{const I=In(/^(bubble|scatter)$/.test(S)?"circle":S);if(t.hasType(S)||t.hasTypeOf(I)){const N=v.select(`.${Ne.chart}`),M=Ne[`chart${I}s`];N.select(`.${M}`).empty()&&N.append("g").attr("class",M)}});const m=v.append("g").attr("clip-path",g).attr("class",Ne.brush).call(t.brush);e.subchart_showHandle&&t.addBrushHandle(m),l.subX=v.append("g").attr("class",Ne.axisX).attr("transform",t.getTranslate("subX")).attr("clip-path",e.axis_rotated?"":n.pathXAxis).style("visibility",e.subchart_axis_x_show?c:"hidden")},addBrushHandle(t){const e=this,{config:n}=e,a=n.axis_rotated,i=n.subchart_init_range,s="handle--custom",o=a?["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"];e.brush.handle=t.selectAll(`.${s}`).data(a?[{type:"n"},{type:"s"}]:[{type:"w"},{type:"e"}]).enter().append("path").attr("class",s).attr("cursor",`${a?"ns":"ew"}-resize`).attr("d",l=>o[+/[se]/.test(l.type)]).attr("display",i?null:"none")},updateTargetsForSubchart(t){const e=this,{config:n,state:a,$el:{subchart:{main:i}}}=e;n.subchart_show&&(["bar","line","bubble","candlestick","scatter"].filter(s=>e.hasType(s)||e.hasTypeOf(In(s))).forEach(s=>{const o=/^(bubble|scatter)$/.test(s),l=In(o?"circle":s),c=e.getChartClass(l,!0),f=e.getClass(o?"circles":`${s}s`,!0),g=i.select(`.${Ne[`chart${`${l}s`}`]}`);if(o){const v=g.selectAll(`.${Ne.circles}`).data(t.filter(e[`is${In(s)}Type`].bind(e))).attr("class",f);v.exit().remove(),v.enter().append("g").attr("class",f)}else{const v=g.selectAll(`.${Ne[`chart${l}`]}`).attr("class",c).data(t.filter(e[`is${l}Type`].bind(e))),m=v.enter().append("g").style("opacity","0").attr("class",c).append("g").attr("class",f);v.exit().remove(),s==="line"&&e.hasTypeOf("Area")&&m.append("g").attr("class",e.getClass("areas",!0))}}),i.selectAll(`.${Ne.brush} rect`).attr(n.axis_rotated?"width":"height",n.axis_rotated?a.width2:a.height2))},redrawSubchart(t,e,n){var a;const i=this,{config:s,$el:{subchart:{main:o}},state:l}=i,c=!!e;if(o.style("visibility",s.subchart_show?null:"hidden"),s.subchart_show&&(((a=l.event)==null?void 0:a.type)==="zoom"&&i.brush.update(),t)){const f=s.subchart_init_range;if(!Hl(i)&&i.brush.update(),Object.keys(n.type).forEach(g=>{const v=In(g),m=i[`generateDraw${v}`](n.indices[g],!0);i[`update${v}`](c,!0),i[`redraw${v}`](m,c,!0)}),i.hasType("bubble")||i.hasType("scatter")){const{cx:g}=n.pos,v=i.updateCircleY(!0);i.updateCircle(!0),i.redrawCircle(g,v,c,void 0,!0)}!l.rendered&&f&&(l.domain=f,i.brush.move(i.brush.getSelection(),f.map(i.scale.x)))}},redrawForBrush(t=!0){var e;const n=this,{config:{subchart_onbrush:a,zoom_rescale:i},scale:s,state:o}=n;n.redraw({withTransition:!1,withY:i,withSubchart:!1,withUpdateXDomain:!0,withDimension:!1}),t&&o.rendered&&a.bind(n.api)((e=o.domain)!=null?e:s.x.orgDomain())},transformContext(t,e){const n=this,{$el:{subchart:a},$T:i}=n,s=e!=null&&e.axisSubX?e.axisSubX:i(a.main.select(`.${Ne.axisX}`),t);a.main.attr("transform",n.getTranslate("context")),s.attr("transform",n.getTranslate("subX"))},getExtent(){const t=this,{config:e,scale:n}=t;let a=e.axis_x_extent;if(a){if(he(a))a=a.bind(t.api)(t.getXDomain(t.data.targets),n.subX);else if(t.axis.isTimeSeries()&&a.every(isNaN)){const i=Dn.bind(t);a=a.map(s=>n.subX(i(s)))}}return a}},Vm={initZoom(){const t=this;t.scale.zoom=null,t.generateZoom(),t.initZoomBehaviour()},bindZoomEvent(t=!0){const e=this,{config:n}=e;n.zoom_enabled&&t?!n.subchart_show&&e.bindZoomOnEventRect():t===!1&&(e.api.unzoom(),e.unbindZoomEvent())},generateZoom(){const t=this,{config:e,org:n,scale:a}=t,i=jm().duration(0).on("start",t.onZoomStart.bind(t)).on("zoom",t.onZoom.bind(t)).on("end",t.onZoomEnd.bind(t));i.orgScaleExtent=()=>{const s=e.zoom_extent||[1,10];return[s[0],Math.max(t.getMaxDataCount()/s[1],s[1])]},i.updateScaleExtent=function(){const s=Ir(t.scale.x.orgDomain())/Ir(t.getZoomDomain()),o=this.orgScaleExtent();return this.scaleExtent([o[0]*s,o[1]*s]),this},i.updateTransformScale=(s,o)=>{var l;const c=e.axis_rotated;(l=n.xScale)==null||l.range(a.x.range());const f=s[c?"rescaleY":"rescaleX"](n.xScale||a.x),g=t.trimXDomain(f.domain()),v=e.zoom_rescale;if(f.domain(g,n.xDomain),o){const m=f(a.x.domain()[0]),S=c?s.x:m,I=c?m:s.y;t.$el.eventRect.property("__zoom",_n.translate(S,I).scale(s.k))}t.state.xTickOffset||(t.state.xTickOffset=t.axis.x.tickOffset()),a.zoom=t.getCustomizedXScale(f),t.axis.x.scale(a.zoom),v?(!n.xScale&&(n.xScale=a.x.copy()),a.x.domain(g)):n.xScale&&(a.x.domain(n.xScale.domain()),n.xScale=null)},i.getDomain=()=>{const s=a[a.zoom?"zoom":"subX"].domain();return t.axis.isCategorized()&&(s[1]-=2),s},t.zoom=i},onZoomStart(t){const e=this,{sourceEvent:n}=t;n&&(e.zoom.startEvent=n,e.state.zooming=!0,Ze(e.config.zoom_onzoomstart,e.api,t))},onZoom(t){var e;const n=this,{config:a,scale:i,state:s,org:o}=n,{sourceEvent:l}=t,c=(t==null?void 0:t.transform)===_n;if(!a.zoom_enabled||n.filterTargetsToShow(n.data.targets).length===0||!i.zoom&&(l==null?void 0:l.type.indexOf("touch"))>-1&&(l==null?void 0:l.touches.length)===1)return;t.sourceEvent&&(s.zooming=!0,s.domain=void 0);const f=(l==null?void 0:l.type)==="mousemove",g=(l==null?void 0:l.wheelDelta)<0,{transform:v}=t;!f&&g&&i.x.domain().every((S,I)=>S!==o.xDomain[I])&&i.x.domain(o.xDomain),n.zoom.updateTransformScale(v,a.zoom_type==="wheel"&&l);const m=a.transition_duration>0&&!a.subchart_show&&(s.dragging||c||!t.sourceEvent);n.redraw({withTransition:m,withY:a.zoom_rescale,withSubchart:!1,withEventRect:!1,withDimension:!1}),n.state.cancelClick=f,!c&&Ze(a.zoom_onzoom,n.api,(e=n.state.domain)!=null?e:n.zoom.getDomain())},onZoomEnd(t){var e,n;const a=this,{config:i,state:s}=a;let{startEvent:o}=a.zoom,l=t==null?void 0:t.sourceEvent;const c=(t==null?void 0:t.transform)===_n;(o==null?void 0:o.type.indexOf("touch"))>-1&&(o=o.changedTouches[0],l=(e=l==null?void 0:l.changedTouches)==null?void 0:e[0]),!(i.zoom_type==="drag"&&l&&o.clientX===l.clientX&&o.clientY===l.clientY)&&(s.zooming=!1,a.redrawEventRect(),a.updateZoom(),!c&&(l||s.dragging)&&Ze(i.zoom_onzoomend,a.api,(n=a.state.domain)!=null?n:a.zoom.getDomain()))},updateZoom(t){const e=this,{subX:n,x:a,zoom:i}=e.scale;if(i){const s=i.domain(),o=n.domain(),l=.015,c=e.config.axis_x_inverted?(s[0]>=o[0]||s[0]+l>=o[0])&&(o[1]>=s[1]||o[1]>=s[1]+l):(s[0]<=o[0]||s[0]-l<=o[0])&&(o[1]<=s[1]||o[1]<=s[1]-l);(t||c)&&(e.axis.x.scale(n),a.domain(n.orgDomain()),e.scale.zoom=null)}},updateCurrentZoomTransform(t,e){const n=this,{$el:{eventRect:a},config:i}=n,s=i.axis_rotated,o=[-t(e[0]),0],l=_n.scale(t.range()[1]/(t(e[1])-t(e[0]))).translate(...s?o.reverse():o);a.call(n.zoom.transform,l)},bindZoomOnEventRect(){const t=this,{config:e,$el:{eventRect:n}}=t,a=e.zoom_type==="drag"?t.zoomBehaviour:t.zoom;t.$el.svg.on("wheel",()=>{}),n==null||n.call(a).on("dblclick.zoom",null)},initZoomBehaviour(){const t=this,{config:e,state:n}=t,a=e.axis_rotated;let i=0,s=0,o;const l={axis:a?"y":"x",attr:a?"height":"width",index:a?1:0};t.zoomBehaviour=lc().clickDistance(4).on("start",function(c){n.event=c,t.setDragStatus(!0),t.unselectRect(),o||(o=t.$el.main.append("rect").attr("clip-path",n.clip.path).attr("class",ss.zoomBrush).attr("width",a?n.width:0).attr("height",a?0:n.height)),i=zn(c,this)[l.index],s=i,o.attr(l.axis,i).attr(l.attr,0),t.onZoomStart(c)}).on("drag",function(c){s=zn(c,this)[l.index],o.attr(l.axis,Math.min(i,s)).attr(l.attr,Math.abs(s-i))}).on("end",c=>{const f=t.scale.zoom||t.scale.x;n.event=c,o.attr(l.axis,0).attr(l.attr,0),i>s&&([i,s]=[s,i]),i<0&&(s+=Math.abs(i),i=0),i!==s&&t.api.zoom([i,s].map(g=>f.invert(g))),t.setDragStatus(!1)})},setZoomResetButton(){const t=this,{config:e,$el:n}=t,a=e.zoom_resetButton;a&&e.zoom_type==="drag"&&(n.zoomResetBtn?n.zoomResetBtn.style("display",null):n.zoomResetBtn=t.$el.chart.append("div").classed(Se.button,!0).append("span").on("click",function(){he(a.onclick)&&a.onclick.bind(t.api)(this),t.api.unzoom()}).classed(ss.buttonZoomReset,!0).text(a.text||"Reset Zoom"))},getZoomTransform(){const t=this,{$el:{eventRect:e}}=t;return e!=null&&e.node()?ho(e.node()):{k:1}}},Ym={drag(t){const e=this,{config:n,state:a,$el:{main:i}}=e,s=n.data_selection_grouped,o=n.interaction_enabled&&n.data_selection_isselectable;if(e.hasArcType()||!n.data_selection_enabled||n.zoom_enabled&&!e.zoom.altDomain||!n.data_selection_multiple)return;const[l,c]=a.dragStart||[0,0],[f,g]=t,v=Math.min(l,f),m=Math.max(l,f),S=s?a.margin.top:Math.min(c,g),I=s?a.height:Math.max(c,g);i.select(`.${Ar.dragarea}`).attr("x",v).attr("y",S).attr("width",m-v).attr("height",I-S),i.selectAll(`.${tn.shapes}`).selectAll(`.${tn.shape}`).filter(N=>o==null?void 0:o.bind(e.api)(N)).each(function(N,M){const P=st(this),X=P.classed(ke.SELECTED),W=P.classed(Ar.INCLUDED);let G=!1,k;if(P.classed(pn.circle)){const H=+P.attr("cx")*1,at=+P.attr("cy")*1;k=e.togglePoint,G=v<H&&H<m&&S<at&&at<I}else if(P.classed(Gn.bar)){const{x:H,y:at,width:mt,height:At}=Vl(this);k=e.togglePath,G=!(m<H||H+mt<v)&&!(I<at||at+At<S)}else return;G^W&&(P.classed(Ar.INCLUDED,!W),P.classed(ke.SELECTED,!X),k.call(e,!X,P,N,M))})},dragstart(t){const e=this,{config:n,state:a,$el:{main:i}}=e;e.hasArcType()||!n.data_selection_enabled||(a.dragStart=t,i.select(`.${Se.chart}`).append("rect").attr("class",Ar.dragarea).style("opacity","0.1"),e.setDragStatus(!0))},dragend(){const t=this,{config:e,$el:{main:n},$T:a}=t;t.hasArcType()||!e.data_selection_enabled||(a(n.select(`.${Ar.dragarea}`)).style("opacity","0").remove(),n.selectAll(`.${tn.shape}`).classed(Ar.INCLUDED,!1),t.setDragStatus(!1))}},Hm=Object.defineProperty,Wm=Object.defineProperties,Km=Object.getOwnPropertyDescriptors,uu=Object.getOwnPropertySymbols,Zm=Object.prototype.hasOwnProperty,km=Object.prototype.propertyIsEnumerable,fu=(t,e,n)=>e in t?Hm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Jm=(t,e)=>{for(var n in e||(e={}))Zm.call(e,n)&&fu(t,n,e[n]);if(uu)for(var n of uu(e))km.call(e,n)&&fu(t,n,e[n]);return t},Qm=(t,e)=>Wm(t,Km(e)),_m=Qm(Jm({},Ym),{selectPoint(t,e,n){const a=this,{config:i,$el:{main:s},$T:o}=a,l=i.axis_rotated,c=(l?a.circleY:a.circleX).bind(a),f=(l?a.circleX:a.circleY).bind(a),g=a.pointSelectR.bind(a);Ze(i.data_onselected,a.api,e,t.node()),o(s.select(`.${ke.selectedCircles}${a.getTargetSelectorSuffix(e.id)}`).selectAll(`.${ke.selectedCircle}-${n}`).data([e]).enter().append("circle").attr("class",()=>a.generateClass(ke.selectedCircle,n)).attr("cx",c).attr("cy",f).attr("stroke",a.color).attr("r",v=>a.pointSelectR(v)*1.4)).attr("r",g)},unselectPoint(t,e,n){const a=this,{config:i,$el:{main:s},$T:o}=a;Ze(i.data_onunselected,a.api,e,t==null?void 0:t.node()),o(s.select(`.${ke.selectedCircles}${a.getTargetSelectorSuffix(e.id)}`).selectAll(`.${ke.selectedCircle}-${n}`)).attr("r",0).remove()},togglePoint(t,e,n,a){this[`${t?"":"un"}selectPoint`](e,n,a)},selectPath(t,e){const n=this,{config:a}=n;Ze(a.data_onselected,n.api,e,t.node()),a.interaction_brighten&&t.style("filter","brightness(1.25)")},unselectPath(t,e){const n=this,{config:a}=n;Ze(a.data_onunselected,n.api,e,t.node()),a.interaction_brighten&&t.style("filter",null)},togglePath(t,e,n,a){this[`${t?"":"un"}selectPath`](e,n,a)},getToggle(t,e){const n=this;return t.nodeName==="path"?n.togglePath:n.isStepType(e)?()=>{}:n.togglePoint},toggleShape(t,e,n){var a;const i=this,{config:s,$el:{main:o}}=i;if(s.data_selection_enabled&&s.data_selection_isselectable.bind(i.api)(e)){const l=st(t),c=l.classed(ke.SELECTED),f=i.getToggle(t,e).bind(i);let g;if(!s.data_selection_multiple){const v=(a=i.isPointFocusOnly)==null?void 0:a.call(i);let m=`.${v?ke.selectedCircles:tn.shapes}`;s.data_selection_grouped&&(m+=i.getTargetSelectorSuffix(e.id)),o.selectAll(m).selectAll(v?`.${ke.selectedCircle}`:`.${tn.shape}.${ke.SELECTED}`).classed(ke.SELECTED,!1).each(function(S){const I=st(this);g=I,f(!1,I,S,S.index)})}(!g||g.node()!==l.node())&&(l.classed(ke.SELECTED,!c),f(!c,l,e,n))}}}),qm={data_selection_enabled:!1,data_selection_grouped:!1,data_selection_isselectable:()=>!0,data_selection_multiple:!0,data_selection_draggable:!1,data_onselected:()=>{},data_onunselected:()=>{}},ty={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:()=>{}},ey={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};let du=()=>(gn(Fr.prototype,_m),gn(yr.prototype,Im),Pr.setOptions([qm]),(du=()=>!0)()),hu=()=>(gn(Fr.prototype,Xm),gn(yr.prototype,Cm),Pr.setOptions([ty]),(hu=()=>!0)()),gu=()=>(gn(Fr.prototype,Vm),gn(yr.prototype,Gm),Pr.setOptions([ey]),(gu=()=>!0)());function vu(t,e,n){const{config:a}=t,i=(s,o)=>{const l=ue(o)?o:o===!1?void 0:null;l!==null&&(a[`axis_${s}_${e}`]=l)};Ve(n)&&(Jn(n)?Object.keys(n).forEach(s=>{i(s,n[s])}):(ue(n)||n===!1)&&["y","y2"].forEach(s=>{i(s,n)}),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))}function pu(t,e){const{config:n}=t;return{x:n[`axis_x_${e}`],y:n[`axis_y_${e}`],y2:n[`axis_y2_${e}`]}}var ny={axis:{labels:function(t){const e=this.internal;let n;return t&&(Object.keys(t).forEach(a=>{e.axis.setLabelText(a,t[a])}),e.axis.updateLabels()),["x","y","y2"].forEach(a=>{const i=e.axis.getLabelText(a);i&&(!n&&(n={}),n[a]=i)}),n},min:function(t){const e=this.internal;return Ie(t)||t===!1?vu(e,"min",t):pu(e,"min")},max:function(t){const e=this.internal;return Ie(t)||t===!1?vu(e,"max",t):pu(e,"max")},range:function(t){const{axis:e}=this;if(arguments.length){const{min:n,max:a}=t;Ve(a)&&e.max(a),Ve(n)&&e.min(n)}else return{max:e.max(),min:e.min()}}}},ry={category(t,e){const n=this.internal,{config:a}=n;return arguments.length>1&&(a.axis_x_categories[t]=e,n.redraw()),a.axis_x_categories[t]},categories(t){const e=this.internal,{config:n}=e;if(!t||!Array.isArray(t)){const a=n.axis_x_categories;return Wn(a)?Object.values(e.data.xs)[0]:a}return n.axis_x_categories=t,e.redraw(),n.axis_x_categories}},ay={flow(t){const e=this.internal;let n;(t.json||t.rows||t.columns)&&e.convertData(t,i=>{n=i,a()});function a(){let i,s=0,o=0,l,c;if(e.state.redrawing||!n||!Pa())return;const f=[],g=e.getMaxDataCount(),v=e.convertDataToTargets(n,!0),m=e.axis.isTimeSeries();e.data.targets.forEach(N=>{let M=!1;for(let P=0;P<v.length;P++)if(N.id===v[P].id){M=!0,N.values[N.values.length-1]&&(o=N.values[N.values.length-1].index+1),s=v[P].values.length;for(let X=0;X<s;X++)v[P].values[X].index=o+X,m||(v[P].values[X].x=o+X);N.values=N.values.concat(v[P].values),v.splice(P,1);break}!M&&f.push(N.id)}),e.data.targets.forEach(N=>{for(let M=0;M<f.length;M++)if(N.id===f[M]){o=N.values[N.values.length-1].index+1;for(let P=0;P<s;P++)N.values.push({id:N.id,index:o+P,x:m?e.getOtherTargetX(o+P):o+P,value:null})}}),e.data.targets.length&&v.forEach(N=>{const M=[];for(let P=e.data.targets[0].values[0].index;P<o;P++)M.push({id:N.id,index:P,x:m?e.getOtherTargetX(P):P,value:null});N.values.forEach(P=>{P.index+=o,m||(P.x+=o)}),N.values=M.concat(N.values)}),e.data.targets=e.data.targets.concat(v);const S=e.data.targets[0],I=S.values[0];Ve(t.to)?(s=0,c=m?Dn.call(e,t.to):t.to,S.values.forEach(N=>{N.x<c&&s++})):Ve(t.length)&&(s=t.length),g?g===1&&m&&(l=(S.values[S.values.length-1].x-I.x)/2,i=[new Date(+I.x-l),new Date(+I.x+l)]):(m?l=S.values.length>1?S.values[S.values.length-1].x-I.x:I.x-e.getXDomain(e.data.targets)[0]:l=1,i=[I.x-l,I.x]),i&&e.updateXDomain(null,!0,!0,!1,i),e.updateTargets(e.data.targets),e.redraw({flow:{index:I.index,length:s,duration:Ie(t.duration)?t.duration:e.config.transition_duration,done:t.done,orgDataCount:g},withLegend:!0,withTransition:g>1,withTrimXDomain:!1,withUpdateXAxis:!0})}}};function vo(t,e){const n=this.internal,{config:a}=n,i=a.transition_duration&&Pa(),s=`grid_${e}_lines`;return t&&(a[s]=t,n.updateGrid(),n.redrawGrid(i)),a[s]}function mu(t,e){const n=`grid_${e}_lines`;return vo.bind(this)(this.internal.config[n].concat(t||[]),e)}function yu(t,e){this.internal.removeGridLines(t,e)}const xu=function(t){return vo.bind(this)(t,"x")};gn(xu,{add(t){return mu.bind(this)(t,"x")},remove(t){return yu.bind(this)(t,!0)}});const Tu=function(t){return vo.bind(this)(t,"y")};gn(Tu,{add(t){return mu.bind(this)(t,"y")},remove(t){return yu.bind(this)(t,!1)}});var iy={xgrids:xu,ygrids:Tu},sy={groups(t){const e=this.internal,{config:n}=e;return en(t)||(n.data_groups=t,e.redraw()),n.data_groups}};function $u(t,e=!1){const n=this.internal,{config:a}=n,i=a.transition_duration&&Pa();return t?(a.regions=e?a.regions.concat(t):t,n.updateRegion(),n.redrawRegion(i),e?a.regions:t):a.regions}const Su=function(t){return $u.bind(this)(t)};gn(Su,{add:function(t){return $u.bind(this)(t,!0)},remove:function(t){const e=this.internal,{config:n,$T:a}=e,i=t||{},s=vr(i,"classes",[xa.region]);let o=e.$el.main.select(`.${xa.regions}`).selectAll(s.map(l=>`.${l}`));return a(o).style("opacity","0").remove(),o=n.regions,Object.keys(i).length?(o=o.filter(l=>{let c=!1;return l.class?(l.class.split(" ").forEach(f=>{s.indexOf(f)>=0&&(c=!0)}),!c):!0}),n.regions=o):n.regions=[],o}});var oy={regions:Su},ly={x(t){const e=this.internal,{axis:n,data:a}=e,i=n.isCustomX()&&n.isCategorized();return Fe(t)&&(i?this.categories(t):(e.updateTargetX(a.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))),i?this.categories():a.xs},xs(t){const e=this.internal;return De(t)&&(e.updateTargetXs(e.data.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),e.data.xs}};function cy(t){return t}var Xi=1,Vi=2,po=3,Na=4,Au=1e-6;function uy(t){return"translate("+t+",0)"}function fy(t){return"translate(0,"+t+")"}function dy(t){return e=>+t(e)}function hy(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function gy(){return!this.__axis}function Yi(t,e){var n=[],a=null,i=null,s=6,o=6,l=3,c=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,f=t===Xi||t===Na?-1:1,g=t===Na||t===Vi?"x":"y",v=t===Xi||t===po?uy:fy;function m(S){var I=a==null?e.ticks?e.ticks.apply(e,n):e.domain():a,N=i==null?e.tickFormat?e.tickFormat.apply(e,n):cy:i,M=Math.max(s,0)+l,P=e.range(),X=+P[0]+c,W=+P[P.length-1]+c,G=(e.bandwidth?hy:dy)(e.copy(),c),k=S.selection?S.selection():S,H=k.selectAll(".domain").data([null]),at=k.selectAll(".tick").data(I,e).order(),mt=at.exit(),At=at.enter().append("g").attr("class","tick"),St=at.select("line"),Tt=at.select("text");H=H.merge(H.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),at=at.merge(At),St=St.merge(At.append("line").attr("stroke","currentColor").attr(g+"2",f*s)),Tt=Tt.merge(At.append("text").attr("fill","currentColor").attr(g,f*M).attr("dy",t===Xi?"0em":t===po?"0.71em":"0.32em")),S!==k&&(H=H.transition(S),at=at.transition(S),St=St.transition(S),Tt=Tt.transition(S),mt=mt.transition(S).attr("opacity",Au).attr("transform",function(Gt){return isFinite(Gt=G(Gt))?v(Gt+c):this.getAttribute("transform")}),At.attr("opacity",Au).attr("transform",function(Gt){var xt=this.parentNode.__axis;return v((xt&&isFinite(xt=xt(Gt))?xt:G(Gt))+c)})),mt.remove(),H.attr("d",t===Na||t===Vi?o?"M"+f*o+","+X+"H"+c+"V"+W+"H"+f*o:"M"+c+","+X+"V"+W:o?"M"+X+","+f*o+"V"+c+"H"+W+"V"+f*o:"M"+X+","+c+"H"+W),at.attr("opacity",1).attr("transform",function(Gt){return v(G(Gt)+c)}),St.attr(g+"2",f*s),Tt.attr(g,f*M).text(N),k.filter(gy).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Vi?"start":t===Na?"end":"middle"),k.each(function(){this.__axis=G})}return m.scale=function(S){return arguments.length?(e=S,m):e},m.ticks=function(){return n=Array.from(arguments),m},m.tickArguments=function(S){return arguments.length?(n=S==null?[]:Array.from(S),m):n.slice()},m.tickValues=function(S){return arguments.length?(a=S==null?null:Array.from(S),m):a&&a.slice()},m.tickFormat=function(S){return arguments.length?(i=S,m):i},m.tickSize=function(S){return arguments.length?(s=o=+S,m):s},m.tickSizeInner=function(S){return arguments.length?(s=+S,m):s},m.tickSizeOuter=function(S){return arguments.length?(o=+S,m):o},m.tickPadding=function(S){return arguments.length?(l=+S,m):l},m.offset=function(S){return arguments.length?(c=+S,m):c},m}function vy(t){return Yi(Xi,t)}function py(t){return Yi(Vi,t)}function bu(t){return Yi(po,t)}function Eu(t){return Yi(Na,t)}var my=Object.defineProperty,yy=(t,e,n)=>e in t?my(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,mo=(t,e,n)=>(yy(t,typeof e!="symbol"?e+"":e,n),n);class Ru{constructor(e){mo(this,"owner"),mo(this,"config"),mo(this,"scale");const n=Dr(),{config:a,params:i}=e;this.owner=e,this.config=a,this.scale=n,(a.noTransition||!i.config.transition_duration)&&(a.withoutTransition=!0),a.range=this.scaleExtent((i.orgXScale||n).range())}static getSizeFor1Char(e){const n={w:5.5,h:11.5};return!e.empty()&&e.select("text").text("0").call(a=>{try{const{width:i,height:s}=a.node().getBBox();i&&s&&(n.w=i,n.h=s)}catch(i){}finally{a.text("")}}),this.getSizeFor1Char=()=>n,n}getTickTransformSetter(e){const{config:n}=this,a=e==="x"?i=>`translate(${i+n.tickOffset},0)`:i=>`translate(0,${i})`;return(i,s)=>{i.attr("transform",o=>Ie(o)?a(Math.ceil(s(o))):null)}}scaleExtent(e){const n=e[0],a=e[e.length-1];return n<a?[n,a]:[a,n]}generateTicks(e,n){const{tickStepSize:a}=this.owner.params,[i,s]=e.domain();let o=[];if(n&&a){let l=Math.round(i);for(;l<=s;)o.push(l),l+=a}else if(e.ticks){const{tickArguments:l}=this.config;if(e.type==="log"&&!l){const c=Dr("_log").domain([i>0?i:1,s]).range(e.range());o=c.ticks();for(let f=s.toFixed().length;o.length>15;f--)o=c.ticks(f);o.splice(0,1,i),o.splice(o.length-1,1,s)}else o=e.ticks(...this.config.tickArguments||[]);o=o.map(c=>ze(c)&&ue(c)&&!isNaN(c)&&Math.round(c*10)/10||c)}return o}copyScale(){const e=this.scale.copy();return e.domain().length||e.domain(this.scale.domain()),e.type=this.scale.type,e}textFormatted(e){const n=this.config.tickFormat,a=/\d+\.\d+0{5,}\d$/.test(e)?+String(e).replace(/0+\d$/,""):e,i=n?n(a):a;return Ve(i)?i:""}transitionise(e){const{config:n}=this;let a=e;if(n.withoutTransition)a=e.interrupt();else if(n.transition||!this.owner.params.noTransition)try{a=e.transition(n.transition)}catch(i){}return a}}var xy=Object.defineProperty,Ty=(t,e,n)=>e in t?xy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Fa=(t,e,n)=>(Ty(t,typeof e!="symbol"?e+"":e,n),n);class $y{constructor(e={}){Fa(this,"helper"),Fa(this,"config"),Fa(this,"params"),Fa(this,"g"),Fa(this,"generatedTicks");const n={innerTickSize:6,outerTickSize:e.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:e.noTransition};n.tickLength=Math.max(n.innerTickSize,0)+n.tickPadding,this.config=n,this.params=e,this.helper=new Ru(this)}create(e){const n=this,{config:a,helper:i,params:s}=n,{scale:o}=i,{orient:l}=a,c=this.splitTickText.bind(n),f=/^(left|right)$/.test(l),g=/^(top|bottom)$/.test(l),v=i.getTickTransformSetter(g?"x":"y"),m=v===i.axisX?"y":"x",S=/^(top|left)$/.test(l)?-1:1,I=s.tickTextRotate;this.config.range=o.rangeExtent?o.rangeExtent():i.scaleExtent((s.orgXScale||o).range());const{innerTickSize:N,tickLength:M,range:P}=a,X=s.id,W=X&&/^(x|y|y2)$/.test(X)?s.config[`axis_${X}_tick_text_position`]:{x:0,y:0},G=X==="subX"?"subchart_axis_x":`axis_${X}`,k=s.config[`${G}_show`],H={tick:k?s.config[`${G}_tick_show`]:!1,text:k?s.config[`${G}_tick_text_show`]:!1};let at;e.each(function(){const mt=st(this);let At=this.__chart__||o,St=i.copyScale();at=mt,this.__chart__=St,a.tickOffset=s.isCategory?Math.ceil((St(1)-St(0))/2):0;const Tt=mt.selectAll(".domain").data([0]);if(Tt.enter().append("path").attr("class","domain").merge(Tt).attr("d",()=>{const Gt=a.outerTickSize*S;return g?`M${P[0]},${Gt}V0H${P[1]}V${Gt}`:`M${Gt},${P[0]}H0V${P[1]}H${Gt}`}),H.tick||H.text){const Gt=a.tickValues||i.generateTicks(St,f);n.generatedTicks=Gt;let xt=mt.selectAll(".tick").data(Gt,St);const Q=xt.enter().insert("g",".domain").attr("class","tick"),Ct=xt.exit().remove();xt=Q.merge(xt),H.tick&&Q.append("line"),H.text&&Q.append("text");const ht=Ru.getSizeFor1Char(xt),It=[];let Yt=xt.select("text").selectAll("tspan").data((Wt,ne)=>{const je=s.tickMultiline?c(Wt,St,Gt,f,ht.w):Fe(i.textFormatted(Wt))?i.textFormatted(Wt).concat():[i.textFormatted(Wt)];return It[ne]=je.length,je.map(Oe=>({index:ne,splitted:Oe}))});Yt.exit().remove(),Yt=Yt.enter().append("tspan").merge(Yt).text(Wt=>Wt.splitted),Yt.attr("x",g?0:M*S).attr("dx",(()=>{let Wt=0;return/(top|bottom)/.test(l)&&I&&(Wt=8*Math.sin(Math.PI*(I/180))*(l==="top"?-1:1)),Wt+(W.x||0)})()).attr("dy",(Wt,ne)=>{const je=".71em";let Oe=0;return l!=="top"&&(Oe=ht.h,ne===0&&(Oe=f?-((It[Wt.index]-1)*(ht.h/2)-3):W.y===0?je:0)),ue(Oe)&&W.y?Oe+W.y:Oe||je});const Xt=xt.select("line"),Zt=xt.select("text");if(Q.select("line").attr(`${m}2`,N*S),Q.select("text").attr(m,M*S),n.setTickLineTextPosition(Xt,Zt),s.tickTitle){const Wt=Zt.select("title");(Wt.empty()?Zt.append("title"):Wt).text(ne=>s.tickTitle[ne])}if(St.bandwidth){const Wt=St,ne=Wt.bandwidth()/2;At=je=>Wt(je)+ne,St=At}else At.bandwidth?At=St:v(Ct,St);xt=s.owner.state.flowing?i.transitionise(xt):s.owner.$T(xt),v(Q,At),v(xt.style("opacity",null),St)}}),this.g=at}getGeneratedTicks(e){var n;const a=((n=this.generatedTicks)==null?void 0:n.length)-1;let i=this.generatedTicks;if(a>e){const s=Math.round(a/e+.1);i=this.generatedTicks.map((o,l)=>l%s===0?o:null).filter(o=>o!==null).splice(0,e)}return i}getTickXY(){const{config:e}=this,n={x:0,y:0};return this.params.isCategory&&(n.x=e.tickCentered?0:e.tickOffset,n.y=e.tickCentered?e.tickOffset:0),n}getTickSize(e){const{scale:n}=this.helper,{config:a}=this,{innerTickSize:i,range:s}=a,o=n(e)+(a.tickCentered?0:a.tickOffset);return s[0]<o&&o<s[1]?i:0}setTickLineTextPosition(e,n){const a=this.getTickXY(),{innerTickSize:i,orient:s,tickLength:o,tickOffset:l}=this.config,c=this.params.tickTextRotate,f=I=>{const N=["start","end"];return s==="top"&&N.reverse(),I?N[I>0?0:1]:"middle"},g=I=>I?`rotate(${I})`:null,v=I=>{const N=I/(s==="bottom"?15:23);return I?11.5-2.5*N*(I>0?1:-1):o},{config:{axis_rotated:m,axis_x_tick_text_inner:S}}=this.params.owner;switch(s){case"bottom":e.attr("x1",a.x).attr("x2",a.x).attr("y2",this.getTickSize.bind(this)),n.attr("x",0).attr("y",v(c)).style("text-anchor",f(c)).style("text-anchor",(I,N,{length:M})=>!m&&N===0&&(S===!0||S.first)?"start":!m&&N===M-1&&(S===!0||S.last)?"end":f(c)).attr("transform",g(c));break;case"top":e.attr("x2",0).attr("y2",-i),n.attr("x",0).attr("y",-v(c)*2).style("text-anchor",f(c)).attr("transform",g(c));break;case"left":e.attr("x2",-i).attr("y1",a.y).attr("y2",a.y),n.attr("x",-o).attr("y",l).style("text-anchor","end");break;case"right":e.attr("x2",i).attr("y2",0),n.attr("x",o).attr("y",0).style("text-anchor","start")}}splitTickText(e,n,a,i,s){const{params:o}=this,l=this.helper.textFormatted(e),c=ze(l)&&l.indexOf(`
|
|
55
|
+
`)>-1?l.split(`
|
|
56
|
+
`):[];if(c.length)return c;if(Fe(l))return l;let f=o.tickWidth;(!f||f<=0)&&(f=i?95:o.isCategory?Math.ceil(o.isInverted?n(a[0])-n(a[1]):n(a[1])-n(a[0]))-12:110);function g(v,m){let S,I,N;for(let M=1;M<m.length;M++)if(m.charAt(M)===" "&&(I=M),S=m.substr(0,M+1),N=s*S.length,f<N)return g(v.concat(m.substr(0,I||M)),m.slice(I?I+1:M));return v.concat(m)}return g(c,String(l))}scale(e){return arguments.length?(this.helper.scale=e,this):this.helper.scale}orient(e){return arguments.length?(this.config.orient=e in{top:1,right:1,bottom:1,left:1}?String(e):"bottom",this):this.config.orient}tickFormat(e){const{config:n}=this;return arguments.length?(n.tickFormat=e,this):n.tickFormat}tickCentered(e){const{config:n}=this;return arguments.length?(n.tickCentered=e,this):n.tickCentered}tickOffset(){return this.config.tickOffset}tickInterval(e){var n;const{outerTickSize:a,tickOffset:i,tickValues:s}=this.config;let o;if(this.params.isCategory)o=i*2;else{const l=(n=this.params.owner.scale.zoom)!=null?n:this.helper.scale;o=(this.g.select("path.domain").node().getTotalLength()-a*2)/(e||this.g.selectAll("line").size());const f=s?s.map((g,v,m)=>{const S=v+1;return S<m.length?l(m[S])-l(g):null}).filter(Boolean):[];o=Math.min(...f,o)}return o===1/0?0:o}ticks(...e){const{config:n}=this;return e.length?(n.tickArguments=Cr(e),this):n.tickArguments}tickCulling(e){const{config:n}=this;return arguments.length?(n.tickCulling=e,this):n.tickCulling}tickValues(e){const{config:n}=this;if(he(e))n.tickValues=()=>e(this.helper.scale.domain());else{if(!arguments.length)return n.tickValues;n.tickValues=e}return this}setTransition(e){return this.config.transition=e,this}}var Sy=Object.defineProperty,Ay=(t,e,n)=>e in t?Sy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ur=(t,e,n)=>(Ay(t,typeof e!="symbol"?e+"":e,n),n),by={getAxisInstance:function(){return this.axis||new Ey(this)}};class Ey{constructor(e){ur(this,"owner"),ur(this,"x"),ur(this,"subX"),ur(this,"y"),ur(this,"y2"),ur(this,"axesList",{}),ur(this,"tick",{x:null,y:null,y2:null}),ur(this,"xs",[]),ur(this,"orient",{x:"bottom",y:"left",y2:"right",subX:"bottom"}),this.owner=e,this.setOrient()}getAxisClassName(e){return`${on.axis} ${on[`axis${In(e)}`]}`}isHorizontal(e,n){const a=e.config.axis_rotated;return n?a:!a}isCategorized(){const{config:e,state:n}=this.owner;return e.axis_x_type.indexOf("category")>=0||n.hasRadar}isCustomX(){const{config:e}=this.owner;return!this.isTimeSeries()&&(e.data_x||nn(e.data_xs))}isTimeSeries(e="x"){return this.owner.config[`axis_${e}_type`]==="timeseries"}isLog(e="x"){return this.owner.config[`axis_${e}_type`]==="log"}isTimeSeriesY(){return this.isTimeSeries("y")}getAxisType(e="x"){let n="linear";return this.isTimeSeries(e)?n=this.owner.config.axis_x_localtime?"time":"utc":this.isLog(e)&&(n="log"),n}init(){const e=this.owner,{config:n,$el:{main:a,axis:i},state:{clip:s}}=e,o=n.axis_rotated,l=["x","y"];n.axis_y2_show&&l.push("y2"),l.forEach(c=>{const f=this.getAxisClassName(c),g=on[`axis${c.toUpperCase()}Label`];i[c]=a.append("g").attr("class",f).attr("clip-path",()=>{let v=null;return c==="x"?v=s.pathXAxis:c==="y"&&(v=s.pathYAxis),v}).attr("transform",e.getTranslate(c)).style("visibility",n[`axis_${c}_show`]?null:"hidden"),i[c].append("text").attr("class",g).attr("transform",["rotate(-90)",null][c==="x"?+!o:+o]).style("text-anchor",()=>this.textAnchorForAxisLabel(c)),this.generateAxes(c)}),n.axis_tooltip&&this.setAxisTooltip()}setOrient(){const e=this.owner,{axis_rotated:n,axis_y_inner:a,axis_y2_inner:i}=e.config;this.orient={x:n?"left":"bottom",y:n?a?"top":"bottom":a?"right":"left",y2:n?i?"bottom":"top":i?"left":"right",subX:n?"left":"bottom"}}generateAxes(e){const n=this.owner,{config:a}=n,i=[],s=a[`axis_${e}_axes`],o=a.axis_rotated;let l;e==="x"?l=o?Eu:bu:e==="y"?l=o?bu:Eu:e==="y2"&&(l=o?vy:py),s.length&&s.forEach(c=>{const f=c.tick||{},g=n.scale[e].copy();c.domain&&g.domain(c.domain),i.push(l(g).ticks(f.count).tickFormat(he(f.format)?f.format.bind(n.api):v=>v).tickValues(f.values).tickSizeOuter(f.outer===!1?0:6))}),this.axesList[e]=i}updateAxes(){const e=this.owner,{config:n,$el:{main:a},$T:i}=e;Object.keys(this.axesList).forEach(s=>{const o=n[`axis_${s}_axes`],l=e.scale[s].copy(),c=l.range();this.axesList[s].forEach((f,g)=>{const v=f.scale().range();c.every((I,N)=>I===v[N])||f.scale().range(c);const m=`${this.getAxisClassName(s)}-${g+1}`;let S=a.select(`.${m.replace(/\s/,".")}`);S.empty()?S=a.append("g").attr("class",m).style("visibility",n[`axis_${s}_show`]?null:"hidden").call(f):(o[g].domain&&l.domain(o[g].domain),i(S).call(f.scale(l))),S.attr("transform",e.getTranslate(s,g+1))})})}setAxis(e,n,a,i){const s=this.owner;e!=="subX"&&(this.tick[e]=this.getTickValues(e)),this[e]=this.getAxis(e,n,a,e==="x"&&(s.scale.zoom||s.config.subchart_show||s.state.resizing)?!0:i)}getAxis(e,n,a,i,s){const o=this.owner,{config:l}=o,c=/^(x|subX)$/.test(e),f=c?"x":e,g=c&&this.isCategorized(),v=this.orient[e],m=s?0:o.getAxisTickRotate(f);let S;if(c)S=e==="subX"?o.format.subXAxisTick:o.format.xAxisTick;else{const X=l[`axis_${e}_tick_format`];he(X)&&(S=X.bind(o.api))}let I=this.tick[f];const N=_r({outerTick:a,noTransition:i,config:l,id:e,tickTextRotate:m,owner:o},c&&{isCategory:g,isInverted:l.axis_x_inverted,tickMultiline:l.axis_x_tick_multiline,tickWidth:l.axis_x_tick_width,tickTitle:g&&l.axis_x_tick_tooltip&&o.api.categories(),orgXScale:o.scale.x});c||(N.tickStepSize=l[`axis_${f}_tick_stepSize`]);const M=new $y(N).scale(c&&o.scale.zoom||n).orient(v);if(c&&this.isTimeSeries()&&I&&!he(I)){const X=Dn.bind(o);I=I.map(W=>X(W))}else!c&&this.isTimeSeriesY()&&(M.ticks(l.axis_y_tick_time_value),I=null);I&&M.tickValues(I),M.tickFormat(S||!c&&o.isStackNormalized()&&(X=>`${X}%`)),g&&(M.tickCentered(l.axis_x_tick_centered),Wn(l.axis_x_tick_culling)&&(l.axis_x_tick_culling=!1));const P=l[`axis_${f}_tick_count`];return P&&M.ticks(P),M}updateXAxisTickValues(e,n){var a;const i=this.owner,{config:s}=i,o=s.axis_x_tick_fit;let l=s.axis_x_tick_count,c;return(o||l&&o)&&(c=i.mapTargetsToUniqueXs(e),this.isCategorized()&&l>c.length&&(l=c.length),c=this.generateTickValues(c,l,this.isTimeSeries())),n?n.tickValues(c):this.x&&(this.x.tickValues(c),(a=this.subX)==null||a.tickValues(c)),c}getId(e){const{config:n,scale:a}=this.owner;let i=n.data_axes[e];return(!i||!a[i])&&(i="y"),i}getXAxisTickFormat(e){const n=this.owner,{config:a,format:i}=n,s=e&&a.subchart_axis_x_tick_format||a.axis_x_tick_format,o=this.isTimeSeries(),l=this.isCategorized();let c;return s?he(s)?c=s.bind(n.api):o&&(c=f=>f?i.axisTime(s)(f):""):c=o?i.defaultAxisTime:l?n.categoryName:f=>f<0?f.toFixed(0):f,he(c)?f=>c.apply(n,l?[f,n.categoryName(f)]:[f]):c}getTickValues(e){const n=this.owner,a=n.config[`axis_${e}_tick_values`],i=n[`${e}Axis`];return(he(a)?a.call(n.api):a)||(i?i.tickValues():void 0)}getLabelOptionByAxisId(e){return this.owner.config[`axis_${e}_label`]}getLabelText(e){const n=this.getLabelOptionByAxisId(e);return ze(n)?n:n?n.text:null}setLabelText(e,n){const a=this.owner,{config:i}=a,s=this.getLabelOptionByAxisId(e);ze(s)?i[`axis_${e}_label`]=n:s&&(s.text=n)}getLabelPosition(e,n){const a=this.owner.config.axis_rotated,i=this.getLabelOptionByAxisId(e),s=Jn(i)&&i.position?i.position:n[+!a],o=l=>!!~s.indexOf(l);return{isInner:o("inner"),isOuter:o("outer"),isLeft:o("left"),isCenter:o("center"),isRight:o("right"),isTop:o("top"),isMiddle:o("middle"),isBottom:o("bottom")}}getAxisLabelPosition(e){return this.getLabelPosition(e,e==="x"?["inner-top","inner-right"]:["inner-right","inner-top"])}getLabelPositionById(e){return this.getAxisLabelPosition(e)}xForAxisLabel(e){const n=this.owner,{state:{width:a,height:i}}=n,s=this.getAxisLabelPosition(e);let o=s.isMiddle?-i/2:0;return this.isHorizontal(n,e!=="x")?o=s.isLeft?0:s.isCenter?a/2:a:s.isBottom&&(o=-i),o}dxForAxisLabel(e){const n=this.owner,a=this.getAxisLabelPosition(e);let i=a.isBottom?"0.5em":"0";return this.isHorizontal(n,e!=="x")?i=a.isLeft?"0.5em":a.isRight?"-0.5em":"0":a.isTop&&(i="-0.5em"),i}textAnchorForAxisLabel(e){const n=this.owner,a=this.getAxisLabelPosition(e);let i=a.isMiddle?"middle":"end";return this.isHorizontal(n,e!=="x")?i=a.isLeft?"start":a.isCenter?"middle":"end":a.isBottom&&(i="start"),i}dyForAxisLabel(e){const n=this.owner,{config:a}=n,i=a.axis_rotated,s=this.getAxisLabelPosition(e).isInner,o=a[`axis_${e}_tick_rotate`]?n.getHorizontalAxisHeight(e):0,{width:l}=this.getMaxTickSize(e);let c;if(e==="x"){const f=a.axis_x_height;i?c=s?"1.2em":-25-l:s?c="-0.5em":f?c=f-10:o?c=o-10:c="3em"}else c={y:["-0.5em",10,"3em","1.2em",10],y2:["1.2em",-20,"-2.2em","-0.5em",15]}[e],i?s?c=c[0]:o?c=o*(e==="y2"?-1:1)-c[1]:c=c[2]:c=s?c[3]:(c[4]+(a[`axis_${e}_inner`]?0:l+c[4]))*(e==="y"?-1:1);return c}getMaxTickSize(e,n){const a=this.owner,{config:i,state:{current:s},$el:{svg:o,chart:l}}=a,c=s.maxTickSize[e],f=`axis_${e}`,g={width:0,height:0};if(n||!i[`${f}_show`]||c.width>0&&a.filterTargetsToShow().length===0)return c;if(o){const v=/^y2?$/.test(e),m=a.filterTargetsToShow(a.data.targets),S=a.scale[e].copy().domain(a[`get${v?"Y":"X"}Domain`](m,e)),I=S.domain(),N=I[0]===I[1]&&I.every(H=>H>0),M=Fe(c.domain)&&c.domain[0]===c.domain[1]&&c.domain.every(H=>H>0);if(N||M)return c.size;c.domain=I,v||c.ticks.splice(0);const P=this.getAxis(e,S,!1,!1,!0),X=i[`${f}_tick_rotate`],W=i[`${f}_tick_count`];!i[`${f}_tick_values`]&&W&&P.tickValues(this.generateTickValues(I,W,v?this.isTimeSeriesY():this.isTimeSeries())),!v&&this.updateXAxisTickValues(m,P);const k=l.append("svg").style("visibility","hidden").style("position","fixed").style("top","0").style("left","0");P.create(k),k.selectAll("text").attr("transform",ue(X)?`rotate(${X})`:null).each(function(H,at){const{width:mt,height:At}=this.getBoundingClientRect();g.width=Math.max(g.width,mt),g.height=Math.max(g.height,At),v||(c.ticks[at]=mt)}),k.remove()}return Object.keys(g).forEach(v=>{g[v]>0&&(c[v]=g[v])}),c}getXAxisTickTextY2Overflow(e){const n=this.owner,{axis:a,config:i,state:{current:s,isLegendRight:o,legendItemWidth:l}}=n,c=n.getAxisTickRotate("x"),f=c>0&&c<90;if((a.isCategorized()||a.isTimeSeries())&&i.axis_x_tick_fit&&(!i.axis_x_tick_culling||Wn(i.axis_x_tick_culling))&&!i.axis_x_tick_multiline&&f){const g=i.axis_y2_show&&s.maxTickSize.y2.width||0,v=o&&l||0,m=s.width-n.getCurrentPaddingByDirection("left"),S=this.getXAxisTickMaxOverflow(c,m-e)-g-v,I=Math.max(0,S)+e;return Math.min(I,m/2)}return 0}getXAxisTickMaxOverflow(e,n){const a=this.owner,{axis:i,config:s,state:o}=a,l=i.isTimeSeries(),c=o.current.maxTickSize.x.ticks,f=c.length,{left:g,right:v}=o.axis.x.padding;let m=0;const S=f-(l&&s.axis_x_tick_fit?.5:0);for(let M=0;M<f;M++){const P=M+1,X=Math.cos(Math.PI*e/180)*c[M],W=P-(l?1:.5)+g;if(W<=0)continue;const k=(n-X)/W,H=S-P,at=v*k,mt=H*k+at,At=X-k/2-mt;m=Math.max(m,At)}const I=a.filterTargetsToShow(a.data.targets);let N=0;if(!l&&s.axis_x_tick_count<=I.length&&I[0].values.length){const M=Dr(a.axis.getAxisType("x"),0,n-m).domain([g*-1,a.getXDomainMax(a.data.targets)+1+v]);N=Math.ceil((M(1)-M(0))/2)}return m+N}updateLabels(e){const n=this.owner,{$el:{main:a},$T:i}=n,s={x:a.select(`.${on.axisX} .${on.axisXLabel}`),y:a.select(`.${on.axisY} .${on.axisYLabel}`),y2:a.select(`.${on.axisY2} .${on.axisY2Label}`)};Object.keys(s).filter(o=>!s[o].empty()).forEach(o=>{const l=s[o];i(l,e).attr("x",()=>this.xForAxisLabel(o)).attr("dx",()=>this.dxForAxisLabel(o)).attr("dy",()=>this.dyForAxisLabel(o)).text(()=>this.getLabelText(o))})}getPadding(e,n,a,i){const s=ue(e)?e:e[n];return Ie(s)?this.owner.convertPixelToScale(/(bottom|top)/.test(n)?"y":"x",s,i):a}generateTickValues(e,n,a){let i=e;if(n){const s=he(n)?n():n;if(s===1)i=[e[0]];else if(s===2)i=[e[0],e[e.length-1]];else if(s>2){const o=this.isCategorized(),l=s-2,c=e[0],f=e[e.length-1],g=(f-c)/(l+1);let v;i=[c];for(let m=0;m<l;m++)v=+c+g*(m+1),i.push(a?new Date(v):o?Math.round(v):v);i.push(f)}}return a||(i=i.sort((s,o)=>s-o)),i}generateTransitions(e){const n=this.owner,{$el:{axis:a},$T:i}=n,[s,o,l,c]=["x","y","y2","subX"].map(f=>i(a[f],e));return{axisX:s,axisY:o,axisY2:l,axisSubX:c}}redraw(e,n,a){const i=this.owner,{config:s,$el:o}=i,l=n?"0":null;["x","y","y2","subX"].forEach(c=>{const f=this[c],g=o.axis[c];f&&g&&(!a&&!s.transition_duration&&(f.config.withoutTransition=!0),g.style("opacity",l),f.create(e[`axis${In(c)}`]))}),this.updateAxes()}redrawAxis(e,n,a,i,s){var o,l,c;const f=this.owner,{config:g,scale:v,$el:m}=f,S=!!v.zoom;let I;!S&&this.isCategorized()&&e.length===0&&v.x.domain([0,m.axis.x.selectAll(".tick").size()]),v.x&&e.length?(!S&&f.updateXDomain(e,n.UpdateXDomain,n.UpdateOrgXDomain,n.TrimXDomain),g.axis_x_tick_values||this.updateXAxisTickValues(e)):this.x&&(this.x.tickValues([]),(o=this.subX)==null||o.tickValues([])),g.zoom_rescale&&!i&&(I=v.x.orgDomain()),["y","y2"].forEach(N=>{const M=`axis_${N}_`,P=v[N];if(P){const X=g[`${M}tick_values`],W=g[`${M}tick_count`];if(P.domain(f.getYDomain(e,N,I)),!X&&W){const G=f.axis[N],k=P.domain();G.tickValues(this.generateTickValues(k,k.every(H=>H===0)?1:W,this.isTimeSeriesY()))}}}),this.redraw(a,f.hasArcType(),s),this.updateLabels(n.Transition),(n.UpdateXDomain||n.UpdateXAxis||n.Y)&&e.length&&this.setCulling(),n.Y&&((l=v.subY)==null||l.domain(f.getYDomain(e,"y")),(c=v.subY2)==null||c.domain(f.getYDomain(e,"y2")))}setCulling(){const e=this.owner,{config:n,state:{clip:a,current:i},$el:s}=e;["subX","x","y","y2"].forEach(o=>{const l=s.axis[o],f=`axis_${o==="subX"?"x":o}_tick_culling`,g=n[f];if(l&&g){const v=l.selectAll(".tick"),m=qr(v.data()),S=m.length,I=n[`${f}_max`],N=n[`${f}_lines`];let M;if(S){for(let P=1;P<S;P++)if(S/P<I){M=P;break}v.each(function(P){const X=N?this.querySelector("text"):this;X&&(X.style.display=m.indexOf(P)%M?"none":null)})}else v.style("display",null);if(o==="x"){const P=i.maxTickSize.x.clipPath?a.pathXAxisTickTexts:null;s.svg.selectAll(`.${on.axisX} .tick text`).attr("clip-path",P)}}})}setAxisTooltip(){var e;const n=this.owner,{config:{axis_rotated:a,axis_tooltip:i},$el:{axis:s,axisTooltip:o}}=n,l=(e=i.backgroundColor)!=null?e:"black";n.generateTextBGColorFilter(l,{x:-.15,y:-.2,width:1.3,height:1.3}),["x","y","y2"].forEach(c=>{var f,g,v;if(o[c]=(f=s[c])==null?void 0:f.append("text").classed(on[`axis${c.toUpperCase()}Tooltip`],!0).attr("filter",n.updateTextBGColor({id:c},l)),a){const m=c==="x"?"x":"y",S=c==="y"?"1.15em":c==="x"?"-0.3em":"-0.4em";(g=o[c])==null||g.attr(m,S).attr(`d${c==="x"?"y":"x"}`,c==="x"?"0.4em":"-1.3em").style("text-anchor",c==="x"?"end":null)}else{const m=c==="x"?"y":"x",S=c==="x"?"1.15em":`${c==="y"?"-":""}0.4em`;(v=o[c])==null||v.attr(m,S).attr(`d${c==="x"?"x":"y"}`,c==="x"?"-1em":"0.3em").style("text-anchor",c==="y"?"end":null)}})}}var Ry={initEventRect(){this.$el.main.select(`.${Se.chart}`).append("g").attr("class",Xn.eventRects).style("fill-opacity","0")},redrawEventRect(){var t;const e=this,{config:n,state:a,$el:i}=e,s=e.isMultipleX(),o=n.axis_x_inverted;if(i.eventRect)e.updateEventRect(i.eventRect,!0);else if(e.data.targets.length){const c=e.$el.main.select(`.${Xn.eventRects}`).style("cursor",n.zoom_enabled&&n.zoom_type!=="drag"?n.axis_rotated?"ns-resize":"ew-resize":null).classed(Xn.eventRectsMultiple,s).classed(Xn.eventRectsSingle,!s).selectAll(`.${Xn.eventRect}`).data([0]).enter().append("rect");e.updateEventRect(c),e.updateEventType(c),c.call(e.getDraggableSelection()),i.eventRect=c,e.state.inputType==="touch"&&!i.svg.on("touchstart.eventRect")&&!e.hasArcType()&&e.bindTouchOnEventRect(),a.rendered&&e.updateEventRect(i.eventRect,!0)}if(!s){const l=e.getMaxDataCountTarget();(!n.data_xSort||o)&&l.sort((c,f)=>o?f.x-c.x:c.x-f.x),e.updateDataIndexByX(l),e.updateXs(l),(t=e.updatePointClass)==null||t.call(e,!0),a.eventReceiver.data=l}e.updateEventRectData()},bindTouchOnEventRect(){const t=this,{config:e,state:n,$el:{eventRect:a,svg:i}}=t,s=m=>{if(t.isMultipleX())t.selectRectForMultipleXs(m);else{const S=t.getDataIndexFromEvent(n.event);t.callOverOutForTouch(S),S===-1?t.unselectRect():t.selectRectForSingle(m,S)}},o=()=>{t.unselectRect(),t.callOverOutForTouch()},l=e.interaction_inputType_touch.preventDefault,c=Os(l)&&l||!1,f=!isNaN(l)&&l||null;let g;const v=m=>{const S=m.type,N=m.changedTouches[0][`client${e.axis_rotated?"Y":"X"}`];S==="touchstart"?c?m.preventDefault():f!==null&&(g=N):S==="touchmove"&&(c||g===!0||f!==null&&Math.abs(g-N)>=f)&&(g=!0,m.preventDefault())};a.on("touchstart",m=>{n.event=m,t.updateEventRect()}).on("touchstart.eventRect touchmove.eventRect",m=>{if(n.event=m,!a.empty()&&a.classed(Xn.eventRect)){if(n.dragging||n.flowing||t.hasArcType()||m.touches.length>1)return;v(m),s(a.node())}else o()},!0).on("touchend.eventRect",m=>{n.event=m,!a.empty()&&a.classed(Xn.eventRect)&&(t.hasArcType()||!t.toggleShape||n.cancelClick)&&n.cancelClick&&(n.cancelClick=!1)},!0),i.on("touchstart",m=>{n.event=m;const{target:S}=m;S&&S!==a.node()&&o()})},updateEventRect(t,e=!1){const n=this,{state:a,$el:i}=n,{eventReceiver:s,width:o,height:l,rendered:c,resizing:f}=a,g=t||i.eventRect,v=()=>{if(s){const m=Wl(i.chart.node());s.rect=g.node().getBoundingClientRect().toJSON(),s.rect.top+=m.y,s.rect.left+=m.x}};(!c||f||e)&&(g.attr("x",0).attr("y",0).attr("width",o).attr("height",l),(!c||e)&&g.classed(Xn.eventRect,!0)),v()},updateEventType(t){const e=this,n=Os(t),a=n?e.$el.eventRect:t,i=n?t!==(a==null?void 0:a.datum().multipleX):!1;a&&(i&&(a==null||a.on("mouseover mousemove mouseout click",null)),e.isMultipleX()?e.generateEventRectsForMultipleXs(a):e.generateEventRectsForSingleX(a))},updateEventRectData(){const t=this,{config:e,scale:n,state:a}=t,i=n.zoom||n.x,s=e.axis_rotated,o=t.isMultipleX();let l,c,f,g;if(t.updateEventType(o),o)l=0,c=0,f=a.width,g=a.height;else{let S,I;if(t.axis.isCategorized())S=t.getEventRectWidth(),I=N=>i(N.x)-S/2;else{const N=({index:M})=>({prev:t.getPrevX(M),next:t.getNextX(M)});S=M=>{const P=N(M),X=i.domain();let W;return P.prev===null&&P.next===null?W=s?a.height:a.width:P.prev===null?W=(i(P.next)+i(M.x))/2:P.next===null?W=i(X[1])-(i(P.prev)+i(M.x))/2:(Object.keys(P).forEach((G,k)=>{var H;P[G]=(H=P[G])!=null?H:X[k]}),W=Math.max(0,(i(P.next)-i(P.prev))/2)),W},I=M=>{const P=N(M);let X;return P.prev===null&&P.next===null?X=0:P.prev===null?X=i(i.domain()[0]):X=(i(M.x)+i(P.prev))/2,X}}l=s?0:I,c=s?I:0,f=s?a.width:S,g=s?S:a.height}const{eventReceiver:v}=a,m=(S,I)=>he(S)?S(I):S;v.coords.splice(v.data.length),v.data.forEach((S,I)=>{v.coords[I]={x:m(l,S),y:m(c,S),w:m(f,S),h:m(g,S)}})},selectRectForSingle(t,e){var n,a;const i=this,{config:s,$el:{main:o,circle:l}}=i,c=s.data_selection_enabled,f=s.data_selection_grouped,g=s.data_selection_isselectable,v=s.tooltip_grouped,m=i.getAllValuesOnIndex(e);if(v&&(i.showTooltip(m,t),(n=i.showGridFocus)==null||n.call(i,m),!c||f))return;!l&&o.selectAll(`.${Se.EXPANDED}:not(.${tn.shape}-${e})`).classed(Se.EXPANDED,!1);const S=o.selectAll(`.${tn.shape}-${e}`).classed(Se.EXPANDED,!0).style("cursor",g?"pointer":null).filter(function(I){return i.isWithinShape(this,I)});S.empty()&&!v&&((a=i.hideGridFocus)==null||a.call(i),i.hideTooltip(),!f&&i.setExpand(e)),S.call(I=>{var N,M;const P=I.data();c&&(f||g!=null&&g.bind(i.api)(P))&&(t.style.cursor="pointer"),v||(i.showTooltip(P,t),(N=i.showGridFocus)==null||N.call(i,P),(M=i.unexpandCircles)==null||M.call(i),I.each(X=>i.setExpand(e,X.id)))})},selectRectForMultipleXs(t,e=!0){const n=this,{config:a,state:i}=n,s=n.filterTargetsToShow(n.data.targets);if(i.dragging||n.hasArcType(s))return;const o=zn(i.event,t),l=n.findClosestFromTargets(s,o);if(e&&i.mouseover&&(!l||l.id!==i.mouseover.id)&&(a.data_onout.call(n.api,i.mouseover),i.mouseover=void 0),!l){n.unselectRect();return}const f=(n.isBubbleType(l)||n.isScatterType(l)||!a.tooltip_grouped?[l]:n.filterByX(s,l.x)).map(v=>n.addName(v));n.showTooltip(f,t),n.setExpand(l.index,l.id,!0),n.showGridFocus(f);const g=n.dist(l,o);(n.isBarType(l.id)||g<n.getPointSensitivity(l))&&(n.$el.svg.select(`.${Xn.eventRect}`).style("cursor","pointer"),e&&!i.mouseover&&(a.data_onover.call(n.api,l),i.mouseover=l))},unselectRect(){const t=this,{$el:{circle:e,tooltip:n}}=t;t.$el.svg.select(`.${Xn.eventRect}`).style("cursor",null),t.hideGridFocus(),n&&(t.hideTooltip(),t._handleLinkedCharts(!1)),e&&!t.isPointFocusOnly()&&t.unexpandCircles(),t.expandBarTypeShapes(!1)},generateEventRectsForSingleX(t){const e=this,{config:n,state:a}=e,{eventReceiver:i}=a,s=t.style("cursor",n.data_selection_enabled&&n.data_selection_grouped?"pointer":null).on("click",function(o){a.event=o;const{currentIdx:l,data:c}=i,f=c[l===-1?e.getDataIndexFromEvent(o):l];e.clickHandlerForSingleX.bind(this)(f,e)}).datum({multipleX:!1});if(a.inputType==="mouse"){const o=l=>{const c=l?e.getDataIndexFromEvent(l):i.currentIdx;return c>-1?i.data[c]:null};s.on("mouseover",l=>{a.event=l,e.updateEventRect(),Object.values(e.$el.axisTooltip).forEach(c=>c==null?void 0:c.style("display",null))}).on("mousemove",function(l){const c=o(l);if(a.event=l,!c)return;let{index:f}=c;const g=n.line_step_type;if(n.line_step_tooltipMatch&&e.hasType("step")&&/^step\-(before|after)$/.test(g)){const m=e.scale.zoom||e.scale.x,S=e.axis.xs[f],I=m.invert(zn(l,this)[0]);g==="step-after"&&I<S?f-=1:g==="step-before"&&I>S&&(f+=1)}e.showAxisGridFocus();const v=n.tooltip_grouped&&f===i.currentIdx;if(a.dragging||a.flowing||e.hasArcType()||v){n.tooltip_show&&v&&e.setTooltipPosition();return}f!==i.currentIdx&&(e.setOverOut(!1,i.currentIdx),i.currentIdx=f),f===-1?e.unselectRect():e.selectRectForSingle(this,f),e.setOverOut(f!==-1,f)}).on("mouseout",l=>{a.event=l,!(!n||e.hasArcType()||i.currentIdx===-1)&&(e.hideAxisGridFocus(),e.unselectRect(),e.setOverOut(!1,i.currentIdx),i.currentIdx=-1)})}return s},clickHandlerForSingleX(t,e){const n=e,{config:a,state:i,$el:{main:s}}=n;if(!t||n.hasArcType()||i.cancelClick){i.cancelClick&&(i.cancelClick=!1);return}const{index:o}=t;s.selectAll(`.${tn.shape}-${o}`).each(function(l){var c;(a.data_selection_grouped||n.isWithinShape(this,l))&&((c=n.toggleShape)==null||c.call(n,this,l,o),a.data_onclick.bind(n.api)(l,this))})},generateEventRectsForMultipleXs(t){const e=this,{state:n}=e;t.on("click",function(a){n.event=a,e.clickHandlerForMultipleXS.bind(this)(e)}).datum({multipleX:!0}),n.inputType==="mouse"&&t.on("mouseover mousemove",function(a){n.event=a,e.selectRectForMultipleXs(this)}).on("mouseout",a=>{n.event=a,!(!e.config||e.hasArcType())&&e.unselectRect()})},clickHandlerForMultipleXS(t){const e=t,{config:n,state:a}=e,i=e.filterTargetsToShow(e.data.targets);if(e.hasArcType(i))return;const s=zn(a.event,this),o=e.findClosestFromTargets(i,s),l=n.point_sensitivity==="radius"?o.r:n.point_sensitivity;o&&(e.isBarType(o.id)||e.dist(o,s)<l)&&e.$el.main.selectAll(`.${tn.shapes}${e.getTargetSelectorSuffix(o.id)}`).selectAll(`.${tn.shape}-${o.index}`).each(function(){var c;(n.data_selection_grouped||e.isWithinShape(this,o))&&((c=e.toggleShape)==null||c.call(e,this,o,o.index),n.data_onclick.bind(e.api)(o,this))})}};const Oy=t=>+t;var Iy={generateFlow(t){const e=this,{data:n,state:a,$el:i}=e;return function(){const s=t.flow.length;a.flowing=!0,n.targets.forEach(l=>{l.values.splice(0,s)}),e.updateXGrid&&e.updateXGrid(!0);const o={};["axis.x","grid.x","gridLines.x","region.list","text","bar","line","area","circle"].forEach(l=>{const c=l.split(".");let f=i[c[0]];f&&c.length>1&&(f=f[c[1]]),f!=null&&f.size()&&(o[l]=f)}),e.hideGridFocus(),e.setFlowList(o,t)}},setFlowList(t,e){const n=this,{flow:a,targets:i}=e,{duration:s=e.duration,index:o,length:l,orgDataCount:c}=a,f=n.getFlowTransform(i,c,o,l),g=ql();let v;g.add(Object.keys(t).map(m=>(v=t[m].transition().ease(Oy).duration(s),m==="axis.x"?v=v.call(S=>{n.axis.x.setTransition(S).create(S)}):m==="region.list"?v=v.filter(n.isRegionOnX).attr("transform",f):v=v.attr("transform",f),v))),v.call(g,()=>{n.cleanUpFlow(t,e)})},cleanUpFlow(t,e){const n=this,{config:a,state:i,$el:{svg:s}}=n,o=a.axis_rotated,{flow:l,shape:c,xv:f}=e,{cx:g,cy:v,xForText:m,yForText:S}=c.pos,{done:I=()=>{},length:N}=l;N&&(["circle","text","shape","eventRect"].forEach(M=>{const P=[];for(let X=0;X<N;X++)P.push(`.${Ne[M]}-${X}`);s.selectAll(`.${Ne[`${M}s`]}`).selectAll(P).remove()}),s.select(`.${Ne.xgrid}`).remove()),Object.keys(t).forEach(M=>{const P=t[M];if(M!=="axis.x"&&P.attr("transform",null),M==="grid.x")P.attr(i.xgridAttr);else if(M==="gridLines.x")P.attr("x1",o?0:f).attr("x2",o?i.width:f),P.select("text").attr("x",o?i.width:0).attr("y",f);else if(/^(area|bar|line)$/.test(M))P.attr("d",c.type[M]);else if(M==="text")P.attr("x",m).attr("y",S).style("fill-opacity",n.opacityForText.bind(n));else if(M==="circle")if(n.isCirclePoint())P.attr("cx",g).attr("cy",v);else{const X=G=>g(G)-a.point_r,W=G=>v(G)-a.point_r;P.attr("x",X).attr("y",W)}else M==="region.list"&&P.select("rect").filter(n.isRegionOnX).attr("x",n.regionX.bind(n)).attr("width",n.regionWidth.bind(n))}),a.interaction_enabled&&n.redrawEventRect(),I.call(n.api),i.flowing=!1},getFlowTransform(t,e,n,a){const i=this,{data:s,scale:{x:o}}=i,l=s.targets[0].values;let c=i.getValueOnIndex(l,n),f=i.getValueOnIndex(l,n+a),g;const v=o.domain(),m=i.updateXDomain(t,!0,!0);e?e===1||(c==null?void 0:c.x)===(f==null?void 0:f.x)?g=o(v[0])-o(m[0]):g=i.axis.isTimeSeries()?o(v[0])-o(m[0]):o((c==null?void 0:c.x)||0)-o(f.x):l.length!==1?g=o(v[0])-o(m[0]):i.axis.isTimeSeries()?(c=i.getValueOnIndex(l,0),f=i.getValueOnIndex(l,l.length-1),g=o(c.x)-o(f.x)):g=Ir(m)/2;const S=Ir(v)/Ir(m);return`translate(${g},0) scale(${S},1)`}},Cy={initClip(){const t=this,{clip:e,datetimeId:n}=t.state;e.id=`${n}-clip`,e.idXAxis=`${e.id}-xaxis`,e.idYAxis=`${e.id}-yaxis`,e.idGrid=`${e.id}-grid`,e.path=t.getClipPath(e.id),e.pathXAxis=t.getClipPath(e.idXAxis),e.pathYAxis=t.getClipPath(e.idYAxis),e.pathGrid=t.getClipPath(e.idGrid)},getClipPath(t){const e=this,{config:n}=e;return!n.clipPath&&/-clip$/.test(t)||!n.axis_x_clipPath&&/-clip-xaxis$/.test(t)||!n.axis_y_clipPath&&/-clip-yaxis$/.test(t)?null:`url(#${t})`},appendClip(t,e){e&&t.append("clipPath").attr("id",e).append("rect")},setXAxisClipPath(t){const e=this,{config:n,state:{margin:a,width:i,height:s}}=e,o=n.axis_rotated,l=Math.max(30,a.left)-(o?0:20),c=(o?a.top+s+10:a.bottom)+20,f=o?-(1+l):-(l-1),g=-15,v=o?a.left+20:i+10+l;t.attr("x",f).attr("y",g).attr("width",v).attr("height",c)},setYAxisClipPath(t){const e=this,{config:n,state:{margin:a,width:i,height:s}}=e,o=n.axis_rotated,l=Math.max(30,a.left)-(o?20:0),c=n.axis_y_inner,f=c&&!o?n.axis_y_label.text?-20:-1:o?-(1+l):-(l-1),g=-(o?20:a.top),v=(o?i+15+l:a.left+20)+(c?20:0),m=(o?a.bottom+10:a.top+s)+10;t.attr("x",f).attr("y",g).attr("width",v).attr("height",m)},updateXAxisTickClip(){const t=this,{config:e,state:{clip:n,xAxisHeight:a},$el:{defs:i}}=t,s=t.getHorizontalAxisHeight("x");if(i&&!n.idXAxisTickTexts){const o=`${n.id}-xaxisticktexts`;t.appendClip(i,o),n.pathXAxisTickTexts=t.getClipPath(n.idXAxisTickTexts),n.idXAxisTickTexts=o}!e.axis_x_tick_multiline&&t.getAxisTickRotate("x")&&s!==a&&(t.setXAxisTickClipWidth(),t.setXAxisTickTextClipPathWidth()),t.state.xAxisHeight=s},setXAxisTickClipWidth(){const t=this,{config:e,state:{current:{maxTickSize:n}}}=t,a=t.getAxisTickRotate("x");if(!e.axis_x_tick_multiline&&a){const i=Math.sin(Math.PI/180*Math.abs(a));n.x.clipPath=(t.getHorizontalAxisHeight("x")-20)/i}else n.x.clipPath=null},setXAxisTickTextClipPathWidth(){const t=this,{state:{clip:e,current:n},$el:{svg:a}}=t;a&&a.select(`#${e.idXAxisTickTexts} rect`).attr("width",n.maxTickSize.x.clipPath).attr("height",30)}};const Py=t=>Ie(t.position)||"end",wy=t=>t.position==="start"?4:t.position==="middle"?0:-4;function Ou(t,e,n){return a=>{let i=t?0:e;return a.position==="start"?i=t?-n:0:a.position==="middle"&&(i=(t?-n:e)/2),i}}function Iu(t,e){e==="grid"&&t.each(function(){const n=st(this);["x1","x2","y1","y2"].forEach(a=>n.attr(a,Math.ceil(+n.attr(a))))})}var My={hasGrid(){const{config:t}=this;return["x","y"].some(e=>t[`grid_${e}_show`]||t[`grid_${e}_lines`].length)},initGrid(){const t=this;t.hasGrid()&&t.initGridLines(),t.initFocusGrid()},initGridLines(){const t=this,{config:e,state:{clip:n},$el:a}=t;(e.grid_x_lines.length||e.grid_y_lines.length)&&(a.gridLines.main=a.main.insert("g",`.${Se.chart}${e.grid_lines_front?" + *":""}`).attr("clip-path",n.pathGrid).attr("class",`${qe.grid} ${qe.gridLines}`),a.gridLines.main.append("g").attr("class",qe.xgridLines),a.gridLines.main.append("g").attr("class",qe.ygridLines),a.gridLines.x=Fc([]))},updateXGrid(t){const e=this,{config:n,scale:a,state:i,$el:{main:s,grid:o}}=e,l=n.axis_rotated,c=e.generateGridData(n.grid_x_type,a.x),f=e.axis.isCategorized()?e.axis.x.tickOffset():0,g=v=>(a.zoom||a.x)(v)+f*(l?-1:1);i.xgridAttr=l?{x1:0,x2:i.width,y1:g,y2:g}:{x1:g,x2:g,y1:0,y2:i.height},o.x=s.select(`.${qe.xgrids}`).selectAll(`.${qe.xgrid}`).data(c),o.x.exit().remove(),o.x=o.x.enter().append("line").attr("class",qe.xgrid).merge(o.x),t||o.x.each(function(){const v=st(this);Object.keys(i.xgridAttr).forEach(m=>{v.attr(m,i.xgridAttr[m]).style("opacity",()=>v.attr(l?"y1":"x1")===(l?i.height:0)?"0":null)})})},updateYGrid(){const t=this,{axis:e,config:n,scale:a,state:i,$el:{grid:s,main:o}}=t,l=n.axis_rotated,c=g=>Math.ceil(a.y(g)),f=e.y.getGeneratedTicks(n.grid_y_ticks)||t.scale.y.ticks(n.grid_y_ticks);s.y=o.select(`.${qe.ygrids}`).selectAll(`.${qe.ygrid}`).data(f),s.y.exit().remove(),s.y=s.y.enter().append("line").attr("class",qe.ygrid).merge(s.y),s.y.attr("x1",l?c:0).attr("x2",l?c:i.width).attr("y1",l?0:c).attr("y2",l?i.height:c),Iu(s.y,"grid")},updateGrid(){const t=this,{$el:{grid:e,gridLines:n}}=t;!n.main&&t.initGridLines(),e.main.style("visibility",t.hasArcType()?"hidden":null),t.hideGridFocus(),t.updateGridLines("x"),t.updateGridLines("y")},updateGridLines(t){const e=this,{config:n,$el:{gridLines:a,main:i},$T:s}=e,o=n.axis_rotated,l=t==="x";n[`grid_${t}_show`]&&e[`update${t.toUpperCase()}Grid`]();let c=i.select(`.${qe[`${t}gridLines`]}`).selectAll(`.${qe[`${t}gridLine`]}`).data(n[`grid_${t}_lines`]);s(c.exit()).style("opacity","0").remove();const f=c.enter().append("g");f.append("line").style("opacity","0"),c=f.merge(c),c.each(function(g){const v=st(this);v.select("text").empty()&&g.text&&v.append("text").style("opacity","0")}),s(c.attr("class",g=>`${qe[`${t}gridLine`]} ${g.class||""}`.trim()).select("text").attr("text-anchor",Py).attr("transform",()=>l?o?null:"rotate(-90)":o?"rotate(-90)":null).attr("dx",wy).attr("dy",-5)).text(function(g){var v;return(v=g.text)!=null?v:this.remove()}),a[t]=c},redrawGrid(t){const e=this,{config:{axis_rotated:n},state:{width:a,height:i},$el:{gridLines:s},$T:o}=e,l=e.xv.bind(e),c=e.yv.bind(e);let f=s.x.select("line"),g=s.x.select("text"),v=s.y.select("line"),m=s.y.select("text");return f=o(f,t).attr("x1",n?0:l).attr("x2",n?a:l).attr("y1",n?l:0).attr("y2",n?l:i),g=o(g,t).attr("x",Ou(!n,a,i)).attr("y",l),v=o(v,t).attr("x1",n?c:0).attr("x2",n?c:a).attr("y1",n?0:c).attr("y2",n?i:c),m=o(m,t).attr("x",Ou(n,a,i)).attr("y",c),[f.style("opacity",null),g.style("opacity",null),v.style("opacity",null),m.style("opacity",null)]},initFocusGrid(){const t=this,{config:e,state:{clip:n},$el:a}=t,i=e.grid_front,s=`.${i&&a.gridLines.main?qe.gridLines:Se.chart}${i?" + *":""}`,o=a.main.insert("g",s).attr("clip-path",n.pathGrid).attr("class",qe.grid);if(a.grid.main=o,e.grid_x_show&&o.append("g").attr("class",qe.xgrids),e.grid_y_show&&o.append("g").attr("class",qe.ygrids),e.axis_tooltip){const l=o.append("g").attr("class","bb-axis-tooltip");l.append("line").attr("class","bb-axis-tooltip-x"),l.append("line").attr("class","bb-axis-tooltip-y")}e.interaction_enabled&&e.grid_focus_show&&!e.axis_tooltip&&(o.append("g").attr("class",We.xgridFocus).append("line").attr("class",We.xgridFocus),e.grid_focus_y&&!e.tooltip_grouped&&o.append("g").attr("class",We.ygridFocus).append("line").attr("class",We.ygridFocus))},showAxisGridFocus(){var t,e;const n=this,{config:a,format:i,state:{event:s,width:o,height:l}}=n,c=a.axis_rotated,[f,g]=zn(s,(t=n.$el.eventRect)==null?void 0:t.node()),v={x:f,y:g};for(const[m,S]of Object.entries(n.$el.axisTooltip)){const I=m==="x"&&!c||m!=="x"&&c?"x":"y",N=v[I];let M=(e=n.scale[m])==null?void 0:e.invert(N);M&&(M=m==="x"&&n.axis.isTimeSeries()?i.xAxisTick(M):M==null?void 0:M.toFixed(2),S==null||S.attr(I,N).text(M))}n.$el.main.selectAll("line.bb-axis-tooltip-x, line.bb-axis-tooltip-y").style("visibility",null).each(function(m,S){const I=st(this);S===0?I.attr("x1",f).attr("x2",f).attr("y1",S?0:l).attr("y2",S?l:0):I.attr("x1",S?0:o).attr("x2",S?o:0).attr("y1",g).attr("y2",g)})},hideAxisGridFocus(){const t=this;t.$el.main.selectAll("line.bb-axis-tooltip-x, line.bb-axis-tooltip-y").style("visibility","hidden"),Object.values(t.$el.axisTooltip).forEach(e=>e==null?void 0:e.style("display","none"))},showGridFocus(t){var e;const n=this,{config:a,state:{width:i,height:s}}=n,o=a.axis_rotated,l=n.$el.main.selectAll(`line.${We.xgridFocus}, line.${We.ygridFocus}`),c=(t||[l.datum()]).filter(v=>v&&Ie(n.getBaseValue(v)));if(!a.tooltip_show||c.length===0||!a.axis_x_forceAsSingle&&n.hasType("bubble")||n.hasArcType())return;const f=a.grid_focus_edge&&!a.tooltip_grouped,g=n.xx.bind(n);l.style("visibility",null).data(c.concat(c)).each(function(v){const m=st(this),S={x:g(v),y:n.getYScaleById(v.id)(v.value)};let I;if(m.classed(We.xgridFocus))I=o?[null,S.x,f?S.y:i,S.x]:[S.x,f?S.y:null,S.x,s];else{const N=n.axis.getId(v.id)==="y2";I=o?[S.y,f&&!N?S.x:null,S.y,f&&N?S.x:s]:[f&&N?S.x:null,S.y,f&&!N?S.x:i,S.y]}["x1","y1","x2","y2"].forEach((N,M)=>m.attr(N,I[M]))}),Iu(l,"grid"),(e=n.showCircleFocus)==null||e.call(n,t)},hideGridFocus(){var t;const e=this,{state:{inputType:n,resizing:a},$el:{main:i}}=e;(n==="mouse"||!a)&&(i.selectAll(`line.${We.xgridFocus}, line.${We.ygridFocus}`).style("visibility","hidden"),(t=e.hideCircleFocus)==null||t.call(e))},updateGridFocus(){var t;const e=this,{state:{inputType:n,width:a,height:i,resizing:s},$el:{grid:o}}=e,l=o.main.select(`line.${We.xgridFocus}`);if(n==="touch")l.empty()?s&&((t=e.showCircleFocus)==null||t.call(e)):e.showGridFocus();else{const c=e.config.axis_rotated;l.attr("x1",c?0:-10).attr("x2",c?a:-10).attr("y1",c?-10:0).attr("y2",c?-10:i)}return!0},generateGridData(t,e){const n=this,a=n.$el.main.select(`.${on.axisX}`).selectAll(".tick").size();let i=[];if(t==="year"){const s=n.getXDomain(),[o,l]=s.map(c=>c.getFullYear());for(let c=o;c<=l;c++)i.push(new Date(`${c}-01-01 00:00:00`))}else i=e.ticks(10),i.length>a&&(i=i.filter(s=>String(s).indexOf(".")<0));return i},getGridFilterToRemove(t){return t?e=>{let n=!1;return(Fe(t)?t.concat():[t]).forEach(a=>{("value"in a&&e.value===a.value||"class"in a&&e.class===a.class)&&(n=!0)}),n}:()=>!0},removeGridLines(t,e){const n=this,{config:a,$T:i}=n,s=n.getGridFilterToRemove(t),o=g=>!s(g),l=e?qe.xgridLines:qe.ygridLines,c=e?qe.xgridLine:qe.ygridLine;i(n.$el.main.select(`.${l}`).selectAll(`.${c}`).filter(s)).style("opacity","0").remove();const f=`grid_${e?"x":"y"}_lines`;a[f]=a[f].filter(o)}},Ly={initRegion(){const t=this,{$el:e}=t;e.region.main=e.main.insert("g",":first-child").attr("clip-path",t.state.clip.path).attr("class",xa.regions)},updateRegion(){const t=this,{config:e,$el:{region:n},$T:a}=t;n.main||t.initRegion(),n.main.style("visibility",t.hasArcType()?"hidden":null);const i=n.main.selectAll(`.${xa.region}`).data(e.regions);a(i.exit()).style("opacity","0").remove();const s=i.enter().append("g");s.append("rect").style("fill-opacity","0"),n.list=s.merge(i).attr("class",t.classRegion.bind(t)),n.list.each(function(o){var l;st(this).select("text").empty()&&((l=o.label)!=null&&l.text)&&st(this).append("text").style("opacity","0")})},redrawRegion(t){const e=this,{$el:{region:n},$T:a}=e;let i=n.list.select("rect"),s=n.list.selectAll("text");return i=a(i,t).attr("x",e.regionX.bind(e)).attr("y",e.regionY.bind(e)).attr("width",e.regionWidth.bind(e)).attr("height",e.regionHeight.bind(e)),s=a(s,t).attr("transform",o=>{var l;const{x:c=0,y:f=0,rotated:g=!1}=(l=o.label)!=null?l:{};return`translate(${e.regionX.bind(e)(o)+c}, ${e.regionY.bind(e)(o)+f})${g?" rotate(-90)":""}`}).attr("text-anchor",o=>{var l;return(l=o.label)!=null&&l.rotated?"end":null}).attr("dy","1em").style("fill",o=>{var l,c;return(c=(l=o.label)==null?void 0:l.color)!=null?c:null}).text(o=>{var l;return(l=o.label)==null?void 0:l.text}),[i.style("fill-opacity",o=>Ie(o.opacity)?o.opacity:null).on("end",function(){st(this.parentNode).selectAll("rect:not([x])").remove()}),s.style("opacity",null)]},getRegionXY(t,e){const n=this,{config:a,scale:i}=n,s=a.axis_rotated,o=t==="x";let l="start",c,f=0;return e.axis==="y"||e.axis==="y2"?(o||(l="end"),(o?s:!s)&&l in e&&(c=i[e.axis],f=c(e[l]))):(o?!s:s)&&l in e&&(c=i.zoom||i.x,f=c(n.axis.isTimeSeries()?Dn.call(n,e[l]):e[l])),f},regionX(t){return this.getRegionXY("x",t)},regionY(t){return this.getRegionXY("y",t)},getRegionSize(t,e){const n=this,{config:a,scale:i,state:s}=n,o=a.axis_rotated,l=t==="width",c=n[l?"regionX":"regionY"](e);let f,g="end",v=s[t];return e.axis==="y"||e.axis==="y2"?(l||(g="start"),(l?o:!o)&&g in e&&(f=i[e.axis],v=f(e[g]))):(l?!o:o)&&g in e&&(f=i.zoom||i.x,v=f(n.axis.isTimeSeries()?Dn.call(n,e[g]):e[g])),v<c?0:v-c},regionWidth(t){return this.getRegionSize("width",t)},regionHeight(t){return this.getRegionSize("height",t)},isRegionOnX(t){return!t.axis||t.axis==="x"}},Dy={getAxisSize(t){const e=this,n=e.config.axis_rotated;return n&&t==="x"||!n&&/y2?/.test(t)?e.getAxisWidthByAxisId(t,!0):e.getHorizontalAxisHeight(t)},getAxisWidthByAxisId(t,e){var n,a;const i=this;if(i.axis){const s=(n=i.axis)==null?void 0:n.getLabelPositionById(t),{width:o}=i.axis.getMaxTickSize(t,e),l=o===0?.5:0;return o+(((a=i.config.padding)==null?void 0:a.mode)==="fit"?s.isInner?10+l:10:s.isInner?20+l:40)}else return 40},getHorizontalAxisHeight(t){var e,n;const a=this,{config:i,state:s}=a,{rotatedPadding:o,isLegendRight:l,isLegendInset:c}=s,f=i.axis_rotated,g=((e=i.padding)==null?void 0:e.mode)==="fit",v=i[`axis_${t}_inner`],m=i[`axis_${t}_label`].text,S=13;let I=((n=i.padding)==null?void 0:n.mode)==="fit"?v&&!m?t==="y"?1:0:20:30;if(t==="x"&&!i.axis_x_show)return 8;if(t==="x"&&ue(i.axis_x_height))return i.axis_x_height;if(t==="y"&&!i.axis_y_show)return i.legend_show&&!l&&!c?10:1;if(t==="y2"&&!i.axis_y2_show)return g?0:o.top;const N=a.axis.getMaxTickSize(t),M=Math.abs(i.axis_x_tick_rotate)>0&&(!i.axis_x_tick_autorotate||a.needToRotateXAxisTickTexts());return(i.axis_x_tick_multiline||M)&&N.height>S&&(I+=N.height-S),I+(a.axis.getLabelPositionById(t).isInner?0:10)+(t==="y2"&&!f?-10:0)},getEventRectWidth(){const t=this,{config:e,axis:n}=t,a=e.axis_x_inverted,i=n.x.tickInterval();return Math.max(0,a?Math.abs(i):i)},getAxisTickRotate(t){const e=this,{axis:n,config:a,state:i,$el:s}=e;let o=a[`axis_${t}_tick_rotate`];if(t==="x"){const l=n.isCategorized()||n.isTimeSeries();if(a.axis_x_tick_fit&&l){const c=a.axis_x_tick_count,f=i.current.maxTickSize.x.ticks.length;let g=0;if(c?g=c>f?f:c:f&&(g=f),g!==i.axis.x.tickCount){const{targets:v}=e.data;i.axis.x.padding=e.getXDomainPadding([e.getXDomainMinMax(v,"min"),e.getXDomainMinMax(v,"max")],g)}i.axis.x.tickCount=g}s.svg&&a.axis_x_tick_autorotate&&a.axis_x_tick_fit&&!a.axis_x_tick_multiline&&!a.axis_x_tick_culling&&l&&(o=e.needToRotateXAxisTickTexts()?a.axis_x_tick_rotate:0)}return o},needToRotateXAxisTickTexts(){const t=this,{state:{axis:e,current:n,isLegendRight:a,legendItemWidth:i}}=t,s=a&&i,o=n.width-s-t.getCurrentPaddingByDirection("left")-t.getCurrentPaddingByDirection("right"),l=e.x.tickCount+e.x.padding.left+e.x.padding.right,{width:c}=t.axis.getMaxTickSize("x"),f=l?o/l:0;return c>f}},Ny={axis_x_clipPath:!0,axis_x_show:!0,axis_x_forceAsSingle:!1,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_inner:!1,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:[]},Fy={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:[]},By={axis_y2_clipPath:!0,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:[]},Uy=Object.defineProperty,Cu=Object.getOwnPropertySymbols,zy=Object.prototype.hasOwnProperty,jy=Object.prototype.propertyIsEnumerable,Pu=(t,e,n)=>e in t?Uy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,yo=(t,e)=>{for(var n in e||(e={}))zy.call(e,n)&&Pu(t,n,e[n]);if(Cu)for(var n of Cu(e))jy.call(e,n)&&Pu(t,n,e[n]);return t},Gy=yo(yo(yo({axis_rotated:!1,axis_tooltip:!1},Ny),Fy),By),Xy={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},Vy={data_xs:{},data_xFormat:"%Y-%m-%d",data_xLocaltime:!0,data_xSort:!0,data_axes:{},data_regions:{},data_stack_normalize:!1};const Yy=[ny,ry,ay,iy,sy,oy,ly],wu={axis:by,clip:Cy,eventrect:Ry,flow:Iy,grid:My,region:Ly,sizeAxis:Dy},Mu={optDataAxis:Vy,optAxis:Gy,optGrid:Xy};var T1=Array.prototype.slice;function xo(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Pe(t){return function(){return t}}function Hy(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function Wy(t){return t}function Ky(){var t=Wy,e=Hy,n=null,a=Pe(0),i=Pe(Ui),s=Pe(0);function o(l){var c,f=(l=xo(l)).length,g,v,m=0,S=new Array(f),I=new Array(f),N=+a.apply(this,arguments),M=Math.min(Ui,Math.max(-Ui,i.apply(this,arguments)-N)),P,X=Math.min(Math.abs(M)/f,s.apply(this,arguments)),W=X*(M<0?-1:1),G;for(c=0;c<f;++c)(G=I[S[c]=c]=+t(l[c],c,l))>0&&(m+=G);for(e!=null?S.sort(function(k,H){return e(I[k],I[H])}):n!=null&&S.sort(function(k,H){return n(l[k],l[H])}),c=0,v=m?(M-f*W)/m:0;c<f;++c,N=P)g=S[c],G=I[g],P=N+(G>0?G*v:0)+W,I[g]={data:l[g],index:c,value:G,startAngle:N,endAngle:P,padAngle:X};return I}return o.value=function(l){return arguments.length?(t=typeof l=="function"?l:Pe(+l),o):t},o.sortValues=function(l){return arguments.length?(e=l,n=null,o):e},o.sort=function(l){return arguments.length?(n=l,e=null,o):n},o.startAngle=function(l){return arguments.length?(a=typeof l=="function"?l:Pe(+l),o):a},o.endAngle=function(l){return arguments.length?(i=typeof l=="function"?l:Pe(+l),o):i},o.padAngle=function(l){return arguments.length?(s=typeof l=="function"?l:Pe(+l),o):s},o}var Zy=Math.pow;const To=Math.PI,$o=2*To,Br=1e-6,ky=$o-Br;function Lu(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function Jy(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Lu;const n=Zy(10,e);return function(a){this._+=a[0];for(let i=1,s=a.length;i<s;++i)this._+=Math.round(arguments[i]*n)/n+a[i]}}class Hi{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?Lu:Jy(e)}moveTo(e,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,n){this._append`L${this._x1=+e},${this._y1=+n}`}quadraticCurveTo(e,n,a,i){this._append`Q${+e},${+n},${this._x1=+a},${this._y1=+i}`}bezierCurveTo(e,n,a,i,s,o){this._append`C${+e},${+n},${+a},${+i},${this._x1=+s},${this._y1=+o}`}arcTo(e,n,a,i,s){if(e=+e,n=+n,a=+a,i=+i,s=+s,s<0)throw new Error(`negative radius: ${s}`);let o=this._x1,l=this._y1,c=a-e,f=i-n,g=o-e,v=l-n,m=g*g+v*v;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(m>Br)if(!(Math.abs(v*c-f*g)>Br)||!s)this._append`L${this._x1=e},${this._y1=n}`;else{let S=a-o,I=i-l,N=c*c+f*f,M=S*S+I*I,P=Math.sqrt(N),X=Math.sqrt(m),W=s*Math.tan((To-Math.acos((N+m-M)/(2*P*X)))/2),G=W/X,k=W/P;Math.abs(G-1)>Br&&this._append`L${e+G*g},${n+G*v}`,this._append`A${s},${s},0,0,${+(v*S>g*I)},${this._x1=e+k*c},${this._y1=n+k*f}`}}arc(e,n,a,i,s,o){if(e=+e,n=+n,a=+a,o=!!o,a<0)throw new Error(`negative radius: ${a}`);let l=a*Math.cos(i),c=a*Math.sin(i),f=e+l,g=n+c,v=1^o,m=o?i-s:s-i;this._x1===null?this._append`M${f},${g}`:(Math.abs(this._x1-f)>Br||Math.abs(this._y1-g)>Br)&&this._append`L${f},${g}`,a&&(m<0&&(m=m%$o+$o),m>ky?this._append`A${a},${a},0,1,${v},${e-l},${n-c}A${a},${a},0,1,${v},${this._x1=f},${this._y1=g}`:m>Br&&this._append`A${a},${a},0,${+(m>=To)},${v},${this._x1=e+a*Math.cos(s)},${this._y1=n+a*Math.sin(s)}`)}rect(e,n,a,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${a=+a}v${+i}h${-a}Z`}toString(){return this._}}function Qy(){return new Hi}Qy.prototype=Hi.prototype;function $1(t=3){return new Hi(+t)}function So(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const a=Math.floor(n);if(!(a>=0))throw new RangeError(`invalid digits: ${n}`);e=a}return t},()=>new Hi(e)}function _y(t){return t.innerRadius}function qy(t){return t.outerRadius}function tx(t){return t.startAngle}function ex(t){return t.endAngle}function nx(t){return t&&t.padAngle}function rx(t,e,n,a,i,s,o,l){var c=n-t,f=a-e,g=o-i,v=l-s,m=v*c-g*f;if(!(m*m<Tn))return m=(g*(e-s)-v*(t-i))/m,[t+m*c,e+m*f]}function Wi(t,e,n,a,i,s,o){var l=t-n,c=e-a,f=(o?s:-s)/ra(l*l+c*c),g=f*c,v=-f*l,m=t+g,S=e+v,I=n+g,N=a+v,M=(m+I)/2,P=(S+N)/2,X=I-m,W=N-S,G=X*X+W*W,k=i-s,H=m*N-I*S,at=(W<0?-1:1)*ra(kp(0,k*k*G-H*H)),mt=(H*W-X*at)/G,At=(-H*X-W*at)/G,St=(H*W+X*at)/G,Tt=(-H*X+W*at)/G,Gt=mt-M,xt=At-P,Q=St-M,Ct=Tt-P;return Gt*Gt+xt*xt>Q*Q+Ct*Ct&&(mt=St,At=Tt),{cx:mt,cy:At,x01:-g,y01:-v,x11:mt*(i/k-1),y11:At*(i/k-1)}}function Du(){var t=_y,e=qy,n=Pe(0),a=null,i=tx,s=ex,o=nx,l=null,c=So(f);function f(){var g,v,m=+t.apply(this,arguments),S=+e.apply(this,arguments),I=i.apply(this,arguments)-Bi,N=s.apply(this,arguments)-Bi,M=Xc(N-I),P=N>I;if(l||(l=g=c()),S<m&&(v=S,S=m,m=v),!(S>Tn))l.moveTo(0,0);else if(M>Ui-Tn)l.moveTo(S*Nr(I),S*Qn(I)),l.arc(0,0,S,I,N,!P),m>Tn&&(l.moveTo(m*Nr(N),m*Qn(N)),l.arc(0,0,m,N,I,P));else{var X=I,W=N,G=I,k=N,H=M,at=M,mt=o.apply(this,arguments)/2,At=mt>Tn&&(a?+a.apply(this,arguments):ra(m*m+S*S)),St=lo(Xc(S-m)/2,+n.apply(this,arguments)),Tt=St,Gt=St,xt,Q;if(At>Tn){var Ct=Vc(At/m*Qn(mt)),ht=Vc(At/S*Qn(mt));(H-=Ct*2)>Tn?(Ct*=P?1:-1,G+=Ct,k-=Ct):(H=0,G=k=(I+N)/2),(at-=ht*2)>Tn?(ht*=P?1:-1,X+=ht,W-=ht):(at=0,X=W=(I+N)/2)}var It=S*Nr(X),Yt=S*Qn(X),Xt=m*Nr(k),Zt=m*Qn(k);if(St>Tn){var Wt=S*Nr(W),ne=S*Qn(W),je=m*Nr(G),Oe=m*Qn(G),Ge;if(M<La)if(Ge=rx(It,Yt,je,Oe,Wt,ne,Xt,Zt)){var cn=It-Ge[0],Le=Yt-Ge[1],ln=Wt-Ge[0],Ht=ne-Ge[1],pe=1/Qn(Jp((cn*ln+Le*Ht)/(ra(cn*cn+Le*Le)*ra(ln*ln+Ht*Ht)))/2),be=ra(Ge[0]*Ge[0]+Ge[1]*Ge[1]);Tt=lo(St,(m-be)/(pe-1)),Gt=lo(St,(S-be)/(pe+1))}else Tt=Gt=0}at>Tn?Gt>Tn?(xt=Wi(je,Oe,It,Yt,S,Gt,P),Q=Wi(Wt,ne,Xt,Zt,S,Gt,P),l.moveTo(xt.cx+xt.x01,xt.cy+xt.y01),Gt<St?l.arc(xt.cx,xt.cy,Gt,xn(xt.y01,xt.x01),xn(Q.y01,Q.x01),!P):(l.arc(xt.cx,xt.cy,Gt,xn(xt.y01,xt.x01),xn(xt.y11,xt.x11),!P),l.arc(0,0,S,xn(xt.cy+xt.y11,xt.cx+xt.x11),xn(Q.cy+Q.y11,Q.cx+Q.x11),!P),l.arc(Q.cx,Q.cy,Gt,xn(Q.y11,Q.x11),xn(Q.y01,Q.x01),!P))):(l.moveTo(It,Yt),l.arc(0,0,S,X,W,!P)):l.moveTo(It,Yt),!(m>Tn)||!(H>Tn)?l.lineTo(Xt,Zt):Tt>Tn?(xt=Wi(Xt,Zt,Wt,ne,m,-Tt,P),Q=Wi(It,Yt,je,Oe,m,-Tt,P),l.lineTo(xt.cx+xt.x01,xt.cy+xt.y01),Tt<St?l.arc(xt.cx,xt.cy,Tt,xn(xt.y01,xt.x01),xn(Q.y01,Q.x01),!P):(l.arc(xt.cx,xt.cy,Tt,xn(xt.y01,xt.x01),xn(xt.y11,xt.x11),!P),l.arc(0,0,m,xn(xt.cy+xt.y11,xt.cx+xt.x11),xn(Q.cy+Q.y11,Q.cx+Q.x11),P),l.arc(Q.cx,Q.cy,Tt,xn(Q.y11,Q.x11),xn(Q.y01,Q.x01),!P))):l.arc(0,0,m,k,G,P)}if(l.closePath(),g)return l=null,g+""||null}return f.centroid=function(){var g=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,v=(+i.apply(this,arguments)+ +s.apply(this,arguments))/2-La/2;return[Nr(v)*g,Qn(v)*g]},f.innerRadius=function(g){return arguments.length?(t=typeof g=="function"?g:Pe(+g),f):t},f.outerRadius=function(g){return arguments.length?(e=typeof g=="function"?g:Pe(+g),f):e},f.cornerRadius=function(g){return arguments.length?(n=typeof g=="function"?g:Pe(+g),f):n},f.padRadius=function(g){return arguments.length?(a=g==null?null:typeof g=="function"?g:Pe(+g),f):a},f.startAngle=function(g){return arguments.length?(i=typeof g=="function"?g:Pe(+g),f):i},f.endAngle=function(g){return arguments.length?(s=typeof g=="function"?g:Pe(+g),f):s},f.padAngle=function(g){return arguments.length?(o=typeof g=="function"?g:Pe(+g),f):o},f.context=function(g){return arguments.length?(l=g==null?null:g,f):l},f}var ax=Object.defineProperty,ix=Object.defineProperties,sx=Object.getOwnPropertyDescriptors,Nu=Object.getOwnPropertySymbols,ox=Object.prototype.hasOwnProperty,lx=Object.prototype.propertyIsEnumerable,Fu=(t,e,n)=>e in t?ax(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,cx=(t,e)=>{for(var n in e||(e={}))ox.call(e,n)&&Fu(t,n,e[n]);if(Nu)for(var n of Nu(e))lx.call(e,n)&&Fu(t,n,e[n]);return t},ux=(t,e)=>ix(t,sx(e));function Bu(t=0){const e=this,{config:n,state:a}=e,i=e.hasMultiArcGauge(),s=a.gaugeArcWidth/e.filterTargetsToShow(e.data.targets).length,o=t?Math.min(a.radiusExpanded*t-a.radius,s*.8-(1-t)*100):0;return{inner(l){const{innerRadius:c}=e.getRadius(l);return i?a.radius-s*(l.index+1):ue(c)?c:0},outer(l){const{outerRadius:c}=e.getRadius(l);let f;if(i)f=a.radius-s*l.index+o;else if(e.hasType("polar")&&!t)f=e.getPolarOuterRadius(l,c);else if(f=c,t){let{radiusExpanded:g}=a;a.radius!==c&&(g-=Math.abs(a.radius-c)),f=g*t}return f},corner(l,c){const{arc_cornerRadius_ratio:f=0,arc_cornerRadius:g=0}=n,{data:{id:v},value:m}=l;let S=0;return f?S=f*c:S=ue(g)?g:g.call(e.api,v,m,c),S}}}function Ao(t){return function(e){const n=({startAngle:i=0,endAngle:s=0,padAngle:o=0})=>({startAngle:i,endAngle:s,padAngle:o}),a=Kr(n(this._current),n(e));return this._current=e,function(i){const s=a(i),{data:o,index:l,value:c}=e;return t(ux(cx({},s),{data:o,index:l,value:c}))}}}var fx={initPie(){const t=this,{config:e}=t,n=e.data_type,a=e[`${n}_padding`],i=e[`${n}_startingAngle`]||0,s=(a?a*.01:e[`${n}_padAngle`])||0;t.pie=Ky().startAngle(i).endAngle(i+2*Math.PI).padAngle(s).value(o=>{var l,c;return(c=(l=o.values)==null?void 0:l.reduce((f,g)=>f+g.value,0))!=null?c:o}).sort(t.getSortCompareFn.bind(t)(!0))},updateRadius(){const t=this,{config:e,state:n}=t,a=e.data_type,i=e[`${a}_padding`],s=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=n.radiusExpanded*.95,n.innerRadiusRatio=s?(n.radius-s)/n.radius:.6,n.gaugeArcWidth=s||(o<=n.radius-n.innerRadius?n.radius-n.innerRadius:o<=n.radius?o:n.radius);const l=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:l},getRadius(t){const e=this,n=t==null?void 0:t.data;let{innerRadius:a,outerRadius:i}=e.state;return!ue(a)&&n&&(a=a[n.id]||0),De(i)&&n&&n.id in i?i=i[n.id]:ue(i)||(i=e.state.radius),{innerRadius:a,outerRadius:i}},updateArc(){const t=this;t.updateRadius(),t.svgArc=t.getSvgArc(),t.svgArcExpanded=t.getSvgArcExpanded()},getArcLength(){const t=this,{config:e}=t,n=e.gauge_arcLength*3.6;let a=2*(n/360);return n<-360?a=-2:n>360&&(a=2),a*Math.PI},getStartingAngle(){const t=this,{config:e}=t,n=e.data_type,a=t.hasType("gauge")?e.gauge_fullCircle:!1,i=-1*Math.PI/2,s=Math.PI/2;let o=e[`${n}_startingAngle`]||0;return!a&&o<=i?o=i:!a&&o>=s?o=s:(o>Math.PI||o<-1*Math.PI)&&(o=Math.PI),o},updateAngle(t,e=!1){var n;const a=this,{config:i,state:s}=a,o=e&&a.hasType("gauge");let{pie:l}=a,c=t,f=!1;if(!i)return null;const g=a.getStartingAngle(),v=i.gauge_fullCircle||e&&!o?a.getArcLength():g*-2;if(c.data&&a.isGaugeType(c.data)&&!a.hasMultiArcGauge()){const{gauge_min:m,gauge_max:S}=i,I=a.getTotalDataSum(s.rendered),N=v*((I-m)/(S-m));l=l.startAngle(g).endAngle(N+g)}if(e===!1&&l(a.filterTargetsToShow()).forEach((m,S)=>{var I;!f&&m.data.id===((I=c.data)==null?void 0:I.id)&&(f=!0,c=m,c.index=S)}),isNaN(c.startAngle)&&(c.startAngle=0),isNaN(c.endAngle)&&(c.endAngle=c.startAngle),e||c.data&&(i.gauge_enforceMinMax||a.hasMultiArcGauge())){const{gauge_min:m,gauge_max:S}=i,I=e&&!o?a.getTotalDataSum(s.rendered):S,N=v/(I-m),M=(n=c.value)!=null?n:0,P=M<m?0:M<I?M-m:I-m;c.startAngle=g,c.endAngle=g+N*P}return f||e?c:null},getSvgArc(){const t=this,{inner:e,outer:n,corner:a}=Bu.call(t),i=Du().innerRadius(e).outerRadius(n),s=function(o,l){var c;let f="M 0 0";if(o.value||o.data){const g=l?o:(c=t.updateAngle(o))!=null?c:null;g&&(f=i.cornerRadius(a(g,n(g)))(g))}return f};return s.centroid=i.centroid,s},getSvgArcExpanded(t=1){const e=this,{inner:n,outer:a,corner:i}=Bu.call(e,t),s=Du().innerRadius(n).outerRadius(a);return o=>{const l=e.updateAngle(o),c=a(l);let f=0;return l&&(f=i(l,c)),l?s.cornerRadius(f)(l):"M 0 0"}},getArc(t,e,n){return n||this.isArcType(t.data)?this.svgArc(t,e):"M 0 0"},redrawArcRangeText(){const t=this,{config:e,$el:{arcs:n},state:a,$T:i}=t,s=e.arc_rangeText_format,o=t.hasType("gauge")&&e.arc_rangeText_fixed;let l=e.arc_rangeText_values;if(l!=null&&l.length){const c=e.arc_rangeText_unit==="%",f=t.getTotalDataSum(a.rendered);c&&(l=l.map(m=>f/100*m));const g=t.pie(l).map((m,S)=>(m.index=S,m));let v=n.selectAll(`.${Be.arcRange}`).data(l);v.exit(),v=i(v.enter().append("text").attr("class",Be.arcRange).style("text-anchor","middle").style("pointer-events","none").style("opacity","0").text(m=>{const S=c?m/f*100:m;return he(s)?s(S):`${S}${c?"%":""}`}).merge(v)),(!a.rendered||a.rendered&&!o)&&f>0&&v.attr("transform",(m,S)=>t.transformForArcLabel(g[S],!0)),v.style("opacity",m=>!o&&(m>f||f===0)?"0":null)}},transformForArcLabel(t,e=!1){var n,a,i;const s=this,{config:o,state:{radiusExpanded:l}}=s,c=s.updateAngle(t,e);let f="";if(c){if(e||s.hasMultiArcGauge()){const g=Math.sin(c.endAngle-Math.PI/2),v=o.arc_rangeText_position;let m=Math.cos(c.endAngle-Math.PI/2)*(l+(e?5:25)),S=g*(l+15-Math.abs(g*10))+3;if(e&&v){const I=o.arc_rangeText_values,N=he(v)?v(I[t.index]):v;m+=(n=N==null?void 0:N.x)!=null?n:0,S+=(a=N==null?void 0:N.y)!=null?a:0}f=`translate(${m},${S})`}else if(!s.hasType("gauge")||s.data.targets.length>1){let{outerRadius:g}=s.getRadius(t);s.hasType("polar")&&(g=s.getPolarOuterRadius(t,g));const v=this.svgArc.centroid(c),[m,S]=v.map(M=>isNaN(M)?0:M),I=Math.sqrt(m*m+S*S);let N=(i=["donut","gauge","pie","polar"].filter(s.hasType.bind(s)).map(M=>o[`${M}_label_ratio`]))==null?void 0:i[0];N?N=he(N)?N.bind(s.api)(t,g,I):N:N=g&&(I?(36/g>.375?1.175-36/g:.8)*g/I:0),f=`translate(${m*N},${S*N})`}}return f},convertToArcData(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(t){const e=this,n=e.hasType("gauge");e.shouldShowArcLabel()&&t.style("fill",e.updateTextColor.bind(e)).attr("filter",a=>e.updateTextBGColor.bind(e)(a,e.config.data_labels_backgroundColors)).each(function(a){var i;const s=st(this),o=e.updateAngle(a),l=e.getRatio("arc",o);if(e.meetsLabelThreshold(l,(i=["donut","gauge","pie","polar"].filter(e.hasType.bind(e)))==null?void 0:i[0])){const{value:f}=o||a,g=(e.getArcLabelFormat()||e.defaultArcValueFormat)(f,l,a.data.id).toString();Ca(s,g,[-1,1],n)}else s.text("")})},expandArc(t){const e=this,{state:{transiting:n},$el:a}=e;if(n){const s=setInterval(()=>{n||(clearInterval(s),a.legend.selectAll(`.${We.legendItemFocused}`).size()>0&&e.expandArc(t))},10);return}const i=e.mapToTargetIds(t);a.svg.selectAll(e.selectorTargets(i,`.${Be.chartArc}`)).each(function(s){if(!e.shouldExpand(s.data.id))return;const o=e.getExpandConfig(s.data.id,"duration"),l=e.getSvgArcExpanded(e.getExpandConfig(s.data.id,"rate"));st(this).selectAll("path").transition().duration(o).attrTween("d",Ao(e.svgArcExpanded.bind(e))).transition().duration(o*2).attrTween("d",Ao(l.bind(e)))})},unexpandArc(t){const e=this,{state:{transiting:n},$el:{svg:a}}=e;if(n)return;const i=e.mapToTargetIds(t);a.selectAll(e.selectorTargets(i,`.${Be.chartArc}`)).selectAll("path").transition().duration(s=>e.getExpandConfig(s.data.id,"duration")).attrTween("d",Ao(e.svgArc.bind(e))),a.selectAll(`${Be.arc}`).style("opacity",null)},getExpandConfig(t,e){const n=this,{config:a}=n,i={duration:50,rate:.98};let s;return n.isDonutType(t)?s="donut":n.isGaugeType(t)?s="gauge":n.isPieType(t)&&(s="pie"),s?a[`${s}_expand_${e}`]:i[e]},shouldExpand(t){const e=this,{config:n}=e;return e.isDonutType(t)&&n.donut_expand||e.isGaugeType(t)&&n.gauge_expand||e.isPieType(t)&&n.pie_expand},shouldShowArcLabel(){const t=this,{config:e}=t;return["donut","gauge","pie","polar"].some(n=>t.hasType(n)&&e[`${n}_label_show`])},getArcLabelFormat(){const t=this,{config:e}=t;let n=a=>a;return["donut","gauge","pie","polar"].filter(t.hasType.bind(t)).forEach(a=>{n=e[`${a}_label_format`]}),he(n)?n.bind(t.api):n},updateTargetsForArc(t){const e=this,{$el:n}=e,a=e.hasType("gauge"),i=e.getChartClass("Arc"),s=e.getClass("arcs",!0),o=e.classFocus.bind(e),l=n.main.select(`.${Be.chartArcs}`),c=l.selectAll(`.${Be.chartArc}`).data(e.pie(t)).attr("class",g=>i(g)+o(g.data)),f=c.enter().append("g").attr("class",i).call(this.setCssRule(!1,`.${Be.chartArcs} text`,["pointer-events:none","text-anchor:middle"]));f.append("g").attr("class",s).merge(c),f.append("text").attr("dy",a&&!e.hasMultiTargets()?"-.1em":".35em").style("opacity","0").style("text-anchor",e.getStylePropValue("middle")).style("pointer-events",e.getStylePropValue("none")),n.text=l.selectAll(`.${Se.target} text`)},initArc(){const t=this,{$el:e}=t;e.arcs=e.main.select(`.${Se.chart}`).append("g").attr("class",Be.chartArcs).attr("transform",t.getTranslate("arc")),t.setArcTitle()},setArcTitle(t){const e=this,n=t||e.getArcTitle(),a=e.hasType("gauge");if(n){const i=a?Ln.chartArcsGaugeTitle:Be.chartArcsTitle;let s=e.$el.arcs.select(`.${i}`);s.empty()&&(s=e.$el.arcs.append("text").attr("class",i).style("text-anchor","middle")),a&&s.attr("dy","-0.3em"),Ca(s,n,a?void 0:[-.6,1.35],!0)}},getArcTitle(){const t=this,e=t.hasType("donut")&&"donut"||t.hasType("gauge")&&"gauge";return e?t.config[`${e}_title`]:""},getArcTitleWithNeedleValue(){const t=this,{config:e,state:n}=t,a=t.getArcTitle();if(a&&t.config.arc_needle_show&&/{=[A-Z_]+}/.test(a)){let i=n.current.needle;return ue(i)||(i=e.arc_needle_value),bi(a,{NEEDLE_VALUE:ue(i)?i:0})}return!1},redrawArc(t,e,n){const a=this,{config:i,state:s,$el:{main:o}}=a,l=i.interaction_enabled,c=l&&i.data_selection_isselectable;let f=o.selectAll(`.${Be.arcs}`).selectAll(`.${Be.arc}`).data(a.arcData.bind(a));f.exit().transition().duration(e).style("opacity","0").remove(),f=f.enter().append("path").attr("class",a.getClass("arc",!0)).style("fill",g=>a.color(g.data)).style("cursor",g=>{var v;return(v=c==null?void 0:c.bind)!=null&&v.call(c,a.api)(g)?"pointer":null}).style("opacity","0").each(function(g){a.isGaugeType(g.data)&&(g.startAngle=i.gauge_startingAngle,g.endAngle=i.gauge_startingAngle),this._current=g}).merge(f),a.hasType("gauge")&&(a.updateGaugeMax(),a.hasMultiArcGauge()&&a.redrawArcGaugeLine()),f.attr("transform",g=>!a.isGaugeType(g.data)&&n?"scale(0)":"").style("opacity",function(g){return g===this._current?"0":null}).each(()=>{s.transiting=!0}).transition().duration(t).attrTween("d",function(g){const v=a.updateAngle(g);if(!v)return()=>"M 0 0";isNaN(this._current.startAngle)&&(this._current.startAngle=0),isNaN(this._current.endAngle)&&(this._current.endAngle=this._current.startAngle);const m=Kr(this._current,v);return this._current=m(0),function(S){const I=m(S);return I.data=g.data,a.getArc(I,!0)}}).attr("transform",n?"scale(1)":"").style("fill",g=>{let v;return a.levelColor?(v=a.levelColor(g.data.values[0].value),i.data_colors[g.data.id]=v):v=a.color(g.data),v}).style("opacity",null).call($i,function(){if(a.levelColor){const g=st(this),v=g.datum(this._current);a.updateLegendItemColor(v.data.id,g.style("fill"))}s.transiting=!1,Ze(i.onrendered,a.api)}),l&&a.bindArcEvent(f),a.hasType("polar")&&a.redrawPolar(),a.hasType("gauge")&&a.redrawBackgroundArcs(),i.arc_needle_show&&a.redrawNeedle(),a.redrawArcText(t),a.redrawArcRangeText()},redrawNeedle(){const t=this,{$el:e,config:n,state:{hiddenTargetIds:a,radius:i}}=t,s=(i-1)/100*n.arc_needle_length,o=a.length!==t.data.targets.length;let l=t.$el.arcs.select(`.${Be.needle}`);const c=n.arc_needle_path,f=n.arc_needle_bottom_width/2,g=n.arc_needle_top_width/2,v=n.arc_needle_top_rx,m=n.arc_needle_top_ry,S=n.arc_needle_bottom_len,I=n.arc_needle_bottom_rx,N=n.arc_needle_bottom_ry,M=t.getNeedleAngle(),P=()=>{const X=t.getArcTitleWithNeedleValue();X&&t.setArcTitle(X)};if(P(),l.empty()&&(l=e.arcs.append("path").classed(Be.needle,!0),e.needle=l,e.needle.updateHelper=(X,W=!1)=>{e.needle.style("display")!=="none"&&t.$T(e.needle).style("transform",`rotate(${t.getNeedleAngle(X)}deg)`).call($i,()=>{W&&(n.arc_needle_value=X),P()})}),o){const X=he(c)?c.call(t,s):`M-${f} ${S} A${I} ${N} 0 0 0 ${f} ${S} L${g} -${s} A${v} ${m} 0 0 0 -${g} -${s} L-${f} ${S} Z`;t.$T(l).attr("d",X).style("fill",n.arc_needle_color).style("display",null).style("transform",`rotate(${M}deg)`)}else l.style("display","none")},getNeedleAngle(t){const e=this,{config:n,state:a}=e,i=e.getArcLength(),s=e.hasType("gauge"),o=e.getTotalDataSum(!0);let l=Ve(t)?t:n.arc_needle_value,c=n[`${n.data_type}_startingAngle`]||0,f=0;if(ue(l)||(l=s&&e.data.targets.length===1?o:0),a.current.needle=l,s){c=e.getStartingAngle();const g=n.gauge_fullCircle?i:c*-2,{gauge_min:v,gauge_max:m}=n;f=g*((l-v)/(m-v))}else f=i*(l/o);return(c+f)*(180/Math.PI)},redrawBackgroundArcs(){const t=this,{config:e,state:n}=t,a=t.hasMultiArcGauge(),i=e.gauge_fullCircle,s=t.filterTargetsToShow(t.data.targets).length===0&&!!e.data_empty_label_text,o=t.getStartingAngle(),l=i?o+t.getArcLength():o*-1;let c=t.$el.arcs.select(`${a?"g":""}.${Be.chartArcsBackground}`);if(a){let f=0;c=c.selectAll(`path.${Be.chartArcsBackground}`).data(t.data.targets),c.enter().append("path").attr("class",(g,v)=>`${Be.chartArcsBackground} ${Be.chartArcsBackground}-${v}`).merge(c).style("fill",e.gauge_background||null).attr("d",({id:g})=>{if(s||n.hiddenTargetIds.indexOf(g)>=0)return"M 0 0";const v={data:[{value:e.gauge_max}],startAngle:o,endAngle:l,index:f++};return t.getArc(v,!0,!0)}),c.exit().remove()}else c.attr("d",s?"M 0 0":()=>{const f={data:[{value:e.gauge_max}],startAngle:o,endAngle:l};return t.getArc(f,!0,!0)})},bindArcEvent(t){const e=this,{config:n,state:a}=e,i=a.inputType==="touch",s=a.inputType==="mouse";function o(c,f,g){e.expandArc(g),e.api.focus(g),e.toggleFocusLegend(g,!0),e.showTooltip([f],c)}function l(c){const f=(c==null?void 0:c.id)||void 0;e.unexpandArc(f),e.api.revert(),e.revertLegend(),e.hideTooltip()}if(t.on("click",function(c,f,g){var v;const m=e.updateAngle(f);let S;m&&(S=e.convertToArcData(m),(v=e.toggleShape)==null||v.call(e,this,S,g),n.data_onclick.bind(e.api)(S,this))}),s&&t.on("mouseover",function(c,f){if(a.transiting)return;a.event=c;const g=e.updateAngle(f),v=g?e.convertToArcData(g):null,m=(v==null?void 0:v.id)||void 0;o(this,v,m),e.setOverOut(!0,v)}).on("mouseout",(c,f)=>{if(a.transiting)return;a.event=c;const g=e.updateAngle(f),v=g?e.convertToArcData(g):null;l(),e.setOverOut(!1,v)}).on("mousemove",function(c,f){const g=e.updateAngle(f),v=g?e.convertToArcData(g):null;a.event=c,e.showTooltip([v],this)}),i&&e.hasArcType()&&!e.radars){const c=f=>{var g,v;const{clientX:m,clientY:S}=(v=(g=f.changedTouches)==null?void 0:g[0])!=null?v:{clientX:0,clientY:0};return st(fn.elementFromPoint(m,S))};e.$el.svg.on("touchstart touchmove",function(f){if(a.transiting)return;a.event=f;const v=c(f).datum(),m=v!=null&&v.data&&v.data.id?e.updateAngle(v):null,S=m?e.convertToArcData(m):null,I=(S==null?void 0:S.id)||void 0;e.callOverOutForTouch(S),en(I)?l():o(this,S,I)})}},redrawArcText(t){const e=this,{config:n,state:a,$el:{main:i,arcs:s}}=e,o=e.hasType("gauge"),l=e.hasMultiArcGauge();let c;if(o&&e.data.targets.length===1&&n.gauge_title||(c=i.selectAll(`.${Be.chartArc}`).select("text").style("opacity","0").attr("class",f=>e.isGaugeType(f.data)?Ln.gaugeValue:null).call(e.textForArcLabel.bind(e)).attr("transform",f=>e.transformForArcLabel.bind(e)(f)).style("font-size",f=>e.isGaugeType(f.data)&&e.data.targets.length===1&&!l?`${Math.round(a.radius/5)}px`:null).transition().duration(t).style("opacity",f=>e.isTargetToShow(f.data.id)&&e.isArcType(f.data)?null:"0"),l&&c.attr("dy","-.1em")),i.select(`.${Be.chartArcsTitle}`).style("opacity",e.hasType("donut")||o?null:"0"),o){const f=n.gauge_fullCircle;f&&(c==null||c.attr("dy",`${l?0:Math.round(a.radius/14)}`)),n.gauge_label_show&&(s.select(`.${Ln.chartArcsGaugeUnit}`).attr("dy",`${f?1.5:.75}em`).text(n.gauge_units),s.select(`.${Ln.chartArcsGaugeMin}`).attr("dx",`${-1*(a.innerRadius+(a.radius-a.innerRadius)/(f?1:2))}px`).attr("dy","1.2em").text(e.textForGaugeMinMax(n.gauge_min,!1)),!f&&s.select(`.${Ln.chartArcsGaugeMax}`).attr("dx",`${a.innerRadius+(a.radius-a.innerRadius)/2}px`).attr("dy","1.2em").text(e.textForGaugeMinMax(n.gauge_max,!0)))}},getArcElementByIdOrIndex(t){const e=this,{$el:{arcs:n}}=e,a=ue(t)?i=>i.index===t:i=>i.data.id===t;return n==null?void 0:n.selectAll(`.${Se.target} path`).filter(a)}};function Uu(t){return t[0]}function zu(t){return t[1]}function ju(t,e){var n=Pe(!0),a=null,i=fo,s=null,o=So(l);t=typeof t=="function"?t:t===void 0?Uu:Pe(t),e=typeof e=="function"?e:e===void 0?zu:Pe(e);function l(c){var f,g=(c=xo(c)).length,v,m=!1,S;for(a==null&&(s=i(S=o())),f=0;f<=g;++f)!(f<g&&n(v=c[f],f,c))===m&&((m=!m)?s.lineStart():s.lineEnd()),m&&s.point(+t(v,f,c),+e(v,f,c));if(S)return s=null,S+""||null}return l.x=function(c){return arguments.length?(t=typeof c=="function"?c:Pe(+c),l):t},l.y=function(c){return arguments.length?(e=typeof c=="function"?c:Pe(+c),l):e},l.defined=function(c){return arguments.length?(n=typeof c=="function"?c:Pe(!!c),l):n},l.curve=function(c){return arguments.length?(i=c,a!=null&&(s=i(a)),l):i},l.context=function(c){return arguments.length?(c==null?a=s=null:s=i(a=c),l):a},l}function dx(t,e,n){var a=null,i=Pe(!0),s=null,o=fo,l=null,c=So(f);t=typeof t=="function"?t:t===void 0?Uu:Pe(+t),e=typeof e=="function"?e:Pe(e===void 0?0:+e),n=typeof n=="function"?n:n===void 0?zu:Pe(+n);function f(v){var m,S,I,N=(v=xo(v)).length,M,P=!1,X,W=new Array(N),G=new Array(N);for(s==null&&(l=o(X=c())),m=0;m<=N;++m){if(!(m<N&&i(M=v[m],m,v))===P)if(P=!P)S=m,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),I=m-1;I>=S;--I)l.point(W[I],G[I]);l.lineEnd(),l.areaEnd()}P&&(W[m]=+t(M,m,v),G[m]=+e(M,m,v),l.point(a?+a(M,m,v):W[m],n?+n(M,m,v):G[m]))}if(X)return l=null,X+""||null}function g(){return ju().defined(i).curve(o).context(s)}return f.x=function(v){return arguments.length?(t=typeof v=="function"?v:Pe(+v),a=null,f):t},f.x0=function(v){return arguments.length?(t=typeof v=="function"?v:Pe(+v),f):t},f.x1=function(v){return arguments.length?(a=v==null?null:typeof v=="function"?v:Pe(+v),f):a},f.y=function(v){return arguments.length?(e=typeof v=="function"?v:Pe(+v),n=null,f):e},f.y0=function(v){return arguments.length?(e=typeof v=="function"?v:Pe(+v),f):e},f.y1=function(v){return arguments.length?(n=v==null?null:typeof v=="function"?v:Pe(+v),f):n},f.lineX0=f.lineY0=function(){return g().x(t).y(e)},f.lineY1=function(){return g().x(t).y(n)},f.lineX1=function(){return g().x(a).y(e)},f.defined=function(v){return arguments.length?(i=typeof v=="function"?v:Pe(!!v),f):i},f.curve=function(v){return arguments.length?(o=v,s!=null&&(l=o(s)),f):o},f.context=function(v){return arguments.length?(v==null?s=l=null:l=o(s=v),f):s},f}var Ba={initArea(t){const e=this,{config:n}=e;t.insert("g",`.${n.area_front?pn.circles:ar.lines}`).attr("class",e.getClass("areas",!0))},updateAreaColor(t){const e=this;return e.config.area_linearGradient?e.getGradienColortUrl(t.id):e.color(t)},updateArea(t,e=!1){const n=this,{config:a,state:i,$el:s,$T:o}=n,l=e?s.subchart:s;a.area_linearGradient&&n.updateLinearGradient();const c=l.main.selectAll(`.${qa.areas}`).selectAll(`.${qa.area}`).data(n.lineData.bind(n));o(c.exit(),t).style("opacity","0").remove(),l.area=c.enter().append("path").attr("class",n.getClass("area",!0)).style("fill",n.updateAreaColor.bind(n)).style("opacity",function(){return i.orgAreaOpacity=st(this).style("opacity"),"0"}).merge(c),c.style("opacity",i.orgAreaOpacity),n.setRatioForGroupedData(l.area.data())},redrawArea(t,e,n=!1){const a=this,{area:i}=n?this.$el.subchart:this.$el,{orgAreaOpacity:s}=a.state;return[a.$T(i,e,lr()).attr("d",t).style("fill",a.updateAreaColor.bind(a)).style("opacity",o=>String(a.isAreaRangeType(o)?s/1.75:s))]},generateDrawArea(t,e){const n=this,{config:a}=n,i=a.line_connectNull,s=a.axis_rotated,o=n.generateGetAreaPoints(t,e),l=n.getYScaleById.bind(n),c=v=>(e?n.subxx:n.xx).call(n,v),f=(v,m)=>n.isGrouped(v.id)?o(v,m)[0][1]:l(v.id,e)(n.isAreaRangeType(v)?n.getRangedData(v,"high"):n.getShapeYMin(v.id)),g=(v,m)=>n.isGrouped(v.id)?o(v,m)[1][1]:l(v.id,e)(n.isAreaRangeType(v)?n.getRangedData(v,"low"):v.value);return v=>{let m=i?n.filterRemoveNull(v.values):v.values,S=0,I=0,N;if(n.isAreaType(v)){let M=dx();M=s?M.y(c).x0(f).x1(g):M.x(c).y0(a.area_above?0:a.area_below?n.state.height:f).y1(g),i||(M=M.defined(P=>n.getBaseValue(P)!==null)),n.isStepType(v)&&(m=n.convertValuesToStep(m)),N=M.curve(n.getCurve(v))(m)}else m[0]&&(S=n.scale.x(m[0].x),I=n.getYScaleById(v.id)(m[0].value)),N=s?`M ${I} ${S}`:`M ${S} ${I}`;return N||"M 0 0"}},generateGetAreaPoints(t,e){const n=this,{config:a}=n,i=n.getShapeX(0,t,e),s=n.getShapeY(!!e),o=n.getShapeOffset(n.isAreaType,t,e),l=n.getYScaleById.bind(n);return function(c,f){const g=l.call(n,c.id,e)(n.getShapeYMin(c.id)),v=o(c,f)||g,m=i(c),S=c.value;let I=s(c);return a.axis_rotated&&(S>0&&I<g||S<0&&g<I)&&(I=g),[[m,v],[m,I-(g-v)],[m,I-(g-v)],[m,v]]}}},hx={initBar(){const{$el:t,config:e,state:{clip:n}}=this;t.bar=t.main.select(`.${Se.chart}`),t.bar=e.bar_front?t.bar.append("g"):t.bar.insert("g",":first-child"),t.bar.attr("class",Gn.chartBars).call(this.setCssRule(!1,`.${Gn.chartBars}`,["pointer-events:none"])),e.clipPath===!1&&(e.bar_radius||e.bar_radius_ratio)&&t.bar.attr("clip-path",n.pathXAxis.replace(/#[^)]*/,`#${n.id}`))},updateTargetsForBar(t){const e=this,{config:n,$el:a}=e,i=e.getChartClass("Bar"),s=e.getClass("bars",!0),o=e.classFocus.bind(e),l=n.interaction_enabled&&n.data_selection_isselectable;a.bar||e.initBar(),a.main.select(`.${Gn.chartBars}`).selectAll(`.${Gn.chartBar}`).data(t.filter(g=>g.values.some(v=>ue(v.value)||e.isBarRangeType(v)))).attr("class",g=>i(g)+o(g)).enter().append("g").attr("class",i).style("opacity","0").style("pointer-events",e.getStylePropValue("none")).append("g").attr("class",s).style("cursor",g=>{var v;return(v=l==null?void 0:l.bind)!=null&&v.call(l,e.api)(g)?"pointer":null}).call(e.setCssRule(!0,` .${Gn.bar}`,["fill"],e.color))},updateBar(t,e=!1){const n=this,{config:a,$el:i,$T:s}=n,o=e?i.subchart:i,l=n.getClass("bar",!0),c=n.initialOpacity.bind(n);a.bar_linearGradient&&n.updateLinearGradient();const f=o.main.selectAll(`.${Gn.bars}`).selectAll(`.${Gn.bar}`).data(n.labelishData.bind(n));s(f.exit(),t).style("opacity","0").remove(),o.bar=f.enter().append("path").attr("class",l).style("fill",n.updateBarColor.bind(n)).merge(f).style("opacity",c),n.setRatioForGroupedData(o.bar.data())},updateBarColor(t){const e=this,n=e.getStylePropValue(e.color);return e.config.bar_linearGradient?e.getGradienColortUrl(t.id):n?n(t):null},redrawBar(t,e,n=!1){const a=this,{bar:i}=n?a.$el.subchart:a.$el;return[a.$T(i,e,lr()).attr("d",s=>(ue(s.value)||a.isBarRangeType(s))&&t(s)).style("fill",a.updateBarColor.bind(a)).style("opacity",null)]},generateDrawBar(t,e){const n=this,{config:a}=n,i=n.generateGetBarPoints(t,e),s=a.axis_rotated,o=a.bar_radius,l=a.bar_radius_ratio,c=ue(o)&&o>0?()=>o:ue(l)?f=>f*l:null;return(f,g)=>{const v=i(f,g),m=+s,S=+!m,I=f.value<0,N=a[`axis_${n.axis.getId(f.id)}_inverted`],M=!N&&I||N&&!I,P=["",""];let X=0;const W=n.isGrouped(f.id),G=c&&W?n.isStackingRadiusData(f):!1;if(c){const H=s?S:m,at=v[2][H]-v[0][H];X=!W||G?c(at):0;const mt=`a${X},${X} ${M?"1 0 0":"0 0 1"} `;P[+!s]=`${mt}${X},${X}`,P[+s]=`${mt}${[-X,X][s?"sort":"reverse"]()}`,M&&P.reverse()}const k=s?`H${v[1][m]+(M?X:-X)} ${P[0]}V${v[2][S]-X} ${P[1]}H${v[3][m]}`:`V${v[1][S]+(M?-X:X)} ${P[0]}H${v[2][m]-X} ${P[1]}V${v[3][S]}`;return`M${v[0][m]},${v[0][S]}${k}z`}},isStackingRadiusData(t){const e=this,{$el:n,config:a,data:i,state:s}=e,{id:o,index:l,value:c}=t;if(s.hiddenTargetIds.indexOf(o)>-1){const m=n.bar.filter(S=>S.id===o&&S.value===c);return!m.empty()&&/a\d+/i.test(m.attr("d"))}const f=a.data_groups.find(m=>m.indexOf(o)>-1),v=e.orderTargets(e.filterTargetsToShow(i.targets.filter(e.isBarType,e))).filter(m=>f.indexOf(m.id)>-1).map(m=>m.values.filter(S=>S.index===l&&(ue(c)&&c>0?S.value>0:S.value<0))[0]).filter(Boolean).map(m=>m.id);return c!==0&&v.indexOf(o)===v.length-1},generateGetBarPoints(t,e){const n=this,{config:a}=n,i=e?n.axis.subX:n.axis.x,s=n.getIndicesMax(t)+1,o=n.getBarW("bar",i,s),l=n.getShapeX(o,t,!!e),c=n.getShapeY(!!e),f=n.getShapeOffset(n.isBarType,t,!!e),g=n.getYScaleById.bind(n);return(v,m)=>{const{id:S}=v,I=g.call(n,S,e)(n.getShapeYMin(S)),N=f(v,m)||I,M=ue(o)?o:o[v.id]||o._$width,P=a[`axis_${n.axis.getId(S)}_inverted`],X=v.value,W=l(v);let G=c(v);a.axis_rotated&&!P&&(X>0&&G<I||X<0&&I<G)&&(G=I),n.isBarRangeType(v)||(G-=I-N);const k=W+M;return[[W,N],[W,G],[k,G],[k,N]]}}},gx={initBubble(){const t=this,{config:e}=t;t.hasType("bubble")&&(e.point_show=!0,e.point_type="circle")},getBaseLength(){const t=this,{width:e,height:n}=t.state,a=Cn.bubbleBaseLength;let i=t.cache.get(a);return i||t.cache.add(a,i=Kn("min",[e,n])),i},getBubbleR(t){const e=this;let n=e.config.bubble_maxR;he(n)?n=n.bind(e.api)(t):ue(n)||(n=e.getBaseLength()/(e.getMaxDataCount()*2)+12);const a=Kn("max",e.getMinMaxData().max.map(o=>e.isBubbleZType(o)?e.getBubbleZData(o.value,"y"):De(o.value)?o.value.mid:o.value)),i=n*n*Math.PI,s=(e.isBubbleZType(t)?e.getBubbleZData(t.value,"z"):t.value)*(i/a);return Math.sqrt(s/Math.PI)},getBubbleZData(t,e){return De(t)?t[e]:t[e==="y"?0:1]}},vx=Object.defineProperty,Gu=Object.getOwnPropertySymbols,px=Object.prototype.hasOwnProperty,mx=Object.prototype.propertyIsEnumerable,Xu=(t,e,n)=>e in t?vx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,yx=(t,e)=>{for(var n in e||(e={}))px.call(e,n)&&Xu(t,n,e[n]);if(Gu)for(var n of Gu(e))mx.call(e,n)&&Xu(t,n,e[n]);return t},xx={initCandlestick(){const{$el:t}=this;t.candlestick=t.main.select(`.${Se.chart}`).append("g").attr("class",rr.chartCandlesticks)},updateTargetsForCandlestick(t){const e=this,{$el:n}=e,a=e.getChartClass("Candlestick");n.candlestick||e.initCandlestick(),e.$el.main.select(`.${rr.chartCandlesticks}`).selectAll(`.${rr.chartCandlestick}`).data(t).enter().append("g").attr("class",a).style("pointer-events","none")},updateCandlestick(t,e=!1){const n=this,{$el:a,$T:i}=n,s=e?a.subchart:a,o=n.getClass("candlestick",!0),l=n.initialOpacity.bind(n),c=s.main.selectAll(`.${rr.chartCandlestick}`).selectAll(`.${rr.candlestick}`).data(n.labelishData.bind(n));i(c.exit(),t).style("opacity","0").remove();const f=c.enter().filter(g=>g.value).append("g").attr("class",o);f.append("line"),f.append("path"),s.candlestick=c.merge(f).style("opacity",l)},generateDrawCandlestick(t,e){const n=this,{config:a}=n,i=n.generateGetCandlestickPoints(t,e),s=a.axis_rotated,o=a.candlestick_color_down;return(l,c,f)=>{const g=i(l,c),v=n.getCandlestickData(l),m=v==null?void 0:v._isUp,S=+s,I=+!S;f.classed&&f.classed(rr[m?"valueUp":"valueDown"],!0);const N=s?`H${g[1][1]} V${g[1][0]} H${g[0][1]}`:`V${g[1][1]} H${g[1][0]} V${g[0][1]}`;f.select("path").attr("d",`M${g[0][S]},${g[0][I]}${N}z`).style("fill",X=>(m?n.color(X):De(o)?o[X.id]:o)||n.color(X));const M=f.select("line"),P=s?{x1:g[2][1],x2:g[2][2],y1:g[2][0],y2:g[2][0]}:{x1:g[2][0],x2:g[2][0],y1:g[2][1],y2:g[2][2]};for(const X in P)M.attr(X,P[X])}},generateGetCandlestickPoints(t,e=!1){const n=this,a=e?n.axis.subX:n.axis.x,i=n.getIndicesMax(t)+1,s=n.getBarW("candlestick",a,i),o=n.getShapeX(s,t,!!e),l=n.getShapeY(!!e),c=n.getShapeOffset(n.isBarType,t,!!e),f=n.getYScaleById.bind(n);return(g,v)=>{const m=f.call(n,g.id,e)(n.getShapeYMin(g.id)),S=c(g,v)||m,I=ue(s)?s:s[g.id]||s._$width,N=n.getCandlestickData(g);let M;if(N&&ue(N.open)&&ue(N.close)){const P={start:o(g),end:0};P.end=P.start+I;const X={start:l(N.open),end:l(N.close)},W={x:P.start+I/2,high:l(N.high),low:l(N.low)};X.start-=m-S,M=[[P.start,X.start],[P.end,X.end],[W.x,W.low,W.high]]}else M=[[0,0],[0,0],[0,0,0]];return M}},redrawCandlestick(t,e,n=!1){const a=this,{$el:i,$T:s}=a,{candlestick:o}=n?i.subchart:i,l=lr(!0);return[o.each(function(c,f){const g=s(st(this),e,l);t(c,f,g)}).style("opacity",null)]},getCandlestickData({value:t}){let e;if(Fe(t)){const[n,a,i,s,o=!1]=t;e={open:n,high:a,low:i,close:s},o!==!1&&(e.volume=o)}else De(t)&&(e=yx({},t));return e&&(e._isUp=e.close>=e.open),e||null}},Tx=Object.defineProperty,Vu=Object.getOwnPropertySymbols,$x=Object.prototype.hasOwnProperty,Sx=Object.prototype.propertyIsEnumerable,Yu=(t,e,n)=>e in t?Tx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ax=(t,e)=>{for(var n in e||(e={}))$x.call(e,n)&&Yu(t,n,e[n]);if(Vu)for(var n of Vu(e))Sx.call(e,n)&&Yu(t,n,e[n]);return t};function Ki(t=!1){const e=this,{config:n,state:{current:{width:a,height:i}}}=e,s=e.getCurrentPadding(),o=Ax({width:a-(s.left+s.right),height:i-(n.legend_show?e.getLegendHeight()+10:0)-(s.top+s.bottom)},s);if(t){const{width:l}=Hu.call(e,{width:o.width,height:o.height});o.width<l&&(o.width=l)}return o}function Hu(t){const e=this,{config:n}=e;let a=n.funnel_neck_width,i=n.funnel_neck_height;return[a,i]=[a,i].map((s,o)=>{let l=s;return De(s)&&(l=t[o?"height":"width"]*s.ratio),l}),{width:a,height:i}}function bx(t){const e=this,{top:n,width:a}=Ki.call(e,!0),i=[];return t.forEach((s,o)=>{const{ratio:l}=s,c=o>0?i[o-1][2][1]:n;i.push(s.coords=[[0,c],[a,c],[a,o>0?l+c:l+n],[0,o>0?l+c:l+n],[0,c]])}),i}function Ex(){const t=this,{width:e,height:n,top:a,left:i}=Ki.call(t,!0),s=Hu.call(t,{width:e,height:n}),o=(e+s.width)/2,l=(e-s.width)/2,c=n-s.height;return`M${[[0+i,0+a],[e+i,0+a],[o,c],[o,n+a],[l,n+a],[l,c],[0+i,0+a]].join("L")}z`}function Rx(t){const e=this,{config:n}=e,a=t.map(i=>({id:i.id,value:i.values.reduce((s,o)=>s+o.value,0)}));return n.data_order&&a.sort(e.getSortCompareFn.bind(e)(!0)),Wu.call(e,a)}function Wu(t){const e=this,{height:n}=Ki.call(e),a=e.getTotalDataSum(!0);return t.forEach(i=>{i.ratio=i.value/a*n}),t}var Ox={initFunnel(){const t=this,{$el:e}=t;e.funnel=e.main.select(`.${Se.chart}`).append("g").classed(ya.chartFunnels,!0),e.funnel.background=e.funnel.append("path").classed(ya.funnelBackground,!0),t.bindFunnelEvent()},bindFunnelEvent(){const t=this,{$el:{funnel:e},config:n,state:a}=t,i=s=>{var o;const l=s.isTrusted?s.target:(o=a.eventReceiver.rect)==null?void 0:o.node();let c;return/^path$/i.test(l.tagName)&&(a.event=s,c=st(l).datum()),c};if(n.interaction_enabled){const s=a.inputType==="touch";e.on(s?"touchstart":"mouseover mousemove",o=>{const l=i(o);l&&(t.showTooltip([l],o.target),/^(touchstart|mouseover)$/.test(o.type)&&t.setOverOut(!0,l))}).on(s?"touchend":"mouseout",o=>{const l=i(o);t.hideTooltip(),t.setOverOut(!1,l)})}},updateTargetsForFunnel(t){const e=this,{$el:{funnel:n}}=e,a=e.getChartClass("Funnel"),i=e.getClass("funnel",!0);n||e.initFunnel();const s=Rx.call(e,t.filter(e.isFunnelType.bind(e))),o=n.selectAll(`.${ya.chartFunnel}`).data(s);o.exit().remove();const l=o.enter().insert("g",`.${ya.funnelBackground}`);l.append("path"),n.path=l.merge(o).attr("class",c=>a(c)).select("path").attr("class",i).style("opacity","0").style("fill",e.color)},generateGetFunnelPoints(){var t;const e=this,{$el:{funnel:n}}=e,a=e.filterTargetsToShow(n.path),i={};let s=(t=Ki.call(e).top)!=null?t:0;return a.each((o,l)=>{var c;i[o.id]=[[0,s],[0,s+=((c=a==null?void 0:a[l])!=null?c:o).ratio]]}),o=>i[o.id]},redrawFunnel(){const t=this,{$T:e,$el:{funnel:n}}=t,a=t.filterTargetsToShow(n.path),i=bx.call(t,Wu.call(t,a.data())),s=Ex.bind(t)();n.attr("clip-path",`path('${s}')`),n.background.attr("d",s),e(a).attr("d",(o,l)=>`M${i[l].join("L")}z`).style("opacity","1"),n.selectAll("g").style("opacity",null)}},Ix={initGauge(){const t=this,{config:e,$el:{arcs:n}}=t,a=(i=null,s="")=>{n.append("text").attr("class",i).style("text-anchor","middle").style("pointer-events","none").text(s)};if(t.hasType("gauge")){const i=t.hasMultiArcGauge();n.append(i?"g":"path").attr("class",Be.chartArcsBackground).style("fill",!i&&e.gauge_background||null),e.gauge_units&&a(Ln.chartArcsGaugeUnit),e.gauge_label_show&&(a(Ln.chartArcsGaugeMin),!e.gauge_fullCircle&&a(Ln.chartArcsGaugeMax))}},updateGaugeMax(){const t=this,{config:e,state:n}=t,i=t.hasMultiArcGauge()?t.getMinMaxData().max[0].value:t.getTotalDataSum(n.rendered);!e.gauge_enforceMinMax&&i+e.gauge_min*(e.gauge_min>0?-1:1)>e.gauge_max&&(e.gauge_max=i-e.gauge_min)},redrawArcGaugeLine(){const t=this,{config:e,state:n,$el:a}=t,{hiddenTargetIds:i}=t.state,s=a.main.selectAll(`.${Be.arcs}`).selectAll(`.${Be.arcLabelLine}`).data(t.arcData.bind(t));s.enter().append("rect").attr("class",l=>`${Be.arcLabelLine} ${Se.target} ${Se.target}-${l.data.id}`).merge(s).style("fill",l=>t.levelColor?t.levelColor(l.data.values[0].value):t.color(l.data)).style("display",e.gauge_label_show?null:"none").each(function(l){let c=0;const f=2;let g=0,v=0,m="";if(i.indexOf(l.data.id)<0){const S=t.updateAngle(l),I=n.gaugeArcWidth/t.filterTargetsToShow(t.data.targets).length*(S.index+1),N=S.endAngle-Math.PI/2,M=n.radius-I,P=N-(M===0?0:1/M);c=n.radiusExpanded-n.radius+I,g=Math.cos(P)*M,v=Math.sin(P)*M,m=`rotate(${N*180/Math.PI}, ${g}, ${v})`}st(this).attr("x",g).attr("y",v).attr("width",c).attr("height",f).attr("transform",m).style("stroke-dasharray",`0, ${c+f}, 0`)})},textForGaugeMinMax(t,e){const n=this,{config:a}=n,i=a.gauge_label_extents;return he(i)?i.bind(n.api)(t,e):t},getGaugeLabelHeight(){const{config:t}=this;return this.config.gauge_label_show&&!t.gauge_fullCircle?20:0},getPaddingBottomForGauge(){const t=this;return t.getGaugeLabelHeight()*(t.config.gauge_label_show?2:2.5)}},Cx={initLine(){const{$el:t}=this;t.line=t.main.select(`.${Se.chart}`).append("g").attr("class",ar.chartLines).call(this.setCssRule(!1,`.${ar.chartLines}`,["pointer-events:none"]))},updateTargetsForLine(t){const e=this,{$el:{area:n,line:a,main:i}}=e,s=e.getChartClass("Line"),o=e.getClass("lines",!0),l=e.classFocus.bind(e);a||e.initLine();const c=t.filter(v=>!(e.isScatterType(v)||e.isBubbleType(v))),f=i.select(`.${ar.chartLines}`).selectAll(`.${ar.chartLine}`).data(c).attr("class",v=>s(v)+l(v)),g=f.enter().append("g").attr("class",s).style("opacity","0").style("pointer-events",e.getStylePropValue("none"));if(g.append("g").attr("class",o),e.hasTypeOf("Area")){const v=(!n&&g.empty()?f:g).filter(e.isAreaType.bind(e));e.initArea(v)}e.updateTargetForCircle(c,g)},updateLine(t,e=!1){const n=this,{format:{extraLineClasses:a},$el:i,$T:s}=n,o=e?i.subchart:i,l=o.main.selectAll(`.${ar.lines}`).selectAll(`.${ar.line}`).data(n.lineData.bind(n));s(l.exit(),t).style("opacity","0").remove(),o.line=l.enter().append("path").attr("class",c=>`${n.getClass("line",!0)(c)} ${a(c)||""}`).style("stroke",n.color).merge(l).style("opacity",n.initialOpacity.bind(n)).attr("transform",null)},redrawLine(t,e,n=!1){const a=this,{$el:i,$T:s}=a,{line:o}=n?i.subchart:i;return[s(o,e,lr()).attr("d",t).style("stroke",this.color).style("opacity",null)]},getCurve(t){const e=this;return e.config.axis_rotated&&e.isStepType(t)?a=>{const i=e.getInterpolate(t)(a);return i.orgPoint=i.point,i.pointRotated=function(s,o){this._point===1&&(this._point=2);const l=this._y*(1-this._t)+o*this._t;this._context.lineTo(this._x,l),this._context.lineTo(s,l),this._x=s,this._y=o},i.point=function(s,o){this._point===0?this.orgPoint(s,o):this.pointRotated(s,o)},i}:e.getInterpolate(t)},generateDrawLine(t,e){const n=this,{config:a,scale:i}=n,s=a.line_connectNull,o=a.axis_rotated,l=n.generateGetLinePoints(t,e),c=n.getYScaleById.bind(n),f=S=>(e?n.subxx:n.xx).call(n,S),g=(S,I)=>n.isGrouped(S.id)?l(S,I)[0][1]:c(S.id,e)(n.getBaseValue(S));let v=ju();v=o?v.x(g).y(f):v.x(f).y(g),s||(v=v.defined(S=>n.getBaseValue(S)!==null));const m=e?i.subX:i.x;return S=>{const I=c(S.id,e);let N=s?n.filterRemoveNull(S.values):S.values,M=0,P=0,X;if(n.isLineType(S)){const W=a.data_regions[S.id];W?X=n.lineWithRegions(N,i.zoom||m,I,W):(n.isStepType(S)&&(N=n.convertValuesToStep(N)),X=v.curve(n.getCurve(S))(N))}else N[0]&&(M=m(N[0].x),P=I(N[0].value)),X=o?`M ${P} ${M}`:`M ${M} ${P}`;return X||"M 0 0"}},lineWithRegions(t,e,n,a){const i=this,{config:s}=i,o=s.axis_rotated,l=i.axis.isTimeSeries(),c=[],f="2 2";let g,v,m,S;if(Ve(a)){const G=(k,H)=>en(k)?H:l?Dn.call(i,k):k;for(let k=0,H;H=a[k];k++){const at=G(H.start,t[0].x),mt=G(H.end,t[t.length-1].x),At=H.style||{dasharray:f};c[k]={start:at,end:mt,style:At}}}const I=o?G=>n(G.value):G=>e(G.x),N=o?G=>e(G.x):G=>n(G.value),M=G=>`M${G[0][0]},${G[0][1]}L${G[1][0]},${G[1][1]}`,P=l?(G,k,H,at)=>{const mt=G.x.getTime(),At=k.x-G.x,St=new Date(mt+At*H),Tt=new Date(mt+At*(H+at)),Gt=o?[[n(v(H)),e(St)],[n(v(H+m)),e(Tt)]]:[[e(St),n(v(H))],[e(Tt),n(v(H+m))]];return M(Gt)}:(G,k,H,at)=>{const mt=o?[[n(v(H),!0),e(g(H))],[n(v(H+at),!0),e(g(H+at))]]:[[e(g(H),!0),n(v(H))],[e(g(H+at),!0),n(v(H+at))]];return M(mt)},X={x:i.axis.getAxisType("x"),y:i.axis.getAxisType("y")};let W="";for(let G=0,k;k=t[G];G++){const H=t[G-1],at=H&&Ie(H.value);let mt=i.isWithinRegions(k.x,c);if(Ie(k.value)){if(en(c)||!mt||!at)W+=`${G&&at?"L":"M"}${I(k)},${N(k)}`;else if(at){try{mt=mt.dasharray.split(" ")}catch(Gt){mt=f.split(" ")}g=Dr(X.x,H.x,k.x),v=Dr(X.y,H.value,k.value);const At=e(k.x)-e(H.x),St=n(k.value)-n(H.value),Tt=Math.sqrt(Math.pow(At,2)+Math.pow(St,2));m=mt[0]/Tt,S=m*mt[1];for(let Gt=m;Gt<=1;Gt+=S)W+=P(H,k,Gt,m),Gt+S>=1&&(W+=P(H,k,1,0))}}}return W},isWithinRegions(t,e){for(let n=0,a;a=e[n];n++)if(a.start<t&&t<=a.end)return a.style;return!1},isWithinStep(t,e){return Math.abs(e-zn(this.state.event,t)[1])<30},shouldDrawPointsForLine(t){const e=this.config.line_point;return e===!0||Fe(e)&&e.indexOf(t.id)!==-1}};const aa=()=>lr();var Zi={initialOpacityForCircle(t){const{config:e,state:{withoutFadeIn:n}}=this;let a=e.point_opacity;return en(a)&&(a=this.getBaseValue(t)!==null&&n[t.id]?this.opacityForCircle(t):"0"),a},opacityForCircle(t){var e;const{config:n}=this;let a=n.point_opacity;return en(a)&&(a=n.point_show&&!((e=this.isPointFocusOnly)!=null&&e.call(this))?null:"0",a=Ie(this.getBaseValue(t))?this.isBubbleType(t)||this.isScatterType(t)?"0.5":a:"0"),a},initCircle(){const t=this,{$el:{main:e}}=t;!t.point&&(t.point=t.generatePoint()),(t.hasType("bubble")||t.hasType("scatter"))&&e.select(`.${Se.chart} > .${pn.chartCircles}`).empty()&&e.select(`.${Se.chart}`).append("g").attr("class",pn.chartCircles)},updateTargetForCircle(t,e){const n=this,{config:a,data:i,$el:s}=n,o=a.interaction_enabled&&a.data_selection_enabled,l=o&&a.data_selection_isselectable,c=n.getClass("circles",!0);if(!a.point_show)return;n.initCircle();let f=t,g=e;if(!f){f=i.targets.filter(m=>this.isScatterType(m)||this.isBubbleType(m));const v=s.main.select(`.${pn.chartCircles}`).style("pointer-events","none").selectAll(`.${pn.circles}`).data(f);v.exit().remove(),g=v.enter()}o&&g.append("g").attr("class",v=>n.generateClass(ke.selectedCircles,v.id)),g.append("g").attr("class",c).call(v=>{n.setCssRule(!0,`.${pn.circles}`,["cursor:pointer"],l)(v),n.setCssRule(!0,` .${pn.circle}`,["fill","stroke"],n.color)(v)}).style("opacity",function(){return st(this.parentNode).attr("class").indexOf(pn.chartCircles)>-1?"0":null}),o&&f.forEach(v=>{s.main.selectAll(`.${ke.selectedCircles}${n.getTargetSelectorSuffix(v.id)}`).selectAll(`${ke.selectedCircle}`).each(m=>{m.value=v.values[m.index].value})})},updateCircle(t=!1){const e=this,{config:n,state:a,$el:i}=e,s=e.isPointFocusOnly(),o=t?i.subchart:i;if(n.point_show&&!a.toggling){n.point_radialGradient&&e.updateLinearGradient();const l=o.main.selectAll(`.${pn.circles}`).selectAll(`.${pn.circle}`).data(c=>e.isLineType(c)&&e.shouldDrawPointsForLine(c)||e.isBubbleType(c)||e.isRadarType(c)||e.isScatterType(c)?s?[c.values[0]]:c.values:[]);l.exit().remove(),l.enter().filter(Boolean).append(e.point("create",this,e.pointR.bind(e),e.updateCircleColor.bind(e))),o.circle=o.main.selectAll(`.${pn.circles} .${pn.circle}`).style("stroke",e.getStylePropValue(e.color)).style("opacity",e.initialOpacityForCircle.bind(e))}},updateCircleColor(t){const e=this,n=e.getStylePropValue(e.color);return e.config.point_radialGradient?e.getGradienColortUrl(t.id):n?n(t):null},redrawCircle(t,e,n,a,i=!1){const s=this,{state:{rendered:o},$el:l,$T:c}=s,f=i?l.subchart:l,g=f.main.selectAll(`.${ke.selectedCircle}`);if(!s.config.point_show)return[];const v=s.point("update",s,t,e,s.updateCircleColor.bind(s),n,a,g),m=s.isCirclePoint()?"c":"",S=lr(),I=s.opacityForCircle.bind(s),N=[];return f.circle.each(function(M){let P=v.bind(this)(M);P=c(P,n||!o,S).style("opacity",I),N.push(P)}),[N,c(g,n).attr(`${m}x`,t).attr(`${m}y`,e)]},showCircleFocus(t){const e=this,{state:{hasRadar:n,resizing:a,toggling:i,transiting:s},$el:o}=e;let{circle:l}=o;if(s===!1&&l&&e.isPointFocusOnly()){const c=(n?e.radarCircleX:e.circleX).bind(e),f=(n?e.radarCircleY:e.circleY).bind(e),g=i||en(t),v=e.point("update",e,c,f,e.getStylePropValue(e.color),a?!1:g);t&&(l=l.filter(function(m){var S;const I=(S=t.filter)==null?void 0:S.call(t,N=>N.id===m.id);return I.length?st(this).datum(I[0]):!1})),l.attr("class",this.updatePointClass.bind(this)).style("opacity",null).each(function(m){const{id:S,index:I,value:N}=m;let M="hidden";Ie(N)&&(v.bind(this)(m),e.expandCircles(I,S),M=""),this.style.visibility=M})}},hideCircleFocus(){const t=this,{$el:{circle:e}}=t;t.isPointFocusOnly()&&e&&(t.unexpandCircles(),e.style("visibility","hidden"))},circleX(t){return this.xx(t)},updateCircleY(t=!1){const e=this,n=e.generateGetLinePoints(e.getShapeIndices(e.isLineType),t);return(a,i)=>{const s=a.id;return e.isGrouped(s)?n(a,i)[0][1]:e.getYScaleById(s,t)(e.getBaseValue(a))}},expandCircles(t,e,n){const a=this,i=a.pointExpandedR.bind(a);n&&a.unexpandCircles();const s=a.getShapeByIndex("circle",t,e).classed(Se.EXPANDED,!0),o=i(s)/a.config.point_r,l=1-o;a.isCirclePoint()?s.attr("r",i):s.each(function(){const c=st(this);if(this.tagName==="circle")c.attr("r",i);else{const{width:f,height:g}=this.getBBox(),v=l*(+c.attr("x")+f/2),m=l*(+c.attr("y")+g/2);c.attr("transform",`translate(${v} ${m}) scale(${o})`)}})},unexpandCircles(t){const e=this,n=e.pointR.bind(e),a=e.getShapeByIndex("circle",t).filter(function(){return st(this).classed(Se.EXPANDED)}).classed(Se.EXPANDED,!1);if(a.attr("r",n),!e.isCirclePoint()){const i=n(a)/e.config.point_r;a.attr("transform",i!==1?`scale(${i})`:null)}},pointR(t){const e=this,{config:n}=e,a=n.point_r;let i=a;return e.isBubbleType(t)?i=e.getBubbleR(t):he(a)&&(i=a.bind(e.api)(t)),t.r=i,i},pointExpandedR(t){const e=this,{config:n}=e,a=e.isBubbleType(t)?1.15:1.75;return n.point_focus_expand_enabled?n.point_focus_expand_r||e.pointR(t)*a:e.pointR(t)},pointSelectR(t){const e=this,n=e.config.point_select_r;return he(n)?n(t):n||e.pointR(t)*4},isPointFocusOnly(){const t=this;return t.config.point_focus_only&&!t.hasType("bubble")&&!t.hasType("scatter")&&!t.hasArcType(null,["radar"])},isWithinCircle(t,e){const{config:n,state:a}=this,i=zn(a.event,t),s=st(t),o=this.isCirclePoint(t)?"c":"",l=n.point_sensitivity==="radius"?t.getAttribute("r"):n.point_sensitivity;let c=+s.attr(`${o}x`),f=+s.attr(`${o}y`);if(!(c||f)&&t.nodeType===1){const{x:g,y:v}=Si(t);c=g,f=v}return Math.sqrt(Math.pow(c-i[0],2)+Math.pow(f-i[1],2))<(e||l)},getPointSensitivity(t){const e=this;let n=e.config.point_sensitivity;return he(n)?n=n.call(e.api,t):n==="radius"&&(n=t.r),n},updatePointClass(t){const e=this,{circle:n}=e.$el;let a=!1;return(De(t)||n)&&(a=t===!0?n.each(function(i){let s=e.getClass("circle",!0)(i);this.getAttribute("class").indexOf(Se.EXPANDED)>-1&&(s+=` ${Se.EXPANDED}`),this.setAttribute("class",s)}):e.getClass("circle",!0)(t)),a},generateGetLinePoints(t,e){const n=this,{config:a}=n,i=n.getShapeX(0,t,e),s=n.getShapeY(e),o=n.getShapeOffset(n.isLineType,t,e),l=n.getYScaleById.bind(n);return(c,f)=>{const g=l.call(n,c.id,e)(n.getShapeYMin(c.id)),v=o(c,f)||g,m=i(c);let S=s(c);a.axis_rotated&&(c.value>0&&S<g||c.value<0&&g<S)&&(S=g);const I=[m,S-(g-v)];return[I,I,I,I]}},custom:{create(t,e,n){return t.append("use").attr("xlink:href",`#${e}`).attr("class",this.updatePointClass.bind(this)).style("fill",n).node()},update(t,e,n,a,i,s,o){const l=this,{width:c,height:f}=t.node().getBBox(),g=S=>Ie(S.value)?e(S)-c/2:0,v=S=>Ie(S.value)?n(S)-f/2:0;let m=t;return i&&(s&&m.attr("x",g),m=l.$T(m,i,aa()),o&&l.$T(o,i,aa())),m.attr("x",g).attr("y",v).style("fill",a)}},circle:{create(t,e,n){return t.append("circle").attr("class",this.updatePointClass.bind(this)).attr("r",e).style("fill",n).node()},update(t,e,n,a,i,s,o){const l=this;let c=t;return l.hasType("bubble")&&c.attr("r",l.pointR.bind(l)),i&&(s&&c.attr("cx",e),c.attr("cx")&&(c=l.$T(c,i,aa())),o&&l.$T(c,i,aa())),c.attr("cx",e).attr("cy",n).style("fill",a)}},rectangle:{create(t,e,n){const a=i=>e(i)*2;return t.append("rect").attr("class",this.updatePointClass.bind(this)).attr("width",a).attr("height",a).style("fill",n).node()},update(t,e,n,a,i,s,o){const l=this,c=l.config.point_r,f=m=>e(m)-c,g=m=>n(m)-c;let v=t;return i&&(s&&v.attr("x",f),v=l.$T(v,i,aa()),o&&l.$T(o,i,aa())),v.attr("x",f).attr("y",g).style("fill",a)}}};function Px(t){return Jn(t)&&he(t.create)&&he(t.update)}function wx(t,e){var n;const a=this,i=(c,f)=>{const g=c.attributes;for(let v=0,m;m=g[v];v++)m=m.name,f.setAttribute(m,c.getAttribute(m))},o=new DOMParser().parseFromString(t,"image/svg+xml").documentElement,l=fn.createElementNS(ee.svg,o.nodeName.toLowerCase());if(l.id=e,l.style.fill="inherit",l.style.stroke="inherit",i(o,l),(n=o.childNodes)!=null&&n.length){const c=st(l);"innerHTML"in l?c.html(o.innerHTML):Cr(o.childNodes).forEach(f=>{i(f,c.append(f.tagName).node())})}a.$el.defs.node().appendChild(l)}var ia={hasValidPointType(t){return/^(circle|rect(angle)?|polygon|ellipse|use)$/i.test(t||this.config.point_type)},hasLegendDefsPoint(){var t;const{config:e}=this;return e.legend_show&&((t=e.point_pattern)==null?void 0:t.length)&&e.legend_usePoint},getDefsPointId(t){const{state:{datetimeId:e}}=this;return`${e}-point${t}`},generatePoint(){const t=this,{$el:e,config:n}=t,a=[],i=nn(n.point_pattern)?n.point_pattern:[n.point_type];return function(s,o,...l){return function(c){var f,g,v,m;const S=t.getTargetSelectorSuffix(c.id||((f=c.data)==null?void 0:f.id)||c),I=st(this);a.indexOf(S)<0&&a.push(S);let N=i[a.indexOf(S)%i.length];if(t.hasValidPointType(N))N=t[N];else if(!Px(N||n.point_type)){const M=t.getDefsPointId(S);if(e.defs.select(`#${M}`).size()<1&&wx.bind(t)(N,M),s==="create")return(g=t.custom)==null?void 0:g.create.bind(o)(I,M,...l);if(s==="update")return(v=t.custom)==null?void 0:v.update.bind(o)(I,...l)}return(m=N[s])==null?void 0:m.bind(o)(I,...l)}}}};function Ku(t){const e=t.config.polar_level_max;let n=t.getMinMaxData().max[0].value;return e&&e>n&&(n=e),n}var Mx={initPolar(){const t=this,{$el:{arcs:e},config:n}=t,a=n.polar_level_text_show,i=n.polar_level_text_backgroundColor;e.levels=e.append("g").attr("class",gr.levels),a&&i&&t.generateTextBGColorFilter(i)},getPolarOuterRadius(t,e){var n;const a=Ku(this);return((n=t==null?void 0:t.data.values[0].value)!=null?n:0)/a*e},updateTargetsForPolar(t){this.updateTargetsForArc(t)},redrawPolar(){const t=this,{config:e}=t;e.polar_level_show&&t.updatePolarLevel()},updatePolarLevel(){const t=this,{config:e,state:n,$el:{arcs:{levels:a}}}=t,i=e.polar_level_depth,s=Ku(t),o=Ai(0,i),l=n.radius,c=o.map(m=>l*((m+1)/i)),f=(e.polar_level_text_format||function(){}).bind(t.api),g=a.selectAll(`.${gr.level}`).data(o);g.exit().remove();const v=g.enter().append("g").attr("class",(m,S)=>`${gr.level} ${gr.level}-${S}`);if(v.append("circle"),v.merge(g).selectAll("circle").style("visibility",e.polar_level_show?null:"hidden").attr("cx",0).attr("cy",0).attr("r",m=>c[m]),e.polar_level_text_show){const m=e.polar_level_text_backgroundColor,S=`#${n.datetimeId}-labels-bg${t.getTargetSelectorSuffix(m)}`;v.append("text").style("text-anchor","middle"),v.merge(g).selectAll("text").attr("dy",I=>-c[I]+5).attr("filter",m?`url(${S})`:null).text(I=>f(s/o.length*(I+1)))}}};function Lx(t,e,n,a,i,s){const o=t&&a>0?n-a:a,l=2*Math.PI;return i*(1-s*(e==="x"?Math.sin:Math.cos)(o*l/n))}const sa=Cn.radarPoints,Zu=Cn.radarTextWidth;var Dx={initRadar(){const t=this,{config:e,state:{current:n},$el:a}=t;t.hasType("radar")&&(a.radar=a.main.select(`.${Se.chart}`).append("g").attr("class",Zo.chartRadars),a.radar.levels=a.radar.append("g").attr("class",gr.levels),a.radar.axes=a.radar.append("g").attr("class",on.axis),a.radar.shapes=a.radar.append("g").attr("class",tn.shapes),n.dataMax=e.radar_axis_max||t.getMinMaxData().max[0].value,e.radar_axis_text_show&&(e.interaction_enabled&&t.bindRadarEvent(),t.updateRadarLevel(),t.updateRadarAxes()))},getRadarSize(){const t=this,{config:e,state:{arcWidth:n,arcHeight:a}}=t,i=e.axis_x_categories.length<4?-20:10,s=(Math.min(n,a)-i)/2;return[s,s]},updateTargetsForRadar(t){const e=this,{config:n}=e;Wn(n.axis_x_categories)&&(n.axis_x_categories=Ai(0,Kn("max",t.map(a=>a.values.length)))),e.generateRadarPoints()},getRadarPosition(t,e,n,a){const i=this,{config:s}=i,[o,l]=i.getRadarSize(),c=s.axis_x_categories.length,f=s.radar_direction_clockwise,g=Cr(t).map(v=>Lx(f,v,c,e,Ve(n)?n:t==="x"?o:l,ue(a)?a:s.radar_size_ratio));return g.length===1?g[0]:g},generateRadarPoints(){const t=this,e=t.data.targets,[n,a]=t.getRadarSize(),i=t.cache.get(sa)||{},s=i._size;(!s||s.width!==n&&s.height!==a)&&(e.forEach(o=>{i[o.id]=o.values.map((l,c)=>t.getRadarPosition(["x","y"],c,void 0,t.getRatio("radar",l)))}),i._size={width:n,height:a},t.cache.add(sa,i))},redrawRadar(){const t=this,{radar:e,main:n}=t.$el,a=t.getTranslate("radar");a&&(e.attr("transform",a),n.select(`.${An.chartTexts}`).attr("transform",a),t.generateRadarPoints(),t.updateRadarLevel(),t.updateRadarAxes(),t.updateRadarShape())},generateGetRadarPoints(){const t=this.cache.get(sa);return(e,n)=>{const a=t[e.id][n];return[a,a,a,a]}},updateRadarLevel(){const t=this,{config:e,state:n,$el:{radar:a}}=t,[i,s]=t.getRadarSize(),o=e.radar_level_depth,l=e.axis_x_categories.length,c=e.radar_level_text_show,f=a.levels,g=Ai(0,o),v=e.radar_size_ratio*Math.min(i,s),m=g.map(P=>v*((P+1)/o)),S=(e.radar_level_text_format||function(){}).bind(t.api),I=g.map(P=>{const X=m[P];return Ai(0,l).map(G=>t.getRadarPosition(["x","y"],G,X,1).join(",")).join(" ")}),N=f.selectAll(`.${gr.level}`).data(g);N.exit().remove();const M=N.enter().append("g").attr("class",(P,X)=>`${gr.level} ${gr.level}-${X}`);M.append("polygon").style("visibility",e.radar_level_show?null:"hidden"),c&&(f.select("text").empty()&&f.append("text").attr("dx","-.5em").attr("dy","-.7em").style("text-anchor","end").text(()=>S(0)),M.append("text").attr("dx","-.5em").style("text-anchor","end").text(P=>S(n.current.dataMax/g.length*(P+1)))),M.merge(N).attr("transform",P=>`translate(${i-m[P]}, ${s-m[P]})`).selectAll("polygon").attr("points",P=>I[P]),c&&f.selectAll("text").attr("x",P=>en(P)?i:I[P].split(",")[0]).attr("y",P=>en(P)?s:0)},updateRadarAxes(){const t=this,{config:e,$el:{radar:n}}=t,[a,i]=t.getRadarSize(),s=e.axis_x_categories;let o=n.axes.selectAll("g").data(s);o.exit().remove();const l=o.enter().append("g").attr("class",(c,f)=>`${on.axis}-${f}`);if(e.radar_axis_line_show&&l.append("line"),e.radar_axis_text_show&&l.append("text"),o=l.merge(o),e.radar_axis_line_show&&o.select("line").attr("x1",a).attr("y1",i).attr("x2",(c,f)=>t.getRadarPosition("x",f)).attr("y2",(c,f)=>t.getRadarPosition("y",f)),e.radar_axis_text_show){const{x:c=0,y:f=0}=e.radar_axis_text_position,g=t.cache.get(Zu)||0;if(o.select("text").style("text-anchor","middle").attr("dy",".5em").call(v=>{v.each(function(m){Ca(st(this),String(m),[-.6,1.2])})}).datum((v,m)=>({index:m})).attr("transform",function(v){en(this.width)&&(this.width=this.getBoundingClientRect().width/2);let m=t.getRadarPosition("x",v.index,void 0,1),S=Math.round(t.getRadarPosition("y",v.index,void 0,1));return m>a?m+=this.width+c:Math.round(m)<a&&(m-=this.width+c),S>i?(S/2===i&&this.firstChild.tagName==="tspan"&&this.firstChild.setAttribute("dy","0em"),S+=f):S<i&&(S-=f),`translate(${m} ${S})`}),!g){const v=[n.axes,n.levels].map(m=>Vl(m.node()).width);v.every(m=>m>0)&&t.cache.add(Zu,v[0]-v[1])}}},bindRadarEvent(){const t=this,{state:e,$el:{radar:n,svg:a}}=t,i=t.isPointFocusOnly(),{inputType:s,transiting:o}=e,l=s==="mouse",c=f=>{e.event=f;const g=t.getDataIndexFromEvent(f),v=en(g);(l||v)&&(t.hideTooltip(),i?t.hideCircleFocus():t.unexpandCircles(),l?t.setOverOut(!1,g):v&&t.callOverOutForTouch())};n.axes.on(l?"mouseover ":"touchstart",f=>{if(o)return;e.event=f;const g=t.getDataIndexFromEvent(f);t.selectRectForSingle(a.node(),g),l?t.setOverOut(!0,g):t.callOverOutForTouch(g)}).on("mouseout",l?c:null),l||a.on("touchstart",c)},updateRadarShape(){const t=this,e=t.data.targets.filter(s=>t.isRadarType(s)),n=t.cache.get(sa),a=t.$el.radar.shapes.selectAll("polygon").data(e),i=a.enter().append("g").attr("class",t.getChartClass("Radar"));t.$T(a.exit()).remove(),i.append("polygon").merge(a).style("fill",t.color).style("stroke",t.color).attr("points",s=>n[s.id].join(" ")),t.updateTargetForCircle(e,i)},radarCircleX(t){return this.cache.get(sa)[t.id][t.index][0]},radarCircleY(t){return this.cache.get(sa)[t.id][t.index][1]}};function Nx(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 ki(t,e,n,a,i){for(var s=t.children,o,l=-1,c=s.length,f=t.value&&(a-e)/t.value;++l<c;)o=s[l],o.y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*f}function Ji(t,e,n,a,i){for(var s=t.children,o,l=-1,c=s.length,f=t.value&&(i-n)/t.value;++l<c;)o=s[l],o.x0=e,o.x1=a,o.y0=n,o.y1=n+=o.value*f}var ku=(1+Math.sqrt(5))/2;function Ju(t,e,n,a,i,s){for(var o=[],l=e.children,c,f,g=0,v=0,m=l.length,S,I,N=e.value,M,P,X,W,G,k,H;g<m;){S=i-n,I=s-a;do M=l[v++].value;while(!M&&v<m);for(P=X=M,k=Math.max(I/S,S/I)/(N*t),H=M*M*k,G=Math.max(X/H,H/P);v<m;++v){if(M+=f=l[v].value,f<P&&(P=f),f>X&&(X=f),H=M*M*k,W=Math.max(X/H,H/P),W>G){M-=f;break}G=W}o.push(c={value:M,dice:S<I,children:l.slice(g,v)}),c.dice?ki(c,n,a,i,N?a+=I*M/N:s):Ji(c,n,a,N?n+=S*M/N:i,s),N-=M,g=v}return o}var Qu=function t(e){function n(a,i,s,o,l){Ju(e,a,i,s,o,l)}return n.ratio=function(a){return t((a=+a)>1?a:1)},n}(ku);function S1(t){return t==null?null:_u(t)}function _u(t){if(typeof t!="function")throw new Error;return t}function Ua(){return 0}function za(t){return function(){return t}}function Fx(){var t=Qu,e=!1,n=1,a=1,i=[0],s=Ua,o=Ua,l=Ua,c=Ua,f=Ua;function g(m){return m.x0=m.y0=0,m.x1=n,m.y1=a,m.eachBefore(v),i=[0],e&&m.eachBefore(Nx),m}function v(m){var S=i[m.depth],I=m.x0+S,N=m.y0+S,M=m.x1-S,P=m.y1-S;M<I&&(I=M=(I+M)/2),P<N&&(N=P=(N+P)/2),m.x0=I,m.y0=N,m.x1=M,m.y1=P,m.children&&(S=i[m.depth+1]=s(m)/2,I+=f(m)-S,N+=o(m)-S,M-=l(m)-S,P-=c(m)-S,M<I&&(I=M=(I+M)/2),P<N&&(N=P=(N+P)/2),t(m,I,N,M,P))}return g.round=function(m){return arguments.length?(e=!!m,g):e},g.size=function(m){return arguments.length?(n=+m[0],a=+m[1],g):[n,a]},g.tile=function(m){return arguments.length?(t=_u(m),g):t},g.padding=function(m){return arguments.length?g.paddingInner(m).paddingOuter(m):g.paddingInner()},g.paddingInner=function(m){return arguments.length?(s=typeof m=="function"?m:za(+m),g):s},g.paddingOuter=function(m){return arguments.length?g.paddingTop(m).paddingRight(m).paddingBottom(m).paddingLeft(m):g.paddingTop()},g.paddingTop=function(m){return arguments.length?(o=typeof m=="function"?m:za(+m),g):o},g.paddingRight=function(m){return arguments.length?(l=typeof m=="function"?m:za(+m),g):l},g.paddingBottom=function(m){return arguments.length?(c=typeof m=="function"?m:za(+m),g):c},g.paddingLeft=function(m){return arguments.length?(f=typeof m=="function"?m:za(+m),g):f},g}function Bx(t){var e=0,n=t.children,a=n&&n.length;if(!a)e=1;else for(;--a>=0;)e+=n[a].value;t.value=e}function Ux(){return this.eachAfter(Bx)}function zx(t,e){let n=-1;for(const a of this)t.call(e,a,++n,this);return this}function jx(t,e){for(var n=this,a=[n],i,s,o=-1;n=a.pop();)if(t.call(e,n,++o,this),i=n.children)for(s=i.length-1;s>=0;--s)a.push(i[s]);return this}function Gx(t,e){for(var n=this,a=[n],i=[],s,o,l,c=-1;n=a.pop();)if(i.push(n),s=n.children)for(o=0,l=s.length;o<l;++o)a.push(s[o]);for(;n=i.pop();)t.call(e,n,++c,this);return this}function Xx(t,e){let n=-1;for(const a of this)if(t.call(e,a,++n,this))return a}function Vx(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,a=e.children,i=a&&a.length;--i>=0;)n+=a[i].value;e.value=n})}function Yx(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function Hx(t){for(var e=this,n=Wx(e,t),a=[e];e!==n;)e=e.parent,a.push(e);for(var i=a.length;t!==n;)a.splice(i,0,t),t=t.parent;return a}function Wx(t,e){if(t===e)return t;var n=t.ancestors(),a=e.ancestors(),i=null;for(t=n.pop(),e=a.pop();t===e;)i=t,t=n.pop(),e=a.pop();return i}function Kx(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function Zx(){return Array.from(this)}function kx(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function Jx(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}function*Qx(){var t=this,e,n=[t],a,i,s;do for(e=n.reverse(),n=[];t=e.pop();)if(yield t,a=t.children)for(i=0,s=a.length;i<s;++i)n.push(a[i]);while(n.length)}function bo(t,e){t instanceof Map?(t=[void 0,t],e===void 0&&(e=t0)):e===void 0&&(e=qx);for(var n=new Qi(t),a,i=[n],s,o,l,c;a=i.pop();)if((o=e(a.data))&&(c=(o=Array.from(o)).length))for(a.children=o,l=c-1;l>=0;--l)i.push(s=o[l]=new Qi(o[l])),s.parent=a,s.depth=a.depth+1;return n.eachBefore(n0)}function _x(){return bo(this).eachBefore(e0)}function qx(t){return t.children}function t0(t){return Array.isArray(t)?t[1]:null}function e0(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function n0(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function Qi(t){this.data=t,this.depth=this.height=0,this.parent=null}Qi.prototype=bo.prototype={constructor:Qi,count:Ux,each:zx,eachAfter:Gx,eachBefore:jx,find:Xx,sum:Vx,sort:Yx,path:Hx,ancestors:Kx,descendants:Zx,leaves:kx,links:Jx,copy:_x,[Symbol.iterator]:Qx};function qu(t,e,n,a,i){var s=t.children,o,l=s.length,c,f=new Array(l+1);for(f[0]=c=o=0;o<l;++o)f[o+1]=c+=s[o].value;g(0,l,t.value,e,n,a,i);function g(v,m,S,I,N,M,P){if(v>=m-1){var X=s[v];X.x0=I,X.y0=N,X.x1=M,X.y1=P;return}for(var W=f[v],G=S/2+W,k=v+1,H=m-1;k<H;){var at=k+H>>>1;f[at]<G?k=at+1:H=at}G-f[k-1]<f[k]-G&&v+1<k&&--k;var mt=f[k]-W,At=S-mt;if(M-I>P-N){var St=S?(I*At+M*mt)/S:M;g(v,k,mt,I,N,St,P),g(k,m,At,St,N,M,P)}else{var Tt=S?(N*At+P*mt)/S:P;g(v,k,mt,I,N,M,Tt),g(k,m,At,I,Tt,M,P)}}}function r0(t,e,n,a,i){(t.depth&1?Ji:ki)(t,e,n,a,i)}var a0=function t(e){function n(a,i,s,o,l){if((c=a._squarify)&&c.ratio===e)for(var c,f,g,v,m=-1,S,I=c.length,N=a.value;++m<I;){for(f=c[m],g=f.children,v=f.value=0,S=g.length;v<S;++v)f.value+=g[v].value;f.dice?ki(f,i,s,o,N?s+=(l-s)*f.value/N:l):Ji(f,i,s,N?i+=(o-i)*f.value/N:o,l),N-=f.value}else a._squarify=c=Ju(e,a,i,s,o,l),c.ratio=e}return n.ratio=function(a){return t((a=+a)>1?a:1)},n}(ku);function i0(t,e){const n=this,{scale:{x:a,y:i},state:{width:s}}=n;t.selectAll("g").attr("transform",o=>`translate(${o===e?"0,0":`${a(o.x0)},${i(o.y0)}`})`).select("rect").attr("width",o=>o===e?s:a(o.x1)-a(o.x0)).attr("height",o=>o===e?0:i(o.y1)-i(o.y0))}function s0(t){const e=this;return t.map(n=>{const{id:a,values:i}=n,{value:s}=i[0];return{name:a,id:a,value:s,ratio:e.getRatio("treemap",i[0])}})}var o0={initTreemap(){const t=this,{$el:e,state:{current:{width:n,height:a},clip:i,datetimeId:s}}=t;i.id=`${s}-clip`,t.treemap=Fx().tile(t.getTreemapTile()),t.treemapFn=o=>{const l=bo(o).sum(f=>f.value),c=t.getSortCompareFn(!0);return t.treemap(c?l.sort(c):l)},e.defs.append("clipPath").attr("id",i.id).append("rect").attr("width",n).attr("height",a),e.treemap=e.main.select(`.${Se.chart}`).attr("clip-path",`url(#${i.id})`).append("g").classed(Jo.chartTreemaps,!0),t.bindTreemapEvent()},bindTreemapEvent(){const t=this,{$el:e,config:n,state:a}=t,i=s=>{var o;const l=s.isTrusted?s.target:(o=a.eventReceiver.rect)==null?void 0:o.node();let c;return/^rect$/i.test(l.tagName)&&(a.event=s,c=st(l).datum()),c==null?void 0:c.data};if(n.interaction_enabled){const s=a.inputType==="touch";e.treemap.on(s?"touchstart":"mouseover mousemove",o=>{const l=i(o);l&&(t.showTooltip([l],o.currentTarget),/^(touchstart|mouseover)$/.test(o.type)&&t.setOverOut(!0,l))}).on(s?"touchend":"mouseout",o=>{const l=i(o);t.hideTooltip(),t.setOverOut(!1,l)})}},getTreemapTile(){var t,e;const n=this,{config:a,state:{current:{width:i,height:s}}}=n,o=(e={binary:qu,dice:ki,slice:Ji,sliceDice:r0,squarify:Qu,resquarify:a0}[(t=a.treemap_tile)!=null?t:"binary"])!=null?e:qu;return(l,c,f,g,v)=>{o(l,0,0,i,s);for(const m of l.children)m.x0=c+m.x0/i*(g-c),m.x1=c+m.x1/i*(g-c),m.y0=f+m.y0/s*(v-f),m.y1=f+m.y1/s*(v-f)}},getTreemapData(t){const e=this;return{name:"root",children:s0.bind(e)(e.filterTargetsToShow(t.filter(e.isTreemapType,e)))}},updateTargetsForTreemap(t){const e=this,{$el:{treemap:n}}=e,a=e.treemapFn(e.getTreemapData(t!=null?t:e.data.targets));n.data(a)},updateTreemap(t){const e=this,{$el:n,$T:a}=e,i=n.treemap.datum(),s=e.getChartClass("Treemap"),o=e.getClass("treemap",!0),l=n.treemap.selectAll("g").data(i.children);a(l.exit(),t).style("opacity","0").remove(),l.enter().append("g").append("rect"),n.treemap.selectAll("g").attr("class",s).select("rect").attr("class",o).attr("fill",c=>e.color(c.data.name))},generateGetTreemapPoints(){const t=this,{$el:e,scale:{x:n,y:a}}=t,i={};return e.treemap.selectAll("g").each(s=>{i[s.data.name]=[[n(s.x0),a(s.y0)],[n(s.x1),a(s.y1)]]}),s=>i[s.id]},redrawTreemap(t){const e=this,{$el:n,state:{current:{width:a,height:i}}}=e;return n.defs.select("rect").attr("width",a).attr("height",i),[e.$T(n.treemap,t,lr()).call(i0.bind(e),n.treemap.datum())]},treemapDataLabelFormat(t){const e=this,{config:n}=e,{id:a,value:i}=t,s=n.treemap_label_format,o=e.getRatio("treemap",t),l=(o*100).toFixed(2),c=n.treemap_label_show&&e.meetsLabelThreshold(o,"treemap")?null:"0";return function(f){return f.style("opacity",c),he(s)?s.bind(e.api)(i,o,a):`${a}
|
|
57
|
+
${l}%`}}},Ur={point_show:!0,point_r:2.5,point_radialGradient:!1,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"},ja={area_above:!1,area_below:!1,area_front:!0,area_linearGradient:!1,area_zerobased:!0},l0={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},c0={bubble_maxR:35,bubble_zerobased:!1},u0={candlestick_width:void 0,candlestick_width_ratio:.6,candlestick_width_max:void 0,candlestick_color_down:"red"},f0={line_connectNull:!1,line_step_type:"step",line_step_tooltipMatch:!1,line_zerobased:!1,line_classes:void 0,line_point:!0},d0={scatter_zerobased:!1},Eo={spline_interpolation_type:"cardinal"},_i={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,arc_rangeText_values:void 0,arc_rangeText_unit:"absolute",arc_rangeText_fixed:!1,arc_rangeText_format:void 0,arc_rangeText_position:void 0},h0={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},g0={funnel_neck_width:0,funnel_neck_height:0},v0={gauge_background:"",gauge_fullCircle:!1,gauge_label_show:!0,gauge_label_extents:void 0,gauge_label_format:void 0,gauge_label_ratio:void 0,gauge_label_threshold:0,gauge_enforceMinMax:!1,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},p0={pie_label_show:!0,pie_label_format:void 0,pie_label_ratio:void 0,pie_label_threshold:.05,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},m0={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:t=>t%1===0?t:t.toFixed(2),polar_level_text_show:!0,polar_padAngle:0,polar_padding:0,polar_startingAngle:0},y0={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:t=>t%1===0?t:t.toFixed(2),radar_level_text_show:!0,radar_size_ratio:.87,radar_direction_clockwise:!1},x0={treemap_tile:"binary",treemap_label_format:void 0,treemap_label_threshold:.05,treemap_label_show:!0};function oa(t,e){gn(Fr.prototype,Object.values(wu).concat(t)),gn(yr.prototype,Yy),Pr.setOptions(Object.values(Mu).concat(e||[]))}function xr(t,e){oa([ia,Zi,Cx].concat(t||[])),Pr.setOptions([Ur,f0].concat(e||[]))}function la(t,e){gn(Fr.prototype,[fx,ia].concat(t||[])),Pr.setOptions([Ur].concat(e||[]))}let tf=()=>(xr(Ba,[ja]),(tf=()=>fe.AREA)()),ef=()=>(xr(Ba,[ja]),(ef=()=>fe.AREA_LINE_RANGE)()),nf=()=>(xr(Ba,[ja,Eo]),(nf=()=>fe.AREA_SPLINE)()),rf=()=>(xr(Ba,[ja,Eo]),(rf=()=>fe.AREA_SPLINE_RANGE)()),af=()=>(xr(Ba,[ja]),(af=()=>fe.AREA_STEP)()),sf=()=>(xr(),(sf=()=>fe.LINE)()),of=()=>(xr(void 0,[Eo]),(of=()=>fe.SPLINE)()),lf=()=>(xr(),(lf=()=>fe.STEP)()),cf=()=>(la(void 0,[_i,h0]),(cf=()=>fe.DONUT)()),uf=()=>(la([Ix],[_i,v0]),(uf=()=>fe.GAUGE)()),ff=()=>(la(void 0,[_i,p0]),(ff=()=>fe.PIE)()),df=()=>(la([Mx],[_i,m0]),(df=()=>fe.POLAR)()),hf=()=>(la([wu.eventrect,Zi,Dx],[Ur,y0,{axis_x_categories:Mu.optAxis.axis_x_categories}]),(hf=()=>fe.RADAR)()),gf=()=>(oa([hx,ia],[l0,Ur]),(gf=()=>fe.BAR)()),vf=()=>(oa([ia,Zi,gx],[c0,Ur]),(vf=()=>fe.BUBBLE)()),pf=()=>(oa([xx,ia],[u0,Ur]),(pf=()=>fe.CANDLESTICK)()),mf=()=>(oa([ia,Zi],[Ur,d0]),(mf=()=>fe.SCATTER)()),yf=()=>(la([Ox],[g0]),(yf=()=>fe.FUNNEL)()),xf=()=>(oa([o0],[x0]),(xf=()=>fe.TREEMAP)()),Ro={};const Tf={version:"3.12.0-next.2",generate(t){const e=_r({},Ro,t),n=new yr(e);return n.internal.charts=this.instance,this.instance.push(n),n},defaults(t){return De(t)&&(Ro=t),Ro},instance:[],plugin:{}};Object.keys(d).forEach(t=>d[t]()),Object.keys(u).forEach(t=>u[t]())}],Xa={};function Nn(x){var E=Xa[x];if(E!==void 0)return E.exports;var r=Xa[x]={exports:{}};return Oo[x].call(r.exports,r,r.exports,Nn),r.exports}(function(){Nn.d=function(x,E){for(var r in E)Nn.o(E,r)&&!Nn.o(x,r)&&Object.defineProperty(x,r,{enumerable:!0,get:E[r]})}})(),function(){Nn.o=function(x,E){return Object.prototype.hasOwnProperty.call(x,E)}}(),function(){Nn.r=function(x){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(x,"__esModule",{value:!0})}}(),Nn(0);var Va=Nn(560);return Va}()});
|